id int64 1 49k | buggy stringlengths 34 37.5k | fixed stringlengths 2 37k |
|---|---|---|
38,201 | } else {
accessKey = userInfo;
}
}
AWSCredentialsProviderChain credentials = new AWSCredentialsProviderChain(
<BUG>new S3ABasicAWSCredentialsProvider(accessKey, secretKey),
new InstanceProfileCredentialsProvider(),
new S3AAnonymousAWSCredentialsProvider()
);</BUG>
bucket = name.getHost();
| new BasicAWSCredentialsProvider(accessKey, secretKey),
new AnonymousAWSCredentialsProvider()
|
38,202 |
awsConf.setSocketTimeout(conf.getInt(SOCKET_TIMEOUT, DEFAULT_SOCKET_TIMEOUT));
</BUG>
s3 = new AmazonS3Client(credentials, awsConf);
<BUG>maxKeys = conf.getInt(MAX_PAGING_KEYS, DEFAULT_MAX_PAGING_KEYS);
partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THR... | new InstanceProfileCredentialsProvider(),
new AnonymousAWSCredentialsProvider()
bucket = name.getHost();
ClientConfiguration awsConf = new ClientConfiguration();
awsConf.setMaxConnections(conf.getInt(NEW_MAXIMUM_CONNECTIONS, conf.getInt(OLD_MAXIMUM_CONNECTIONS, DEFAULT_MAXIMUM_CONNECTIONS)));
awsConf.setProtocol(conf.g... |
38,203 | cannedACL = null;
}
if (!s3.doesBucketExist(bucket)) {
throw new IOException("Bucket " + bucket + " does not exist");
}
<BUG>boolean purgeExistingMultipart = conf.getBoolean(PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART);
long purgeExistingMultipartAge = conf.getLong(PURGE_EXISTING_MULTIPART_AGE, DEFAULT_... | boolean purgeExistingMultipart = conf.getBoolean(NEW_PURGE_EXISTING_MULTIPART, conf.getBoolean(OLD_PURGE_EXISTING_MULTIPART, DEFAULT_PURGE_EXISTING_MULTIPART));
long purgeExistingMultipartAge = conf.getLong(NEW_PURGE_EXISTING_MULTIPART_AGE, conf.getLong(OLD_PURGE_EXISTING_MULTIPART_AGE, DEFAULT_PURGE_EXISTING_MULTIPART... |
38,204 | import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
<BUG>import static org.apache.hadoop.fs.s3a.S3AConstants.*;
public class S3AOutputStream extends OutputStream {</BUG>
private OutputStream backupStream;
private File backup... | import static org.apache.hadoop.fs.s3a.Constants.*;
public class S3AOutputStream extends OutputStream {
|
38,205 | this.client = client;
this.progress = progress;
this.fs = fs;
this.cannedACL = cannedACL;
this.statistics = statistics;
<BUG>partSize = conf.getLong(MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
</BUG>
if (conf.get(BUFFER_DIR, null) ... | partSize = conf.getLong(OLD_MULTIPART_SIZE, DEFAULT_MULTIPART_SIZE);
partSizeThreshold = conf.getInt(OLD_MIN_MULTIPART_THRESHOLD, DEFAULT_MIN_MULTIPART_THRESHOLD);
|
38,206 | public ReportElement getBase() {
return base;
}
@Override
public float print(PDDocument document, PDPageContentStream stream, int pageNumber, float startX, float startY, float allowedWidth) throws IOException {
<BUG>PDPage currPage = (PDPage) document.getDocumentCatalog().getPages().get(pageNo);
PDPageContentStream pag... | PDPage currPage = document.getDocumentCatalog().getPages().get(pageNo);
PDPageContentStream pageStream = new PDPageContentStream(document, currPage, PDPageContentStream.AppendMode.APPEND, false);
|
38,207 | public PdfTextStyle(String config) {
Assert.hasText(config);
String[] split = config.split(",");
Assert.isTrue(split.length == 3, "config must look like: 10,Times-Roman,#000000");
fontSize = Integer.parseInt(split[0]);
<BUG>font = resolveStandard14Name(split[1]);
color = new Color(Integer.valueOf(split[2].substring(1),... | font = getFont(split[1]);
color = new Color(Integer.valueOf(split[2].substring(1), 16));
|
38,208 | package cc.catalysts.boot.report.pdf.elements;
import cc.catalysts.boot.report.pdf.config.PdfTextStyle;
import cc.catalysts.boot.report.pdf.utils.ReportAlignType;
import org.apache.pdfbox.pdmodel.PDPageContentStream;
<BUG>import org.apache.pdfbox.pdmodel.font.PDFont;
import org.slf4j.Logger;</BUG>
import org.slf4j.Logg... | import org.apache.pdfbox.pdmodel.font.PDType1Font;
import org.apache.pdfbox.util.Matrix;
import org.slf4j.Logger;
|
38,209 | addTextSimple(stream, textConfig, textX, nextLineY, "");
return nextLineY;
}
try {
<BUG>String[] split = splitText(textConfig.getFont(), textConfig.getFontSize(), allowedWidth, fixedText);
</BUG>
float x = calculateAlignPosition(textX, align, textConfig, allowedWidth, split[0]);
if (!underline) {
addTextSimple(stream, ... | String[] split = splitText(textConfig.getFont(), textConfig.getFontSize(), allowedWidth, text);
|
38,210 | public static void addTextSimple(PDPageContentStream stream, PdfTextStyle textConfig, float textX, float textY, String text) {
try {
stream.setFont(textConfig.getFont(), textConfig.getFontSize());
stream.setNonStrokingColor(textConfig.getColor());
stream.beginText();
<BUG>stream.newLineAtOffset(textX, textY);
stream.sh... | stream.setTextMatrix(new Matrix(1,0,0,1, textX, textY));
stream.showText(text);
|
38,211 | public static void addTextSimpleUnderlined(PDPageContentStream stream, PdfTextStyle textConfig, float textX, float textY, String text) {
addTextSimple(stream, textConfig, textX, textY, text);
try {
float lineOffset = textConfig.getFontSize() / 8F;
stream.setStrokingColor(textConfig.getColor());
<BUG>stream.setLineWidth... | stream.moveTo(textX, textY - lineOffset);
stream.lineTo(textX + getTextWidth(textConfig.getFont(), textConfig.getFontSize(), text), textY - lineOffset);
|
38,212 | list.add(text.length());
return list;
}
public static String[] splitText(PDFont font, int fontSize, float allowedWidth, String text) {
String endPart = "";
<BUG>String shortenedText = text;
List<String> breakSplitted = Arrays.asList(shortenedText.split("(\\r\\n)|(\\n)|(\\n\\r)")).stream().collect(Collectors.toList());
... | List<String> breakSplitted = Arrays.asList(text.split("(\\r\\n)|(\\n)|(\\n\\r)")).stream().collect(Collectors.toList());
if (breakSplitted.size() > 1) {
|
38,213 | package cc.catalysts.boot.report.pdf.elements;
import org.apache.pdfbox.pdmodel.PDDocument;
<BUG>import org.apache.pdfbox.pdmodel.edit.PDPageContentStream;
import java.io.IOException;</BUG>
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
| import org.apache.pdfbox.pdmodel.PDPageContentStream;
import java.io.IOException;
|
38,214 | }
@RootTask
static Task<Exec.Result> exec(String parameter, int number) {
Task<String> task1 = MyTask.create(parameter);
Task<Integer> task2 = Adder.create(number, number + 2);
<BUG>return Task.ofType(Exec.Result.class).named("exec", "/bin/sh")
.in(() -> task1)</BUG>
.in(() -> task2)
.process(Exec.exec((str, i) -> args... | return Task.named("exec", "/bin/sh").ofType(Exec.Result.class)
.in(() -> task1)
|
38,215 | return args;
}
static class MyTask {
static final int PLUS = 10;
static Task<String> create(String parameter) {
<BUG>return Task.ofType(String.class).named("MyTask", parameter)
.in(() -> Adder.create(parameter.length(), PLUS))</BUG>
.in(() -> Fib.create(parameter.length()))
.process((sum, fib) -> something(parameter, s... | return Task.named("MyTask", parameter).ofType(String.class)
.in(() -> Adder.create(parameter.length(), PLUS))
|
38,216 | }
@RootTask
public static Task<String> standardArgs(int first, String second) {
firstInt = first;
secondString = second;
<BUG>return Task.ofType(String.class).named("StandardArgs", first, second)
.process(() -> second + " " + first * 100);</BUG>
}
@Test
public void shouldParseFlags() throws Exception {
| return Task.named("StandardArgs", first, second).ofType(String.class)
.process(() -> second + " " + first * 100);
|
38,217 | assertThat(parsedEnum, is(CustomEnum.BAR));
}
@RootTask
public static Task<String> enums(CustomEnum enm) {
parsedEnum = enm;
<BUG>return Task.ofType(String.class).named("Enums", enm)
.process(enm::toString);</BUG>
}
@Test
public void shouldParseCustomTypes() throws Exception {
| return Task.named("Enums", enm).ofType(String.class)
.process(enm::toString);
|
38,218 | assertThat(parsedType.content, is("blarg parsed for you!"));
}
@RootTask
public static Task<String> customType(CustomType myType) {
parsedType = myType;
<BUG>return Task.ofType(String.class).named("Types", myType.content)
.process(() -> myType.content);</BUG>
}
public enum CustomEnum {
BAR
| return Task.named("Types", myType.content).ofType(String.class)
.process(() -> myType.content);
|
38,219 | TaskContext taskContext = TaskContext.inmem();
TaskContext.Value<Long> value = taskContext.evaluate(fib92);
value.consume(f92 -> System.out.println("fib(92) = " + f92));
}
static Task<Long> create(long n) {
<BUG>TaskBuilder<Long> fib = Task.ofType(Long.class).named("Fib", n);
</BUG>
if (n < 2) {
return fib
.process(() ... | TaskBuilder<Long> fib = Task.named("Fib", n).ofType(Long.class);
|
38,220 | package org.gradle.api.internal;
<BUG>import groovy.lang.Closure;
import groovy.lang.GroovyObjectSupport;
public class ConfigureDelegate extends GroovyObjectSupport {</BUG>
private static final Object[] EMPTY_PARAMS = new Object[0];
protected final DynamicObject _owner;
| import groovy.lang.MissingMethodException;
import groovy.lang.MissingPropertyException;
public class ConfigureDelegate extends GroovyObjectSupport {
|
38,221 | public Object invokeMethod(String name, Object paramsObj) {
Object[] params = (Object[])paramsObj;
boolean isAlreadyConfiguring = _configuring.get();
_configuring.set(true);
try {
<BUG>if (_delegate.hasMethod(name, params)) {
return _delegate.invokeMethod(name, params);
}</BUG>
try {
return _owner.invokeMethod(name, pa... | MissingMethodException failure;
} catch (groovy.lang.MissingMethodException e) {
failure = e;
}
|
38,222 | }</BUG>
try {
return _owner.invokeMethod(name, params);
} catch (groovy.lang.MissingMethodException e) {
}
<BUG>if (!isAlreadyConfiguring && _isConfigureMethod(name, params)) {
_configure(name, params);
}
return _delegate.invokeMethod(name, params);
} finally {</BUG>
_configuring.set(isAlreadyConfiguring);
| public Object invokeMethod(String name, Object paramsObj) {
Object[] params = (Object[])paramsObj;
boolean isAlreadyConfiguring = _configuring.get();
_configuring.set(true);
MissingMethodException failure;
failure = e;
|
38,223 | }
public Object get(String name) {
boolean isAlreadyConfiguring = _configuring.get();
_configuring.set(true);
try {
<BUG>if (_delegate.hasProperty(name)) {
return _delegate.getProperty(name);
}</BUG>
try {
return _owner.getProperty(name);
| protected boolean _isConfigureMethod(String name, Object[] params) {
return false;
|
38,224 | package org.gradle.api.internal;
import org.gradle.api.PolymorphicDomainObjectContainer;
<BUG>import groovy.lang.Closure;
public class PolymorphicDomainObjectContainerConfigureDelegate extends NamedDomainObjectContainerConfigureDelegate {
private final PolymorphicDomainObjectContainer _container;</BUG>
public Polymorph... | public class PolymorphicDomainObjectContainerConfigureDelegate extends ConfigureDelegate {
private final PolymorphicDomainObjectContainer _container;
|
38,225 | super(owner, container);
this._container = container;
}
@Override
protected boolean _isConfigureMethod(String name, Object[] params) {
<BUG>return super._isConfigureMethod(name, params)
|| params.length == 1 && params[0] instanceof Class</BUG>
|| params.length == 2 && params[0] instanceof Class && params[1] instanceof ... | return params.length == 1 && params[0] instanceof Closure
|| params.length == 1 && params[0] instanceof Class
|
38,226 | import org.neo4j.kernel.impl.transaction.log.PhysicalFlushableChannel;
import org.neo4j.kernel.impl.transaction.log.ReadAheadChannel;
import org.neo4j.logging.Log;
import org.neo4j.logging.LogProvider;
import org.neo4j.storageengine.api.ReadPastEndException;
<BUG>import org.neo4j.storageengine.api.WritableChannel;
impo... | import static java.lang.String.format;
class SegmentFile implements AutoCloseable
static final String CLOSED_ERROR_MESSAGE = "segment file '%s' is closed";
private static final SegmentHeader.Marshal headerMarshal = new SegmentHeader.Marshal();
|
38,227 | private final ChannelMarshal<ReplicatedContent> contentMarshal;
private final SegmentHeader header;
private PhysicalFlushableChannel bufferedWriter;
private boolean markedForDisposal;
private Runnable onDisposal;
<BUG>private volatile boolean isDisposed;
SegmentFile(
FileSystemAbstraction fileSystem,
File file,
Channel... | private volatile boolean closed;
SegmentFile( FileSystemAbstraction fileSystem, File file, ChannelMarshal<ReplicatedContent> contentMarshal,
LogProvider logProvider, SegmentHeader header )
|
38,228 | this.file = file;
this.contentMarshal = contentMarshal;
this.header = header;
log = logProvider.getLog( getClass() );
readerPool = new StoreChannelPool( fileSystem, file, "r", logProvider );
<BUG>}
static SegmentFile create(
FileSystemAbstraction fileSystem,
File file,
ChannelMarshal<ReplicatedContent> contentMarshal,
... | static SegmentFile create( FileSystemAbstraction fileSystem, File file,
ChannelMarshal<ReplicatedContent> contentMarshal, LogProvider logProvider, SegmentHeader header )
throws IOException
|
38,229 | private LogPosition findCachedStartingPosition( long offsetIndex )
{
return new LogPosition( 0, SegmentHeader.SIZE );
}
private PhysicalFlushableChannel getOrCreateWriter() throws IOException
<BUG>{
if ( bufferedWriter == null )</BUG>
{
StoreChannel channel = fileSystem.open( file, "rw" );
channel.position( channel.siz... | if ( closed )
throw new RuntimeException( format( CLOSED_ERROR_MESSAGE, file ) );
if ( bufferedWriter == null )
|
38,230 | this.markedForDisposal = true;
readerPool.markForDisposal( this::checkFullDisposal );
}
private synchronized void checkFullDisposal()
{
<BUG>if ( bufferedWriter == null && readerPool.isDisposed() )
</BUG>
{
isDisposed = true;
onDisposal.run();
| if ( markedForDisposal && bufferedWriter == null && readerPool.isDisposed() )
|
38,231 | import org.neo4j.coreedge.raft.log.EntryRecord;
import org.neo4j.coreedge.raft.log.RaftLogCompactedException;
import org.neo4j.coreedge.raft.log.segmented.OpenEndRangeMap.ValueRange;
import org.neo4j.cursor.CursorValue;
import org.neo4j.cursor.IOCursor;
<BUG>class EntryStore
{</BUG>
private Segments segments;
EntryStor... | class EntryStore implements AutoCloseable
|
38,232 | this.readerLogVersionBridge = new ReaderRaftLogVersionBridge( fileSystem, logFiles );
}
@Override
public void init() throws IOException
{
<BUG>channel = openLogChannelForVersion( logFiles.getHighestLogVersion() );
channel.close();</BUG>
}
@Override
| openLogChannelForVersion( logFiles.getHighestLogVersion() ).close();
|
38,233 | import org.neo4j.helpers.collection.Iterators;
import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.logging.Log;
import org.neo4j.logging.LogProvider;
import static java.lang.String.format;
<BUG>class Segments
{</BUG>
private final OpenEndRangeMap<Long/*minIndex*/,SegmentFile> rangeMap = new OpenEndRangeMap<>... | class Segments implements AutoCloseable
{
|
38,234 | import java.util.Deque;
import org.neo4j.io.fs.FileSystemAbstraction;
import org.neo4j.io.fs.StoreChannel;
import org.neo4j.logging.Log;
import org.neo4j.logging.LogProvider;
<BUG>class StoreChannelPool
{
private final FileSystemAbstraction fsa;</BUG>
private final File file;
private final String mode;
| class StoreChannelPool implements AutoCloseable
static final String CLOSED_ERROR_MESSAGE = "store channel pool is closed";
private final FileSystemAbstraction fsa;
|
38,235 | private final Log log;
private int openChannelCount;
private final Deque<StoreChannel> channels = new ArrayDeque<>();
private boolean markedForDisposal;
private Runnable onDisposal;
<BUG>private boolean disposed;
StoreChannelPool( FileSystemAbstraction fsa, File file, String mode, LogProvider logProvider )</BUG>
{
this... | private boolean closed;
StoreChannelPool( FileSystemAbstraction fsa, File file, String mode, LogProvider logProvider )
|
38,236 | customTokens.put("%%mlFinalForestsPerHost%%", hubConfig.finalForestsPerHost.toString());
customTokens.put("%%mlTraceAppserverName%%", hubConfig.traceHttpName);
customTokens.put("%%mlTracePort%%", hubConfig.tracePort.toString());
customTokens.put("%%mlTraceDbName%%", hubConfig.traceDbName);
customTokens.put("%%mlTraceFo... | customTokens.put("%%mlTriggersDbName%%", hubConfig.triggersDbName);
customTokens.put("%%mlSchemasDbName%%", hubConfig.schemasDbName);
}
|
38,237 | else {
return IdeBundle.message("plugin.info.not.available");
}
}
else if (columnIdx == COLUMN_CATEGORY) {
<BUG>return base instanceof PluginNode ? base.getCategory() : "";
}</BUG>
else
{
return "";
| return base.getCategory();
|
38,238 | installedPluginTable.setValueAt(currentlyMarked ? Boolean.FALSE : Boolean.TRUE, selectedRow, column);
}
}
}, KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0), JComponent.WHEN_FOCUSED);
availablePluginsModel = new AvailablePluginsTableModel(availableProvider);
<BUG>availablePluginsTable = new PluginTable(availablePluginsMod... | availablePluginsTable.setColumnWidth(1, 70);
JScrollPane availableScrollPane = ScrollPaneFactory.createScrollPane(availablePluginsTable);
|
38,239 | public Responder(Query queryInput)
{
query = queryInput;
queryInfo = query.getQueryInfo();
queryType = queryInfo.getQueryType();
<BUG>if (SystemConfiguration.getProperty("pir.allowAdHocQuerySchemas", "false").equals("true"))
</BUG>
{
qSchema = queryInfo.getQuerySchema();
}
| if (SystemConfiguration.getBooleanProperty("pir.allowAdHocQuerySchemas", false))
|
38,240 | ArrayList<QueryResponseJSON> results;
File fileFinalResults = File.createTempFile("finalResultsFile", ".txt");
fileFinalResults.deleteOnExit();
logger.info("fileFinalResults = " + fileFinalResults.getAbsolutePath());
boolean embedSelector = false;
<BUG>if (SystemConfiguration.getProperty("pirTest.embedSelector", "false... | if (SystemConfiguration.getBooleanProperty("pirTest.embedSelector", false))
|
38,241 | </BUG>
{
embedSelector = true;
}
boolean useExpLookupTable = false;
<BUG>if (SystemConfiguration.getProperty("pirTest.useExpLookupTable", "false").equals("true"))
</BUG>
{
useExpLookupTable = true;
}
| ArrayList<QueryResponseJSON> results;
File fileFinalResults = File.createTempFile("finalResultsFile", ".txt");
fileFinalResults.deleteOnExit();
logger.info("fileFinalResults = " + fileFinalResults.getAbsolutePath());
boolean embedSelector = false;
if (SystemConfiguration.getBooleanProperty("pirTest.embedSelector", fals... |
38,242 | numExpectedResults = 7; // all 7 for non distributed case; if testFalsePositive==true, then 6
}
}
logger.info("results:");
printResultList(results);
<BUG>if (isDistributed && SystemConfiguration.getProperty("pir.limitHitsPerSelector").equals("true"))
</BUG>
{
if (results.size() != 3)
{
| if (isDistributed && SystemConfiguration.isSetTrue("pir.limitHitsPerSelector"))
|
38,243 | BigInteger m1 = null; // message to encrypt
Paillier pallier = null;
@Setup(org.openjdk.jmh.annotations.Level.Trial)
public void setUp()
{
<BUG>int systemPrimeCertainty = Integer.parseInt(SystemConfiguration.getProperty("pir.primeCertainty", "100"));
</BUG>
try
{
pallier = new Paillier(MODULUS_SIZE, systemPrimeCertaint... | int systemPrimeCertainty = SystemConfiguration.getIntProperty("pir.primeCertainty", 100);
|
38,244 | private static final Logger logger = LoggerFactory.getLogger(QueryUtils.class);
public static QueryResponseJSON extractQueryResponseJSON(QueryInfo queryInfo, QuerySchema qSchema, ArrayList<BigInteger> parts) throws Exception
{
QueryResponseJSON qrJSON = new QueryResponseJSON(queryInfo);
DataSchema dSchema = DataSchemaR... | int numArrayElementsToReturn = SystemConfiguration.getIntProperty("pir.numReturnArrayElements", 1);
|
38,245 | rElements = rElementsInput;
selectors = selectorsInput;
selectorMaskMap = selectorMaskMapInput;
queryInfo = queryInfoInput;
embedSelectorMap = embedSelectorMapInput;
<BUG>if (SystemConfiguration.getProperty("pir.allowAdHocQuerySchemas", "false").equals("true"))
</BUG>
{
if ((qSchema = queryInfo.getQuerySchema()) == nul... | if (SystemConfiguration.getBooleanProperty("pir.allowAdHocQuerySchemas", false))
|
38,246 | BigInteger w = null; // lambda(N)^-1 mod N
int bitLength = 0; // bit length of the modulus N
public Paillier(BigInteger pInput, BigInteger qInput, int bitLengthInput) throws PIRException
{
bitLength = bitLengthInput;
<BUG>int primeCertainty = Integer.parseInt(SystemConfiguration.getProperty("pir.primeCertainty", "128")... | int primeCertainty = SystemConfiguration.getIntProperty("pir.primeCertainty", 128);
|
38,247 | logger.info("Parameters = " + parametersToString());
}
public Paillier(int bitLengthInput, int certainty, int ensureBitSet) throws PIRException
{
bitLength = bitLengthInput;
<BUG>int systemPrimeCertainty = Integer.parseInt(SystemConfiguration.getProperty("pir.primeCertainty", "128"));
</BUG>
if (certainty < systemPrime... | public Paillier(int bitLengthInput, int certainty) throws PIRException
this(bitLengthInput, certainty, -1);
int systemPrimeCertainty = SystemConfiguration.getIntProperty("pir.primeCertainty", 128);
|
38,248 | File fileResponse = File.createTempFile(responseFile, ".txt");
String finalResultsFile = "finalResultFile";
File fileFinalResults = File.createTempFile(finalResultsFile, ".txt");
logger.info("fileQuerier = " + fileQuerier.getAbsolutePath() + " fileQuery = " + fileQuery.getAbsolutePath() + " responseFile = "
+ fileResp... | boolean embedSelector = SystemConfiguration.getBooleanProperty("pirTest.embedSelector", false);
boolean useExpLookupTable = SystemConfiguration.getBooleanProperty("pirTest.useExpLookupTable", false);
boolean useHDFSExpLookupTable = SystemConfiguration.getBooleanProperty("pirTest.useHDFSExpLookupTable", false);
|
38,249 |
boolean useHDFSExpLookupTable = SystemConfiguration.getProperty("pirTest.useHDFSExpLookupTable", "false").equals("true");
</BUG>
QueryInfo queryInfo = new QueryInfo(BaseTests.queryNum, selectors.size(), BaseTests.hashBitSize, BaseTests.hashKey, BaseTests.dataPartitionBitSize,
queryType, queryType + "_" + BaseTests.que... | File fileResponse = File.createTempFile(responseFile, ".txt");
String finalResultsFile = "finalResultFile";
File fileFinalResults = File.createTempFile(finalResultsFile, ".txt");
logger.info("fileQuerier = " + fileQuerier.getAbsolutePath() + " fileQuery = " + fileQuery.getAbsolutePath() + " responseFile = "
+ fileResp... |
38,250 | hashBitSize = Integer.parseInt(SystemConfiguration.getProperty(QuerierProps.HASHBITSIZE));
hashKey = SystemConfiguration.getProperty(QuerierProps.HASHBITSIZE);
dataPartitionBitSize = Integer.parseInt(SystemConfiguration.getProperty(QuerierProps.DATAPARTITIONSIZE));
paillierBitSize = Integer.parseInt(SystemConfiguration... | embedSelector = SystemConfiguration.getBooleanProperty(QuerierProps.EMBEDSELECTOR, true);
useMemLookupTable = SystemConfiguration.getBooleanProperty(QuerierProps.USEMEMLOOKUPTABLE, false);
useHDFSLookupTable = SystemConfiguration.getBooleanProperty(QuerierProps.USEHDFSLOOKUPTABLE, false);
|
38,251 | selectors.remove(0);
int numSelectors = selectors.size();
logger.info("queryNum = " + queryNum + " numSelectors = " + numSelectors);
QueryInfo queryInfo = new QueryInfo(queryNum, numSelectors, hashBitSize, hashKey, dataPartitionBitSize, queryType, queryName, paillierBitSize,
useMemLookupTable, embedSelector, useHDFSLoo... | if (SystemConfiguration.isSetTrue("pir.embedQuerySchema"))
|
38,252 | fs = FileSystem.get(conf);
DataSchemaLoader.initialize(true, fs);
QuerySchemaLoader.initialize(true, fs);
query = new HadoopFileSystemStore(fs).recall(queryInputDir, Query.class);
queryInfo = query.getQueryInfo();
<BUG>if (SystemConfiguration.getProperty("pir.allowAdHocQuerySchemas", "false").equals("true"))
</BUG>
{
q... | if (SystemConfiguration.getBooleanProperty("pir.allowAdHocQuerySchemas", false))
|
38,253 | outputDirExp = outputFile + "_exp";
outputDirColumnMult = outputFile + "_colMult";
outputDirFinal = outputFile + "_final";
queryInputDir = SystemConfiguration.getProperty("pir.queryInput");
stopListFile = SystemConfiguration.getProperty("pir.stopListFile");
<BUG>useHDFSLookupTable = SystemConfiguration.getProperty("pir... | useHDFSLookupTable = SystemConfiguration.isSetTrue("pir.useHDFSLookupTable");
numReduceTasks = SystemConfiguration.getIntProperty("pir.numReduceTasks", 1);
|
38,254 | {
fs.delete(splitDir, true);
}
TreeMap<Integer,BigInteger> queryElements = query.getQueryElements();
ArrayList<Integer> keys = new ArrayList<>(queryElements.keySet());
<BUG>int numSplits = Integer.parseInt(SystemConfiguration.getProperty("pir.expCreationSplits", "100"));
</BUG>
int elementsPerSplit = (int) Math.floor(q... | boolean success;
logger.info("Creating expTable");
Path splitDir = new Path("/tmp/splits-" + queryInfo.getQueryNum());
if (fs.exists(splitDir))
int numSplits = SystemConfiguration.getIntProperty("pir.expCreationSplits", 100);
|
38,255 | FileInputFormat.setInputPaths(jobExp, splitDir);
jobExp.setJarByClass(ExpTableMapper.class);
jobExp.setMapperClass(ExpTableMapper.class);
jobExp.setMapOutputKeyClass(Text.class);
jobExp.setMapOutputValueClass(Text.class);
<BUG>int numExpLookupPartitions = Integer.parseInt(SystemConfiguration.getProperty("pir.numExpLook... | int numExpLookupPartitions = SystemConfiguration.getIntProperty("pir.numExpLookupPartitions", 100);
|
38,256 | query = storage.recall(queryInput, Query.class);
queryInfo = query.getQueryInfo();
bVars.setQuery(query);
bVars.setQueryInfo(queryInfo);
QuerySchema qSchema = null;
<BUG>if (SystemConfiguration.getProperty("pir.allowAdHocQuerySchemas", "false").equals("true"))
</BUG>
{
qSchema = queryInfo.getQuerySchema();
}
| if (SystemConfiguration.getBooleanProperty("pir.allowAdHocQuerySchemas", false))
|
38,257 | import java.math.BigInteger;
import org.apache.pirk.utils.SystemConfiguration;
import com.squareup.jnagmp.Gmp;
public final class ModPowAbstraction
{
<BUG>private static boolean useGMPForModPow = SystemConfiguration.getProperty("paillier.useGMPForModPow").equals("true");
private static boolean useGMPConstantTimeMethod... | [DELETED] |
38,258 | {
return modPow(BigInteger.valueOf(base), exponent, modulus);
}
public static void reloadConfiguration()
{
<BUG>useGMPForModPow = SystemConfiguration.getProperty("paillier.useGMPForModPow").equals("true");
useGMPConstantTimeMethods = SystemConfiguration.getProperty("paillier.GMPConstantTimeMode").equals("true");
</BUG... | private static boolean useGMPForModPow = SystemConfiguration.isSetTrue("paillier.useGMPForModPow");
private static boolean useGMPConstantTimeMethods = SystemConfiguration.isSetTrue("paillier.GMPConstantTimeMode");
public static BigInteger modPow(BigInteger base, BigInteger exponent, BigInteger modulus)
BigInteger resul... |
38,259 | public class PrimeGenerator
{
private static final Logger logger = LoggerFactory.getLogger(PrimeGenerator.class);
private static final HashMap<Integer,BigInteger> lowerBoundCache = new HashMap<>();
private static final HashMap<Integer,BigInteger> minimumDifferenceCache = new HashMap<>();
<BUG>private static boolean add... | private static boolean additionalChecksEnabled = SystemConfiguration.isSetTrue("pallier.FIPSPrimeGenerationChecks");
|
38,260 | import de.vanita5.twittnuker.receiver.NotificationReceiver;
import de.vanita5.twittnuker.service.LengthyOperationsService;
import de.vanita5.twittnuker.util.ActivityTracker;
import de.vanita5.twittnuker.util.AsyncTwitterWrapper;
import de.vanita5.twittnuker.util.DataStoreFunctionsKt;
<BUG>import de.vanita5.twittnuker.u... | import de.vanita5.twittnuker.util.DebugLog;
import de.vanita5.twittnuker.util.ImagePreloader;
|
38,261 | final List<InetAddress> addresses = mDns.lookup(host);
for (InetAddress address : addresses) {
c.addRow(new String[]{host, address.getHostAddress()});
}
} catch (final IOException ignore) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, ignore);
}</BUG>
}
| DebugLog.w(LOGTAG, null, ignore);
|
38,262 | @Override
public void afterExecute(Bus handler, SingleResponse<Relationship> result) {
if (result.hasData()) {
handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData()));
} else if (result.hasException()) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, "Unable to update friendship", result.getExcepti... | public UserKey[] getAccountKeys() {
return DataStoreUtils.getActivatedAccountKeys(context);
|
38,263 | MicroBlog microBlog = MicroBlogAPIFactory.getInstance(context, accountId);
if (!Utils.isOfficialCredentials(context, accountId)) continue;
try {
microBlog.setActivitiesAboutMeUnread(cursor);
} catch (MicroBlogException e) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, e);
}</BUG>
}
| DebugLog.w(LOGTAG, null, e);
|
38,264 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBannerImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.form... | if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
38,265 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBackgroundImage(fileBody, tile);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, S... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
38,266 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
return twitter.updateProfileImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.for... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
38,267 | import de.vanita5.twittnuker.annotation.CustomTabType;
import de.vanita5.twittnuker.library.MicroBlog;
import de.vanita5.twittnuker.library.MicroBlogException;
import de.vanita5.twittnuker.library.twitter.model.RateLimitStatus;
import de.vanita5.twittnuker.library.twitter.model.Status;
<BUG>import de.vanita5.twittnuker... | import org.mariotaku.pickncrop.library.PNCUtils;
import org.mariotaku.sqliteqb.library.AllColumns;
|
38,268 | context.getApplicationContext().sendBroadcast(intent);
}
}
@Nullable
public static Location getCachedLocation(Context context) {
<BUG>if (BuildConfig.DEBUG) {
Log.v(LOGTAG, "Fetching cached location", new Exception());
}</BUG>
Location location = null;
| DebugLog.v(LOGTAG, "Fetching cached location", new Exception());
|
38,269 | import java.util.List;
import java.util.Map.Entry;
import javax.inject.Singleton;
import okhttp3.Dns;
@Singleton
<BUG>public class TwidereDns implements Constants, Dns {
</BUG>
private static final String RESOLVER_LOGTAG = "TwittnukerDns";
private final SharedPreferences mHostMapping;
private final SharedPreferencesWra... | public class TwidereDns implements Dns, Constants {
|
38,270 | for (Location location : twitter.getAvailableTrends()) {
map.put(location);
}
return map.pack();
} catch (final MicroBlogException e) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, e);
}</BUG>
}
| DebugLog.w(LOGTAG, null, e);
|
38,271 | import javax.swing.event.TreeSelectionListener;
import org.apache.commons.lang3.SystemUtils;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import com.jvms.i18neditor.Resource.ResourceType;
<BUG>import com.jvms.i18neditor.swing.JFileDrop;
import com.jvms.i18neditor.swing.JScrollablePanel... | import com.jvms.i18neditor.swing.JHtmlPane;
import com.jvms.i18neditor.util.Dialogs;
import com.jvms.i18neditor.util.ExtendedProperties;
|
38,272 | }
}
public void showRenameTranslationDialog(String key) {
String newKey = "";
while (newKey != null && newKey.isEmpty()) {
<BUG>newKey = (String) JOptionPane.showInputDialog(this,
MessageBundle.get("dialogs.translation.rename.text"),
MessageBundle.get("dialogs.translation.rename.title"),
JOptionPane.QUESTION_MESSAGE, n... | public Path getResourcesPath() {
return resourcesDir;
|
38,273 | showError(MessageBundle.get("dialogs.translation.rename.error"));
} else {
TranslationTreeNode newNode = translationTree.getNodeByKey(newKey);
TranslationTreeNode oldNode = translationTree.getNodeByKey(key);
if (newNode != null) {
<BUG>boolean isReplace = newNode.isLeaf() || oldNode.isLeaf();
boolean confirm = showConf... | boolean confirm = Dialogs.showConfirmDialog(this,
MessageBundle.get("dialogs.translation.conflict.text." + (isReplace ? "replace" : "merge")));
|
38,274 | showError(MessageBundle.get("dialogs.translation.duplicate.error"));
} else {
TranslationTreeNode newNode = translationTree.getNodeByKey(newKey);
TranslationTreeNode oldNode = translationTree.getNodeByKey(key);
if (newNode != null) {
<BUG>boolean isReplace = newNode.isLeaf() || oldNode.isLeaf();
boolean confirm = showC... | boolean confirm = Dialogs.showConfirmDialog(this,
MessageBundle.get("dialogs.translation.conflict.text." + (isReplace ? "replace" : "merge")));
|
38,275 | translationTree.setSelectedNode(node);
}
}
}
public void showAboutDialog() {
<BUG>showMessage(MessageBundle.get("dialogs.about.title", TITLE),
</BUG>
"<html><body style=\"text-align:center;width:200px;\">" +
"<span style=\"font-weight:bold;font-size:1.2em;\">" + TITLE + "</span><br>" +
"v" + VERSION + "<br><br>" +
| Dialogs.showMessageDialog(this, MessageBundle.get("dialogs.about.title", TITLE),
|
38,276 | }
}
});</BUG>
pane.setBackground(getBackground());
pane.setEditable(false);
<BUG>showMessage(MessageBundle.get("dialogs.version.title"), pane);
</BUG>
}
public boolean closeCurrentSession() {
if (isDirty()) {
| Font font = getFont();
JHtmlPane pane = new JHtmlPane("<html><body style=\"font-family:" + font.getFamily() + ";font-size:" + font.getSize() + "pt;text-align:center;width:200px;\">" + content + "</body></html>");
Dialogs.showMessageDialog(this, MessageBundle.get("dialogs.version.title"), pane);
|
38,277 | if (Files.exists(path)) {
importResources(path);
return true;
}
}
<BUG>return false;
}</BUG>
private void updateTitle() {
String dirtyPart = dirty ? "*" : "";
String filePart = resourcesDir == null ? "" : resourcesDir.toString() + " - ";
| private void showError(String message) {
Dialogs.showErrorDialog(this, MessageBundle.get("dialogs.error.title"), message);
|
38,278 | contentPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, true, translationsPanel, resourcesScrollPane);
editorMenu = new EditorMenu(this, translationTree);
Container container = getContentPane();
container.add(editorMenu, BorderLayout.NORTH);
container.add(contentPane);
<BUG>KeyboardFocusManager.getCurrentKeyboardFocu... | [DELETED] |
38,279 | package com.jvms.i18neditor;
import java.awt.Insets;
<BUG>import javax.swing.JTextField;
public class TranslationField extends JTextField {
</BUG>
private final static long serialVersionUID = -3951187528785224704L;
public TranslationField() {
| import com.jvms.i18neditor.swing.JUndoableTextField;
public class TranslationField extends JUndoableTextField {
|
38,280 | super();
setupUI();
}
public String getValue() {
return getText().trim();
<BUG>}
private void setupUI() {</BUG>
setMargin(new Insets(4,4,4,4));
setEditable(false);
}
| public void setValue(String value) {
setText(value);
undoManager.discardAllEdits();
private void setupUI() {
|
38,281 | setBorder(BorderFactory.createCompoundBorder(border, BorderFactory.createEmptyBorder(4,4,4,4)));
setAlignmentX(LEFT_ALIGNMENT);
setLineWrap(true);
setWrapStyleWord(true);
setRows(10);
<BUG>getDocument().addUndoableEditListener(e -> undoManager.addEdit(e.getEdit()));
getActionMap().put("undo", new UndoAction());
getInpu... | [DELETED] |
38,282 | import de.vanita5.twittnuker.receiver.NotificationReceiver;
import de.vanita5.twittnuker.service.LengthyOperationsService;
import de.vanita5.twittnuker.util.ActivityTracker;
import de.vanita5.twittnuker.util.AsyncTwitterWrapper;
import de.vanita5.twittnuker.util.DataStoreFunctionsKt;
<BUG>import de.vanita5.twittnuker.u... | import de.vanita5.twittnuker.util.DebugLog;
import de.vanita5.twittnuker.util.ImagePreloader;
|
38,283 | final List<InetAddress> addresses = mDns.lookup(host);
for (InetAddress address : addresses) {
c.addRow(new String[]{host, address.getHostAddress()});
}
} catch (final IOException ignore) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, ignore);
}</BUG>
}
| DebugLog.w(LOGTAG, null, ignore);
|
38,284 | @Override
public void afterExecute(Bus handler, SingleResponse<Relationship> result) {
if (result.hasData()) {
handler.post(new FriendshipUpdatedEvent(accountKey, userKey, result.getData()));
} else if (result.hasException()) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, "Unable to update friendship", result.getExcepti... | public UserKey[] getAccountKeys() {
return DataStoreUtils.getActivatedAccountKeys(context);
|
38,285 | MicroBlog microBlog = MicroBlogAPIFactory.getInstance(context, accountId);
if (!Utils.isOfficialCredentials(context, accountId)) continue;
try {
microBlog.setActivitiesAboutMeUnread(cursor);
} catch (MicroBlogException e) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, e);
}</BUG>
}
| DebugLog.w(LOGTAG, null, e);
|
38,286 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBannerImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.form... | if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
38,287 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
twitter.updateProfileBackgroundImage(fileBody, tile);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, S... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
38,288 | FileBody fileBody = null;
try {
fileBody = getFileBody(context, imageUri);
return twitter.updateProfileImage(fileBody);
} finally {
<BUG>Utils.closeSilently(fileBody);
if (deleteImage && "file".equals(imageUri.getScheme())) {
final File file = new File(imageUri.getPath());
if (!file.delete()) {
Log.w(LOGTAG, String.for... | twitter.updateProfileBannerImage(fileBody);
if (deleteImage) {
Utils.deleteMedia(context, imageUri);
|
38,289 | import de.vanita5.twittnuker.annotation.CustomTabType;
import de.vanita5.twittnuker.library.MicroBlog;
import de.vanita5.twittnuker.library.MicroBlogException;
import de.vanita5.twittnuker.library.twitter.model.RateLimitStatus;
import de.vanita5.twittnuker.library.twitter.model.Status;
<BUG>import de.vanita5.twittnuker... | import org.mariotaku.pickncrop.library.PNCUtils;
import org.mariotaku.sqliteqb.library.AllColumns;
|
38,290 | context.getApplicationContext().sendBroadcast(intent);
}
}
@Nullable
public static Location getCachedLocation(Context context) {
<BUG>if (BuildConfig.DEBUG) {
Log.v(LOGTAG, "Fetching cached location", new Exception());
}</BUG>
Location location = null;
| DebugLog.v(LOGTAG, "Fetching cached location", new Exception());
|
38,291 | import java.util.List;
import java.util.Map.Entry;
import javax.inject.Singleton;
import okhttp3.Dns;
@Singleton
<BUG>public class TwidereDns implements Constants, Dns {
</BUG>
private static final String RESOLVER_LOGTAG = "TwittnukerDns";
private final SharedPreferences mHostMapping;
private final SharedPreferencesWra... | public class TwidereDns implements Dns, Constants {
|
38,292 | for (Location location : twitter.getAvailableTrends()) {
map.put(location);
}
return map.pack();
} catch (final MicroBlogException e) {
<BUG>if (BuildConfig.DEBUG) {
Log.w(LOGTAG, e);
}</BUG>
}
| DebugLog.w(LOGTAG, null, e);
|
38,293 | }
return null;
}
public ANError parseNetworkError(ANError anError) {
try {
<BUG>if (anError.getData() != null && anError.getData().body != null && anError.getData().body.source() != null) {
anError.setErrorBody(Okio.buffer(anError.getData().body.source()).readUtf8());
</BUG>
}
| case JSON_OBJECT:
JSONObject json = new JSONObject(Okio.buffer(response.body().source()).readUtf8());
return ANResponse.success(json);
|
38,294 | package com.androidnetworking.error;
<BUG>import com.androidnetworking.common.ANData;
import com.androidnetworking.common.ANConstants;
public class ANError extends Exception {
private ANData data;</BUG>
private String errorBody;
| import okhttp3.Response;
|
38,295 | package unfoldingword;
public class ModelNames {
<BUG>static public final int DB_VERSION_ID = 102;
</BUG>
static public final String PROJECT = "Project";
static public final String[] PROJECT_STRING_ATTRIBUTES = { "uniqueSlug", "slug", "title" };
static public final String PROJECT_LANGUAGES_ATTRIBUTE = "languages";
| static public final int DB_VERSION_ID = 103;
|
38,296 | return language;
}
private static Entity createVersion(Schema schema, Entity language) {
DaoHelperMethods.EntityInformation versionInfo =
new DaoHelperMethods.EntityInformation(ModelNames.VERSION, ModelNames.VERSION_STRING_ATTRIBUTES,
<BUG>ModelNames.VERSION_DATE_ATTRIBUTES, ModelNames.VERSION_INT_ATTRIBUTES);
Entity v... | ModelNames.VERSION_DATE_ATTRIBUTES);
Entity version = DaoHelperMethods.createEntity(schema, versionInfo);
|
38,297 | return version;
}
private static Entity createBook(Schema schema, Entity version) {
DaoHelperMethods.EntityInformation bookInfo =
new DaoHelperMethods.EntityInformation(ModelNames.BOOK, ModelNames.BOOK_STRING_ATTRIBUTES,
<BUG>ModelNames.BOOK_DATE_ATTRIBUTES, ModelNames.BOOK_INT_ATTRIBUTES);
Entity book = DaoHelperMetho... | ModelNames.BOOK_DATE_ATTRIBUTES);
Entity book = DaoHelperMethods.createEntity(schema, bookInfo);
|
38,298 | customTokens.put("%%mlFinalForestsPerHost%%", hubConfig.finalForestsPerHost.toString());
customTokens.put("%%mlTraceAppserverName%%", hubConfig.traceHttpName);
customTokens.put("%%mlTracePort%%", hubConfig.tracePort.toString());
customTokens.put("%%mlTraceDbName%%", hubConfig.traceDbName);
customTokens.put("%%mlTraceFo... | customTokens.put("%%mlTriggersDbName%%", hubConfig.triggersDbName);
customTokens.put("%%mlSchemasDbName%%", hubConfig.schemasDbName);
}
|
38,299 | import java.util.function.Function;
import java.util.function.Supplier;
public class RetriableTask<T> extends BaseTask<T> {
protected final String _name;
protected final Function<Integer, Task<T>> _taskFunction;
<BUG>protected final AbstractRetryPolicy<T> _policy;
protected long _startedAt;
public RetriableTask(String ... | protected final RetryPolicy<T> _policy;
public RetriableTask(String name, Function<Integer, Task<T>> taskFunction, RetryPolicy<T> policy)
|
38,300 | if(worldIn.getTileEntity(pos) != null){
TileEntity te = worldIn.getTileEntity(pos);
if(te.hasCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null) && te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).getTemp() >= -273D + mult){
te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).addHeat(-mult);
}
<... | if(te.hasCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null)){
te.getCapability(Capabilities.HEAT_HANDLER_CAPABILITY, null).addHeat(mult);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.