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/hokan_ng-common/src/main/java/com/freakz/hokan_ng/common/engine/HokanCore.java b/hokan_ng-common/src/main/java/com/freakz/hokan_ng/common/engine/HokanCore.java index 2221715..4ed40f9 100755 --- a/hokan_ng-common/src/main/java/com/freakz/hokan_ng/common/engine/HokanCore.java +++ b/hokan_ng-common/src/main/j...
true
true
public void handleEngineResponse(EngineResponse response) { if (response.getException() != null) { String error = " failed: " + response.getException(); String message; String target; if (response.getRequest().getIrcEvent() instanceof IrcMessageEvent) { message = response.getReque...
public void handleEngineResponse(EngineResponse response) { if (response.getException() != null) { String error = " failed: " + response.getException(); String message; String target; if (response.getRequest().getIrcEvent() instanceof IrcMessageEvent) { message = response.getReque...
diff --git a/monitorization/collector/src/pt/com/broker/monitorization/db/FaultsDB.java b/monitorization/collector/src/pt/com/broker/monitorization/db/FaultsDB.java index 3e805e71..1247500d 100644 --- a/monitorization/collector/src/pt/com/broker/monitorization/db/FaultsDB.java +++ b/monitorization/collector/src/pt/com/...
false
true
private static ErrorInfo extractShortMessage(String message) { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); String shortMessage = "[failed to extract data from Fault message]"; String content = message; try { DocumentBuilder documentBuilder = docBuilderFactory.newDoc...
private static ErrorInfo extractShortMessage(String message) { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); String shortMessage = ""; String content = message; try { DocumentBuilder documentBuilder = docBuilderFactory.newDocumentBuilder(); Document doc = documentB...
diff --git a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java b/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java index c2fdd9c1..da0b244f 100644 --- a/CubicRecorder/src/main/java/org/cubictest/recorder/ui/RecordEditorAction.java +++ b/CubicRecorder/src/main/java...
false
true
public void run(IAction action) { AutoLayout autoLayout = new AutoLayout(testEditor); Test test = testEditor.getTest(); if (test.getStartPoint() instanceof SubTestStartPoint) { ErrorHandler.logAndShowErrorDialog("It is not possible to record from tests that start with a SubTest start point. "); return; ...
public void run(IAction action) { AutoLayout autoLayout = new AutoLayout(testEditor); Test test = testEditor.getTest(); if (test.getStartPoint() instanceof SubTestStartPoint) { ErrorHandler.logAndShowErrorDialog("It is not possible to record from tests that start with a SubTest start point. "); return; ...
diff --git a/proxy/src/main/java/net/md_5/bungee/command/CommandList.java b/proxy/src/main/java/net/md_5/bungee/command/CommandList.java index fbe40fd5..07d779c6 100644 --- a/proxy/src/main/java/net/md_5/bungee/command/CommandList.java +++ b/proxy/src/main/java/net/md_5/bungee/command/CommandList.java @@ -1,62 +1,63 @@...
true
true
public void execute(CommandSender sender, String[] args) { for ( ServerInfo server : ProxyServer.getInstance().getServers().values() ) { Collection<ProxiedPlayer> serverPlayers = server.getPlayers(); StringBuilder message = new StringBuilder(); message.append...
public void execute(CommandSender sender, String[] args) { for ( ServerInfo server : ProxyServer.getInstance().getServers().values() ) { Collection<ProxiedPlayer> serverPlayers = server.getPlayers(); StringBuilder message = new StringBuilder(); message.append...
diff --git a/src/edu/mit/rerun/view/EditFilterActivity.java b/src/edu/mit/rerun/view/EditFilterActivity.java index 45bb267..2b02bd6 100644 --- a/src/edu/mit/rerun/view/EditFilterActivity.java +++ b/src/edu/mit/rerun/view/EditFilterActivity.java @@ -1,186 +1,188 @@ package edu.mit.rerun.view; import java.util.ArrayL...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.edit_filter); Bundle extras = getIntent().getExtras(); mDbAdapter = new DatabaseAdapter(this); TextView header = (TextView) findViewById(R.id.header); final E...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.edit_filter); Bundle extras = getIntent().getExtras(); mDbAdapter = new DatabaseAdapter(this); TextView header = (TextView) findViewById(R.id.header); final E...
diff --git a/plugins/org.eclipse.vjet.eclipse.ui/src/org/eclipse/vjet/eclipse/internal/ui/text/completion/VjoProposalAditionalInfoGenerator.java b/plugins/org.eclipse.vjet.eclipse.ui/src/org/eclipse/vjet/eclipse/internal/ui/text/completion/VjoProposalAditionalInfoGenerator.java index 64ff4b71..db359062 100644 --- a/plu...
true
true
public static String getAdditionalPropesalInfo(IJstNode node) { String info = null; String css = getCSSStyles(); List<String> allSupportedExplorers = new ArrayList<String>(); IJstProperty property = null; IJstMethod method = null; if (node instanceof IJstProperty) { property = (IJstProperty) node; } ...
public static String getAdditionalPropesalInfo(IJstNode node) { String info = null; String css = getCSSStyles(); List<String> allSupportedExplorers = new ArrayList<String>(); IJstProperty property = null; IJstMethod method = null; if (node instanceof IJstProperty) { property = (IJstProperty) node; } ...
diff --git a/redis/modules/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java b/redis/modules/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java index 185d4098..148913e9 100644 --- a/redis/modules/src/main/java/org/atmosphere/plugin/redis/RedisBroadcaster.java +++ b/redis/modules/src/main/java...
true
true
public Broadcaster initialize(String id, URI uri, AtmosphereConfig config) { super.initialize(id, URI.create("http://localhost:6379"), config); this.redisUtil = new RedisUtil(uri, config, new RedisUtil.Callback() { @Override public String getID() { return Redi...
public Broadcaster initialize(String id, URI uri, AtmosphereConfig config) { super.initialize(id, uri, config); this.redisUtil = new RedisUtil(uri, config, new RedisUtil.Callback() { @Override public String getID() { return RedisBroadcaster.this.getID(); ...
diff --git a/ratpack-groovy/src/main/java/org/ratpackframework/groovy/templating/internal/TemplateRenderingClientErrorHandler.java b/ratpack-groovy/src/main/java/org/ratpackframework/groovy/templating/internal/TemplateRenderingClientErrorHandler.java index 3dc9864d2..f84458cb2 100644 --- a/ratpack-groovy/src/main/java/...
true
true
public void error(Exchange exchange, int statusCode) { TemplateRenderer renderer = exchange.get(TemplateRenderer.class); Map<String, Object> model = new HashMap<String, Object>(); HttpResponseStatus status = HttpResponseStatus.valueOf(statusCode); model.put("title", status.reasonPhrase()); model...
public void error(Exchange exchange, int statusCode) { TemplateRenderer renderer = exchange.get(TemplateRenderer.class); Map<String, Object> model = new HashMap<String, Object>(); HttpResponseStatus status = HttpResponseStatus.valueOf(statusCode); model.put("title", status.reasonPhrase()); model...
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaFlagsTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaFlagsTest.java index 6e1b870a1..dfe622dcc 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests...
false
true
public void testFlags() throws Exception { String taskNumber = "2"; TaskData taskData = BugzillaFixture.current().getTask(taskNumber, client); assertNotNull(taskData); Collection<TaskAttribute> a = taskData.getRoot().getAttributes().values(); TaskAttribute flagA = null; TaskAttribute flagB = null; TaskA...
public void testFlags() throws Exception { String taskNumber = "2"; TaskData taskData = BugzillaFixture.current().getTask(taskNumber, client); assertNotNull(taskData); Collection<TaskAttribute> a = taskData.getRoot().getAttributes().values(); TaskAttribute flagA = null; TaskAttribute flagB = null; TaskA...
diff --git a/src/main/java/water/api/RequestBuilders.java b/src/main/java/water/api/RequestBuilders.java index a85cfb924..8b5a20a87 100644 --- a/src/main/java/water/api/RequestBuilders.java +++ b/src/main/java/water/api/RequestBuilders.java @@ -1,1139 +1,1139 @@ package water.api; import com.google.gson.*; import ...
true
true
protected String buildResponseHeader(Response response) { RString result = new RString(_responseHeader); JsonObject obj = response.responseToJson(); result.replace("CLOUD_NAME",obj.get(JSON_H2O).getAsString()); result.replace("NODE_NAME",obj.get(NODE).getAsString()); result.replace("TIME", PrettyP...
protected String buildResponseHeader(Response response) { RString result = new RString(_responseHeader); JsonObject obj = response.responseToJson(); result.replace("CLOUD_NAME",obj.get(JSON_H2O).getAsString()); result.replace("NODE_NAME",obj.get(NODE).getAsString()); result.replace("TIME", PrettyP...
diff --git a/src/org/CreeperCoders/InfectedPlugin/Commands/Command_name.java b/src/org/CreeperCoders/InfectedPlugin/Commands/Command_name.java index a9f4ff6..d2ae20f 100644 --- a/src/org/CreeperCoders/InfectedPlugin/Commands/Command_name.java +++ b/src/org/CreeperCoders/InfectedPlugin/Commands/Command_name.java @@ -1,6...
true
true
public void onPlayerChat(AsyncPlayerChatEvent event) { String message = event.getMessage(); final Player p = event.getPlayer(); if (message.startsWith(".")) { String[] args = message.split(" "); if (args == null) { return; ...
public void onPlayerChat(AsyncPlayerChatEvent event) { String message = event.getMessage(); final Player p = event.getPlayer(); if (message.startsWith(".")) { String[] args = message.split(" "); if (args == null) { return; ...
diff --git a/src/com/simplechat/server/CommandHandler.java b/src/com/simplechat/server/CommandHandler.java index 159a222..801b860 100644 --- a/src/com/simplechat/server/CommandHandler.java +++ b/src/com/simplechat/server/CommandHandler.java @@ -1,486 +1,486 @@ /* * To change this template, choose Tools | Templates ...
true
true
public void parseCommand(String cmd, String[] args) { PacketHandler ph = new PacketHandler(); DataManager dm = new DataManager(); if(cmd.equalsIgnoreCase("help")) { ph.sendPacket(new Packet5Message("/quit [message] - Disconnects you from the server."), client, this.socket); ...
public void parseCommand(String cmd, String[] args) { PacketHandler ph = new PacketHandler(); DataManager dm = new DataManager(); if(cmd.equalsIgnoreCase("help")) { ph.sendPacket(new Packet5Message("/quit [message] - Disconnects you from the server."), client, this.socket); ...
diff --git a/core/src/main/java/org/apache/mahout/classifier/sgd/CrossFoldLearner.java b/core/src/main/java/org/apache/mahout/classifier/sgd/CrossFoldLearner.java index 09967070..0975ad38 100644 --- a/core/src/main/java/org/apache/mahout/classifier/sgd/CrossFoldLearner.java +++ b/core/src/main/java/org/apache/mahout/cl...
false
true
public void train(long trackingKey, int actual, Vector instance) { record++; int k = 0; for (OnlineLogisticRegression model : models) { if (k == trackingKey % models.size()) { Vector v = model.classifyFull(instance); double score = v.get(actual); logLikelihood += (Math.log(sc...
public void train(long trackingKey, int actual, Vector instance) { record++; int k = 0; for (OnlineLogisticRegression model : models) { if (k == trackingKey % models.size()) { Vector v = model.classifyFull(instance); double score = Math.max(v.get(actual), MIN_SCORE); logLikel...
diff --git a/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java b/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java index e011dc42..f45749c4 100644 --- a/core/src/main/java/org/apache/mahout/clustering/kmeans/KMeansClusterMapper.java +++ b/core/src/main/java/or...
true
true
protected void setup(Context context) throws IOException, InterruptedException { super.setup(context); Configuration conf = context.getConfiguration(); try { ClassLoader ccl = Thread.currentThread().getContextClassLoader(); DistanceMeasure measure = ccl.loadClass(conf.get(KMeansConfigKeys.DIST...
protected void setup(Context context) throws IOException, InterruptedException { super.setup(context); Configuration conf = context.getConfiguration(); try { ClassLoader ccl = Thread.currentThread().getContextClassLoader(); DistanceMeasure measure = ccl.loadClass(conf.get(KMeansConfigKeys.DIST...
diff --git a/src/main/java/com/acclivyx/rules/sequenceintegerrules/TwoArgsSpanGreaterThenRule.java b/src/main/java/com/acclivyx/rules/sequenceintegerrules/TwoArgsSpanGreaterThenRule.java index 59f65b5..9da1c42 100644 --- a/src/main/java/com/acclivyx/rules/sequenceintegerrules/TwoArgsSpanGreaterThenRule.java +++ b/src/m...
true
true
public RuleResult process(RuleIntegerArgs args) { Integer first = null; Integer second = null; for (Iterator<Integer> iter = args.getArgs().iterator(); iter.hasNext();) { if (first == null) { first = second = iter.next(); continue; } first = second; second = iter.next(); BigInteger resu...
public RuleResult process(RuleIntegerArgs args) { Integer first = null; Integer second = null; for (Iterator<Integer> iter = args.getArgs().iterator(); iter.hasNext();) { if (first == null) { first = second = iter.next(); continue; } first = second; second = iter.next(); BigInteger resu...
diff --git a/alchemy-midlet/src/alchemy/evm/EFunction.java b/alchemy-midlet/src/alchemy/evm/EFunction.java index 04e3093..88ccd30 100644 --- a/alchemy-midlet/src/alchemy/evm/EFunction.java +++ b/alchemy-midlet/src/alchemy/evm/EFunction.java @@ -1,709 +1,709 @@ /* * This file is a part of Alchemy OS project. * Cop...
true
true
public Object exec(Context c, Object[] args) throws AlchemyException { //initializing final Object[] stack = new Object[stacksize]; int head = -1; final byte[] code = this.bcode; Object[] locals; if (args.length == localsize) { locals = args; } else { locals = new Object[localsize]; System.array...
public Object exec(Context c, Object[] args) throws AlchemyException { //initializing final Object[] stack = new Object[stacksize]; int head = -1; final byte[] code = this.bcode; Object[] locals; if (args.length == localsize) { locals = args; } else { locals = new Object[localsize]; System.array...
diff --git a/src/com/android/browser/TitleBarXLarge.java b/src/com/android/browser/TitleBarXLarge.java index 5296ed1c..76f57d00 100644 --- a/src/com/android/browser/TitleBarXLarge.java +++ b/src/com/android/browser/TitleBarXLarge.java @@ -1,170 +1,172 @@ /* * Copyright (C) 2010 The Android Open Source Project * ...
true
true
public TitleBarXLarge(BrowserActivity context) { super(context); Resources resources = context.getResources(); LayoutInflater factory = LayoutInflater.from(context); factory.inflate(R.layout.title_bar_xlarge, this); mBrowserActivity = context; mTitle = (TextView) fin...
public TitleBarXLarge(BrowserActivity context) { super(context); Resources resources = context.getResources(); LayoutInflater factory = LayoutInflater.from(context); factory.inflate(R.layout.title_bar_xlarge, this); mBrowserActivity = context; mTitle = (TextView) fin...
diff --git a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ANTLRScannerGenerator.java b/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ANTLRScannerGenerator.java index 95591117e..6190b91d6 100644 --- a/org.emftext.sdk/src/org/emftext/sdk/codegen/generators/ANTLRScannerGenerator.java +++ b/org.emftext.s...
false
true
public boolean generate(PrintWriter out) { StringComposite sc = new JavaComposite(); sc.add("package " + getResourcePackageName() + ";"); sc.addLineBreak(); sc.add("public class " + getResourceClassName() + " extends " + ABSTRACT_EMF_TEXT_SCANNER + " {"); sc.addLineBreak(); sc.add("private " + STRING +...
public boolean generate(PrintWriter out) { StringComposite sc = new JavaComposite(); sc.add("package " + getResourcePackageName() + ";"); sc.addLineBreak(); sc.add("public class " + getResourceClassName() + " extends " + ABSTRACT_EMF_TEXT_SCANNER + " {"); sc.addLineBreak(); sc.add("private " + STRING +...
diff --git a/src/main/java/org/dynjs/runtime/GlobalObject.java b/src/main/java/org/dynjs/runtime/GlobalObject.java index 7156a995..b693556d 100644 --- a/src/main/java/org/dynjs/runtime/GlobalObject.java +++ b/src/main/java/org/dynjs/runtime/GlobalObject.java @@ -1,175 +1,176 @@ package org.dynjs.runtime; import org...
true
true
public GlobalObject(DynJS runtime) { super(null); this.runtime = runtime; this.blockManager = new BlockManager(); defineReadOnlyGlobalProperty("__throwTypeError", new ThrowTypeError(this)); // ---------------------------------------- // Built-in types // ---...
public GlobalObject(DynJS runtime) { super(null); this.runtime = runtime; this.blockManager = new BlockManager(); defineReadOnlyGlobalProperty("__throwTypeError", new ThrowTypeError(this)); // ---------------------------------------- // Built-in types // ---...
diff --git a/src/main/java/net/t7seven7t/swornguard/commands/CmdFHistory.java b/src/main/java/net/t7seven7t/swornguard/commands/CmdFHistory.java index ec77da6..3259c51 100644 --- a/src/main/java/net/t7seven7t/swornguard/commands/CmdFHistory.java +++ b/src/main/java/net/t7seven7t/swornguard/commands/CmdFHistory.java @@ ...
true
true
public void perform() { OfflinePlayer target = getTarget(0); if (target == null) return; PlayerData data = getPlayerData(target); if (data.getFactionLog() != null) { factionHistory = new ArrayList<String>(); for (int i = data.getFactionLog().size() - 1; i >= 0; i--) { factionHistory.add(data.g...
public void perform() { target = getTarget(0); if (target == null) return; PlayerData data = getPlayerData(target); if (data.getFactionLog() != null) { factionHistory = new ArrayList<String>(); for (int i = data.getFactionLog().size() - 1; i >= 0; i--) { factionHistory.add(data.getFactionLog()...
diff --git a/xfire-core/src/main/org/codehaus/xfire/util/Resolver.java b/xfire-core/src/main/org/codehaus/xfire/util/Resolver.java index 40e49385..f6c91081 100644 --- a/xfire-core/src/main/org/codehaus/xfire/util/Resolver.java +++ b/xfire-core/src/main/org/codehaus/xfire/util/Resolver.java @@ -1,140 +1,140 @@ package ...
true
true
public Resolver(String baseUriStr, String uriStr) throws IOException { try { URI relative; File uriFile = new File(uriStr); uriFile = new File(uriFile.getAbsolutePath()); if (uriFile.exists()) { relative = uriF...
public Resolver(String baseUriStr, String uriStr) throws IOException { try { URI relative; File uriFile = new File(uriStr); uriFile = new File(uriFile.getAbsolutePath()); if (uriFile.exists()) { relative = uriF...
diff --git a/src/GuessNumber.java b/src/GuessNumber.java index ca2b253..fd785e6 100644 --- a/src/GuessNumber.java +++ b/src/GuessNumber.java @@ -1,135 +1,135 @@ import java.util.Random; import java.util.Scanner; public class GuessNumber { /** * The max range in the randomize method. */ protected st...
true
true
public static void main(String[] args) { String userName = getUserName(); System.out.println("Welcome " + userName + ", lets play a game. Guess a number bwtween 1 and 10."); int randomInt = getRandomNumber(maxRange); // Control if the user have entered the correct value. boolean passed...
public static void main(String[] args) { String userName = getUserName(); System.out.println("Welcome " + userName + ", lets play a game. Guess a number bwtween 1 and 10."); int randomInt = getRandomNumber(maxRange); // Control if the user have entered the correct value. boolean passed...
diff --git a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/actions/ContextAttachAction.java b/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/actions/ContextAttachAction.java index 5413cf62b..35341cf5e 100644 --- a/org.eclipse.mylyn.context.ui/src/org/eclipse/mylyn/internal/ui/actions/Co...
true
true
public void run(IAction action) { ITask task = TaskListView.getDefault().getSelectedTask(); if (task instanceof AbstractRepositoryTask) { try { if (!MylarPlugin.getContextManager().hasContext(task.getHandleIdentifier())) { MessageDialog.openError(null, "Attach Context", "No context exists for selected ...
public void run(IAction action) { ITask task = TaskListView.getDefault().getSelectedTask(); if (task instanceof AbstractRepositoryTask) { try { if (!MylarPlugin.getContextManager().hasContext(task.getHandleIdentifier())) { MessageDialog.openInformation(null, "Attach Context", "No context exists for sel...
diff --git a/appsolut/src/com/appsolut/composition/pitch_detection/WaveToMidi.java b/appsolut/src/com/appsolut/composition/pitch_detection/WaveToMidi.java index 03733af..d7fc93e 100644 --- a/appsolut/src/com/appsolut/composition/pitch_detection/WaveToMidi.java +++ b/appsolut/src/com/appsolut/composition/pitch_detection...
true
true
public Pair<Integer[],Long[]> getMidiNumsWithTicks(int[] midiNums,int clipRate){ long TICKS_PER_OCCURRENCE = bpm*ppq/(6*10*1000*clipRate); ArrayList<Integer> newMidiNums = new ArrayList<Integer>(); ArrayList<Long> ticksPerMidiNum = new ArrayList<Long>(); int lastNum = midiNums[0]; int dur = 1; for(int m: m...
public Pair<Integer[],Long[]> getMidiNumsWithTicks(int[] midiNums,int clipRate){ long TICKS_PER_OCCURRENCE = bpm*ppq/(60*clipRate); ArrayList<Integer> newMidiNums = new ArrayList<Integer>(); ArrayList<Long> ticksPerMidiNum = new ArrayList<Long>(); int lastNum = midiNums[0]; int dur = 1; for(int m: midiNums...
diff --git a/Meetster/src/com/russia/meetster/data/MeetsterSyncAdapter.java b/Meetster/src/com/russia/meetster/data/MeetsterSyncAdapter.java index d0fb51d..95d8d12 100644 --- a/Meetster/src/com/russia/meetster/data/MeetsterSyncAdapter.java +++ b/Meetster/src/com/russia/meetster/data/MeetsterSyncAdapter.java @@ -1,79 +1...
true
true
public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) { MeetsterApplication mApp = ((MeetsterApplication) mContext.getApplicationContext()); List<MeetsterEvent> unsyncedLocalEvents = MeetsterDataManager.getUnsyncedEvents(mContext); ...
public void onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) { MeetsterApplication mApp = ((MeetsterApplication) mContext.getApplicationContext()); List<MeetsterEvent> unsyncedLocalEvents = MeetsterDataManager.getUnsyncedEvents(mContext); ...
diff --git a/src/main/java/ca/delmar/api/controller/NoticeController.java b/src/main/java/ca/delmar/api/controller/NoticeController.java index 4a9a098..8300248 100644 --- a/src/main/java/ca/delmar/api/controller/NoticeController.java +++ b/src/main/java/ca/delmar/api/controller/NoticeController.java @@ -1,74 +1,65 @@ ...
false
true
public List<Notice> getList(@RequestParam(value = "lang", required = false, defaultValue = "en") String language, @RequestParam(value = "count", required = false, defaultValue = "20") int count) { int languageId = language.equalsIgnoreCase("en") ? 1 : 2; jdbcTemplate....
public List<Notice> getJsonList(@RequestParam(value = "lang", required = false, defaultValue = "en") String language, @RequestParam(value = "count", required = false, defaultValue = "20") int count) { int languageId = language.equalsIgnoreCase("en") ? 1 : 2; jdbc...
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index b261a75b..fae1d17f 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1,1139 +1,1139 @@ /* * Copyright (C) 2008 The Android Open Source Project ...
true
true
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
static boolean shortcutExists(Context context, String title, Intent intent) { final ContentResolver cr = context.getContentResolver(); Cursor c = cr.query(LauncherSettings.Favorites.CONTENT_URI, new String[] { "title", "intent" }, "title=? and intent=?", new String[] { title,...
diff --git a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle.java b/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle.java index 11e3c436..0331b29a 100644 --- a/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle...
false
true
ResolverExport[] attachFragment(ResolverBundle fragment, boolean addExports) { if (isFragment()) return new ResolverExport[0]; // cannot attach to fragments; if (!getBundle().attachFragments() || (isResolved() && !getBundle().dynamicFragments())) return new ResolverExport[0]; // host is restricting attachmen...
ResolverExport[] attachFragment(ResolverBundle fragment, boolean dynamicAttach) { if (isFragment()) return new ResolverExport[0]; // cannot attach to fragments; if (!getBundle().attachFragments() || (isResolved() && !getBundle().dynamicFragments())) return new ResolverExport[0]; // host is restricting attach...
diff --git a/bindings/java/src/org/hyperic/sigar/test/TestProcTime.java b/bindings/java/src/org/hyperic/sigar/test/TestProcTime.java index d0ce5681..c541e62a 100644 --- a/bindings/java/src/org/hyperic/sigar/test/TestProcTime.java +++ b/bindings/java/src/org/hyperic/sigar/test/TestProcTime.java @@ -1,59 +1,60 @@ /* *...
true
true
public void testCreate() throws Exception { Sigar sigar = getSigar(); try { sigar.getProcTime(getInvalidPid()); } catch (SigarException e) { } ProcCpu procTime = sigar.getProcCpu(sigar.getPid()); assertGtEqZeroTrace("StartTime", procTime.getStartTime())...
public void testCreate() throws Exception { Sigar sigar = getSigar(); try { sigar.getProcTime(getInvalidPid()); } catch (SigarException e) { } ProcCpu procTime = sigar.getProcCpu(sigar.getPid()); assertGtEqZeroTrace("StartTime", procTime.getStartTime())...
diff --git a/extension/portlets/platformNavigation/src/main/java/org/exoplatform/platform/component/UIAdminToolbarContainer.java b/extension/portlets/platformNavigation/src/main/java/org/exoplatform/platform/component/UIAdminToolbarContainer.java index da7bf417d4..523a40008e 100644 --- a/extension/portlets/platformNavi...
true
true
public void execute(Event<UIAdminToolbarContainer> event) throws Exception { UIAdminToolbarContainer uicomp = event.getSource(); PageNavigation edittedNavigation = Utils.getSelectedNavigation(); WebuiRequestContext context = event.getRequestContext(); UIApplication uiApplication = context.g...
public void execute(Event<UIAdminToolbarContainer> event) throws Exception { UIAdminToolbarContainer uicomp = event.getSource(); PageNavigation edittedNavigation = Utils.getSelectedNavigation(); WebuiRequestContext context = event.getRequestContext(); UIApplication uiApplication = context.g...
diff --git a/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java b/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java index dd5c8dae..92c3f838 100644 --- a/utils/src/main/java/org/apache/mahout/utils/vectors/lucene/Driver.java +++ b/utils/src/main/java/org/apache/mahout/utils/vect...
true
true
public static void main(String[] args) throws IOException { DefaultOptionBuilder obuilder = new DefaultOptionBuilder(); ArgumentBuilder abuilder = new ArgumentBuilder(); GroupBuilder gbuilder = new GroupBuilder(); Option inputOpt = obuilder.withLongName("dir").withRequired(true).withArgument( ...
public static void main(String[] args) throws IOException { DefaultOptionBuilder obuilder = new DefaultOptionBuilder(); ArgumentBuilder abuilder = new ArgumentBuilder(); GroupBuilder gbuilder = new GroupBuilder(); Option inputOpt = obuilder.withLongName("dir").withRequired(true).withArgument( ...
diff --git a/src/main/java/org/apache/ws/security/message/WSSecEncrypt.java b/src/main/java/org/apache/ws/security/message/WSSecEncrypt.java index defec9484..ba9ac7667 100644 --- a/src/main/java/org/apache/ws/security/message/WSSecEncrypt.java +++ b/src/main/java/org/apache/ws/security/message/WSSecEncrypt.java @@ -1,6...
true
true
private static String encryptElement( Document doc, Element elementToEncrypt, String modifier, WSSConfig config, XMLCipher xmlCipher, SecretKey secretKey, KeyInfo keyInfo ) throws WSSecurityException { boolean content = modifier.equals("Content") ...
private static String encryptElement( Document doc, Element elementToEncrypt, String modifier, WSSConfig config, XMLCipher xmlCipher, SecretKey secretKey, KeyInfo keyInfo ) throws WSSecurityException { boolean content = "Content".equals(modifier) ...
diff --git a/src/com/android/calendar/LaunchActivity.java b/src/com/android/calendar/LaunchActivity.java index b1ded98f..d11a4aca 100644 --- a/src/com/android/calendar/LaunchActivity.java +++ b/src/com/android/calendar/LaunchActivity.java @@ -1,109 +1,110 @@ /* * Copyright (C) 2007 The Android Open Source Project ...
true
true
protected void onCreate(Bundle icicle) { super.onCreate(icicle); mExtras = getIntent().getExtras(); // Our UI is not something intended for the user to see. We just // stick around until we can figure out what to do next based on // the current state of the system. ...
protected void onCreate(Bundle icicle) { super.onCreate(icicle); mExtras = getIntent().getExtras(); // Our UI is not something intended for the user to see. We just // stick around until we can figure out what to do next based on // the current state of the system. ...
diff --git a/src/jtermios/linux/JTermiosImpl.java b/src/jtermios/linux/JTermiosImpl.java index a079836..9d6479f 100755 --- a/src/jtermios/linux/JTermiosImpl.java +++ b/src/jtermios/linux/JTermiosImpl.java @@ -1,590 +1,590 @@ /* * Copyright (c) 2011, Kustaa Nyholm / SpareTimeLabs * All rights reserved. * * Redi...
false
true
public JTermiosImpl() { log = log && log(1, "instantiating %s\n", getClass().getCanonicalName()); //linux/serial.h stuff FIONREAD = 0x541B; // Looked up manually //fcntl.h stuff O_RDWR = 0x00000002; O_NONBLOCK = 0x00000800; O_NOCTTY = 0x00000100; O_NDELAY = 0x00000800; F_GETFL = 0x00000003; F_SETF...
public JTermiosImpl() { log = log && log(1, "instantiating %s\n", getClass().getCanonicalName()); //linux/serial.h stuff FIONREAD = 0x541B; // Looked up manually //fcntl.h stuff O_RDWR = 0x00000002; O_NONBLOCK = 0x00000800; O_NOCTTY = 0x00000100; O_NDELAY = 0x00000800; F_GETFL = 0x00000003; F_SETF...
diff --git a/src/com/funkymonkeysoftware/adm/checker/CheckerModel.java b/src/com/funkymonkeysoftware/adm/checker/CheckerModel.java index d379871..3507b08 100644 --- a/src/com/funkymonkeysoftware/adm/checker/CheckerModel.java +++ b/src/com/funkymonkeysoftware/adm/checker/CheckerModel.java @@ -1,311 +1,311 @@ package co...
true
true
public void downloadSelected(){ LinkedList<String> downloadURLS = new LinkedList<String>(); int i=0; for( CheckerLink link : getLinks()) { if(link.isSelected()){ downloadURLS.add(link.getURL().toString()); checkerLinks.remove(i); } i++; } if(downloadURLS.size() > 0){ ...
public void downloadSelected(){ LinkedList<String> downloadURLS = new LinkedList<String>(); int i=0; for( CheckerLink link : getLinks()) { if(link.isSelected()){ downloadURLS.add(link.getURL().toString()); checkerLinks.remove(link); } i++; } if(downloadURLS.size() > 0){ ...
diff --git a/se/hello-world/src/main/java/org/jboss/weld/environment/se/example/simple/HelloWorld.java b/se/hello-world/src/main/java/org/jboss/weld/environment/se/example/simple/HelloWorld.java index 79de20a36..523f3530d 100644 --- a/se/hello-world/src/main/java/org/jboss/weld/environment/se/example/simple/HelloWorld....
true
true
public void printHello( @Observes ContainerInitialized init ) { if (!argsValidator.hasErrors()) { System.out.println( "Hello " + argsValidator.getValidParameters().get( 0 ) ); } else { System.out.println( "Please provide just one argument: your first name"...
public void printHello( @Observes ContainerInitialized init ) { if (!argsValidator.hasErrors()) { System.out.println( "Hello " + argsValidator.getValidParameters().get( 0 ) ); } else { for (String error : argsValidator.getErrors()) { System.ou...
diff --git a/src/main/java/de/hypoport/twitterwall/config/TwitterConfiguration.java b/src/main/java/de/hypoport/twitterwall/config/TwitterConfiguration.java index a78d0ff..4f92dd3 100644 --- a/src/main/java/de/hypoport/twitterwall/config/TwitterConfiguration.java +++ b/src/main/java/de/hypoport/twitterwall/config/Twitt...
true
true
public boolean isFullyConfigured() { boolean fullyConfigured = consumerKey != null && consumerSecret != null && !consumerKey.isEmpty() && !consumerSecret.isEmpty(); fullyConfigured = false; if (!fullyConfigured) { logger.warn("No configuration for Twitter found.\n" + "The search service is...
public boolean isFullyConfigured() { boolean fullyConfigured = consumerKey != null && consumerSecret != null && !consumerKey.isEmpty() && !consumerSecret.isEmpty(); if (!fullyConfigured) { logger.warn("No configuration for Twitter found.\n" + "The search service is disabled and will only retur...
diff --git a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java b/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGroupAction.java index c1d3ec0f7..dabf12c59 100644 --- a/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ProjectGro...
true
true
public String save() throws ContinuumException { try { checkModifyProjectGroupAuthorization( getProjectGroupName() ); } catch ( AuthorizationRequiredException authzE ) { addActionError( authzE.getMessage() ); return REQUIRES_AUT...
public String save() throws ContinuumException { try { checkModifyProjectGroupAuthorization( getProjectGroupName() ); } catch ( AuthorizationRequiredException authzE ) { addActionError( authzE.getMessage() ); return REQUIRES_AUT...
diff --git a/microemulator/microemu-midp/src/main/java/javax/microedition/lcdui/StringComponent.java b/microemulator/microemu-midp/src/main/java/javax/microedition/lcdui/StringComponent.java index 5ae54ab7..c3621599 100644 --- a/microemulator/microemu-midp/src/main/java/javax/microedition/lcdui/StringComponent.java +++...
true
true
public int paint(Graphics g) { if (text == null) { return 0; } int y; synchronized (this) { if (numOfBreaks == -1) { updateBreaks(); } int i, prevIndex; Font f = Font.getDefaultFont(); for (i = prevIndex = y = 0; i < numOfBreaks; i++) { if (invertPaint) { g.setGrayScale(0); ...
public int paint(Graphics g) { if (text == null) { return 0; } int y; synchronized (this) { if (numOfBreaks == -1) { updateBreaks(); } int i, prevIndex; Font f = Font.getDefaultFont(); for (i = prevIndex = y = 0; i < numOfBreaks; i++) { if (invertPaint) { g.setGrayScale(0); ...
diff --git a/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java b/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java index d671be6547..0653d85d68 100644 --- a/test-modules/functional-tests/src/test/java/org/openlmis/functional/E2EInitiateRnR.java...
true
true
public void testE2EInitiateRnR(String program, String userSIC, String userMO, String userlmu, String password, String[] credentials) throws Exception { LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal); HomePage homePage = loginPage.loginAs(credentials[0], credentials[1]); CreateFacilityP...
public void testE2EInitiateRnR(String program, String userSIC, String userMO, String userlmu, String password, String[] credentials) throws Exception { LoginPage loginPage = new LoginPage(testWebDriver, baseUrlGlobal); HomePage homePage = loginPage.loginAs(credentials[0], credentials[1]); CreateFacilityP...
diff --git a/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/InnerModelHelper.java b/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/InnerModelHelper.java index 5f2b6e59..edcb8ec8 100644 --- a/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/model/helpers/I...
true
true
public static XModel createXModel(IProject project) { IModelNature n = EclipseResourceUtil.getModelNature(project.getProject()); if(n != null) return n.getModel(); XModelObject o = EclipseResourceUtil.createObjectForResource(project.getProject()); if(o == null) return null; XModel model = o.getModel(); ...
public static XModel createXModel(IProject project) { IModelNature n = EclipseResourceUtil.getModelNature(project.getProject()); if(n != null) return n.getModel(); XModelObject o = EclipseResourceUtil.createObjectForResource(project.getProject()); if(o == null) return null; XModel model = o.getModel(); ...
diff --git a/src/ca/ualberta/CMPUT301F13T02/chooseyouradventure/elasticsearch/ESHttpRequest.java b/src/ca/ualberta/CMPUT301F13T02/chooseyouradventure/elasticsearch/ESHttpRequest.java index c44a6ad..98bf2be 100644 --- a/src/ca/ualberta/CMPUT301F13T02/chooseyouradventure/elasticsearch/ESHttpRequest.java +++ b/src/ca/ualb...
false
true
public String execute() throws IOException, HandlerException { /* This method with inspiration from https://github.com/rayzhangcl/ESDemo */ HttpResponse response = null; try { response = ESHandler.client.execute(this); } catch (ClientProtocolException e) { e.printStackTrace(); } catch (IOExcep...
public String execute() throws IOException, HandlerException { /* This method with inspiration from https://github.com/rayzhangcl/ESDemo */ HttpResponse response = null; try { response = ESHandler.client.execute(this); } catch (Exception e) { e.printStackTrace(); throw new HandlerException("Fai...
diff --git a/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/restlets/AbstractStorableDomainObjectResource.java b/web/src/main/java/edu/northwestern/bioinformatics/studycalendar/restlets/AbstractStorableDomainObjectResource.java index 53b1525dd..6114d0fca 100644 --- a/web/src/main/java/edu/northwestern/...
true
true
public Representation put(Representation entity, Variant variant) throws ResourceException { if (entity.getMediaType().includes(MediaType.TEXT_XML)) { validateEntity(entity); D read; try { read = getXmlSerializer().readDocument(entity.getStream()); ...
public Representation put(Representation entity, Variant variant) throws ResourceException { if (entity.getMediaType().includes(MediaType.TEXT_XML)) { validateEntity(entity); D read; try { read = getXmlSerializer().readDocument(entity.getStream()); ...
diff --git a/addons/impl/src/main/java/org/jboss/forge/addons/AddonProjectConfigurator.java b/addons/impl/src/main/java/org/jboss/forge/addons/AddonProjectConfigurator.java index 727d7716f..3dc6a2100 100644 --- a/addons/impl/src/main/java/org/jboss/forge/addons/AddonProjectConfigurator.java +++ b/addons/impl/src/main/j...
true
true
public void setupAddonProject(Project project, Version forgeVersion, Iterable<AddonId> dependencyAddons) { MetadataFacet metadata = project.getFacet(MetadataFacet.class); String projectName = metadata.getProjectName(); metadata.setProjectName(projectName + "-parent"); DirectoryResource new...
public void setupAddonProject(Project project, Version forgeVersion, Iterable<AddonId> dependencyAddons) { MetadataFacet metadata = project.getFacet(MetadataFacet.class); String projectName = metadata.getProjectName(); metadata.setProjectName(projectName + "-parent"); DirectoryResource new...
diff --git a/hale/eu.esdihumboldt.hale.ui.util/src/eu/esdihumboldt/hale/ui/util/viewer/tree/TreePathFilteredTree.java b/hale/eu.esdihumboldt.hale.ui.util/src/eu/esdihumboldt/hale/ui/util/viewer/tree/TreePathFilteredTree.java index 99f3defb2..69b9e4563 100644 --- a/hale/eu.esdihumboldt.hale.ui.util/src/eu/esdihumboldt/h...
true
true
protected Object[] getFilteredChildren(Object parent) { Object[] elements = getRawChildren(parent); if (parent != null && !(parent instanceof TreePath)) { // root element parent = TreePath.EMPTY; } TreePath parentPath = (TreePath) parent; // create tree paths from elements List<T...
protected Object[] getFilteredChildren(Object parent) { Object[] elements = getRawChildren(parent); if (parent != null && !(parent instanceof TreePath)) { // root element parent = TreePath.EMPTY; } TreePath parentPath = (TreePath) parent; // create tree paths from elements List<T...
diff --git a/src/de/schildbach/pte/AbstractEfaProvider.java b/src/de/schildbach/pte/AbstractEfaProvider.java index 3cfeced9..3345364f 100644 --- a/src/de/schildbach/pte/AbstractEfaProvider.java +++ b/src/de/schildbach/pte/AbstractEfaProvider.java @@ -1,2055 +1,2058 @@ /* * Copyright 2010, 2011 the original author or...
true
true
protected String parseLine(final String mot, final String name, final String longName, final String noTrainName) { if (mot == null) { if (noTrainName != null) { final String str = name != null ? name : ""; if (noTrainName.equals("S-Bahn")) return 'S' + str; if (noTrainName.equals("U-Bahn"))...
protected String parseLine(final String mot, final String name, final String longName, final String noTrainName) { if (mot == null) { if (noTrainName != null) { final String str = name != null ? name : ""; if (noTrainName.equals("S-Bahn")) return 'S' + str; if (noTrainName.equals("U-Bahn"))...
diff --git a/cli/src/test/java/com/predic8/membrane/examples/DistributionExtractingTestcase.java b/cli/src/test/java/com/predic8/membrane/examples/DistributionExtractingTestcase.java index abc0c2a4..1bc3785b 100644 --- a/cli/src/test/java/com/predic8/membrane/examples/DistributionExtractingTestcase.java +++ b/cli/src/t...
false
true
public void init() throws IOException, InterruptedException { targetDir = new File("target").getCanonicalFile(); if (!targetDir.exists()) throw new RuntimeException("membraneHome " + targetDir.getName() + " does not exist."); File zip = null; { File[] files = targetDir.listFiles(new FilenameFilter() {...
public void init() throws IOException, InterruptedException { targetDir = new File("target").getCanonicalFile(); if (!targetDir.exists()) throw new RuntimeException("membraneHome " + targetDir.getName() + " does not exist."); File zip = null; { File[] files = targetDir.listFiles(new FilenameFilter() {...
diff --git a/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java b/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java index 1d4d57ca8..122bd4981 100644 --- a/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java +++ b/maven-core-it-verifier/src/main/java/org/apach...
true
true
private void verifyExpectedResult( String line ) throws VerificationException { line = replace( line, "${maven.repo.local}", mavenRepoLocal ); if ( line.indexOf( "!/" ) > 0 ) { String urlString = "jar:file:" + line; try { URL ...
private void verifyExpectedResult( String line ) throws VerificationException { line = replace( line, "${maven.repo.local}", mavenRepoLocal ); if ( line.indexOf( "!/" ) > 0 ) { String urlString = "jar:file:" + line; try { URL ...
diff --git a/src/main/java/com/greplin/zookeeper/RobustZooKeeper.java b/src/main/java/com/greplin/zookeeper/RobustZooKeeper.java index c785091..dc9326d 100644 --- a/src/main/java/com/greplin/zookeeper/RobustZooKeeper.java +++ b/src/main/java/com/greplin/zookeeper/RobustZooKeeper.java @@ -1,212 +1,212 @@ /* * Copyrig...
true
true
private void lockRecipeStepTwo(final String fullPath, final String relativePath, final String lockName, final Runnable action) throws IOException, InterruptedException, KeeperException { // step 2 final List<String> children = getClient().getChildren(getLockParent(lockNa...
private void lockRecipeStepTwo(final String fullPath, final String relativePath, final String lockName, final Runnable action) throws IOException, InterruptedException, KeeperException { // step 2 final List<String> children = getClient().getChildren(getLockParent(lockNa...
diff --git a/src/main/java/de/ailis/xadrian/dialogs/SunsDialog.java b/src/main/java/de/ailis/xadrian/dialogs/SunsDialog.java index fa0badc..bfa7f4b 100644 --- a/src/main/java/de/ailis/xadrian/dialogs/SunsDialog.java +++ b/src/main/java/de/ailis/xadrian/dialogs/SunsDialog.java @@ -1,132 +1,132 @@ /* * $Id$ * Copyri...
false
true
protected void createUI() { setTitle(I18N.getTitle("dialog.setSuns")); setIconImages(Images.LOGOS); // Create the content controls final JLabel sunsLabel = new JLabel(I18N .getString("dialog.setSuns.suns")); this.sunsComboBox = new JComboBox(new String[] { "0...
protected void createUI() { setTitle(I18N.getTitle("dialog.changeSuns")); setIconImages(Images.LOGOS); // Create the content controls final JLabel sunsLabel = new JLabel(I18N .getString("dialog.changeSuns.suns")); this.sunsComboBox = new JComboBox(new String[...
diff --git a/src/edu/uc/cs/distsys/idetect/DetectMain.java b/src/edu/uc/cs/distsys/idetect/DetectMain.java index 6c676df..49a8d4d 100644 --- a/src/edu/uc/cs/distsys/idetect/DetectMain.java +++ b/src/edu/uc/cs/distsys/idetect/DetectMain.java @@ -1,198 +1,203 @@ package edu.uc.cs.distsys.idetect; import java.net.Unkn...
true
true
public static void main(String[] args) { int node = 0; if (args.length < 1) { //System.err.println("Usage: " + args[0] + "<port#> [peer#1] ... [peer#N]"); // DEBUGGING //port = new Random(System.currentTimeMillis()).nextInt(1000) + 1024; node = new Random(System.currentTimeMillis()).nextInt(1000); ...
public static void main(String[] args) { int node = 0; if (args.length < 1) { //System.err.println("Usage: " + args[0] + "<port#> [peer#1] ... [peer#N]"); // DEBUGGING //port = new Random(System.currentTimeMillis()).nextInt(1000) + 1024; node = new Random(System.currentTimeMillis()).nextInt(1000); ...
diff --git a/plugins/gwiki-pagetemplates/src/main/java/de/micromata/genome/gwiki/pagetemplates_1_0/macro/PtSectionMacroBean.java b/plugins/gwiki-pagetemplates/src/main/java/de/micromata/genome/gwiki/pagetemplates_1_0/macro/PtSectionMacroBean.java index 58c293d4..aa8c5be2 100644 --- a/plugins/gwiki-pagetemplates/src/mai...
true
true
public boolean renderImpl(final GWikiContext ctx, MacroAttributes attrs) { GWikiElementInfo ei = ctx.getCurrentElement().getElementInfo(); if (ctx.getCurrentElement() != null) { if (ei != null) { ctx.getWikiWeb().getI18nProvider().addTranslationElement(ctx, "edit/pagetemplates/i18n/PtI18N"); ...
public boolean renderImpl(final GWikiContext ctx, MacroAttributes attrs) { GWikiElementInfo ei = ctx.getWikiWeb().findElementInfo("edit/pagetemplates/PageSectionEditor"); if (ctx.getCurrentElement() != null) { if (ei != null) { ctx.getWikiWeb().getI18nProvider().addTranslationElement(ctx, "ed...
diff --git a/src/main/java/grisu/gricli/command/KillJobCommand.java b/src/main/java/grisu/gricli/command/KillJobCommand.java index 888116b..fbcf8fa 100644 --- a/src/main/java/grisu/gricli/command/KillJobCommand.java +++ b/src/main/java/grisu/gricli/command/KillJobCommand.java @@ -1,150 +1,149 @@ package grisu.gricli.c...
false
true
public GricliEnvironment execute(GricliEnvironment env) throws GricliRuntimeException { String cmd = "kill"; if (clean) { cmd = "clean"; } if (deprecated) { env.printMessage("\"" + cmd + " jobs\" command is depreacted. Please use \"" + cmd + " job [arg]\" instead. For more infor...
public GricliEnvironment execute(GricliEnvironment env) throws GricliRuntimeException { String cmd = "kill"; if (clean) { cmd = "clean"; } if (deprecated) { env.printMessage("\"" + cmd + " jobs\" command is depreacted. Please use \"" + cmd + " job [arg]\" instead. For more infor...
diff --git a/DeliveryPerformance/src/com/sff/report_performance/ReportParameterTableHeaderListener.java b/DeliveryPerformance/src/com/sff/report_performance/ReportParameterTableHeaderListener.java index 57a6f0e..7d75960 100644 --- a/DeliveryPerformance/src/com/sff/report_performance/ReportParameterTableHeaderListener.j...
true
true
public void itemStateChanged(ItemEvent e){ MyTableModel model = Active.getActiveDisplayModel(); if(e.getStateChange() == ItemEvent.SELECTED && model != null){ JTable display = Active.getActiveDisplayTable(); if(model.getRowData().isEmpty()){ ((CheckBoxHeader) display.getColumnModel().getColumn(0).getHead...
public void itemStateChanged(ItemEvent e){ MyTableModel model = Active.getActiveDisplayModel(); if(e.getStateChange() == ItemEvent.SELECTED && model != null){ JTable display = Active.getActiveDisplayTable(); if(model.getRowData().isEmpty()){ ((CheckBoxHeader) display.getColumnModel().getColumn(0).getHead...
diff --git a/src/com/axelby/podax/PodcastDetailActivity.java b/src/com/axelby/podax/PodcastDetailActivity.java index 2f6dacf..6ab6935 100644 --- a/src/com/axelby/podax/PodcastDetailActivity.java +++ b/src/com/axelby/podax/PodcastDetailActivity.java @@ -1,283 +1,285 @@ package com.axelby.podax; import android.app.Ac...
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = this.getIntent(); if (intent.hasExtra(Constants.EXTRA_PODCAST_ID)) { int podcastId = intent.getIntExtra(Constants.EXTRA_PODCAST_ID, -1); if (podcastId == -1) { finish(); return; } Uri uri = ...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = this.getIntent(); if (intent.hasExtra(Constants.EXTRA_PODCAST_ID)) { int podcastId = intent.getIntExtra(Constants.EXTRA_PODCAST_ID, -1); if (podcastId == -1) { finish(); return; } Uri uri = ...
diff --git a/weechat-android/src/com/ubergeek42/WeechatAndroid/WeechatPreferencesActivity.java b/weechat-android/src/com/ubergeek42/WeechatAndroid/WeechatPreferencesActivity.java index 6c24ff7..ba1481a 100644 --- a/weechat-android/src/com/ubergeek42/WeechatAndroid/WeechatPreferencesActivity.java +++ b/weechat-android/s...
true
true
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { if (key.equals("host")) { hostPref.setSummary(sharedPreferences.getString(key, "")); } else if (key.equals("port")) { portPref.setSummary(sharedPreferences.getString("port", "8001")); ...
public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { if (key.equals("host")) { hostPref.setSummary(sharedPreferences.getString(key, "")); } else if (key.equals("port")) { portPref.setSummary(sharedPreferences.getString("port", "8001")); ...
diff --git a/src/main/java/org/signaut/common/hazelcast/HazelcastFactory.java b/src/main/java/org/signaut/common/hazelcast/HazelcastFactory.java index e2791ff..e129a1c 100644 --- a/src/main/java/org/signaut/common/hazelcast/HazelcastFactory.java +++ b/src/main/java/org/signaut/common/hazelcast/HazelcastFactory.java @@ ...
true
true
public HazelcastInstance loadHazelcastInstance(String filename, Class<?> loadingClass) { // Load file from current location final File file = new File("./" + filename); final XmlConfigBuilder configBuilder; if (file.exists()) { try { configBuilder = new Xm...
public HazelcastInstance loadHazelcastInstance(String filename, Class<?> loadingClass) { // Load file from current location final File file = new File("./" + filename); final XmlConfigBuilder configBuilder; if (file.exists()) { try { configBuilder = new Xm...
diff --git a/src/main/java/com/brightcove/johnny/http/NullableValueQueryParser.java b/src/main/java/com/brightcove/johnny/http/NullableValueQueryParser.java index 7736cdf..ea35671 100644 --- a/src/main/java/com/brightcove/johnny/http/NullableValueQueryParser.java +++ b/src/main/java/com/brightcove/johnny/http/NullableV...
true
true
public Iterable<Map.Entry<String, String>> parseAs(String queryRaw) { if (queryRaw == null) { return EMPTY_LIST; } LinkedList<Map.Entry<String, String>> ret = new LinkedList<Map.Entry<String, String>>(); String[] pairs = pairSep.split(queryRaw); for (String pair :...
public Iterable<Map.Entry<String, String>> parseAs(String queryRaw) { if (queryRaw == null) { return EMPTY_LIST; } LinkedList<Map.Entry<String, String>> ret = new LinkedList<Map.Entry<String, String>>(); String[] pairs = pairSep.split(queryRaw); for (String pair :...
diff --git a/luaj-vm/src/addon/java/lua/addon/luacompat/CoroutinesLib.java b/luaj-vm/src/addon/java/lua/addon/luacompat/CoroutinesLib.java index 9017c2b..be2f6ef 100644 --- a/luaj-vm/src/addon/java/lua/addon/luacompat/CoroutinesLib.java +++ b/luaj-vm/src/addon/java/lua/addon/luacompat/CoroutinesLib.java @@ -1,98 +1,101...
true
true
public boolean luaStackCall( VM vm ) { switch ( id ) { case 0: { // load lib install(); vm.pushnil(); break; } case 1: { // create Closure c = (Closure) vm.topointer(2); vm.pushlvalue( new LThread(c) ); break; } case 2: {// resume LThread t = (LThread) vm.topointer(2); ...
public boolean luaStackCall( VM vm ) { switch ( id ) { case 0: { // load lib install(); vm.pushnil(); break; } case 1: { // create Closure c = (Closure) vm.topointer(2); vm.pushlvalue( new LThread(c) ); break; } case 2: {// resume LThread t = (LThread) vm.topointer(2); ...
diff --git a/components/dotnet-artifact/src/test/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImplTest.java b/components/dotnet-artifact/src/test/java/org/apache/maven/dotnet/artifact/impl/ArtifactInstallerImplTest.java index d3183b86..ab0e4fca 100644 --- a/components/dotnet-artifact/src/test/java/org/ap...
false
true
public void testInstallArtifactAndDependenciesIntoPrivateApplicationBase() { File testRepo = new File( System.getProperty( "basedir" ), "target/test-repo/repository" ); ArtifactInstallerImpl artifactInstaller = new ArtifactInstallerImpl(); artifactInstaller.init( null, new ArrayList<Arti...
public void testInstallArtifactAndDependenciesIntoPrivateApplicationBase() { /* File testRepo = new File( System.getProperty( "basedir" ), "target/test-repo/repository" ); ArtifactInstallerImpl artifactInstaller = new ArtifactInstallerImpl(); artifactInstaller.init( null, new ArrayL...
diff --git a/src/test/cli/cloudify/cloud/hp/HpCloudService.java b/src/test/cli/cloudify/cloud/hp/HpCloudService.java index 4743d8f8..167486ad 100644 --- a/src/test/cli/cloudify/cloud/hp/HpCloudService.java +++ b/src/test/cli/cloudify/cloud/hp/HpCloudService.java @@ -1,99 +1,100 @@ package test.cli.cloudify.cloud.hp; ...
true
true
public void injectAuthenticationDetails() throws IOException { String cloudTestPath = (SGTestHelper.getSGTestRootDir() + "/apps/cloudify/cloud/" + cloudName).replace('\\', '/'); String sshKeyPemName = pemFileName + ".pem"; // cloud plugin should include recipe that includes secret key File cloudPluginDir ...
public void injectAuthenticationDetails() throws IOException { String cloudTestPath = (SGTestHelper.getSGTestRootDir() + "/apps/cloudify/cloud/" + cloudName).replace('\\', '/'); String sshKeyPemName = pemFileName + ".pem"; // cloud plugin should include recipe that includes secret key File cloudPluginDir ...
diff --git a/src/biz/bokhorst/xprivacy/XWifiManager.java b/src/biz/bokhorst/xprivacy/XWifiManager.java index d16b1873..53b15bea 100644 --- a/src/biz/bokhorst/xprivacy/XWifiManager.java +++ b/src/biz/bokhorst/xprivacy/XWifiManager.java @@ -1,110 +1,112 @@ package biz.bokhorst.xprivacy; import java.lang.reflect.Field...
true
true
protected void after(MethodHookParam param) throws Throwable { if (param.method.getName().equals("getConnectionInfo")) { // frameworks/base/wifi/java/android/net/wifi/WifiInfo.java WifiInfo wInfo = (WifiInfo) param.getResult(); if (wInfo != null) if (isRestricted(param)) if (getRestrictionName().eq...
protected void after(MethodHookParam param) throws Throwable { if (param.method.getName().equals("getConnectionInfo")) { // frameworks/base/wifi/java/android/net/wifi/WifiInfo.java WifiInfo wInfo = (WifiInfo) param.getResult(); if (wInfo != null) if (isRestricted(param)) if (getRestrictionName().eq...
diff --git a/src/btwmods/io/Settings.java b/src/btwmods/io/Settings.java index 0d64075..0b39271 100644 --- a/src/btwmods/io/Settings.java +++ b/src/btwmods/io/Settings.java @@ -1,91 +1,91 @@ package btwmods.io; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOExcept...
true
true
public static Settings readSettings(File file) throws IOException { BufferedReader reader = new BufferedReader(new FileReader(file)); Map settings = new LinkedHashMap<String, String>(); String section = ""; String line; int equalsIndex; while ((line = reader.readLine()) != null) { // Trim leading white...
public static Settings readSettings(File file) throws IOException { BufferedReader reader = new BufferedReader(new FileReader(file)); Map settings = new LinkedHashMap<String, String>(); String section = ""; String line; int equalsIndex; while ((line = reader.readLine()) != null) { // Trim leading white...
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/operations/ProvisioningUtil.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/provisional/p2/ui/operations/ProvisioningUtil.java index a6b9ada80..2ad46dfb2 100644 --- a/bundles/org.eclipse.equinox.p...
false
true
public static IStatus performProvisioningPlan(ProvisioningPlan plan, PhaseSet phaseSet, ProvisioningContext context, IProgressMonitor monitor) throws ProvisionException { PhaseSet set; if (phaseSet == null) set = new DefaultPhaseSet(); else set = phaseSet; // 300 ticks for download, 100 to install handl...
public static IStatus performProvisioningPlan(ProvisioningPlan plan, PhaseSet phaseSet, ProvisioningContext context, IProgressMonitor monitor) throws ProvisionException { PhaseSet set; if (phaseSet == null) set = new DefaultPhaseSet(); else set = phaseSet; // 300 ticks for download, 100 to install handl...
diff --git a/sql12/plugins/editextras/src/net/sourceforge/squirrel_sql/plugins/editextras/searchandreplace/SearchAndReplaceKernel.java b/sql12/plugins/editextras/src/net/sourceforge/squirrel_sql/plugins/editextras/searchandreplace/SearchAndReplaceKernel.java index 5e30bfdd0..6c14b7468 100644 --- a/sql12/plugins/editext...
true
true
private String getRegExp() { StringBuffer ret = new StringBuffer(); if(_lastFindConfig.wholeWord) { ret.append("(\\s|\\A)"); } for (int i = 0; i < _lastFindConfig.toSearch.length(); i++) { if('.' == _lastFindConfig.toSearch.charAt(i)) { ret.append("(\\.)"); } else if('^' == _lastFindC...
private String getRegExp() { StringBuffer ret = new StringBuffer(); if(_lastFindConfig.wholeWord) { ret.append("(\\s|\\A)"); } for (int i = 0; i < _lastFindConfig.toSearch.length(); i++) { if('.' == _lastFindConfig.toSearch.charAt(i)) { ret.append("(\\.)"); } else if('^' == _lastFindC...
diff --git a/GW01/src/at/jku/ce/ue/source/entities/Database.java b/GW01/src/at/jku/ce/ue/source/entities/Database.java index a2bf5eb..19fbf65 100644 --- a/GW01/src/at/jku/ce/ue/source/entities/Database.java +++ b/GW01/src/at/jku/ce/ue/source/entities/Database.java @@ -1,223 +1,223 @@ /** * */ package at.jku.ce.u...
false
true
private void producePartsForProducer() { LinkedList<Part> parts = new LinkedList<Part>(); BOMServiceUtil bomService = new BOMServiceUtilImpl(); partsOnPlattform = new HashMap<String, Part>(); // List of all parts List<String> productList = bomService.getAllPartsOfBOM(); log.severe("PART COUNT: " + prod...
private void producePartsForProducer() { LinkedList<Part> parts = new LinkedList<Part>(); BOMServiceUtil bomService = new BOMServiceUtilImpl(); partsOnPlattform = new HashMap<String, Part>(); // List of all parts List<String> productList = bomService.getAllPartsOfBOM(); log.severe("PART COUNT: " + prod...
diff --git a/src/org/mythtv/service/guide/ProgramGuideDownloadService.java b/src/org/mythtv/service/guide/ProgramGuideDownloadService.java index e6c066ef..90d23bc5 100644 --- a/src/org/mythtv/service/guide/ProgramGuideDownloadService.java +++ b/src/org/mythtv/service/guide/ProgramGuideDownloadService.java @@ -1,193 +1,...
true
true
private void download() { // Log.v( TAG, "download : enter" ); boolean newDataDownloaded = false; sendNotification(); DateTime start = new DateTime(); start = start.withTime( 0, 0, 0, 001 ); File programGuideCache = mFileHelper.getProgramGuideDataDirectory(); if( programGuideCache.exists() ) {...
private void download() { // Log.v( TAG, "download : enter" ); boolean newDataDownloaded = false; sendNotification(); DateTime start = new DateTime(); start = start.withTime( 0, 0, 0, 001 ); File programGuideCache = mFileHelper.getProgramGuideDataDirectory(); if( null != programGuideCache && p...
diff --git a/spf4j-core/src/main/java/org/spf4j/stackmonitor/FastStackCollector.java b/spf4j-core/src/main/java/org/spf4j/stackmonitor/FastStackCollector.java index 4340dd27bd..03c5c66678 100644 --- a/spf4j-core/src/main/java/org/spf4j/stackmonitor/FastStackCollector.java +++ b/spf4j-core/src/main/java/org/spf4j/stackm...
false
true
public void sample(final Thread ignore) { try { Thread[] threads = (Thread[]) GET_THREADS.invoke(null); final int nrThreads = threads.length; int currThreadPos = -1; for (int i = 0; i < nrThreads; i++) { if (ignore == threads[i]) { // not inter...
public void sample(final Thread ignore) { try { Thread[] threads = (Thread[]) GET_THREADS.invoke(null); final int nrThreads = threads.length; for (int i = 0; i < nrThreads; i++) { if (ignore == threads[i]) { // not interested in the sampler's stack trace ...
diff --git a/se/sics/mspsim/cli/MiscCommands.java b/se/sics/mspsim/cli/MiscCommands.java index 6caf6e9..203cae3 100644 --- a/se/sics/mspsim/cli/MiscCommands.java +++ b/se/sics/mspsim/cli/MiscCommands.java @@ -1,433 +1,433 @@ /** * Copyright (c) 2007, Swedish Institute of Computer Science. * All rights reserved. ...
false
true
public void setupCommands(final ComponentRegistry registry, CommandHandler handler) { handler.registerCommand("grep", new BasicLineCommand("print lines matching the specified pattern", "[-i] [-v] <regexp>") { private PrintStream out; private Pattern pattern; private boolean isInverted = false; ...
public void setupCommands(final ComponentRegistry registry, CommandHandler handler) { handler.registerCommand("grep", new BasicLineCommand("print lines matching the specified pattern", "[-i] [-v] <regexp>") { private PrintStream out; private Pattern pattern; private boolean isInverted = false; ...
diff --git a/src/net/dkebnh/bukkit/FlatlandsBuilder/FlatlandsBuilder.java b/src/net/dkebnh/bukkit/FlatlandsBuilder/FlatlandsBuilder.java index 83ad06a..a02e284 100644 --- a/src/net/dkebnh/bukkit/FlatlandsBuilder/FlatlandsBuilder.java +++ b/src/net/dkebnh/bukkit/FlatlandsBuilder/FlatlandsBuilder.java @@ -1,98 +1,98 @@ ...
true
true
public void onEnable(){ File dFolder = getDataFolder(); if(!dFolder.exists()) dFolder.mkdirs(); confFile = new File(dFolder, "config.yml"); this.getServer().getWorldContainer(); if (confFile.exists()) { conf = YamlConfiguration.loadConfiguration(confFile); height = conf.getInt("global.def...
public void onEnable(){ File dFolder = getDataFolder(); if(!dFolder.exists()) dFolder.mkdirs(); confFile = new File(dFolder, "config.yml"); this.getServer().getWorldContainer(); if (confFile.exists()) { conf = YamlConfiguration.loadConfiguration(confFile); height = conf.getInt("global.def...
diff --git a/holmes-core/src/main/java/net/holmes/core/transport/session/SessionDaoImpl.java b/holmes-core/src/main/java/net/holmes/core/transport/session/SessionDaoImpl.java index 7e9f4065..124a0aae 100644 --- a/holmes-core/src/main/java/net/holmes/core/transport/session/SessionDaoImpl.java +++ b/holmes-core/src/main/...
true
true
public void updateSessionPosition(final String deviceId, final Long position, final Long duration) throws UnknownSessionException { StreamingSession session = getSession(deviceId); // If duration is already set and end of streaming is reached, update session's status if (session.getDuration...
public void updateSessionPosition(final String deviceId, final Long position, final Long duration) throws UnknownSessionException { StreamingSession session = getSession(deviceId); // If duration is already set and end of streaming is reached, update session's status if (session.getDuration...
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/tests/TestExpressions.java index e638b7106..c5ad02ab5 100644 --- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debu...
false
true
private void runTest() { if (bp_id == null) { bp.set(null, new IBreakpoints.DoneCommand() { public void doneCommand(IToken token, Exception error) { if (error != null) { exit(error); } else { ...
private void runTest() { if (bp_id == null) { bp.set(null, new IBreakpoints.DoneCommand() { public void doneCommand(IToken token, Exception error) { if (error != null) { exit(error); } else { ...
diff --git a/src/test/java/com/od/filtertable/TestTableModelIndexer.java b/src/test/java/com/od/filtertable/TestTableModelIndexer.java index db541eb..44857c0 100644 --- a/src/test/java/com/od/filtertable/TestTableModelIndexer.java +++ b/src/test/java/com/od/filtertable/TestTableModelIndexer.java @@ -1,404 +1,404 @@ /*...
false
true
public void testEnsureCapacity() { FixtureTableModel tableModel = readTableModel("/testEnsureCapacity.csv"); TableModelIndexer indexer = new TableModelIndexer(tableModel, 1); assertEquals(2, indexer.tableCells.length); tableModel.insertRows(0, (ArrayList<Object>)tabl...
public void testEnsureCapacity() { FixtureTableModel tableModel = readTableModel("/testEnsureCapacity.csv"); TableModelIndexer indexer = new TableModelIndexer(tableModel, 1); assertEquals(2, indexer.tableCells.length); tableModel.insertRows(0, (ArrayList<Object>)tabl...
diff --git a/plugins/org.jboss.tools.forge.ui.ext/src/org/jboss/tools/forge/ui/ext/util/FurnaceHelper.java b/plugins/org.jboss.tools.forge.ui.ext/src/org/jboss/tools/forge/ui/ext/util/FurnaceHelper.java index a3b49ebf..b085a667 100644 --- a/plugins/org.jboss.tools.forge.ui.ext/src/org/jboss/tools/forge/ui/ext/util/Furn...
true
true
public static Job createStartFurnaceJob() { final FurnaceRuntime runtime = FurnaceRuntime.INSTANCE; final String version = runtime.getVersion(); WorkspaceJob job = new WorkspaceJob("Starting Forge" + version) { @Override public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException...
public static Job createStartFurnaceJob() { final FurnaceRuntime runtime = FurnaceRuntime.INSTANCE; final String version = runtime.getVersion(); WorkspaceJob job = new WorkspaceJob("Starting Forge " + version) { @Override public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreExceptio...
diff --git a/src/main/java/org/agmip/translators/dssat/DssatXFileInput.java b/src/main/java/org/agmip/translators/dssat/DssatXFileInput.java index a74701d..a412703 100644 --- a/src/main/java/org/agmip/translators/dssat/DssatXFileInput.java +++ b/src/main/java/org/agmip/translators/dssat/DssatXFileInput.java @@ -1,996 +...
true
true
protected AdvancedHashMap readFile(HashMap brMap) throws IOException { AdvancedHashMap ret = new AdvancedHashMap(); String line; BufferedReader br; char[] buf; BufferedReader brw = null; char[] bufW = null; HashMap mapW; String wid; String fil...
protected AdvancedHashMap readFile(HashMap brMap) throws IOException { AdvancedHashMap ret = new AdvancedHashMap(); String line; BufferedReader br; char[] buf; BufferedReader brw = null; char[] bufW = null; HashMap mapW; String wid; String fil...
diff --git a/htroot/yacysearchitem.java b/htroot/yacysearchitem.java index b693cb2d0..9644560df 100644 --- a/htroot/yacysearchitem.java +++ b/htroot/yacysearchitem.java @@ -1,238 +1,239 @@ // yacysearchitem.java // (C) 2007 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany // first published 28.08.200...
true
true
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { final Switchboard sb = (Switchboard) env; final serverObjects prop = new serverObjects(); final String eventID = post.get("eventID", ""); final boolean authent...
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) { final Switchboard sb = (Switchboard) env; final serverObjects prop = new serverObjects(); final String eventID = post.get("eventID", ""); final boolean authent...
diff --git a/src/main/java/hudson/ivy/AbstractIvyProject.java b/src/main/java/hudson/ivy/AbstractIvyProject.java index a5341b6..90b94d2 100644 --- a/src/main/java/hudson/ivy/AbstractIvyProject.java +++ b/src/main/java/hudson/ivy/AbstractIvyProject.java @@ -1,91 +1,91 @@ /* * The MIT License * * Copyright (c) 200...
true
true
protected List<Action> createTransientActions() { List<Action> r = super.createTransientActions(); // if we just pick up the project actions from the last build, // and if the last build failed very early, then the reports that // kick in later (like test results) won't be displayed...
protected List<Action> createTransientActions() { List<Action> r = super.createTransientActions(); // if we just pick up the project actions from the last build, // and if the last build failed very early, then the reports that // kick in later (like test results) won't be displayed...
diff --git a/SeriesGuideMovies/src/com/uwetrottmann/movies/ui/MovieDetailsFragment.java b/SeriesGuideMovies/src/com/uwetrottmann/movies/ui/MovieDetailsFragment.java index c324cc7..fe1d5e2 100644 --- a/SeriesGuideMovies/src/com/uwetrottmann/movies/ui/MovieDetailsFragment.java +++ b/SeriesGuideMovies/src/com/uwetrottmann...
true
true
public View getView(int position, View convertView, ViewGroup parent) { View view; if (convertView == null) { view = mLayoutInflater.inflate(LAYOUT, parent, false); } else { view = convertView; } final MovieDetails ite...
public View getView(int position, View convertView, ViewGroup parent) { View view; if (convertView == null) { view = mLayoutInflater.inflate(LAYOUT, parent, false); } else { view = convertView; } final MovieDetails ite...
diff --git a/opal-upgrade/src/main/java/org/obiba/opal/core/upgrade/v2_0_x/database/MoveQuartzTablesUpgradeStep.java b/opal-upgrade/src/main/java/org/obiba/opal/core/upgrade/v2_0_x/database/MoveQuartzTablesUpgradeStep.java index 46be7b337..dcfcceeb0 100644 --- a/opal-upgrade/src/main/java/org/obiba/opal/core/upgrade/v2...
true
true
public void execute(Version currentVersion) { JdbcOperations dataJdbcTemplate = new JdbcTemplate(databaseRegistry.getDataSource("opal-data", null)); JdbcOperations configJdbcTemplate = new JdbcTemplate(configDataSource); // no need to copy data as BIRT reports are removed from config for(String table ...
public void execute(Version currentVersion) { JdbcOperations dataJdbcTemplate = new JdbcTemplate(databaseRegistry.getDataSource("opal-data", null)); // no need to copy data as BIRT reports are removed from config for(String table : DELETE_TABLES) { dataJdbcTemplate.execute("drop table " + table); ...
diff --git a/java/server/src/org/openqa/selenium/server/log/DefaultPerSessionLogHandler.java b/java/server/src/org/openqa/selenium/server/log/DefaultPerSessionLogHandler.java index ae6c86740..24600ffeb 100644 --- a/java/server/src/org/openqa/selenium/server/log/DefaultPerSessionLogHandler.java +++ b/java/server/src/org...
false
true
synchronized public void publish(LogRecord record) { ThreadKey threadId = new ThreadKey(); String sessionId = threadToSessionMap.get(threadId); if (sessionId != null) { List<LogRecord> records = perSessionRecords.get(sessionId); if (records == null) { records = new ArrayList<LogRecord...
synchronized public void publish(LogRecord record) { ThreadKey threadId = new ThreadKey(); String sessionId = threadToSessionMap.get(threadId); if (sessionId != null) { List<LogRecord> records = perSessionRecords.get(sessionId); if (records == null) { records = new ArrayList<LogRecord...
diff --git a/src/Ne0nx3r0/QuantumConnectors/CircuitManager.java b/src/Ne0nx3r0/QuantumConnectors/CircuitManager.java index 0e9bd91..2741e93 100644 --- a/src/Ne0nx3r0/QuantumConnectors/CircuitManager.java +++ b/src/Ne0nx3r0/QuantumConnectors/CircuitManager.java @@ -1,182 +1,183 @@ package Ne0nx3r0.QuantumConnectors; ...
true
true
public void Load(){ List tempCircuits = yml.getList("circuits"); if(tempCircuits == null){ System.out.println("[Quantum Connectors] No circuits.yml file found, will be created on the next save."); return; } Server server = Bukkit.getServer(); Locatio...
public void Load(){ List tempCircuits = yml.getList("circuits"); if(tempCircuits == null){ System.out.println("[Quantum Connectors] No circuits.yml file found, will be created on the next save."); return; } Server server = Bukkit.getServer(); Locatio...
diff --git a/topcat/src/main/uk/ac/starlink/topcat/PlotWindow.java b/topcat/src/main/uk/ac/starlink/topcat/PlotWindow.java index 9c3795bfc..c5202b2e1 100644 --- a/topcat/src/main/uk/ac/starlink/topcat/PlotWindow.java +++ b/topcat/src/main/uk/ac/starlink/topcat/PlotWindow.java @@ -1,962 +1,962 @@ package uk.ac.starlink...
true
true
public PlotWindow( TableViewer tableviewer ) { super( "Table Plotter", tableviewer ); this.tv = tableviewer; this.dataModel = tv.getDataModel(); this.columnModel = tv.getColumnModel(); this.subsets = tv.getSubsets(); /* Do some window setup. */ setSize( 400, ...
public PlotWindow( TableViewer tableviewer ) { super( "Table Plotter", tableviewer ); this.tv = tableviewer; this.dataModel = tv.getDataModel(); this.columnModel = tv.getColumnModel(); this.subsets = tv.getSubsets(); /* Do some window setup. */ setSize( 400, ...
diff --git a/src/com/ubhave/dataformatter/json/push/PhoneStateFormatter.java b/src/com/ubhave/dataformatter/json/push/PhoneStateFormatter.java index 1983347..3a37d62 100644 --- a/src/com/ubhave/dataformatter/json/push/PhoneStateFormatter.java +++ b/src/com/ubhave/dataformatter/json/push/PhoneStateFormatter.java @@ -1,5...
true
true
public SensorData toSensorData(String jsonString) { JSONObject jsonData = super.parseData(jsonString); if (jsonData != null) { long dataReceivedTimestamp = super.parseTimeStamp(jsonData); int eventType = (Integer) jsonData.get(EVENT_TYPE); String data = (String) jsonData.get(DATA); return new PhoneS...
public SensorData toSensorData(String jsonString) { JSONObject jsonData = super.parseData(jsonString); if (jsonData != null) { long dataReceivedTimestamp = super.parseTimeStamp(jsonData); int eventType = ((Long) jsonData.get(EVENT_TYPE)).intValue(); String data = (String) jsonData.get(DATA); return ...
diff --git a/src/util/Assets.java b/src/util/Assets.java index 55e2298..649410d 100644 --- a/src/util/Assets.java +++ b/src/util/Assets.java @@ -1,53 +1,53 @@ package util; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; public class Assets { public static Image TILE_ONE; public s...
false
true
public Assets() throws SlickException { TILE_ONE = new Image("bin/data/grass.png"); ROCK = new Image("bin/data/new rock.png"); CREATURE = new Image("bin/data/creature.png"); PLAYER = new Image("bin/data/overlap test.png"); FENCE = new Image("bin/data/fence.png"); TREE = new Image("bin/data/Tree no shad...
public Assets() throws SlickException { TILE_ONE = new Image("data/grass.png"); ROCK = new Image("data/new rock.png"); CREATURE = new Image("data/creature.png"); PLAYER = new Image("data/overlap test.png"); FENCE = new Image("data/fence.png"); TREE = new Image("data/Tree no shadow.png"); SHADOW = ne...
diff --git a/src/walledin/engine/TexturePartManager.java b/src/walledin/engine/TexturePartManager.java index d4c5128..602ae9e 100644 --- a/src/walledin/engine/TexturePartManager.java +++ b/src/walledin/engine/TexturePartManager.java @@ -1,40 +1,42 @@ package walledin.engine; import java.util.logging.Logger; impo...
true
true
public boolean createTexturePart(String texturePartID, String textureID, Rectangle rectangle) { Texture texture = TextureManager.getInstance().get(textureID); Rectangle scaledRectangle = rectangle.scaleAll(new Vector2f(texture .getWidth(), texture.getHeight())); TexturePart part = new TexturePart(texture,...
public boolean createTexturePart(String texturePartID, String textureID, Rectangle rectangle) { Texture texture = TextureManager.getInstance().get(textureID); float width = (float) texture.getWidth(); float height = (float) texture.getHeight(); Vector2f scale = new Vector2f(1 / width, 1 / height); Rectang...
diff --git a/core/src/java/liquibase/change/ModifyColumnChange.java b/core/src/java/liquibase/change/ModifyColumnChange.java index d3ee80a2..1c91330b 100644 --- a/core/src/java/liquibase/change/ModifyColumnChange.java +++ b/core/src/java/liquibase/change/ModifyColumnChange.java @@ -1,131 +1,131 @@ package liquibase.ch...
false
true
public SqlStatement[] generateStatements(Database database) throws UnsupportedChangeException { List<SqlStatement> sql = new ArrayList<SqlStatement>(); for (ColumnConfig aColumn : columns) { String schemaName = getSchemaName() == null?database.getDefaultSchemaName():getSchemaName(); ...
public SqlStatement[] generateStatements(Database database) throws UnsupportedChangeException { List<SqlStatement> sql = new ArrayList<SqlStatement>(); for (ColumnConfig aColumn : columns) { String schemaName = getSchemaName() == null?database.getDefaultSchemaName():getSchemaName(); ...
diff --git a/src/xi/linker/Linker.java b/src/xi/linker/Linker.java index 76d7339..6b4eb2a 100644 --- a/src/xi/linker/Linker.java +++ b/src/xi/linker/Linker.java @@ -1,141 +1,141 @@ package xi.linker; import static xi.go.VM.UTF8; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStre...
true
true
public static void main(final String[] args) throws Exception { String start = "main"; final ArrayList<Reader> inputs = new ArrayList<Reader>(); Writer out = new OutputStreamWriter(System.out); boolean invalid = false; for (int i = 0; i < args.length; i++) { if (a...
public static void main(final String[] args) throws Exception { String start = "main"; final ArrayList<Reader> inputs = new ArrayList<Reader>(); Writer out = new OutputStreamWriter(System.out); boolean invalid = false; for (int i = 0; i < args.length; i++) { if (a...
diff --git a/src/pt/up/fe/dceg/neptus/util/llf/LogTableModel.java b/src/pt/up/fe/dceg/neptus/util/llf/LogTableModel.java index ac91bd234..9596a6457 100644 --- a/src/pt/up/fe/dceg/neptus/util/llf/LogTableModel.java +++ b/src/pt/up/fe/dceg/neptus/util/llf/LogTableModel.java @@ -1,149 +1,149 @@ /* * Copyright (c) 2004-...
true
true
protected void load(IMraLog parser, long initTime, long finalTime) { IMCMessage msg = parser.getEntryAtOrAfter(initTime); int rowIndex = 0; System.out.println(initTime + " " + finalTime); while (msg.getTimestampMillis() < finalTime && msg != null) { Vector<Object> values = ...
protected void load(IMraLog parser, long initTime, long finalTime) { IMCMessage msg = parser.getEntryAtOrAfter(initTime); int rowIndex = 0; System.out.println(initTime + " " + finalTime); while (msg.getTimestampMillis() <= finalTime && msg != null) { Vector<Object> values =...
diff --git a/javasvn/src/org/tmatesoft/svn/core/internal/SVNWorkspace.java b/javasvn/src/org/tmatesoft/svn/core/internal/SVNWorkspace.java index 213db5652..b93c9a01f 100644 --- a/javasvn/src/org/tmatesoft/svn/core/internal/SVNWorkspace.java +++ b/javasvn/src/org/tmatesoft/svn/core/internal/SVNWorkspace.java @@ -1,1731 ...
false
true
public long commitPaths(List paths, String message, boolean keepLocks, ISVNProgressViewer progressViewer) throws SVNException { long start = System.currentTimeMillis(); try { final Set modified = new HashSet(); for (Iterator it = paths.iterator(); it.hasNext();) { final String path = (String)it.next(); ...
public long commitPaths(List paths, String message, boolean keepLocks, ISVNProgressViewer progressViewer) throws SVNException { long start = System.currentTimeMillis(); try { final Set modified = new HashSet(); for (Iterator it = paths.iterator(); it.hasNext();) { final String path = (String)it.next(); ...
diff --git a/src/test/java/tv/floe/metronome/classification/neuralnetworks/network/TestMultiLayerPerceptronNetwork.java b/src/test/java/tv/floe/metronome/classification/neuralnetworks/network/TestMultiLayerPerceptronNetwork.java index b50a29d..1f13087 100644 --- a/src/test/java/tv/floe/metronome/classification/neuralne...
false
true
public void testIrisDatasetRun() throws Exception { Config c = new Config(); c.parse(null); // default layer: 2-3-2 c.setConfValue("useBiasNeuron", "true"); int[] neurons = { 4, 16, 3 }; c.setLayerNeuronCounts( neurons ); // layers: 4, 16, 3 MultiLayerPerceptronNetwork neuralNet = new Mu...
public void testIrisDatasetRun() throws Exception { Config c = new Config(); c.parse(null); // default layer: 2-3-2 c.setConfValue("useBiasNeuron", "true"); int[] neurons = { 4, 16, 3 }; c.setLayerNeuronCounts( neurons ); // layers: 4, 16, 3 MultiLayerPerceptronNetwork neuralNet = new Mu...
diff --git a/DataProvider/testcases/test/nchelp/meteor/DataMessageHandlerTest.java b/DataProvider/testcases/test/nchelp/meteor/DataMessageHandlerTest.java index e00f057b..333421ff 100755 --- a/DataProvider/testcases/test/nchelp/meteor/DataMessageHandlerTest.java +++ b/DataProvider/testcases/test/nchelp/meteor/DataMessa...
false
true
public void testDataMessageHandler() { DistributedRegistry registry = DistributedRegistry.singleton(); SecurityToken token = null; try { token = registry.getAuthentication(); token.setRole(SecurityToken.roleFAA); } catch(Exception e) { e.printStackTrace(); fail(); } MeteorDataRequest req =...
public void testDataMessageHandler() { DistributedRegistry registry = DistributedRegistry.singleton(); SecurityToken token = null; try { token = registry.getAuthentication(); token.setRole(SecurityToken.roleFAA); } catch(Exception e) { e.printStackTrace(); fail(e.toString()); } MeteorDataR...
diff --git a/src/org/nutz/dao/impl/sql/run/NutDaoRunner.java b/src/org/nutz/dao/impl/sql/run/NutDaoRunner.java index fd81fdb36..90fcffc67 100644 --- a/src/org/nutz/dao/impl/sql/run/NutDaoRunner.java +++ b/src/org/nutz/dao/impl/sql/run/NutDaoRunner.java @@ -1,101 +1,102 @@ package org.nutz.dao.impl.sql.run; import j...
true
true
public void run(DataSource dataSource, ConnCallback callback) { Transaction t = Trans.get(); // 有事务 if (null != t) { Connection conn = null; Savepoint sp = null; try { conn = t.getConnection(dataSource); sp = conn.setSavepoint(); callback.invoke(conn); } catch (Exception e) { if (...
public void run(DataSource dataSource, ConnCallback callback) { Transaction t = Trans.get(); // 有事务 if (null != t) { Connection conn = null; Savepoint sp = null; try { conn = t.getConnection(dataSource); sp = conn.setSavepoint(); callback.invoke(conn); } catch (Exception e) { if (...
diff --git a/src/main/java/br/octahedron/figgo/modules/bank/controller/validation/BankValidators.java b/src/main/java/br/octahedron/figgo/modules/bank/controller/validation/BankValidators.java index 78937b3..8942906 100644 --- a/src/main/java/br/octahedron/figgo/modules/bank/controller/validation/BankValidators.java ++...
true
true
public static synchronized Validator getTransferValidator() { if (requiredValidator == null) { requiredValidator = new Validator(); requiredValidator.add("userId", required("REQUIRED_TRANSASCTION_USERID"), regex("([a-zA-ZáéíóúÁÉÍÓÚÂÊÎÔÛâêîôûÃÕãõçÇ] *){2,}", "INVALID_USERID")); requiredValidator.add("am...
public static synchronized Validator getTransferValidator() { if (requiredValidator == null) { requiredValidator = new Validator(); requiredValidator.add("userId", required("REQUIRED_TRANSASCTION_USERID"), regex("[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,4}", "INVALID_USERID")); requiredValidator.ad...
diff --git a/src/org/egonet/wholenet/graph/WholeNetwork.java b/src/org/egonet/wholenet/graph/WholeNetwork.java index 3eeaf1e..753a801 100644 --- a/src/org/egonet/wholenet/graph/WholeNetwork.java +++ b/src/org/egonet/wholenet/graph/WholeNetwork.java @@ -1,200 +1,201 @@ package org.egonet.wholenet.graph; import java....
true
true
public void recompile() { wholeNetworkAlters.clear(); wholeNetworkTies.clear(); // add all alters for(NameMapping mapping : nameMap) { int group = mapping.getGroup(); if(!wholeNetworkAlters.containsKey(group)) { wholeNetworkAlters.put(group, new WholeNetworkAlter(group)); } WholeNetworkA...
public void recompile() { wholeNetworkAlters.clear(); wholeNetworkTies.clear(); // add all alters for(NameMapping mapping : nameMap) { int group = mapping.getGroup(); if(!wholeNetworkAlters.containsKey(group)) { wholeNetworkAlters.put(group, new WholeNetworkAlter(group)); } WholeNetworkA...
diff --git a/src/main/java/com/alta189/simplesave/internal/PreparedStatementUtils.java b/src/main/java/com/alta189/simplesave/internal/PreparedStatementUtils.java index 580fb06..63ba80d 100644 --- a/src/main/java/com/alta189/simplesave/internal/PreparedStatementUtils.java +++ b/src/main/java/com/alta189/simplesave/inte...
true
true
public static void setObject(PreparedStatement statement, int index, Object o) throws SQLException { Class clazz = o.getClass(); if (clazz.equals(int.class) || clazz.equals(Integer.class)) { statement.setInt(index, ((Number) o).intValue()); } else if (clazz.equals(long.class) || clazz.equals(Long.class)) { ...
public static void setObject(PreparedStatement statement, int index, Object o) throws SQLException { if (o == null) { statement.setObject(index, null); return; } Class clazz = o.getClass(); if (clazz.equals(int.class) || clazz.equals(Integer.class)) { statement.setInt(index, ((Number) o).intValue()); ...
diff --git a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageBreakpointRulerAction.java b/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/ui/actions/ManageBreakpointRulerAction.java index 921c44f3e..0b4d05014 100644 --- a/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/internal/debug/...
true
true
protected void addMarker() { IEditorInput editorInput= getTextEditor().getEditorInput(); try { IDocument document= getDocument(); IRegion line= document.getLineInformation(getVerticalRulerInfo().getLineOfLastMouseButtonActivity()); IType type= null; IClassFile classFile= (IClassFile)editorInput....
protected void addMarker() { IEditorInput editorInput= getTextEditor().getEditorInput(); try { IDocument document= getDocument(); IRegion line= document.getLineInformation(getVerticalRulerInfo().getLineOfLastMouseButtonActivity()); IType type= null; IClassFile classFile= (IClassFile)editorInput....
diff --git a/melati/src/main/java/org/melati/servlet/ConfigServlet.java b/melati/src/main/java/org/melati/servlet/ConfigServlet.java index 055694859..a0d933dd7 100644 --- a/melati/src/main/java/org/melati/servlet/ConfigServlet.java +++ b/melati/src/main/java/org/melati/servlet/ConfigServlet.java @@ -1,256 +1,256 @@ /*...
true
true
public void error(Melati melati, Exception e ) throws IOException { // has it been trapped already, if so, we don't need to relog it here if (! (e instanceof TrappedException)) { // log it e.printStackTrace(System.err); // and put it on the page melati.getResponse().setContentType ("te...
public void error(Melati melati, Throwable e ) throws IOException { // has it been trapped already, if so, we don't need to relog it here if (! (e instanceof TrappedException)) { // log it e.printStackTrace(System.err); // and put it on the page melati.getResponse().setContentType ("te...
diff --git a/GAE/src/org/waterforpeople/mapping/domain/GeoCoordinates.java b/GAE/src/org/waterforpeople/mapping/domain/GeoCoordinates.java index 31c2a4ba5..ad2a23228 100644 --- a/GAE/src/org/waterforpeople/mapping/domain/GeoCoordinates.java +++ b/GAE/src/org/waterforpeople/mapping/domain/GeoCoordinates.java @@ -1,56 +1...
true
true
public GeoCoordinates extractGeoCoordinate(String line) { if (line != null && line.trim().length() > 0 && !line.trim().equals("||")) { String[] coordinates = line.split("\\|"); if (coordinates.length > 1) { setLatitude(new Double(coordinates[0])); setLongitude(new Double(coordinates[1])); } i...
public GeoCoordinates extractGeoCoordinate(String line) { if (line != null && line.trim().length() > 0 && !line.trim().equals("||") && !line.startsWith("||")) { String[] coordinates = line.split("\\|"); if (coordinates.length > 1) { setLatitude(new Double(coordinates[0])); setLongitude(new Double(c...
diff --git a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableFactory.java b/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/FeatureExecutableFactory.java index 5a540cabf..9a1c1e62e 100644 --- a/update/org.eclipse.update.core/src/org/eclipse/update/internal/core/F...
false
true
public IFeature createFeature(URL url, ISite site, IProgressMonitor monitor) throws CoreException { TargetFeature feature = null; InputStream featureStream = null; if (monitor == null) monitor = new NullProgressMonitor(); if (url == null) return createFeature(site); // the URL should point to a dire...
public IFeature createFeature(URL url, ISite site, IProgressMonitor monitor) throws CoreException { TargetFeature feature = null; InputStream featureStream = null; if (monitor == null) monitor = new NullProgressMonitor(); if (url == null) return createFeature(site); // the URL should point to a dire...
diff --git a/app/controllers/NScontroller.java b/app/controllers/NScontroller.java index 150db9a..f74f9a1 100644 --- a/app/controllers/NScontroller.java +++ b/app/controllers/NScontroller.java @@ -1,314 +1,316 @@ package controllers; import java.io.BufferedReader; import java.io.File; import java.io.InputStreamRe...
true
true
public static Result submit() { // Get form Form<NSjob> filledForm = nsForm.bindFromRequest(); // Logger.info(filledForm.data().toString()); // Process submission long submissionStartTime = new Date().getTime(); // start time // Get job NSjob job = filledFo...
public static Result submit() { // Get form Form<NSjob> filledForm = nsForm.bindFromRequest(); // Logger.info(filledForm.data().toString()); // Process submission long submissionStartTime = new Date().getTime(); // start time // Get job NSjob job = filledFo...