Datasets:

diff
stringlengths
262
553k
is_single_chunk
bool
2 classes
is_single_function
bool
1 class
buggy_function
stringlengths
20
391k
fixed_function
stringlengths
0
392k
diff --git a/src/logicrepository/plugins/srs/Fail.java b/src/logicrepository/plugins/srs/Fail.java index cf74003..b9d5d63 100644 --- a/src/logicrepository/plugins/srs/Fail.java +++ b/src/logicrepository/plugins/srs/Fail.java @@ -1,17 +1,17 @@ package logicrepository.plugins.srs; public class Fail implements Abstrac...
true
true
public String toString(){ return "#succeed"; }
public String toString(){ return "#fail"; }
diff --git a/src/main/java/org/basex/examples/create/CSVExample.java b/src/main/java/org/basex/examples/create/CSVExample.java index 6d1b5aa57..6d8b73caa 100644 --- a/src/main/java/org/basex/examples/create/CSVExample.java +++ b/src/main/java/org/basex/examples/create/CSVExample.java @@ -1,52 +1,52 @@ package org.base...
true
true
public static void main(final String[] args) throws BaseXException { System.out.println("=== CSVExample ==="); // ------------------------------------------------------------------------ // Create database context final Context ctx = new Context(); // Input file and name of database final S...
public static void main(final String[] args) throws BaseXException { System.out.println("=== CSVExample ==="); // ------------------------------------------------------------------------ // Create database context final Context ctx = new Context(); // Input file and name of database final S...
diff --git a/src/com/dmdirc/ui/swing/dialogs/actioneditor/ActionEditorDialog.java b/src/com/dmdirc/ui/swing/dialogs/actioneditor/ActionEditorDialog.java index 32d71499f..800cf3d3c 100644 --- a/src/com/dmdirc/ui/swing/dialogs/actioneditor/ActionEditorDialog.java +++ b/src/com/dmdirc/ui/swing/dialogs/actioneditor/ActionE...
true
true
private void initComponents() { orderButtons(new JButton(), new JButton()); name = new ActionNamePanel(""); triggers = new ActionTriggersPanel(); response = new ActionResponsePanel(); conditions = new ActionConditionsPanel(); substitutions = new ActionSubstitutionsPan...
private void initComponents() { orderButtons(new JButton(), new JButton()); name = new ActionNamePanel(""); triggers = new ActionTriggersPanel(); response = new ActionResponsePanel(); conditions = new ActionConditionsPanel(); substitutions = new ActionSubstitutionsPan...
diff --git a/src/test/java/edu/msergey/jalg/graphs/kosarajus_two_pass/DataHelper.java b/src/test/java/edu/msergey/jalg/graphs/kosarajus_two_pass/DataHelper.java index 559022d..fb4ba82 100644 --- a/src/test/java/edu/msergey/jalg/graphs/kosarajus_two_pass/DataHelper.java +++ b/src/test/java/edu/msergey/jalg/graphs/kosara...
false
true
protected static List<List<Integer>> loadData(String filename) { ResourceDataReader resourceReader = new ResourceDataReader( String.format("/graphs/kosarajus_two_pass/%s", filename)); List<List<Integer>> verticesToConnections = new ArrayList<List<Integer>>(); String line; ...
protected static List<List<Integer>> loadData(String filename) { try (ResourceDataReader resourceReader = new ResourceDataReader( String.format("/graphs/kosarajus_two_pass/%s", filename))) { List<List<Integer>> verticesToConnections = new ArrayList<List<Integer>>(); S...
diff --git a/src/main/java/com/ssm/llp/web/config/WebSecurityConfig.java b/src/main/java/com/ssm/llp/web/config/WebSecurityConfig.java index 7fdbf0d..d7f213a 100644 --- a/src/main/java/com/ssm/llp/web/config/WebSecurityConfig.java +++ b/src/main/java/com/ssm/llp/web/config/WebSecurityConfig.java @@ -1,61 +1,62 @@ pack...
true
true
protected void configure(HttpSecurity http) throws Exception { http .csrf().disable() .authorizeRequests() .antMatchers("/*").permitAll() .antMatchers("/gate/**").permitAll() .antMatchers("/validate/**").permitAll() ...
protected void configure(HttpSecurity http) throws Exception { http .csrf().disable() .authorizeRequests() .antMatchers("/*").permitAll() .antMatchers("/gate/**").permitAll() .antMatchers("/validate/**").permitAll() ...
diff --git a/java/FixCIGAR/FixCIGAR.java b/java/FixCIGAR/FixCIGAR.java index 9b9e633..e4ac831 100644 --- a/java/FixCIGAR/FixCIGAR.java +++ b/java/FixCIGAR/FixCIGAR.java @@ -1,163 +1,164 @@ /* * The MIT License * * Copyright (c) 2010 The Broad Institute * * Permission is hereby granted, free of charge, to any...
true
true
protected int doWork() { IoUtil.assertFileIsReadable(INPUT); long numReadsProcessed = 0; if(OUTPUT != null) OUTPUT = OUTPUT.getAbsoluteFile(); final boolean differentOutputFile = OUTPUT != null; if(differentOutputFile) IoUtil.assertFileIsWritable(OUTPUT); else { create...
protected int doWork() { IoUtil.assertFileIsReadable(INPUT); long numReadsProcessed = 0; if(OUTPUT != null) OUTPUT = OUTPUT.getAbsoluteFile(); final boolean differentOutputFile = OUTPUT != null; if(differentOutputFile) IoUtil.assertFileIsWritable(OUTPUT); else { create...
diff --git a/bonecp/src/main/java/com/jolbox/bonecp/ConnectionTesterThread.java b/bonecp/src/main/java/com/jolbox/bonecp/ConnectionTesterThread.java index 83a5b8d..9990b3d 100755 --- a/bonecp/src/main/java/com/jolbox/bonecp/ConnectionTesterThread.java +++ b/bonecp/src/main/java/com/jolbox/bonecp/ConnectionTesterThread....
true
true
public void run() { ConnectionHandle connection = null; long tmp; try { long nextCheckInMs = this.idleConnectionTestPeriodInMs; if (this.idleMaxAgeInMs > 0){ if (this.idleConnectionTestPeriodInMs == 0){ nextCheckInMs = this.idleMaxAgeInMs; } else { nextCheckInMs = Math.min(nextCheck...
public void run() { ConnectionHandle connection = null; long tmp; try { long nextCheckInMs = this.idleConnectionTestPeriodInMs; if (this.idleMaxAgeInMs > 0){ if (this.idleConnectionTestPeriodInMs == 0){ nextCheckInMs = this.idleMaxAgeInMs; } else { nextCheckInMs = Math.min(nextCheck...
diff --git a/src/de/uni_koblenz/jgralab/algolib/algorithms/weighted_shortest_paths/FloydAlgorithm.java b/src/de/uni_koblenz/jgralab/algolib/algorithms/weighted_shortest_paths/FloydAlgorithm.java index a3f4b6714..5179cbd7c 100644 --- a/src/de/uni_koblenz/jgralab/algolib/algorithms/weighted_shortest_paths/FloydAlgorithm....
false
true
public FloydAlgorithm execute() { startRunning(); // clear and initialize arrays int length = vertexCount + 1; for (int vId = 1; vId < length; vId++) { for (int wId = 1; wId < length; wId++) { weightedDistance[vId][wId] = Double.POSITIVE_INFINITY; successor[vId][wId] = null; } weightedDistanc...
public FloydAlgorithm execute() { startRunning(); // clear and initialize arrays int length = vertexCount + 1; for (int vId = 1; vId < length; vId++) { for (int wId = 1; wId < length; wId++) { weightedDistance[vId][wId] = Double.POSITIVE_INFINITY; successor[vId][wId] = null; } weightedDistanc...
diff --git a/spring-integration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java b/spring-integration-mail/src/test/java/org/springframework/integration/mail/ImapMailReceiverTests.java index 774a9bc997..962518e4b0 100644 --- a/spring-integration-mail/src/test/java/org/springframework/i...
true
true
public void testIdleChannelAdapterException() throws Exception{ ApplicationContext context = new ClassPathXmlApplicationContext("ImapIdleChannelAdapterParserTests-context.xml", ImapIdleChannelAdapterParserTests.class); ImapIdleChannelAdapter adapter = context.getBean("simpleAdapter", ImapIdleChannelAdapter.cla...
public void testIdleChannelAdapterException() throws Exception{ ApplicationContext context = new ClassPathXmlApplicationContext("ImapIdleChannelAdapterParserTests-context.xml", ImapIdleChannelAdapterParserTests.class); ImapIdleChannelAdapter adapter = context.getBean("simpleAdapter", ImapIdleChannelAdapter.cla...
diff --git a/hqapi1-tools/src/main/java/tools/ResourceCommand.java b/hqapi1-tools/src/main/java/tools/ResourceCommand.java index e8dea99..368dd0b 100644 --- a/hqapi1-tools/src/main/java/tools/ResourceCommand.java +++ b/hqapi1-tools/src/main/java/tools/ResourceCommand.java @@ -1,545 +1,547 @@ /* * * NOTE: This cop...
true
true
private void list(String[] args) throws Exception { String[] ONE_REQUIRED = { OPT_PROTOTYPE, OPT_PLATFORM, OPT_ID, OPT_AGENT_ID }; OptionParser p = getOptionParser(); p.accepts(OPT_PROTOTYPE, "If specified, return only resources with the " + "specified resource prototype"...
private void list(String[] args) throws Exception { String[] ONE_REQUIRED = { OPT_PROTOTYPE, OPT_PLATFORM, OPT_ID, OPT_AGENT_ID }; OptionParser p = getOptionParser(); p.accepts(OPT_PROTOTYPE, "If specified, return only resources with the " + "specified resource prototype"...
diff --git a/src/main/java/lcmc/gui/resources/AllHostsInfo.java b/src/main/java/lcmc/gui/resources/AllHostsInfo.java index 4882154a..aa9358e4 100644 --- a/src/main/java/lcmc/gui/resources/AllHostsInfo.java +++ b/src/main/java/lcmc/gui/resources/AllHostsInfo.java @@ -1,574 +1,574 @@ /* * This file is part of DRBD Man...
false
true
@Override public JComponent getInfoPanel() { if (infoPanel != null) { return infoPanel; } infoPanel = new JPanel(); infoPanel.setLayout(new BoxLayout(infoPanel, BoxLayout.Y_AXIS)); infoPanel.setBackground(Browser.PANEL_BACKGROUND); c.gridx = 0; c....
@Override public JComponent getInfoPanel() { if (infoPanel != null) { return infoPanel; } infoPanel = new JPanel(); infoPanel.setLayout(new BoxLayout(infoPanel, BoxLayout.Y_AXIS)); infoPanel.setBackground(Browser.PANEL_BACKGROUND); c.gridx = 0; c....
diff --git a/cq-component-maven-plugin/src/main/java/com/citytechinc/cq/component/dialog/maker/impl/MultifieldWidgetMaker.java b/cq-component-maven-plugin/src/main/java/com/citytechinc/cq/component/dialog/maker/impl/MultifieldWidgetMaker.java index c89e1aa..7c5ed41 100644 --- a/cq-component-maven-plugin/src/main/java/c...
false
true
public DialogElement make(String xtype, Field widgetField, CtField ctWidgetField, Class<?> containingClass, CtClass ctContainingClass, Map<Class<?>, WidgetConfigHolder> xtypeMap, Map<String, WidgetMaker> xTypeToWidgetMakerMap, ClassLoader classLoader, ClassPool classPool, boolean useDotSlashInName) throws ClassN...
public DialogElement make(String xtype, Field widgetField, CtField ctWidgetField, Class<?> containingClass, CtClass ctContainingClass, Map<Class<?>, WidgetConfigHolder> xtypeMap, Map<String, WidgetMaker> xTypeToWidgetMakerMap, ClassLoader classLoader, ClassPool classPool, boolean useDotSlashInName) throws ClassN...
diff --git a/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java b/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java index 4fb786f..7fd1970 100644 --- a/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java +++ b/src/main/java/org/agmip/translators/dssat/DssatXFileOutput.java @@ -1,8...
true
true
public void writeFile(String arg0, AdvancedHashMap result) { // Initial variables JSONAdapter adapter = new JSONAdapter(); // JSON Adapter AdvancedHashMap<String, Object> data; // Data holder for section data BufferedWriter bwX; // output object ...
public void writeFile(String arg0, AdvancedHashMap result) { // Initial variables JSONAdapter adapter = new JSONAdapter(); // JSON Adapter AdvancedHashMap<String, Object> data; // Data holder for section data BufferedWriter bwX; // output object ...
diff --git a/baixing_quanleimu/src/com/quanleimu/widget/CustomizedImageView.java b/baixing_quanleimu/src/com/quanleimu/widget/CustomizedImageView.java index 523a84fe..ee49fdc7 100644 --- a/baixing_quanleimu/src/com/quanleimu/widget/CustomizedImageView.java +++ b/baixing_quanleimu/src/com/quanleimu/widget/CustomizedImag...
true
true
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); if(MeasureSpec.UNSPECIFIED == MeasureSpec.getMode(heightMeasureSpec) && this.getScaleType() == ImageView.ScaleType.CENTER_INSIDE) { if(0 != bitmapWidth){ int width = MeasureSp...
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { super.onMeasure(widthMeasureSpec, heightMeasureSpec); /*if(MeasureSpec.UNSPECIFIED == MeasureSpec.getMode(heightMeasureSpec) && this.getScaleType() == ImageView.ScaleType.CENTER_INSIDE)*/ { if(0 != bitmapWidth){ int width = Measu...
diff --git a/src/main/java/puf/m2/hms/model/PhysicianAssignment.java b/src/main/java/puf/m2/hms/model/PhysicianAssignment.java index 8eabe19..44b10e3 100644 --- a/src/main/java/puf/m2/hms/model/PhysicianAssignment.java +++ b/src/main/java/puf/m2/hms/model/PhysicianAssignment.java @@ -1,116 +1,117 @@ package puf.m2.hms...
true
true
public static List<PhysicianAssignment> getPhysicianAssignments() throws PhysicianAssignmentException { List<PhysicianAssignment> paList = new ArrayList<PhysicianAssignment>(); final String query = "select * from PhysicianAssignment"; try { DB.createConnection(); ResultSet rs = DB.executeQuery(query); ...
public static List<PhysicianAssignment> getPhysicianAssignments() throws PhysicianAssignmentException { List<PhysicianAssignment> paList = new ArrayList<PhysicianAssignment>(); final String query = "select * from PhysicianAssignment"; try { DB.createConnection(); ResultSet rs = DB.executeQuery(query); ...
diff --git a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/HealthView.java b/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/HealthView.java index 23bcbe932..4dc890b2b 100644 --- a/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/HealthView.java +++ b/activemq-broker/src/main/jav...
true
true
public List<HealthStatus> healthList() throws Exception { List<HealthStatus> answer = new ArrayList<HealthStatus>(); Map<ObjectName, DestinationView> queueViews = broker.getQueueViews(); for (Map.Entry<ObjectName, DestinationView> entry : queueViews.entrySet()) { DestinationView ...
public List<HealthStatus> healthList() throws Exception { List<HealthStatus> answer = new ArrayList<HealthStatus>(); Map<ObjectName, DestinationView> queueViews = broker.getQueueViews(); for (Map.Entry<ObjectName, DestinationView> entry : queueViews.entrySet()) { DestinationView ...
diff --git a/xone-action/src/main/java/com/xone/action/app/product/ProductAction.java b/xone-action/src/main/java/com/xone/action/app/product/ProductAction.java index de50511..b937547 100644 --- a/xone-action/src/main/java/com/xone/action/app/product/ProductAction.java +++ b/xone-action/src/main/java/com/xone/action/ap...
true
true
public String listItems() { Map<String, String> map = getRequestMap(); int length = MyModelUtils.parseInt(map.get("itemcount"), 0); Map<String, Object> params = new HashMap<String, Object>(); if (length >= AppConstants.LIST_ITEM_LENGTH) { getMapValue().put("ITEM_TOO_LONG", "YES"); } else { if ("down".e...
public String listItems() { Map<String, String> map = getRequestMap(); int length = MyModelUtils.parseInt(map.get("itemcount"), 0); Map<String, Object> params = new HashMap<String, Object>(); if (length >= AppConstants.LIST_ITEM_LENGTH) { getMapValue().put("ITEM_TOO_LONG", "YES"); } else { if ("down".e...
diff --git a/src/com/sysdream/gadget/GadgetService.java b/src/com/sysdream/gadget/GadgetService.java index 3866d36..d8cb568 100644 --- a/src/com/sysdream/gadget/GadgetService.java +++ b/src/com/sysdream/gadget/GadgetService.java @@ -1,387 +1,387 @@ package com.sysdream.gadget; import java.io.BufferedReader; import...
true
true
public boolean processRequest(Request req) { Response resp = new Response(null, false); if (req == null) resp = new Response("Bad request", false); else { if (req.method.equals("listApps")) { final ArrayList<String> pkgs = new ArrayList<String>(); final Intent i = new Intent("com...
public boolean processRequest(Request req) { Response resp = new Response(null, false); if (req == null) resp = new Response("Bad request", false); else { if (req.method.equals("listApps")) { final ArrayList<String> pkgs = new ArrayList<String>(); final Intent i = new Intent("com...
diff --git a/src/edu/jhu/thrax/tools/ParaphraseCoverage.java b/src/edu/jhu/thrax/tools/ParaphraseCoverage.java index d6ce502..a1c2878 100644 --- a/src/edu/jhu/thrax/tools/ParaphraseCoverage.java +++ b/src/edu/jhu/thrax/tools/ParaphraseCoverage.java @@ -1,273 +1,276 @@ package edu.jhu.thrax.tools; import java.io.Buf...
true
true
public static void main(String[] args) { String grammar_file = null; String reference_file = null; String weight_file = null; String output_file = null; String score_file = null; String relevant_file = null; String judgment_prefix = null; String sampling_points = null; for (int...
public static void main(String[] args) { String grammar_file = null; String reference_file = null; String weight_file = null; String output_file = null; String score_file = null; String relevant_file = null; String judgment_prefix = null; String sampling_points = null; for (int...
diff --git a/Environment.java b/Environment.java index 396d62c..6aa63ba 100644 --- a/Environment.java +++ b/Environment.java @@ -1,736 +1,736 @@ package cpsc433; import java.util.ArrayList; import java.util.TreeSet; import cpsc433.Predicate.ParamType; public class Environment extends PredicateReader implemen...
false
true
public void a_works_with(String p, TreeSet<Pair<ParamType, Object>> p2s) { boolean exists = false; //Loop to find the person in the list of people supplied in the input file. for (int i = 0; i<people.size(); i++) { //Check the persons name. if (people.get(i).getName().equals(p)) { //Set the proj...
public void a_works_with(String p, TreeSet<Pair<ParamType, Object>> p2s) { boolean exists = false; //Loop to find the person in the list of people supplied in the input file. for (int i = 0; i<people.size(); i++) { //Check the persons name. if (people.get(i).getName().equals(p)) { //Set the proj...
diff --git a/src/org/pentaho/metadata/query/impl/sql/SqlOpenFormula.java b/src/org/pentaho/metadata/query/impl/sql/SqlOpenFormula.java index e9c5abcd..7a7b86c9 100644 --- a/src/org/pentaho/metadata/query/impl/sql/SqlOpenFormula.java +++ b/src/org/pentaho/metadata/query/impl/sql/SqlOpenFormula.java @@ -1,828 +1,828 @@ ...
true
true
protected void addField(String fieldName) throws PentahoMetadataException { if (fieldName == null) { throw new PentahoMetadataException(Messages.getErrorString("SqlOpenFormula.ERROR_0008_FIELDNAME_NULL", formulaString)); //$NON-NLS-1$ } // we need to validate that "fieldName" actually maps...
protected void addField(String fieldName) throws PentahoMetadataException { if (fieldName == null) { throw new PentahoMetadataException(Messages.getErrorString("SqlOpenFormula.ERROR_0008_FIELDNAME_NULL", formulaString)); //$NON-NLS-1$ } // we need to validate that "fieldName" actually maps...
diff --git a/Project3/src/Driver.java b/Project3/src/Driver.java index 0b52592..08b158a 100644 --- a/Project3/src/Driver.java +++ b/Project3/src/Driver.java @@ -1,170 +1,176 @@ import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.util.ArrayList; import java.ut...
true
true
public void main (String[] args) throws IOException{ //Scanner for user input data Scanner in = new Scanner(System.in); //For loop for repeating search for(int i=0; i==0;){ //Ask for and read in the file String filename = JOptionPane.showInputDialog ( "Please enter the name of the file" ); Pa...
public void main (String[] args) throws IOException{ //Scanner for user input data Scanner in = new Scanner(System.in); //For loop for repeating search for(int i=0; i==0;){ //Ask for and read in the file String filename = JOptionPane.showInputDialog ( "Please enter the name of the file" ); Pa...
diff --git a/src/com/aokp/romcontrol/fragments/Navbar.java b/src/com/aokp/romcontrol/fragments/Navbar.java index 255efee..2a0921f 100644 --- a/src/com/aokp/romcontrol/fragments/Navbar.java +++ b/src/com/aokp/romcontrol/fragments/Navbar.java @@ -1,1024 +1,1024 @@ package com.aokp.romcontrol.fragments; import java....
true
true
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(R.string.title_navbar); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.prefs_navbar); PreferenceScreen prefs = getPreferenceScreen(); mPick...
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle(R.string.title_navbar); // Load the preferences from an XML resource addPreferencesFromResource(R.xml.prefs_navbar); PreferenceScreen prefs = getPreferenceScreen(); mPick...
diff --git a/ngrinder-controller/src/test/java/org/ngrinder/perftest/controller/PerfTestControllerTest.java b/ngrinder-controller/src/test/java/org/ngrinder/perftest/controller/PerfTestControllerTest.java index 35e9edb0..7055e9b4 100644 --- a/ngrinder-controller/src/test/java/org/ngrinder/perftest/controller/PerfTestCo...
false
true
public void testSavePerfTestExist() { String testName = "test1"; String newName = "new test1"; PerfTest test = createPerfTest(testName, Status.READY, new Date()); test.setTestName(newName); PerfTest newTest = new PerfTest(); newTest.setId(test.getId()); newTest.setTestName(newName); newTest.setStatus(...
public void testSavePerfTestExist() { String testName = "test1"; String newName = "new test1"; PerfTest test = createPerfTest(testName, Status.READY, new Date()); test.setTestName(newName); PerfTest newTest = new PerfTest(); newTest.setId(test.getId()); newTest.setTestName(newName); newTest.setStatus(...
diff --git a/server/core/src/main/java/org/apache/vysper/xmpp/modules/roster/persistence/AbstractRosterManager.java b/server/core/src/main/java/org/apache/vysper/xmpp/modules/roster/persistence/AbstractRosterManager.java index 4bdf459f..8f7c2a2d 100644 --- a/server/core/src/main/java/org/apache/vysper/xmpp/modules/rost...
true
true
public void addContact(Entity jid, RosterItem rosterItem) throws RosterException { if (jid == null) throw new RosterException("jid not provided"); final Roster roster = retrieve(jid); if (roster instanceof MutableRoster) throw new RosterException("roster is not mutable"); ...
public void addContact(Entity jid, RosterItem rosterItem) throws RosterException { if (jid == null) throw new RosterException("jid not provided"); final Roster roster = retrieve(jid); if (!(roster instanceof MutableRoster)) throw new RosterException("roster is not mutable"); ...
diff --git a/src/org/gridlab/gridsphere/provider/portletui/beans/TableCellBean.java b/src/org/gridlab/gridsphere/provider/portletui/beans/TableCellBean.java index f6d8a287d..a02548c2b 100644 --- a/src/org/gridlab/gridsphere/provider/portletui/beans/TableCellBean.java +++ b/src/org/gridlab/gridsphere/provider/portletui/...
true
true
public String toStartString() { StringBuffer sb = new StringBuffer(); sb.append("<td "); sb.append(getFormattedCss()); if (width != null) sb.append(" width=\"" + width + "\""); if (height != null) sb.append(" height=\"" + height + "\""); if (align != null) sb.append("...
public String toStartString() { StringBuffer sb = new StringBuffer(); sb.append("<td "); sb.append(getFormattedCss()); if (width != null) sb.append(" width=\"" + width + "\""); if (height != null) sb.append(" height=\"" + height + "\""); if (align != null) sb.append("...
diff --git a/src/java/fedora/soapclient/FedoraAccessSoapServlet.java b/src/java/fedora/soapclient/FedoraAccessSoapServlet.java index eadea6957..5d3e3e647 100755 --- a/src/java/fedora/soapclient/FedoraAccessSoapServlet.java +++ b/src/java/fedora/soapclient/FedoraAccessSoapServlet.java @@ -1,2211 +1,2210 @@ package fedo...
false
true
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Calendar asOfDateTime = null; Date versDateTime = null; String action = null; String bDefPID = null; String methodName = null; String PID = null; Property[] userParms ...
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Calendar asOfDateTime = null; Date versDateTime = null; String action = null; String bDefPID = null; String methodName = null; String PID = null; Property[] userParms ...
diff --git a/scrambles/src_tnoodle_resources/scrambler/ClockScrambler.java b/scrambles/src_tnoodle_resources/scrambler/ClockScrambler.java index fda74f08..9aaff604 100644 --- a/scrambles/src_tnoodle_resources/scrambler/ClockScrambler.java +++ b/scrambles/src_tnoodle_resources/scrambler/ClockScrambler.java @@ -1,355 +1,...
false
true
public HashMap<String, GeneralPath> getDefaultFaceBoundaries() { int i, j; // Background Area backgroundFront = new Area(); Area backgroundBack = new Area(); backgroundFront.add(new Area(new Ellipse2D.Double(gap,gap, 2*radius, 2*radius))); backgroundBack.add(new Area(new Ellipse2D.Double(2*radius+3*gap,2*...
public HashMap<String, GeneralPath> getDefaultFaceBoundaries() { int i, j; // Background Area backgroundFront = new Area(); Area backgroundBack = new Area(); backgroundFront.add(new Area(new Ellipse2D.Double(gap,gap, 2*radius, 2*radius))); backgroundBack.add(new Area(new Ellipse2D.Double(2*radius+3*gap,ga...
diff --git a/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java b/plugins/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/HTML2Content.java index 9adfd051d..d828e6f04 100644 --- a/plugins/org.eclipse.birt.report.engine/src/org/ec...
true
true
private void handleElement(Element ele, boolean needEscape, HashMap cssStyles, IContent content, int index) { IStyle cssStyle = ( IStyle ) cssStyles.get( ele ); if ( cssStyle != null ) { if ( "none".equals( cssStyle.getDisplay() ) ) //$NON-NLS-1$ { //Check if the display mode is none. return; }...
private void handleElement(Element ele, boolean needEscape, HashMap cssStyles, IContent content, int index) { IStyle cssStyle = ( IStyle ) cssStyles.get( ele ); if ( cssStyle != null ) { if ( "none".equals( cssStyle.getDisplay() ) ) //$NON-NLS-1$ { //Check if the display mode is none. return; }...
diff --git a/src/de/ueller/midlet/gps/Trace.java b/src/de/ueller/midlet/gps/Trace.java index f20d4822..fa2cbb98 100644 --- a/src/de/ueller/midlet/gps/Trace.java +++ b/src/de/ueller/midlet/gps/Trace.java @@ -1,2622 +1,2624 @@ package de.ueller.midlet.gps; /* * GpsMid - Copyright (c) 2007 Harald Mueller james22 at ...
false
true
public void commandAction(Command c, Displayable d) { updateLastUserActionTime(); try { if((keyboardLocked) && (d != null)) { // show alert in keypressed() that keyboard is locked keyPressed(0); return; } if ((c == CMDS[PAN_LEFT25_CMD]) || (c == CMDS[PAN_RIGHT25_CMD]) || (c == CMDS[...
public void commandAction(Command c, Displayable d) { updateLastUserActionTime(); try { if((keyboardLocked) && (d != null)) { // show alert in keypressed() that keyboard is locked keyPressed(0); return; } if ((c == CMDS[PAN_LEFT25_CMD]) || (c == CMDS[PAN_RIGHT25_CMD]) || (c == CMDS[...
diff --git a/src/main/java/com/github/ucchyocean/mdm/PlayerDeathMsgJp.java b/src/main/java/com/github/ucchyocean/mdm/PlayerDeathMsgJp.java index a295be3..967e5a4 100644 --- a/src/main/java/com/github/ucchyocean/mdm/PlayerDeathMsgJp.java +++ b/src/main/java/com/github/ucchyocean/mdm/PlayerDeathMsgJp.java @@ -1,213 +1,21...
true
true
public void onPlayerDeath(PlayerDeathEvent event){ // プレイヤーとプレイヤーが最後に受けたダメージイベントを取得 Player deader = event.getEntity(); final EntityDamageEvent cause = event.getEntity().getLastDamageCause(); // 死亡メッセージ String deathMessage = event.getDeathMessage(); // ダメージイベントを受けずに...
public void onPlayerDeath(PlayerDeathEvent event){ // プレイヤーとプレイヤーが最後に受けたダメージイベントを取得 Player deader = event.getEntity(); final EntityDamageEvent cause = event.getEntity().getLastDamageCause(); // 死亡メッセージ String deathMessage = event.getDeathMessage(); // ダメージイベントを受けずに...
diff --git a/common/common-server/src/main/java/org/bonitasoft/console/common/server/themes/ThemeResourceServlet.java b/common/common-server/src/main/java/org/bonitasoft/console/common/server/themes/ThemeResourceServlet.java index c99bd6bc6..d87295ec1 100644 --- a/common/common-server/src/main/java/org/bonitasoft/conso...
false
true
public static void getThemePackageFile(final HttpServletRequest request, final HttpServletResponse response, String themeName, String fileName) throws ServletException, UnsupportedEncodingException { byte[] content = null; String contentType = null; File themesFolder = null; ...
public static void getThemePackageFile(final HttpServletRequest request, final HttpServletResponse response, String themeName, String fileName) throws ServletException, UnsupportedEncodingException { byte[] content = null; String contentType = null; File themesFolder = null; ...
diff --git a/src/org/eclipse/iee/editor/core/container/ContainerManager.java b/src/org/eclipse/iee/editor/core/container/ContainerManager.java index d851c18..e29a332 100644 --- a/src/org/eclipse/iee/editor/core/container/ContainerManager.java +++ b/src/org/eclipse/iee/editor/core/container/ContainerManager.java @@ -1,6...
true
true
protected void initDocumentListener() { fStyledText.addVerifyListener(new VerifyListener() { @Override public void verifyText(VerifyEvent e) { /* Disallow modification within Container's text region */ if (getContainerHavingOffset(e.start) != null || getContainerHavingOffset(e.end) != null) { ...
protected void initDocumentListener() { fStyledText.addVerifyListener(new VerifyListener() { @Override public void verifyText(VerifyEvent e) { /* Disallow modification within Container's text region */ if (getContainerHavingOffset(e.start) != null || getContainerHavingOffset(e.end) != null) { ...
diff --git a/src/balle/strategy/StrategyFactory.java b/src/balle/strategy/StrategyFactory.java index a194ee6..a9dd999 100644 --- a/src/balle/strategy/StrategyFactory.java +++ b/src/balle/strategy/StrategyFactory.java @@ -1,27 +1,27 @@ package balle.strategy; import balle.controller.Controller; import balle.world.A...
false
true
public static AbstractStrategy createClass(String designator, Controller controller, AbstractWorld world) throws UnknownDesignatorException { if (designator == "DummyStrategy") { return new DummyStrategy(controller, world); } if (designator == "GoToBall")...
public static AbstractStrategy createClass(String designator, Controller controller, AbstractWorld world) throws UnknownDesignatorException { if (designator.equals("DummyStrategy")) { return new DummyStrategy(controller, world); } if (designator.equals("G...
diff --git a/Flags/src/alshain01/Flags/Flags.java b/Flags/src/alshain01/Flags/Flags.java index ce70942..ae8863c 100644 --- a/Flags/src/alshain01/Flags/Flags.java +++ b/Flags/src/alshain01/Flags/Flags.java @@ -1,227 +1,227 @@ package alshain01.Flags; import java.util.List; import net.milkbowl.vault.economy.Econom...
true
true
public void onEnable(){ instance = this; // Create the configuration file if it doesn't exist this.saveDefaultConfig(); if(this.getConfig().getBoolean("Flags.Update.Check")) { String key = this.getConfig().getString("Flags.Update.ServerModsAPIKey"); if(this.getConfig().getBoolean("Flags.Update.Down...
public void onEnable(){ instance = this; // Create the configuration file if it doesn't exist this.saveDefaultConfig(); if(this.getConfig().getBoolean("Flags.Update.Check")) { String key = this.getConfig().getString("Flags.Update.ServerModsAPIKey"); if(this.getConfig().getBoolean("Flags.Update.Down...
diff --git a/src/com/tactfactory/harmony/template/ActivityGenerator.java b/src/com/tactfactory/harmony/template/ActivityGenerator.java index 7a1e3d18..59a44bdd 100644 --- a/src/com/tactfactory/harmony/template/ActivityGenerator.java +++ b/src/com/tactfactory/harmony/template/ActivityGenerator.java @@ -1,612 +1,614 @@ ...
true
true
public final void generateAll() { ConsoleUtils.display(">> Generate CRUD view..."); for (final EntityMetadata cm : this.getAppMetas().getEntities().values()) { if (!cm.isInternal() && !cm.getFields().isEmpty()) { cm.makeString("label"); this.getDatamodel().put( TagConstant.CURRENT_ENTITY, cm....
public final void generateAll() { ConsoleUtils.display(">> Generate CRUD view..."); for (final EntityMetadata cm : this.getAppMetas().getEntities().values()) { if (!cm.isInternal() && !cm.getFields().isEmpty()) { cm.makeString("label"); this.getDatamodel().put( TagConstant.CURRENT_ENTITY, cm....
diff --git a/src/main/java/eugene/zhukov/SCIMFilter.java b/src/main/java/eugene/zhukov/SCIMFilter.java index 9fbb2e6..3eb9e96 100644 --- a/src/main/java/eugene/zhukov/SCIMFilter.java +++ b/src/main/java/eugene/zhukov/SCIMFilter.java @@ -1,109 +1,110 @@ package eugene.zhukov; import static eugene.zhukov.EndpointCons...
true
true
private static boolean isAccessGranted(HttpServletRequest request, long tokenValidityTime) { if (HttpMethod.GET.equalsIgnoreCase(request.getMethod()) && (API_VERSION.concat(ENDPOINT_SERVICE_PROVIDER_CONFIGS).equals(request.getPathInfo()) || API_VERSION.concat(ENDPOINT_SCHEMAS).equals(request.getPathInfo())...
private static boolean isAccessGranted(HttpServletRequest request, long tokenValidityTime) { if (HttpMethod.GET.equalsIgnoreCase(request.getMethod()) && (API_VERSION.concat(ENDPOINT_SERVICE_PROVIDER_CONFIGS).equals(request.getPathInfo()) || API_VERSION.concat(ENDPOINT_SCHEMAS).equals(request.getPathInfo())...
diff --git a/project-set/commons/utilities/src/test/java/com/rackspace/papi/commons/util/regex/KeyedRegexExtractorTest.java b/project-set/commons/utilities/src/test/java/com/rackspace/papi/commons/util/regex/KeyedRegexExtractorTest.java index 17e48c2363..01aa6d159a 100644 --- a/project-set/commons/utilities/src/test/ja...
true
true
public void shouldCaptureUserWithNegativeId(){ final KeyedRegexExtractor<Object> extractor = new KeyedRegexExtractor<Object>(); final Object expectedKey = new Object(); final String pattern = ".*/servers/([-|\\w]+)/.*"; extractor.addPattern(pattern, expectedKey); ...
public void shouldCaptureUserWithNegativeId(){ final KeyedRegexExtractor<Object> extractor = new KeyedRegexExtractor<Object>(); final Object expectedKey = new Object(); final String pattern = ".*/servers/([-|\\w]+)/?.*"; extractor.addPattern(pattern, expectedKey); ...
diff --git a/rest/src/main/java/org/dbpedia/spotlight/web/rest/resources/Disambiguate.java b/rest/src/main/java/org/dbpedia/spotlight/web/rest/resources/Disambiguate.java index 02f8855a..db2a99bd 100644 --- a/rest/src/main/java/org/dbpedia/spotlight/web/rest/resources/Disambiguate.java +++ b/rest/src/main/java/org/dbpe...
true
true
public Response getNIF(@DefaultValue(SpotlightConfiguration.DEFAULT_TEXT) @QueryParam("text") String text, @DefaultValue(SpotlightConfiguration.DEFAULT_URL) @QueryParam("url") String inUrl, @DefaultValue(SpotlightConfiguration.DEFAULT_CONFIDENCE) @QueryParam("confidence") Double confidence, ...
public Response getNIF(@DefaultValue(SpotlightConfiguration.DEFAULT_TEXT) @QueryParam("text") String text, @DefaultValue(SpotlightConfiguration.DEFAULT_URL) @QueryParam("url") String inUrl, @DefaultValue(SpotlightConfiguration.DEFAULT_CONFIDENCE) @QueryParam("confidence") Double confidence, ...
diff --git a/src/main/java/org/jruby/rack/input/RackRewindableInput.java b/src/main/java/org/jruby/rack/input/RackRewindableInput.java index 58178eb..c706095 100644 --- a/src/main/java/org/jruby/rack/input/RackRewindableInput.java +++ b/src/main/java/org/jruby/rack/input/RackRewindableInput.java @@ -1,249 +1,250 @@ /*...
true
true
public IRubyObject read(ThreadContext context, IRubyObject[] args) { long count = 0; if (args.length > 0) { count = args[0].convertToInteger("to_i").getLongValue(); } RubyString string = null; if (args.length == 2) { str...
public IRubyObject read(ThreadContext context, IRubyObject[] args) { long count = 0; if (args.length > 0) { count = args[0].convertToInteger("to_i").getLongValue(); } RubyString string = null; if (args.length == 2) { str...
diff --git a/src/com/podrug/line/LineRenderer.java b/src/com/podrug/line/LineRenderer.java index e3e999a..f82fc30 100644 --- a/src/com/podrug/line/LineRenderer.java +++ b/src/com/podrug/line/LineRenderer.java @@ -1,609 +1,609 @@ /** * The MIT License (MIT) * * Copyright (c) 2013 Mihail Ivanchev * * Permissio...
true
true
protected static void renderLine( Graphics2D graphics, double x1, double y1, double x2, double y2, Color strokeColor, float strokeWidth, Stipple stipple ) { if ...
protected static void renderLine( Graphics2D graphics, double x1, double y1, double x2, double y2, Color strokeColor, float strokeWidth, Stipple stipple ) { if ...
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeServerInfo.java b/proxy/src/main/java/net/md_5/bungee/BungeeServerInfo.java index 7a73272a..4762ce3b 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeServerInfo.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeServerInfo.java @@ -1,70 +1,72 @@ package ne...
false
true
public void ping(final Callback<ServerPing> callback) { new Bootstrap() .channel( NioSocketChannel.class ) .group( BungeeCord.getInstance().eventLoops ) .handler( PipelineUtils.BASE ) .option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) //...
public void ping(final Callback<ServerPing> callback) { new Bootstrap() .channel( NioSocketChannel.class ) .group( BungeeCord.getInstance().eventLoops ) .handler( PipelineUtils.BASE ) .option( ChannelOption.CONNECT_TIMEOUT_MILLIS, 5000 ) //...
diff --git a/Source/JNAWindowsAuthProvider/src-test/waffle/servlet/NegotiateSecurityFilterTests.java b/Source/JNAWindowsAuthProvider/src-test/waffle/servlet/NegotiateSecurityFilterTests.java index c42d20d3..71614c51 100644 --- a/Source/JNAWindowsAuthProvider/src-test/waffle/servlet/NegotiateSecurityFilterTests.java +++...
true
true
public void testNegotiate() throws IOException, ServletException { String securityPackage = "Negotiate"; // client credentials handle IWindowsCredentialsHandle clientCredentials = null; WindowsSecurityContextImpl clientContext = null; // role will contain both Everyone and SID _filter.setRoleFormat("both")...
public void testNegotiate() throws IOException, ServletException { String securityPackage = "Negotiate"; // client credentials handle IWindowsCredentialsHandle clientCredentials = null; WindowsSecurityContextImpl clientContext = null; // role will contain both Everyone and SID _filter.setRoleFormat("both")...
diff --git a/uCars/src/com/useful/ucars/uCarsListener.java b/uCars/src/com/useful/ucars/uCarsListener.java index 564e8b4..1b7942f 100644 --- a/uCars/src/com/useful/ucars/uCarsListener.java +++ b/uCars/src/com/useful/ucars/uCarsListener.java @@ -1,442 +1,445 @@ package com.useful.ucars; import java.util.ArrayList; ...
true
true
public void onVehicleUpdate(VehicleUpdateEvent event){ Vehicle vehicle = event.getVehicle(); Location under = vehicle.getLocation(); under.setY(vehicle.getLocation().getY() - 1); Block underblock = under.getBlock(); Block underunderblock = underblock.getRelative(BlockFace.DOWN); Block normalbl...
public void onVehicleUpdate(VehicleUpdateEvent event){ Vehicle vehicle = event.getVehicle(); Location under = vehicle.getLocation(); under.setY(vehicle.getLocation().getY() - 1); Block underblock = under.getBlock(); Block underunderblock = underblock.getRelative(BlockFace.DOWN); Block normalbl...
diff --git a/panc/src/org/quattor/pan/CompilerOptions.java b/panc/src/org/quattor/pan/CompilerOptions.java index 85923e1..43f4524 100644 --- a/panc/src/org/quattor/pan/CompilerOptions.java +++ b/panc/src/org/quattor/pan/CompilerOptions.java @@ -1,432 +1,432 @@ /* Copyright (c) 2006 Charles A. Loomis, Jr, Cedric Dupr...
true
true
public CompilerOptions(List<Pattern> debugIncludePatterns, List<Pattern> debugExcludePatterns, boolean xmlWriteEnabled, boolean depWriteEnabled, int iterationLimit, int callDepthLimit, Formatter formatter, File outputDirectory, File sessionDirectory, List<File> includeDirectories, int nthread, boolean gzip...
public CompilerOptions(List<Pattern> debugIncludePatterns, List<Pattern> debugExcludePatterns, boolean xmlWriteEnabled, boolean depWriteEnabled, int iterationLimit, int callDepthLimit, Formatter formatter, File outputDirectory, File sessionDirectory, List<File> includeDirectories, int nthread, boolean gzip...
diff --git a/src/services/PlayerService.java b/src/services/PlayerService.java index dd4c90a7..8ea4dc8c 100644 --- a/src/services/PlayerService.java +++ b/src/services/PlayerService.java @@ -1,636 +1,636 @@ /******************************************************************************* * Copyright (c) 2013 <Project...
true
true
public void giveExperience(CreatureObject creature, int experience) { DatatableVisitor experienceTable; PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); //synchronized(objectMutex) { try { experienceTable = ClientFileManager.loadFile("datatables/player/player_level.iff", Datatab...
public void giveExperience(CreatureObject creature, int experience) { DatatableVisitor experienceTable; PlayerObject player = (PlayerObject) creature.getSlottedObject("ghost"); //synchronized(objectMutex) { try { experienceTable = ClientFileManager.loadFile("datatables/player/player_level.iff", Datatab...
diff --git a/src/java/org/apache/cassandra/config/CFMetaData.java b/src/java/org/apache/cassandra/config/CFMetaData.java index f8f8a6c6..c8bdd60e 100644 --- a/src/java/org/apache/cassandra/config/CFMetaData.java +++ b/src/java/org/apache/cassandra/config/CFMetaData.java @@ -1,930 +1,930 @@ /** * Licensed to the Apac...
false
true
public void apply(org.apache.cassandra.avro.CfDef cf_def) throws ConfigurationException { // validate if (!cf_def.id.equals(cfId)) throw new ConfigurationException("ids do not match."); if (!cf_def.keyspace.equals(tableName)) throw new ConfigurationException("keys...
public void apply(org.apache.cassandra.avro.CfDef cf_def) throws ConfigurationException { // validate if (!cf_def.id.equals(cfId)) throw new ConfigurationException("ids do not match."); if (!cf_def.keyspace.toString().equals(tableName)) throw new ConfigurationExce...
diff --git a/src/gui/watcher/JKnockOutWatcherWindow.java b/src/gui/watcher/JKnockOutWatcherWindow.java index d7789af..4393481 100644 --- a/src/gui/watcher/JKnockOutWatcherWindow.java +++ b/src/gui/watcher/JKnockOutWatcherWindow.java @@ -1,73 +1,73 @@ package gui.watcher; import gui.Interaction; import gui.Language...
true
true
public static String getHtml(JTreeView jTreeView) { jTreeView.repaint(); BufferedImage img = new BufferedImage(jTreeView.getPreferredSize().width, jTreeView.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB); jTreeView.print(img.getGraphics()); File file; if (System.getProperty("java.io.tmpdir").ch...
public static String getHtml(JTreeView jTreeView) { jTreeView.repaint(); BufferedImage img = new BufferedImage(jTreeView.getPreferredSize().width, jTreeView.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB); jTreeView.paintComponent(img.getGraphics()); File file; if (System.getProperty("java.io.tm...
diff --git a/drools-pipeline/drools-transformer-jaxb/src/main/java/org/drools/runtime/pipeline/impl/JaxbFromXmlTransformer.java b/drools-pipeline/drools-transformer-jaxb/src/main/java/org/drools/runtime/pipeline/impl/JaxbFromXmlTransformer.java index 30e7808ff..19bf68f3b 100644 --- a/drools-pipeline/drools-transformer-...
true
true
public void receive(Object object, PipelineContext context) { Object result = null; try { if ( object instanceof File ) { result = this.unmarshaller.unmarshal( (File) object ); } else if ( object instanceof InputStream ) { ...
public void receive(Object object, PipelineContext context) { Object result = null; try { if ( object instanceof File ) { result = this.unmarshaller.unmarshal( (File) object ); } else if ( object instanceof InputStream ) { ...
diff --git a/jxls-core/src/main/java/net/sf/jxls/util/SheetHelper.java b/jxls-core/src/main/java/net/sf/jxls/util/SheetHelper.java index 4413c09..ceb5d9f 100644 --- a/jxls-core/src/main/java/net/sf/jxls/util/SheetHelper.java +++ b/jxls-core/src/main/java/net/sf/jxls/util/SheetHelper.java @@ -1,79 +1,79 @@ package net....
true
true
private static List findFormulasInRow(Sheet sheet, org.apache.poi.ss.usermodel.Row hssfRow) { List formulas = new ArrayList(); if( hssfRow!=null ){ Row row = new Row(sheet, hssfRow); CellParser cellParser; Formula formula; Cell hssfCell; fo...
private static List findFormulasInRow(Sheet sheet, org.apache.poi.ss.usermodel.Row hssfRow) { List formulas = new ArrayList(); if( hssfRow!=null ){ Row row = new Row(sheet, hssfRow); CellParser cellParser; Formula formula; Cell hssfCell; fo...
diff --git a/test/com/workshop/commerce/AppPropsTest.java b/test/com/workshop/commerce/AppPropsTest.java index 5506a6b..a2deb48 100644 --- a/test/com/workshop/commerce/AppPropsTest.java +++ b/test/com/workshop/commerce/AppPropsTest.java @@ -1,69 +1,69 @@ package com.workshop.commerce; import static org.junit.Assert...
true
true
public void setUp() throws Exception { dbPropFile = File.createTempFile("database", ".properties"); appPropFile = File.createTempFile("application", ".properties"); BufferedWriter dbwriter = new BufferedWriter(new FileWriter(dbPropFile)); BufferedWriter appwriter = new BufferedWriter(new FileWriter(appPropFile...
public void setUp() throws Exception { dbPropFile = File.createTempFile("database", ".properties"); appPropFile = File.createTempFile("application", ".properties"); BufferedWriter dbwriter = new BufferedWriter(new FileWriter(dbPropFile)); BufferedWriter appwriter = new BufferedWriter(new FileWriter(appPropFile...
diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index 59116751..78cd58d5 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -1,2419 +1,2420 @@ /* * Sone - Core.java - Copy...
false
true
public void loadSone(Sone sone) { if (!isLocalSone(sone)) { logger.log(Level.FINE, "Tried to load non-local Sone: %s", sone); return; } /* load Sone. */ String sonePrefix = "Sone/" + sone.getId(); Long soneTime = configuration.getLongValue(sonePrefix + "/Time").getValue(null); if (soneTime == null) ...
public void loadSone(Sone sone) { if (!isLocalSone(sone)) { logger.log(Level.FINE, "Tried to load non-local Sone: %s", sone); return; } /* load Sone. */ String sonePrefix = "Sone/" + sone.getId(); Long soneTime = configuration.getLongValue(sonePrefix + "/Time").getValue(null); if (soneTime == null) ...
diff --git a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/internal/project/MavenMarkerManager.java b/org.maven.ide.eclipse/src/org/maven/ide/eclipse/internal/project/MavenMarkerManager.java index 65f59372..3d7c92d5 100644 --- a/org.maven.ide.eclipse/src/org/maven/ide/eclipse/internal/project/MavenMarkerManager.java ...
false
true
protected void checkForSchema(IResource pomFile){ try{ if(!(pomFile instanceof IFile)){ return; } IDOMModel domModel = (IDOMModel)StructuredModelManager.getModelManager().getModelForRead((IFile)pomFile); IStructuredDocument document = domModel.getStructuredDocument(); ...
protected void checkForSchema(IResource pomFile){ IDOMModel domModel = null; try{ if(!(pomFile instanceof IFile)){ return; } domModel = (IDOMModel)StructuredModelManager.getModelManager().getModelForRead((IFile)pomFile); IStructuredDocument document = domModel.getStructuredDocu...
diff --git a/test/com/facebook/buck/step/fs/RepackZipEntriesStepTest.java b/test/com/facebook/buck/step/fs/RepackZipEntriesStepTest.java index 52a28fddab..0b1b1452d3 100644 --- a/test/com/facebook/buck/step/fs/RepackZipEntriesStepTest.java +++ b/test/com/facebook/buck/step/fs/RepackZipEntriesStepTest.java @@ -1,99 +1,9...
false
true
public void testProvidesAppropriateSubCommands() { final String inApk = "source.apk"; final String outApk = "dest.apk"; final int compressionLevel = 8; final ImmutableSet<String> entries = ImmutableSet.of("resources.arsc"); File dir = new File("/tmp/mydir"); ExecutionContext context = createM...
public void testProvidesAppropriateSubCommands() { final String inApk = "source.apk"; final String outApk = "dest.apk"; final int compressionLevel = 8; final ImmutableSet<String> entries = ImmutableSet.of("resources.arsc"); File dir = new File("/tmp/mydir"); ExecutionContext context = createM...
diff --git a/src/org/openstreetmap/josm/io/OsmApiException.java b/src/org/openstreetmap/josm/io/OsmApiException.java index 77d064a6..c0edf1c8 100644 --- a/src/org/openstreetmap/josm/io/OsmApiException.java +++ b/src/org/openstreetmap/josm/io/OsmApiException.java @@ -1,73 +1,76 @@ // License: GPL. For details, see LICE...
true
true
public String getMessage() { StringBuilder sb = new StringBuilder(); sb.append("ResponseCode=") .append(responseCode); if (errorHeader != null) { sb.append(", Error Header=<") .append(errorHeader) .append(">"); } if (errorBody != nu...
public String getMessage() { StringBuilder sb = new StringBuilder(); sb.append("ResponseCode=") .append(responseCode); if (errorHeader != null) { sb.append(", Error Header=<") .append(errorHeader) .append(">"); } if (errorBody != nu...
diff --git a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/ComponentStorage.java b/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/ComponentStorage.java index de21a641..f80683ca 100644 --- a/bundles/org.eclipse.equinox.ds/src/org/eclipse/equinox/internal/ds/ComponentStorage.java ...
true
true
protected Vector parseXMLDeclaration(Bundle bundle) throws Exception { Vector components = new Vector(); Dictionary headers = bundle.getHeaders(null); String header = (String) headers.get(ComponentConstants.SERVICE_COMPONENT); if (header != null) { StringTokenizer tok = new StringTokenizer(header, ","); ...
protected Vector parseXMLDeclaration(Bundle bundle) throws Exception { Vector components = new Vector(); Dictionary headers = bundle.getHeaders(null); String header = (String) headers.get(ComponentConstants.SERVICE_COMPONENT); if (header != null) { StringTokenizer tok = new StringTokenizer(header, ","); ...
diff --git a/src/PlayState.java b/src/PlayState.java index 535c1b3..49d6395 100644 --- a/src/PlayState.java +++ b/src/PlayState.java @@ -1,118 +1,118 @@ import org.newdawn.slick.*; import org.newdawn.slick.geom.Rectangle; import org.newdawn.slick.geom.Shape; import org.newdawn.slick.geom.Vector2f; import org.newda...
true
true
public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException { camera.drawMap(0, 0); player.render(g); timerBox.draw(10 ,10); g.drawString("Time: " + time / 1000 + "s", 10, 100); // camera.render(gc, sbg, g); // if(app.getGraphics() == nul...
public void render(GameContainer gc, StateBasedGame sbg, Graphics g) throws SlickException { camera.drawMap(0, 0); player.render(g); timerBox.draw(2, 98); g.drawString("Time: " + time / 1000 + "s", 10, 100); // camera.render(gc, sbg, g); // if(app.getGraphics() == null...
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorMa...
true
true
private boolean checkResolve(BundleInfo bInfo, BundlesState state) {//throws ManipulatorException { if (bInfo == null) throw new IllegalArgumentException("bInfo is null."); if (!state.isResolved()) state.resolve(false); // if (DEBUG) // System.out.println(state.toString()); if (!state.isResolved(b...
private boolean checkResolve(BundleInfo bInfo, BundlesState state) {//throws ManipulatorException { if (bInfo == null) throw new IllegalArgumentException("bInfo is null."); if (!state.isResolved()) state.resolve(false); // if (DEBUG) // System.out.println(state.toString()); if (!state.isResolved(b...
diff --git a/application/src/main/java/org/richfaces/tests/metamer/bean/a4j/A4JMediaOutputBean.java b/application/src/main/java/org/richfaces/tests/metamer/bean/a4j/A4JMediaOutputBean.java index 9c97e93e..8971e833 100644 --- a/application/src/main/java/org/richfaces/tests/metamer/bean/a4j/A4JMediaOutputBean.java +++ b/...
true
true
public void paint(OutputStream out, Object data) throws IOException { if (data instanceof MediaData) { MediaData paintData = (MediaData) data; BufferedImage img = new BufferedImage(paintData.getWidth(), paintData.getHeight(), BufferedImage.TYPE_INT_RGB); Graphics2D graphi...
public void paint(OutputStream out, Object data) throws IOException { if (data instanceof MediaData) { MediaData paintData = (MediaData) data; BufferedImage img = new BufferedImage(paintData.getWidth(), paintData.getHeight(), BufferedImage.TYPE_INT_RGB); Graphics2D graphi...
diff --git a/modules/jetty/src/main/java/org/mortbay/jetty/servlet/ServletHandler.java b/modules/jetty/src/main/java/org/mortbay/jetty/servlet/ServletHandler.java index 270477827..c874df1b6 100644 --- a/modules/jetty/src/main/java/org/mortbay/jetty/servlet/ServletHandler.java +++ b/modules/jetty/src/main/java/org/mortb...
true
true
public boolean handle(String target, HttpServletRequest request,HttpServletResponse response, int type) throws IOException { if (!isStarted()) return false; // Get the base requests Request base_request=(request instanceof Request)?((Request)request):HttpConnection....
public boolean handle(String target, HttpServletRequest request,HttpServletResponse response, int type) throws IOException { if (!isStarted()) return false; // Get the base requests Request base_request=(request instanceof Request)?((Request)request):HttpConnection....
diff --git a/main/src/cgeo/geocaching/cgCache.java b/main/src/cgeo/geocaching/cgCache.java index 14f33afb4..79a420959 100644 --- a/main/src/cgeo/geocaching/cgCache.java +++ b/main/src/cgeo/geocaching/cgCache.java @@ -1,1431 +1,1435 @@ package cgeo.geocaching; import cgeo.geocaching.cgData.StorageLocation; import c...
false
true
public boolean gatherMissingFrom(final cgCache other) { if (other == null) { return false; } updated = System.currentTimeMillis(); if (!detailed && other.detailed) { detailed = true; detailedUpdate = other.detailedUpdate; coords = othe...
public boolean gatherMissingFrom(final cgCache other) { if (other == null) { return false; } updated = System.currentTimeMillis(); if (!detailed && other.detailed) { detailed = true; detailedUpdate = other.detailedUpdate; coords = othe...
diff --git a/src/main/org/codehaus/groovy/syntax/parser/Parser.java b/src/main/org/codehaus/groovy/syntax/parser/Parser.java index 2a7f7d231..bdc92d9c2 100644 --- a/src/main/org/codehaus/groovy/syntax/parser/Parser.java +++ b/src/main/org/codehaus/groovy/syntax/parser/Parser.java @@ -1,4069 +1,4062 @@ /* $Id$ Co...
false
true
protected CSTNode expression( ) throws ReadException, SyntaxException, ExceptionCollector { // int id = nestCount++; // System.out.println( "ENTERING EXPRESSION " + id ); ExpressionStack stack = new ExpressionStack( this ); CSTNode expression = null; boolean bareMode = ...
protected CSTNode expression( ) throws ReadException, SyntaxException, ExceptionCollector { // int id = nestCount++; // System.out.println( "ENTERING EXPRESSION " + id ); ExpressionStack stack = new ExpressionStack( this ); CSTNode expression = null; boolean bareMode = ...
diff --git a/src/main/java/com/tenfood/api/ApiHandler.java b/src/main/java/com/tenfood/api/ApiHandler.java index 9ce6fbf..55ce0f7 100644 --- a/src/main/java/com/tenfood/api/ApiHandler.java +++ b/src/main/java/com/tenfood/api/ApiHandler.java @@ -1,48 +1,48 @@ package com.tenfood.api; import java.io.IOException; imp...
false
true
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Context context = new Context(); String path = req.getRequestURI(); Map<String, String[]> queryMap = req.getParameterMap(); context.setQueryMap(queryMap); ...
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Context context = new Context(); String path = req.getRequestURI(); Map<String, String[]> queryMap = req.getParameterMap(); context.setQueryMap(queryMap); ...
diff --git a/src/org/opensolaris/opengrok/configuration/Configuration.java b/src/org/opensolaris/opengrok/configuration/Configuration.java index 1e3cd79..61d0cce 100644 --- a/src/org/opensolaris/opengrok/configuration/Configuration.java +++ b/src/org/opensolaris/opengrok/configuration/Configuration.java @@ -1,475 +1,47...
true
true
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
public Configuration() { //defaults for an opengrok instance configuration setHistoryCache(true); setHistoryCacheTime(30); setHistoryCacheInDB(false); setProjects(new ArrayList<Project>()); setRepositories(new ArrayList<RepositoryInfo>()); setUrlPrefix("/sourc...
diff --git a/sys-src/nebula.widgets.compositetable/src/org/eclipse/swt/nebula/widgets/compositetable/ResizableGridRowLayout.java b/sys-src/nebula.widgets.compositetable/src/org/eclipse/swt/nebula/widgets/compositetable/ResizableGridRowLayout.java index ff7f0ef..b3193d7 100644 --- a/sys-src/nebula.widgets.compositetable...
true
true
public void columnResized(int resizedColumnPosition, int resizedColumnWidth, int columnToTheRightOfResizedColumnWidth) { /* * FEATURE IN WINDOWS: If we resize the row immediately, Windows * won't allow the row to repaint, resulting...
public void columnResized(int resizedColumnPosition, int resizedColumnWidth, int columnToTheRightOfResizedColumnWidth) { /* * FEATURE IN WINDOWS: If we resize the row immediately, Windows * won't allow the row to repaint, resulting...
diff --git a/src/gov/nih/nci/cadsr/cdecurate/tool/SetACService.java b/src/gov/nih/nci/cadsr/cdecurate/tool/SetACService.java index 07a1a608..9b316989 100755 --- a/src/gov/nih/nci/cadsr/cdecurate/tool/SetACService.java +++ b/src/gov/nih/nci/cadsr/cdecurate/tool/SetACService.java @@ -1,4884 +1,4890 @@ // Copyright (c) 2...
false
true
public String checkUniqueInContext(String sField, String ACType, DE_Bean mDE, DEC_Bean mDEC, VD_Bean mVD, GetACService getAC, String setAction) { try { boolean bValidFlag = false; String sSQL=""; String sContext=""; String sValue=""; String sVersion=""; String editSQL=""; String retValue = "Not unique...
public String checkUniqueInContext(String sField, String ACType, DE_Bean mDE, DEC_Bean mDEC, VD_Bean mVD, GetACService getAC, String setAction) { try { boolean bValidFlag = false; String sSQL=""; String sContext=""; String sValue=""; String sVersion=""; String editSQL=""; String retValue = "Not unique...
diff --git a/core/http/server/src/main/java/org/openrdf/http/server/ExceptionWriter.java b/core/http/server/src/main/java/org/openrdf/http/server/ExceptionWriter.java index bda783aed..b74f00e29 100644 --- a/core/http/server/src/main/java/org/openrdf/http/server/ExceptionWriter.java +++ b/core/http/server/src/main/java/...
true
true
public void render(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception { Throwable t = (Throwable)model.get(THROWABLE_KEY); int statusCode; String errMsg; HTTPException httpExc = findHTTPException(t); if (httpExc != null) { statusCode = httpExc.getStatusCode(); er...
public void render(Map model, HttpServletRequest request, HttpServletResponse response) throws Exception { Throwable t = (Throwable)model.get(THROWABLE_KEY); int statusCode; String errMsg; HTTPException httpExc = findHTTPException(t); if (httpExc != null) { statusCode = httpExc.getStatusCode(); er...
diff --git a/src/plugins/org.drftpd.commands.nuke/src/org/drftpd/commands/nuke/Nuke.java b/src/plugins/org.drftpd.commands.nuke/src/org/drftpd/commands/nuke/Nuke.java index 3020a6cf..9598211f 100644 --- a/src/plugins/org.drftpd.commands.nuke/src/org/drftpd/commands/nuke/Nuke.java +++ b/src/plugins/org.drftpd.commands.n...
true
true
public CommandResponse doSITE_UNNUKE(CommandRequest request) throws ImproperUsageException { if (!request.hasArgument()) { throw new ImproperUsageException(); } StringTokenizer st = new StringTokenizer(request.getArgument()); Session session = request.getSession(); ...
public CommandResponse doSITE_UNNUKE(CommandRequest request) throws ImproperUsageException { if (!request.hasArgument()) { throw new ImproperUsageException(); } StringTokenizer st = new StringTokenizer(request.getArgument()); Session session = request.getSession(); ...
diff --git a/src/com/nexus/webserver/handlers/WebServerHandlerPostPacket.java b/src/com/nexus/webserver/handlers/WebServerHandlerPostPacket.java index 805d967..e67799e 100644 --- a/src/com/nexus/webserver/handlers/WebServerHandlerPostPacket.java +++ b/src/com/nexus/webserver/handlers/WebServerHandlerPostPacket.java @@ ...
true
true
public void Handle(WebServerRequest Request, WebServerResponse Response){ ArrayList<Exception> ProcessingErrors = new ArrayList<Exception>(); int PacketID = -1; NexusClient SenderClient = null; Packet IncomingPacket = null; try{ if(Request.Method != WebServerMethod.POST){ throw new InvalidPacketExcept...
public void Handle(WebServerRequest Request, WebServerResponse Response){ ArrayList<Exception> ProcessingErrors = new ArrayList<Exception>(); int PacketID = -1; NexusClient SenderClient = null; Packet IncomingPacket = null; try{ if(Request.Method != WebServerMethod.POST){ throw new InvalidPacketExcept...
diff --git a/src/org/apache/xerces/impl/xs/XSConstraints.java b/src/org/apache/xerces/impl/xs/XSConstraints.java index 32c1a4de9..cab97d6e6 100644 --- a/src/org/apache/xerces/impl/xs/XSConstraints.java +++ b/src/org/apache/xerces/impl/xs/XSConstraints.java @@ -1,1427 +1,1427 @@ /* * The Apache Software License, Vers...
false
true
private static void particleValidRestriction(XSParticleDecl dParticle, SubstitutionGroupHandler dSGHandler, XSParticleDecl bParticle, SubstitutionGroupHandler bSGHandler, ...
private static void particleValidRestriction(XSParticleDecl dParticle, SubstitutionGroupHandler dSGHandler, XSParticleDecl bParticle, SubstitutionGroupHandler bSGHandler, ...
diff --git a/src/paulscode/android/mupen64plusae/input/map/VisibleTouchMap.java b/src/paulscode/android/mupen64plusae/input/map/VisibleTouchMap.java index 181efd52..865bc6a3 100644 --- a/src/paulscode/android/mupen64plusae/input/map/VisibleTouchMap.java +++ b/src/paulscode/android/mupen64plusae/input/map/VisibleTouchMa...
false
true
public void resize( int w, int h ) { super.resize( w, h ); // Compute analog foreground location (centered) if( analogBackImage != null && analogForeImage != null ) { int cX = analogBackImage.x + (int) ( analogBackImage.hWidth * scale ); int cY = ...
public void resize( int w, int h ) { super.resize( w, h ); // Compute analog foreground location (centered) if( analogBackImage != null && analogForeImage != null ) { int cX = analogBackImage.x + (int) ( analogBackImage.hWidth * scale ); int cY = ...
diff --git a/swows/src/main/java/org/swows/spinx/QueryFactory.java b/swows/src/main/java/org/swows/spinx/QueryFactory.java index 827b716..a569c31 100644 --- a/swows/src/main/java/org/swows/spinx/QueryFactory.java +++ b/swows/src/main/java/org/swows/spinx/QueryFactory.java @@ -1,1353 +1,1354 @@ /* * Copyright (c) 201...
true
true
public ElementContext toElementContext(Node elementRootNode) { Node elementType = getElementType(elementRootNode); Node subElementNode = getObject(elementRootNode, SPINX.element.asNode()); ExtendedIterator<Node> subElementNodes = getObjects(elementRootNode, SPINX.element.asNode()); Node varNode = getObject(ele...
public ElementContext toElementContext(Node elementRootNode) { Node elementType = getElementType(elementRootNode); Node subElementNode = getObject(elementRootNode, SPINX.element.asNode()); ExtendedIterator<Node> subElementNodes = getObjects(elementRootNode, SPINX.element.asNode()); Node varNode = getObject(ele...
diff --git a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelServerImpl.java b/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelServerImpl.java index e247b733..95ebe199 100644 --- a/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/BpelServerImpl.java +++ b/bpel-runtime/src/main/java/org/apache/o...
false
true
private void doActivateProcess(final QName pid) { _mngmtLock.writeLock().lock(); try { // If the process is already active, do nothing. if (_engine.isProcessRegistered(pid)) { __log.debug("skipping doActivateProcess(" + pid + ") -- process is already active");...
private void doActivateProcess(final QName pid) { _mngmtLock.writeLock().lock(); try { // If the process is already active, do nothing. if (_engine.isProcessRegistered(pid)) { __log.debug("skipping doActivateProcess(" + pid + ") -- process is already active");...
diff --git a/plugins/org.eclipse.m2m.atl.debug.core/src/org/eclipse/m2m/atl/debug/core/AtlDebugTarget.java b/plugins/org.eclipse.m2m.atl.debug.core/src/org/eclipse/m2m/atl/debug/core/AtlDebugTarget.java index 71b45b80..6bc1a171 100644 --- a/plugins/org.eclipse.m2m.atl.debug.core/src/org/eclipse/m2m/atl/debug/core/AtlDe...
false
true
public void start() { ATLLogger.info(Messages.getString("AtlDebugTarget.CONNECTIONDEBUGEE")); //$NON-NLS-1$ try { do { try { try { port = launch.getLaunchConfiguration().getAttribute(ATLLaunchConstants.PORT, new Integer(ATLLaunchConstants.DEFAULT_PORT).toString()); host = launch.get...
public void start() { // ATLLogger.info(Messages.getString("AtlDebugTarget.CONNECTIONDEBUGEE")); //$NON-NLS-1$ try { do { try { try { port = launch.getLaunchConfiguration().getAttribute(ATLLaunchConstants.PORT, new Integer(ATLLaunchConstants.DEFAULT_PORT).toString()); host = launch.g...
diff --git a/src/main/java/net/aufdemrand/denizen/commands/core/FeedCommand.java b/src/main/java/net/aufdemrand/denizen/commands/core/FeedCommand.java index 042f6e81a..75d0e997e 100644 --- a/src/main/java/net/aufdemrand/denizen/commands/core/FeedCommand.java +++ b/src/main/java/net/aufdemrand/denizen/commands/core/Feed...
true
true
public boolean execute(ScriptEntry theEntry) throws CommandException { if (theEntry.getPlayer() == null) { aH.echoError("Requires a Player!"); return false; } Integer amount = 20; if (theEntry.arguments() != null) for (String thisArg : theEntry.arguments()) { if (thisArg.matches("(?:QTY|qty|Qt...
public boolean execute(ScriptEntry theEntry) throws CommandException { if (theEntry.getPlayer() == null) { aH.echoError("Requires a Player!"); return false; } Integer amount = 20; if (theEntry.arguments() != null) for (String thisArg : theEntry.arguments()) { if (thisArg.matches("(?:QTY|qty|Qt...
diff --git a/src/husacct/bootstrap/SetJavaBenchmark.java b/src/husacct/bootstrap/SetJavaBenchmark.java index 702eb3e9..6072cadc 100644 --- a/src/husacct/bootstrap/SetJavaBenchmark.java +++ b/src/husacct/bootstrap/SetJavaBenchmark.java @@ -1,39 +1,39 @@ package husacct.bootstrap; import husacct.common.dto.AnalysedMo...
true
true
public void execute() { ArrayList<ProjectDTO> projects = new ArrayList<ProjectDTO>(); ArrayList<String> paths = new ArrayList<String>(); for(String pathToCustomTestProject : pathsToCustomTestProject){ if(new File(pathToCustomTestProject).exists() && new File(pathToCustomTestProject).isDirectory()){ pat...
public void execute() { ArrayList<ProjectDTO> projects = new ArrayList<ProjectDTO>(); ArrayList<String> paths = new ArrayList<String>(); for(String pathToCustomTestProject : pathsToCustomTestProject){ if(new File(pathToCustomTestProject).exists() && new File(pathToCustomTestProject).isDirectory()){ pat...
diff --git a/drools-planner-core/src/main/java/org/drools/planner/core/score/director/drools/DroolsScoreDirector.java b/drools-planner-core/src/main/java/org/drools/planner/core/score/director/drools/DroolsScoreDirector.java index 91786556..2efd8c85 100644 --- a/drools-planner-core/src/main/java/org/drools/planner/core...
true
true
protected String buildScoreCorruptionAnalysis(ScoreDirector uncorruptedScoreDirector) { DroolsScoreDirector uncorruptedDroolsScoreDirector = (DroolsScoreDirector) uncorruptedScoreDirector; Set<ConstraintOccurrence> workingConstraintOccurrenceSet = new LinkedHashSet<ConstraintOccurrence>(); I...
protected String buildScoreCorruptionAnalysis(ScoreDirector uncorruptedScoreDirector) { DroolsScoreDirector uncorruptedDroolsScoreDirector = (DroolsScoreDirector) uncorruptedScoreDirector; Set<ConstraintOccurrence> workingConstraintOccurrenceSet = new LinkedHashSet<ConstraintOccurrence>(); I...
diff --git a/org.eclipse.rmf.reqif10.search.ui/src/org/eclipse/rmf/reqif10/search/filter/ui/FilterControlNumber.java b/org.eclipse.rmf.reqif10.search.ui/src/org/eclipse/rmf/reqif10/search/filter/ui/FilterControlNumber.java index 766f8e61..332b6b95 100644 --- a/org.eclipse.rmf.reqif10.search.ui/src/org/eclipse/rmf/reqif...
true
true
protected void updateValueControls(boolean initialize) { if (getOperator() == Operator.IS_SET || getOperator() == Operator.IS_NOT_SET) { showControl(0, false); showControl(1, false); } else if (getOperator() == Operator.BETWEEN) { showControl(0, true); showControl(1, true); } else { showCont...
protected void updateValueControls(boolean initialize) { if (getOperator() == Operator.IS_SET || getOperator() == Operator.IS_NOT_SET) { showControl(0, false); showControl(1, false); } else if (getOperator() == Operator.BETWEEN) { showControl(0, true); showControl(1, true); } else { showCont...
diff --git a/compiler/frontend/src/org/napile/compiler/lang/psi/NapileAnonymClass.java b/compiler/frontend/src/org/napile/compiler/lang/psi/NapileAnonymClass.java index 4f4e5098..e598c1b5 100644 --- a/compiler/frontend/src/org/napile/compiler/lang/psi/NapileAnonymClass.java +++ b/compiler/frontend/src/org/napile/compil...
true
true
public List<NapileTypeReference> getExtendTypeList() { List<NapileDelegationSpecifier> specifiers = getDelegationSpecifiers(); List<NapileTypeReference> list = new ArrayList<NapileTypeReference>(specifiers.size()); for(NapileDelegationSpecifier s : specifiers) { if(s instanceof NapileDelegatorToSuperCall) ...
public List<NapileTypeReference> getExtendTypeList() { List<NapileDelegationSpecifier> specifiers = getDelegationSpecifiers(); List<NapileTypeReference> list = new ArrayList<NapileTypeReference>(specifiers.size()); for(NapileDelegationSpecifier s : specifiers) list.add(s.getTypeReference()); return list; ...
diff --git a/Java_CCN/com/parc/ccn/library/io/CCNInputStream.java b/Java_CCN/com/parc/ccn/library/io/CCNInputStream.java index d8792a954..cca0df72b 100644 --- a/Java_CCN/com/parc/ccn/library/io/CCNInputStream.java +++ b/Java_CCN/com/parc/ccn/library/io/CCNInputStream.java @@ -1,224 +1,226 @@ package com.parc.ccn.libra...
true
true
protected int readInternal(byte [] buf, int offset, int len) throws IOException { if (_atEOF) { return -1; } Library.logger().info(baseName() + ": reading " + len + " bytes into buffer of length " + ((null != buf) ? buf.length : "null") + " at offset " + offset); // is this the first block? if ...
protected int readInternal(byte [] buf, int offset, int len) throws IOException { if (_atEOF) { return -1; } Library.logger().info(baseName() + ": reading " + len + " bytes into buffer of length " + ((null != buf) ? buf.length : "null") + " at offset " + offset); // is this the first block? if ...
diff --git a/src/main/java/de/cismet/cids/trigger/builtin/UpdateToStringCacheTrigger.java b/src/main/java/de/cismet/cids/trigger/builtin/UpdateToStringCacheTrigger.java index cc3be7d4..52573c01 100644 --- a/src/main/java/de/cismet/cids/trigger/builtin/UpdateToStringCacheTrigger.java +++ b/src/main/java/de/cismet/cids/t...
false
true
public void afterUpdate(final CidsBean cidsBean, final User user) { if (isCacheEnabled(cidsBean)) { de.cismet.tools.CismetThreadPool.execute(new javax.swing.SwingWorker<Integer, Void>() { @Override protected Integer doInBackground() throws Exception { ...
public void afterUpdate(final CidsBean cidsBean, final User user) { if (isCacheEnabled(cidsBean)) { de.cismet.tools.CismetThreadPool.execute(new javax.swing.SwingWorker<Integer, Void>() { @Override protected Integer doInBackground() throws Exception { ...
diff --git a/src/uk/org/ponder/rsf/renderer/ViewRender.java b/src/uk/org/ponder/rsf/renderer/ViewRender.java index 4dbffb2..ba818df 100644 --- a/src/uk/org/ponder/rsf/renderer/ViewRender.java +++ b/src/uk/org/ponder/rsf/renderer/ViewRender.java @@ -1,472 +1,472 @@ /* * Created on Aug 7, 2005 */ package uk.org.pon...
true
true
private void renderRecurse(UIContainer basecontainer, XMLLump parentlump, XMLLump baselump) { int renderindex = baselump.lumpindex; int basedepth = parentlump.nestingdepth; XMLViewTemplate tl = parentlump.parent; Set rendered = null; if (debugrender) { rendered = new HashSet(); } ...
private void renderRecurse(UIContainer basecontainer, XMLLump parentlump, XMLLump baselump) { int renderindex = baselump.lumpindex; int basedepth = parentlump.nestingdepth; XMLViewTemplate tl = parentlump.parent; Set rendered = null; if (debugrender) { rendered = new HashSet(); } ...
diff --git a/src/main/java/de/weltraumschaf/caythe/frontend/pascal/parsers/CallParser.java b/src/main/java/de/weltraumschaf/caythe/frontend/pascal/parsers/CallParser.java index cf3e93e3..f99f389c 100644 --- a/src/main/java/de/weltraumschaf/caythe/frontend/pascal/parsers/CallParser.java +++ b/src/main/java/de/weltraumsc...
true
true
protected CodeNode parseActualParameters(Token token, SymbolTableEntry pfId, boolean isDecalred, boolean isReadReadln, boolean isWriteWriteln) throws Exception { ExpressionParser expressionParser = new ExpressionParser(this); CodeNode parmsNode = CodeFactory.crea...
protected CodeNode parseActualParameters(Token token, SymbolTableEntry pfId, boolean isDecalred, boolean isReadReadln, boolean isWriteWriteln) throws Exception { ExpressionParser expressionParser = new ExpressionParser(this); CodeNode parmsNode = CodeFactory.crea...
diff --git a/src/purejavacomm/testsuite/TestSuite.java b/src/purejavacomm/testsuite/TestSuite.java index acd0fe8..28d76e9 100644 --- a/src/purejavacomm/testsuite/TestSuite.java +++ b/src/purejavacomm/testsuite/TestSuite.java @@ -1,58 +1,58 @@ /* * Copyright (c) 2011, Kustaa Nyholm / SpareTimeLabs * All rights rese...
false
true
public static void main(String[] args) { Native.setProtected(true); TestBase.init(args); //jtermios.JTermios.JTermiosLogging.setLogLevel(5); try { System.out.println("PureJavaComm Test Suite"); System.out.println("Using port: " + TestBase.getPortName()); Test1.run(); Test2.run(); Test3.run(); ...
public static void main(String[] args) { //Native.setProtected(false); TestBase.init(args); //jtermios.JTermios.JTermiosLogging.setLogMask(255); try { System.out.println("PureJavaComm Test Suite"); System.out.println("Using port: " + TestBase.getPortName()); Test1.run(); Test2.run(19200); Test3....
diff --git a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java index 98746809e..c20602f13 100644 --- a/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java +++ b/svnkit/src/org/tmatesoft/svn/core/internal/wc/SVNCommitUtil.java...
true
true
public static void harvestCommitables(Map commitables, SVNAdminArea dir, File path, SVNEntry parentEntry, SVNEntry entry, String url, String copyFromURL, boolean copyMode, boolean addsOnly, boolean justLocked, Map lockTokens, SVNDepth depth, boolean forcedRecursion, Collection...
public static void harvestCommitables(Map commitables, SVNAdminArea dir, File path, SVNEntry parentEntry, SVNEntry entry, String url, String copyFromURL, boolean copyMode, boolean addsOnly, boolean justLocked, Map lockTokens, SVNDepth depth, boolean forcedRecursion, Collection...
diff --git a/src/newsrack/database/NewsItem.java b/src/newsrack/database/NewsItem.java index 289e8ba..fd3e718 100644 --- a/src/newsrack/database/NewsItem.java +++ b/src/newsrack/database/NewsItem.java @@ -1,168 +1,181 @@ package newsrack.database; import java.io.File; import java.io.PrintWriter; import java.io.Re...
false
true
public void download(DB_Interface dbi) throws Exception { PrintWriter filtPw = dbi.getWriterForFilteredArticle(this); PrintWriter origPw = dbi.getWriterForOrigArticle(this); String url = getURL(); try { if ((filtPw != null) && (origPw != null)) { boolean done = false; ...
public void download(DB_Interface dbi) throws Exception { PrintWriter filtPw = dbi.getWriterForFilteredArticle(this); PrintWriter origPw = dbi.getWriterForOrigArticle(this); String url = getURL(); try { if ((filtPw != null) && (origPw != null)) { boolean done = false; ...
diff --git a/src/com/android/deskclock/DeskClock.java b/src/com/android/deskclock/DeskClock.java index c8cf90b1..96a16cc2 100644 --- a/src/com/android/deskclock/DeskClock.java +++ b/src/com/android/deskclock/DeskClock.java @@ -1,522 +1,524 @@ /* * Copyright (C) 2009 The Android Open Source Project * * Licensed u...
true
true
private void initViews() { // give up any internal focus before we switch layouts final View focused = getCurrentFocus(); if (focused != null) focused.clearFocus(); setContentView(R.layout.desk_clock); mTime = (DigitalClock) findViewById(R.id.time); mDate = (TextVie...
private void initViews() { // give up any internal focus before we switch layouts final View focused = getCurrentFocus(); if (focused != null) focused.clearFocus(); setContentView(R.layout.desk_clock); mTime = (DigitalClock) findViewById(R.id.time); mDate = (TextVie...
diff --git a/travelingchest_common/com/birdsnesttech/travelingchest/blocks/BlockTravelingChest.java b/travelingchest_common/com/birdsnesttech/travelingchest/blocks/BlockTravelingChest.java index 050c38f..85a22b6 100644 --- a/travelingchest_common/com/birdsnesttech/travelingchest/blocks/BlockTravelingChest.java +++ b/tr...
true
true
public void breakBlock(World world, int i, int j, int k, int par5, int par6) { TETravelingChest te = (TETravelingChest)world.getBlockTileEntity(i, j, k); if (te != null) { int doBreak = random.nextInt(1000); if( doBreak <= Config.breakChance ) { for (int j1 = 0; j1 < te.getSizeInventory(); ++j1) {...
public void breakBlock(World world, int i, int j, int k, int par5, int par6) { TETravelingChest te = (TETravelingChest)world.getBlockTileEntity(i, j, k); if (te != null) { int doBreak = random.nextInt(1000); if( doBreak <= Config.breakChance ) { for (int j1 = 0; j1 < te.getSizeInventory(); ++j1) {...
diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/ProjectServlet.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/ProjectServlet.java index aa74485d6..df2c5c9d0 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/ProjectServlet.java +++ b/gerrit-httpd/src/main/java/com/google/gerrit/h...
true
true
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { boolean isGet = "GET".equalsIgnoreCase(((HttpServletRequest) request).getMethod()); ReceiveCommits rc = (ReceiveCommits) request.getAttribute(ATT_RC); R...
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { boolean isGet = "GET".equalsIgnoreCase(((HttpServletRequest) request).getMethod()); ReceiveCommits rc = (ReceiveCommits) request.getAttribute(ATT_RC); R...
diff --git a/code/controllers/VRecRunController.java b/code/controllers/VRecRunController.java index 1c9fe57..f0121ae 100644 --- a/code/controllers/VRecRunController.java +++ b/code/controllers/VRecRunController.java @@ -1,136 +1,137 @@ package code.controllers; import code.gui.control.VRecRunPane; import code.mod...
false
true
public void mouseClicked(MouseEvent e) { Component clicked = e.getComponent(); if (clicked.isEnabled()) { if (clicked.equals(this.rec)) { if (loadInstrument()) { setRunningState(true); createSe...
public void mouseClicked(MouseEvent e) { Component clicked = e.getComponent(); if (clicked.isEnabled()) { if (clicked.equals(this.rec)) { if (loadInstrument()) { setRunningState(true); createSe...
diff --git a/alchemy-midlet/src/alchemy/libs/LibUI1Func.java b/alchemy-midlet/src/alchemy/libs/LibUI1Func.java index c59acf9..2de4a50 100644 --- a/alchemy-midlet/src/alchemy/libs/LibUI1Func.java +++ b/alchemy-midlet/src/alchemy/libs/LibUI1Func.java @@ -1,509 +1,509 @@ /* * This file is a part of Alchemy OS project. ...
false
true
protected Object execNative(Context c, Object[] args) throws Exception { switch (index) { case 0: // new_image(w: Int, h: Int): Image return Image.createImage(ival(args[0]), ival(args[1])); case 1: // Image.graphics(): Graphics return ((Image)args[0]).getGraphics(); case 2: { // image_from_argb(argb...
protected Object execNative(Context c, Object[] args) throws Exception { switch (index) { case 0: // new_image(w: Int, h: Int): Image return Image.createImage(ival(args[0]), ival(args[1])); case 1: // Image.graphics(): Graphics return ((Image)args[0]).getGraphics(); case 2: { // image_from_argb(argb...
diff --git a/src/org/basex/api/xqj/BXQDataFactory.java b/src/org/basex/api/xqj/BXQDataFactory.java index a6f7ecf85..4ef5b0761 100644 --- a/src/org/basex/api/xqj/BXQDataFactory.java +++ b/src/org/basex/api/xqj/BXQDataFactory.java @@ -1,334 +1,334 @@ package org.basex.api.xqj; import static org.basex.api.xqj.BXQText....
true
true
public BXQItem createItemFromNode(final Node v, final XQItemType it) throws XQException { opened(); check(Type.DOC, it); valid(v, Node.class); final ByteArrayOutputStream ba = new ByteArrayOutputStream(); try { final DOMImplementationRegistry registry = DOMImplementationRegist...
public BXQItem createItemFromNode(final Node v, final XQItemType it) throws XQException { opened(); check(Type.DOC, it); valid(v, Node.class); final ByteArrayOutputStream ba = new ByteArrayOutputStream(); try { final DOMImplementationRegistry registry = DOMImplementationRegist...
diff --git a/src/net/derkholm/nmica/extra/app/seq/RetrieveEnsemblSequences.java b/src/net/derkholm/nmica/extra/app/seq/RetrieveEnsemblSequences.java index 5cd02f7..4c3fc70 100644 --- a/src/net/derkholm/nmica/extra/app/seq/RetrieveEnsemblSequences.java +++ b/src/net/derkholm/nmica/extra/app/seq/RetrieveEnsemblSequences....
true
true
public void main(String[] argv) throws Exception { this.initPreparedStatements(); String dbURL = String.format("jdbc:mysql://%s:%d/%s", this.host, this.port, this.database); EnsemblConnection conn = new EnsemblConnection(dbURL, username, password, schemaVersion); SequenceDB seqDB = conn.getD...
public void main(String[] argv) throws Exception { this.initPreparedStatements(); String dbURL = String.format("jdbc:mysql://%s:%d/%s", this.host, this.port, this.database); EnsemblConnection conn = new EnsemblConnection(dbURL, username, password, schemaVersion); SequenceDB seqDB = conn.getD...
diff --git a/src/web/org/openmrs/web/controller/PortletController.java b/src/web/org/openmrs/web/controller/PortletController.java index b776dbb8..9571cda4 100644 --- a/src/web/org/openmrs/web/controller/PortletController.java +++ b/src/web/org/openmrs/web/controller/PortletController.java @@ -1,395 +1,396 @@ /** * ...
true
true
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { AdministrationService as = Context.getAdministrationService(); ConceptService cs = Context.getConceptService(); //HttpSession httpSession = request.getSession(); // // fi...
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { AdministrationService as = Context.getAdministrationService(); ConceptService cs = Context.getConceptService(); //HttpSession httpSession = request.getSession(); // // fi...
diff --git a/src/java/com/eviware/soapui/security/ui/SecurityConfigurationDialogBuilder.java b/src/java/com/eviware/soapui/security/ui/SecurityConfigurationDialogBuilder.java index fbc84ea15..d012f2541 100644 --- a/src/java/com/eviware/soapui/security/ui/SecurityConfigurationDialogBuilder.java +++ b/src/java/com/eviwar...
true
true
private void addStrategyPanel( XFormDialog dialog, final SecurityCheck securityCheck ) { XFormRadioGroup strategy = ( XFormRadioGroup )dialog.getFormField( Strategy.STRATEGY ); final String[] strategyOptions = new String[] { "One by One", "All At Once" }; strategy.setOptions( strategyOptions ); if( securityC...
private void addStrategyPanel( XFormDialog dialog, final SecurityCheck securityCheck ) { XFormRadioGroup strategy = ( XFormRadioGroup )dialog.getFormField( Strategy.STRATEGY ); final String[] strategyOptions = new String[] { "One by One", "All At Once" }; strategy.setOptions( strategyOptions ); if( securityC...
diff --git a/src/nl/giantit/minecraft/GiantShop/API/GSW/Commands/Chat/Pickup/List.java b/src/nl/giantit/minecraft/GiantShop/API/GSW/Commands/Chat/Pickup/List.java index 49a0ff4..cd7b14d 100644 --- a/src/nl/giantit/minecraft/GiantShop/API/GSW/Commands/Chat/Pickup/List.java +++ b/src/nl/giantit/minecraft/GiantShop/API/GS...
true
true
public static void exec(Player player, String[] args) { Messages mH = GiantShop.getPlugin().getMsgHandler(); Permission perms = GiantShop.getPlugin().getPermHandler().getEngine(); if(perms.has(player, "giantshop.api.web.pickup.list")) { PickupQueue pQ = GSWAPI.getInstance().getPickupQueue(); if(pQ.inQueue(...
public static void exec(Player player, String[] args) { Messages mH = GiantShop.getPlugin().getMsgHandler(); Permission perms = GiantShop.getPlugin().getPermHandler().getEngine(); if(perms.has(player, "giantshop.api.web.pickup.list")) { PickupQueue pQ = GSWAPI.getInstance().getPickupQueue(); if(pQ.inQueue(...
diff --git a/plugins/hooks/conext-login-hook/docroot/WEB-INF/src/nl/proteon/liferay/surfnet/security/auth/ConextAutoLogin.java b/plugins/hooks/conext-login-hook/docroot/WEB-INF/src/nl/proteon/liferay/surfnet/security/auth/ConextAutoLogin.java index 9d235fc..3cffd30 100644 --- a/plugins/hooks/conext-login-hook/docroot/W...
false
true
public String[] login(HttpServletRequest request, HttpServletResponse response) throws AutoLoginException { String[] credentials = null; if(request.getHeader(PortletProps.get("saml2.header.mapping.email")) != null) { try { long companyId = PortalUtil.getCompanyId(request); PasswordPolicy ...
public String[] login(HttpServletRequest request, HttpServletResponse response) throws AutoLoginException { String[] credentials = null; if(request.getHeader(PortletProps.get("saml2.header.mapping.email")) != null) { try { long companyId = PortalUtil.getCompanyId(request); PasswordPolicy ...
diff --git a/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java b/examples/plugins/org.jboss.tools.project.examples/src/org/jboss/tools/project/examples/wizard/NewProjectExamplesWizard.java index 8d5fe923..9122d27d 100644 --- a/examples/plugins/or...
false
true
public boolean performFinish() { if (page.getSelection() == null || page.getSelection().size() <= 0) { return false; } workspaceJob = new WorkspaceJob(Messages.NewProjectExamplesWizard_Downloading) { @Override public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException { IStr...
public boolean performFinish() { if (page.getSelection() == null || page.getSelection().size() <= 0) { return false; } workspaceJob = new WorkspaceJob(Messages.NewProjectExamplesWizard_Downloading) { @Override public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException { IStr...
diff --git a/src/me/confuserr/banmanager/Commands/WarnCommand.java b/src/me/confuserr/banmanager/Commands/WarnCommand.java index 390561c..874134e 100644 --- a/src/me/confuserr/banmanager/Commands/WarnCommand.java +++ b/src/me/confuserr/banmanager/Commands/WarnCommand.java @@ -1,81 +1,81 @@ package me.confuserr.banmana...
true
true
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String args[]) { if (args.length < 2) return false; Player player = null; String playerName = plugin.banMessages.get("consoleName"); if (sender instanceof Player) { player = (Player) sender; playerName = player.get...
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String args[]) { if (args.length < 2) return false; Player player = null; String playerName = plugin.banMessages.get("consoleName"); if (sender instanceof Player) { player = (Player) sender; playerName = player.get...
diff --git a/reflens-bench/src/main/java/org/grouplens/reflens/bench/CrossfoldBenchmark.java b/reflens-bench/src/main/java/org/grouplens/reflens/bench/CrossfoldBenchmark.java index 95be42904..32fe1d781 100644 --- a/reflens-bench/src/main/java/org/grouplens/reflens/bench/CrossfoldBenchmark.java +++ b/reflens-bench/src/m...
true
true
private void benchmarkAlgorithm(AlgorithmInstance algo, RatingDataSource train, Collection<UserRatingProfile> test) { TaskTimer timer = new TaskTimer(); logger.debug("Benchmarking {}", algo.getName()); RecommenderService engine; logger.debug("Building recommender"); engine = algo.getBuilder().build(train); ...
private void benchmarkAlgorithm(AlgorithmInstance algo, RatingDataSource train, Collection<UserRatingProfile> test) { TaskTimer timer = new TaskTimer(); logger.debug("Benchmarking {}", algo.getName()); RecommenderService engine; logger.debug("Building recommender"); engine = algo.getBuilder().build(train); ...