idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,555,564
protected void pruning(int fi, double delta) throws ContradictionException {<NEW_LINE>ISet <MASK><NEW_LINE>for (int i : nei) {<NEW_LINE>if (i != min1 && i != min2 && distMatrix[0][i] - distMatrix[0][min2] > delta) {<NEW_LINE>propHK.remove(0, i);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>for (int arc = activeArcs.nextSetBit(0); ar...
nei = g.getNeighborsOf(0);
1,312,526
protected void parseExtensionBytes(T message) {<NEW_LINE>byte[] extensionBytes = parseByteArrayField(message.getExtensionsLength().getValue());<NEW_LINE>message.setExtensionBytes(extensionBytes);<NEW_LINE>LOGGER.debug("ExtensionBytes:" + ArrayConverter.bytesToHexString(extensionBytes, false));<NEW_LINE>List<ExtensionMe...
pointer, this.getConfig());
1,255,216
public static boolean verify(PublicKey publicKey, String signedData, String signature) {<NEW_LINE>byte[] signatureBytes;<NEW_LINE>try {<NEW_LINE>signatureBytes = Base64.decode(signature, Base64.DEFAULT);<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>logWarning("Base64 decoding failed.", e);<NEW_LINE>return f...
signatureAlgorithm = Signature.getInstance(SIGNATURE_ALGORITHM);
702,222
/*<NEW_LINE>* The sample demonstrates UCP as client side connection pool.<NEW_LINE>*/<NEW_LINE>public static void main(String[] args) throws Exception {<NEW_LINE>// Get the PoolDataSource for UCP<NEW_LINE>PoolDataSource pds = PoolDataSourceFactory.getPoolDataSource();<NEW_LINE>// Set the connection factory first before...
connProps.setProperty("remarksReporting", "false");
1,648,892
protected static String digest(@Sensitive String input, @Sensitive String algorithm, String charset) {<NEW_LINE>MessageDigest md;<NEW_LINE>String output = null;<NEW_LINE>if (input != null && input.length() > 0) {<NEW_LINE>try {<NEW_LINE>md = MessageDigest.getInstance(algorithm);<NEW_LINE>md.update(input.getBytes(charse...
throw new RuntimeException("Exception converting String object : " + uee);
1,029,622
final DescribeImageResult executeDescribeImage(DescribeImageRequest describeImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeImage");
267,557
public void run(RegressionEnvironment env) {<NEW_LINE>EPCompiled compiled = env.compile(EPL_OBJECTS);<NEW_LINE>env.deploy(compiled);<NEW_LINE>String idCreate = env.deploymentId("eplobjects");<NEW_LINE>env.stageService().getStage("S1");<NEW_LINE><MASK><NEW_LINE>tryInvalidDeploy(env, env.compile(EPL_NAMED_WINDOW), "A pre...
stageIt(env, "S1", idCreate);
9,911
private void receiveSessionAccept(final RtpContentMap contentMap) {<NEW_LINE>this.responderRtpContentMap = contentMap;<NEW_LINE>this.storePeerDtlsSetup(contentMap.getDtlsSetup());<NEW_LINE>final SessionDescription sessionDescription;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (final IllegalArgumentException | Null...
sessionDescription = SessionDescription.of(contentMap);
957,060
private Folder openInbox() throws Exception {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>String port = ConfigUtil.getConfigStringValue(ConfigType.INBOX_PORT);<NEW_LINE>properties.put("mail.imap.host", ConfigUtil.getConfigStringValue(ConfigType.INBOX_HOSTNAME));<NEW_LINE>properties.put("mail.imap.port",...
properties.put("mail.imap.timeout", 30000);
1,586,005
public static String formatFileSize(final long value) {<NEW_LINE>double target = value;<NEW_LINE>// TODO l10n?<NEW_LINE>String unit = "";<NEW_LINE>String format = "0.#";<NEW_LINE>if (value < 1024) {<NEW_LINE>format = "0";<NEW_LINE>} else if (value < 1024L * 1024L) {<NEW_LINE>target /= 1024;<NEW_LINE>unit = "K";<NEW_LIN...
df.format(target) + unit;
639,252
public static TimeValue parseTimeValue(String sValue) {<NEW_LINE>if (sValue == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String lowerSValue = sValue.toLowerCase(Locale.ROOT).trim();<NEW_LINE>long duration = Long.parseLong(lowerSValue.substring(0, lowerSValue.length() - 1));<NEW_LINE>TimeUnit unit...
return new TimeValue(duration, unit);
1,801,077
private void addJpaTransactionScopedEntityManagerBeans(final AfterBeanDiscovery event, final Set<Annotation> suppliedQualifiers) {<NEW_LINE>final String cn = JpaExtension.class.getName();<NEW_LINE>final String mn = "addJpaTransactionScopedEntityManagerBeans";<NEW_LINE>if (LOGGER.isLoggable(Level.FINER)) {<NEW_LINE>LOGG...
remove(Extended.Literal.INSTANCE);
457,456
public GatewayCapabilitySummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GatewayCapabilitySummary gatewayCapabilitySummary = new GatewayCapabilitySummary();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
872,055
private static Map<String, ToolWindow> createShortcuts(@Nonnull List<ToolWindow> windows) {<NEW_LINE>final Map<String, ToolWindow> keymap = new HashMap<>(windows.size());<NEW_LINE>final List<ToolWindow> otherTW = new ArrayList<>();<NEW_LINE>for (ToolWindow window : windows) {<NEW_LINE>int index = ActivateToolWindowActi...
(getIndexShortcut(i), window);
18,846
public void updateTask() {<NEW_LINE>final EntityPlayer targetPlayer2 = targetPlayer;<NEW_LINE>if (targetPlayer2 != null) {<NEW_LINE>if (--stareTimer <= 0) {<NEW_LINE>targetEntity = targetPlayer2;<NEW_LINE>targetPlayer = null;<NEW_LINE>super.startExecuting();<NEW_LINE>enderminy.playSound(SoundEvents.ENTITY_ENDERMEN_STAR...
applyModifier(EntityEnderminy.getAttackingspeedboostmodifier());
516,571
private Namespace createUniqueClassName(Namespace rootNamespace) {<NEW_LINE><MASK><NEW_LINE>String newClassBase = "AutoClass";<NEW_LINE>String newClassName = "";<NEW_LINE>for (int i = 1; i < 1000; ++i) {<NEW_LINE>newClassName = newClassBase + Integer.toString(i);<NEW_LINE>if (symbolTable.getSymbols(newClassName, rootNa...
SymbolTable symbolTable = currentProgram.getSymbolTable();
36,006
public static void main(String[] args) {<NEW_LINE>String directory = UtilIO.pathExample("fiducial/binary");<NEW_LINE>// load the lens distortion parameters and the input image<NEW_LINE>CameraPinholeBrown param = CalibrationIO.load(new File(directory, "intrinsic.yaml"));<NEW_LINE>var lensDistortion = new LensDistortionB...
, 21), GrayF32.class);
1,714,384
public void afterInsert(@NonNull CompletionProposal item) {<NEW_LINE>// See issue #235175<NEW_LINE>if (root == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Don't add import statement if we are completing import statement - see #228587<NEW_LINE>if (context.isBehindImportStatement()) {<NEW_LINE>return;<NEW_LINE>}<NEW_...
typeItem = (CompletionItem.TypeItem) item;
48,010
public ConsoleProxyVO startNew(long dataCenterId) throws ConcurrentOperationException {<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (!allowToLaunchNew(dataCenterId)) {<NEW_LINE>String configKey = Config.ConsoleProxyLaunchMax.key();<NEW_LINE>s_logger.warn(String.format("The number of...
s_logger.debug("Assign console proxy from a newly started instance for request from data center : " + dataCenterId);
1,171,908
private boolean sanityCheckInterfaceForwardingBehavior(String node, String vrf, String iface, IpSpaceToBDD ipSpaceToBDD, IpSpace arpFalse, InterfaceForwardingBehavior ifb) {<NEW_LINE>synchronized (ipSpaceToBDD.getBDDInteger().getFactory()) {<NEW_LINE>BDD arpFalseBdd = ipSpaceToBDD.visit(arpFalse);<NEW_LINE>BDD disposit...
+ " VRF " + vrf + " interface " + iface;
720,614
private void followCaret() {<NEW_LINE>int parIdx = getCurrentParagraph();<NEW_LINE>ParagraphBox<PS, SEG, S> paragrafBox = virtualFlow.<MASK><NEW_LINE>Bounds caretBounds;<NEW_LINE>try {<NEW_LINE>// This is the default mechanism, but is also needed for https://github.com/FXMisc/RichTextFX/issues/1017<NEW_LINE>caretBounds...
getCell(parIdx).getNode();
1,781,967
private static Map<String, Map<String, List<Integer>>> xContentSafeRoutingLocations(Map<String, Map<String, IntIndexedContainer>> locations) {<NEW_LINE>HashMap<String, Map<String, List<Integer>>> safeLocations = new HashMap<>(locations.size(), 1f);<NEW_LINE>for (Map.Entry<String, Map<String, IntIndexedContainer>> nodeE...
nodeEntry.getKey(), tableShards);
327,453
public void actionPerformed(ActionEvent e) {<NEW_LINE>panel.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>Integer product = onlyProduct.getValue() != null ? (Integer) onlyProduct.getValue() : null;<NEW_LINE>Integer vendor = onlyVendor.getValue() != null ? (Integer<MASK><NEW_LINE>Timestamp from = d...
) onlyVendor.getValue() : null;
1,500,970
public void insertLocalHostAssignment(HostInterface h, LayerInterface layer, LocalHostAssignment l) {<NEW_LINE>l.id = SqlUtil.genKeyRandom();<NEW_LINE>l.name = String.format("%s->%s", h.getName(), layer.getName());<NEW_LINE>l.<MASK><NEW_LINE>l.setJobId(layer.getJobId());<NEW_LINE>l.setLayerId(layer.getLayerId());<NEW_L...
setHostId(h.getHostId());
227,793
static byte[] scriptEncodeChunks(byte[][] chunks) {<NEW_LINE>byte[] buf = new byte[calculateByteSize(chunks)];<NEW_LINE>int index = 0;<NEW_LINE>for (byte[] chunk : chunks) {<NEW_LINE>if (chunk.length == 1) {<NEW_LINE>buf[index++] = chunk[0];<NEW_LINE>} else if (chunk.length < OP_PUSHDATA1) {<NEW_LINE>buf[index++] = (by...
chunk.length >> 8));
280,410
public SimScorer scorer(float boost, CollectionStatistics collectionStats, TermStatistics... termStats) {<NEW_LINE>final SimScorer inScorer = in.scorer(boost, collectionStats, termStats);<NEW_LINE>return new SimScorer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public float score(float freq, long norm) {<NEW_LINE>float s...
inScorer.explain(freq, norm);
1,436,394
public void start(ControllerMetrics controllerMetrics) {<NEW_LINE>_controllerMetrics = controllerMetrics;<NEW_LINE>LOGGER.info("Starting realtime segments manager, adding a listener on the property store table configs path.");<NEW_LINE>String zkUrl = _pinotHelixResourceManager.getHelixZkURL();<NEW_LINE>_zkClient = new ...
_zkClient.subscribeDataChanges(_tableConfigPath, this);
836,036
private static void remapModel(String bn, String newbn) {<NEW_LINE>DynmapBlockState <MASK><NEW_LINE>DynmapBlockState tobs = DynmapBlockState.getBaseStateByName(bn);<NEW_LINE>int fcnt = frombs.getStateCount();<NEW_LINE>for (int bs = 0; bs < tobs.getStateCount(); bs++) {<NEW_LINE>DynmapBlockState tb = tobs.getState(bs);<...
frombs = DynmapBlockState.getBaseStateByName(bn);
1,510,894
public List<Root> listActiveRoots() {<NEW_LINE>if (!initialized) {<NEW_LINE>initialize();<NEW_LINE>}<NEW_LINE>if (null == windowManagerObj) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (null == viewsField) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (null == paramsField) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE...
>) viewsField.get(windowManagerObj);
1,471,595
protected void refreshBendpoints() {<NEW_LINE>if (getConnectionFigure().getConnectionRouter() instanceof ManhattanConnectionRouter) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Bendpoint> figureConstraint = new ArrayList<Bendpoint>();<NEW_LINE>EList<IDiagramModelBendpoint> bendpoints = getModel().getBendpoints();<NEW_LI...
), bendpoint.getStartY());
689,194
void swapIndex(int i, int j) {<NEW_LINE>kernel.swapIndex(i, j);<NEW_LINE>byte <MASK><NEW_LINE>this.y[i] = this.y[j];<NEW_LINE>this.y[j] = tmpByte;<NEW_LINE>double tmp = this.gradient[i];<NEW_LINE>this.gradient[i] = this.gradient[j];<NEW_LINE>this.gradient[j] = tmp;<NEW_LINE>tmpByte = this.alphaStatus[i];<NEW_LINE>this....
tmpByte = this.y[i];
508,524
private void parserChildTable(SchemaInfo schemaInfo, final RouteResultset rrs, SQLReplaceStatement replace, final ShardingService service, boolean isExplain) throws SQLNonTransientException {<NEW_LINE>final SchemaConfig schema = schemaInfo.getSchemaConfig();<NEW_LINE>String tableName = schemaInfo.getTable();<NEW_LINE>f...
String joinColumn = tc.getJoinColumn();
1,464,213
private void addPackageContent(final Env env, PackageElement pe, EnumSet<ElementKind> kinds, DeclaredType baseType, boolean insideNew, boolean srcOnly) throws IOException {<NEW_LINE>if (isRecordSupported(env)) {<NEW_LINE>kinds.add(RECORD);<NEW_LINE>}<NEW_LINE>Set<? extends TypeMirror> smartTypes = options.contains(Opti...
Trees trees = controller.getTrees();
1,770,913
public float extract(DocumentContext documentContext, QueryContext queryContext) {<NEW_LINE>DocumentFieldContext context = documentContext.fieldContexts.get(field);<NEW_LINE>QueryFieldContext queryFieldContext = queryContext.fieldContexts.get(qfield);<NEW_LINE>long docSize = context.docSize;<NEW_LINE>long totalTermFreq...
relativeFreq) / (termFreq + 1d);
893,735
private boolean testConnection(String endpoint) {<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.logp(Level.FINE, logger.getName(), "testConnection", "Testing connection for endpoint " + endpoint);<NEW_LINE>}<NEW_LINE>// Build our test URL<NEW_LINE>URL testURL = null;<NEW_LINE>try {<NEW_LINE>// Make the ...
getName(), "testConnection", "Successful!");
1,201,705
public MaryData process(MaryData d) throws Exception {<NEW_LINE>Document doc = d.getDocument();<NEW_LINE>NodeIterator it = MaryDomUtils.createNodeIterator(doc, doc, MaryXML.TOKEN);<NEW_LINE>Element t = null;<NEW_LINE>while ((t = (Element) it.nextNode()) != null) {<NEW_LINE>String text;<NEW_LINE>// Do not touch tokens f...
.replace('\'', ','));
1,068,827
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>// test no where clause with unique on multiple props, exact specification of where-clause<NEW_LINE>IndexAssertionEventSend assertSendEvents = new IndexAssertionEventSend() {<NEW_LINE><NEW_LINE>public void run(...
"d2,i2", "where ssb2.l2 = ssb1.l1 and ssb2.i2 = ssb1.i1", false, assertSendEvents);
196,209
private void syncGroupId() {<NEW_LINE>for (Map.Entry<String, Pair<TableGroupConfig, Map<String, List<Pair<String, String>>>>> dbsEntry : dbTableGroupAndInstGroupInfo.entrySet()) {<NEW_LINE>String logicalDb = dbsEntry.getKey();<NEW_LINE>String topologyDataId = MetaDbDataIdBuilder.getDbTopologyDataId(logicalDb);<NEW_LINE...
String instIdOfGroup = InstIdUtil.getInstId();
990,186
/*<NEW_LINE>* Convert the Office document to PDF. If successful, update<NEW_LINE>* UploadPresentation.uploadedFile with the new PDF out and<NEW_LINE>* UploadPresentation.lastStepSuccessful to TRUE.<NEW_LINE>*/<NEW_LINE>public UploadedPresentation convertOfficeToPdf(UploadedPresentation pres) {<NEW_LINE>initialize(pres)...
"meetingId", pres.getMeetingId());
1,337,478
protected ModelAndView handleRequestInternal(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>int sqlId = ServletRequestUtils.getIntParameter(request, "sqlId", -1);<NEW_LINE>HttpSession sess = request.getSession(false);<NEW_LINE>if (sess != null) {<NEW_LINE>DataSourceTestInfo sessDa...
logger.trace("", e);
1,669,003
private SegmentCompletionProtocol.Response sendCommitEndWithMetadataFiles(String url, Map<String, File> metadataFiles) {<NEW_LINE>SegmentCompletionProtocol.Response response;<NEW_LINE>try {<NEW_LINE>String responseStr = _fileUploadDownloadClient.uploadSegmentMetadataFiles(new URI(url), metadataFiles, HttpClient.makeAut...
SegmentCompletionProtocol.Response.fromJsonString(responseStr);
621,200
public CompletableFuture<ExecutionResult> execute(ExecutionContext executionContext, ExecutionStrategyParameters parameters) throws NonNullableFieldWasNullException {<NEW_LINE>Instrumentation instrumentation = executionContext.getInstrumentation();<NEW_LINE>InstrumentationExecutionStrategyParameters instrumentationPara...
= new InstrumentationExecutionStrategyParameters(executionContext, parameters);
365,447
private void updateVlanUris(Connection conn) {<NEW_LINE>s_logger.debug("updating vlan URIs");<NEW_LINE>try (PreparedStatement selectstatement = conn.prepareStatement("SELECT id, vlan_id FROM `cloud`.`vlan` where vlan_id not like '%:%'");<NEW_LINE>ResultSet results = selectstatement.executeQuery()) {<NEW_LINE>while (res...
id = results.getLong(1);
1,371,885
public okhttp3.Call readVolumeAttachmentStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status".replaceAll("\\{" +...
HashMap<String, Object>();
1,261,973
public void write(List<? extends Long> theTermCodeSystemVersionPidList) throws Exception {<NEW_LINE>// receives input in chunks of size one<NEW_LINE>long codeSystemVersionId = theTermCodeSystemVersionPidList.get(0);<NEW_LINE>ourLog.info("Deleting term code links");<NEW_LINE>int <MASK><NEW_LINE>ourLog.info("Deleted {} t...
deletedLinks = myConceptParentChildLinkDao.deleteByCodeSystemVersion(codeSystemVersionId);
809,936
public void serialize(final RntbdClientChannelPool value, final JsonGenerator generator, final SerializerProvider provider) throws IOException {<NEW_LINE>final RntbdClientChannelHealthChecker healthChecker = (RntbdClientChannelHealthChecker) value.healthChecker;<NEW_LINE>generator.writeStartObject();<NEW_LINE>generator...
"maxRequestsPerChannel", value.maxRequestsPerChannel());
1,403,172
private void writeRequestValues(CounterRequest aRequest, boolean allChildHitsDisplayed) {<NEW_LINE>final PdfPCell defaultCell = getDefaultCell();<NEW_LINE>defaultCell.setHorizontalAlignment(Element.ALIGN_RIGHT);<NEW_LINE>addCell(integerFormat.format(aRequest.getMean()));<NEW_LINE>addCell(integerFormat.format(aRequest.g...
(aRequest.getSystemErrorPercentage()));
413,304
public static ListExpressCompanyResponse unmarshall(ListExpressCompanyResponse listExpressCompanyResponse, UnmarshallerContext _ctx) {<NEW_LINE>listExpressCompanyResponse.setRequestId<MASK><NEW_LINE>listExpressCompanyResponse.setPageSize(_ctx.integerValue("ListExpressCompanyResponse.PageSize"));<NEW_LINE>listExpressCom...
(_ctx.stringValue("ListExpressCompanyResponse.RequestId"));
1,191,401
public void transform(TypeTransformer transformer) {<NEW_LINE>transformer.applyAdviceToMethod(isMethod().and(nameStartsWith("end").or(named("sendHead"))), HttpRequestInstrumentation.class.getName() + "$EndRequestAdvice");<NEW_LINE>transformer.applyAdviceToMethod(isMethod().and(named("handleException")), HttpRequestInst...
class.getName() + "$MountContextAdvice");
90,616
public static ColumnVector lessThan(ColumnView lhs, BigDecimal rhs) {<NEW_LINE>assert (lhs.<MASK><NEW_LINE>int leftScale = lhs.getType().getScale();<NEW_LINE>int leftPrecision = lhs.getType().getDecimalMaxPrecision();<NEW_LINE>// First we have to round the scalar (rhs) to the same scale as lhs. Because this is a<NEW_L...
getType().isDecimalType());
904,584
private void addToResourceCollector(Node node, RType rType, Path file) throws ResourceParseException {<NEW_LINE>String resourceName <MASK><NEW_LINE>DocumentLocation location = extractDocumentLocation(node);<NEW_LINE>if (rType.equals(RType.STYLEABLE)) {<NEW_LINE>int count = 0;<NEW_LINE>for (Node attrNode = node.getFirst...
= sanitizeName(extractNameAttribute(node));
418,959
private static void addGroupByExpressionsToProjections(QueryPlanningInfo info) {<NEW_LINE>if (info.groupBy == null || info.groupBy.getItems() == null || info.groupBy.getItems().size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OGroupBy newGroupBy = new OGroupBy(-1);<NEW_LINE>int i = 0;<NEW_LINE>for (OExpression exp :...
newItem = new OProjectionItem(-1);
1,647,905
private boolean teleport(Entity entity) {<NEW_LINE>if (requiredPower <= 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (TelePadConfig.telepadFluidUse.get() > 0) {<NEW_LINE>if (tank.getFluidAmount() < TelePadConfig.telepadFluidUse.get()) {<NEW_LINE>tank.drain(TelePadConfig.<MASK><NEW_LINE>if (entity instanceof Entit...
telepadFluidUse.get(), true);
1,397,521
public ManagedDataSource build(MetricRegistry metricRegistry, String name) {<NEW_LINE>final Properties dbProperties = new Properties();<NEW_LINE>properties.forEach(dbProperties::setProperty);<NEW_LINE>final PoolProperties poolConfig = new PoolProperties();<NEW_LINE>poolConfig.setAbandonWhenPercentageFull(abandonWhenPer...
int) minIdleTime.toMilliseconds());
508,784
Mono<Response<ShareFileInfo>> createWithResponse(long maxSize, ShareFileHttpHeaders httpHeaders, FileSmbProperties smbProperties, String filePermission, Map<String, String> metadata, ShareRequestConditions requestConditions, Context context) {<NEW_LINE>requestConditions = requestConditions == null ? new ShareRequestCon...
smbProperties.setNtfsFileAttributes(FileConstants.FILE_ATTRIBUTES_NONE);
1,732,180
public BufferedImage openSeries(int series) throws InterruptedException, FormatException, IOException {<NEW_LINE>IFormatReader reader = null;<NEW_LINE>try {<NEW_LINE>reader = nextQueuedReader();<NEW_LINE>synchronized (reader) {<NEW_LINE>int previousSeries = reader.getSeries();<NEW_LINE>try {<NEW_LINE>reader.setSeries(s...
int nResolutions = reader.getResolutionCount();
748,179
public int compareTo(beginFateOperation_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());<...
this.sec, other.sec);
1,691,053
public void resolve(BlockScope scope) {<NEW_LINE>if (containsPatternVariable()) {<NEW_LINE>this.condition.collectPatternVariablesToScope(null, scope);<NEW_LINE>LocalVariableBinding[] patternVariablesInFalseScope = this.condition.getPatternVariablesWhenFalse();<NEW_LINE>TypeBinding type = this.condition.resolveTypeExpec...
computeConversion(scope, type, type);
561,970
static DirectUpdateDoublesSketch newInstance(final int k, final WritableMemory dstMem) {<NEW_LINE>// must be able to hold at least an empty sketch<NEW_LINE>final long memCap = dstMem.getCapacity();<NEW_LINE>checkDirectMemCapacity(k, 0, memCap);<NEW_LINE>// initialize dstMem<NEW_LINE>// clear pre0<NEW_LINE>dstMem.putLon...
insertMinDouble(dstMem, Double.NaN);
238,373
public void maxOrMinItems(@Name("item") final Object item, @Name("value") final Object inputValue, @Name(value = "groupLimit", defaultValue = "-1") final Long groupLimitParam) {<NEW_LINE>int groupLimit = groupLimitParam.intValue();<NEW_LINE>boolean noGroupLimit = groupLimit < 0;<NEW_LINE>if (item != null && inputValue ...
) : value.compareTo(inputValue);
1,576,854
protected void execute() {<NEW_LINE>if (communicationInUse) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.debug("Refresh heat pump sensor and status values ...");<NEW_LINE>communicationInUse = true;<NEW_LINE>CommunicationService communicationService = null;<NEW_LINE>try {<NEW_LINE>communicationService = new Communicati...
), entry.getValue());
1,712,140
public <T> String predicate(UnboundPredicate<T> pred) {<NEW_LINE>switch(pred.op()) {<NEW_LINE>case IS_NULL:<NEW_LINE>return pred.ref<MASK><NEW_LINE>case NOT_NULL:<NEW_LINE>return pred.ref().name() + " IS NOT NULL";<NEW_LINE>case IS_NAN:<NEW_LINE>return "is_nan(" + pred.ref().name() + ")";<NEW_LINE>case NOT_NAN:<NEW_LIN...
().name() + " IS NULL";
796,119
private boolean canShootEntity(LivingEntity entity) {<NEW_LINE>Vec3 start = getGunPosition();<NEW_LINE>Vec3 end = getTargetVector(entity);<NEW_LINE>// Don't shoot through walls<NEW_LINE>if (Utils.rayTraceForFirst(start, end, level, Collections.singleton(getBlockPos().above())) != null)<NEW_LINE>return false;<NEW_LINE>/...
getEntitiesOfClass(LivingEntity.class, potentialCollateralArea);
98,193
public void process(T gray) {<NEW_LINE>// Reset and initialize<NEW_LINE>allMarkers.reset();<NEW_LINE>detected.clear();<NEW_LINE>failed.clear();<NEW_LINE>// Detect finder patterns<NEW_LINE>inputToBinary.process(gray, binary);<NEW_LINE>detectorPyramids.process(gray, binary);<NEW_LINE>// Attempt to decode candidate marker...
pyramid = pyramids.get(locatorIdx);
1,745,820
protected void importMarkupStyle1(Pattern titlePattern, Markup titlePrefix, Reader markupText, MarkupLanguage markupLanguage, int levelOffset) {<NEW_LINE>Validate.isTrue(levelOffset <= MAX_TITLE_LEVEL, String.format("Specified levelOffset (%d) > max levelOffset (%d)", levelOffset, MAX_TITLE_LEVEL));<NEW_LINE>Validate.i...
throw new RuntimeException("Failed to import Markup", e);
325,808
public void unlockRead(long stamp) {<NEW_LINE>offHeapLock = chm.get("Stamp ");<NEW_LINE>readLockHolderCount = chmR.get("ReaderCount ");<NEW_LINE>Jvm.debug().on(getClass(), " ,@t=" + System.currentTimeMillis() + " ChronicleStampedLock unlockRead(" + stamp + ") unlocking.." + "ReaderCount=[" + (readLockHolderCount = chmR...
) + "]" + " BEFORE addAtomic(-1) " + ",");
682,385
public void createUser(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>request = wrapRequest(request);<NEW_LINE>org.airsonic.player.domain.User user = securityService.getCurrentUser(request);<NEW_LINE>if (!user.isAdminRole()) {<NEW_LINE>error(request, response, ErrorCode.NOT_AUTHOR...
(request, "jukeboxRole", false));
1,334,248
public void marshall(Device device, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (device == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(device.getArn(), ARN_BINDING);<NEW_LINE>protocolMarshaller.marshal...
device.getResolution(), RESOLUTION_BINDING);
403,526
protected void addMetricsMonitor(String area, String cacheName, Cache cache) {<NEW_LINE>if (defaultMetricsManager != null) {<NEW_LINE>cache = CacheUtil.getAbstractCache(cache);<NEW_LINE>if (cache instanceof MultiLevelCache) {<NEW_LINE>MultiLevelCache mc = (MultiLevelCache) cache;<NEW_LINE>if (mc.caches().length == 2) {...
DefaultCacheMonitor monitor = new DefaultCacheMonitor(cacheName);
1,746,039
public void rebuildQueue() {<NEW_LINE>numFluidBlocksFound = 0;<NEW_LINE>pumpLayerQueues.clear();<NEW_LINE>int x = pos.getX();<NEW_LINE>int y = aimY;<NEW_LINE>int z = pos.getZ();<NEW_LINE>BlockPos pos = new BlockPos(x, y, z);<NEW_LINE>Fluid pumpingFluid = BlockUtil.getFluid(BlockUtil.getBlockState(worldObj, pos).getBloc...
visitedBlocks = new HashSet<>();
373,252
private String formatRateCompact(int rate) {<NEW_LINE>String str = DisplayFormatters.formatCustomRate("title.rate", rate);<NEW_LINE>if (str == null) {<NEW_LINE>str = DisplayFormatters.formatByteCountToKiBEtc(rate, false, true, 2, DisplayFormatters.UNIT_KB);<NEW_LINE>String[] bits = str.split(" ");<NEW_LINE>if (bits.len...
num.substring(0, 4);
280,016
public HTMLPageAsset saveTemplate(final User user, final HTMLPageAsset htmlPageAsset, final PageForm pageForm) throws BadRequestException, DotDataException, DotSecurityException {<NEW_LINE>try {<NEW_LINE>final Template templateSaved = this.saveTemplate(htmlPageAsset, user, pageForm);<NEW_LINE>final String templateId = ...
this.htmlPageAssetAPI.fromContentlet(contentlet);
921,780
public Address subtractNoWrap(Address addr, long displacement) throws AddressOverflowException {<NEW_LINE>if (displacement < 0) {<NEW_LINE>if (displacement == Long.MIN_VALUE) {<NEW_LINE>throw new AddressOverflowException("Address Overflow in subtract: " + addr + " - 0x" + Long.toHexString(displacement));<NEW_LINE>}<NEW...
("Address Overflow in subtract: %s - 0x%x", addr, displacement));
591,391
private AtomicReference<ServerRoutingConfig> generateRoutingConfig(FilterChain filterChain) {<NEW_LINE><MASK><NEW_LINE>if (hcm.virtualHosts() != null) {<NEW_LINE>ImmutableMap<Route, ServerInterceptor> interceptors = generatePerRouteInterceptors(hcm.httpFilterConfigs(), hcm.virtualHosts());<NEW_LINE>return new AtomicRef...
HttpConnectionManager hcm = filterChain.httpConnectionManager();
30,578
public static Vec3 lookAt(Vec3 vec, Vec3 fwd) {<NEW_LINE>fwd = fwd.normalize();<NEW_LINE>Vec3 up = new Vec3(0, 1, 0);<NEW_LINE>double dot = fwd.dot(up);<NEW_LINE>if (Math.abs(dot) > 1 - 1.0E-3)<NEW_LINE>up = new Vec3(0, 0, dot <MASK><NEW_LINE>Vec3 right = fwd.cross(up).normalize();<NEW_LINE>up = right.cross(fwd).normal...
> 0 ? 1 : -1);
1,540,019
public NodeIndicesStats stats(CommonStatsFlags flags) {<NEW_LINE>CommonStats commonStats = new CommonStats(flags);<NEW_LINE>// the cumulative statistics also account for shards that are no longer on this node, which is tracked by oldShardsStats<NEW_LINE>for (Flag flag : flags.getFlags()) {<NEW_LINE>switch(flag) {<NEW_L...
recoveryStats.add(oldShardsStats.recoveryStats);
541,818
public void create(IProject project, CommandLine commandLine) {<NEW_LINE>String[] args = commandLine.getValues(Options.ARGS_OPTION);<NEW_LINE>DefaultParser parser = new DefaultParser();<NEW_LINE>org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();<NEW_LINE>options.addOption(Option.builder().ha...
throw new RuntimeException("Python interpreter not found: " + interpreter);
1,261,873
protected int doPersist(final WorldStateStorage worldStateStorage, final Updater updater, final WorldDownloadState<SnapDataRequest> downloadState, final SnapSyncState snapSyncState) {<NEW_LINE>if (startStorageRange.isPresent() && endStorageRange.isPresent()) {<NEW_LINE>// not store the new account if we just want to co...
putAccountStateTrieNode(location, hash, value);
1,276,840
public static void perform() throws Exception {<NEW_LINE>final String fromVer = "4.3.0";<NEW_LINE>final String toVer = "4.3.1";<NEW_LINE>LOGGER.log(Level.INFO, "Upgrading from version [" + fromVer + "] to version [" + toVer + "]....");<NEW_LINE>final BeanManager beanManager = BeanManager.getInstance();<NEW_LINE>final O...
fromVer + "] to version [" + toVer + "] successfully");
1,336,802
public Iterator<Entry<K, V>> iterator() {<NEW_LINE>return new Iterator<Map.Entry<K, V>>() {<NEW_LINE><NEW_LINE>final InternalJsMap.Iterator<?> chains = backingMap.entries();<NEW_LINE><NEW_LINE>int itemIndex = 0;<NEW_LINE><NEW_LINE>Entry<K, V>[] chain = newEntryChain();<NEW_LINE><NEW_LINE>Entry<K, V> lastEntry = null;<N...
> current = chains.next();
1,478,133
private boolean attachVolumeToVM(Long zoneId, String restoredVolumeLocation, List<Backup.VolumeInfo> backedUpVolumes, String volumeUuid, VMInstanceVO vm, String datastoreUuid, Backup backup) throws Exception {<NEW_LINE>HypervisorGuru guru = hypervisorGuruManager.getGuru(vm.getHypervisorType());<NEW_LINE>Backup.VolumeIn...
" due to: " + e.getMessage());
338,016
public Observable<ServiceResponse<List<DetectedFace>>> detectWithStreamWithServiceResponseAsync(byte[] image, DetectWithStreamOptionalParameter detectWithStreamOptionalParameter) {<NEW_LINE>if (this.client.azureRegion() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.azureRegion() is requi...
? detectWithStreamOptionalParameter.returnFaceAttributes() : null;
260,229
public org.python.Object partition(org.python.Object sep) {<NEW_LINE>java.lang.String sepStr = ((org.python.types.Str) sep).value;<NEW_LINE>if (sepStr.equals("")) {<NEW_LINE>throw new org.python.exceptions.ValueError("empty separator");<NEW_LINE>}<NEW_LINE>java.lang.String[] split = this.<MASK><NEW_LINE>java.util.List<...
value.split(sepStr, 2);
241,867
protected void handleOpen(HttpServletRequest req, HttpServletResponse resp) throws IOException {<NEW_LINE>log.debug("handleOpen");<NEW_LINE>// skip sent data<NEW_LINE>skipData(req);<NEW_LINE>// TODO: should we evaluate the pathinfo?<NEW_LINE>RTMPTConnection conn = (RTMPTConnection) manager.createConnection(RTMPTConnect...
resp.setHeader("Cache-Control", "no-cache");
1,770,893
public FlowableEventListener createEventThrowingEventListener(EventListener eventListener) {<NEW_LINE>BaseDelegateEventListener result = null;<NEW_LINE>if (ImplementationType.IMPLEMENTATION_TYPE_THROW_SIGNAL_EVENT.equals(eventListener.getImplementationType())) {<NEW_LINE>result = new SignalThrowingEventListener();<NEW_...
setSignalName(eventListener.getImplementation());
1,713,626
private static void onPotionStart(PotionEvent.PotionAddedEvent event) {<NEW_LINE>MobEffectInstance newEffect = event.getPotionEffect();<NEW_LINE>if (!newEffect.getEffect().isBeneficial() && !newEffect.getCurativeItems().isEmpty()) {<NEW_LINE><MASK><NEW_LINE>living.getCapability(TinkerDataCapability.CAPABILITY).ifPresen...
LivingEntity living = event.getEntityLiving();
744,239
public String update(Request request, Response response) {<NEW_LINE>String uuid = request.params("uuid");<NEW_LINE>AgentUpdateRequest req = fromJSON(request.body());<NEW_LINE>String hostname = req.getHostname();<NEW_LINE>String resources = req.getResources();<NEW_LINE>String environments = filterOutEnvsWhichAreAssociat...
hostname, resources, environments, configState);
464,873
public J visitBinary(J.Binary binary, P p) {<NEW_LINE>J.Binary b = binary;<NEW_LINE>b = b.withPrefix(visitSpace(b.getPrefix(), Space.Location.BINARY_PREFIX, p));<NEW_LINE>b = b.withMarkers(visitMarkers(b.getMarkers(), p));<NEW_LINE>Expression temp = (Expression) visitExpression(b, p);<NEW_LINE>if (!(temp instanceof J.B...
.getRight(), p));
1,322,810
public Pair<RemoteMessage, Object> receiveMessage() throws IOException {<NEW_LINE>try {<NEW_LINE>RemoteMessage type = (RemoteMessage) in.readObject();<NEW_LINE>Object argument = in.readObject();<NEW_LINE><MASK><NEW_LINE>// decode the received commandline arguments<NEW_LINE>if (type == RemoteMessage.SEND_COMMAND_LINE_AR...
int endOfMessage = in.read();
283,634
public static Stream<MethodNode> findAccessorMethodsForPropertyName(String name, ClassNode declaringType, boolean isCategory, AccessorSupport... kinds) {<NEW_LINE>Stream<MethodNode> methods = Stream.empty();<NEW_LINE>if (name != null && name.length() > 0 && kinds != null && kinds.length > 0) {<NEW_LINE>String suffix = ...
findAllInterfaces(declaringType, faces, true);
108,606
private BLangRawTemplateLiteral createRawTemplateLiteral(NodeList<Node> members, Location location) {<NEW_LINE>BLangRawTemplateLiteral literal = (BLangRawTemplateLiteral) TreeBuilder.createRawTemplateLiteralNode();<NEW_LINE>literal.pos = location;<NEW_LINE>boolean prevNodeWasInterpolation = false;<NEW_LINE>// will be e...
null : members.get(0);
45,805
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// Views<NEW_LINE>mStatusTextView = findViewById(R.id.status);<NEW_LINE>// Button listeners<NEW_LINE>findViewById(R.id.sign_in_button).setOnClickListener(this);<NEW...
.disconnect_button).setOnClickListener(this);
1,726,934
public final Symbol<Signature> makeRaw(Symbol<Type> returnType, Symbol<Type>... parameterTypes) {<NEW_LINE>if (parameterTypes == null || parameterTypes.length == 0) {<NEW_LINE>final byte[] bytes = new byte[2 + returnType.length()];<NEW_LINE>Symbol.copyBytes(returnType, 0, bytes, 2, returnType.length());<NEW_LINE>bytes[...
(ByteSequence.wrap(bytes));
1,264,356
public static DescribeRoleZoneInfoResponse unmarshall(DescribeRoleZoneInfoResponse describeRoleZoneInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRoleZoneInfoResponse.setRequestId(_ctx.stringValue("DescribeRoleZoneInfoResponse.RequestId"));<NEW_LINE>describeRoleZoneInfoResponse.setPageNumber<MASK><NEW_LINE>...
(_ctx.integerValue("DescribeRoleZoneInfoResponse.PageNumber"));
1,327,172
public void run(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>logger.warn(String.format("the host[uuid:%s] disconnected, but the vm[uuid:%s] fails to " + "change it's state to Unknown, %s", hostUuid, vmUuid, reply.getError()));<NEW_LINE>logger.warn(String.format("create an unknowngc job for vm[uuid:...
("the host[uuid:%s] disconnected, change the VM[uuid:%s]' state to Unknown", hostUuid, vmUuid));
1,699,579
public static void horizontal(GrayF32 src, GrayF32 dst) {<NEW_LINE>if (src.width < dst.width)<NEW_LINE>throw new IllegalArgumentException("src width must be >= dst width");<NEW_LINE>if (src.height != dst.height)<NEW_LINE>throw new IllegalArgumentException("src height must equal dst height");<NEW_LINE>float scale = src....
1.0f - (srcX0 - isrcX0));
1,057,916
public void read(org.apache.thrift.protocol.TProtocol iprot, beginCreateBlob_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type =...
skip(iprot, schemeField.type);
193,739
private JPanel create(MemoryBlock block) {<NEW_LINE>JPanel panel = new JPanel(new PairLayout(5, 5, 150));<NEW_LINE>startAddressInput = new AddressInput();<NEW_LINE>startAddressInput.setName("NewStartAddress");<NEW_LINE>startAddressInput.setAddressFactory(addrFactory);<NEW_LINE>endAddressInput = new AddressInput();<NEW_...
setText(end.toString());
713,418
// Execute 3 PreparedStatements with different SQL queries. Expect statements to NOT be shared<NEW_LINE>// Execute 3 PreparedStatements with the same SQL query and expect statements to be shared.<NEW_LINE>@Test<NEW_LINE>public void testPStmtCaching() throws Exception {<NEW_LINE>DataSource ds1 = InitialContext.doLookup(...
stmt.setInt(1, 18);
836,843
boolean valid(WizardDescriptor wizardDescriptor) {<NEW_LINE>if (projectNameTextField.getText().length() == 0) {<NEW_LINE>// NOI18N<NEW_LINE>wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, NbBundle.getMessage(PanelProjectLocationVisual.class, "MSG_IllegalProjectName"));<NEW_LINE>// Display name not spe...
putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, "");