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/main/java/org/dynmap/kzedmap/DefaultTileRenderer.java b/src/main/java/org/dynmap/kzedmap/DefaultTileRenderer.java index 147282c6..3f000dd1 100644 --- a/src/main/java/org/dynmap/kzedmap/DefaultTileRenderer.java +++ b/src/main/java/org/dynmap/kzedmap/DefaultTileRenderer.java @@ -1,176 +1,176 @@ package ...
false
true
public boolean render(KzedMapTile tile, File outputFile) { World world = tile.getWorld(); BufferedImage im = new BufferedImage(KzedMap.tileWidth, KzedMap.tileHeight, BufferedImage.TYPE_INT_RGB); WritableRaster r = im.getRaster(); boolean isempty = true; int ix = KzedMap.anc...
public boolean render(KzedMapTile tile, File outputFile) { World world = tile.getWorld(); BufferedImage im = new BufferedImage(KzedMap.tileWidth, KzedMap.tileHeight, BufferedImage.TYPE_INT_RGB); WritableRaster r = im.getRaster(); boolean isempty = true; int ix = KzedMap.anc...
diff --git a/common/src/main/java/com/jme3/system/gdx/GdxContext.java b/common/src/main/java/com/jme3/system/gdx/GdxContext.java index d372b26..9a968f9 100644 --- a/common/src/main/java/com/jme3/system/gdx/GdxContext.java +++ b/common/src/main/java/com/jme3/system/gdx/GdxContext.java @@ -1,146 +1,146 @@ package com.jm...
true
true
public void onDrawFrame() { if (needInitialize) { renderer.initialize(); systemListener.initialize(); needInitialize = false; } if (isRenderable()) { if (systemListener != null) { systemListener.update(); } ...
public void onDrawFrame() { if (needInitialize) { renderer.initialize(); systemListener.initialize(); needInitialize = false; } if (isRenderable()) { if (systemListener != null) { systemListener.update(); } ...
diff --git a/src/java/org/apache/cassandra/db/ExpiringColumn.java b/src/java/org/apache/cassandra/db/ExpiringColumn.java index f0b23d91..2a599c74 100644 --- a/src/java/org/apache/cassandra/db/ExpiringColumn.java +++ b/src/java/org/apache/cassandra/db/ExpiringColumn.java @@ -1,129 +1,129 @@ /** * Licensed to the Apac...
true
true
public void updateDigest(MessageDigest digest) { digest.update(name()); digest.update(value()); DataOutputBuffer buffer = new DataOutputBuffer(); try { buffer.writeLong(timestamp); buffer.writeByte(ColumnSerializer.EXPIRATION_MASK); buf...
public void updateDigest(MessageDigest digest) { digest.update(name.array(), name.position()+name.arrayOffset(), name.remaining()); digest.update(value.array(), value.position()+value.arrayOffset(), value.remaining()); DataOutputBuffer buffer = new DataOutputBuffer(); try ...
diff --git a/websites/websites-war/src/main/java/com/stratelia/webactiv/webSites/servlets/WebSitesRequestRouter.java b/websites/websites-war/src/main/java/com/stratelia/webactiv/webSites/servlets/WebSitesRequestRouter.java index f0d243e25..3faf1ad45 100644 --- a/websites/websites-war/src/main/java/com/stratelia/webacti...
true
true
public String getDestination(String function, WebSiteSessionController scc, HttpServletRequest request) { SilverTrace.info("webSites", "WebSitesRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", "fonction = " + function); String destination = ""; // the flag is the best user's pr...
public String getDestination(String function, WebSiteSessionController scc, HttpServletRequest request) { SilverTrace.info("webSites", "WebSitesRequestRouter.getDestination()", "root.MSG_GEN_PARAM_VALUE", "fonction = " + function); String destination = ""; // the flag is the best user's pr...
diff --git a/JavaKryoTools/src/net/umbriel/kryolib/APDWriter.java b/JavaKryoTools/src/net/umbriel/kryolib/APDWriter.java index fb1fd29..85db75f 100644 --- a/JavaKryoTools/src/net/umbriel/kryolib/APDWriter.java +++ b/JavaKryoTools/src/net/umbriel/kryolib/APDWriter.java @@ -1,139 +1,139 @@ package net.umbriel.kryolib; ...
false
true
public static void createAPD(File f) { //Some things we need: String mfmTrackMark = "0"+Integer.toBinaryString(0x4489); //Need to stick on the preceding 0 mfmTrackMark = mfmTrackMark+mfmTrackMark; //0x44894489 String fmTrackMark = Integer.toBinaryString(0xFFFF)+Integer.toBinaryString(0xAAAA); //0xFFFFAAAA ...
public static void createAPD(File f) { //Some things we need: String mfmTrackMark = "0"+Integer.toBinaryString(0x4489); //Need to stick on the preceding 0 mfmTrackMark = mfmTrackMark+mfmTrackMark; //0x44894489 String fmTrackMark = Integer.toBinaryString(0xFFFF)+Integer.toBinaryString(0xAAAA); //0xFFFFAAAA ...
diff --git a/src/me/furt/CraftEssence/commands/banCommand.java b/src/me/furt/CraftEssence/commands/banCommand.java index 42f3e16..c7133ad 100644 --- a/src/me/furt/CraftEssence/commands/banCommand.java +++ b/src/me/furt/CraftEssence/commands/banCommand.java @@ -1,89 +1,89 @@ package me.furt.CraftEssence.commands; im...
true
true
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (plugin.isPlayer(sender)) { Player player = (Player) sender; if (!CraftEssence.Permissions.has(player, "craftessence.ban")) { sender.sendMessage(ChatColor.YELLOW + "You to dont have proper permissions...
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { if (plugin.isPlayer(sender)) { Player player = (Player) sender; if (!CraftEssence.Permissions.has(player, "craftessence.ban")) { sender.sendMessage(ChatColor.YELLOW + "You to dont have proper permissions...
diff --git a/loggerui/LoggerApp/src/org/apps8os/logger/android/manager/LoggerManager.java b/loggerui/LoggerApp/src/org/apps8os/logger/android/manager/LoggerManager.java index 6a00eef..21db38e 100644 --- a/loggerui/LoggerApp/src/org/apps8os/logger/android/manager/LoggerManager.java +++ b/loggerui/LoggerApp/src/org/apps8...
true
true
public static void sendEventBoradcast(Context context, final String actionPayload, final String data){ if(TextUtils.isEmpty(actionPayload)){ throw new IllegalArgumentException("Invalid action payload"); } Intent intent = new Intent(); intent.setAction(CUSTOM_INTENT_ACTION); intent.putExtra("APPLICATION_AC...
public static void sendEventBoradcast(Context context, final String actionPayload, final String data){ if(TextUtils.isEmpty(actionPayload)){ throw new IllegalArgumentException("Invalid action payload"); } Intent intent = new Intent(); intent.setAction(CUSTOM_INTENT_ACTION); intent.putExtra("APPLICATION_AC...
diff --git a/src/haven/Bootstrap.java b/src/haven/Bootstrap.java index 25b507e..6c50a63 100644 --- a/src/haven/Bootstrap.java +++ b/src/haven/Bootstrap.java @@ -1,113 +1,114 @@ package haven; import java.net.*; public class Bootstrap extends Thread implements UI.Receiver { UI ui; Session sess; String addre...
true
true
public void run() { ui.newwidget(5, "cnt", new Coord(0, 0), 0, new Coord(800, 600)); ui.newwidget(1, "text", new Coord(100, 100), 5, new Coord(100, 20), Utils.getpref("server", "127.0.0.1")); ui.newwidget(2, "text", new Coord(100, 130), 5, new Coord(100, 20), Utils.getpref("username", "")); ui.newwidget(3, "te...
public void run() { ui.newwidget(5, "cnt", new Coord(0, 0), 0, new Coord(800, 600)); ui.newwidget(4, "img", new Coord(0, 0), 5, "gfx/testimgs/snow.png"); ui.newwidget(1, "text", new Coord(100, 100), 5, new Coord(100, 20), Utils.getpref("server", "127.0.0.1")); ui.newwidget(2, "text", new Coord(100, 130), 5, ne...
diff --git a/src/test/java/net/sf/katta/loadtest/LoadTestNodeTest.java b/src/test/java/net/sf/katta/loadtest/LoadTestNodeTest.java index a24966b..759624c 100644 --- a/src/test/java/net/sf/katta/loadtest/LoadTestNodeTest.java +++ b/src/test/java/net/sf/katta/loadtest/LoadTestNodeTest.java @@ -1,55 +1,55 @@ /** * Copy...
true
true
public void testStartSearch() throws KattaException, InterruptedException { startMaster(); startNode(); DeployClient deployClient = new DeployClient(_conf); deployClient.addIndex(INDEX1, TestResources.INDEX1.getAbsolutePath(), 1).joinDeployment(); LoadTestNode node = startLoadTestNode(); nod...
public void testStartSearch() throws KattaException, InterruptedException { startMaster(); startNode(); DeployClient deployClient = new DeployClient(_conf); deployClient.addIndex(INDEX1, TestResources.INDEX1.getAbsolutePath(), 1).joinDeployment(); LoadTestNode node = startLoadTestNode(); nod...
diff --git a/src/edu/ggc/it/News.java b/src/edu/ggc/it/News.java index a679d85..38448dc 100644 --- a/src/edu/ggc/it/News.java +++ b/src/edu/ggc/it/News.java @@ -1,48 +1,53 @@ package edu.ggc.it; import android.app.Activity; import android.app.ListActivity; import android.content.Intent; import android.net.Uri; ...
true
true
public void onListItemClick(ListView parent, View v, int position, long id) { String selection = getListAdapter().getItem(position).toString(); if (selection.equals("CNN")) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://m.cnn.com")); startActivity(browserIntent); } else ...
public void onListItemClick(ListView parent, View v, int position, long id) { String selection = getListAdapter().getItem(position).toString(); if (selection.equals("CNN")) { Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://m.cnn.com")); startActivity(browserIntent); } else ...
diff --git a/src/android/com/mirasense/scanditsdk/plugin/ScanditSDKActivity.java b/src/android/com/mirasense/scanditsdk/plugin/ScanditSDKActivity.java index 32ceccc..96a8844 100644 --- a/src/android/com/mirasense/scanditsdk/plugin/ScanditSDKActivity.java +++ b/src/android/com/mirasense/scanditsdk/plugin/ScanditSDKActiv...
false
true
public void initializeAndStartBarcodeRecognition(Bundle extras) { // Switch to full screen. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO_TITLE); ...
public void initializeAndStartBarcodeRecognition(Bundle extras) { // Switch to full screen. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Window.FEATURE_NO_TITLE); ...
diff --git a/src/client/command/DeveloperCommands.java b/src/client/command/DeveloperCommands.java index 83859544..b8db4f91 100644 --- a/src/client/command/DeveloperCommands.java +++ b/src/client/command/DeveloperCommands.java @@ -1,289 +1,289 @@ package client.command; import java.sql.Connection; import java.sql....
true
true
public static boolean execute(MapleClient c, String[] sub, char heading) { MapleCharacter chr = c.getPlayer(); Channel cserv = c.getChannelServer(); MapleCharacter victim; // For commands with targets. ResultSet rs; // For commands with MySQL results. MapleNPC npc; int npcId = 0; int mobTime ...
public static boolean execute(MapleClient c, String[] sub, char heading) { MapleCharacter chr = c.getPlayer(); Channel cserv = c.getChannelServer(); MapleCharacter victim; // For commands with targets. ResultSet rs; // For commands with MySQL results. MapleNPC npc; int npcId = 0; int mobTime ...
diff --git a/src/com/mebigfatguy/fbcontrib/detect/SillynessPotPourri.java b/src/com/mebigfatguy/fbcontrib/detect/SillynessPotPourri.java index 87699edc..d720d1be 100755 --- a/src/com/mebigfatguy/fbcontrib/detect/SillynessPotPourri.java +++ b/src/com/mebigfatguy/fbcontrib/detect/SillynessPotPourri.java @@ -1,763 +1,763 ...
true
true
public void sawOpcode(int seen) { int reg = -1; String userValue = null; try { if (((seen >= IFEQ) && (seen <= GOTO)) || (seen == IFNULL) || (seen == IFNONNULL) || (seen == GOTO_W)) { Integer branchTarget = Integer.valueOf(getBranchTarget()); Set<Integer> branchInsSet = branchTargets.get(branchTarget)...
public void sawOpcode(int seen) { int reg = -1; String userValue = null; try { if (((seen >= IFEQ) && (seen <= GOTO)) || (seen == IFNULL) || (seen == IFNONNULL) || (seen == GOTO_W)) { Integer branchTarget = Integer.valueOf(getBranchTarget()); Set<Integer> branchInsSet = branchTargets.get(branchTarget)...
diff --git a/source/de/tuclausthal/submissioninterface/servlets/view/ShowUserView.java b/source/de/tuclausthal/submissioninterface/servlets/view/ShowUserView.java index 4ece99b..164fdb5 100644 --- a/source/de/tuclausthal/submissioninterface/servlets/view/ShowUserView.java +++ b/source/de/tuclausthal/submissioninterface...
true
true
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); User user = (User) request.getAttribute("user"); List<Lecture> lectures = (List<Lectur...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { Template template = TemplateFactory.getTemplate(request, response); PrintWriter out = response.getWriter(); User user = (User) request.getAttribute("user"); List<Lecture> lectures = (List<Lectur...
diff --git a/framework/modules/backend/front-facade/json/src/main/java/org/appverse/web/framework/backend/frontfacade/json/controllers/CustomMappingJacksonHttpMessageConverter.java b/framework/modules/backend/front-facade/json/src/main/java/org/appverse/web/framework/backend/frontfacade/json/controllers/CustomMappingJa...
true
true
protected Object[] readInternal(Class<?>[] parameterTypes, String payload) throws Exception { JsonFactory jsonFactory = this.objectMapper.getJsonFactory(); JsonParser jp = jsonFactory.createJsonParser(payload); JsonToken token; List<Object> lObjs = new ArrayList<Object>(); int i=0; while ((token = jp.nextT...
protected Object[] readInternal(Class<?>[] parameterTypes, String payload) throws Exception { JsonFactory jsonFactory = this.objectMapper.getJsonFactory(); JsonParser jp = jsonFactory.createJsonParser(payload); JsonToken token; List<Object> lObjs = new ArrayList<Object>(); int i=0; while ((token = jp.nextT...
diff --git a/src/com/essiembre/eclipse/i18n/resourcebundle/editors/Bundle.java b/src/com/essiembre/eclipse/i18n/resourcebundle/editors/Bundle.java index cfd9401..9af546e 100644 --- a/src/com/essiembre/eclipse/i18n/resourcebundle/editors/Bundle.java +++ b/src/com/essiembre/eclipse/i18n/resourcebundle/editors/Bundle.java...
true
true
public void refreshData() { IDocument doc = editor.getDocumentProvider().getDocument( editor.getEditorInput()); StringTokenizer tokenizer = new StringTokenizer(doc.get(), "\n\r"); Map data = new TreeMap(); List comments = new ArrayList(); while...
public void refreshData() { IDocument doc = editor.getDocumentProvider().getDocument( editor.getEditorInput()); StringTokenizer tokenizer = new StringTokenizer(doc.get(), "\n\r"); Map data = new TreeMap(); List comments = new ArrayList(); while...
diff --git a/src/main/java/org/sola/common/NetworkFolder.java b/src/main/java/org/sola/common/NetworkFolder.java index 4b8e674..a77e489 100644 --- a/src/main/java/org/sola/common/NetworkFolder.java +++ b/src/main/java/org/sola/common/NetworkFolder.java @@ -1,351 +1,351 @@ /** * **************************************...
true
true
public List<FileMetaData> getAllFiles(String fileNameFilter) { fileNameFilter = fileNameFilter == null ? "*" : fileNameFilter; List<FileMetaData> result = new ArrayList<FileMetaData>(); if (isNetworkFolder) { try { SmbFile file = new SmbFile(folder, networkAuth); ...
public List<FileMetaData> getAllFiles(String fileNameFilter) { fileNameFilter = fileNameFilter == null ? ".*" : fileNameFilter; List<FileMetaData> result = new ArrayList<FileMetaData>(); if (isNetworkFolder) { try { SmbFile file = new SmbFile(folder, networkAuth);...
diff --git a/src/main/java/com/drtshock/willie/command/management/KickCommandHandler.java b/src/main/java/com/drtshock/willie/command/management/KickCommandHandler.java index 53b2e5f..6eb2a63 100644 --- a/src/main/java/com/drtshock/willie/command/management/KickCommandHandler.java +++ b/src/main/java/com/drtshock/willi...
true
true
public void handle(Willie bot, Channel channel, User sender, String[] args) { if (args.length != 0) { if (channel.getVoices().contains(sender) || channel.getOps().contains(sender)) { if (channel.getUsers().contains(bot.getUser(args[0]))) { if (args.length == 1...
public void handle(Willie bot, Channel channel, User sender, String[] args) { if (args.length != 0) { if (channel.getVoices().contains(sender) || channel.getOps().contains(sender)) { if (channel.getUsers().contains(bot.getUser(args[0]))) { if (args.length == 1...
diff --git a/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/wizard/rule/DRLGenerator.java b/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/wizard/rule/DRLGenerator.java index 4645d453..dd52d379 100644 --- a/drools-eclipse/org.drools.eclipse/src/main/java/org/drools/eclipse/wizard...
true
true
public InputStream generatePackage(String packageName, boolean functions, boolean expander, InputStream template) throws IOException { String temp = readTemplate( template ); temp = doHeader(packageName, temp ); if (functions) { temp = functionsDec.matcher( temp ).replaceFirst( "...
public InputStream generatePackage(String packageName, boolean functions, boolean expander, InputStream template) throws IOException { String temp = readTemplate( template ); temp = doHeader(packageName, temp ); if (functions) { temp = functionsDec.matcher( temp ).replaceFirst( "...
diff --git a/src/main/java/org/oztrack/controller/AnalysisController.java b/src/main/java/org/oztrack/controller/AnalysisController.java index cfc59256..f67dcfb0 100644 --- a/src/main/java/org/oztrack/controller/AnalysisController.java +++ b/src/main/java/org/oztrack/controller/AnalysisController.java @@ -1,404 +1,404 ...
false
true
public void handleJSON( Authentication authentication, HttpServletRequest request, HttpServletResponse response, @ModelAttribute(value="analysis") Analysis analysis ) throws IOException, JSONException { if (!hasPermission(authentication, request, analysis, "read")) { ...
public void handleJSON( Authentication authentication, HttpServletRequest request, HttpServletResponse response, @ModelAttribute(value="analysis") Analysis analysis ) throws IOException, JSONException { if (!hasPermission(authentication, request, analysis, "read")) { ...
diff --git a/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/PlanDeploymentTests.java b/org.eclipse.virgo.kernel.deployer.test/src/test/java/org/eclipse/virgo/kernel/deployer/test/PlanDeploymentTests.java index 2862b4ec..cad819db 100644 --- a/org.eclipse.virgo.kernel.deployer...
true
true
private void testPlanDeploymentStartingEvents(File plan, String... candidateBsns) throws Exception { this.artifactListener.clear(); Set<ArtifactLifecycleEvent> expectedEventSet = new HashSet<ArtifactLifecycleEvent>(); // events expected due to explicit refresh; expectedEventSet.add...
private void testPlanDeploymentStartingEvents(File plan, String... candidateBsns) throws Exception { this.artifactListener.clear(); Set<ArtifactLifecycleEvent> expectedEventSet = new HashSet<ArtifactLifecycleEvent>(); // events expected due to explicit refresh; expectedEventSet.add...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java index 8bfc991e3..8be350581 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/JDIModelPresentation.java +...
true
true
protected String getThreadText(IJavaThread thread, boolean qualified) throws CoreException { StringBuffer key = new StringBuffer("thread_"); //$NON-NLS-1$ String[] args = null; if (thread.isDaemon()) { key.append("daemon_"); //$NON-NLS-1$ } if (thread.isSystemThread()) { key.append("system_"); //$NON-N...
protected String getThreadText(IJavaThread thread, boolean qualified) throws CoreException { StringBuffer key = new StringBuffer("thread_"); //$NON-NLS-1$ String[] args = null; if (thread.isDaemon()) { key.append("daemon_"); //$NON-NLS-1$ } if (thread.isSystemThread()) { key.append("system_"); //$NON-N...
diff --git a/task/src/main/uk/ac/starlink/task/MultiTaskInvoker.java b/task/src/main/uk/ac/starlink/task/MultiTaskInvoker.java index 9fe502e87..f5afb8282 100644 --- a/task/src/main/uk/ac/starlink/task/MultiTaskInvoker.java +++ b/task/src/main/uk/ac/starlink/task/MultiTaskInvoker.java @@ -1,241 +1,249 @@ package uk.ac....
false
true
public int invoke( String[] args ) { List argList = new ArrayList( Arrays.asList( args ) ); /* Process flags. */ boolean debug = false; boolean bench = false; int verbose = 0; for ( Iterator it = argList.iterator(); it.hasNext(); ) { String arg = (String)...
public int invoke( String[] args ) { List argList = new ArrayList( Arrays.asList( args ) ); /* Process flags. */ boolean debug = false; boolean bench = false; int verbose = 0; for ( Iterator it = argList.iterator(); it.hasNext(); ) { String arg = (String)...
diff --git a/src/org/mozilla/javascript/Context.java b/src/org/mozilla/javascript/Context.java index 456e115a..e397ad5a 100644 --- a/src/org/mozilla/javascript/Context.java +++ b/src/org/mozilla/javascript/Context.java @@ -1,2638 +1,2638 @@ /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- ...
true
true
private Object compileImpl(Scriptable scope, Reader sourceReader, String sourceString, String sourceName, int lineno, Object securityDomain, boolean returnFunction, Interpreter compiler, ...
private Object compileImpl(Scriptable scope, Reader sourceReader, String sourceString, String sourceName, int lineno, Object securityDomain, boolean returnFunction, Interpreter compiler, ...
diff --git a/Java/OpenmlWebapplication/src/org/openml/webapplication/ProcessDataset.java b/Java/OpenmlWebapplication/src/org/openml/webapplication/ProcessDataset.java index 200354c6..ff46ae44 100644 --- a/Java/OpenmlWebapplication/src/org/openml/webapplication/ProcessDataset.java +++ b/Java/OpenmlWebapplication/src/org...
true
true
public void process( Integer did ) throws Exception { JSONArray record = getRecord(did); String didStr = record.getString( 1 ) + "?session_hash=" + ash.getSessionHash(); // feature string should be reconverted to null, if it was NULL in mysql String featureStr = record.getString( 2 ).equals("") ? null : record...
public void process( Integer did ) throws Exception { JSONArray record = getRecord(did); String didStr = record.getString( 1 ) + "?session_hash=" + ash.getSessionHash(); // feature string should be reconverted to null, if it was NULL in mysql String featureStr = record.getString( 2 ).equals("") ? null : record...
diff --git a/app/controllers/TMController.java b/app/controllers/TMController.java index 87ee8d9..65fcf78 100644 --- a/app/controllers/TMController.java +++ b/app/controllers/TMController.java @@ -1,593 +1,593 @@ package controllers; import java.io.File; import java.lang.reflect.Method; import java.lang.reflect.T...
true
true
public static void renderFields(Object base, String[] fields) { Map<String, Object> values = new HashMap<String, Object>(); List<String> toResolve = new ArrayList<String>(); String formId = fields[0]; String[] fieldNames = new String[fields.length - 1]; for (int i = 1; i < f...
public static void renderFields(Object base, String[] fields) { Map<String, Object> values = new HashMap<String, Object>(); List<String> toResolve = new ArrayList<String>(); String formId = fields[0]; String[] fieldNames = new String[fields.length - 1]; for (int i = 1; i < f...
diff --git a/src/main/java/test/cli/cloudify/cloud/ec2/bigdata/TwitterExampleTest.java b/src/main/java/test/cli/cloudify/cloud/ec2/bigdata/TwitterExampleTest.java index f11b22f4..b351fa8d 100644 --- a/src/main/java/test/cli/cloudify/cloud/ec2/bigdata/TwitterExampleTest.java +++ b/src/main/java/test/cli/cloudify/cloud/e...
true
true
public void testTwitter() throws Exception { LogUtils.log("installing application " + streamingApplicationFolderName + " on " + this.getCloudName()); installApplicationAndWait(streamingApplicationFolderName); LogUtils.log("verifing successful installation"); restUrl = getRestUrl(); URL cassandraPuAdmin...
public void testTwitter() throws Exception { LogUtils.log("installing application " + streamingApplicationFolderName + " on " + this.getCloudName()); String applicationPath = ScriptUtils.getBuildPath() + "/recipes/apps/" + streamingApplicationFolderName + "/" + applicationFolderName; File applicationDslFilePa...
diff --git a/src/main/java/chord/project/DynamicAnalysis.java b/src/main/java/chord/project/DynamicAnalysis.java index c0a94091..f31df557 100755 --- a/src/main/java/chord/project/DynamicAnalysis.java +++ b/src/main/java/chord/project/DynamicAnalysis.java @@ -1,502 +1,502 @@ /* * Copyright (c) 2008-2009, Intel Corpor...
false
true
private void processTrace(String fileName) { try { initPass(); ByteBufferedFile buffer = new ByteBufferedFile(1024, fileName, true); long count = 0; while (!buffer.isDone()) { byte opcode = buffer.getByte(); count++; switch (opcode) { case EventKind.ENTER_METHOD: { int m = buffer...
private void processTrace(String fileName) { try { initPass(); ByteBufferedFile buffer = new ByteBufferedFile(1024, fileName, true); long count = 0; while (!buffer.isDone()) { byte opcode = buffer.getByte(); count++; switch (opcode) { case EventKind.ENTER_METHOD: { int m = buffer...
diff --git a/Library/src/views/AbstractViewer.java b/Library/src/views/AbstractViewer.java index e03b725..1f63dbd 100644 --- a/Library/src/views/AbstractViewer.java +++ b/Library/src/views/AbstractViewer.java @@ -1,107 +1,109 @@ package views; import java.awt.Dimension; import java.awt.event.ComponentEvent; impor...
true
true
public AbstractViewer() { MasterView.setWindowOpen(this); // this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); this.addComponentListener(new ComponentListener() { @Override public void componentShown(ComponentEvent e) { MasterView.setSearchfield(searchfield); } @Override public void compone...
public AbstractViewer() { MasterView.setWindowOpen(this); // this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); this.addComponentListener(new ComponentListener() { @Override public void componentShown(ComponentEvent e) { MasterView.setSearchfield(searchfield); } @Override public void compone...
diff --git a/common/codebase/src/main/java/com/thinkparity/codebase/TimeFormat.java b/common/codebase/src/main/java/com/thinkparity/codebase/TimeFormat.java index 350733af0..2143b265d 100644 --- a/common/codebase/src/main/java/com/thinkparity/codebase/TimeFormat.java +++ b/common/codebase/src/main/java/com/thinkparity/...
false
true
public String format(final Unit unit, final Long duration) { final MessageFormat format; final Object[] arguments = new Object[2]; switch (unit) { case AUTO: if (duration >= (1000L * 60L * 60L * 24L)) { return format(Unit.DAYS, duration); } els...
public String format(final Unit unit, final Long duration) { final MessageFormat format; final Object[] arguments = new Object[2]; switch (unit) { case AUTO: if (duration >= (1000L * 60L * 60L * 24L)) { return format(Unit.DAYS, duration); } els...
diff --git a/codemodel/src/com/sun/codemodel/JCommentPart.java b/codemodel/src/com/sun/codemodel/JCommentPart.java index 74a39555..15e51165 100644 --- a/codemodel/src/com/sun/codemodel/JCommentPart.java +++ b/codemodel/src/com/sun/codemodel/JCommentPart.java @@ -1,95 +1,95 @@ package com.sun.codemodel; import java....
true
true
protected void format( JFormatter f, String indent ) { if(!f.isPrinting()) { // quickly pass the types to JFormatter for( Object o : this ) if(o instanceof JClass) f.t((JClass)o); return; } if(!isEmpty()) f....
protected void format( JFormatter f, String indent ) { if(!f.isPrinting()) { // quickly pass the types to JFormatter for( Object o : this ) if(o instanceof JClass) f.g((JClass)o); return; } if(!isEmpty()) f....
diff --git a/src/jpcsp/Debugger/DisassemblerModule/Disassembler.java b/src/jpcsp/Debugger/DisassemblerModule/Disassembler.java index 8888ae46..c89f4cf7 100644 --- a/src/jpcsp/Debugger/DisassemblerModule/Disassembler.java +++ b/src/jpcsp/Debugger/DisassemblerModule/Disassembler.java @@ -1,670 +1,668 @@ /* This file is...
false
true
private void initComponents() { DisMenu = new javax.swing.JPopupMenu(); CopyAddress = new javax.swing.JMenuItem(); CopyAll = new javax.swing.JMenuItem(); BranchOrJump = new javax.swing.JMenuItem(); jList1 = new javax.swing.JList(model_1); ResetToPC = new javax.swing....
private void initComponents() { DisMenu = new javax.swing.JPopupMenu(); CopyAddress = new javax.swing.JMenuItem(); CopyAll = new javax.swing.JMenuItem(); BranchOrJump = new javax.swing.JMenuItem(); jList1 = new javax.swing.JList(model_1); ResetToPC = new javax.swing....
diff --git a/src/com/aragaer/jtt/graphics/ArrowView.java b/src/com/aragaer/jtt/graphics/ArrowView.java index 739850e..b3db521 100644 --- a/src/com/aragaer/jtt/graphics/ArrowView.java +++ b/src/com/aragaer/jtt/graphics/ArrowView.java @@ -1,28 +1,28 @@ package com.aragaer.jtt.graphics; import android.content.Context;...
true
true
protected void onSizeChanged(int w, int h, int oldw, int oldh) { path.reset(); path.moveTo(0, 0); path.rLineTo(w, 0); path.rLineTo(-w / 2, h); path.close(); }
protected void onSizeChanged(int w, int h, int oldw, int oldh) { path.reset(); path.moveTo(0, 1); path.rLineTo(w, 1); path.rLineTo(-w / 2, h); path.close(); }
diff --git a/E-EYE-O_DAOHibernateImpl/test-unit/com/jtbdevelopment/e_eye_o/hibernate/entities/impl/HibernateAbstractIdObjectTest.java b/E-EYE-O_DAOHibernateImpl/test-unit/com/jtbdevelopment/e_eye_o/hibernate/entities/impl/HibernateAbstractIdObjectTest.java index 632ff04..ee991ac 100644 --- a/E-EYE-O_DAOHibernateImpl/te...
true
true
protected void setUp() { context = new Mockery(); implFactory = context.mock(IdObjectFactory.class); idObjectReflectionHelper = context.mock(IdObjectReflectionHelper.class); context.checking(new Expectations() {{ allowing(idObjectReflectionHelper).getIdObjectInterfaceForC...
protected void setUp() { context = new Mockery(); implFactory = context.mock(IdObjectFactory.class); idObjectReflectionHelper = context.mock(IdObjectReflectionHelper.class); context.checking(new Expectations() {{ allowing(idObjectReflectionHelper).getIdObjectInterfaceForC...
diff --git a/jbi/src/main/java/org/apache/ode/jbi/BindingContextImpl.java b/jbi/src/main/java/org/apache/ode/jbi/BindingContextImpl.java index 6ccb4acbd..922f20a16 100644 --- a/jbi/src/main/java/org/apache/ode/jbi/BindingContextImpl.java +++ b/jbi/src/main/java/org/apache/ode/jbi/BindingContextImpl.java @@ -1,102 +1,10...
true
true
public PartnerRoleChannel createPartnerRoleChannel(QName processId, PortType portType, Endpoint initialPartnerEndpoint) { if (initialPartnerEndpoint != null) { ServiceEndpoint se = _ode.getContext().getEndpoint(initialPartnerEndpoint.serviceName,initialPartnerEndpoint.portNa...
public PartnerRoleChannel createPartnerRoleChannel(QName processId, PortType portType, Endpoint initialPartnerEndpoint) { if (initialPartnerEndpoint != null) { ServiceEndpoint se = _ode.getContext().getEndpoint(initialPartnerEndpoint.serviceName,initialPartnerEndpoint.portNa...
diff --git a/ecologylab/io/DownloadableFileToDisk.java b/ecologylab/io/DownloadableFileToDisk.java index 98589256..826dc6a4 100644 --- a/ecologylab/io/DownloadableFileToDisk.java +++ b/ecologylab/io/DownloadableFileToDisk.java @@ -1,175 +1,176 @@ package ecologylab.io; import java.io.BufferedOutputStream; import j...
false
true
public void performDownload() throws IOException { debug("performDownload() top"); if (downloadStarted) return; downloadStarted = true; //this gets the stream and sets the member field 'fileSize' // inputStream = getInputStream(zipSource); if (inputStream == null) inputStream = target.url().ope...
public void performDownload() throws IOException { debug("performDownload() top"); if (downloadStarted) return; downloadStarted = true; //this gets the stream and sets the member field 'fileSize' // inputStream = getInputStream(zipSource); if (inputStream == null) inputStream = target.url().ope...
diff --git a/src/com/bencvt/minecraft/buildregion/ui/window/GuiScreenHelp.java b/src/com/bencvt/minecraft/buildregion/ui/window/GuiScreenHelp.java index 54a5e03..234a5b5 100644 --- a/src/com/bencvt/minecraft/buildregion/ui/window/GuiScreenHelp.java +++ b/src/com/bencvt/minecraft/buildregion/ui/window/GuiScreenHelp.java...
true
true
public void initGui() { getLines(controller); buttonDone.setWidth(200).setPositionXY((width - buttonDone.getWidth())/2, height - 30); controlList.add(buttonDone); contents = new GuiSlot(mc, width, height, 16, height - 28, fontRenderer.FONT_HEIGHT + 1) { private boolean ...
public void initGui() { getLines(controller); buttonDone.setWidth(200).setPositionXY((width - buttonDone.getWidth())/2, height - 30); controlList.add(buttonDone); contents = new GuiSlot(mc, width, height, 16, height - 28, fontRenderer.FONT_HEIGHT + 1) { private boolean ...
diff --git a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/StateGraphSupport.java b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/StateGraphSupport.java index 95e4842e..7df900d7 100644 --- a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/et...
true
true
public PictogramElement add(IAddContext context) { StateGraph sg = (StateGraph) context.getNewObject(); ContainerShape targetContainer = (ContainerShape) context.getTargetContainer(); // CONTAINER SHAPE WITH RECTANGLE IPeCreateService peCreateService = Graphiti.getPeCreateService(); ContainerSh...
public PictogramElement add(IAddContext context) { StateGraph sg = (StateGraph) context.getNewObject(); ContainerShape targetContainer = (ContainerShape) context.getTargetContainer(); // CONTAINER SHAPE WITH RECTANGLE IPeCreateService peCreateService = Graphiti.getPeCreateService(); ContainerSh...
diff --git a/src/com/vividsolutions/wms/WMService.java b/src/com/vividsolutions/wms/WMService.java index 721327aa..10f94937 100644 --- a/src/com/vividsolutions/wms/WMService.java +++ b/src/com/vividsolutions/wms/WMService.java @@ -1,194 +1,195 @@ /* * The Unified Mapping Platform (JUMP) is an extensible, int...
true
true
public void initialize(boolean alertDifferingURL) throws IOException { // [UT] String req = "request=capabilities&WMTVER=1.0"; if( WMS_1_1_0.equals( wmsVersion) ){ req = "SERVICE=WMS&VERSION=1.1.0&REQUEST=GetCapabilities"; } else if ( WMS_1_1_1.equals( wmsVersion) ){ req = "SERVICE=WMS&VE...
public void initialize(boolean alertDifferingURL) throws IOException { // [UT] String req = "request=capabilities&WMTVER=1.0"; if( WMS_1_1_0.equals( wmsVersion) ){ req = "SERVICE=WMS&VERSION=1.1.0&REQUEST=GetCapabilities"; } else if ( WMS_1_1_1.equals( wmsVersion) ){ req = "SERVICE=WMS&VE...
diff --git a/Library/src/com/slidinglayer/SlidingLayer.java b/Library/src/com/slidinglayer/SlidingLayer.java index 70b60d6..6cfe5c6 100644 --- a/Library/src/com/slidinglayer/SlidingLayer.java +++ b/Library/src/com/slidinglayer/SlidingLayer.java @@ -1,877 +1,877 @@ /* * SlidingLayer.java * * Copyright (C) 2013 6...
true
true
public boolean onTouchEvent(MotionEvent ev) { if (!mEnabled || !mIsDragging && !mLastTouchAllowed && !allowSlidingFromHere(ev)) { return false; } final int action = ev.getAction(); if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL ...
public boolean onTouchEvent(MotionEvent ev) { if (!mEnabled || !mIsDragging && !mLastTouchAllowed && !allowSlidingFromHere(ev)) { return false; } final int action = ev.getAction(); if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL ...
diff --git a/srcj/com/sun/electric/tool/io/output/GDS.java b/srcj/com/sun/electric/tool/io/output/GDS.java index e7895f2f9..8d1765bb8 100755 --- a/srcj/com/sun/electric/tool/io/output/GDS.java +++ b/srcj/com/sun/electric/tool/io/output/GDS.java @@ -1,991 +1,993 @@ /* -*- tab-width: 4 -*- * * Electric(tm) VLSI Desi...
true
true
protected void writeCellGeom(CellGeom cellGeom) { // write this cell Cell cell = cellGeom.cell; outputBeginStruct(cell); // write all polys by Layer Set layers = cellGeom.polyMap.keySet(); for (Iterator it = layers.iterator(); it.hasNext();) { Layer layer = (Layer)it.next(); selectLayer(layer); ...
protected void writeCellGeom(CellGeom cellGeom) { // write this cell Cell cell = cellGeom.cell; outputBeginStruct(cell); // write all polys by Layer Set layers = cellGeom.polyMap.keySet(); for (Iterator it = layers.iterator(); it.hasNext();) { Layer layer = (Layer)it.next(); // No techno...
diff --git a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/structure/SetComponentClass.java b/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/structure/SetComponentClass.java index d6ed48193..a91bf1462 100644 --- a/cyklotron-ui/src/main/java/net/cyklotron/cms/modules/actions/structure/SetCom...
true
true
public void execute(Context context, Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, CoralSession coralSession) throws ProcessingException { try { String instance = parameters.get("instance"); long compon...
public void execute(Context context, Parameters parameters, MVCContext mvcContext, TemplatingContext templatingContext, HttpContext httpContext, CoralSession coralSession) throws ProcessingException { try { String instance = parameters.get("instance"); long compon...
diff --git a/app/src/com/halcyonwaves/apps/meinemediathek/threads/DownloadStreamThread.java b/app/src/com/halcyonwaves/apps/meinemediathek/threads/DownloadStreamThread.java index bc4a3ef..4d0b9dd 100644 --- a/app/src/com/halcyonwaves/apps/meinemediathek/threads/DownloadStreamThread.java +++ b/app/src/com/halcyonwaves/a...
true
true
public void run() { // Thread.currentThread().setName( String.format( "StreamDownloadTask(%s)", this.DOWNLOAD_NOTIFICATION_FILE_ID.toString() ) ); // since we currently don't know how big the file is, show a progress with an undefined state this.notificationBuilder.setProgress( 100, 0, true ); this.notifica...
public void run() { // Thread.currentThread().setName( String.format( "StreamDownloadTask(%s)", this.DOWNLOAD_NOTIFICATION_FILE_ID.toString() ) ); // since we currently don't know how big the file is, show a progress with an undefined state this.notificationBuilder.setProgress( 100, 0, true ); this.notifica...
diff --git a/src/main/java/hudson/remoting/Request.java b/src/main/java/hudson/remoting/Request.java index e2fbd8fb..8dbc77f3 100644 --- a/src/main/java/hudson/remoting/Request.java +++ b/src/main/java/hudson/remoting/Request.java @@ -1,259 +1,259 @@ package hudson.remoting; import java.io.IOException; import java...
true
true
public final hudson.remoting.Future<RSP> callAsync(final Channel channel) throws IOException { response=null; channel.pendingCalls.put(id,this); channel.send(this); return new hudson.remoting.Future<RSP>() { /** * The task cannot be cancelled. ...
public final hudson.remoting.Future<RSP> callAsync(final Channel channel) throws IOException { response=null; channel.pendingCalls.put(id,this); channel.send(this); return new hudson.remoting.Future<RSP>() { /** * The task cannot be cancelled. ...
diff --git a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java index e43511183..116777fbd 100644 --- a/src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java +++ b/src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java @@ -1,1054 ...
false
true
private void startHttpServer(final Configuration conf) throws IOException { // Kerberized SSL servers must be run from the host principal... DFSUtil.login(conf, DFSConfigKeys.DFS_NAMENODE_KEYTAB_FILE_KEY, DFSConfigKeys.DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY); UserGroupInformation ugi = UserGroupInf...
private void startHttpServer(final Configuration conf) throws IOException { if(UserGroupInformation.isSecurityEnabled()) { String httpsUser = conf.get(DFSConfigKeys.DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY); if(httpsUser == null) { LOG.warn(DFSConfigKeys.DFS_NAMENODE_KRB_HTTPS_USER_NAME_KEY + ...
diff --git a/src/java/com/scriptographer/adm/TableLayout.java b/src/java/com/scriptographer/adm/TableLayout.java index 1a56a2f3..2894054e 100644 --- a/src/java/com/scriptographer/adm/TableLayout.java +++ b/src/java/com/scriptographer/adm/TableLayout.java @@ -1,96 +1,96 @@ /* * Scriptographer * * This file is par...
true
true
private static double[] getSize(Object[] objects) { double[] size = new double[objects.length]; for (int i = 0; i < objects.length; i++) { double value; Object obj = objects[i]; if (obj instanceof String) { if ("fill".equalsIgnoreCase((String) obj)) value = FILL; else if ("prefered".equalsIgnoreCa...
private static double[] getSize(Object[] objects) { double[] size = new double[objects.length]; for (int i = 0; i < objects.length; i++) { double value; Object obj = objects[i]; if (obj instanceof String) { if ("fill".equalsIgnoreCase((String) obj)) value = FILL; else if ("preferred".equalsIgnoreC...
diff --git a/src/com/android/settings/cyanogenmod/QuickSettings.java b/src/com/android/settings/cyanogenmod/QuickSettings.java index 9ceb47a62..e9dc877a8 100644 --- a/src/com/android/settings/cyanogenmod/QuickSettings.java +++ b/src/com/android/settings/cyanogenmod/QuickSettings.java @@ -1,301 +1,305 @@ /* * Copyrig...
false
true
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); PreferenceScreen prefSet = getPreferenceScreen(); PackageManager pm = getPackageManager(); ContentResolver resolver = getActivity().getContentResolver(); mGeneralSettings ...
public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); PreferenceScreen prefSet = getPreferenceScreen(); PackageManager pm = getPackageManager(); ContentResolver resolver = getActivity().getContentResolver(); mGeneralSettings ...
diff --git a/src/org/python/core/PyTraceback.java b/src/org/python/core/PyTraceback.java index 80983067..6943fbd3 100644 --- a/src/org/python/core/PyTraceback.java +++ b/src/org/python/core/PyTraceback.java @@ -1,112 +1,112 @@ // Copyright (c) Corporation for National Research Initiatives package org.python.core; ...
true
true
private String getLine(String filename, int lineno) { RelativeFile file = new RelativeFile(filename); if (!file.isFile() || !file.canRead()) { // XXX: We should run through sys.path until the filename is found return null; } PyFile pyFile; try { ...
private String getLine(String filename, int lineno) { RelativeFile file = new RelativeFile(filename); if (!file.isFile() || !file.canRead()) { // XXX: We should run through sys.path until the filename is found return null; } PyFile pyFile; try { ...
diff --git a/source/ch/cyberduck/core/Preferences.java b/source/ch/cyberduck/core/Preferences.java index 3a87f8708..8b40d9b2a 100644 --- a/source/ch/cyberduck/core/Preferences.java +++ b/source/ch/cyberduck/core/Preferences.java @@ -1,344 +1,344 @@ package ch.cyberduck.core; /* * Copyright (c) 2005 David Kocher....
false
true
public void setDefaults() { this.defaults = new HashMap(); File APP_SUPPORT_DIR = null; if(null == NSBundle.mainBundle().objectForInfoDictionaryKey("application.support.path")) { APP_SUPPORT_DIR = new File( NSPathUtilities.stringByExpandingTildeInPath("~/Libr...
public void setDefaults() { this.defaults = new HashMap(); File APP_SUPPORT_DIR = null; if(null == NSBundle.mainBundle().objectForInfoDictionaryKey("application.support.path")) { APP_SUPPORT_DIR = new File( NSPathUtilities.stringByExpandingTildeInPath("~/Libr...
diff --git a/src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java b/src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java index 957268a..7e398dd 100644 --- a/src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl.java +++ b/src/main/java/net/spy/memcached/protocol/TCPMemcachedNodeImpl....
false
true
public final void fillWriteBuffer(boolean shouldOptimize) { if(toWrite == 0 && readQ.remainingCapacity() > 0) { getWbuf().clear(); Operation o=getCurrentWriteOp(); if (o != null && (o.isCancelled())) { getLogger().debug("Not writing cancelled op."); ...
public final void fillWriteBuffer(boolean shouldOptimize) { if(toWrite == 0 && readQ.remainingCapacity() > 0) { getWbuf().clear(); Operation o=getCurrentWriteOp(); if (o != null && (o.isCancelled())) { getLogger().debug("Not writing cancelled op."); Operation cancelledOp = removeCurrentWriteOp(); ...
diff --git a/src/com/android/settings/inputmethod/UserDictionaryAddWordContents.java b/src/com/android/settings/inputmethod/UserDictionaryAddWordContents.java index d33f8c34a..68b5c482f 100644 --- a/src/com/android/settings/inputmethod/UserDictionaryAddWordContents.java +++ b/src/com/android/settings/inputmethod/UserDi...
true
true
public ArrayList<LocaleRenderer> getLocalesList(final Activity activity) { final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); // Remove our locale if it's in, because we're always gonna put it at the top locales.remove(mLocale); // mLocale may not be nu...
public ArrayList<LocaleRenderer> getLocalesList(final Activity activity) { final TreeSet<String> locales = UserDictionaryList.getUserDictionaryLocalesSet(activity); // Remove our locale if it's in, because we're always gonna put it at the top locales.remove(mLocale); // mLocale may not be nu...
diff --git a/src/org/encog/workbench/dialogs/training/hopfield/InputHopfield.java b/src/org/encog/workbench/dialogs/training/hopfield/InputHopfield.java index 4294d185..06670408 100644 --- a/src/org/encog/workbench/dialogs/training/hopfield/InputHopfield.java +++ b/src/org/encog/workbench/dialogs/training/hopfield/Inpu...
true
true
public InputHopfield(final Frame owner) { super(owner); setTitle("Train Hopfield Layers"); this.setSize(300, 240); this.setLocation(200, 100); final Container content = getBodyPanel(); content.setLayout(new GridLayout(6, 1, 10, 10)); }
public InputHopfield(final Frame owner) { super(owner); setTitle("Train Hopfield Layers"); this.setSize(300, 240); this.setLocation(200, 100); final Container content = getBodyPanel(); content.setLayout(new GridLayout(3, 2, 10, 10)); }
diff --git a/src/de/typology/googleNGrams/NGramParserMain.java b/src/de/typology/googleNGrams/NGramParserMain.java index 414a65bc..69445fb5 100644 --- a/src/de/typology/googleNGrams/NGramParserMain.java +++ b/src/de/typology/googleNGrams/NGramParserMain.java @@ -1,41 +1,41 @@ package de.typology.googleNGrams; impor...
true
true
public static void run(String googleInputPath, String parsedOutputPath, String normalizedOutputPath) throws IOException { IOHelper.log("getting file list"); ArrayList<File> files = IOHelper .getDirectory(new File(googleInputPath)); for (File file : files) { long startTime = System.currentTimeMillis(); ...
public static void run(String googleInputPath, String parsedOutputPath, String normalizedOutputPath) throws IOException { IOHelper.log("getting file list"); ArrayList<File> files = IOHelper .getDirectory(new File(googleInputPath)); for (File file : files) { long startTime = System.currentTimeMillis(); ...
diff --git a/src/test/java/br/com/six2six/template/StudentTemplate.java b/src/test/java/br/com/six2six/template/StudentTemplate.java index 47672ba..15457d2 100644 --- a/src/test/java/br/com/six2six/template/StudentTemplate.java +++ b/src/test/java/br/com/six2six/template/StudentTemplate.java @@ -1,50 +1,50 @@ package ...
true
true
public void load() { Fixture.of(Student.class).addTemplate("valid", new Rule(){{ add("id", sequence(1L, 1)); add("firstName", firstName()); add("lastName", lastName()); add("gender", random(Gender.class)); add("bestScore", regex("\\d{2}\\.\\d{3}")); add("testsTaken", regex("\\d{2}")); add("idCar...
public void load() { Fixture.of(Student.class).addTemplate("valid", new Rule(){{ add("id", sequence(1L, 1)); add("firstName", firstName()); add("lastName", lastName()); add("gender", random(Gender.class)); add("bestScore", regex("\\d{2}\\.\\d{3}")); add("testsTaken", regex("\\d{1}1")); add("idCa...
diff --git a/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java b/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java index a87162a..d84e515 100644 --- a/src/main/java/org/dasein/cloud/openstack/nova/os/compute/NovaServer.java +++ b/src/main/java/org/dasein/cloud/openstack/nov...
true
true
private @Nullable VirtualMachine toVirtualMachine(@Nullable JSONObject server, @Nonnull Iterable<IpAddress> ipv4, @Nonnull Iterable<IpAddress> ipv6, @Nonnull Iterable<VLAN> networks) throws JSONException, InternalException, CloudException { if( server == null ) { return null; } V...
private @Nullable VirtualMachine toVirtualMachine(@Nullable JSONObject server, @Nonnull Iterable<IpAddress> ipv4, @Nonnull Iterable<IpAddress> ipv6, @Nonnull Iterable<VLAN> networks) throws JSONException, InternalException, CloudException { if( server == null ) { return null; } V...
diff --git a/src/main/java/com/github/ferstl/spring/jdbc/oracle/OracleJdbcTemplate.java b/src/main/java/com/github/ferstl/spring/jdbc/oracle/OracleJdbcTemplate.java index 870d946..763ac28 100644 --- a/src/main/java/com/github/ferstl/spring/jdbc/oracle/OracleJdbcTemplate.java +++ b/src/main/java/com/github/ferstl/spring...
true
true
public <T> int[][] batchUpdate( String sql, Collection<T> batchArgs, int batchSize, ParameterizedPreparedStatementSetter<T> ppss) { if (this.logger.isDebugEnabled()) { this.logger.debug("Executing SQL batch update [" + sql + "] with a batch size of " + batchSize); } try { return execute(...
public <T> int[][] batchUpdate( String sql, Collection<T> batchArgs, int batchSize, ParameterizedPreparedStatementSetter<T> ppss) { if (this.logger.isDebugEnabled()) { this.logger.debug("Executing SQL batch update [" + sql + "] with a batch size of " + batchSize); } try { return execut...
diff --git a/Slick/src/org/newdawn/slick/Color.java b/Slick/src/org/newdawn/slick/Color.java index 60235d0..143fb76 100644 --- a/Slick/src/org/newdawn/slick/Color.java +++ b/Slick/src/org/newdawn/slick/Color.java @@ -1,317 +1,317 @@ package org.newdawn.slick; import java.io.Serializable; import java.nio.FloatBuffe...
true
true
public Color(int value) { int r = (value & 0x00FF0000) >> 16; int g = (value & 0x0000FF00) >> 8; int b = (value & 0x000000FF); int a = (value & 0xFF000000) >> 24; if (a == 0) { a = 255; } this.r = r / 255.0f; this.g = g / 255.0f; this.b = b / 255.0f; this.a = a / 255.0f; }
public Color(int value) { int r = (value & 0x00FF0000) >> 16; int g = (value & 0x0000FF00) >> 8; int b = (value & 0x000000FF); int a = (value & 0xFF000000) >> 24; if (a < 0) { a += 255; } this.r = r / 255.0f; this.g = g / 255.0f; this.b = b / 255.0f; this.a = a / 255.0f; }
diff --git a/web/front/src/java/org/jdesktop/wonderland/front/resources/ServerDetailsResource.java b/web/front/src/java/org/jdesktop/wonderland/front/resources/ServerDetailsResource.java index fb52ebc66..8635ff83c 100644 --- a/web/front/src/java/org/jdesktop/wonderland/front/resources/ServerDetailsResource.java +++ b/w...
true
true
public Response getServerDetails() { ServerDetails out = ServerInfo.getServerDetails().clone(); // replace the URL in the default with one based on the client's // request out.setServerURL(getServerURL()); try { ResponseBuilder rb = Response.ok(out); ...
public Response getServerDetails() { ServerDetails out = ServerInfo.getServerDetails().clone(); // replace the URL in the default with one based on the client's // request // out.setServerURL(getServerURL()); try { ResponseBuilder rb = Response.ok(out); ...
diff --git a/src/net/sf/freecol/client/gui/panel/ReportColonyPanel.java b/src/net/sf/freecol/client/gui/panel/ReportColonyPanel.java index 1220d61e2..58ab3f3bc 100644 --- a/src/net/sf/freecol/client/gui/panel/ReportColonyPanel.java +++ b/src/net/sf/freecol/client/gui/panel/ReportColonyPanel.java @@ -1,942 +1,942 @@ /*...
true
true
private void updateColony(Colony colony) { final Specification spec = getSpecification(); final GoodsType foodType = spec.getPrimaryFoodType(); final UnitType colonistType = spec.getUnitType("model.unit.freeColonist"); final ImageLibrary lib = getCanvas().getImageLibrary(...
private void updateColony(Colony colony) { final Specification spec = getSpecification(); final GoodsType foodType = spec.getPrimaryFoodType(); final UnitType colonistType = spec.getUnitType("model.unit.freeColonist"); final ImageLibrary lib = getCanvas().getImageLibrary(...
diff --git a/src/dirmi/Sessions.java b/src/dirmi/Sessions.java index 94ded2c..d4d90f8 100644 --- a/src/dirmi/Sessions.java +++ b/src/dirmi/Sessions.java @@ -1,123 +1,123 @@ /* * Copyright 2007 Brian S O'Neill * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exc...
true
true
public static Session createSession(Connection con, Object server, String name) throws IOException { if (name == null) { name = "Session"; } else { name = "Session-" + name; } // FIXME: control max threads Executor executor = new ThreadPoo...
public static Session createSession(Connection con, Object server, String name) throws IOException { if (name == null) { name = "Session"; } else { name = "Session-" + name; } // FIXME: control max threads Executor executor = new ThreadPoo...
diff --git a/engine/src/test/java/org/teiid/dqp/internal/process/TestDQPCore.java b/engine/src/test/java/org/teiid/dqp/internal/process/TestDQPCore.java index da829d46ed..960ab3608d 100644 --- a/engine/src/test/java/org/teiid/dqp/internal/process/TestDQPCore.java +++ b/engine/src/test/java/org/teiid/dqp/internal/proces...
true
true
@Test public void testBufferLimit() throws Exception { //the sql should return 100 rows String sql = "SELECT A.IntKey FROM BQT1.SmallA as A, BQT1.SmallA as B"; //$NON-NLS-1$ String userName = "1"; //$NON-NLS-1$ String sessionid = "1"; //$NON-NLS-1$ RequestMessage reqMsg...
@Test public void testBufferLimit() throws Exception { //the sql should return 100 rows String sql = "SELECT A.IntKey FROM BQT1.SmallA as A, BQT1.SmallA as B"; //$NON-NLS-1$ String userName = "1"; //$NON-NLS-1$ String sessionid = "1"; //$NON-NLS-1$ RequestMessage reqMsg...
diff --git a/src/biz/bokhorst/xprivacy/PackageChange.java b/src/biz/bokhorst/xprivacy/PackageChange.java index 4a64016f..83937bab 100644 --- a/src/biz/bokhorst/xprivacy/PackageChange.java +++ b/src/biz/bokhorst/xprivacy/PackageChange.java @@ -1,160 +1,160 @@ package biz.bokhorst.xprivacy; import android.app.Notific...
true
true
public void onReceive(Context context, Intent intent) { // Check uri Uri inputUri = Uri.parse(intent.getDataString()); if (inputUri.getScheme().equals("package")) { // Get data String packageName = inputUri.getSchemeSpecificPart(); int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); boolean replacing ...
public void onReceive(Context context, Intent intent) { // Check uri Uri inputUri = Uri.parse(intent.getDataString()); if (inputUri.getScheme().equals("package")) { // Get data String packageName = inputUri.getSchemeSpecificPart(); int uid = intent.getIntExtra(Intent.EXTRA_UID, 0); boolean replacing ...
diff --git a/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskList.java b/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskList.java index 99d3ac19..fcc66a0b 100644 --- a/src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTaskList.java +++ b/src/org/openstreetmap/josm/actions/down...
true
true
public void run() { progressMonitor.finishTask(); String errors = ""; for(DownloadTask dt : osmTasks) { String err = dt.getErrorMessage(); if(err.equals("")) { continue; } errors += "<br>* " + err; } if(! error...
public void run() { progressMonitor.finishTask(); String errors = ""; for(DownloadTask dt : osmTasks) { String err = dt.getErrorMessage(); if(err.equals("")) { continue; } errors += "<br>* " + err; } if(! error...
diff --git a/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/wiggle/WiggleRequestHandler.java b/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/wiggle/WiggleRequestHandler.java index 1642a889a..6daab3744 100644 --- a/atlas-web/src/main/java/uk/ac/ebi/gxa/requesthandlers/wiggle/WiggleRequestHandler.java +++ ...
false
true
public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/plain; charset=UTF-8"); final PrintWriter out = response.getWriter(); String uri = request.getRequestURI(); uri = URLDecoder.deco...
public void handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/plain; charset=UTF-8"); final PrintWriter out = response.getWriter(); String uri = request.getRequestURI(); //uri = URLDecoder.de...
diff --git a/project/src/snozama/amazons/mechanics/SnozamaHeuristic.java b/project/src/snozama/amazons/mechanics/SnozamaHeuristic.java index 24cc2e4..b51f829 100644 --- a/project/src/snozama/amazons/mechanics/SnozamaHeuristic.java +++ b/project/src/snozama/amazons/mechanics/SnozamaHeuristic.java @@ -1,800 +1,797 @@ pa...
true
true
public static int minPliesToSquare(Board board) { int whiteAdv = 0; byte[][] markedBoard = board.copy(); /* * Given a square on the board, find the closest player of the given player * Strategy: * Use a bi-directional approach * Start with position of amazons and expand, marking each square they c...
public static int minPliesToSquare(Board board) { int whiteAdv = 0; byte[][] markedBoard = board.copy(); /* * Given a square on the board, find the closest player of the given player * Strategy: * Use a bi-directional approach * Start with position of amazons and expand, marking each square they c...
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/parsers/custom/CustomEventsTable.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/parsers/custom/CustomEventsTable.java index 22e8defce..83c369442 100644 --- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclip...
true
true
protected void createColumnHeaders() { if (fDefinition == null) return; List<ColumnData> columnData = new LinkedList<ColumnData>(); for (OutputColumn outputColumn : fDefinition.outputs) { ColumnData column = new ColumnData(outputColumn.name, 0, SWT.LEFT); columnData.add(column); } setColumn...
protected void createColumnHeaders() { if (fDefinition == null) return; List<ColumnData> columnData = new LinkedList<ColumnData>(); for (OutputColumn outputColumn : fDefinition.outputs) { ColumnData column = new ColumnData(outputColumn.name, 0, SWT.LEFT); columnData.add(column); } setColumn...
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/PatchServiceImpl.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/PatchServiceImpl.java index 54b3b183b..6248388f7 100644 --- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/impl/PatchSer...
true
true
public synchronized void apply(Patch patch) { Graph graph = graphService.getGraph(); if(patches.containsKey(patch.getId())) { expire(patches.get(patch.getId())); } patch.apply(graph); patches.put(patch.getId(), patch); if (patch instanceof AlertPatch) { ...
public synchronized void apply(Patch patch) { Graph graph = graphService.getGraph(); if(patches.containsKey(patch.getId())) { expire(patches.get(patch.getId())); } patch.apply(graph); patches.put(patch.getId(), patch); if (patch instanceof AlertPatch) { ...
diff --git a/openejb3/container/openejb-core/src/test/java/org/apache/openejb/assembler/classic/MethodTransactionInfoComparatorTest.java b/openejb3/container/openejb-core/src/test/java/org/apache/openejb/assembler/classic/MethodTransactionInfoComparatorTest.java index e1821fe02..1962dee15 100644 --- a/openejb3/containe...
true
true
public void testOrdering() throws Exception { ArrayList<MethodTransactionInfo> expected = new ArrayList<MethodTransactionInfo>(); MethodTransactionInfo info = null; MethodInfo method = null; // Package Interceptors (aka Default Interceptors) /////////////// info = add(expe...
public void testOrdering() throws Exception { ArrayList<MethodTransactionInfo> expected = new ArrayList<MethodTransactionInfo>(); MethodTransactionInfo info = null; MethodInfo method = null; // Package Interceptors (aka Default Interceptors) /////////////// info = add(expe...
diff --git a/example/com/palantir/opensource/sysmon/example/SimpleSysmonExample.java b/example/com/palantir/opensource/sysmon/example/SimpleSysmonExample.java index c1b9c11..b967121 100644 --- a/example/com/palantir/opensource/sysmon/example/SimpleSysmonExample.java +++ b/example/com/palantir/opensource/sysmon/example/...
true
true
public static final void main(String[] args) throws Exception { SysmonDaemon.configureDefaultLogging(); // empty config picks up the defaults SysmonDaemon daemon = new SysmonDaemon(null); // daemon is now running final MBeanServer server = ManagementFactory.getPlatformMBeanServer(); ObjectName all...
public static final void main(String[] args) throws Exception { SysmonDaemon.configureDefaultLogging(); // empty config picks up the defaults SysmonDaemon daemon = new SysmonDaemon(null); // daemon is now running final MBeanServer server = ManagementFactory.getPlatformMBeanServer(); ObjectName all...
diff --git a/src/main/java/org/encog/ml/data/buffer/codec/CSVDataCODEC.java b/src/main/java/org/encog/ml/data/buffer/codec/CSVDataCODEC.java index f2dffc42b..f4065177b 100644 --- a/src/main/java/org/encog/ml/data/buffer/codec/CSVDataCODEC.java +++ b/src/main/java/org/encog/ml/data/buffer/codec/CSVDataCODEC.java @@ -1,2...
true
true
public final boolean read(final double[] input, final double[] ideal, double[] significance) { if (this.readCSV.next()) { int index = 0; for (int i = 0; i < input.length; i++) { input[i] = this.readCSV.getDouble(index++); } for (int i = 0; i < ideal.length; i++) { ideal[i] = this.readCSV.getD...
public final boolean read(final double[] input, final double[] ideal, double[] significance) { if (this.readCSV.next()) { int index = 0; for (int i = 0; i < input.length; i++) { input[i] = this.readCSV.getDouble(index++); } for (int i = 0; i < ideal.length; i++) { ideal[i] = this.readCSV.getD...
diff --git a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogic/SPPBizLogic.java b/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogic/SPPBizLogic.java index 45ae985d7..88e0c870d 100644 --- a/software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/bizlogic/...
true
true
public String[] getAllSPPEventFormNames(Map<String, Long> dynamicEventMap) { dynamicEventMap.clear(); EntityCache cache = EntityCache.getInstance(); EntityGroupInterface entityGroup = cache.getEntityGroupById(1L); EntityInterface actionRecordEntry = entityGroup .getEntityByName("edu.wustl.catissuecore.dom...
public String[] getAllSPPEventFormNames(Map<String, Long> dynamicEventMap) { dynamicEventMap.clear(); EntityCache cache = EntityCache.getInstance(); EntityGroupInterface entityGroup = cache.getEntityGroupById(1L); EntityInterface actionRecordEntry = entityGroup .getEntityByName("edu.wustl.catissuecore.dom...
diff --git a/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java b/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java index 6e6dc199..e0ef4e7d 100644 --- a/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java +++ b/src/test/cli/cloudify/InternalUSMPuServiceDownTest.java @@ -1,151 +1,152 @@ package test.cli...
false
true
public void tomcatServiceDownAndCorruptedTest() throws IOException, InterruptedException, PackagingException { String serviceDir = ScriptUtils.getBuildPath() + "/recipes/tomcat"; String command = "connect " + this.restUrl + ";" + "install-service " + "--verbose -timeout 10 " + serviceDir; try { LogUtils.lo...
public void tomcatServiceDownAndCorruptedTest() throws IOException, InterruptedException, PackagingException { String serviceDir = ScriptUtils.getBuildPath() + "/recipes/tomcat"; String command = "connect " + this.restUrl + ";" + "install-service " + "--verbose -timeout 10 " + serviceDir; try { LogUtils.lo...
diff --git a/src/main/java/com/englishtown/vertx/jersey/JerseyModule.java b/src/main/java/com/englishtown/vertx/jersey/JerseyModule.java index 20f77e2..08b7338 100644 --- a/src/main/java/com/englishtown/vertx/jersey/JerseyModule.java +++ b/src/main/java/com/englishtown/vertx/jersey/JerseyModule.java @@ -1,132 +1,132 @@...
true
true
ResourceConfig getResourceConfig(JsonObject config) { JsonArray resources = config.getArray(CONFIG_RESOURCES, null); if (resources == null || resources.size() == 0) { throw new RuntimeException("At lease one resource package name must be specified in the config " + ...
ResourceConfig getResourceConfig(JsonObject config) { JsonArray resources = config.getArray(CONFIG_RESOURCES, null); if (resources == null || resources.size() == 0) { throw new RuntimeException("At lease one resource package name must be specified in the config " + ...
diff --git a/plugin/src/de/unisb/cs/depend/ccs_sem/plugin/actions/ExportProgram.java b/plugin/src/de/unisb/cs/depend/ccs_sem/plugin/actions/ExportProgram.java index 1b1c5eb..dbcfaab 100644 --- a/plugin/src/de/unisb/cs/depend/ccs_sem/plugin/actions/ExportProgram.java +++ b/plugin/src/de/unisb/cs/depend/ccs_sem/plugin/ac...
true
true
public void run() { final IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); final IWorkbenchPage activePage = activeWorkbenchWindow == null ? null : activeWorkbenchWindow.getActivePage(); final IEditorPart editor = activePage == null ? null : acti...
public void run() { final IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); final IWorkbenchPage activePage = activeWorkbenchWindow == null ? null : activeWorkbenchWindow.getActivePage(); final IEditorPart editor = activePage == null ? null : acti...
diff --git a/wings/src/org/wings/plaf/compiler/TemplateParser.java b/wings/src/org/wings/plaf/compiler/TemplateParser.java index 18a6b8bb..d7deed30 100644 --- a/wings/src/org/wings/plaf/compiler/TemplateParser.java +++ b/wings/src/org/wings/plaf/compiler/TemplateParser.java @@ -1,1003 +1,1003 @@ /* -*- java -*- * $I...
true
true
public void generate(File directory, List outProps) throws Exception { if (anyError) return; if (! directory.exists()) { directory.mkdir(); } else { if (!directory.isDirectory()) throw new IllegalArgumentException(directory + " is n...
public void generate(File directory, List outProps) throws Exception { if (anyError) return; if (! directory.exists()) { directory.mkdir(); } else { if (!directory.isDirectory()) throw new IllegalArgumentException(directory + " is n...
diff --git a/jbi/src/main/java/org/apache/ode/jbi/OdeService.java b/jbi/src/main/java/org/apache/ode/jbi/OdeService.java index 9f4c8e745..966aea82a 100755 --- a/jbi/src/main/java/org/apache/ode/jbi/OdeService.java +++ b/jbi/src/main/java/org/apache/ode/jbi/OdeService.java @@ -1,317 +1,317 @@ /* * Licensed to the Apa...
true
true
public void onJbiMessageExchange(javax.jbi.messaging.MessageExchange jbiMex) throws MessagingException { if (jbiMex.getRole() != javax.jbi.messaging.MessageExchange.Role.PROVIDER) { String errmsg = "Message exchange is not in PROVIDER role as expected: " + jbiMex.getExchangeId(); __l...
public void onJbiMessageExchange(javax.jbi.messaging.MessageExchange jbiMex) throws MessagingException { if (jbiMex.getRole() != javax.jbi.messaging.MessageExchange.Role.PROVIDER) { String errmsg = "Message exchange is not in PROVIDER role as expected: " + jbiMex.getExchangeId(); __l...
diff --git a/src/be/deadba/ampd/MPDConf.java b/src/be/deadba/ampd/MPDConf.java index 6173144..08bec05 100644 --- a/src/be/deadba/ampd/MPDConf.java +++ b/src/be/deadba/ampd/MPDConf.java @@ -1,204 +1,206 @@ /* * Copyright (C) 2013 Thomas Guillem * * This file is part of aMPD. * * aMPD is free software: you can...
true
true
public static synchronized void reload(Context ctx) { Entries entries = new Entries(); SharedPreferences sp = getSharedPreferences(ctx); String musicDirectory = sp.getString("mpd_music_directory", MPDConf.DEFAULT_MUSIC_DIRECTORY); String lastMusicDirectory = sp.getString("last_music...
public static synchronized void reload(Context ctx) { Entries entries = new Entries(); SharedPreferences sp = getSharedPreferences(ctx); String musicDirectory = sp.getString("mpd_music_directory", MPDConf.DEFAULT_MUSIC_DIRECTORY); String lastMusicDirectory = sp.getString("last_music...
diff --git a/src/de/electricdynamite/pasty/ClipboardFragment.java b/src/de/electricdynamite/pasty/ClipboardFragment.java index 7231f72..aee3095 100644 --- a/src/de/electricdynamite/pasty/ClipboardFragment.java +++ b/src/de/electricdynamite/pasty/ClipboardFragment.java @@ -1,560 +1,561 @@ package de.electricdynamite.pa...
true
true
public void onLoadFinished(Loader<PastyLoader.PastyResponse> loader, PastyLoader.PastyResponse response) { ProgressBar pbLoading = (ProgressBar) getSherlockActivity().findViewById(R.id.progressbar_downloading); pbLoading.setVisibility(View.GONE); pbLoading = null; TextView mHelpTextBig = (TextView) getSh...
public void onLoadFinished(Loader<PastyLoader.PastyResponse> loader, PastyLoader.PastyResponse response) { ProgressBar pbLoading = (ProgressBar) getSherlockActivity().findViewById(R.id.progressbar_downloading); pbLoading.setVisibility(View.GONE); pbLoading = null; TextView mHelpTextBig = (TextView) getSh...
diff --git a/src/main/java/com/ai/myplugin/sensor/LocationSensor.java b/src/main/java/com/ai/myplugin/sensor/LocationSensor.java index ebca7a3..cc13c07 100644 --- a/src/main/java/com/ai/myplugin/sensor/LocationSensor.java +++ b/src/main/java/com/ai/myplugin/sensor/LocationSensor.java @@ -1,224 +1,223 @@ package com.ai...
false
true
public TestResult execute(TestSessionContext testSessionContext) { log.info("execute "+ getName() + ", sensor type:" +this.getClass().getName()); if(getProperty(DISTANCE) == null) throw new RuntimeException("distance not set"); Object rt1 = testSessionContext.getAttribute(RUNTIM...
public TestResult execute(TestSessionContext testSessionContext) { log.info("execute "+ getName() + ", sensor type:" +this.getClass().getName()); if(getProperty(DISTANCE) == null) throw new RuntimeException("distance not set"); Object rt1 = testSessionContext.getAttribute(RUNTIM...
diff --git a/Hadoop/src/main/java/uk/bl/wap/hadoop/ArchiveFileRecordReader.java b/Hadoop/src/main/java/uk/bl/wap/hadoop/ArchiveFileRecordReader.java index 4b293a25..c236a0a6 100644 --- a/Hadoop/src/main/java/uk/bl/wap/hadoop/ArchiveFileRecordReader.java +++ b/Hadoop/src/main/java/uk/bl/wap/hadoop/ArchiveFileRecordReade...
false
true
public boolean next( Text key, WritableArchiveRecord value ) throws IOException { boolean found = false; while( !found ) { boolean hasNext = false; try { hasNext = iterator.hasNext(); } catch( Exception e ) { System.err.println( e.toString() ); hasNext = false; } try { if( hasNext )...
public boolean next( Text key, WritableArchiveRecord value ) throws IOException { boolean found = false; while( !found ) { boolean hasNext = false; try { hasNext = iterator.hasNext(); } catch( Exception e ) { System.err.println( e.toString() ); hasNext = false; } try { if( hasNext )...
diff --git a/test/src/org/omegat/filters/HTMLFilter2Test.java b/test/src/org/omegat/filters/HTMLFilter2Test.java index f4a43be5..a1536fdb 100644 --- a/test/src/org/omegat/filters/HTMLFilter2Test.java +++ b/test/src/org/omegat/filters/HTMLFilter2Test.java @@ -1,55 +1,55 @@ /*********************************************...
true
true
public void testLoad() throws Exception { String f = "test/data/filters/html/file-HTMLFilter2.html"; IProject.FileInfo fi = loadSourceFiles(new HTMLFilter2(), f); checkMultiStart(fi, f); checkMulti("This is first line.", null, null, "", "This is second line.", null); checkMu...
public void testLoad() throws Exception { String f = "test/data/filters/html/file-HTMLFilter2.html"; IProject.FileInfo fi = loadSourceFiles(new HTMLFilter2(), f); checkMultiStart(fi, f); checkMulti("This is first line.", null, null, "", "This is second line.", ""); checkMult...
diff --git a/src/main/java/com/datasalt/pangolin/mapred/joiner/MultiJoiner.java b/src/main/java/com/datasalt/pangolin/mapred/joiner/MultiJoiner.java index 8decaed8..d32a547c 100644 --- a/src/main/java/com/datasalt/pangolin/mapred/joiner/MultiJoiner.java +++ b/src/main/java/com/datasalt/pangolin/mapred/joiner/MultiJoine...
false
true
public Job getJob() throws IOException { if(job == null) { job = new Job(conf, name); HadoopUtils.deleteIfExists(FileSystem.get(conf), outputPath); job.setJarByClass(reducer); job.setReducerClass((jarByClass != null) ? jarByClass : reducer); job.setMapOutputValueClass(MultiJoinDatum.class); job....
public Job getJob() throws IOException { if(job == null) { job = new Job(conf, name); HadoopUtils.deleteIfExists(FileSystem.get(conf), outputPath); job.setJarByClass((jarByClass != null) ? jarByClass : reducer); job.setReducerClass(reducer); job.setMapOutputValueClass(MultiJoinDatum.class); job....
diff --git a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java index f1816e2c7..e68858069 100644 --- a/src/main/java/net/aufdemrand/denizen/objects/dLocation.java +++ b/src/main/java/net/aufdemrand/denizen/objects/dLocation.java @@ -1,1041 +1,1041 ...
true
true
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <--[tag] // @attribute <l@location.biome.formatted> // @returns Element // @description // Returns the formatted biome name at the location. // --> if (attribute....
public String getAttribute(Attribute attribute) { if (attribute == null) return null; // <--[tag] // @attribute <l@location.biome.formatted> // @returns Element // @description // Returns the formatted biome name at the location. // --> if (attribute....
diff --git a/plugins/org.eclipse.m2m.atl.core.ant/src_ant/org/eclipse/m2m/atl/core/ant/tasks/ATLModelTransformationTask.java b/plugins/org.eclipse.m2m.atl.core.ant/src_ant/org/eclipse/m2m/atl/core/ant/tasks/ATLModelTransformationTask.java index fff07311..d07c424a 100644 --- a/plugins/org.eclipse.m2m.atl.core.ant/src_an...
true
true
public void execute() throws BuildException { log(Messages.getString("ATLModelTransformationTask.MSG", asmPath.toString(), getLauncherName())); //$NON-NLS-1$ ILauncher launcherInstance = getLauncher(); launcherInstance.initialize(options); if (asmPath == null) { error(Messages.getString("ATLModelTransform...
public void execute() throws BuildException { log(Messages.getString("ATLModelTransformationTask.MSG", asmPath.toString(), getLauncherName())); //$NON-NLS-1$ ILauncher launcherInstance = getLauncher(); launcherInstance.initialize(options); if (asmPath == null) { error(Messages.getString("ATLModelTransform...
diff --git a/brooklyn-marklogic/src/main/java/io/cloudsoft/marklogic/brooklynapplications/MarkLogicTestApplication.java b/brooklyn-marklogic/src/main/java/io/cloudsoft/marklogic/brooklynapplications/MarkLogicTestApplication.java index 66e638b..a791184 100644 --- a/brooklyn-marklogic/src/main/java/io/cloudsoft/marklogic...
true
true
public void postStart(Collection<? extends Location> locations) { super.postStart(locations); LOG.info("MarkLogic Cluster Members:"); int k = 1; for (Entity entity : dgroup.getMembers()) { LOG.info(" " + k + " MarkLogic node http://" + entity.getAttribute(MarkLogicNode...
public void postStart(Collection<? extends Location> locations) { super.postStart(locations); LOG.info("MarkLogic Cluster Members:"); int k = 1; for (Entity entity : dgroup.getMembers()) { LOG.info(" " + k + " MarkLogic node http://" + entity.getAttribute(MarkLogicNode...
diff --git a/pss/src/main/java/net/es/oscars/pss/util/ConnectorUtils.java b/pss/src/main/java/net/es/oscars/pss/util/ConnectorUtils.java index ed407dd..40e9b96 100644 --- a/pss/src/main/java/net/es/oscars/pss/util/ConnectorUtils.java +++ b/pss/src/main/java/net/es/oscars/pss/util/ConnectorUtils.java @@ -1,82 +1,85 @@ ...
false
true
public static DeviceConfigGenerator getDeviceConfigGenerator(String deviceId, String serviceId) throws PSSException { String modelId = ClassFactory.getInstance().getDeviceModelMap().getDeviceModel(deviceId); if (modelId == null) { throw new PSSException("no model defined for devic "+devi...
public static DeviceConfigGenerator getDeviceConfigGenerator(String deviceId, String serviceId) throws PSSException { String modelId = ClassFactory.getInstance().getDeviceModelMap().getDeviceModel(deviceId); if (modelId == null) { throw new PSSException("no model defined for device "+dev...
diff --git a/src/main/java/dk/earthgame/TAT/BankAccount/Settings.java b/src/main/java/dk/earthgame/TAT/BankAccount/Settings.java index 3713c43..4c38cc8 100644 --- a/src/main/java/dk/earthgame/TAT/BankAccount/Settings.java +++ b/src/main/java/dk/earthgame/TAT/BankAccount/Settings.java @@ -1,364 +1,364 @@ package dk.ear...
false
true
boolean loadConfiguration() { config = new Configuration(new File(plugin.getDataFolder(), "config.yml")); config.load(); //SQL Transactions = config.getBoolean("SQL-info.Transactions", false); UseMySQL = config.getBoolean("SQL-info.MySQL", false); MySQL_host = config.getString("SQL-info.Host","localhost");...
boolean loadConfiguration() { config = new Configuration(new File(plugin.getDataFolder(), "config.yml")); config.load(); //SQL Transactions = config.getBoolean("SQL-info.Transactions", false); UseMySQL = config.getBoolean("SQL-info.MySQL", false); MySQL_host = config.getString("SQL-info.Host","localhost");...
diff --git a/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoOccurrencesFinderJob.java b/plugins/org.eclipse.acceleo.ide.ui/src/org/eclipse/acceleo/internal/ide/ui/editors/template/AcceleoOccurrencesFinderJob.java index 53b13ca2..ed63461e 100644 --- a/plugins/org.eclip...
true
true
protected IStatus run(final IProgressMonitor monitor) { final ReferencesSearchResult result = (ReferencesSearchResult)query.getSearchResult(); IStatus status = null; final int origPriority = Thread.currentThread().getPriority(); try { Thread.currentThread().setPriority(Thread.MIN_PRIORITY); } catch (Secu...
protected IStatus run(final IProgressMonitor monitor) { final ReferencesSearchResult result = (ReferencesSearchResult)query.getSearchResult(); IStatus status = null; final int origPriority = Thread.currentThread().getPriority(); try { Thread.currentThread().setPriority(Thread.MIN_PRIORITY); } catch (Secu...
diff --git a/src/nonregressiontest/stub/stubgeneration/Test.java b/src/nonregressiontest/stub/stubgeneration/Test.java index d87e5fa52..529e57eda 100644 --- a/src/nonregressiontest/stub/stubgeneration/Test.java +++ b/src/nonregressiontest/stub/stubgeneration/Test.java @@ -1,88 +1,88 @@ /* * #########################...
false
true
public void action() throws Exception { String baseclassName = "nonregressiontest.stub.stubgeneration.A"; if ("ASM".equals(System.getProperty("bytecodeManipulator"))) { ASMBytecodeStubBuilder bsb = new ASMBytecodeStubBuilder(baseclassName); data = bsb.create(); } else if ("ja...
public void action() throws Exception { String baseclassName = "nonregressiontest.stub.stubgeneration.A"; if ("ASM".equals(System.getProperty("byteCodeManipulator"))) { ASMBytecodeStubBuilder bsb = new ASMBytecodeStubBuilder(baseclassName); data = bsb.create(); } else if ("ja...
diff --git a/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/mapping/validator/MappingValidator.java b/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/mapping/validator/MappingValidator.java index ea2364ec..b65e9738 100644 --- a/zendserver-sdk-java/org.zend.sdk/sdklib/org/zend/sdklib/mapping/validator/M...
true
true
public boolean parse(InputStream stream) throws MappingParseException { List<MappingParseStatus> result = new ArrayList<MappingParseStatus>(); BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); String line = null; int i = 0; try { while ((line = reader.readLine()) != null) { i+...
public boolean parse(InputStream stream) throws MappingParseException { List<MappingParseStatus> result = new ArrayList<MappingParseStatus>(); BufferedReader reader = new BufferedReader(new InputStreamReader(stream)); String line = null; int i = 0; try { while ((line = reader.readLine()) != null) { i+...
diff --git a/sgs-server/src/main/java/com/sun/sgs/impl/service/data/store/DataStoreProfileProducer.java b/sgs-server/src/main/java/com/sun/sgs/impl/service/data/store/DataStoreProfileProducer.java index ece1b9f..23377cc 100644 --- a/sgs-server/src/main/java/com/sun/sgs/impl/service/data/store/DataStoreProfileProducer.j...
true
true
public DataStoreProfileProducer(DataStore dataStore, ProfileCollector collector) { if (dataStore == null) { throw new NullPointerException( "The dataStore argument must not be null"); } else if (!(dataStore instanceof TransactionParticipant)) { throw new IllegalArgumentException( "The da...
public DataStoreProfileProducer(DataStore dataStore, ProfileCollector collector) { if (dataStore == null) { throw new NullPointerException( "The dataStore argument must not be null"); } else if (!(dataStore instanceof TransactionParticipant)) { throw new IllegalArgumentException( "The da...
diff --git a/Source/PrivacyCA/src/gov/niarl/his/privacyca/HisTpmProvisioner.java b/Source/PrivacyCA/src/gov/niarl/his/privacyca/HisTpmProvisioner.java index 1774e40..77c2b03 100644 --- a/Source/PrivacyCA/src/gov/niarl/his/privacyca/HisTpmProvisioner.java +++ b/Source/PrivacyCA/src/gov/niarl/his/privacyca/HisTpmProvisio...
false
true
public static void main(String[] args){// throws InvalidKeyException, CertificateEncodingException, UnrecoverableKeyException, NoSuchAlgorithmException, InvalidKeySpecException, SignatureException, NoSuchProviderException, KeyStoreException, CertificateException, IOException, javax.security.cert.CertificateException {...
public static void main(String[] args){// throws InvalidKeyException, CertificateEncodingException, UnrecoverableKeyException, NoSuchAlgorithmException, InvalidKeySpecException, SignatureException, NoSuchProviderException, KeyStoreException, CertificateException, IOException, javax.security.cert.CertificateException {...
diff --git a/hadoop/rootbeer/matrixmultiplication/src/at/illecker/hadoop/rootbeer/examples/matrixmultiplication/gpu/MatrixMultiplicationMapperKernel.java b/hadoop/rootbeer/matrixmultiplication/src/at/illecker/hadoop/rootbeer/examples/matrixmultiplication/gpu/MatrixMultiplicationMapperKernel.java index b42a7f0..85cfe62 ...
false
true
public void gpuMethod() { // int blockSize = RootbeerGpu.getBlockDimx(); // int gridSize = RootbeerGpu.getGridDimx(); // int block_idxx = RootbeerGpu.getBlockIdxx(); thread_idxx = RootbeerGpu.getThreadIdxx(); // int globalThreadIndex = block_idxx * blockSize + thread_idxx; int vectorStartInd...
public void gpuMethod() { // int blockSize = RootbeerGpu.getBlockDimx(); // int gridSize = RootbeerGpu.getGridDimx(); // int block_idxx = RootbeerGpu.getBlockIdxx(); thread_idxx = RootbeerGpu.getThreadIdxx(); // int globalThreadIndex = block_idxx * blockSize + thread_idxx; int vectorStartInd...
diff --git a/com.ibm.wala.core/src/com/ibm/wala/util/ref/ReferenceCleanser.java b/com.ibm.wala.core/src/com/ibm/wala/util/ref/ReferenceCleanser.java index 2ced8636c..205e9827c 100644 --- a/com.ibm.wala.core/src/com/ibm/wala/util/ref/ReferenceCleanser.java +++ b/com.ibm.wala.core/src/com/ibm/wala/util/ref/ReferenceClean...
true
true
public static void clearSoftCaches() { float occupancy = 1f - ((float)Runtime.getRuntime().freeMemory() / (float)Runtime.getRuntime().totalMemory()); if (occupancy < OCCUPANCY_TRIGGER) { return; } if (getAnalysisCache() != null) { getAnalysisCache().getSSACache().wipe(); getAnalysisC...
public static void clearSoftCaches() { float occupancy = 1f - ((float)Runtime.getRuntime().freeMemory() / (float)Runtime.getRuntime().totalMemory()); if (occupancy < OCCUPANCY_TRIGGER) { return; } AnalysisCache cache = getAnalysisCache(); if (cache != null) { cache.getSSACache().wipe()...
diff --git a/src/org/apache/xerces/impl/XMLNamespaceBinder.java b/src/org/apache/xerces/impl/XMLNamespaceBinder.java index 2068ea29b..c4e99db45 100644 --- a/src/org/apache/xerces/impl/XMLNamespaceBinder.java +++ b/src/org/apache/xerces/impl/XMLNamespaceBinder.java @@ -1,844 +1,845 @@ /* * The Apache Software License...
true
true
protected void handleStartElement(QName element, XMLAttributes attributes, boolean isEmpty) throws XNIException { // add new namespace context fNamespaceSupport.pushContext(); // search for new namespace bindings int length = attributes.getLeng...
protected void handleStartElement(QName element, XMLAttributes attributes, boolean isEmpty) throws XNIException { // add new namespace context fNamespaceSupport.pushContext(); // search for new namespace bindings int length = attributes.getLeng...
diff --git a/src/main/java/com/mailgun/api/MailGunExample.java b/src/main/java/com/mailgun/api/MailGunExample.java index 3b63fde..7e4c742 100644 --- a/src/main/java/com/mailgun/api/MailGunExample.java +++ b/src/main/java/com/mailgun/api/MailGunExample.java @@ -1,30 +1,30 @@ package com.mailgun.api; import com.googl...
false
true
public static void main (String args[]){ // test mailgun api key MailGunClient client = new MailGunClient("key-3ax6xnjp29jd6fds4gc373sgvjxteol0","samples.mailgun.org"); Gson gson = new Gson(); gson.getAdapter(Bounces.class); MultivaluedMap map = new MultivaluedMapImpl(); map.add("limit"...
public static void main (String args[]){ // test mailgun api key MailGunClient client = new MailGunClient("key-3ax6xnjp29jd6fds4gc373sgvjxteol0","samples.mailgun.org"); Gson gson = new Gson(); gson.getAdapter(Bounces.class); MultivaluedMap map = new MultivaluedMapImpl(); map.ad...
diff --git a/src/main/java/eu/trentorise/smartcampus/ac/provider/adapters/SecurityAdapter.java b/src/main/java/eu/trentorise/smartcampus/ac/provider/adapters/SecurityAdapter.java index 9adfea0..7404a6e 100644 --- a/src/main/java/eu/trentorise/smartcampus/ac/provider/adapters/SecurityAdapter.java +++ b/src/main/java/eu/...
true
true
public boolean access(String authName, List<String> checkAttrs, Map<String, String> attrs) { List<SecurityEntry> securityList = securityMap.get(authName); if (securityList != null) { for (SecurityEntry se : securityList) { // check id attrs if (!se.getIdSecurityEntries().isEmpty()) { // securit...
public boolean access(String authName, List<String> checkAttrs, Map<String, String> attrs) { List<SecurityEntry> securityList = securityMap.get(authName); if (securityList != null) { for (SecurityEntry se : securityList) { // check id attrs if (!se.getIdSecurityEntries().isEmpty()) { // securit...
diff --git a/net/relet/freimap/OlsrdDataSource.java b/net/relet/freimap/OlsrdDataSource.java index ac7ef3d..0306a62 100644 --- a/net/relet/freimap/OlsrdDataSource.java +++ b/net/relet/freimap/OlsrdDataSource.java @@ -1,344 +1,344 @@ /* net.relet.freimap.OlsrdDataSource.java This file is part of the freimap softwa...
false
true
public void run() { InetSocketAddress destination = null; Vector<FreiLink> linkData = null; HashMap<String, FreiNode> nodeIds = null; boolean usingWebServiceFormat = false; try { if (host != null) { destination = new InetSocketAddress(host, port); } wh...
public void run() { InetSocketAddress destination = null; Vector<FreiLink> linkData = null; HashMap<String, FreiNode> nodeIds = null; boolean usingWebServiceFormat = false; try { if (host != null) { destination = new InetSocketAddress(host, port); } wh...
diff --git a/srcj/com/sun/electric/tool/user/dialogs/PreferencesFrame.java b/srcj/com/sun/electric/tool/user/dialogs/PreferencesFrame.java index 2e39d722b..7697be1ca 100644 --- a/srcj/com/sun/electric/tool/user/dialogs/PreferencesFrame.java +++ b/srcj/com/sun/electric/tool/user/dialogs/PreferencesFrame.java @@ -1,846 +...
true
true
public PreferencesFrame(Frame parent) { super(parent, false); getContentPane().setLayout(new GridBagLayout()); setTitle("Preferences"); setName(""); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent evt) { closeDialog(evt); } }); EDatabase database = EDatabase.clientDat...
public PreferencesFrame(Frame parent) { super(parent, false); getContentPane().setLayout(new GridBagLayout()); setTitle("Preferences"); setName(""); addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent evt) { closeDialog(evt); } }); EDatabase database = EDatabase.clientDat...
diff --git a/src/org/kohsuke/stapler/idea/JellyTagLibReferenceProvider.java b/src/org/kohsuke/stapler/idea/JellyTagLibReferenceProvider.java index 9086fb8..ae81f45 100644 --- a/src/org/kohsuke/stapler/idea/JellyTagLibReferenceProvider.java +++ b/src/org/kohsuke/stapler/idea/JellyTagLibReferenceProvider.java @@ -1,150 +...
false
true
private PsiReference[] onAttributeValue(final XmlAttributeValue xav) { PsiElement _xa = xav.getParent(); if (!(_xa instanceof XmlAttribute)) return PsiReference.EMPTY_ARRAY; XmlAttribute a = (XmlAttribute) _xa; if(!a.getName().equals("page")) return PsiRefere...
private PsiReference[] onAttributeValue(final XmlAttributeValue xav) { PsiElement _xa = xav.getParent(); if (!(_xa instanceof XmlAttribute)) return PsiReference.EMPTY_ARRAY; XmlAttribute a = (XmlAttribute) _xa; if(!a.getName().equals("page")) return PsiRefere...