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/org/ohmage/request/image/ImageReadRequest.java b/src/org/ohmage/request/image/ImageReadRequest.java index 4fdb79e8..cedc0078 100644 --- a/src/org/ohmage/request/image/ImageReadRequest.java +++ b/src/org/ohmage/request/image/ImageReadRequest.java @@ -1,327 +1,328 @@ /***********************************...
true
true
public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) { LOGGER.info("Writing the image read response."); // Sets the HTTP headers to disable caching expireResponse(httpResponse); // Set the CORS headers. handleCORS(httpRequest, httpResponse); // Open the connection ...
public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) { LOGGER.info("Writing the image read response."); // Sets the HTTP headers to disable caching expireResponse(httpResponse); // Set the CORS headers. handleCORS(httpRequest, httpResponse); // Open the connection ...
diff --git a/troia-server/src/main/java/com/datascience/mv/IncrementalMV.java b/troia-server/src/main/java/com/datascience/mv/IncrementalMV.java index 87401616..1ed1208a 100644 --- a/troia-server/src/main/java/com/datascience/mv/IncrementalMV.java +++ b/troia-server/src/main/java/com/datascience/mv/IncrementalMV.java @...
true
true
public void computeForNewAssign(AssignedLabel<String> assign){ computeResultsForObject(assign.getLobject()); for (AssignedLabel<String> al: getData().getAssignsForObject(assign.getLobject())){ computeWorkersConfusionMatrix(al.getWorker()); } model.priorDenominator++; model.categoryPriors.put(assign.getLab...
public void computeForNewAssign(AssignedLabel<String> assign){ computeResultsForObject(assign.getLobject()); for (AssignedLabel<String> al: getData().getAssignsForObject(assign.getLobject())){ computeWorkersConfusionMatrix(al.getWorker()); } if (!data.arePriorsFixed()){ model.priorDenominator++; model...
diff --git a/src/main/java/com/ardublock/translator/block/SerialPrintlnBlock.java b/src/main/java/com/ardublock/translator/block/SerialPrintlnBlock.java index 6f1fb5d..f74f26a 100644 --- a/src/main/java/com/ardublock/translator/block/SerialPrintlnBlock.java +++ b/src/main/java/com/ardublock/translator/block/SerialPrint...
true
true
public String toCode() throws SocketNullException, SubroutineNotDeclaredException { translator.addSetupCommand("Serial.begin(9600);"); TranslatorBlock t1 = getRequiredTranslatorBlockAtSocket(0); String b1 = t1.toCode(); String text = ""; if (b1.equals("Return")) { text = "Serial.println( "; ...
public String toCode() throws SocketNullException, SubroutineNotDeclaredException { translator.addSetupCommand("Serial.begin(9600);"); TranslatorBlock t1 = getRequiredTranslatorBlockAtSocket(0); String b1 = t1.toCode(); String text = ""; if (b1.equals("Return")) { text = "Serial.println( "; ...
diff --git a/apps/animaldb/plugins/breedingplugin/ManageLitters.java b/apps/animaldb/plugins/breedingplugin/ManageLitters.java index ebc7afdc0..cf91683af 100644 --- a/apps/animaldb/plugins/breedingplugin/ManageLitters.java +++ b/apps/animaldb/plugins/breedingplugin/ManageLitters.java @@ -1,1758 +1,1758 @@ /* Date: ...
true
true
private int Wean(Database db, Tuple request) throws Exception { Date now = new Date(); int invid = ct.getObservationTargetById(litter).getInvestigation_Id(); setUserFields(request, true); Date weanDate = newDateOnlyFormat.parse(weandate); int userId = this.getLogin().getUserId(); // Init lists that we ...
private int Wean(Database db, Tuple request) throws Exception { Date now = new Date(); int invid = ct.getObservationTargetById(litter).getInvestigation_Id(); setUserFields(request, true); Date weanDate = newDateOnlyFormat.parse(weandate); int userId = this.getLogin().getUserId(); // Init lists that we ...
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/PreCompilerBuilder.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/PreCompilerBuilder.java index d5fdea8a6..3f4d0de95 100644 --- a/eclipse/plugins/c...
false
true
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { // get a project object IProject project = getProject(); // list of referenced projects. IProject[] libProjects = null; try { mDerivedProgressMonitor.rese...
protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException { // get a project object IProject project = getProject(); // list of referenced projects. IProject[] libProjects = null; try { mDerivedProgressMonitor.rese...
diff --git a/BankProject/src/bankproject/BankProject.java b/BankProject/src/bankproject/BankProject.java index bc1d31e..fca263b 100644 --- a/BankProject/src/bankproject/BankProject.java +++ b/BankProject/src/bankproject/BankProject.java @@ -1,44 +1,44 @@ /* * To change this template, choose Tools | Templates * and...
true
true
public static void main(String[] args) { BankProject bankProject = new BankProject(); // TODO code application logic here //populate bank for (int i=0; i < 10; i++) { // Object options = []; AccountHolder object = new AccountHolder(); object.name =...
public static void main(String[] args) { BankProject bankProject = new BankProject(); // TODO code application logic here //populate bank for (int i=0; i < 10; i++) { // Object options = []; AccountHolder object = new AccountHolder(); object.name =...
diff --git a/src/minecraft/net/minecraft/src/EntityLiving.java b/src/minecraft/net/minecraft/src/EntityLiving.java index 1c568761..f2a51fb4 100644 --- a/src/minecraft/net/minecraft/src/EntityLiving.java +++ b/src/minecraft/net/minecraft/src/EntityLiving.java @@ -1,1121 +1,1120 @@ package net.minecraft.src; import j...
false
true
public void moveEntityWithHeading(float var1, float var2) { double var3; if(this.isInWater()) { var3 = this.posY; moveFlying(var1, var2, (float) (0.02F * swimmingMod)); //Spout this.moveEntity(this.motionX, this.motionY, this.motionZ); this.motionX *= 0.800000011920929D; this.motionY *= 0.8000000119...
public void moveEntityWithHeading(float var1, float var2) { double var3; if(this.isInWater()) { var3 = this.posY; moveFlying(var1, var2, (float) (0.02F * swimmingMod)); //Spout this.moveEntity(this.motionX, this.motionY, this.motionZ); this.motionX *= 0.800000011920929D; this.motionY *= 0.8000000119...
diff --git a/tools/host/src/com/android/cts/CtsTestResult.java b/tools/host/src/com/android/cts/CtsTestResult.java index 0aea74b3..851b07d3 100644 --- a/tools/host/src/com/android/cts/CtsTestResult.java +++ b/tools/host/src/com/android/cts/CtsTestResult.java @@ -1,203 +1,209 @@ /* * Copyright (C) 2009 The Android Op...
false
true
public void setResult(TestResult testResult) { int resCode = CODE_PASS; String failedMessage = null; String stackTrace = null; if ((testResult != null) && (testResult.failureCount() > 0)) { resCode = CODE_FAIL; Enumeration<TestFailure> failures = testResult.fa...
public void setResult(TestResult testResult) { int resCode = CODE_PASS; String failedMessage = null; String stackTrace = null; if ((testResult != null) && (testResult.failureCount() > 0 || testResult.errorCount() > 0)) { resCode = CODE_FAIL; Enumeration<TestFa...
diff --git a/core/src/main/java/hudson/model/AbstractProject.java b/core/src/main/java/hudson/model/AbstractProject.java index 92c2d621b..abbb15094 100644 --- a/core/src/main/java/hudson/model/AbstractProject.java +++ b/core/src/main/java/hudson/model/AbstractProject.java @@ -1,617 +1,617 @@ package hudson.model; i...
true
true
public void doRssChangelog( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { class FeedItem { ChangeLogSet.Entry e; int idx; public FeedItem(Entry e, int idx) { this.e = e; this.idx = idx; } ...
public void doRssChangelog( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { class FeedItem { ChangeLogSet.Entry e; int idx; public FeedItem(Entry e, int idx) { this.e = e; this.idx = idx; } ...
diff --git a/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/WSDL2JavaCodeGenConfigWidget.java b/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/widgets/WSDL2JavaCodeGenConfigWidget.java index 4dfbc065..3968f68a 100644 --- a/plugins/org.jboss.tools.ws.creation...
false
true
public WidgetDataEvents addControls(Composite parent, final Listener statusListener) { Composite configCom = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(3, false); configCom.setLayout(layout); configCom.setLayoutData(new GridData(GridData.FILL_BOTH)); // custom package name Lab...
public WidgetDataEvents addControls(Composite parent, final Listener statusListener) { Composite configCom = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(3, false); configCom.setLayout(layout); configCom.setLayoutData(new GridData(GridData.FILL_BOTH)); // custom package name Lab...
diff --git a/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/serializer/CSV.java b/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/serializer/CSV.java index 6005161..4c4e4a9 100644 --- a/ldbc_socialnet_dbgen/src/main/java/ldbc/socialnet/dbgen/serializer/CSV.java +++ b/ldbc_socialnet_dbgen/src/main/java/...
true
true
public void gatherData(ReducedUserProfile profile, UserExtraInfo extraInfo){ Vector<String> arguments = new Vector<String>(); if (extraInfo == null) { System.err.println("LDBC socialnet must serialize the extraInfo"); System.exit(-1); } printLocationHierarchy(extraInfo.getLo...
public void gatherData(ReducedUserProfile profile, UserExtraInfo extraInfo){ Vector<String> arguments = new Vector<String>(); if (extraInfo == null) { System.err.println("LDBC socialnet must serialize the extraInfo"); System.exit(-1); } printLocationHierarchy(extraInfo.getLo...
diff --git a/src/main/java/org/testng/SuiteRunnerWorker.java b/src/main/java/org/testng/SuiteRunnerWorker.java index a271020e..1c7932f9 100644 --- a/src/main/java/org/testng/SuiteRunnerWorker.java +++ b/src/main/java/org/testng/SuiteRunnerWorker.java @@ -1,118 +1,118 @@ package org.testng; import org.testng.interna...
false
true
private void runSuite(XmlSuite xmlSuite) { // System.out.println("Running suite:" + xmlSuite); if (m_verbose > 0) { StringBuffer allFiles = new StringBuffer(); allFiles.append(" ").append(xmlSuite.getFileName() != null ? xmlSuite.getFileName() : m_defaultSuiteName).append('\n'); ...
private void runSuite(XmlSuite xmlSuite) { // System.out.println("Running suite:" + xmlSuite); if (m_verbose > 0) { StringBuffer allFiles = new StringBuffer(); allFiles.append(" ").append(xmlSuite.getFileName() != null ? xmlSuite.getFileName() : m_defaultSuiteName).append('\n'); ...
diff --git a/biz.aQute.bndlib/src/aQute/bnd/build/WorkspaceRepository.java b/biz.aQute.bndlib/src/aQute/bnd/build/WorkspaceRepository.java index 2e2a8970c..48111e096 100644 --- a/biz.aQute.bndlib/src/aQute/bnd/build/WorkspaceRepository.java +++ b/biz.aQute.bndlib/src/aQute/bnd/build/WorkspaceRepository.java @@ -1,190 +...
false
true
private File[] get(String bsn, String range) throws Exception { Collection<Project> projects = workspace.getAllProjects(); SortedMap<Version,File> foundVersion = new TreeMap<Version,File>(); for (Project project : projects) { File[] build = project.build(false); if (build != null) { for (File file : bu...
private File[] get(String bsn, String range) throws Exception { Collection<Project> projects = workspace.getAllProjects(); SortedMap<Version,File> foundVersion = new TreeMap<Version,File>(); for (Project project : projects) { for (Builder builder : project.getSubBuilders()) { if (!bsn.equals(builder.getB...
diff --git a/cocos2d-android/src/org/cocos2d/actions/CCActionManager.java b/cocos2d-android/src/org/cocos2d/actions/CCActionManager.java index 845234b..63b98bb 100644 --- a/cocos2d-android/src/org/cocos2d/actions/CCActionManager.java +++ b/cocos2d-android/src/org/cocos2d/actions/CCActionManager.java @@ -1,349 +1,349 @@...
true
true
public void update(float dt) { for(ConcurrentArrayHashMap<CCNode, HashElement>.Entry e = targets.firstValue(); e != null; e = targets.nextValue(e)) { HashElement currentTarget = e.getValue(); if(currentTarget == null) continue; if (!currentTarget.paused) { ...
public void update(float dt) { for(ConcurrentArrayHashMap<CCNode, HashElement>.Entry e = targets.firstValue(); e != null; e = targets.nextValue(e)) { HashElement currentTarget = e.getValue(); if(currentTarget == null) continue; if (!currentTarget.paused) { ...
diff --git a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/VermessungFlurstueckSelectionDialog.java b/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/VermessungFlurstueckSelectionDialog.java index a76728c0..d48e115a 100644 --- a/src/main/java/de/cismet/cids/custom/objecteditors/wunda_blau/Ve...
false
true
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; pnlContainer = new javax.swing.JPanel(); cboGemarkung = new javax.swing.JComboBox(); pnlControls = new javax.swing.JPanel(); btnCancel = new javax.swing.JButton(); btnOK = new javax.swing...
private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; pnlContainer = new javax.swing.JPanel(); cboGemarkung = new javax.swing.JComboBox(); pnlControls = new javax.swing.JPanel(); btnCancel = new javax.swing.JButton(); btnOK = new javax.swing...
diff --git a/src/org/waynak/hackathon/EventsActivity.java b/src/org/waynak/hackathon/EventsActivity.java index e07424a..b8563ed 100755 --- a/src/org/waynak/hackathon/EventsActivity.java +++ b/src/org/waynak/hackathon/EventsActivity.java @@ -1,115 +1,115 @@ package org.waynak.hackathon; import android.app.Activity; ...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.events); ImageView iv = (ImageView) this.findViewById(R.id.descImg); TextView tv = (TextView) this.findViewById(R.id.descTv); /* public static final String NYUAD = "NYU Abu Dhabi"; ...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.events); ImageView iv = (ImageView) this.findViewById(R.id.descImg); TextView tv = (TextView) this.findViewById(R.id.descTv); /* public static final String NYUAD = "NYU Abu Dhabi"; ...
diff --git a/cobertura/src/net/sourceforge/cobertura/instrument/CoberturaInstrumenter.java b/cobertura/src/net/sourceforge/cobertura/instrument/CoberturaInstrumenter.java index bee0ae5..efe6067 100644 --- a/cobertura/src/net/sourceforge/cobertura/instrument/CoberturaInstrumenter.java +++ b/cobertura/src/net/sourceforge...
true
true
public InstrumentationResult instrumentClass(InputStream inputStream) throws IOException{ ClassReader cr0 = new ClassReader(inputStream); ClassWriter cw0 = new ClassWriter(0); DetectIgnoredCodeClassVisitor detectIgnoredCv = new DetectIgnoredCodeClassVisitor(cw0, ignoreTrivial, ignoreMethodAnnotations); Dete...
public InstrumentationResult instrumentClass(InputStream inputStream) throws IOException{ ClassReader cr0 = new ClassReader(inputStream); ClassWriter cw0 = new ClassWriter(0); DetectIgnoredCodeClassVisitor detectIgnoredCv = new DetectIgnoredCodeClassVisitor(cw0, ignoreTrivial, ignoreMethodAnnotations); Dete...
diff --git a/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java b/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java index e5b830b25..0450aedeb 100644 --- a/weaver/testsrc/org/aspectj/weaver/reflect/ReflectionBasedReferenceTypeDelegateTest.java +...
false
true
public void testCompareSubclassDelegates() { boolean barfIfClinitMissing = false; world.setBehaveInJava5Way(true); BcelWorld bcelWorld = new BcelWorld(getClass().getClassLoader(),IMessageHandler.THROW,null); bcelWorld.setBehaveInJava5Way(true); UnresolvedType java...
public void testCompareSubclassDelegates() { boolean barfIfClinitMissing = false; world.setBehaveInJava5Way(true); BcelWorld bcelWorld = new BcelWorld(getClass().getClassLoader(),IMessageHandler.THROW,null); bcelWorld.setBehaveInJava5Way(true); UnresolvedType java...
diff --git a/src/com/UBC417/A1/Tests/TestSeatReservation.java b/src/com/UBC417/A1/Tests/TestSeatReservation.java index d9b32d7..6e763de 100644 --- a/src/com/UBC417/A1/Tests/TestSeatReservation.java +++ b/src/com/UBC417/A1/Tests/TestSeatReservation.java @@ -1,52 +1,53 @@ package com.UBC417.A1.Tests; import java.io.I...
false
true
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { // Get parameters //Key FlightKey = KeyFactory.stringToKey(req.getParameter("FlightName")); String FlightID = req.getParameter("FlightName"); String FirstName = req.getParameter("FirstName"); Strin...
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { // Get parameters Key FlightKey = KeyFactory.stringToKey(req.getParameter("FlightName")); String FlightID = FlightKey.getName(); //String FlightID = req.getParameter("FlightName"); String FirstName...
diff --git a/src/java/tests/net/sf/jabref/export/layout/LayoutTest.java b/src/java/tests/net/sf/jabref/export/layout/LayoutTest.java index f8c1cc307..cb98fe329 100644 --- a/src/java/tests/net/sf/jabref/export/layout/LayoutTest.java +++ b/src/java/tests/net/sf/jabref/export/layout/LayoutTest.java @@ -1,108 +1,108 @@ pa...
true
true
public void testHTMLChar() throws Exception { String layoutText = layout("\\begin{author}\\format[HTMLChars]{\\author}\\end{author} ", "@other{bla, author={This\nis\na\ntext}}"); assertEquals("This is a text ", layoutText); layoutText = layout("\\begin{author}\\format[HTMLChars]{\\author}\\end{author}", ...
public void testHTMLChar() throws Exception { String layoutText = layout("\\begin{author}\\format[HTMLChars]{\\author}\\end{author} ", "@other{bla, author={This\nis\na\ntext}}"); assertEquals("This is a text ", layoutText); layoutText = layout("\\begin{author}\\format[HTMLChars]{\\author}\\end{author}", ...
diff --git a/src/main/java/com/geNAZt/RegionShop/Data/Tasks/DisplayItemOverChest.java b/src/main/java/com/geNAZt/RegionShop/Data/Tasks/DisplayItemOverChest.java index 4747500..f9abafb 100644 --- a/src/main/java/com/geNAZt/RegionShop/Data/Tasks/DisplayItemOverChest.java +++ b/src/main/java/com/geNAZt/RegionShop/Data/Tas...
true
true
public void run() { List<Chest> chestList = Database.getServer().find(Chest.class).findList(); for(final Chest chest : chestList) { boolean found = false; for (Entity ent : Bukkit.getWorld(chest.getWorld()).getEntities()) { if(ent.getLocation().getBlockY() =...
public void run() { List<Chest> chestList = Database.getServer().find(Chest.class).findList(); for(final Chest chest : chestList) { boolean found = false; for (Entity ent : Bukkit.getWorld(chest.getWorld()).getEntities()) { if(ent.getLocation().getBlockY() =...
diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java index 0418e6728..a5942ca70 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/TreeWalker.java @@ -1,5...
true
true
private void process(File aFile) { // check if already checked and passed the file final String fileName = aFile.getPath(); final long timestamp = aFile.lastModified(); if (mCache.alreadyChecked(fileName, timestamp)) { return; } mMessages.reset(); ...
private void process(File aFile) { // check if already checked and passed the file final String fileName = aFile.getPath(); final long timestamp = aFile.lastModified(); if (mCache.alreadyChecked(fileName, timestamp)) { return; } mMessages.reset(); ...
diff --git a/src/main/java/no/mesan/ejafjallajokull/servlets/NyBrukerServlet.java b/src/main/java/no/mesan/ejafjallajokull/servlets/NyBrukerServlet.java index fc8011b..fe3dd1d 100644 --- a/src/main/java/no/mesan/ejafjallajokull/servlets/NyBrukerServlet.java +++ b/src/main/java/no/mesan/ejafjallajokull/servlets/NyBruker...
true
true
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String navn = request.getParameter("navn"); String brukerid = request.getParameter("brukerid"); String passord = request.getParameter("passord"); String sql = "INSERT INTO bruker VALUES(...
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String navn = request.getParameter("navn"); String brukerid = request.getParameter("brukerid"); String passord = request.getParameter("passord"); String sql = "INSERT INTO bruker VALUES(...
diff --git a/android/src/com/google/zxing/client/android/ResultHandler.java b/android/src/com/google/zxing/client/android/ResultHandler.java index 190cb73e..fc05b37b 100755 --- a/android/src/com/google/zxing/client/android/ResultHandler.java +++ b/android/src/com/google/zxing/client/android/ResultHandler.java @@ -1,130...
true
true
private static Intent resultToIntent(ParsedReaderResult result) { Intent intent = null; ParsedReaderResultType type = result.getType(); if (type.equals(ParsedReaderResultType.ADDRESSBOOK)) { AddressBookDoCoMoParsedResult addressResult = (AddressBookDoCoMoParsedResult) result; intent = new Inte...
private static Intent resultToIntent(ParsedReaderResult result) { Intent intent = null; ParsedReaderResultType type = result.getType(); if (type.equals(ParsedReaderResultType.ADDRESSBOOK)) { AddressBookDoCoMoParsedResult addressResult = (AddressBookDoCoMoParsedResult) result; intent = new Inte...
diff --git a/src/java/org/astrogrid/samp/Message.java b/src/java/org/astrogrid/samp/Message.java index 6b7f2e0..8b159a8 100644 --- a/src/java/org/astrogrid/samp/Message.java +++ b/src/java/org/astrogrid/samp/Message.java @@ -1,155 +1,156 @@ package org.astrogrid.samp; import java.util.HashMap; import java.util.Map...
true
true
public Object getRequiredParam( String name ) { Object param = getParam( name ); if ( param != null ) { return param; } else { throw new DataException( "Missing parameter " + name ); } }
public Object getRequiredParam( String name ) { Object param = getParam( name ); if ( param != null ) { return param; } else { throw new DataException( "Required parameter \"" + name + "\" is missing" ); } }
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/group/ListIncludedGroups.java b/gerrit-server/src/main/java/com/google/gerrit/server/group/ListIncludedGroups.java index 392485740..3f28509ac 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/group/ListIncludedGroups.java +++ b/gerrit-ser...
true
true
public List<GroupInfo> apply(GroupResource rsrc) throws ResourceNotFoundException, OrmException { if (!rsrc.isInternal()) { throw new ResourceNotFoundException(rsrc.getGroupUUID().get()); } boolean ownerOfParent = rsrc.getControl().isOwner(); List<GroupInfo> included = Lists.newArrayList(...
public List<GroupInfo> apply(GroupResource rsrc) throws ResourceNotFoundException, OrmException { if (!rsrc.isInternal()) { throw new ResourceNotFoundException(rsrc.getGroupUUID().get()); } boolean ownerOfParent = rsrc.getControl().isOwner(); List<GroupInfo> included = Lists.newArrayList(...
diff --git a/lab_1/MatrixTransposer.java b/lab_1/MatrixTransposer.java index d11fbd1..be1a1bb 100644 --- a/lab_1/MatrixTransposer.java +++ b/lab_1/MatrixTransposer.java @@ -1,37 +1,37 @@ package javalabs.lab_1; import java.io.*; import java.util.*; // Класс MatrixTransposer. // Выполнения последовательность де...
false
true
public static void main(String[] args) { try { int rows = 1, columns = 1; Scanner s = new Scanner(System.in); System.out.print("Input matrix rows amount: "); rows = s.nextInt(); System.out.print("Input matrix columns amount: "); columns = s.nextInt(); Matrix matrix = new Matrix(rows, colum...
public static void main(String[] args) { try { int rows = 1, columns = 1; Scanner s = new Scanner(System.in); System.out.print("Input matrix rows amount: "); rows = s.nextInt(); System.out.print("Input matrix columns amount: "); columns = s.nextInt(); Matrix matrix = new Matrix(rows, colum...
diff --git a/android/src/com/google/zxing/client/android/ViewfinderView.java b/android/src/com/google/zxing/client/android/ViewfinderView.java index 8a52ba9c..fe70351e 100755 --- a/android/src/com/google/zxing/client/android/ViewfinderView.java +++ b/android/src/com/google/zxing/client/android/ViewfinderView.java @@ -1...
false
true
public void onDraw(Canvas canvas) { Rect frame = CameraManager.get().getFramingRect(); if (frame == null) { return; } int width = canvas.getWidth(); int height = canvas.getHeight(); // Draw the exterior (i.e. outside the framing rect) darkened paint.setColor(resultBitmap != null ? r...
public void onDraw(Canvas canvas) { CameraManager cameraManager = CameraManager.get(); if (cameraManager == null) { return; } Rect frame = cameraManager.getFramingRect(); if (frame == null) { return; } int width = canvas.getWidth(); int height = canvas.getHeight(); // ...
diff --git a/src/ibis/impl/messagePassing/SerializeSendPort.java b/src/ibis/impl/messagePassing/SerializeSendPort.java index fd87c577..928acc89 100644 --- a/src/ibis/impl/messagePassing/SerializeSendPort.java +++ b/src/ibis/impl/messagePassing/SerializeSendPort.java @@ -1,112 +1,112 @@ package ibis.ipl.impl.messagePas...
true
true
public void connect(ibis.ipl.ReceivePortIdentifier receiver, int timeout) throws IOException { // Reset all our previous connections so the // ObjectStream(BufferedStream()) may go through a stop/restart. if (obj_out != null) { obj_out.reset(); } Ibis.myIbis.lock(); try { // Add the new r...
public void connect(ibis.ipl.ReceivePortIdentifier receiver, long timeout) throws IOException { // Reset all our previous connections so the // ObjectStream(BufferedStream()) may go through a stop/restart. if (obj_out != null) { obj_out.reset(); } Ibis.myIbis.lock(); try { // Add the new ...
diff --git a/extras/appgen/src/org/example/antbook/xdoclet/FormTagsHandler.java b/extras/appgen/src/org/example/antbook/xdoclet/FormTagsHandler.java index 41b50b14..60c79987 100644 --- a/extras/appgen/src/org/example/antbook/xdoclet/FormTagsHandler.java +++ b/extras/appgen/src/org/example/antbook/xdoclet/FormTagsHandle...
false
true
public void forAllFields(String template, Properties attributes) throws XDocletException { XClass clazz = getCurrentClass(); Map setters = new LinkedHashMap(getFields(clazz)); for (Iterator iterator = setters.keySet().iterator(); iterator.hasNext();) { curFieldName = (String) ...
public void forAllFields(String template, Properties attributes) throws XDocletException { XClass clazz = getCurrentClass(); Map setters = new LinkedHashMap(getFields(clazz)); for (Iterator iterator = setters.keySet().iterator(); iterator.hasNext();) { curFieldName = (String) ...
diff --git a/plugins/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/impl/ParameterDefn.java b/plugins/org.eclipse.birt.data.aggregation/src/org/eclipse/birt/data/aggregation/impl/ParameterDefn.java index cfc453f05..d6addfec1 100644 --- a/plugins/org.eclipse.birt.data.aggregation/src/org/eclipse...
false
true
public boolean supportDataType( int dataType ) { if( dataType == DataType.ANY_TYPE || dataType == DataType.UNKNOWN_TYPE ) return true; for ( int i = 0; i < supportedDataTypes.length; i++ ) { if ( supportedDataTypes[i] == dataType ) { return true; } } return false; }
public boolean supportDataType( int dataType ) { if( dataType == DataType.UNKNOWN_TYPE ) return true; for ( int i = 0; i < supportedDataTypes.length; i++ ) { if ( supportedDataTypes[i] == DataType.ANY_TYPE || supportedDataTypes[i] == dataType ) { return true; } } return false; }
diff --git a/main/src/cgeo/geocaching/connector/ec/ECApi.java b/main/src/cgeo/geocaching/connector/ec/ECApi.java index 94936e461..d059813e8 100644 --- a/main/src/cgeo/geocaching/connector/ec/ECApi.java +++ b/main/src/cgeo/geocaching/connector/ec/ECApi.java @@ -1,226 +1,230 @@ package cgeo.geocaching.connector.ec; i...
false
true
public static LogResult postLog(final Geocache cache, final LogType logType, final Calendar date, final String log, boolean isRetry) { final Parameters params = new Parameters("cache_id", cache.getGeocode()); params.add("type", logType.type); params.add("log", log); params.add("date"...
public static LogResult postLog(final Geocache cache, final LogType logType, final Calendar date, final String log, boolean isRetry) { final Parameters params = new Parameters("cache_id", cache.getGeocode()); params.add("type", logType.type); params.add("log", log); params.add("date"...
diff --git a/src/com/nullprogram/wheel/ChaosWheel.java b/src/com/nullprogram/wheel/ChaosWheel.java index 79b731c..d84b64a 100644 --- a/src/com/nullprogram/wheel/ChaosWheel.java +++ b/src/com/nullprogram/wheel/ChaosWheel.java @@ -1,434 +1,434 @@ /* Copyright (c) 2010 Christopher Wellons <mosquitopsu@gmail.com> * * ...
true
true
public final void updateState(final double tdot) { /* Store the original system state */ double thetaOrig = theta; double thetadotOrig = thetadot; Vector<Double> bucketsOrig = (Vector<Double>) buckets.clone(); /* These are variables needed for intermediate steps in RK4 */ ...
public final void updateState(final double tdot) { /* Store the original system state */ double thetaOrig = theta; double thetadotOrig = thetadot; Vector<Double> bucketsOrig = new Vector<Double>(buckets); /* These are variables needed for intermediate steps in RK4 */ ...
diff --git a/java/pdfclown.lib/src/org/pdfclown/tokens/PdfDocEncoding.java b/java/pdfclown.lib/src/org/pdfclown/tokens/PdfDocEncoding.java index 1d0b109..541523d 100644 --- a/java/pdfclown.lib/src/org/pdfclown/tokens/PdfDocEncoding.java +++ b/java/pdfclown.lib/src/org/pdfclown/tokens/PdfDocEncoding.java @@ -1,127 +1,12...
true
true
private PdfDocEncoding( ) { chars = new BiMap<Integer,Character>() { private static final long serialVersionUID = 1L; private boolean isIdentity( int code ) {return code < 128 || (code > 160 && code < 256);} @Override public synchronized Character get( ...
private PdfDocEncoding( ) { chars = new BiMap<Integer,Character>() { private static final long serialVersionUID = 1L; private boolean isIdentity( int code ) {return code < 128 || (code > 160 && code < 256);} @Override public synchronized Character get( ...
diff --git a/iteration/ui/src/test/integration/org/richfaces/component/extendedDataTable/TestTableState.java b/iteration/ui/src/test/integration/org/richfaces/component/extendedDataTable/TestTableState.java index 408a862bc..69dce72aa 100644 --- a/iteration/ui/src/test/integration/org/richfaces/component/extendedDataTab...
true
true
private static FaceletAsset getPage(String edtAttributes) { FaceletAsset p = new FaceletAsset(); p.xmlns("rich", "http://richfaces.org/iteration"); p.xmlns("a4j", "http://richfaces.org/a4j"); p.body("<script type='text/javascript'>"); p.body("function sortEdt(currentSortOrde...
private static FaceletAsset getPage(String edtAttributes) { FaceletAsset p = new FaceletAsset(); p.xmlns("rich", "http://richfaces.org/iteration"); p.xmlns("a4j", "http://richfaces.org/a4j"); p.body("<script type='text/javascript'>"); p.body("function sortEdt(currentSortOrde...
diff --git a/source/ch/cyberduck/core/AbstractProxy.java b/source/ch/cyberduck/core/AbstractProxy.java index cfe78fce9..cd07be4da 100644 --- a/source/ch/cyberduck/core/AbstractProxy.java +++ b/source/ch/cyberduck/core/AbstractProxy.java @@ -1,69 +1,69 @@ package ch.cyberduck.core; /* * Copyright (c) 2002-2009 Dav...
true
true
public void configure(final Host host) { Properties properties = System.getProperties(); if(this.isSOCKSProxyEnabled() && !this.isHostExcluded(host.getHostname())) { // Indicates the name of the SOCKS proxy server and the port number // that will be used by the SOCKS protocol...
public void configure(final Host host) { Properties properties = System.getProperties(); if(this.isSOCKSProxyEnabled() && !this.isHostExcluded(host.getHostname())) { // Indicates the name of the SOCKS proxy server and the port number // that will be used by the SOCKS protocol...
diff --git a/plugins/org.bonitasoft.studio.actors/src/org/bonitasoft/studio/actors/ui/section/ProcessActorsPropertySection.java b/plugins/org.bonitasoft.studio.actors/src/org/bonitasoft/studio/actors/ui/section/ProcessActorsPropertySection.java index 40984efac5..ba7f84d737 100644 --- a/plugins/org.bonitasoft.studio.act...
true
true
public void createControls(Composite parent,TabbedPropertySheetPage aTabbedPropertySheetPage) { TabbedPropertySheetWidgetFactory widgetFactory = aTabbedPropertySheetPage.getWidgetFactory() ; super.createControls(parent, aTabbedPropertySheetPage) ; // parent.setLayoutData(GridDataFactory.fil...
public void createControls(Composite parent,TabbedPropertySheetPage aTabbedPropertySheetPage) { TabbedPropertySheetWidgetFactory widgetFactory = aTabbedPropertySheetPage.getWidgetFactory() ; super.createControls(parent, aTabbedPropertySheetPage) ; // parent.setLayoutData(GridDataFactory.fil...
diff --git a/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java b/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java index 675bdc6c4..b35261f78 100644 --- a/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java +++ b/java/engine/org/apache/derby/impl/store/raw/data/CachedPage.java...
false
true
private void writePage( PageKey identity, boolean syncMe) throws StandardException { // make subclass write the page format writeFormatId(identity); // let subclass have a chance to write any cached data to page data // array writePage(identity); // force WAL - and c...
private void writePage( PageKey identity, boolean syncMe) throws StandardException { // make subclass write the page format writeFormatId(identity); // let subclass have a chance to write any cached data to page data // array writePage(identity); // force WAL - and c...
diff --git a/Tanks/src/blueMaggot/BlueMaggot.java b/Tanks/src/blueMaggot/BlueMaggot.java index 8e4e0ea..4a01e75 100644 --- a/Tanks/src/blueMaggot/BlueMaggot.java +++ b/Tanks/src/blueMaggot/BlueMaggot.java @@ -1,185 +1,185 @@ package blueMaggot; import entity.Tank; import gfx.GBC; import gfx.GBC.Align; import gfx...
false
true
public BlueMaggot() { GameState.getInstance().init(); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setPreferredSize(new Dimension(GameState.getInstance().getWidth(), GameState.getInstance().getHeight() + 28)); setFocusable(true); setResizable(false); layeredPane.setBounds(0, 0, GameState.getInstance()...
public BlueMaggot() { GameState.getInstance().init(); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setPreferredSize(new Dimension(GameState.getInstance().getWidth(), GameState.getInstance().getHeight() + 28)); setFocusable(true); setResizable(false); layeredPane.setBounds(0, 0, GameState.getInstance()...
diff --git a/src/java/org/apache/poi/hssf/model/Sheet.java b/src/java/org/apache/poi/hssf/model/Sheet.java index c48166542..b99989cc9 100644 --- a/src/java/org/apache/poi/hssf/model/Sheet.java +++ b/src/java/org/apache/poi/hssf/model/Sheet.java @@ -1,2536 +1,2536 @@ /* ===============================================...
false
true
public static Sheet createSheet(List recs, int sheetnum, int offset) { log.logFormatted(log.DEBUG, "Sheet createSheet (existing file) with %", new Integer(recs.size())); Sheet retval = new Sheet(); ArrayList records ...
public static Sheet createSheet(List recs, int sheetnum, int offset) { log.logFormatted(log.DEBUG, "Sheet createSheet (existing file) with %", new Integer(recs.size())); Sheet retval = new Sheet(); ArrayList records ...
diff --git a/src/main/java/me/greatman/plugins/inn/IPlayerListener.java b/src/main/java/me/greatman/plugins/inn/IPlayerListener.java index eaa3010..41d3420 100644 --- a/src/main/java/me/greatman/plugins/inn/IPlayerListener.java +++ b/src/main/java/me/greatman/plugins/inn/IPlayerListener.java @@ -1,55 +1,52 @@ package ...
false
true
public void onPlayerInteract(PlayerInteractEvent event) { if (event.isCancelled()) return; Player player = event.getPlayer(); String playerName = player.getName(); if (!plugin.getPlayerData().containsKey(playerName)) { plugin.getPlayerData().put(playerName, n...
public void onPlayerInteract(PlayerInteractEvent event) { if (event.isCancelled()) return; Player player = event.getPlayer(); String playerName = player.getName(); if (!plugin.getPlayerData().containsKey(playerName)) { plugin.getPlayerData().put(playerName, n...
diff --git a/src/com/dmdirc/installer/ui/StepWelcome.java b/src/com/dmdirc/installer/ui/StepWelcome.java index 01ec3eff1..5c172eb4b 100644 --- a/src/com/dmdirc/installer/ui/StepWelcome.java +++ b/src/com/dmdirc/installer/ui/StepWelcome.java @@ -1,77 +1,77 @@ /* * Copyright (c) 2006-2010 Chris Smith, Shane Mc Cormack...
true
true
public StepWelcome(final String releaseName) { super(); setLayout(new BorderLayout()); add(new TextLabel( "Welcome to the " + releaseName + " installer. This program " + "will install DMDirc on this computer.\n\nDMDirc is a " + "cross-platfor...
public StepWelcome(final String releaseName) { super(); setLayout(new BorderLayout()); add(new TextLabel( "Welcome to the " + releaseName + " installer. This program " + "will install DMDirc on this computer.\n\nDMDirc is a " + "cross-platfor...
diff --git a/src/main/java/uk/ac/ebi/fgpt/sampletab/Accessioner.java b/src/main/java/uk/ac/ebi/fgpt/sampletab/Accessioner.java index c49250f3..75e561d3 100644 --- a/src/main/java/uk/ac/ebi/fgpt/sampletab/Accessioner.java +++ b/src/main/java/uk/ac/ebi/fgpt/sampletab/Accessioner.java @@ -1,371 +1,371 @@ package uk.ac.eb...
false
true
public SampleData convert(SampleData sampleIn) throws ParseException, SQLException { String table = null; String prefix = null; if (sampleIn.msi.submissionReferenceLayer == true) { prefix = "SAME"; table = "SAMPLE_REFERENCE"; } else if (sampleIn.msi.submission...
public SampleData convert(SampleData sampleIn) throws ParseException, SQLException { String table = null; String prefix = null; if (sampleIn.msi.submissionReferenceLayer == true) { prefix = "SAME"; table = "SAMPLE_REFERENCE"; } else if (sampleIn.msi.submission...
diff --git a/search/src/java/cz/incad/Kramerius/views/item/menu/ContextMenuItemsHolder.java b/search/src/java/cz/incad/Kramerius/views/item/menu/ContextMenuItemsHolder.java index 2e8c99257..2cd1d9edd 100644 --- a/search/src/java/cz/incad/Kramerius/views/item/menu/ContextMenuItemsHolder.java +++ b/search/src/java/cz/inc...
true
true
public void init() { String i18nServlet ="i18n"; items.add(new ContextMenuItem("administrator.menu.showmetadata", "", "viewMetadata", "", false)); items.add(new ContextMenuItem("administrator.menu.persistenturl", "", "persistentURL", "", true)); items.add(new Contex...
public void init() { String i18nServlet ="i18n"; items.add(new ContextMenuItem("administrator.menu.showmetadata", "", "viewMetadata", "", false)); items.add(new ContextMenuItem("administrator.menu.persistenturl", "", "persistentURL", "", true)); items.add(new Contex...
diff --git a/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/SiteEmailNotificationAnnc.java b/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/SiteEmailNotificationAnnc.java index b9ae1ef..7da3534 100644 --- a/announcement-impl/impl/src/java/org/sakaiproject/announcement/impl/SiteEm...
false
true
protected String htmlContent(Event event) { StringBuilder buf = new StringBuilder(); String newline = "<br />\n"; // get the message Reference ref = EntityManager.newReference(event.getResource()); AnnouncementMessage msg = (AnnouncementMessage) ref.getEntity(); AnnouncementMessageHeader hdr = (Announcem...
protected String htmlContent(Event event) { StringBuilder buf = new StringBuilder(); String newline = "<br />\n"; // get the message Reference ref = EntityManager.newReference(event.getResource()); AnnouncementMessage msg = (AnnouncementMessage) ref.getEntity(); AnnouncementMessageHeader hdr = (Announcem...
diff --git a/CASi/src/de/uniluebeck/imis/casi/ui/simplegui/InformationPanel.java b/CASi/src/de/uniluebeck/imis/casi/ui/simplegui/InformationPanel.java index 9b10ffa..42218cc 100644 --- a/CASi/src/de/uniluebeck/imis/casi/ui/simplegui/InformationPanel.java +++ b/CASi/src/de/uniluebeck/imis/casi/ui/simplegui/InformationPa...
true
true
private String getAgentInformation(Agent agent) { String info; if (agent.getCurrentAction() != null) { info = "Name: " + agent.getName() + "\n" + "Indentifier: " + agent.getIdentifier() + "\n" + "Status: " + agent.getState() + "\n" + "Current action: \n" + " - Name: " + agent.getCurrent...
private String getAgentInformation(Agent agent) { String info; if (agent.getCurrentAction() != null) { info = "Name: " + agent.getName() + "\n" + "Indentifier: " + agent.getIdentifier() + "\n" + "Status: " + agent.getState() + "\n" + "Current action: \n" + " - Name: " + agent.getCurrent...
diff --git a/src/org/pentaho/pac/server/datasources/DataSourceMgmtService.java b/src/org/pentaho/pac/server/datasources/DataSourceMgmtService.java index 174b9b3..0abe4cf 100644 --- a/src/org/pentaho/pac/server/datasources/DataSourceMgmtService.java +++ b/src/org/pentaho/pac/server/datasources/DataSourceMgmtService.java...
true
true
public void deleteDataSource(String jndiName) throws NonExistingDataSourceException, DAOException, PentahoSecurityException { IPentahoDataSource dataSource = dataSourceDAO.getDataSource(jndiName); if (jndiName != null) { deleteDataSource(jndiName); } else { throw new NonExistingDataSourceExcep...
public void deleteDataSource(String jndiName) throws NonExistingDataSourceException, DAOException, PentahoSecurityException { IPentahoDataSource dataSource = dataSourceDAO.getDataSource(jndiName); if (dataSource != null) { deleteDataSource(dataSource); } else { throw new NonExistingDataSourceE...
diff --git a/src/frontend/org/voltdb/planner/PlanAssembler.java b/src/frontend/org/voltdb/planner/PlanAssembler.java index 543f33470..4794fcd1a 100644 --- a/src/frontend/org/voltdb/planner/PlanAssembler.java +++ b/src/frontend/org/voltdb/planner/PlanAssembler.java @@ -1,1469 +1,1469 @@ /* This file is part of VoltDB. ...
true
true
AbstractPlanNode handleAggregationOperators(AbstractPlanNode root) { boolean containsAggregateExpression = false; AggregatePlanNode aggNode = null; /* Check if any aggregate expressions are present */ for (ParsedSelectStmt.ParsedColInfo col : m_parsedSelect.displayColumns) { ...
AbstractPlanNode handleAggregationOperators(AbstractPlanNode root) { boolean containsAggregateExpression = false; AggregatePlanNode aggNode = null; /* Check if any aggregate expressions are present */ for (ParsedSelectStmt.ParsedColInfo col : m_parsedSelect.displayColumns) { ...
diff --git a/plugins/org.fornax.soa.servicedsl/src/org/fornax/soa/scoping/ServiceDslScopeProvider.java b/plugins/org.fornax.soa.servicedsl/src/org/fornax/soa/scoping/ServiceDslScopeProvider.java index 625988a8..47818f12 100644 --- a/plugins/org.fornax.soa.servicedsl/src/org/fornax/soa/scoping/ServiceDslScopeProvider.ja...
true
true
protected AbstractPredicateVersionFilter<IEObjectDescription> getVersionFilterFromContext ( EObject ctx, final EReference reference) { if (reference==ServiceDslPackage.Literals.VERSIONED_TYPE_REF__TYPE && ctx instanceof VersionedTypeRef) { final VersionRef v = ((VersionedTypeRef) ctx).getVersionRef(); ...
protected AbstractPredicateVersionFilter<IEObjectDescription> getVersionFilterFromContext ( EObject ctx, final EReference reference) { if (reference==ServiceDslPackage.Literals.VERSIONED_TYPE_REF__TYPE && ctx instanceof VersionedTypeRef) { final VersionRef v = ((VersionedTypeRef) ctx).getVersionRef(); ...
diff --git a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java index 3dc0896c..6f897cbb 100644 --- a/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java +++ b/OsmAnd/src/net/osmand/plus/voice/TTSCommandPlayerImpl.java @@ -1,168 +1,168 @@ pack...
false
true
private void initializeEngine(final Context ctx, final Activity act) { if (mTts != null && mTtsContext != ctx) { internalClear(); } if (mTts == null) { mTtsContext = ctx; mTts = new TextToSpeech(ctx, new OnInitListener() { @Override public void onInit(int status) { if (status != TextToSpee...
private void initializeEngine(final Context ctx, final Activity act) { if (mTts != null && mTtsContext != ctx) { internalClear(); } if (mTts == null) { mTtsContext = ctx; mTts = new TextToSpeech(ctx, new OnInitListener() { @Override public void onInit(int status) { if (status != TextToSpee...
diff --git a/core/src/main/java/hudson/maven/MavenModuleSetBuild.java b/core/src/main/java/hudson/maven/MavenModuleSetBuild.java index ada305787..694677c8c 100644 --- a/core/src/main/java/hudson/maven/MavenModuleSetBuild.java +++ b/core/src/main/java/hudson/maven/MavenModuleSetBuild.java @@ -1,163 +1,163 @@ package hu...
true
true
protected Result doRun(final BuildListener listener) throws Exception { try { listener.getLogger().println("Parsing POMs"); List<PomInfo> poms = project.getWorkspace().act(new PomParser(listener,project.getRootPOM())); // update the module list ...
protected Result doRun(final BuildListener listener) throws Exception { try { listener.getLogger().println("Parsing POMs"); List<PomInfo> poms = project.getModuleRoot().act(new PomParser(listener,project.getRootPOM())); // update the module list ...
diff --git a/org.emftext.sdk.codegen.resource.ui/src/org/emftext/sdk/codegen/resource/ui/generators/ui/CompletionProcessorGenerator.java b/org.emftext.sdk.codegen.resource.ui/src/org/emftext/sdk/codegen/resource/ui/generators/ui/CompletionProcessorGenerator.java index 7e08083b0..d5c4a0edd 100644 --- a/org.emftext.sdk.c...
true
true
private void addComputeCompletionProposalsMethod(JavaComposite sc) { sc.add("public " + I_COMPLETION_PROPOSAL + "[] computeCompletionProposals(" + I_TEXT_VIEWER + " viewer, int offset) {"); sc.add(iTextResourceClassName + " textResource = resourceProvider.getResource();"); sc.add("String content = viewer.getDocu...
private void addComputeCompletionProposalsMethod(JavaComposite sc) { sc.add("public " + I_COMPLETION_PROPOSAL + "[] computeCompletionProposals(" + I_TEXT_VIEWER + " viewer, int offset) {"); sc.add(iTextResourceClassName + " textResource = resourceProvider.getResource();"); sc.add("if (textResource == null) {"); ...
diff --git a/app/src/main/java/com/f2prateek/dfg/model/DeviceProvider.java b/app/src/main/java/com/f2prateek/dfg/model/DeviceProvider.java index a84f63d..6a0830f 100644 --- a/app/src/main/java/com/f2prateek/dfg/model/DeviceProvider.java +++ b/app/src/main/java/com/f2prateek/dfg/model/DeviceProvider.java @@ -1,169 +1,16...
false
true
private static ArrayList<Device> generateDevices() { ArrayList<Device> devices = new ArrayList<Device>(); devices.add(new Device.Builder().setId("nexus_s") .setName("Nexus S") .setUrl("http://www.google.com/phone/detail/nexus-s") .setPhysicalSize(4.0f) .setDensity("HDPI") ...
private static ArrayList<Device> generateDevices() { ArrayList<Device> devices = new ArrayList<Device>(); devices.add(new Device.Builder().setId("nexus_s") .setName("Nexus S") .setUrl("http://www.google.com/phone/detail/nexus-s") .setPhysicalSize(4.0f) .setDensity("HDPI") ...
diff --git a/dwarfguide-core/src/test/java/ru/sid0renk0/dwarfguide/CreaturesXMLSerializerTest.java b/dwarfguide-core/src/test/java/ru/sid0renk0/dwarfguide/CreaturesXMLSerializerTest.java index 789f1f4..4f30dc2 100644 --- a/dwarfguide-core/src/test/java/ru/sid0renk0/dwarfguide/CreaturesXMLSerializerTest.java +++ b/dwarf...
false
true
public void testDeserialize() throws Exception { InputStream configXML = this.getClass().getClassLoader().getResourceAsStream("Memory.xml"); InputStream dwarvesXML = this.getClass().getClassLoader().getResourceAsStream("TestDwarves.xml"); DFHackConfiguration configuration = DFHackConfigurat...
public void testDeserialize() throws Exception { InputStream configXML = this.getClass().getClassLoader().getResourceAsStream("Memory.xml"); InputStream dwarvesXML = this.getClass().getClassLoader().getResourceAsStream("TestDwarves.xml"); DFHackConfiguration configuration = DFHackConfigurat...
diff --git a/src/test/java/org/atlasapi/remotesite/synd/SyndicationFeedClientTest.java b/src/test/java/org/atlasapi/remotesite/synd/SyndicationFeedClientTest.java index 0ed17e610..791cbc95a 100644 --- a/src/test/java/org/atlasapi/remotesite/synd/SyndicationFeedClientTest.java +++ b/src/test/java/org/atlasapi/remotesite...
true
true
public void testCanReadRssPodcast() throws Exception { String feedUrl = "http://downloads.bbc.co.uk/podcasts/radio4/bh/rss.xml"; SyndFeed feed = new SyndicationFeedClient().get(feedUrl); assertThat(feed.getTitle(), is("Broadcasting House")); assertThat(feed.getUri(), is(nullValue())); assertThat(feed.getL...
public void testCanReadRssPodcast() throws Exception { String feedUrl = "http://downloads.bbc.co.uk/podcasts/radio4/bh/rss.xml"; SyndFeed feed = new SyndicationFeedClient().get(feedUrl); assertThat(feed.getTitle(), is("Broadcasting House")); assertThat(feed.getUri(), is(nullValue())); assertThat(feed.getL...
diff --git a/BookEditor/src/main/java/syam/BookEditor/Command/CopyCommand.java b/BookEditor/src/main/java/syam/BookEditor/Command/CopyCommand.java index 8047c79..93315a0 100644 --- a/BookEditor/src/main/java/syam/BookEditor/Command/CopyCommand.java +++ b/BookEditor/src/main/java/syam/BookEditor/Command/CopyCommand.java...
true
true
public void execute() { ItemStack is = player.getItemInHand(); // Check inHand item if (is.getType() == Material.BOOK_AND_QUILL){ Actions.message(null, player, "&cコピーするためには本に署名する必要があります!"); return; } else if (is.getType() != Material.WRITTEN_BOOK){ Actions.message(null, player, "&c持っているアイテムが署名済みの本で...
public void execute() { ItemStack is = player.getItemInHand(); // Check inHand item if (is.getType() == Material.BOOK_AND_QUILL){ Actions.message(null, player, "&cコピーするためには本に署名する必要があります!"); return; } else if (is.getType() != Material.WRITTEN_BOOK){ Actions.message(null, player, "&c持っているアイテムが署名済みの本で...
diff --git a/src/nu/nerd/modreq/ModReq.java b/src/nu/nerd/modreq/ModReq.java index 1064cf1..1961eb5 100644 --- a/src/nu/nerd/modreq/ModReq.java +++ b/src/nu/nerd/modreq/ModReq.java @@ -1,455 +1,455 @@ package nu.nerd.modreq; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar;...
true
true
public boolean onCommand(CommandSender sender, Command command, String name, String[] args) { String senderName = ChatColor.stripColor(sender.getName()); if (sender instanceof ConsoleCommandSender) { senderName = "Console"; } if (command.getName().equalsIgnoreCase("modreq...
public boolean onCommand(CommandSender sender, Command command, String name, String[] args) { String senderName = ChatColor.stripColor(sender.getName()); if (sender instanceof ConsoleCommandSender) { senderName = "Console"; } if (command.getName().equalsIgnoreCase("modreq...
diff --git a/river/src/main/java/org/jboss/marshalling/river/RiverUnmarshaller.java b/river/src/main/java/org/jboss/marshalling/river/RiverUnmarshaller.java index 2c9ab7d..c229d9c 100644 --- a/river/src/main/java/org/jboss/marshalling/river/RiverUnmarshaller.java +++ b/river/src/main/java/org/jboss/marshalling/river/Ri...
true
true
Object doReadObject(int leadByte, final boolean unshared) throws IOException, ClassNotFoundException { depth ++; try { for (;;) switch (leadByte) { case ID_NULL: { return null; } case ID_REPEAT_OBJECT_FAR: { ...
Object doReadObject(int leadByte, final boolean unshared) throws IOException, ClassNotFoundException { depth ++; try { for (;;) switch (leadByte) { case ID_NULL: { return null; } case ID_REPEAT_OBJECT_FAR: { ...
diff --git a/src/org/apache/xerces/dom/DeferredAttrNSImpl.java b/src/org/apache/xerces/dom/DeferredAttrNSImpl.java index 619482cb..8fcfde19 100644 --- a/src/org/apache/xerces/dom/DeferredAttrNSImpl.java +++ b/src/org/apache/xerces/dom/DeferredAttrNSImpl.java @@ -1,182 +1,182 @@ /* * The Apache Software License, Vers...
true
true
protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); int attrQName = ownerDocument.getNodeName(fNodeIndex); StringPool pool = ownerDo...
protected void synchronizeData() { // no need to sync in the future needsSyncData(false); // fluff data DeferredDocumentImpl ownerDocument = (DeferredDocumentImpl) ownerDocument(); int attrQName = ownerDocument.getNodeName(fNodeIndex); StringPool pool = ownerDo...
diff --git a/client/src/net/sourceforge/guacamole/GuacamoleClient.java b/client/src/net/sourceforge/guacamole/GuacamoleClient.java index 37ced87..9086e0f 100644 --- a/client/src/net/sourceforge/guacamole/GuacamoleClient.java +++ b/client/src/net/sourceforge/guacamole/GuacamoleClient.java @@ -1,135 +1,135 @@ package ...
false
true
public Instruction nextInstruction(boolean blocking) throws GuacamoleException { try { // While we're blocking, or input is available while (blocking || input.ready()) { // If past threshold, resize buffer before reading if (usedLength > buffer.leng...
public Instruction nextInstruction(boolean blocking) throws GuacamoleException { try { // While we're blocking, or input is available do { // If past threshold, resize buffer before reading if (usedLength > buffer.length/2) { cha...
diff --git a/src/com/android/packageinstaller/PackageInstallerActivity.java b/src/com/android/packageinstaller/PackageInstallerActivity.java index d0c50fc9..4a6db210 100644 --- a/src/com/android/packageinstaller/PackageInstallerActivity.java +++ b/src/com/android/packageinstaller/PackageInstallerActivity.java @@ -1,689...
false
true
private void startInstallConfirm() { TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost); tabHost.setup(); ViewPager viewPager = (ViewPager)findViewById(R.id.pager); TabsAdapter adapter = new TabsAdapter(this, tabHost, viewPager); boolean permVisible = false; ...
private void startInstallConfirm() { TabHost tabHost = (TabHost)findViewById(android.R.id.tabhost); tabHost.setup(); ViewPager viewPager = (ViewPager)findViewById(R.id.pager); TabsAdapter adapter = new TabsAdapter(this, tabHost, viewPager); boolean permVisible = false; ...
diff --git a/src/gdp/racetrack/Main.java b/src/gdp/racetrack/Main.java index c57f769..dedbe53 100644 --- a/src/gdp/racetrack/Main.java +++ b/src/gdp/racetrack/Main.java @@ -1,247 +1,247 @@ package gdp.racetrack; import gdp.racetrack.Lists.ImplementationList; import gdp.racetrack.gui.MainFrame; import gdp.racetrac...
true
true
public static void main(String[] args) { boolean debugwindow = false; int i; for (i = 0; i < args.length; ++i) { if (args[i].equals("-d")) debugwindow = true; break; } if (debugwindow) Log.addDebugWindow(); if (args.length == i+1 && args[i].equals("test")) { test(); } else if (args.le...
public static void main(String[] args) { boolean debugwindow = false; int i; for (i = 0; i < args.length; ++i) { if (args[i].equals("-d")) debugwindow = true; else break; } if (debugwindow) Log.addDebugWindow(); if (args.length == i+1 && args[i].equals("test")) { test(); } else if (ar...
diff --git a/ContactManagerImpl.java b/ContactManagerImpl.java index f3b8361..2594b12 100644 --- a/ContactManagerImpl.java +++ b/ContactManagerImpl.java @@ -1,655 +1,655 @@ /** *The purpose of this assignment it writing a program to keep track of contacts and *meetings. The application will keep track of contacts, ...
true
true
private void launch() { Contact tseng = new ContactImpl("Tseng"); Contact reno = new ContactImpl("Reno"); Contact rude = new ContactImpl("Rude"); Contact elena = new ContactImpl("Elena"); Contact r2d2 = new ContactImpl("R2D2"); contactList.add(tseng); contactList.add(reno); contactList.add(rude); ...
private void launch() { Contact tseng = new ContactImpl("Tseng"); Contact reno = new ContactImpl("Reno"); Contact rude = new ContactImpl("Rude"); Contact elena = new ContactImpl("Elena"); Contact r2d2 = new ContactImpl("R2D2"); contactList.add(tseng); contactList.add(reno); contactList.add(rude); ...
diff --git a/src/main/java/org/jbei/ice/server/ModelToInfoFactory.java b/src/main/java/org/jbei/ice/server/ModelToInfoFactory.java index 9f013b104..e7de1a568 100755 --- a/src/main/java/org/jbei/ice/server/ModelToInfoFactory.java +++ b/src/main/java/org/jbei/ice/server/ModelToInfoFactory.java @@ -1,513 +1,514 @@ packag...
true
true
private static PartData getCommon(PartData info, Entry entry) { info.setId(entry.getId()); info.setRecordId(entry.getRecordId()); info.setPartId(entry.getPartNumber()); info.setName(entry.getName()); info.setOwner(entry.getOwner()); info.setOwnerEmail(entry.getOwnerEm...
private static PartData getCommon(PartData info, Entry entry) { info.setId(entry.getId()); info.setRecordId(entry.getRecordId()); info.setPartId(entry.getPartNumber()); info.setName(entry.getName()); info.setOwner(entry.getOwner()); info.setOwnerEmail(entry.getOwnerEm...
diff --git a/src/test/java/at/ikt/ckan/rest/PackageMetaRestletResourceSophisticatedTest.java b/src/test/java/at/ikt/ckan/rest/PackageMetaRestletResourceSophisticatedTest.java index b9efbd9..f6ca31b 100644 --- a/src/test/java/at/ikt/ckan/rest/PackageMetaRestletResourceSophisticatedTest.java +++ b/src/test/java/at/ikt/ck...
false
true
public void testWithFileSophisticatedFile() { PackageMetaRestletResource packageMetaResource = resourceFactory .createPackageMetaResource("hauptwohsitzbevolkerung-geschlecht-und-familienstand"); PackageMeta packageMeta = packageMetaResource.get(); System.out.println(packageMeta); assertEquals("hauptwohsi...
public void testWithFileSophisticatedFile() { PackageMetaRestletResource packageMetaResource = resourceFactory .createPackageMetaResource("hauptwohsitzbevolkerung-geschlecht-und-familienstand"); PackageMeta packageMeta = packageMetaResource.get(); System.out.println(packageMeta); assertEquals("hauptwohsi...
diff --git a/java/src/eu/semaine/components/mary/SemaineMary.java b/java/src/eu/semaine/components/mary/SemaineMary.java index b703acc5..e0594b8b 100644 --- a/java/src/eu/semaine/components/mary/SemaineMary.java +++ b/java/src/eu/semaine/components/mary/SemaineMary.java @@ -1,281 +1,281 @@ /** * Copyright (C) 2008 D...
false
true
private void speechBMLRealiser(SEMAINEMessage m) throws JMSException{ SEMAINEXMLMessage xm = (SEMAINEXMLMessage)m; Document input = xm.getDocument(); String inputText = xm.getText(); ByteArrayOutputStream ssmlos = new ByteArrayOutputStream(); try { //DocumentBuilderFactory factory = DocumentBuilde...
private void speechBMLRealiser(SEMAINEMessage m) throws JMSException{ SEMAINEXMLMessage xm = (SEMAINEXMLMessage)m; Document input = xm.getDocument(); String inputText = xm.getText(); ByteArrayOutputStream ssmlos = new ByteArrayOutputStream(); try { //DocumentBuilderFactory factory = DocumentBuilde...
diff --git a/h2/src/test/org/h2/test/unit/TestExit.java b/h2/src/test/org/h2/test/unit/TestExit.java index 33cb4cf60..433361299 100644 --- a/h2/src/test/org/h2/test/unit/TestExit.java +++ b/h2/src/test/org/h2/test/unit/TestExit.java @@ -1,141 +1,141 @@ /* * Copyright 2004-2009 H2 Group. Multiple-Licensed under the H...
true
true
public void test() throws Exception { if (config.codeCoverage || config.networked) { return; } deleteDb("exit"); String selfDestruct = SelfDestructor.getPropertyString(60); String[] procDef = new String[] { "java", selfDestruct, "-cp", "bin" + File...
public void test() throws Exception { if (config.codeCoverage || config.networked) { return; } deleteDb("exit"); String selfDestruct = SelfDestructor.getPropertyString(60); String[] procDef = new String[] { "java", selfDestruct, "-cp", getClassPath...
diff --git a/CadeBuildOrders/src/com/yarakyo/cadebuildorders/RunElement.java b/CadeBuildOrders/src/com/yarakyo/cadebuildorders/RunElement.java index 875bf39..7b44f97 100644 --- a/CadeBuildOrders/src/com/yarakyo/cadebuildorders/RunElement.java +++ b/CadeBuildOrders/src/com/yarakyo/cadebuildorders/RunElement.java @@ -1,1...
true
true
RunElement(Action action, Context context) { this.context = context; this.action = action; // Initialise all UI Variables textViewRunActionDescription = new TextView(context); textViewRunActionDescription.setText(action.getActionDescription()); textViewRunActionDescription.setTextSize(TypedValue.COMPLEX_...
RunElement(Action action, Context context) { this.context = context; this.action = action; // Initialise all UI Variables textViewRunActionDescription = new TextView(context); textViewRunActionDescription.setText(action.getActionDescription()); textViewRunActionDescription.setTextSize(TypedValue.COMPLEX_...
diff --git a/src/com/github/marco9999/directtalk/MessageWindow.java b/src/com/github/marco9999/directtalk/MessageWindow.java index e206067..eaaf9d5 100644 --- a/src/com/github/marco9999/directtalk/MessageWindow.java +++ b/src/com/github/marco9999/directtalk/MessageWindow.java @@ -1,58 +1,58 @@ package com.github.marco...
true
true
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_message_window); Intent menuintent = getIntent(); String hoststring = null; String portstring = null; Bundle ConnectInfo = menuintent.getExtras(); if (ConnectInfo != null) { h...
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_message_window); Intent menuintent = getIntent(); String hoststring = null; String portstring = null; Bundle ConnectInfo = menuintent.getExtras(); if (ConnectInfo != null) { h...
diff --git a/gora-core/src/main/java/org/gora/compiler/GoraCompiler.java b/gora-core/src/main/java/org/gora/compiler/GoraCompiler.java index ae6fa0f..a29c16b 100644 --- a/gora-core/src/main/java/org/gora/compiler/GoraCompiler.java +++ b/gora-core/src/main/java/org/gora/compiler/GoraCompiler.java @@ -1,433 +1,433 @@ pa...
true
true
private void compile(Schema schema) throws IOException { startFile(schema.getName(), schema.getNamespace()); try { switch (schema.getType()) { case RECORD: String type = type(schema); line(0, "public class "+ type +" extends PersistentBase {"); // schema defini...
private void compile(Schema schema) throws IOException { startFile(schema.getName(), schema.getNamespace()); try { switch (schema.getType()) { case RECORD: String type = type(schema); line(0, "public class "+ type +" extends PersistentBase {"); // schema defini...
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/ast/databuilder/statement/LocalVariableDeclarationStatementBuilder.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/ast/databuilder/statement/LocalVariableDeclarationStatementBuilder.java index 86f1cae9..523e4910 100644 --- a/main/src/jp/ac/osaka_u/ist/...
false
true
private UnresolvedVariableDeclarationStatementInfo buildVariableDeclarationStatement( final UnresolvedLocalVariableUsageInfo declarationUsage, final UnresolvedExpressionInfo<? extends ExpressionInfo> initializerExpression, final int fromLine, final int fromColumn, final int toLin...
private UnresolvedVariableDeclarationStatementInfo buildVariableDeclarationStatement( final UnresolvedLocalVariableUsageInfo declarationUsage, final UnresolvedExpressionInfo<? extends ExpressionInfo> initializerExpression, final int fromLine, final int fromColumn, final int toLin...
diff --git a/src/gameEngine/GameEngineInterface.java b/src/gameEngine/GameEngineInterface.java index ab25aa1..016b954 100644 --- a/src/gameEngine/GameEngineInterface.java +++ b/src/gameEngine/GameEngineInterface.java @@ -1,126 +1,126 @@ package gameEngine; import java.util.Scanner; import table.*; import partic...
true
true
public void gameMenu() { Scanner keyboard = new Scanner(System.in); while (menuChoice != EXIT) { System.out.println("-----Blackjack-----"); System.out.println("1. Play a round"); System.out.println("2. Add Player"); System.out.println("3. Add Spectator"); System.out.println("4. Save Game"); Sy...
public void gameMenu() { Scanner keyboard = new Scanner(System.in); while (menuChoice != EXIT) { System.out.println("-----Blackjack-----"); System.out.println("1. Play a round"); System.out.println("2. Add Player"); System.out.println("3. Add Spectator"); System.out.println("4. Save Game"); Sy...
diff --git a/src/main/java/org/bloodtorrent/resources/SuccessStoryResource.java b/src/main/java/org/bloodtorrent/resources/SuccessStoryResource.java index e77d527..a53acad 100644 --- a/src/main/java/org/bloodtorrent/resources/SuccessStoryResource.java +++ b/src/main/java/org/bloodtorrent/resources/SuccessStoryResource....
false
true
public Integer numberOfStories() throws IllegalDataException { int size = repository.list().size(); if(size > 3) throw new IllegalDataException("At most 3 Success Stories should be shown."); return size; }
public Integer numberOfStories() throws IllegalDataException { int size = repository.list().size(); if(size > 3) { throw new IllegalDataException("At most 3 Success Stories should be shown."); } return size; }
diff --git a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/ast/statemanager/innerblock/SimpleBlockStateManager.java b/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/ast/statemanager/innerblock/SimpleBlockStateManager.java index 41579989..ec5a9e17 100644 --- a/main/src/jp/ac/osaka_u/ist/sel/metricstool/main/ast/state...
true
true
protected boolean isDefinitionEvent(final AstVisitEvent event) { AstToken parentToken = event.getParentToken(); return event.getToken().isBlock() && !parentToken.isBlockDefinition() && !parentToken.isSynchronized(); }
protected boolean isDefinitionEvent(final AstVisitEvent event) { AstToken parentToken = event.getParentToken(); return event.getToken().isBlock() && !parentToken.isBlockDefinition() && !parentToken.isSynchronized() && !parentToken.isInstantiation(); }
diff --git a/modules/weblounge-contentrepository/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/SearchIndex.java b/modules/weblounge-contentrepository/src/main/java/ch/entwine/weblounge/contentrepository/impl/index/SearchIndex.java index 0be774646..386de359b 100644 --- a/modules/weblounge-contentreposi...
true
true
public SearchResult getByQuery(SearchQuery query) throws ContentRepositoryException { logger.debug("Searching index using query '{}'", query); // See if the index version exists and check if it matches. String indexName = query.getSite().getIdentifier(); SearchRequestBuilder requestBuilder = n...
public SearchResult getByQuery(SearchQuery query) throws ContentRepositoryException { logger.debug("Searching index using query '{}'", query); // See if the index version exists and check if it matches. String indexName = query.getSite().getIdentifier(); SearchRequestBuilder requestBuilder = n...
diff --git a/common/src/main/java/org/jboss/jca/common/annotations/Annotations.java b/common/src/main/java/org/jboss/jca/common/annotations/Annotations.java index a0b78975c..56b2bcca8 100644 --- a/common/src/main/java/org/jboss/jca/common/annotations/Annotations.java +++ b/common/src/main/java/org/jboss/jca/common/anno...
true
true
private Connector attachConnector(String raClass, ClassLoader classLoader, javax.resource.spi.Connector conAnnotation, ArrayList<ConnectionDefinition> connectionDefinitions, ArrayList<ConfigProperty16> conf...
private Connector attachConnector(String raClass, ClassLoader classLoader, javax.resource.spi.Connector conAnnotation, ArrayList<ConnectionDefinition> connectionDefinitions, ArrayList<ConfigProperty16> conf...
diff --git a/ds/mods/CCLights2/CCLights2.java b/ds/mods/CCLights2/CCLights2.java index 9a7eb46..dfa9cef 100644 --- a/ds/mods/CCLights2/CCLights2.java +++ b/ds/mods/CCLights2/CCLights2.java @@ -1,92 +1,92 @@ package ds.mods.CCLights2; import net.minecraft.block.Block; import net.minecraft.block.material.Material; ...
true
true
public void load(FMLInitializationEvent event) { NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler()); gpu = new BlockGPU(542, Material.iron); //gpu.setTextureFile("/ds/mods/CCLights2/texture/terrain.png"); //gpu.blockIndexInTexture = 0; GameRegistry.registerBlock(gpu, "CCLGPU"); Ga...
public void load(FMLInitializationEvent event) { NetworkRegistry.instance().registerGuiHandler(this, new GuiHandler()); gpu = new BlockGPU(542, Material.iron); //gpu.setTextureFile("/ds/mods/CCLights2/texture/terrain.png"); //gpu.blockIndexInTexture = 0; GameRegistry.registerBlock(gpu, "CCLGPU"); Ga...
diff --git a/java/src/Align.java b/java/src/Align.java index 5f14a7b..17692a9 100644 --- a/java/src/Align.java +++ b/java/src/Align.java @@ -1,921 +1,921 @@ /* * LICENSE to be determined */ package srma; import java.util.*; import net.sf.samtools.*; import net.sf.picard.reference.*; import srma.*; public...
true
true
public static void align(Graph graph, SAMRecord rec, Node recNode, ReferenceSequence sequence, SAMProgramRecord programRecord, int offset, AlleleCoverageCutoffs alleleCoverageCutoffs, boolean correctBases, boolean useSequenceQualities, ...
public static void align(Graph graph, SAMRecord rec, Node recNode, ReferenceSequence sequence, SAMProgramRecord programRecord, int offset, AlleleCoverageCutoffs alleleCoverageCutoffs, boolean correctBases, boolean useSequenceQualities, ...
diff --git a/htroot/Blacklist_p.java b/htroot/Blacklist_p.java index 34bb67887..afb7a597f 100644 --- a/htroot/Blacklist_p.java +++ b/htroot/Blacklist_p.java @@ -1,596 +1,601 @@ // Blacklist_p.java // ----------------------- // part of YaCy // (C) by Michael Peter Christen; mc@yacy.net // first published on http:/...
true
true
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { // initialize the list manager listManager.switchboard = (plasmaSwitchboard) env; listManager.listsPath = new File(listManager.switchboard.getRootPath(),listMan...
public static serverObjects respond(final httpRequestHeader header, final serverObjects post, final serverSwitch<?> env) { // initialize the list manager listManager.switchboard = (plasmaSwitchboard) env; listManager.listsPath = new File(listManager.switchboard.getRootPath(),listMan...
diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java index 2746ba91..18afb62e 100644 --- a/vlc-android/src/org/videolan/vlc/AudioService.java +++ b/vlc-android/src/org/videolan/vlc/AudioService.java @@ -1,1158 +1,1160 @@ /*********************************...
true
true
public void handleMessage(Message msg) { AudioService service = getOwner(); if(service == null) return; switch (msg.getData().getInt("event")) { case EventHandler.MediaPlayerPlaying: Log.i(TAG, "MediaPlayerPlaying"); i...
public void handleMessage(Message msg) { AudioService service = getOwner(); if(service == null) return; switch (msg.getData().getInt("event")) { case EventHandler.MediaPlayerPlaying: Log.i(TAG, "MediaPlayerPlaying"); i...
diff --git a/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java b/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/navigation/DataRepoSitetreeResource.java index cf3874d8b..02896f766 100644 --- a/src/contr...
true
true
private String getNodeAsXML(String path) { boolean showAllSubnodes = true; try { if (getResourceConfigProperty("show-all-subnodes") != null) { showAllSubnodes = Boolean.valueOf(getResourceConfigProperty("show-all-subnodes")).booleanValue(); } } catch (...
private String getNodeAsXML(String path) { boolean showAllSubnodes = true; try { if (getResourceConfigProperty("show-all-subnodes") != null) { showAllSubnodes = Boolean.valueOf(getResourceConfigProperty("show-all-subnodes")).booleanValue(); } } catch (...
diff --git a/geobatch/modules/src/test/java/it/geosolutions/geobatch/destination/TargetTest.java b/geobatch/modules/src/test/java/it/geosolutions/geobatch/destination/TargetTest.java index 52e7b46..4479b0e 100644 --- a/geobatch/modules/src/test/java/it/geosolutions/geobatch/destination/TargetTest.java +++ b/geobatch/mo...
true
true
public void testImportTarget() throws IOException { String input = "D:\\Develop\\GEOBATCH_CONFIG\\temp\\importBersagliVettoriali\\20130321-140630-066\\0_Ds2dsGeneratorService\\output.xml"; FeatureConfiguration cfg = FeatureConfiguration.fromXML(new FileInputStream(input)); VectorTarget target = new VectorTarget(...
public void testImportTarget() throws IOException { String input = "D:\\Develop\\GEOBATCH_CONFIG\\temp\\importBersagliVettoriali\\20130321-140630-066\\0_Ds2dsGeneratorService\\output.xml"; FeatureConfiguration cfg = FeatureConfiguration.fromXML(new FileInputStream(input)); VectorTarget target = new VectorTarget(...
diff --git a/src/main/org/jboss/jms/util/XMLUtil.java b/src/main/org/jboss/jms/util/XMLUtil.java index b6a98c0a6..de0df203f 100644 --- a/src/main/org/jboss/jms/util/XMLUtil.java +++ b/src/main/org/jboss/jms/util/XMLUtil.java @@ -1,310 +1,310 @@ /** * JBoss, Home of Professional Open Source * * Distributable unde...
true
true
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } i...
public static void assertEquivalent(Node node, Node node2) { if (node == null) { throw new XMLRuntimeException("the first node to be compared is null"); } if (node2 == null) { throw new XMLRuntimeException("the second node to be compared is null"); } i...
diff --git a/waterken/syntax/src/org/waterken/syntax/Syntax.java b/waterken/syntax/src/org/waterken/syntax/Syntax.java index 869c291b..d466a50a 100644 --- a/waterken/syntax/src/org/waterken/syntax/Syntax.java +++ b/waterken/syntax/src/org/waterken/syntax/Syntax.java @@ -1,98 +1,98 @@ // Copyright 2008 Waterken Inc. un...
true
true
static public Constructor<?> deserializer(final Class<?> type) { for (Class<?> i = type; null != i; i = i.getSuperclass()) { // Check for an explicit deserializer constructor. for (final Constructor<?> c : Reflection.constructors(i)) { if (c.isAnnotationPresent(de...
static public Constructor<?> deserializer(final Class<?> type) { for (Class<?> i = type; null != i; i = i.getSuperclass()) { // Check for an explicit deserializer constructor. for (final Constructor<?> c : Reflection.constructors(i)) { if (c.isAnnotationPresent(de...
diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/response/QueryResponseTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/response/QueryResponseTest.java index 0de8662d2..b8230eff3 100644 --- a/solr/solrj/src/test/org/apache/solr/client/solrj/response/QueryResponseTest.java +++ b/solr/solrj/src/t...
true
true
public void testRangeFacets() throws Exception { XMLResponseParser parser = new XMLResponseParser(); InputStream is = new SolrResourceLoader(null, null).openResource("sampleDateFacetResponse.xml"); assertNotNull(is); Reader in = new InputStreamReader(is, "UTF-8"); NamedList<Object> response = pars...
public void testRangeFacets() throws Exception { XMLResponseParser parser = new XMLResponseParser(); InputStream is = new SolrResourceLoader(null, null).openResource("solrj/sampleDateFacetResponse.xml"); assertNotNull(is); Reader in = new InputStreamReader(is, "UTF-8"); NamedList<Object> response ...
diff --git a/src/main/java/pixlepix/minechem/common/recipe/DecomposerRecipeHandler.java b/src/main/java/pixlepix/minechem/common/recipe/DecomposerRecipeHandler.java index 1687430..add707d 100644 --- a/src/main/java/pixlepix/minechem/common/recipe/DecomposerRecipeHandler.java +++ b/src/main/java/pixlepix/minechem/common...
true
true
public DecomposerRecipe getRecipe(ItemStack input, int level) { for (DecomposerRecipe recipe : DecomposerRecipe.recipes) { if (Util.stacksAreSameKind(input, recipe.getInput())) return recipe; } if (level < 5) { ArrayList<Chemical> output = new ArrayList<Chemical>(); int foundRecipies = 0; for (Ob...
public DecomposerRecipe getRecipe(ItemStack input, int level) { for (DecomposerRecipe recipe : DecomposerRecipe.recipes) { if (Util.stacksAreSameKind(input, recipe.getInput())) return recipe; } if (level < 5) { ArrayList<Chemical> output = new ArrayList<Chemical>(); int foundRecipies = 0; for (Ob...
diff --git a/src/dev/mCraft/Coinz/GUI/KeyPadListener.java b/src/dev/mCraft/Coinz/GUI/KeyPadListener.java index 16056a7..adbce45 100644 --- a/src/dev/mCraft/Coinz/GUI/KeyPadListener.java +++ b/src/dev/mCraft/Coinz/GUI/KeyPadListener.java @@ -1,157 +1,157 @@ package dev.mCraft.Coinz.GUI; import org.bukkit.Bukkit; im...
true
true
public void onButtonClick(ButtonClickEvent event) { hook = KeypadPopup.hook; persistPass = PersistPasswords.hook; if (hook == null) { return; } button = event.getButton(); SpoutPlayer player = event.getPlayer(); Block block = player.getTargetBlock(null, 6); loc = block.getLocation(); if ...
public void onButtonClick(ButtonClickEvent event) { hook = KeypadPopup.hook; persistPass = PersistPasswords.hook; if (hook == null) { return; } button = event.getButton(); SpoutPlayer player = event.getPlayer(); Block block = player.getTargetBlock(null, 6); loc = block.getLocation(); if ...
diff --git a/src/test/java/org/elasticsearch/index/mapper/core/TokenCountFieldMapperTests.java b/src/test/java/org/elasticsearch/index/mapper/core/TokenCountFieldMapperTests.java index dad48295db8..502a0005ecc 100644 --- a/src/test/java/org/elasticsearch/index/mapper/core/TokenCountFieldMapperTests.java +++ b/src/test/...
false
true
public void testMerge() throws IOException { String stage1Mapping = XContentFactory.jsonBuilder().startObject() .startObject("person") .startObject("properties") .startObject("tc") .field("type", "token_count") ...
public void testMerge() throws IOException { String stage1Mapping = XContentFactory.jsonBuilder().startObject() .startObject("person") .startObject("properties") .startObject("tc") .field("type", "token_count") ...
diff --git a/src/com/btmura/android/reddit/app/MessageActivity.java b/src/com/btmura/android/reddit/app/MessageActivity.java index e81a3809..c74e4857 100644 --- a/src/com/btmura/android/reddit/app/MessageActivity.java +++ b/src/com/btmura/android/reddit/app/MessageActivity.java @@ -1,217 +1,216 @@ /* * Copyright (C)...
true
true
public void onLoadFinished(Loader<AccountResult> loader, AccountResult result) { if (Array.isEmpty(result.accountNames)) { finish(); return; } prefs = result.prefs; adapter.addMessageFilters(this); adapter.setAccountNames(result.accountNames); ...
public void onLoadFinished(Loader<AccountResult> loader, AccountResult result) { if (Array.isEmpty(result.accountNames)) { finish(); return; } prefs = result.prefs; adapter.addMessageFilters(this); adapter.setAccountNames(result.accountNames); ...
diff --git a/edu/cmu/sphinx/research/parallel/ParallelAcousticScorer.java b/edu/cmu/sphinx/research/parallel/ParallelAcousticScorer.java index 217c5b0b..91223708 100644 --- a/edu/cmu/sphinx/research/parallel/ParallelAcousticScorer.java +++ b/edu/cmu/sphinx/research/parallel/ParallelAcousticScorer.java @@ -1,173 +1,173 ...
true
true
public Scoreable calculateScores(List scoreableList) { assert scoreableList.size() > 0; try { FrontEnd frontEnd = getFrontEnd(scoreableList); Data data = frontEnd.getData(); if (data == null) { return null; } if (data instanceof DataStartSignal...
public Scoreable calculateScores(List scoreableList) { assert scoreableList.size() > 0; try { FrontEnd frontEnd = getFrontEnd(scoreableList); Data data = frontEnd.getData(); if (data == null) { return null; } if (data instanceof DataStartSignal...
diff --git a/src/com/dateengine/controllers/MessageServlet.java b/src/com/dateengine/controllers/MessageServlet.java index ebd5230..6e49dd9 100644 --- a/src/com/dateengine/controllers/MessageServlet.java +++ b/src/com/dateengine/controllers/MessageServlet.java @@ -1,120 +1,120 @@ package com.dateengine.controllers; ...
true
true
private void doSendMessage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String recipientId = request.getParameter("message.recipientKey"); Profile recipient; User currentUser = (User) request.getAttribute("user"); Profile sender = Profile...
private void doSendMessage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String recipientId = request.getParameter("message.recipientKey"); Profile recipient; User currentUser = (User) request.getAttribute("user"); Profile sender = Profile...
diff --git a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/algorithm/AStar.java b/opentripplanner-routing/src/main/java/org/opentripplanner/routing/algorithm/AStar.java index e21e7ea..1f1646c 100644 --- a/opentripplanner-routing/src/main/java/org/opentripplanner/routing/algorithm/AStar.java +++ b/op...
true
true
public static ShortestPathTree getShortestPathTreeBack(Graph graph, Vertex origin, Vertex target, State init, TraverseOptions options) { if (origin == null || target == null) { return null; } /* Run backwards from the target to the origin */ Vertex tmp = ori...
public static ShortestPathTree getShortestPathTreeBack(Graph graph, Vertex origin, Vertex target, State init, TraverseOptions options) { if (origin == null || target == null) { return null; } /* Run backwards from the target to the origin */ Vertex tmp = ori...
diff --git a/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleContentProvider.java b/plugins/org.jboss.tools.bpel.runtimes/src/org/jboss/tools/bpel/runtimes/ui/view/server/BPELModuleContentProvider.java index e9dae6a..189ce62 100644 --- a/plugins/org.jboss.tools.bpel.runt...
true
true
public Object[] getChildren(Object parentElement) { if( parentElement instanceof ModuleServer ) { IServer s = ((ModuleServer)parentElement).server; IModule[] module = ((ModuleServer)parentElement).module; IModule mod = module.length > 0 ? module[module.length-1] : null; String typeId = mod.getModuleType(...
public Object[] getChildren(Object parentElement) { if( parentElement instanceof ModuleServer ) { IServer s = ((ModuleServer)parentElement).server; IModule[] module = ((ModuleServer)parentElement).module; IModule mod = module.length > 0 ? module[module.length-1] : null; String typeId = mod.getModuleType(...
diff --git a/QuizWebsite/src/servlets/QuizResultServlet.java b/QuizWebsite/src/servlets/QuizResultServlet.java index 5398f6e..584f73b 100644 --- a/QuizWebsite/src/servlets/QuizResultServlet.java +++ b/QuizWebsite/src/servlets/QuizResultServlet.java @@ -1,69 +1,69 @@ package servlets; import java.io.IOException; im...
true
true
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Connection conn = (Connection) getServletContext().getAttribute("database"); int resultID = Integer.parseInt(request.getParameter("id")); try { Statement stmt = conn.createStatement(); ...
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Connection conn = (Connection) getServletContext().getAttribute("database"); int resultID = Integer.parseInt(request.getParameter("id")); try { Statement stmt = conn.createStatement(); ...
diff --git a/PaintroidTest/src/org/catrobat/paintroid/test/junit/tools/MoveZoomTest.java b/PaintroidTest/src/org/catrobat/paintroid/test/junit/tools/MoveZoomTest.java index abcef8dd..ab322c7d 100644 --- a/PaintroidTest/src/org/catrobat/paintroid/test/junit/tools/MoveZoomTest.java +++ b/PaintroidTest/src/org/catrobat/pa...
false
true
public void testMove() throws SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException { float screenWidth = getActivity().getWindowManager().getDefaultDisplay().getWidth(); float screenHeight = getActivity().getWindowManager().getDefaultDisplay().getHeight(); int offset = 50...
public void testMove() throws SecurityException, IllegalArgumentException, NoSuchFieldException, IllegalAccessException { float screenWidth = getActivity().getWindowManager().getDefaultDisplay().getWidth(); float screenHeight = getActivity().getWindowManager().getDefaultDisplay().getHeight(); float offset = ...
diff --git a/backend/src/com/mymed/model/data/interaction/MInteractionBean.java b/backend/src/com/mymed/model/data/interaction/MInteractionBean.java index 4e8c40439..b8a1e252f 100644 --- a/backend/src/com/mymed/model/data/interaction/MInteractionBean.java +++ b/backend/src/com/mymed/model/data/interaction/MInteractionB...
false
true
public boolean equals(final Object obj) { boolean equal = false; if (this == obj) { equal = true; } else if (obj instanceof MInteractionBean) { final MInteractionBean comparable = (MInteractionBean) obj; equal = true; if (application == null && comparable.getApplication() != nu...
public boolean equals(final Object obj) { boolean equal = false; if (this == obj) { equal = true; } else if (obj instanceof MInteractionBean) { final MInteractionBean comparable = (MInteractionBean) obj; equal = true; if (application == null && comparable.getApplication() != nu...
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/toggles/BluetoothToggle.java b/packages/SystemUI/src/com/android/systemui/statusbar/toggles/BluetoothToggle.java index 9c1b8be5..bd125a62 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/toggles/BluetoothToggle.java +++ b/packages/System...
true
true
public void init(Context c, int style) { super.init(c, style); BluetoothAdapter bt = BluetoothAdapter.getDefaultAdapter(); if (bt == null) { return; } boolean enabled = bt.isEnabled(); setIcon(enabled ? R.drawable.ic_qs_bluetooth_on : R.drawable.ic_qs_blu...
public void init(Context c, int style) { super.init(c, style); BluetoothAdapter bt = BluetoothAdapter.getDefaultAdapter(); if (bt == null) { return; } boolean enabled = bt.isEnabled(); setIcon(enabled ? R.drawable.ic_qs_bluetooth_not_connected : R.drawabl...
diff --git a/src/freemail/SlotManager.java b/src/freemail/SlotManager.java index 1eaae96..5290c9d 100644 --- a/src/freemail/SlotManager.java +++ b/src/freemail/SlotManager.java @@ -1,173 +1,182 @@ /* * SlotManager.java * This file is part of Freemail, copyright (C) 2006 Dave Baker * * This program is free soft...
false
true
public synchronized void slotUsed() { if (this.nextSlotNum <= this.slots.size()) { // it's one in the list. delete it and move the next // pointer down to point to the same one // (If nextSlotNum is 0, this should rightfully throw // an ArrayIndexOutOfBoundsException this.nextSlotNum--; Slot s = (S...
public synchronized void slotUsed() { if (this.nextSlotNum <= this.slots.size()) { // it's one in the list. delete it and move the next // pointer down to point to the same one // (If nextSlotNum is 0, this should rightfully throw // an ArrayIndexOutOfBoundsException this.nextSlotNum--; Slot s = (S...
diff --git a/src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesVariablesRetriever.java b/src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesVariablesRetriever.java index 32c27e7..449229c 100644 --- a/src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesVariablesRetriever.java +++ b...
true
true
public Map<String, String> call() throws Throwable { Map<String, String> result = new HashMap<String, String>(); PropertiesFileService propertiesFileService = new PropertiesFileService(); //Add the properties file if (info.getPropertiesFilePath() != null) { String scri...
public Map<String, String> call() throws Throwable { Map<String, String> result = new HashMap<String, String>(); PropertiesFileService propertiesFileService = new PropertiesFileService(); //Add the properties file if (info.getPropertiesFilePath() != null) { String scri...
diff --git a/src/net/analogyc/wordiary/models/DBAdapter.java b/src/net/analogyc/wordiary/models/DBAdapter.java index 3d5866a..dd271fd 100644 --- a/src/net/analogyc/wordiary/models/DBAdapter.java +++ b/src/net/analogyc/wordiary/models/DBAdapter.java @@ -1,234 +1,236 @@ package net.analogyc.wordiary.models; import ja...
true
true
public void addEntry(String text, int mood) { //create the current timestamp Date now = new Date(System.currentTimeMillis()); String DATE_FORMAT = "yyyyMMddHHmmss"; SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT, Locale.ITALY); String query = "SELECT * " + "FROM " + Day.TABLE_NAME + ...
public void addEntry(String text, int mood) { //create the current timestamp Date now = new Date(System.currentTimeMillis()); String DATE_FORMAT = "yyyyMMddHHmmss"; SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT, Locale.ITALY); String query = "SELECT * " + "FROM " + Day.TABLE_NAME + ...