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/java/org/apache/poi/hssf/record/CellRecord.java b/src/java/org/apache/poi/hssf/record/CellRecord.java
index 99ba1dde6..5f0646a9a 100644
--- a/src/java/org/apache/poi/hssf/record/CellRecord.java
+++ b/src/java/org/apache/poi/hssf/record/CellRecord.java
@@ -1,132 +1,132 @@
/* ===========================... | true | true | public final String toString() {
StringBuilder sb = new StringBuilder();
String recordName = getRecordName();
sb.append("[").append(recordName).append("]\n");
sb.append(" .row = ").append(HexDump.shortToHex(getRow())).append("\n");
sb.append(" .col = ").append(HexDump.shortToHex(getColumn())).ap... | public final String toString() {
StringBuilder sb = new StringBuilder();
String recordName = getRecordName();
sb.append("[").append(recordName).append("]\n");
sb.append(" .row = ").append(HexDump.shortToHex(getRow())).append("\n");
sb.append(" .col = ").append(HexDump.shortToHex(getColumn())).ap... |
diff --git a/src/edu/sc/seis/sod/subsetter/waveformArm/SacFileProcessor.java b/src/edu/sc/seis/sod/subsetter/waveformArm/SacFileProcessor.java
index 7e0e5444d..922a694b3 100644
--- a/src/edu/sc/seis/sod/subsetter/waveformArm/SacFileProcessor.java
+++ b/src/edu/sc/seis/sod/subsetter/waveformArm/SacFileProcessor.java
@@ ... | false | true | public void process(EventAccessOperations event,
NetworkAccess network,
Channel channel,
RequestFilter[] original,
RequestFilter[] available,
LocalSeismogram[] seismograms,
CookieJar cookies) throws Exception {
try {
System.out.println("Got "+seismograms.length+" seismograms for "+
... | public void process(EventAccessOperations event,
NetworkAccess network,
Channel channel,
RequestFilter[] original,
RequestFilter[] available,
LocalSeismogram[] seismograms,
CookieJar cookies) throws Exception {
try {
System.out.println("Got "+seismograms.length+" seismograms for "+
... |
diff --git a/project/src/zinara/ast/type/Type.java b/project/src/zinara/ast/type/Type.java
index 87978df..5d5f276 100644
--- a/project/src/zinara/ast/type/Type.java
+++ b/project/src/zinara/ast/type/Type.java
@@ -1,62 +1,63 @@
package zinara.ast.type;
import java.util.Iterator;
public abstract class Type {
... | true | true | public boolean equals(Type other) {
/*
Basic Types
*/
if ((this.getType() instanceof IntType && other.getType() instanceof IntType) ||
(this.getType() instanceof FloatType && other.getType() instanceof FloatType) ||
(this.getType() instanceof CharType && other.getType() instanceof CharType) ||
... | public boolean equals(Type other) {
/*
Basic Types
*/
if ((this.getType() instanceof IntType && other.getType() instanceof IntType) ||
(this.getType() instanceof FloatType && other.getType() instanceof FloatType) ||
(this.getType() instanceof CharType && other.getType() instanceof CharType) ||
... |
diff --git a/corelib-solr/src/main/java/eu/europeana/corelib/solr/utils/updaters/AgentUpdater.java b/corelib-solr/src/main/java/eu/europeana/corelib/solr/utils/updaters/AgentUpdater.java
index 5c9d2abf..010873b1 100644
--- a/corelib-solr/src/main/java/eu/europeana/corelib/solr/utils/updaters/AgentUpdater.java
+++ b/cor... | true | true | public void update(AgentImpl agent, AgentType jibxAgent,
MongoServer mongoServer) {
Query<AgentImpl> updateQuery = mongoServer.getDatastore()
.createQuery(AgentImpl.class).field("about")
.equal(agent.getAbout());
UpdateOperations<AgentImpl> ops = mongoServer.getDatastore()
.createUpdateOperations(A... | public void update(AgentImpl agent, AgentType jibxAgent,
MongoServer mongoServer) {
Query<AgentImpl> updateQuery = mongoServer.getDatastore()
.createQuery(AgentImpl.class).field("about")
.equal(agent.getAbout());
UpdateOperations<AgentImpl> ops = mongoServer.getDatastore()
.createUpdateOperations(A... |
diff --git a/src/gruppe19/gui/CalendarView.java b/src/gruppe19/gui/CalendarView.java
index 7867fd8..e8b0a9e 100644
--- a/src/gruppe19/gui/CalendarView.java
+++ b/src/gruppe19/gui/CalendarView.java
@@ -1,310 +1,312 @@
package gruppe19.gui;
import gruppe19.client.ktn.ServerAPI;
import gruppe19.client.ktn.ServerAPI.S... | true | true | public AppointmentWidget(Appointment a) {
appointment = a;
setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
setBackground(getColor(a));
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
add(new JLabel(appointment.getTitle()));
add(new JLabel(appointment.getPlace()));
addMouseL... | public AppointmentWidget(Appointment a) {
appointment = a;
setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
setBackground(getColor(a));
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
add(new JLabel(appointment.getTitle()));
add(new JLabel(appointment.getPlace()));
addMouseL... |
diff --git a/src/de/blinkt/openvpn/ConfigParser.java b/src/de/blinkt/openvpn/ConfigParser.java
index 2ee6061d..3d20bc31 100644
--- a/src/de/blinkt/openvpn/ConfigParser.java
+++ b/src/de/blinkt/openvpn/ConfigParser.java
@@ -1,525 +1,527 @@
package de.blinkt.openvpn;
import java.io.BufferedReader;
import java.io.IOE... | true | true | VpnProfile convertProfile() throws ConfigParseError{
boolean noauthtypeset=true;
VpnProfile np = new VpnProfile("converted Profile");
// Pull, client, tls-client
np.clearDefaults();
if(options.containsKey("client") || options.containsKey("pull")) {
np.mUsePull=true;
options.remove("pull");
options.... | VpnProfile convertProfile() throws ConfigParseError{
boolean noauthtypeset=true;
VpnProfile np = new VpnProfile("converted Profile");
// Pull, client, tls-client
np.clearDefaults();
if(options.containsKey("client") || options.containsKey("pull")) {
np.mUsePull=true;
options.remove("pull");
options.... |
diff --git a/src/org/nationsatwar/playtime/Playtime.java b/src/org/nationsatwar/playtime/Playtime.java
index c3f7d4d..ea4c824 100644
--- a/src/org/nationsatwar/playtime/Playtime.java
+++ b/src/org/nationsatwar/playtime/Playtime.java
@@ -1,971 +1,965 @@
package org.nationsatwar.playtime;
import java.text.ParseExcept... | false | true | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args)
{
Player player = null;
if(sender instanceof Player)
{
player = (Player) sender;
}
if(cmd.getName().equalsIgnoreCase("event"))
{
if(args.length >= 1)
{
if(args[... | public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args)
{
Player player = null;
if(sender instanceof Player)
{
player = (Player) sender;
}
if(cmd.getName().equalsIgnoreCase("event"))
{
if(args.length >= 1)
{
if(args[... |
diff --git a/src/org/geworkbench/util/sequences/SequenceViewWidget.java b/src/org/geworkbench/util/sequences/SequenceViewWidget.java
index 9551aa34..cef44ec4 100755
--- a/src/org/geworkbench/util/sequences/SequenceViewWidget.java
+++ b/src/org/geworkbench/util/sequences/SequenceViewWidget.java
@@ -1,588 +1,588 @@
pack... | false | true | public void paintComponent(Graphics g) {
super.paintComponent(g);
DSSequence selectedSequence = getSelectedSequence();
if (selectedSequence == null) {
g.clearRect(0, 0, getWidth(), getHeight());
rightShiftButton.setEnabled(false);
leftShiftButton.setEnabled(false);
return;
}
if (xStart... | public void paintComponent(Graphics g) {
super.paintComponent(g);
DSSequence selectedSequence = getSelectedSequence();
if (selectedSequence == null) {
g.clearRect(0, 0, getWidth(), getHeight());
rightShiftButton.setEnabled(false);
leftShiftButton.setEnabled(false);
return;
}
if (xStart... |
diff --git a/bygg/Configuration.java b/bygg/Configuration.java
index 4f550de..5ff9cc6 100644
--- a/bygg/Configuration.java
+++ b/bygg/Configuration.java
@@ -1,26 +1,26 @@
/**
* Copyright (C) 2004 - 2009 Shopzilla, Inc.
* All rights reserved. Unauthorized disclosure or distribution is prohibited.
*/
import co... | true | true | public static ByggConfiguration configuration() {
return new ByggConfiguration() {
public TargetDAG getTargetDAG() {
// TODO: fix Janino-varargs-hack with String array below when there is an internal compiler available
return TargetDAG.DEFAULT
... | public static ByggConfiguration configuration() {
return new ByggConfiguration() {
public TargetDAG getTargetDAG() {
// TODO: fix Janino-varargs-hack with String array below when there is an internal compiler available
return TargetDAG.DEFAULT
... |
diff --git a/ui/plugins/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/IOWizard.java b/ui/plugins/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/IOWizard.java
index dd5ecc77e..c45d05205 100644
--- a/ui/plugins/eu.esdihumboldt.hale.ui/src/eu/esdihumboldt/hale/ui/io/IOWizard.java
+++ b/ui/plugins/eu.esdih... | true | true | public boolean performFinish() {
if (getProvider() == null) {
return false;
}
// process main pages
for (int i = 0; i < mainPages.size(); i++) {
// validating is still necessary as it is not guaranteed to be up to
// date by handlePageChanging
boolean valid = validatePage(mainPages.get(i));
if ... | public boolean performFinish() {
if (getProvider() == null) {
return false;
}
// process main pages
for (int i = 0; i < mainPages.size(); i++) {
// validating is still necessary as it is not guaranteed to be up to
// date by handlePageChanging
boolean valid = validatePage(mainPages.get(i));
if ... |
diff --git a/examples/RunScript3.java b/examples/RunScript3.java
index 7baeba8a..d7bcc89a 100644
--- a/examples/RunScript3.java
+++ b/examples/RunScript3.java
@@ -1,88 +1,88 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL... | true | true | public static void main(String args[])
{
Context cx = Context.enter();
try {
Scriptable scope = cx.initStandardObjects();
// Collect the arguments into a single string.
String s = "";
for (int i=0; i < args.length; i++) {
s += args... | public static void main(String args[])
{
Context cx = Context.enter();
try {
Scriptable scope = cx.initStandardObjects();
// Collect the arguments into a single string.
String s = "";
for (int i=0; i < args.length; i++) {
s += args... |
diff --git a/src/MainFrame.java b/src/MainFrame.java
index b77d6da..818f049 100644
--- a/src/MainFrame.java
+++ b/src/MainFrame.java
@@ -1,1309 +1,1315 @@
//GREAT JORB! (this wasn't including in commit)
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.... | false | true | public MainFrame() {
final ArrayList<String> stockUpdate = new ArrayList<String>();
instorePurchaseItems = new ArrayList<String>();
savedInstoreItems = new ArrayList<String>();
onlineSearchItems = new ArrayList<String>();
onlinePurchaseItems = new ArrayList<String>();
con = AMSOracleConnection.getInstance... | public MainFrame() {
final ArrayList<String> stockUpdate = new ArrayList<String>();
instorePurchaseItems = new ArrayList<String>();
savedInstoreItems = new ArrayList<String>();
onlineSearchItems = new ArrayList<String>();
onlinePurchaseItems = new ArrayList<String>();
con = AMSOracleConnection.getInstance... |
diff --git a/src/musician101/itembank/commands/WithdrawCommand.java b/src/musician101/itembank/commands/WithdrawCommand.java
index 0e23fcf..15b3abf 100644
--- a/src/musician101/itembank/commands/WithdrawCommand.java
+++ b/src/musician101/itembank/commands/WithdrawCommand.java
@@ -1,491 +1,491 @@
package musician101.it... | true | true | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
if (command.getName().equalsIgnoreCase(Constants.WITHDRAW_CMD))
{
if (!sender.hasPermission(Constants.WITHDRAW_CMD))
{
sender.sendMessage(Constants.NO_PERMISSION);
return false;
}
if (!(sender instan... | public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
if (command.getName().equalsIgnoreCase(Constants.WITHDRAW_CMD))
{
if (!sender.hasPermission(Constants.WITHDRAW_PERM))
{
sender.sendMessage(Constants.NO_PERMISSION);
return false;
}
if (!(sender insta... |
diff --git a/src/uk/org/ponder/rsf/viewstate/URLRewriter.java b/src/uk/org/ponder/rsf/viewstate/URLRewriter.java
index b65179c..3677276 100644
--- a/src/uk/org/ponder/rsf/viewstate/URLRewriter.java
+++ b/src/uk/org/ponder/rsf/viewstate/URLRewriter.java
@@ -1,58 +1,58 @@
/*
* Created on Aug 5, 2005
*/
package uk.o... | false | true | public String rewriteResourceURL(String path, String resourcebase) {
String resourceURL = null;
if (!URLUtil.isAbsolute(path) && path.charAt(0) != '/') {
if (isContextURL(path)) {
resourceURL = rewriteContextURL(path);
}
else {
resourceURL = viewstatehandler.encodeResourceURL... | public String rewriteResourceURL(String path, String resourcebase) {
String resourceURL = null;
if (!URLUtil.isAbsolute(path) && path.charAt(0) != '/') {
if (isContextURL(path)) {
resourceURL = rewriteContextURL(path);
}
else {
resourceURL = viewstatehandler.encodeResourceURL... |
diff --git a/src/test/java/org/nebulostore/communication/dht/BdbPeerTest.java b/src/test/java/org/nebulostore/communication/dht/BdbPeerTest.java
index 8107b56..6b93f36 100644
--- a/src/test/java/org/nebulostore/communication/dht/BdbPeerTest.java
+++ b/src/test/java/org/nebulostore/communication/dht/BdbPeerTest.java
@@ ... | true | true | public static void main(String[] args) {
DOMConfigurator.configure("resources/conf/log4j.xml");
Logger logger = Logger.getLogger(BdbPeerTest.class);
BlockingQueue<Message> inQueue = new LinkedBlockingQueue<Message>();
BlockingQueue<Message> outQueue = new LinkedBlockingQueue<Message>();
Communi... | public static void main(String[] args) {
DOMConfigurator.configure("resources/conf/log4j.xml");
Logger logger = Logger.getLogger(BdbPeerTest.class);
BlockingQueue<Message> inQueue = new LinkedBlockingQueue<Message>();
BlockingQueue<Message> outQueue = new LinkedBlockingQueue<Message>();
Communi... |
diff --git a/core/src/classes/org/jdesktop/wonderland/common/utils/ScannedClassLoader.java b/core/src/classes/org/jdesktop/wonderland/common/utils/ScannedClassLoader.java
index 7e5dbbfab..a41ab91cc 100644
--- a/core/src/classes/org/jdesktop/wonderland/common/utils/ScannedClassLoader.java
+++ b/core/src/classes/org/jdes... | true | true | public <T> Iterator<T> getInstances(Class<? extends Annotation> annot,
final Class<T> clazz)
{
final Iterator<String> classNames = getClasses(annot).iterator();
return new Iterator<T>() {
private T next;
public boolean hasNext() {... | public <T> Iterator<T> getInstances(Class<? extends Annotation> annot,
final Class<T> clazz)
{
final Iterator<String> classNames = getClasses(annot).iterator();
return new Iterator<T>() {
private T next;
public boolean hasNext() {... |
diff --git a/src/rajawali/animation/RotateAroundAnimation3D.java b/src/rajawali/animation/RotateAroundAnimation3D.java
index 3756c602..44392baa 100644
--- a/src/rajawali/animation/RotateAroundAnimation3D.java
+++ b/src/rajawali/animation/RotateAroundAnimation3D.java
@@ -1,44 +1,44 @@
package rajawali.animation;
imp... | true | true | protected void applyTransformation(float interpolatedTime) {
float radians = mDirection * 360f * interpolatedTime * PI_DIV_180;
float cosVal = FloatMath.cos(radians) * mDistance;
float sinVal = FloatMath.sin(radians) * mDistance;
if(mAxis == Axis.Z) {
mTransformable3D.setX(mCenter.x + cosVal);
mTra... | protected void applyTransformation(float interpolatedTime) {
float radians = 360f * interpolatedTime * PI_DIV_180;
float cosVal = FloatMath.cos(radians) * mDistance;
float sinVal = FloatMath.sin(radians) * mDistance;
if(mAxis == Axis.Z) {
mTransformable3D.setX(mCenter.x + cosVal);
mTransformable3D.... |
diff --git a/src/haven/GLState.java b/src/haven/GLState.java
index a5a502d5..adb13018 100644
--- a/src/haven/GLState.java
+++ b/src/haven/GLState.java
@@ -1,402 +1,402 @@
/*
* This file is part of the Haven & Hearth game client.
* Copyright (C) 2009 Fredrik Tolf <fredrik@dolda2000.com>, and
* ... | true | true | public static int bufdiff(Buffer f, Buffer t, boolean[] trans, boolean[] repl) {
Slot.update();
int cost = 0;
f.adjust(); t.adjust();
if(trans != null) {
for(int i = 0; i < trans.length; i++) {
trans[i] = false;
repl[i] = false;
}
}
for(int i = 0; i < f.states.length; i++) {
if(((f.states[i... | public static int bufdiff(Buffer f, Buffer t, boolean[] trans, boolean[] repl) {
Slot.update();
int cost = 0;
f.adjust(); t.adjust();
if(trans != null) {
for(int i = 0; i < trans.length; i++) {
trans[i] = false;
repl[i] = false;
}
}
for(int i = 0; i < f.states.length; i++) {
if(((f.states[i... |
diff --git a/lib/src/main/java/fi/smaa/jsmaa/simulator/SMAA2Simulation.java b/lib/src/main/java/fi/smaa/jsmaa/simulator/SMAA2Simulation.java
index 56e6dee..e6ed42d 100644
--- a/lib/src/main/java/fi/smaa/jsmaa/simulator/SMAA2Simulation.java
+++ b/lib/src/main/java/fi/smaa/jsmaa/simulator/SMAA2Simulation.java
@@ -1,184 +... | true | true | public SMAA2Simulation(SMAAModel amodel, int iterations) {
super(amodel);
results = new SMAA2Results(model.getAlternatives(), model.getCriteria(), 1);
reset();
rankAccComputation = new IterativeTask(new AbstractIterativeComputation(iterations) {
@Override
public void doStep() {
generateWeights();
... | public SMAA2Simulation(SMAAModel amodel, int iterations) {
super(amodel);
results = new SMAA2Results(model.getAlternatives(), model.getCriteria(), 100);
reset();
rankAccComputation = new IterativeTask(new AbstractIterativeComputation(iterations) {
@Override
public void doStep() {
generateWeights()... |
diff --git a/src/edu/ucla/cens/awserver/dao/MobilityDateRangeQueryDao.java b/src/edu/ucla/cens/awserver/dao/MobilityDateRangeQueryDao.java
index cacc5300..ac332ad1 100644
--- a/src/edu/ucla/cens/awserver/dao/MobilityDateRangeQueryDao.java
+++ b/src/edu/ucla/cens/awserver/dao/MobilityDateRangeQueryDao.java
@@ -1,91 +1,9... | true | true | public void execute(AwRequest awRequest) {
try {
MobilityQueryAwRequest req = (MobilityQueryAwRequest) awRequest;
List<Object> params = new ArrayList<Object>();
params.add(req.getUser().getUserName());
params.add(req.getStartDate());
params.add(req.getEndDate());
List results = getJdbcTemp... | public void execute(AwRequest awRequest) {
try {
MobilityQueryAwRequest req = (MobilityQueryAwRequest) awRequest;
List<Object> params = new ArrayList<Object>();
params.add(req.getUserNameRequestParam());
params.add(req.getStartDate());
params.add(req.getEndDate());
List results = getJdbcTe... |
diff --git a/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISAdminCommands.java b/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISAdminCommands.java
index bf2201721..e982bf91a 100644
--- a/src/main/java/me/eccentric_nz/TARDIS/commands/TARDISAdminCommands.java
+++ b/src/main/java/me/eccentric_nz/TARDIS/commands/... | true | true | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
// If the player typed /tardisadmin then do the following...
if (cmd.getName().equalsIgnoreCase("tardisadmin")) {
if (sender instanceof ConsoleCommandSender || sender.hasPermission("tardis.admin"))... | public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
// If the player typed /tardisadmin then do the following...
if (cmd.getName().equalsIgnoreCase("tardisadmin")) {
if (sender instanceof ConsoleCommandSender || sender.hasPermission("tardis.admin"))... |
diff --git a/src/main/java/com/mycompany/app/App.java b/src/main/java/com/mycompany/app/App.java
index d0781be..2e86d85 100644
--- a/src/main/java/com/mycompany/app/App.java
+++ b/src/main/java/com/mycompany/app/App.java
@@ -1,18 +1,18 @@
package com.mycompany.app;
public class App
{
public static void main(... | true | true | public static void main( String[] args )
{
String str1 = "str";
String str2 = "str";
System.out.println("Hello World! "+str1.equals(str2));
String test1 = "123";
char[] test2 = null;
test1 = String.copyValueOf(test2);
System.out.println("Hello World! "+test1);
System.ou... | public static void main( String[] args )
{
String str1 = "str";
String str2 = "str";
System.out.println("Hello World! "+str1.equalsIgnoreCase(str2));
String test1 = "123";
char[] test2 = null;
test1 = String.copyValueOf(test2);
System.out.println("Hello World! "+test1);
... |
diff --git a/src/com/thedeanda/ajaxproxy/APFilter.java b/src/com/thedeanda/ajaxproxy/APFilter.java
index 063556c..1f39809 100644
--- a/src/com/thedeanda/ajaxproxy/APFilter.java
+++ b/src/com/thedeanda/ajaxproxy/APFilter.java
@@ -1,390 +1,392 @@
package com.thedeanda.ajaxproxy;
import java.io.ByteArrayInputStream;
... | false | true | public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if (request instanceof HttpServletRequest) {
HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;
M... | public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
if (request instanceof HttpServletRequest) {
HttpServletRequest httpRequest = (HttpServletRequest) request;
HttpServletResponse httpResponse = (HttpServletResponse) response;
M... |
diff --git a/core/service/src/test/java/com/camunda/fox/platform/impl/deployment/MultipleClasspathRootsClassPathScannerTest.java b/core/service/src/test/java/com/camunda/fox/platform/impl/deployment/MultipleClasspathRootsClassPathScannerTest.java
index c6d7eab..98c5715 100755
--- a/core/service/src/test/java/com/camund... | false | true | public void testScanClassPath_multipleRoots() throws MalformedURLException {
// define a classloader with multiple roots.
URLClassLoader classLoader = new URLClassLoader(
new URL[]{
new URL("file:src/test/resources/com/camunda/fox/platform/impl/deployment/ClassPathScannerTest.testScanClassP... | public void testScanClassPath_multipleRoots() throws MalformedURLException {
// define a classloader with multiple roots.
URLClassLoader classLoader = new URLClassLoader(
new URL[]{
new URL("file:src/test/resources/com/camunda/fox/platform/impl/deployment/ClassPathScannerTest.testScanClassP... |
diff --git a/utgb-core/src/main/java/org/utgenome/gwt/utgb/server/app/ReadView.java b/utgb-core/src/main/java/org/utgenome/gwt/utgb/server/app/ReadView.java
index f1669b4e..1d84ac14 100644
--- a/utgb-core/src/main/java/org/utgenome/gwt/utgb/server/app/ReadView.java
+++ b/utgb-core/src/main/java/org/utgenome/gwt/utgb/se... | true | true | public static List<OnGenome> overlapQuery(GenomeDB db, ChrLoc loc, ReadQueryConfig config) {
List<OnGenome> result = new ArrayList<OnGenome>();
StopWatch sw = new StopWatch();
DBType dbType = db.resolveDBType();
loc = loc.getLocForPositiveStrand();
try {
if (dbType == null)
throw new UTGBException(U... | public static List<OnGenome> overlapQuery(GenomeDB db, ChrLoc loc, ReadQueryConfig config) {
List<OnGenome> result = new ArrayList<OnGenome>();
StopWatch sw = new StopWatch();
DBType dbType = db.resolveDBType();
loc = loc.getLocForPositiveStrand();
try {
if (dbType == null)
throw new UTGBException(U... |
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/Install36from35.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/full/Install36from35.java
index 486db6b70..be7eeafd9 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/ful... | true | true | public void install36From35() throws IOException {
//Create a new installation of 3.6 using 3.5
File installFolder = getTestFolder("install36From35");
System.out.println(installFolder);
int result = runDirectorToInstall("Installing 3.6 from 3.5", new File(installFolder, "eclipse"), "http://download.eclipse.org... | public void install36From35() throws IOException {
//Create a new installation of 3.6 using 3.5
File installFolder = getTestFolder("install36From35");
System.out.println(installFolder);
int result = runDirectorToInstall("Installing 3.6 from 3.5", new File(installFolder, "eclipse"), "http://download.eclipse.org... |
diff --git a/src/main/java/com/voxbone/kelpie/Session.java b/src/main/java/com/voxbone/kelpie/Session.java
index dab3155..55d5070 100755
--- a/src/main/java/com/voxbone/kelpie/Session.java
+++ b/src/main/java/com/voxbone/kelpie/Session.java
@@ -1,1559 +1,1559 @@
/**
* Copyright 2012 Voxbone SA/NV
*
* License... | true | true | public void packetTransferred(PacketEvent evt)
{
try
{
JID local = evt.getData().getTo();
JID remote = evt.getData().getFrom();
logger.debug("[[" + internalCallId + "]] got message of " + evt.getData().getQualifiedName());
if (evt.getData().getQualifiedName().equals("db:result"))
{
String typ... | public void packetTransferred(PacketEvent evt)
{
try
{
JID local = evt.getData().getTo();
JID remote = evt.getData().getFrom();
logger.debug("[[" + internalCallId + "]] got message of " + evt.getData().getQualifiedName());
if (evt.getData().getQualifiedName().equals("db:result"))
{
String typ... |
diff --git a/framework/src/play/Play.java b/framework/src/play/Play.java
index ced5f8e5..0db2a119 100644
--- a/framework/src/play/Play.java
+++ b/framework/src/play/Play.java
@@ -1,430 +1,437 @@
package play;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStre... | true | true | public static void bootstrapPlugins() {
// Classic modules
Enumeration<URL> urls = null;
try {
urls = Play.class.getClassLoader().getResources("play.plugins");
} catch (Exception e) {
}
while (urls.hasMoreElements()) {
URL url = urls.nextElemen... | public static void bootstrapPlugins() {
// Classic modules
Enumeration<URL> urls = null;
try {
urls = Play.class.getClassLoader().getResources("play.plugins");
} catch (Exception e) {
}
while (urls.hasMoreElements()) {
URL url = urls.nextElemen... |
diff --git a/src/main/java/org/tweet/twitter/service/TwitterService.java b/src/main/java/org/tweet/twitter/service/TwitterService.java
index 3975f23d..28465f26 100644
--- a/src/main/java/org/tweet/twitter/service/TwitterService.java
+++ b/src/main/java/org/tweet/twitter/service/TwitterService.java
@@ -1,74 +1,74 @@
pa... | true | true | public void tweet(final String twitterAccount, final String tweetText) {
final Twitter twitterTemplate = twitterCreator.getTwitterTemplate(twitterAccount);
try {
twitterTemplate.timelineOperations().updateStatus(tweetText);
} catch (final OperationNotPermittedException notPermit... | public void tweet(final String twitterAccount, final String tweetText) {
final Twitter twitterTemplate = twitterCreator.getTwitterTemplate(twitterAccount);
try {
twitterTemplate.timelineOperations().updateStatus(tweetText);
} catch (final OperationNotPermittedException notPermit... |
diff --git a/src/assemblernator/Linker.java b/src/assemblernator/Linker.java
index 1373bfb..7742eff 100644
--- a/src/assemblernator/Linker.java
+++ b/src/assemblernator/Linker.java
@@ -1,406 +1,406 @@
package assemblernator;
import static assemblernator.ErrorReporting.makeError;
import static assemblernator.Operan... | true | true | public static void link(LinkerModule[] modules, OutputStream out, ErrorHandler hErr) {
Map<String, Integer> linkerTable = new HashMap<String, Integer>();
boolean isValid = true;
//sort the modules by order of address of modules.
Arrays.sort(modules);
if(modules.length > 0) {
int totalLen = modules[0].p... | public static void link(LinkerModule[] modules, OutputStream out, ErrorHandler hErr) {
Map<String, Integer> linkerTable = new HashMap<String, Integer>();
boolean isValid = true;
//sort the modules by order of address of modules.
Arrays.sort(modules);
if(modules.length > 0) {
int totalLen = modules[0].p... |
diff --git a/src/com/youpony/amuse/ExhibitionChange.java b/src/com/youpony/amuse/ExhibitionChange.java
index 212a6fa..33e450e 100644
--- a/src/com/youpony/amuse/ExhibitionChange.java
+++ b/src/com/youpony/amuse/ExhibitionChange.java
@@ -1,111 +1,105 @@
package com.youpony.amuse;
import android.os.Bundle;
import co... | false | true | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_exhibition_change);
downloader = new ImageDownloader();
im = new String();
imageView = new ImageView(this);
t = new TextView(this);
alert = new TextView(this);
Object og = ... | protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_exhibition_change);
downloader = new ImageDownloader();
im = new String();
imageView = new ImageView(this);
t = new TextView(this);
alert = new TextView(this);
Object og = ... |
diff --git a/src/org/eclipse/iee/sample/graph/pad/GraphPad.java b/src/org/eclipse/iee/sample/graph/pad/GraphPad.java
index 2b83e88..a51cf4d 100644
--- a/src/org/eclipse/iee/sample/graph/pad/GraphPad.java
+++ b/src/org/eclipse/iee/sample/graph/pad/GraphPad.java
@@ -1,241 +1,242 @@
package org.eclipse.iee.sample.graph.p... | false | true | public void createPartControl(final Composite parent) {
GridLayout layout = new GridLayout(13, false);
layout.marginHeight = 5;
layout.marginWidth = 5;
parent.setLayout(layout);
new Label(parent, SWT.NONE).setText("f(x) = ");
final Text fx = new Text(parent, SWT.BORDER);
fx.setLayoutData(new GridData(S... | public void createPartControl(final Composite parent) {
GridLayout layout = new GridLayout(13, false);
layout.marginHeight = 5;
layout.marginWidth = 5;
parent.setLayout(layout);
new Label(parent, SWT.NONE).setText("f(x) = ");
final Text function = new Text(parent, SWT.BORDER);
function.setLayoutData(ne... |
diff --git a/de.walware.ecommons.ltk.ui/src/de/walware/ecommons/ltk/ui/sourceediting/SnippetEditor.java b/de.walware.ecommons.ltk.ui/src/de/walware/ecommons/ltk/ui/sourceediting/SnippetEditor.java
index 55807f7..35bc84f 100644
--- a/de.walware.ecommons.ltk.ui/src/de/walware/ecommons/ltk/ui/sourceediting/SnippetEditor.j... | true | true | private void initActions() {
fGlobalActions = new HashMap<String, Action>(10);
if (fServiceLocator != null) {
fServiceUtil = new ControlServicesUtil(fServiceLocator, this.getClass().toString()+'#'+hashCode(), getSourceViewer().getControl());
fServiceUtil.addControl(getSourceViewer().getControl());
}
... | private void initActions() {
fGlobalActions = new HashMap<String, Action>(10);
if (fServiceLocator != null) {
fServiceUtil = new ControlServicesUtil(fServiceLocator, getClass().getName()+'#'+hashCode(), getSourceViewer().getControl());
fServiceUtil.addControl(getSourceViewer().getControl());
}
// d... |
diff --git a/src/main/java/net/zionsoft/obadiah/TranslationDownloadListAdapter.java b/src/main/java/net/zionsoft/obadiah/TranslationDownloadListAdapter.java
index 3165407..469bb04 100644
--- a/src/main/java/net/zionsoft/obadiah/TranslationDownloadListAdapter.java
+++ b/src/main/java/net/zionsoft/obadiah/TranslationDown... | true | true | public void setTranslations(List<TranslationInfo> translations) {
m_texts = new ArrayList<SpannableStringBuilder>(translations.size());
for (TranslationInfo translation : translations) {
String string
= mContext.getResources().getString(R.string.text_available_transla... | public void setTranslations(List<TranslationInfo> translations) {
if (translations == null) {
m_texts = null;
} else {
m_texts = new ArrayList<SpannableStringBuilder>(translations.size());
for (TranslationInfo translation : translations) {
String s... |
diff --git a/fmmr-library/src/wseemann/media/FFmpegMediaMetadataRetriever.java b/fmmr-library/src/wseemann/media/FFmpegMediaMetadataRetriever.java
index 02fdb30..812102e 100644
--- a/fmmr-library/src/wseemann/media/FFmpegMediaMetadataRetriever.java
+++ b/fmmr-library/src/wseemann/media/FFmpegMediaMetadataRetriever.java... | false | true | public void setDataSource(Context context, Uri uri)
throws IllegalArgumentException, SecurityException {
if (uri == null) {
throw new IllegalArgumentException();
}
String scheme = uri.getScheme();
if(scheme == null || scheme.equals("file")) {
... | public void setDataSource(Context context, Uri uri)
throws IllegalArgumentException, SecurityException {
if (uri == null) {
throw new IllegalArgumentException();
}
String scheme = uri.getScheme();
if(scheme == null || scheme.equals("file")) {
... |
diff --git a/src/com/codingspezis/android/metalonly/player/AboutActivity.java b/src/com/codingspezis/android/metalonly/player/AboutActivity.java
index c543a0f..d4089af 100644
--- a/src/com/codingspezis/android/metalonly/player/AboutActivity.java
+++ b/src/com/codingspezis/android/metalonly/player/AboutActivity.java
@@ ... | false | true | private void sendEmail(String strTo, String strSubject, String strText) {
Intent emailIntent = new Intent(Intent.ACTION_SEND);
emailIntent.setType("text/plain");
emailIntent.setType("message/rfc822");
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { strTo });
emailIntent.putExtra(Intent.EXTRA_SUBJECT,... | private void sendEmail(String strTo, String strSubject, String strText) {
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"));
emailIntent.putExtra(Intent.EXTRA_EMAIL, new String[] { strTo });
emailIntent.putExtra(Intent.EXTRA_SUBJECT, strSubject);
emailIntent.putExtra(Intent.EXTRA_TEXT... |
diff --git a/src/main/com/mucommander/ui/main/menu/TablePopupMenu.java b/src/main/com/mucommander/ui/main/menu/TablePopupMenu.java
index 174aaf74..47afd246 100644
--- a/src/main/com/mucommander/ui/main/menu/TablePopupMenu.java
+++ b/src/main/com/mucommander/ui/main/menu/TablePopupMenu.java
@@ -1,110 +1,110 @@
/*
* T... | true | true | public TablePopupMenu(MainFrame mainFrame, AbstractFile currentFolder, AbstractFile clickedFile, boolean parentFolderClicked, FileSet markedFiles) {
super(mainFrame);
// 'Open' displayed if a single file was clicked
if(clickedFile!=null || parentFolderClicked) {
addActio... | public TablePopupMenu(MainFrame mainFrame, AbstractFile currentFolder, AbstractFile clickedFile, boolean parentFolderClicked, FileSet markedFiles) {
super(mainFrame);
// 'Open' displayed if a single file was clicked
if(clickedFile!=null || parentFolderClicked) {
addActio... |
diff --git a/src/java/org/jivesoftware/openfire/nio/XMLLightweightParser.java b/src/java/org/jivesoftware/openfire/nio/XMLLightweightParser.java
index b836b96f..57298922 100644
--- a/src/java/org/jivesoftware/openfire/nio/XMLLightweightParser.java
+++ b/src/java/org/jivesoftware/openfire/nio/XMLLightweightParser.java
@... | true | true | public void read(ByteBuffer byteBuffer) throws Exception {
int readByte = byteBuffer.remaining();
invalidateBuffer();
// Check that the buffer is not bigger than 1 Megabyte. For security reasons
// we will abort parsing when 1 Mega of queued chars was found.
if (buffer.lengt... | public void read(ByteBuffer byteBuffer) throws Exception {
int readByte = byteBuffer.remaining();
invalidateBuffer();
// Check that the buffer is not bigger than 1 Megabyte. For security reasons
// we will abort parsing when 1 Mega of queued chars was found.
if (buffer.lengt... |
diff --git a/dspace-api/src/main/java/org/dspace/content/packager/DSpaceAIPDisseminator.java b/dspace-api/src/main/java/org/dspace/content/packager/DSpaceAIPDisseminator.java
index c2d394d3b..21f5f0e82 100644
--- a/dspace-api/src/main/java/org/dspace/content/packager/DSpaceAIPDisseminator.java
+++ b/dspace-api/src/main... | true | true | public String makeBitstreamURL(Bitstream bitstream, PackageParameters params)
{
// if bare manifest, use external "persistent" URI for bitstreams
if (params != null && (params.getBooleanProperty("manifestOnly", false)))
{
// Try to build a persistent(-ish) URI for bitstream
... | public String makeBitstreamURL(Bitstream bitstream, PackageParameters params)
{
// if bare manifest, use external "persistent" URI for bitstreams
if (params != null && (params.getBooleanProperty("manifestOnly", false)))
{
// Try to build a persistent(-ish) URI for bitstream
... |
diff --git a/src/Main.java b/src/Main.java
index f9128c7..c96a99d 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,299 +1,299 @@
import java.awt.GridLayout;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java... | false | true | public static void main(String[] args) {
User player = null;
boolean loggedIn = false;
boolean playGame = true;
while (!loggedIn && playGame) {
int choice = JOptionPane.showConfirmDialog(null, "Do you have an account?", "Login", JOptionPane.YES_NO_CANCEL_OPTION);
player = new User();
switch (choice) {... | public static void main(String[] args) {
User player = null;
boolean loggedIn = false;
boolean playGame = true;
while (!loggedIn && playGame) {
int choice = JOptionPane.showConfirmDialog(null, "Do you have an account?", "Login", JOptionPane.YES_NO_CANCEL_OPTION);
player = new User();
switch (choice) {... |
diff --git a/MineAndroidSweeper/src/edu/hm/androidsweeper/dialogs/GameFinishedDialog.java b/MineAndroidSweeper/src/edu/hm/androidsweeper/dialogs/GameFinishedDialog.java
index bb08ddc..56e9c94 100644
--- a/MineAndroidSweeper/src/edu/hm/androidsweeper/dialogs/GameFinishedDialog.java
+++ b/MineAndroidSweeper/src/edu/hm/an... | true | true | private void createButtons() {
setButton(BUTTON_NEGATIVE, context.getString(R.string.dialog_finished_button_back),
new OnClickListener() {
@Override
public void onClick(final DialogInterface dialog, final int which) {
Intent intent = new I... | private void createButtons() {
setButton(BUTTON_NEGATIVE, context.getString(R.string.dialog_finished_button_back),
new OnClickListener() {
@Override
public void onClick(final DialogInterface dialog, final int which) {
Intent intent = new I... |
diff --git a/src/com/modcrafting/diablodrops/builders/CustomBuilder.java b/src/com/modcrafting/diablodrops/builders/CustomBuilder.java
index 6962f77..ad3340e 100644
--- a/src/com/modcrafting/diablodrops/builders/CustomBuilder.java
+++ b/src/com/modcrafting/diablodrops/builders/CustomBuilder.java
@@ -1,77 +1,77 @@
pack... | false | true | public void build()
{
FileConfiguration fc = new YamlConfiguration();
File f = new File(plugin.getDataFolder(), "custom.yml");
if (f.exists())
{
try
{
fc.load(f);
}
catch (Exception e)
{
i... | public void build()
{
FileConfiguration fc = new YamlConfiguration();
File f = new File(plugin.getDataFolder(), "custom.yml");
if (f.exists())
{
try
{
fc.load(f);
}
catch (Exception e)
{
i... |
diff --git a/src/me/gods/raintimer/TimerFragment.java b/src/me/gods/raintimer/TimerFragment.java
index 1b4c490..4743d87 100644
--- a/src/me/gods/raintimer/TimerFragment.java
+++ b/src/me/gods/raintimer/TimerFragment.java
@@ -1,369 +1,369 @@
package me.gods.raintimer;
import java.util.Calendar;
import java.util.Loc... | false | true | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_timer, container, false);
db = getActivity().openOrCreateDatabase("raintimer.db", Context.MODE_PRIVATE, null);
db.execSQL("CREATE TABLE IF NOT EXIS... | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_timer, container, false);
db = getActivity().openOrCreateDatabase("raintimer.db", Context.MODE_PRIVATE, null);
db.execSQL("CREATE TABLE IF NOT EXIS... |
diff --git a/applications/carrot2-dcs/examples/java/src/org/carrot2/dcs/Examples.java b/applications/carrot2-dcs/examples/java/src/org/carrot2/dcs/Examples.java
index d633421df..088dd124f 100644
--- a/applications/carrot2-dcs/examples/java/src/org/carrot2/dcs/Examples.java
+++ b/applications/carrot2-dcs/examples/java/s... | true | true | public void clusterFromSearchEngine() throws IOException
{
final Map<String, String> attributes = new LinkedHashMap<String, String>();
/*
* For this request, we will pass some additional attributes to the default
* algorithm and ask to skip the fetched documents in the output ... | public void clusterFromSearchEngine() throws IOException
{
final Map<String, String> attributes = new LinkedHashMap<String, String>();
/*
* For this request, we will pass some additional attributes to the default
* algorithm and ask to skip the fetched documents in the output ... |
diff --git a/src/com/github/gittodo/rcp/views/ItemEditShell.java b/src/com/github/gittodo/rcp/views/ItemEditShell.java
index 88f54df..b65492d 100644
--- a/src/com/github/gittodo/rcp/views/ItemEditShell.java
+++ b/src/com/github/gittodo/rcp/views/ItemEditShell.java
@@ -1,199 +1,198 @@
package com.github.gittodo.rcp.vie... | false | true | public ItemEditShell(Shell parent, Item item, GitToDoTree someTree) throws Exception {
isEditing = item != null;
String title = (isEditing ? "New Item" : "Edit Item");
this.tree = someTree;
if (item == null) {
this.itemData = new Item();
} else {
... | public ItemEditShell(Shell parent, Item item, GitToDoTree someTree) throws Exception {
isEditing = item != null;
String title = (isEditing ? "New Item" : "Edit Item");
this.tree = someTree;
if (item == null) {
this.itemData = new Item();
} else {
... |
diff --git a/src/com/thechange/projects/quickboot/BootActivity.java b/src/com/thechange/projects/quickboot/BootActivity.java
index 0e63293..3590d10 100644
--- a/src/com/thechange/projects/quickboot/BootActivity.java
+++ b/src/com/thechange/projects/quickboot/BootActivity.java
@@ -1,54 +1,55 @@
package com.thechange.pr... | true | true | public void onClick(View v) {
Command command = null;
switch (v.getId()) {
case R.id.reboot:
command = Command.reboot;
break;
case R.id.reboot_recovery:
command = Command.reboot_recovery;
case R.id.reboot_bootloader:
command = Command.reboot_bootloader;
break;
case R.id.power_off:
command... | public void onClick(View v) {
Command command = null;
switch (v.getId()) {
case R.id.reboot:
command = Command.reboot;
break;
case R.id.reboot_recovery:
command = Command.reboot_recovery;
break;
case R.id.reboot_bootloader:
command = Command.reboot_bootloader;
break;
case R.id.power_off:
... |
diff --git a/optaplanner-core/src/main/java/org/optaplanner/core/impl/score/director/incremental/IncrementalScoreDirector.java b/optaplanner-core/src/main/java/org/optaplanner/core/impl/score/director/incremental/IncrementalScoreDirector.java
index 48bc2bb06..5e1e18e2a 100644
--- a/optaplanner-core/src/main/java/org/op... | true | true | protected String buildScoreCorruptionAnalysis(ScoreDirector uncorruptedScoreDirector) {
if (!(uncorruptedScoreDirector instanceof IncrementalScoreDirector)) {
return "Unable to analyze: the uncorruptedScoreDirector class (" + uncorruptedScoreDirector.getClass()
+ ") is not an... | protected String buildScoreCorruptionAnalysis(ScoreDirector uncorruptedScoreDirector) {
if (!(uncorruptedScoreDirector instanceof IncrementalScoreDirector)) {
return " Score corruption analysis could not be generated because "
+ "the uncorruptedScoreDirector class (" + uncor... |
diff --git a/src/com/hypercities/exporttoearth/KMZExporter.java b/src/com/hypercities/exporttoearth/KMZExporter.java
index 9de53e4..9096c3d 100644
--- a/src/com/hypercities/exporttoearth/KMZExporter.java
+++ b/src/com/hypercities/exporttoearth/KMZExporter.java
@@ -1,356 +1,370 @@
/**
* Copyright (c) 2012, David Shep... | false | true | public boolean execute() {
PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);
PreviewProperties props = controller.getModel(workspace).getProperties();
PreviewModel previewModel = workspace.getLookup().lookup(PreviewModel.class);
int width = 50;
... | public boolean execute() {
PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);
PreviewProperties props = controller.getModel(workspace).getProperties();
PreviewModel previewModel = workspace.getLookup().lookup(PreviewModel.class);
int width = 50;
... |
diff --git a/src/edu/grinnell/schedule/ParseSchedule.java b/src/edu/grinnell/schedule/ParseSchedule.java
index 2b2ca3f..b4c4203 100644
--- a/src/edu/grinnell/schedule/ParseSchedule.java
+++ b/src/edu/grinnell/schedule/ParseSchedule.java
@@ -1,101 +1,106 @@
package edu.grinnell.schedule;
import java.util.ArrayList;
... | false | true | protected ArrayList<Show> doInBackground(String... urls) {
url = urls[0];
// getting JSON string from URL
JSONObject json = jParser.getJSONFromUrl(url);
try {
// Getting Array of Contacts
monday = json.getJSONArray(TAG_MONDAY);
tuesday = json.getJSONArray(TAG_TUESDAY);
wednesday = json.getJSONArra... | protected ArrayList<Show> doInBackground(String... urls) {
url = urls[0];
// getting JSON string from URL
try {
JSONObject json = jParser.getJSONFromUrl(url);
// Getting Array of Contacts
monday = json.getJSONArray(TAG_MONDAY);
tuesday = json.getJSONArray(TAG_TUESDAY);
wednesday = json.getJSONArr... |
diff --git a/src/main/java/net/minecraftforge/srg2source/rangeapplier/RangeApplier.java b/src/main/java/net/minecraftforge/srg2source/rangeapplier/RangeApplier.java
index a9ed5bc..2ec7912 100644
--- a/src/main/java/net/minecraftforge/srg2source/rangeapplier/RangeApplier.java
+++ b/src/main/java/net/minecraftforge/srg2s... | true | true | private String updateImports(StringBuilder data, Set<String> newImports, Map<String, String> importMap)
{
//String[] lines = data.split("\n");
int lastIndex = 0;
int nextIndex = data.indexOf("\n");
// Parse the existing imports and find out where to add ours
// This does... | private String updateImports(StringBuilder data, Set<String> newImports, Map<String, String> importMap)
{
//String[] lines = data.split("\n");
int lastIndex = 0;
int nextIndex = data.indexOf("\n");
// Parse the existing imports and find out where to add ours
// This does... |
diff --git a/src/ise/gameoflife/agents/TestAgent.java b/src/ise/gameoflife/agents/TestAgent.java
index 198c9f2..b69cc3d 100644
--- a/src/ise/gameoflife/agents/TestAgent.java
+++ b/src/ise/gameoflife/agents/TestAgent.java
@@ -1,82 +1,82 @@
package ise.gameoflife.agents;
import ise.gameoflife.participants.AbstractAge... | false | true | protected Food chooseFood()
{
Food bestSoFar = null;
for (Food noms : conn.availableFoods())
{
if (noms.getHuntersRequired() <= 1)
{
if (bestSoFar == null)
{
bestSoFar = noms;
}
}
if (noms.getNutrition() > bestSoFar.getNutrition())
{
bestSoFar = noms;
}
}
return b... | protected Food chooseFood()
{
Food bestSoFar = null;
for (Food noms : conn.availableFoods())
{
if (noms.getHuntersRequired() <= 1)
{
if (bestSoFar == null)
{
bestSoFar = noms;
}
else if (noms.getNutrition() > bestSoFar.getNutrition())
{
bestSoFar = noms;
}
}
}
ret... |
diff --git a/src/main/java/tk/nekotech/cah/listeners/PlayerListener.java b/src/main/java/tk/nekotech/cah/listeners/PlayerListener.java
index dc9c4f2..a1c8c42 100644
--- a/src/main/java/tk/nekotech/cah/listeners/PlayerListener.java
+++ b/src/main/java/tk/nekotech/cah/listeners/PlayerListener.java
@@ -1,160 +1,160 @@
pa... | true | true | public void onMessage(final MessageEvent event) {
if (event.getUser().getNick().contains("CAH-Master") || !this.cah.inSession() || event.getMessage().equalsIgnoreCase("join") || event.getMessage().equalsIgnoreCase("quit")) {
return;
}
final Player player = this.cah.getPlayer(even... | public void onMessage(final MessageEvent event) {
if (event.getUser().getNick().contains("CAH-Master") || !this.cah.inSession() || event.getMessage().equalsIgnoreCase("join") || event.getMessage().equalsIgnoreCase("quit")) {
return;
}
final Player player = this.cah.getPlayer(even... |
diff --git a/moho-impl/src/main/java/com/voxeo/moho/cpa/CallProgressAnalyzer.java b/moho-impl/src/main/java/com/voxeo/moho/cpa/CallProgressAnalyzer.java
index b1f1ee38..5a87b5db 100644
--- a/moho-impl/src/main/java/com/voxeo/moho/cpa/CallProgressAnalyzer.java
+++ b/moho-impl/src/main/java/com/voxeo/moho/cpa/CallProgres... | true | true | public void onInputDetected(final InputDetectedEvent<Call> event) {
final Call call = event.getSource();
final ProgressStatus status = _status.get(call);
if (status == null) {
return;
}
if (!event.isStartOfSpeech() && !event.isEndOfSpeech() && event.getSignal() == null) {
return;
}... | public void onInputDetected(final InputDetectedEvent<Call> event) {
final Call call = event.getSource();
final ProgressStatus status = _status.get(call);
if (status == null) {
return;
}
if (!event.isStartOfSpeech() && !event.isEndOfSpeech() && event.getSignal() == null) {
return;
}... |
diff --git a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java b/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bot/tests/CreateRuntimeFromESB.java
index 8636a53..1a670cf 100644
--- a/tests/org.jboss.tools.esb.ui.bot.test/src/org/jboss/tools/esb/ui/bo... | true | true | public void createESBRuntime() {
SWTBot wiz = open.preferenceOpen(ActionItem.Preference.JBossToolsJBossESBRuntimes.LABEL);
wiz.button("Add").click();
bot.shell(IDELabel.Shell.NEW_ESB_RUNTIME).activate();
assertFalse("Finish button must not be enabled when no home dir is defined",bot.button(IDELabel.Button.FINI... | public void createESBRuntime() {
SWTBot wiz = open.preferenceOpen(ActionItem.Preference.JBossToolsJBossESBRuntimes.LABEL);
wiz.button("Add").click();
bot.shell(IDELabel.Shell.NEW_ESB_RUNTIME).activate();
assertFalse("Finish button must not be enabled when no home dir is defined",bot.button(IDELabel.Button.FINI... |
diff --git a/hw2/wci/frontend/FrontendFactory.java b/hw2/wci/frontend/FrontendFactory.java
index 4c0aa36..f433a24 100644
--- a/hw2/wci/frontend/FrontendFactory.java
+++ b/hw2/wci/frontend/FrontendFactory.java
@@ -1,55 +1,55 @@
package wci.frontend;
import wci.frontend.pascal.PascalParserTD;
import wci.frontend.pas... | true | true | public static Parser createParser(String language, String type,
Source source)
throws Exception
{
if (language.equalsIgnoreCase("Pascal") &&
type.equalsIgnoreCase("top-down"))
{
Scanner scanner = new PascalScanner(source... | public static Parser createParser(String language, String type,
Source source)
throws Exception
{
if (language.equalsIgnoreCase("Pascal") &&
type.equalsIgnoreCase("top-down"))
{
Scanner scanner = new PascalScanner(source... |
diff --git a/src/com/twitstreet/servlet/HomePageServlet.java b/src/com/twitstreet/servlet/HomePageServlet.java
index fb52d33..9f246dc 100644
--- a/src/com/twitstreet/servlet/HomePageServlet.java
+++ b/src/com/twitstreet/servlet/HomePageServlet.java
@@ -1,306 +1,306 @@
package com.twitstreet.servlet;
import java.io.... | true | true | public void queryStockByQuote(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
String twUserName = (String) request.getParameter(QUOTE);
if (twUserName != null && twUserName.length() > 0) {
User user = request.getSession(false) == null ? null
: (User) requ... | public void queryStockByQuote(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
String twUserName = (String) request.getParameter(QUOTE);
if (twUserName != null && twUserName.length() > 0) {
User user = request.getSession(false) == null ? null
: (User) requ... |
diff --git a/src/MemManager.java b/src/MemManager.java
index 58ec69a..bc71294 100755
--- a/src/MemManager.java
+++ b/src/MemManager.java
@@ -1,216 +1,215 @@
import java.io.File;
import java.io.IOException;
/**
* The {@code MemManager} class controls how information is stored in memory.
* They make use of a {... | true | true | public MemHandle insert(byte[] stuff)
{
//Important! Request an additional 2 bytes for the 2-byte size sequence
MemHandle insertHandle = freeBlocks.getSpace(stuff.length + 2);
//System.out.println(freeBlocks.blocksToString());
if (insertHandle.getAddress() >= 0)
{
bufferPool.set(sizeToBytes((short) stuff... | public MemHandle insert(byte[] stuff)
{
//Important! Request an additional 2 bytes for the 2-byte size sequence
MemHandle insertHandle = freeBlocks.getSpace(stuff.length + 2);
//System.out.println(freeBlocks.blocksToString());
if (insertHandle.getAddress() >= 0)
{
bufferPool.set(sizeToBytes((short) stuff... |
diff --git a/common/src/main/java/cz/incad/kramerius/service/impl/SortingServiceImpl.java b/common/src/main/java/cz/incad/kramerius/service/impl/SortingServiceImpl.java
index dbd82dd54..52162ba77 100644
--- a/common/src/main/java/cz/incad/kramerius/service/impl/SortingServiceImpl.java
+++ b/common/src/main/java/cz/inca... | false | true | public List<String> sortObjects(List<String> pids, String xpathString, boolean numeric) {
TreeMap<Object, String> sortedMap = new TreeMap<Object, String>();
List<String> failedList = new ArrayList<String>();
XPathExpression expr = null;
try {
XPath xpath = xpathFactory.ne... | public List<String> sortObjects(List<String> pids, String xpathString, boolean numeric) {
TreeMap<Object, String> sortedMap = new TreeMap<Object, String>();
List<String> failedList = new ArrayList<String>();
XPathExpression expr = null;
try {
XPath xpath = xpathFactory.ne... |
diff --git a/src/org/jruby/internal/runtime/methods/DefaultMethod.java b/src/org/jruby/internal/runtime/methods/DefaultMethod.java
index 469b34038..a0735048f 100644
--- a/src/org/jruby/internal/runtime/methods/DefaultMethod.java
+++ b/src/org/jruby/internal/runtime/methods/DefaultMethod.java
@@ -1,328 +1,334 @@
/*****... | false | true | private void runJIT(Ruby runtime, ThreadContext context, String name) {
if (callCount >= 0) {
try {
callCount++;
if (callCount >= runtime.getInstanceConfig().getJitThreshold()) {
String cleanName = CodegenUtils.cg.cleanJavaIdentifier(name);
... | private void runJIT(Ruby runtime, ThreadContext context, String name) {
if (callCount >= 0) {
try {
callCount++;
if (callCount >= runtime.getInstanceConfig().getJitThreshold()) {
String cleanName = CodegenUtils.cg.cleanJavaIdentifier(name);
... |
diff --git a/src/main/java/org/jboss/forge/validation/scaffold/configurator/MetaWidgetConfigurator.java b/src/main/java/org/jboss/forge/validation/scaffold/configurator/MetaWidgetConfigurator.java
index 21afd5c..c20a813 100644
--- a/src/main/java/org/jboss/forge/validation/scaffold/configurator/MetaWidgetConfigurator.j... | false | true | public void addValidationConfiguration(Project project, ShellPrompt prompt)
{
if (isMetawidgetScaffold(project))
{
if (prompt.promptBoolean("MetaWidget scaffold detected would you like to add validation configuration?"))
{
try
{
... | public void addValidationConfiguration(Project project, ShellPrompt prompt)
{
if (isMetawidgetScaffold(project))
{
if (prompt.promptBoolean("MetaWidget scaffold detected would you like to add validation configuration?"))
{
try
{
... |
diff --git a/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInRegistryFinder.java b/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInRegistryFinder.java
index e26f1dee5..a0cafcf6e 100644
--- a/org.emftext.sdk/src/org/emftext/sdk/finders/GenPackageInRegistryFinder.java
+++ b/org.emftext.sdk/src/org/emftext... | true | true | private static void init() {
//search all registered generator models
final Map<String, URI> packageNsURIToGenModelLocationMap = EcorePlugin.getEPackageNsURIToGenModelLocationMap();
for (String nextNS : packageNsURIToGenModelLocationMap.keySet()) {
URI genModelURI = packageNsURIToGenModelLocationMap.get(nextN... | private static void init() {
//search all registered generator models
final Map<String, URI> packageNsURIToGenModelLocationMap = EcorePlugin.getEPackageNsURIToGenModelLocationMap();
for (String nextNS : packageNsURIToGenModelLocationMap.keySet()) {
URI genModelURI = packageNsURIToGenModelLocationMap.get(nextN... |
diff --git a/smartuser/smart-user-ui/module/src/main/java/com/smartitengineering/user/ui/AddUserTopComponent.java b/smartuser/smart-user-ui/module/src/main/java/com/smartitengineering/user/ui/AddUserTopComponent.java
index b4c3e266..e37aa1f2 100644
--- a/smartuser/smart-user-ui/module/src/main/java/com/smartitengineeri... | false | true | private void initComponents() {
baseScrollPane = new javax.swing.JScrollPane();
basePanel = new javax.swing.JPanel();
bottomPanel = new javax.swing.JPanel();
saveButton = new javax.swing.JButton();
cancelButton = new javax.swing.JButton();
addUserTabbedPane = new jav... | private void initComponents() {
baseScrollPane = new javax.swing.JScrollPane();
basePanel = new javax.swing.JPanel();
bottomPanel = new javax.swing.JPanel();
saveButton = new javax.swing.JButton();
cancelButton = new javax.swing.JButton();
addUserTabbedPane = new jav... |
diff --git a/forge/forge_server/src/net/minecraft/src/forge/PacketHandlerServer.java b/forge/forge_server/src/net/minecraft/src/forge/PacketHandlerServer.java
index 37f69a7cd..565421651 100644
--- a/forge/forge_server/src/net/minecraft/src/forge/PacketHandlerServer.java
+++ b/forge/forge_server/src/net/minecraft/src/fo... | true | true | private void onModListResponse(NetServerHandler net, PacketModList pkt) throws IOException
{
if (DEBUG)
{
System.out.println("C->S: " + pkt.toString(true));
}
if (pkt.Length < 0)
{
net.kickPlayer("Invalid mod list response, Size: " + pkt.Length);
... | private void onModListResponse(NetServerHandler net, PacketModList pkt) throws IOException
{
if (DEBUG)
{
System.out.println("C->S: " + pkt.toString(true));
}
if (pkt.Length < 0)
{
net.kickPlayer("Invalid mod list response, Size: " + pkt.Length);
... |
diff --git a/src/replicatorg/app/ui/MainButtonPanel.java b/src/replicatorg/app/ui/MainButtonPanel.java
index 6132cf17..528292ab 100644
--- a/src/replicatorg/app/ui/MainButtonPanel.java
+++ b/src/replicatorg/app/ui/MainButtonPanel.java
@@ -1,341 +1,341 @@
/*
Part of the ReplicatorG project - http://www.replicat.org
... | true | true | public MainButtonPanel(MainWindow editor) {
setLayout(new MigLayout("gap 5"));
this.editor = editor;
// hardcoding new blue color scheme for consistency with images,
// see EditorStatus.java for details.
// bgcolor = Preferences.getColor("buttons.bgcolor");
setBackground(BACK_COLOR);
Font statusFont = ... | public MainButtonPanel(MainWindow editor) {
setLayout(new MigLayout("gap 5"));
this.editor = editor;
// hardcoding new blue color scheme for consistency with images,
// see EditorStatus.java for details.
// bgcolor = Preferences.getColor("buttons.bgcolor");
setBackground(BACK_COLOR);
Font statusFont = ... |
diff --git a/ode_trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/elang/URIResolverTest.java b/ode_trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/elang/URIResolverTest.java
index 0adb1b69..949fed64 100644
--- a/ode_trunk/bpel-runtime/src/test/java/org/apache/ode/bpel/elang/URIResolverTest.java
+++ b/ode_trunk... | true | true | public void testResolveURL() throws Exception {
OXPath10Expression expr = new OXPath10Expression(null, null, null, null);
URI baseResourceURI = getClass().getResource("/xpath20/").toURI();
XslRuntimeUriResolver resolver = new XslRuntimeUriResolver(expr, baseResourceURI);
// the local... | public void testResolveURL() throws Exception {
OXPath10Expression expr = new OXPath10Expression(null, null, null, null);
URI baseResourceURI = getClass().getResource("/xpath20/").toURI();
XslRuntimeUriResolver resolver = new XslRuntimeUriResolver(expr, baseResourceURI);
// the local... |
diff --git a/src/powercrystals/core/inventory/InventoryManager.java b/src/powercrystals/core/inventory/InventoryManager.java
index e7cae91..7929876 100644
--- a/src/powercrystals/core/inventory/InventoryManager.java
+++ b/src/powercrystals/core/inventory/InventoryManager.java
@@ -1,50 +1,50 @@
package powercrystals.co... | true | true | public static IInventoryManager create(IInventory inventory, ForgeDirection targetSide)
{
if(inventory instanceof ISidedInventory)
{
return new InventoryManagerSided((ISidedInventory)inventory, targetSide);
}
else if(inventory instanceof net.minecraftforge.common.ISidedInventory)
{
return new Inventor... | public static IInventoryManager create(IInventory inventory, ForgeDirection targetSide)
{
if(inventory instanceof ISidedInventory)
{
return new InventoryManagerSided((ISidedInventory)inventory, targetSide);
}
else if(inventory instanceof net.minecraftforge.common.ISidedInventory)
{
return new Inventor... |
diff --git a/rest/src/main/java/org/dbpedia/spotlight/web/rest/Server.java b/rest/src/main/java/org/dbpedia/spotlight/web/rest/Server.java
index 8c125c2f..c4285ae2 100644
--- a/rest/src/main/java/org/dbpedia/spotlight/web/rest/Server.java
+++ b/rest/src/main/java/org/dbpedia/spotlight/web/rest/Server.java
@@ -1,272 +1,... | true | true | public static void main(String[] args) throws IOException, InterruptedException, URISyntaxException, ClassNotFoundException, InitializationException {
URI serverURI = null;
if(args[0].endsWith(".properties")) {
//We are using the old-style configuration file:
//Initializat... | public static void main(String[] args) throws IOException, InterruptedException, URISyntaxException, ClassNotFoundException, InitializationException {
URI serverURI = null;
if(args[0].endsWith(".properties")) {
//We are using the old-style configuration file:
//Initializat... |
diff --git a/src/org/liberty/android/fantastischmemo/SettingsScreen.java b/src/org/liberty/android/fantastischmemo/SettingsScreen.java
index d76a6eb8..63c01d1a 100644
--- a/src/org/liberty/android/fantastischmemo/SettingsScreen.java
+++ b/src/org/liberty/android/fantastischmemo/SettingsScreen.java
@@ -1,957 +1,957 @@
... | true | true | private void setInitialPosition(){
String dbPath = null, dbName = null;
Bundle extras = getIntent().getExtras();
if (extras != null) {
dbPath = extras.getString("dbpath");
dbName = extras.getString("dbname");
}
try{
dbHelper = new DatabaseHelper(this, dbPath, dbName);
}
... | private void setInitialPosition(){
String dbPath = null, dbName = null;
Bundle extras = getIntent().getExtras();
if (extras != null) {
dbPath = extras.getString("dbpath");
dbName = extras.getString("dbname");
}
try{
dbHelper = new DatabaseHelper(this, dbPath, dbName);
}
... |
diff --git a/src/main/java/com/github/computerdude5000/derpingworldgen/BasicDerpingGen.java b/src/main/java/com/github/computerdude5000/derpingworldgen/BasicDerpingGen.java
index 39dfa1d..5226ec6 100644
--- a/src/main/java/com/github/computerdude5000/derpingworldgen/BasicDerpingGen.java
+++ b/src/main/java/com/github/c... | true | true | public byte[][] generateBlockSections(World world, Random rand, int ChunkX, int ChunkZ, BiomeGrid biome) {
byte[][] chunk = new byte[world.getMaxHeight() / 16][];
SimplexOctaveGenerator gen1 = new SimplexOctaveGenerator(world,8);
SimplexOctaveGenerator gen2 = new SimplexOctaveGenerator(world... | public byte[][] generateBlockSections(World world, Random rand, int ChunkX, int ChunkZ, BiomeGrid biome) {
byte[][] chunk = new byte[world.getMaxHeight() / 16][];
SimplexOctaveGenerator gen1 = new SimplexOctaveGenerator(world,8);
SimplexOctaveGenerator gen2 = new SimplexOctaveGenerator(world... |
diff --git a/MODSRC/vazkii/tinkerer/common/research/ModResearch.java b/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
index 0a10c5a9..f5a2f0e7 100644
--- a/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
+++ b/MODSRC/vazkii/tinkerer/common/research/ModResearch.java
@@ -1,273 +1,273 @@
/**
* This cla... | false | true | public static void initResearch() {
registerResearchPages();
ResearchItem research;
research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_ARTIFICE, new AspectList(), -2, 3, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem();
research.s... | public static void initResearch() {
registerResearchPages();
ResearchItem research;
research = new TTResearchItem(LibResearch.KEY_DARK_QUARTZ, LibResearch.CATEGORY_ARTIFICE, new AspectList(), -1, 2, 0, new ItemStack(ModItems.darkQuartz)).setStub().setAutoUnlock().setRound().registerResearchItem();
research.s... |
diff --git a/src/web/org/appfuse/webapp/action/PasswordHintAction.java b/src/web/org/appfuse/webapp/action/PasswordHintAction.java
index 3b7a3d11..0336b619 100644
--- a/src/web/org/appfuse/webapp/action/PasswordHintAction.java
+++ b/src/web/org/appfuse/webapp/action/PasswordHintAction.java
@@ -1,91 +1,91 @@
package or... | true | true | public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
MessageResources resources = getResources(request);
ActionMessages errors = new Acti... | public ActionForward execute(ActionMapping mapping, ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
MessageResources resources = getResources(request);
ActionMessages errors = new Acti... |
diff --git a/src/com/bigpupdev/synodroid/server/SynoServer.java b/src/com/bigpupdev/synodroid/server/SynoServer.java
index d2acef6..02ebf7f 100644
--- a/src/com/bigpupdev/synodroid/server/SynoServer.java
+++ b/src/com/bigpupdev/synodroid/server/SynoServer.java
@@ -1,821 +1,823 @@
/**
* Copyright 2010 Eric Taix Licen... | true | true | public void connect(final ResponseHandler handlerP, final List<SynoAction> actionQueueP, boolean publicP) {
// Set the connection according to the public or local parameter
if (publicP) {
currentConn = publicConnection;
} else {
currentConn = localConnection;
}
bindResponseHandler(handlerP);
// If w... | public void connect(final ResponseHandler handlerP, final List<SynoAction> actionQueueP, boolean publicP) {
// Set the connection according to the public or local parameter
if (publicP) {
currentConn = publicConnection;
} else {
currentConn = localConnection;
}
bindResponseHandler(handlerP);
// If w... |
diff --git a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/networkAdmin/ManageDataversesPage.java b/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/networkAdmin/ManageDataversesPage.java
index e49dd1b03..39b61dbca 100644
--- a/src/DVN-web/src/edu/harvard/hmdc/vdcnet/web/networkAdmin/ManageDataversesPage.java
+++ b/src/DVN-we... | true | true | public void paginate(ActionEvent action) {
PaginatorActionEvent pEvent = (PaginatorActionEvent) action;
DataverseGrouping grouping = (DataverseGrouping) itemBeans.get(0);
grouping.setIsPopulated(false);
if (DataPaginator.FACET_FIRST.equals(pEvent.getScrollerfacet())) {
gr... | public void paginate(ActionEvent action) {
PaginatorActionEvent pEvent = (PaginatorActionEvent) action;
DataverseGrouping grouping = (DataverseGrouping) itemBeans.get(0);
grouping.setIsPopulated(false);
if (DataPaginator.FACET_FIRST.equals(pEvent.getScrollerfacet())) {
gr... |
diff --git a/Autobahn/src/de/tavendo/autobahn/WebSocketReader.java b/Autobahn/src/de/tavendo/autobahn/WebSocketReader.java
index 2fa6f17..43df973 100644
--- a/Autobahn/src/de/tavendo/autobahn/WebSocketReader.java
+++ b/Autobahn/src/de/tavendo/autobahn/WebSocketReader.java
@@ -1,698 +1,698 @@
/*************************... | true | true | private boolean processData() throws Exception {
// outside frame?
if (mFrameHeader == null) {
// need at least 2 bytes from WS frame header to start processing
if (mFrameBuffer.position() >= 2) {
byte b0 = mFrameBuffer.get(0);
boolean fin = (b0 & 0x80) != 0;
... | private boolean processData() throws Exception {
// outside frame?
if (mFrameHeader == null) {
// need at least 2 bytes from WS frame header to start processing
if (mFrameBuffer.position() >= 2) {
byte b0 = mFrameBuffer.get(0);
boolean fin = (b0 & 0x80) != 0;
... |
diff --git a/org.eclipse.scout.commons/src/org/eclipse/scout/commons/osgi/BundleObjectInputStream.java b/org.eclipse.scout.commons/src/org/eclipse/scout/commons/osgi/BundleObjectInputStream.java
index 29afaef91e..06d69fdbac 100644
--- a/org.eclipse.scout.commons/src/org/eclipse/scout/commons/osgi/BundleObjectInputStrea... | true | true | private Class<?> defaultResolveClass(String className) throws ClassNotFoundException, IOException {
Class c = PRIMITIVE_TYPES.get(className);
if (c != null) {
return c;
}
try {
int arrayDim = 0;
while (className.startsWith("[")) {
className = className.substring(1);
a... | private Class<?> defaultResolveClass(String className) throws ClassNotFoundException, IOException {
Class c = PRIMITIVE_TYPES.get(className);
if (c != null) {
return c;
}
try {
int arrayDim = 0;
while (className.startsWith("[")) {
className = className.substring(1);
a... |
diff --git a/java/src/com/twitter/pycascading/MetaScheme.java b/java/src/com/twitter/pycascading/MetaScheme.java
index 7008b24..68bda0a 100644
--- a/java/src/com/twitter/pycascading/MetaScheme.java
+++ b/java/src/com/twitter/pycascading/MetaScheme.java
@@ -1,186 +1,186 @@
/**
* Copyright 2011 Twitter, Inc.
* Licen... | true | true | public void sink(TupleEntry tupleEntry, OutputCollector outputCollector) throws IOException {
// TODO: do it so such that we don't need to specify /user/gabor if the path
// doesn't start with /
if (firstLine) {
Path path = new Path(outputPath + "/" + headerFileName);
FileSystem fs = path.getF... | public void sink(TupleEntry tupleEntry, OutputCollector outputCollector) throws IOException {
// TODO: do it so such that we don't need to specify /user/gabor if the path
// doesn't start with /
if (firstLine) {
Path path = new Path(outputPath + "/" + headerFileName);
FileSystem fs = path.getF... |
diff --git a/src/test/java/org/sonar/plugins/cxx/CxxLineCounterTest.java b/src/test/java/org/sonar/plugins/cxx/CxxLineCounterTest.java
index ec77a401..9f848447 100644
--- a/src/test/java/org/sonar/plugins/cxx/CxxLineCounterTest.java
+++ b/src/test/java/org/sonar/plugins/cxx/CxxLineCounterTest.java
@@ -1,84 +1,84 @@
/*... | true | true | private Project mockProject() throws java.net.URISyntaxException {
File file = new File(getClass().getResource("/org/sonar/plugins/cxx/code_chunk.cc").toURI());
File basedir = new File(getClass().getResource("/").toURI());
List<File> sources = new ArrayList<File>();
sources.add(file);
Pr... | private Project mockProject() throws java.net.URISyntaxException {
File file = new File(getClass().getResource("/org/sonar/plugins/cxx/code_chunks.cc").toURI());
File basedir = new File(getClass().getResource("/").toURI());
List<File> sources = new ArrayList<File>();
sources.add(file);
P... |
diff --git a/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java b/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java
index 6648957..f63ff88 100644
--- a/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java
+++ b/src/uk/org/ponder/rsf/state/guards/BeanGuardProcessor.java
@@ -1,98 +1,98 @@
/*
* C... | true | true | public void processPostGuards(BeanInvalidationModel bim, TargettedMessageList errors,
WriteableBeanLocator rbl) {
BindException springerrors = null;
for (int i = 0; i < guards.length; ++ i) {
BeanGuard guarddef = guards[i];
String mode = guarddef.getGuardMode();
String timing = guardd... | public void processPostGuards(BeanInvalidationModel bim, TargettedMessageList errors,
WriteableBeanLocator rbl) {
BindException springerrors = null;
for (int i = 0; i < guards.length; ++ i) {
BeanGuard guarddef = guards[i];
String mode = guarddef.getGuardMode();
String timing = guardd... |
diff --git a/UserVoiceSDK/src/com/uservoice/uservoicesdk/flow/SigninManager.java b/UserVoiceSDK/src/com/uservoice/uservoicesdk/flow/SigninManager.java
index 8723f73..c883214 100644
--- a/UserVoiceSDK/src/com/uservoice/uservoicesdk/flow/SigninManager.java
+++ b/UserVoiceSDK/src/com/uservoice/uservoicesdk/flow/SigninMana... | true | true | private void signIn() {
User currentUser = Session.getInstance().getUser();
if (currentUser != null && (email == null || email.equals(currentUser.getEmail()))) {
callback.run();
} else {
email = email == null ? Session.getInstance().getEmail() : email;
nam... | private void signIn() {
User currentUser = Session.getInstance().getUser();
if (currentUser != null && (email == null || email.equals(currentUser.getEmail()))) {
callback.run();
} else if (Session.getInstance().getAccessToken() != null) {
// If we have an access token... |
diff --git a/src/me/FluffyWolfers/Jet/JetListener.java b/src/me/FluffyWolfers/Jet/JetListener.java
index e004cbb..669f47c 100644
--- a/src/me/FluffyWolfers/Jet/JetListener.java
+++ b/src/me/FluffyWolfers/Jet/JetListener.java
@@ -1,134 +1,137 @@
package me.FluffyWolfers.Jet;
import java.util.ArrayList;
import org... | true | true | public void addFuel(PlayerInteractEvent e){
Player p = e.getPlayer();
//if(!p.getGameMode().equals(GameMode.CREATIVE)){
if(p.hasPermission("jet.fly")){
if(e.getAction().equals(Action.RIGHT_CLICK_AIR)||e.getAction().equals(Action.RIGHT_CLICK_BLOCK)){
if(p.getInventory().getChestplate() !... | public void addFuel(PlayerInteractEvent e){
Player p = e.getPlayer();
//if(!p.getGameMode().equals(GameMode.CREATIVE)){
if(p.hasPermission("jet.fly")){
if(e.getAction().equals(Action.RIGHT_CLICK_AIR)||e.getAction().equals(Action.RIGHT_CLICK_BLOCK)){
if(p.getInventory().getChestplate() !... |
diff --git a/app/org/bitcoin/stratum/BitcoinjWallet.java b/app/org/bitcoin/stratum/BitcoinjWallet.java
index ac035e4..191f8ba 100644
--- a/app/org/bitcoin/stratum/BitcoinjWallet.java
+++ b/app/org/bitcoin/stratum/BitcoinjWallet.java
@@ -1,73 +1,74 @@
package org.bitcoin.stratum;
import com.google.bitcoin.core.Addre... | true | true | public static Transaction createSend(Address address, BigInteger nanocoins, Address changeAddress, NetworkParameters params) {
// TODO
// log.info("Creating send tx to " + address.toString() + " for " +
// bitcoinValueToFriendlyString(nanocoins));
// // To send money to somebody... | public static Transaction createSend(Address address, BigInteger nanocoins, Address changeAddress, NetworkParameters params) {
throw new RuntimeException();
// TODO
// log.info("Creating send tx to " + address.toString() + " for " +
// bitcoinValueToFriendlyString(nanocoins));
... |
diff --git a/main/src/main/java/com/bloatit/framework/Demand.java b/main/src/main/java/com/bloatit/framework/Demand.java
index 284c55c28..855b979ec 100644
--- a/main/src/main/java/com/bloatit/framework/Demand.java
+++ b/main/src/main/java/com/bloatit/framework/Demand.java
@@ -1,140 +1,140 @@
package com.bloatit.framew... | true | true | public float getProgression() {
if (dao.getOffers().size() == 0) {
return 42 * (1 - 1 / (1 + dao.getContribution().floatValue() / 200));
} else {
final DaoOffer currentOffer = dao.getCurrentOffer();
if (currentOffer.getAmount().floatValue() != 0) {
... | public float getProgression() {
if (dao.getOffers().isEmpty()) {
return 42 * (1 - 1 / (1 + dao.getContribution().floatValue() / 200));
} else {
final DaoOffer currentOffer = dao.getCurrentOffer();
if (currentOffer.getAmount().floatValue() != 0) {
r... |
diff --git a/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/config/AuthorizationServerBeanDefinitionParser.java b/spring-security-oauth2/src/main/java/org/springframework/security/oauth2/config/AuthorizationServerBeanDefinitionParser.java
index 74a004db..8d3146cc 100644
--- a/spring-security-o... | true | true | protected AbstractBeanDefinition parseEndpointAndReturnFilter(Element element, ParserContext parserContext,
String tokenServicesRef, String serializerRef) {
String clientDetailsRef = element.getAttribute("client-details-service-ref");
String tokenEndpointUrl = element.getAttribute("token-endpoint-url");
Stri... | protected AbstractBeanDefinition parseEndpointAndReturnFilter(Element element, ParserContext parserContext,
String tokenServicesRef, String serializerRef) {
String clientDetailsRef = element.getAttribute("client-details-service-ref");
String tokenEndpointUrl = element.getAttribute("token-endpoint-url");
Stri... |
diff --git a/crawler4j/src/edu/uci/ics/crawler4j/url/URLCanonicalizer.java b/crawler4j/src/edu/uci/ics/crawler4j/url/URLCanonicalizer.java
index b8f22b0..2842739 100644
--- a/crawler4j/src/edu/uci/ics/crawler4j/url/URLCanonicalizer.java
+++ b/crawler4j/src/edu/uci/ics/crawler4j/url/URLCanonicalizer.java
@@ -1,97 +1,98 ... | true | true | public static URL getCanonicalURL(String href, String context) {
try {
URI normalized;
if (context != null) {
normalized = new URI(context);
if (normalized.getPath().equals(""))
context += "/";
normalized = new URI(context).resolve(href);
} else {
normalized = new URI(href);
}
nor... | public static URL getCanonicalURL(String href, String context) {
try {
URI normalized;
if (context != null) {
normalized = new URI(context);
if (normalized.getPath().equals(""))
context += "/";
normalized = new URI(context).resolve(href);
} else {
normalized = new URI(href);
}
nor... |
diff --git a/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java b/src/contributions/resources/forgotpw/src/java/org/wyona/yanel/impl/resources/forgotpw/ForgotPassword.java
index 37568f023..af4c83799 100644
--- a/src/contributions/resources/forgotpw/src/java/org/wyo... | true | true | private void processUserAction(HttpServletRequest request, Document adoc) throws Exception {
String action = determineAction(request);
log.debug("action performed: " + action);
Element rootElement = adoc.getDocumentElement();
String resetPasswordRequestUUID = getForgotPasswordReques... | private void processUserAction(HttpServletRequest request, Document adoc) throws Exception {
String action = determineAction(request);
log.debug("action performed: " + action);
Element rootElement = adoc.getDocumentElement();
String resetPasswordRequestUUID = getForgotPasswordReques... |
diff --git a/src/de/hdm/foodfinder/orm/Restaurant.java b/src/de/hdm/foodfinder/orm/Restaurant.java
index cb9a378..ce97610 100644
--- a/src/de/hdm/foodfinder/orm/Restaurant.java
+++ b/src/de/hdm/foodfinder/orm/Restaurant.java
@@ -1,471 +1,471 @@
package de.hdm.foodfinder.orm;
//import hdm.stuttgart.esell.errors.ESel... | false | true | public static RestaurantList getRestaurantList(String latitude,
String longitude, String[] dishes, String region, int[] categories,
String distance, String order, String start, String limit)
throws ffException {
makeConnection();
PreparedStatement preparedStatement = null;
System.out.println("d: " + di... | public static RestaurantList getRestaurantList(String latitude,
String longitude, String[] dishes, String region, int[] categories,
String distance, String order, String start, String limit)
throws ffException {
makeConnection();
PreparedStatement preparedStatement = null;
//System.out.println("d: " + ... |
diff --git a/router/java/src/net/i2p/router/networkdb/reseed/Reseeder.java b/router/java/src/net/i2p/router/networkdb/reseed/Reseeder.java
index 3e1c0b075..1fb70e36d 100644
--- a/router/java/src/net/i2p/router/networkdb/reseed/Reseeder.java
+++ b/router/java/src/net/i2p/router/networkdb/reseed/Reseeder.java
@@ -1,466 +... | true | true | private int reseedOne(String seedURL, boolean echoStatus) {
try {
// Don't use context clock as we may be adjusting the time
final long timeLimit = System.currentTimeMillis() + MAX_TIME_PER_HOST;
System.setProperty(PROP_STATUS, _("Reseeding: fetching s... | private int reseedOne(String seedURL, boolean echoStatus) {
try {
// Don't use context clock as we may be adjusting the time
final long timeLimit = System.currentTimeMillis() + MAX_TIME_PER_HOST;
System.setProperty(PROP_STATUS, _("Reseeding: fetching s... |
diff --git a/src/com/base/engine/Game.java b/src/com/base/engine/Game.java
index 96f5032..20751c1 100644
--- a/src/com/base/engine/Game.java
+++ b/src/com/base/engine/Game.java
@@ -1,69 +1,69 @@
package com.base.engine;
public class Game
{
private Mesh mesh;
private Shader shader;
private Material material;
... | true | true | public Game()
{
mesh = ResourceLoader.loadMesh("mayaBox.obj");
material = new Material(ResourceLoader.loadTexture("test.png"), new Vector3f(0,1,1));
shader = BasicShader.getInstance();
camera = new Camera();
// Vertex[] vertices = new Vertex[] {new Vertex(new Vector3f(-1,-1,0), new Vector2f(0,0)),
// ... | public Game()
{
mesh = ResourceLoader.loadMesh("box.obj");
material = new Material(ResourceLoader.loadTexture("test.png"), new Vector3f(0,1,1));
shader = BasicShader.getInstance();
camera = new Camera();
// Vertex[] vertices = new Vertex[] {new Vertex(new Vector3f(-1,-1,0), new Vector2f(0,0)),
// ... |
diff --git a/v4/java/android/support/v4/view/ViewPager.java b/v4/java/android/support/v4/view/ViewPager.java
index 8874096..429390a 100644
--- a/v4/java/android/support/v4/view/ViewPager.java
+++ b/v4/java/android/support/v4/view/ViewPager.java
@@ -1,2865 +1,2866 @@
/*
* Copyright (C) 2011 The Android Open Source Pr... | false | true | void populate(int newCurrentItem) {
ItemInfo oldCurInfo = null;
int focusDirection = View.FOCUS_FORWARD;
if (mCurItem != newCurrentItem) {
focusDirection = mCurItem < newCurrentItem ? View.FOCUS_RIGHT : View.FOCUS_LEFT;
oldCurInfo = infoForPosition(mCurItem);
... | void populate(int newCurrentItem) {
ItemInfo oldCurInfo = null;
int focusDirection = View.FOCUS_FORWARD;
if (mCurItem != newCurrentItem) {
focusDirection = mCurItem < newCurrentItem ? View.FOCUS_RIGHT : View.FOCUS_LEFT;
oldCurInfo = infoForPosition(mCurItem);
... |
diff --git a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java b/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java
index ef826376..2e909649 100644
--- a/Essentials/src/com/earth2me/essentials/EssentialsBlockListener.java
+++ b/Essentials/src/com/earth2me/essentials/EssentialsBlockLis... | true | true | public void onSignChange(SignChangeEvent event)
{
if (event.isCancelled()) return;
if (ess.getSettings().areSignsDisabled()) return;
User user = ess.getUser(event.getPlayer());
String username = user.getName().substring(0, user.getName().length() > 14 ? 14 : user.getName().length());
try
{
if (event.g... | public void onSignChange(SignChangeEvent event)
{
if (event.isCancelled()) return;
if (ess.getSettings().areSignsDisabled()) return;
User user = ess.getUser(event.getPlayer());
String username = user.getName().substring(0, user.getName().length() > 14 ? 14 : user.getName().length());
try
{
if (event.g... |
diff --git a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/SearchServlet.java b/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/SearchServlet.java
index ddd249756..b51e8cee2 100644
--- a/org.eclipse.help.webapp/src/org/eclipse/help/internal/webapp/servlet/SearchServlet.java
+... | true | true | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
BaseHelpSystem.checkMode();
String locale = UrlUtil.getLocale(req, resp);
req.setCharacterEncoding("UTF-8"); //$NON-NLS-1$
resp.setContentType("application/xml; charset=UTF-8"); //$NON-NLS-1$
Stri... | protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
BaseHelpSystem.checkMode();
String locale = UrlUtil.getLocale(req, resp);
req.setCharacterEncoding("UTF-8"); //$NON-NLS-1$
resp.setContentType("application/xml; charset=UTF-8"); //$NON-NLS-1$
Stri... |
diff --git a/trunk/Line_Wars/src/linewars/configfilehandler/ConfigFileReader.java b/trunk/Line_Wars/src/linewars/configfilehandler/ConfigFileReader.java
index 36b4868..6071fc9 100644
--- a/trunk/Line_Wars/src/linewars/configfilehandler/ConfigFileReader.java
+++ b/trunk/Line_Wars/src/linewars/configfilehandler/ConfigFil... | true | true | private ConfigData readRecurse() throws InvalidConfigFileException {
ConfigData config = new ConfigData(URI, this.currentLine);
while(file.hasNextLine())
{
String l = file.nextLine();
this.currentLine++;
Scanner line = new Scanner(l);
//remove comments
if(l.contains("#"))
line = new Scanner... | private ConfigData readRecurse() throws InvalidConfigFileException {
ConfigData config = new ConfigData(URI, this.currentLine);
while(file.hasNextLine())
{
String l = file.nextLine();
this.currentLine++;
Scanner line = new Scanner(l);
//remove comments
if(l.contains("#"))
line = new Scanner... |
diff --git a/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/code_completion/helpers/ExpectationComputer.java b/org.emftext.sdk.codegen.resource/src/org/emftext/sdk/codegen/resource/generators/code_completion/helpers/ExpectationComputer.java
index 388e02584..43ea29db9 100644
--- a/org.e... | false | true | private Set<Expectation> computeFollowSet(ConcreteSyntax syntax, SyntaxElement syntaxElement, Collection<Rule> usedRules, Set<GenClass> contributingNonterminals) {
Set<Expectation> result = new LinkedHashSet<Expectation>();
result.addAll(computeFirstSetIfObjectCanBeRepeated(syntax, syntaxElement, contributingNonte... | private Set<Expectation> computeFollowSet(ConcreteSyntax syntax, SyntaxElement syntaxElement, Collection<Rule> usedRules, Set<GenClass> contributingNonterminals) {
Set<Expectation> result = new LinkedHashSet<Expectation>();
result.addAll(computeFirstSetIfObjectCanBeRepeated(syntax, syntaxElement, contributingNonte... |
diff --git a/UniversalImageLoader/src/com/nostra13/universalimageloader/core/ImageLoader.java b/UniversalImageLoader/src/com/nostra13/universalimageloader/core/ImageLoader.java
index 9d05d72..b87fa08 100644
--- a/UniversalImageLoader/src/com/nostra13/universalimageloader/core/ImageLoader.java
+++ b/UniversalImageLoader... | true | true | public void displayImage(String uri, ImageView imageView, DisplayImageOptions options, ImageLoadingListener listener) {
if (configuration == null) {
throw new RuntimeException(ERROR_NOT_INIT);
}
if (imageView == null) {
Log.w(TAG, ERROR_WRONG_ARGUMENTS);
return;
}
if (listener == null) {
listener... | public void displayImage(String uri, ImageView imageView, DisplayImageOptions options, ImageLoadingListener listener) {
if (configuration == null) {
throw new RuntimeException(ERROR_NOT_INIT);
}
if (imageView == null) {
Log.w(TAG, ERROR_WRONG_ARGUMENTS);
return;
}
if (listener == null) {
listener... |
diff --git a/ModularPots/src/com/jaquadro/minecraft/modularpots/ModularPots.java b/ModularPots/src/com/jaquadro/minecraft/modularpots/ModularPots.java
index 9a0bb6c..f6eae98 100644
--- a/ModularPots/src/com/jaquadro/minecraft/modularpots/ModularPots.java
+++ b/ModularPots/src/com/jaquadro/minecraft/modularpots/ModularP... | true | true | public void preInit (FMLPreInitializationEvent event) {
initializeBlocks();
GameRegistry.registerBlock(largePot, MOD_ID + ":large_pot");
GameRegistry.registerBlock(largePotColored, ItemLargePotColored.class, MOD_ID + ":large_pot_colored");
GameRegistry.registerBlock(largePotPlantPro... | public void preInit (FMLPreInitializationEvent event) {
initializeBlocks();
GameRegistry.registerBlock(largePot, MOD_ID + ":large_pot");
GameRegistry.registerBlock(largePotColored, ItemLargePotColored.class, MOD_ID + ":large_pot_colored");
GameRegistry.registerBlock(largePotPlantPro... |
diff --git a/core/src/main/java/ma/glasnost/orika/impl/generator/CodeSourceBuilder.java b/core/src/main/java/ma/glasnost/orika/impl/generator/CodeSourceBuilder.java
index 3d29d95..302ef96 100644
--- a/core/src/main/java/ma/glasnost/orika/impl/generator/CodeSourceBuilder.java
+++ b/core/src/main/java/ma/glasnost/orika/i... | false | true | public CodeSourceBuilder setCollection(Property dp, Property sp, Property ip, Type<?> destinationType) {
final Class<?> dc = destinationType.getRawType();
final Class<?> destinationElementClass = dp.getElementType().getRawType();
if (destinationElementClass == null) {
... | public CodeSourceBuilder setCollection(Property dp, Property sp, Property ip, Type<?> destinationType) {
final Class<?> dc = destinationType.getRawType();
final Class<?> destinationElementClass = dp.getElementType().getRawType();
if (destinationElementClass == null) {
... |
diff --git a/org.javakontor.sherlog.application/src/org/javakontor/sherlog/application/internal/DefaultApplicationWindow.java b/org.javakontor.sherlog.application/src/org/javakontor/sherlog/application/internal/DefaultApplicationWindow.java
index 075af15..713476b 100644
--- a/org.javakontor.sherlog.application/src/org/... | true | true | private void setUp() {
this._requestHandler = new RequestHandlerImpl() {
@Override
public boolean canHandleRequest(Request request) {
return request instanceof SetStatusMessageRequest;
}
@Override
public void doHandleRequest(final Request request) {
if (DefaultAppl... | private void setUp() {
this._requestHandler = new RequestHandlerImpl() {
@Override
public boolean canHandleRequest(Request request) {
return request instanceof SetStatusMessageRequest;
}
@Override
public void doHandleRequest(final Request request) {
if (DefaultAppl... |
diff --git a/vaadin-framework/src/main/java/pt/ist/vaadinframework/EmbeddedWindow.java b/vaadin-framework/src/main/java/pt/ist/vaadinframework/EmbeddedWindow.java
index 1556de7..cbb3794 100644
--- a/vaadin-framework/src/main/java/pt/ist/vaadinframework/EmbeddedWindow.java
+++ b/vaadin-framework/src/main/java/pt/ist/vaa... | true | true | public EmbeddedWindow(Set<Class<? extends EmbeddedComponentContainer>> pages) {
setImmediate(true);
this.pages = pages;
final VerticalLayout layout = new VerticalLayout();
layout.addComponent(fragmentUtility);
fragmentUtility.addListener(new UriFragmentUtility.FragmentChangedListener() {
@Override
pu... | public EmbeddedWindow(Set<Class<? extends EmbeddedComponentContainer>> pages) {
setImmediate(true);
this.pages = pages;
final VerticalLayout layout = new VerticalLayout();
layout.addComponent(fragmentUtility);
fragmentUtility.addListener(new UriFragmentUtility.FragmentChangedListener() {
@Override
pu... |
diff --git a/src/org/hackystat/projectbrowser/page/trajectory/dtwpanel/TrajectoryDTWPage.java b/src/org/hackystat/projectbrowser/page/trajectory/dtwpanel/TrajectoryDTWPage.java
index 0018b5f..a9ef7df 100644
--- a/src/org/hackystat/projectbrowser/page/trajectory/dtwpanel/TrajectoryDTWPage.java
+++ b/src/org/hackystat/pr... | true | true | public TrajectoryDTWPage() {
getLogger().info(MARK + "Trajectory page constructor invoked, hash: " + this.hashCode());
TrajectoryDTWInputPanel inputPanel = new TrajectoryDTWInputPanel("inputPanel", this);
inputPanel.setOutputMarkupId(true);
add(inputPanel);
TrajectoryDTWDataPanel dataPanel = new... | public TrajectoryDTWPage() {
getLogger().info(MARK + "Trajectory page constructor invoked, hash: " + this.hashCode());
TrajectoryDTWInputPanel inputPanel = new TrajectoryDTWInputPanel("inputPanel", this);
inputPanel.setOutputMarkupId(true);
add(inputPanel);
TrajectoryDTWDataPanel dataPanel = new... |
diff --git a/src/web/org/openmrs/web/controller/remotecommunication/PostHl7Controller.java b/src/web/org/openmrs/web/controller/remotecommunication/PostHl7Controller.java
index f115133b..076f9b2f 100644
--- a/src/web/org/openmrs/web/controller/remotecommunication/PostHl7Controller.java
+++ b/src/web/org/openmrs/web/con... | true | true | public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
Boolean success = false;
if (!Context.isAuthenticated()) {
String username = request.getParameter("username");
String password = request.... | public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {
Map<String, Object> model = new HashMap<String, Object>();
Boolean success = false;
if (!Context.isAuthenticated()) {
String username = request.getParameter("username");
String password = request.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.