idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,076,688
private AnalysisResult findLeakTrace(long analysisStartNanoTime, Snapshot snapshot, Instance leakingRef, boolean computeRetainedSize) {<NEW_LINE>listener.onProgressUpdate(AnalyzerProgressListener.Step.FINDING_SHORTEST_PATH);<NEW_LINE>ShortestPathFinder pathFinder = new ShortestPathFinder(excludedRefs);<NEW_LINE>Shortes...
onProgressUpdate(AnalyzerProgressListener.Step.COMPUTING_DOMINATORS);
114,355
public void indexDocumentsWithResponseAsync() {<NEW_LINE>// BEGIN: com.azure.search.documents.SearchAsyncClient.indexDocumentsWithResponse#IndexDocumentsBatch-IndexDocumentsOptions<NEW_LINE>SearchDocument searchDocument1 = new SearchDocument();<NEW_LINE>searchDocument1.put("hotelId", "1");<NEW_LINE><MASK><NEW_LINE>Sear...
searchDocument1.put("hotelName", "test1");
539,878
protected void renderPage(HttpServletRequest req, VelocityContext ctx, Writer writer) {<NEW_LINE>String key = (String) ctx.get("key");<NEW_LINE>Integer ordinal = (Integer) ctx.get("ordinal");<NEW_LINE>ui.getVelocityEngine().getTemplate("browse-selected-type-top.vm"<MASK><NEW_LINE>try {<NEW_LINE>Writer htmlEscapingWrite...
).merge(ctx, writer);
1,077,944
private void initializeDataSource() {<NEW_LINE>final var jdbcUrl = config.getJdbcUrl();<NEW_LINE>final var username = config.getUsername();<NEW_LINE>final var password = config.getPassword();<NEW_LINE>final var dsClassName = config.getDataSourceClassName();<NEW_LINE>final var driverClassName = config.getDriverClassName...
PropertyElf.setTargetFromProperties(ds, dataSourceProperties);
81,393
private void create() {<NEW_LINE>KeyListener listener = new KeyAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void keyPressed(KeyEvent e) {<NEW_LINE>if (e.getKeyCode() == KeyEvent.VK_ENTER) {<NEW_LINE>e.consume();<NEW_LINE>okCallback();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>};<NEW_LINE>panel = new JPanel();<NEW_LINE...
BoxLayout(cbPanel, BoxLayout.Y_AXIS);
871,980
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Path("/segments/{tableName}/delete")<NEW_LINE>@Authenticate(AccessType.DELETE)<NEW_LINE>@ApiOperation(value = "Delete the segments in the JSON array payload", notes = "Delete the segments in the JSON array payload")<NEW_LINE>public SuccessResponse deleteSegments(@ApiParam...
deleteSegmentsInternal(tableNameWithType, segments, retentionPeriod);
1,264,235
private void updateUsersPowerToolsFormat() {<NEW_LINE>if (doneFile.getBoolean("updateUsersPowerToolsFormat", false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final File userdataFolder = new File(ess.getDataFolder(), "userdata");<NEW_LINE>if (!userdataFolder.exists() || !userdataFolder.isDirectory()) {<NEW_LINE>return;<NE...
Level.INFO, "File: " + file);
749,763
public J.VariableDeclarations visitVariableDeclarations(J.VariableDeclarations multiVariable, ExecutionContext ctx) {<NEW_LINE>// if the type expression is null, it implies the types on the lambda arguments are implicit.<NEW_LINE>if (multiVariable.getTypeExpression() == null && getCursor().dropParentUntil(J.class::isIn...
super.visitVariableDeclarations(multiVariable, ctx);
929,336
public Map<String, INDArray> init(NeuralNetConfiguration conf, INDArray paramsView, boolean initializeParams) {<NEW_LINE>Map<String, INDArray> params = Collections.synchronizedMap(new LinkedHashMap<String, INDArray>());<NEW_LINE>org.deeplearning4j.nn.conf.layers.CenterLossOutputLayer layerConf = (org.deeplearning4j.nn....
.CenterLossOutputLayer) conf.getLayer();
446,511
synchronized Document runParse(Properties props) {<NEW_LINE>if (this.sentences != null && !this.sentences.isEmpty() && this.sentences.get(0).rawSentence().hasParseTree()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>// Run annotator<NEW_LINE>boolean cacheAnnotation = false;<NEW_LINE>Annotator parse = ((props == EMPTY_PR...
: serializer.toProto(binaryTree));
185,986
public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>// background<NEW_LINE>if (SettingsManager.chatsShowBackground()) {<NEW_LINE>if (SettingsManager.interfaceTheme() == SettingsManager.InterfaceTheme.dark) {<NEW_LINE>backgroundView.setBackgroundResource(R.drawable.chat_background_repeat_dark);<NEW_LINE>} else ...
setBackgroundResource(R.drawable.chat_background_repeat);
1,468,550
public boolean connect() {<NEW_LINE>try {<NEW_LINE>URI ldapUrl = new URI(settings.getRequiredString(Keys.realm.ldap.server));<NEW_LINE>String ldapHost = ldapUrl.getHost();<NEW_LINE>int ldapPort = ldapUrl.getPort();<NEW_LINE>if (ldapUrl.getScheme().equalsIgnoreCase("ldaps")) {<NEW_LINE>// SSL<NEW_LINE>SSLUtil sslUtil = ...
conn.connect(ldapHost, ldapPort);
1,127,166
public void marshall(Handshake handshake, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (handshake == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(handshake.getId(), ID_BINDING);<NEW_LINE>protocolMarshall...
handshake.getParties(), PARTIES_BINDING);
142,481
public Operand buildHash(HashNode hashNode) {<NEW_LINE>List<KeyValuePair<Operand, Operand>> args = new ArrayList<>();<NEW_LINE>boolean hasAssignments = hashNode.containsVariableAssignment();<NEW_LINE>Variable hash = null;<NEW_LINE>for (KeyValuePair<Node, Node> pair : hashNode.getPairs()) {<NEW_LINE>Node key = pair.getK...
] { hash, splat }));
1,487,371
public okhttp3.Call deleteTagCall(String repository, String tag, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/repositories/{repository}/tags/{tag}".replaceAll("\\{" + "repository" + "\\}", localVarA...
localVarHeaderParams.put("Accept", localVarAccept);
1,741,585
private void updateConstantType(BConstantSymbol symbol, BLangExpression expr, SymbolEnv env) {<NEW_LINE>BType type = Types.getReferredType(symbol.type);<NEW_LINE>if (type.getKind() == TypeKind.FINITE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (symbol.value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BType resolvedT...
type, symbol.pos, env);
1,265,414
public static synchronized SMAdminController<WebUser, WebRole> createSecurityService(WebApplication application, Map<String, Object> databaseConfig) throws DBException {<NEW_LINE>if (CONTROLLER_INSTANCE != null) {<NEW_LINE>return CONTROLLER_INSTANCE;<NEW_LINE>}<NEW_LINE>CBDatabaseConfig databaseConfiguration = new CBDa...
class, dbPoolConfigCreator).create();
930,846
public List<ChannelDefinition> createLocalizedChannelDefinitions(final Bundle bundle, final List<ChannelDefinition> channelDefinitions, final Function<ChannelDefinition, @Nullable String> channelLabelResolver, final Function<ChannelDefinition, @Nullable String> channelDescriptionResolver, @Nullable final Locale locale)...
ChannelDefinitionBuilder builder = new ChannelDefinitionBuilder(channelDefinition);
340,395
protected BSONObject serializeMedia(Media media) {<NEW_LINE>BSONObject r = new BasicBSONObject();<NEW_LINE>r.put(FULL_FIELD_NAME_PLAYER, media.player.name());<NEW_LINE>r.put(FULL_FIELD_NAME_URI, media.uri);<NEW_LINE>if (media.title != null)<NEW_LINE>r.put(FULL_FIELD_NAME_TITLE, media.title);<NEW_LINE>r.put(FULL_FIELD_N...
put(FULL_FIELD_NAME_DURATION, media.duration);
782,997
public void releaseNetworkService(final VmInstanceSpec servedVm, Map<String, Object> data, final NoErrorCompletion completion) {<NEW_LINE>RefreshSecurityGroupRulesOnVmMsg msg = new RefreshSecurityGroupRulesOnVmMsg();<NEW_LINE>msg.setVmInstanceUuid(servedVm.getVmInventory().getUuid());<NEW_LINE>msg.setHostUuid(servedVm....
deleteVmNicSecurityGroupRef(nic.getUuid());
485,592
public static DescribeAppResponse unmarshall(DescribeAppResponse describeAppResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppResponse.setRequestId(_ctx.stringValue("DescribeAppResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>result.setId(_ctx.stringValue("DescribeAppResponse.result.id"));...
(_ctx.integerValue("DescribeAppResponse.result.algoDeploymentId"));
1,457,293
public void init(IGanttProject project, final UIFacade uiFacade) {<NEW_LINE><MASK><NEW_LINE>uiFacade.getLanguageOption().addChangeValueListener(new ChangeValueListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void changeValue(ChangeValueEvent event) {<NEW_LINE>Locale selectedLocale = uiFacade.getLanguageOption(...
super.init(project, uiFacade);
438,835
public int size() {<NEW_LINE>final Segment<K, V>[] segments = this.segments;<NEW_LINE>long sum = 0;<NEW_LINE>long check = 0;<NEW_LINE>int[] mc = new int[segments.length];<NEW_LINE>// Try a few times to get accurate count. On failure due to<NEW_LINE>// continuous async changes in table, resort to locking.<NEW_LINE>for (...
segments[i].lock();
402,113
private static void addEventHandlerFix(AnnotationHolder holder, PsiMethodCallExpression methodCall) {<NEW_LINE>final PsiExpressionList list = methodCall.getArgumentList();<NEW_LINE>if (!list.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String eventQualifiedName = resolveEventName(methodCall);<NEW_LINE>if (ev...
methodCall, PsiClass.class::isInstance);
1,388,935
public void marshall(ApplicationInfo applicationInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (applicationInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(applicationInfo.getResourceGroupName(),...
applicationInfo.getOpsCenterEnabled(), OPSCENTERENABLED_BINDING);
672,627
public CodegenMethod evaluateRowCodegen(CodegenMethodScope parent, CodegenClassScope classScope) {<NEW_LINE>ExprForgeCodegenSymbol symbols = new ExprForgeCodegenSymbol(true, true);<NEW_LINE>CodegenMethod method = parent.makeChildWithScope(EPTypePremade.MAP.getEPType(), CodegenLegoMethodExpression.class, symbols, classS...
), method, symbols, classScope);
905,196
public void onEnable() {<NEW_LINE>this.audienceFactory = BukkitAudiences.create(this);<NEW_LINE>this.platform = new SparkPlatform(this);<NEW_LINE>this.platform.enable();<NEW_LINE>// override Spigot's TPS command with our own.<NEW_LINE>if (this.platform.getConfiguration().getBoolean("overrideTpsCommand", true)) {<NEW_LI...
this, this.tpsCommand, "tps");
871,600
public MySQLTableForeignKey configureObject(DBRProgressMonitor monitor, Object table, MySQLTableForeignKey foreignKey, Map<String, Object> options) {<NEW_LINE>return UITask.run(() -> {<NEW_LINE>EditForeignKeyPage editPage = new EditForeignKeyPage(MySQLUIMessages.edit_foreign_key_manager_title, foreignKey, new DBSForeig...
setUpdateRule(editPage.getOnUpdateRule());
1,561,923
public PathAttributes toAttributes(final MantaObject object) {<NEW_LINE>final PathAttributes attributes = new PathAttributes();<NEW_LINE>attributes.setPermission(new Permission(session.isUserWritable(object) ? Permission.Action.all : Permission.Action.read, Permission.Action.none, session.isWorldReadable(object) ? Perm...
("Cannot set link. Web URL returned %s", joinedPath), e);
390,186
public void write(@Nonnull Writer writer, @Nonnull Server server, @Nonnull Query query, @Nonnull Iterable<Result> results) throws IOException {<NEW_LINE>Closer closer = Closer.create();<NEW_LINE>try {<NEW_LINE>JsonGenerator g = closer.register(jsonFactory.createGenerator(writer));<NEW_LINE>g.writeStartObject();<NEW_LIN...
g.writeStringField("source", source);
1,808,430
public void incrementSelection(int rows) {<NEW_LINE>int rowSelected = getSelectedRow();<NEW_LINE>if (rowSelected < 0 && model.selectedByteStart >= 0) {<NEW_LINE>try {<NEW_LINE>model.clear();<NEW_LINE>clear();<NEW_LINE>List<String> lines = reader.readNextChunkFrom(model.selectedByteStart);<NEW_LINE>((FVTableModel) getMo...
moveViewportUp(chunk.linesInChunk, false);
1,434,400
public static void recoverSmartCommit(DBCExecutionContext executionContext) {<NEW_LINE>DBPPreferenceStore preferenceStore = executionContext.getDataSource().getContainer().getPreferenceStore();<NEW_LINE>if (preferenceStore.getBoolean(ModelPreferences.TRANSACTIONS_SMART_COMMIT) && preferenceStore.getBoolean(ModelPrefere...
transactionManager.setAutoCommit(monitor, true);
1,817,969
protected void encode(ChannelHandlerContext ctx, Object msg, List<Object> out) throws Exception {<NEW_LINE>if (msg instanceof SmtpRequest) {<NEW_LINE>final SmtpRequest req = (SmtpRequest) msg;<NEW_LINE>if (contentExpected) {<NEW_LINE>if (req.command().equals(SmtpCommand.RSET)) {<NEW_LINE>contentExpected = false;<NEW_LI...
.command() != SmtpCommand.EMPTY;
1,629,404
// -------------------------------------------------------------------------<NEW_LINE>CurrencyParameterSensitivity build() {<NEW_LINE>ImmutableSet<Class<?>> metadataTypes = sensitivity.keySet().stream().map(Object::getClass).collect(toImmutableSet());<NEW_LINE>if (metadataTypes.size() == 1) {<NEW_LINE>if (TenoredParame...
())).toMap();
118,387
private Object scanIndexDefinitionForKeys(IndexDefinition indexDefinition, @Name(value = "key", defaultValue = "") String keyName, BlockingQueue<PropertyValueCount> queue) {<NEW_LINE>try (Transaction threadTx = db.beginTx()) {<NEW_LINE>KernelTransaction ktx = ((InternalTransaction) threadTx).kernelTransaction();<NEW_LI...
TokenRead tokenRead = ktx.tokenRead();
794,995
public static void testDrpc() {<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>LocalDRPC drpc = new LocalDRPC();<NEW_LINE>DRPCSpout spout = new DRPCSpout("exclamation", drpc);<NEW_LINE>builder.setSpout("drpc", spout);<NEW_LINE>builder.setBolt("exclaim", new ExclamationBolt(), 3).shuffleGrouping("drp...
.execute("exclamation", "aaa"));
1,576,337
public boolean visit(TryStatement node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE>int pos = node.getStartPosition();<NEW_LINE>int level = node.getAST().apiLevel();<NEW_LINE>if (level >= JLS4_INTERNAL) {<NEW_LINE>StructuralPropertyDescriptor desc = le...
node, TryStatement.CATCH_CLAUSES_PROPERTY, pos);
1,532,046
private void addFlattened(Message message, String currentPath, JsonNode jsonNode) {<NEW_LINE>if (jsonNode.isObject()) {<NEW_LINE>final Iterator<Map.Entry<String, JsonNode>> it = jsonNode.fields();<NEW_LINE>final String pathPrefix = currentPath.isEmpty() ? "" : currentPath + MAP_KEY_SEPARATOR;<NEW_LINE>while (it.hasNext...
? "" : currentPath + MAP_KEY_SEPARATOR + i;
1,399,209
public void marshall(ListManagedEndpointsRequest listManagedEndpointsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listManagedEndpointsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(lis...
listManagedEndpointsRequest.getNextToken(), NEXTTOKEN_BINDING);
1,849,021
private void compileGetValue(ArrayInitializer ai, IType arrayType) throws CompileException {<NEW_LINE>if (!(arrayType instanceof IClass) || !((IClass) arrayType).isArray()) {<NEW_LINE>this.compileError("Array initializer not allowed for non-array type \"" + arrayType.toString() + "\"");<NEW_LINE>}<NEW_LINE>IClass ct = ...
aiorv = ai.values[i];
1,398,123
protected JPopupMenu createPopup(Point p) {<NEW_LINE>final List<Edge> selectedElements = elementsDataTable.getElementsFromSelectedRows();<NEW_LINE>final Edge clickedElement = elementsDataTable.getElementFromRow(table.rowAtPoint(p));<NEW_LINE>JPopupMenu contextMenu = new JPopupMenu();<NEW_LINE>// First add edges manipul...
Edge[0]), clickedElement);
1,245,862
public Builder add(Attribute attribute) {<NEW_LINE>Preconditions.checkArgument(attribute.isImplicit() || attribute.isLateBound() || (attribute.getType() == Type.STRING && attribute.checkAllowedValues()) || (attribute.getType() == Type.INTEGER && attribute.checkAllowedValues()) || attribute.getType() == Type.BOOLEAN, "%...
), attribute.getType());
999,070
public int compare(Viewer viewer, Object e1, Object e2) {<NEW_LINE>if (viewer instanceof TreeViewer) {<NEW_LINE>Tree tree = ((TreeViewer) viewer).getTree();<NEW_LINE>TreeColumn sortColumn = tree.getSortColumn();<NEW_LINE>int sortDirection = tree.getSortDirection();<NEW_LINE>if (sortColumn != null) {<NEW_LINE>String com...
compare(viewer, e1, e2);
1,090,441
private void loadFrom(DeviceInfo deviceInfo, Attributes attrs) throws NamingException {<NEW_LINE>deviceInfo.setDeviceName(LdapUtils.stringValue(attrs.get("dicomDeviceName"), null));<NEW_LINE>deviceInfo.setDescription(LdapUtils.stringValue(attrs.get("dicomDescription"), null));<NEW_LINE>deviceInfo.setManufacturer(LdapUt...
get("dicomStationName"), null));
1,839,331
public static MetricKey metricKey(String metric, String... tags) {<NEW_LINE>if (tags == null || tags.length == 0) {<NEW_LINE>// if no tags supplied, the original metric name is used for both cache key and registry key.<NEW_LINE>return new MetricKey(metric, metric);<NEW_LINE>} else {<NEW_LINE>// if tag is supplied, appe...
StringBuilder sb = new StringBuilder(metric);
1,343,550
public static ListTagResourcesResponse unmarshall(ListTagResourcesResponse listTagResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTagResourcesResponse.setRequestId<MASK><NEW_LINE>listTagResourcesResponse.setCode(_ctx.stringValue("ListTagResourcesResponse.Code"));<NEW_LINE>listTagResourcesResponse.setNextTok...
(_ctx.stringValue("ListTagResourcesResponse.RequestId"));
404,915
public static ListGatewayTupleOrdersResponse unmarshall(ListGatewayTupleOrdersResponse listGatewayTupleOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listGatewayTupleOrdersResponse.setRequestId<MASK><NEW_LINE>listGatewayTupleOrdersResponse.setSuccess(_ctx.booleanValue("ListGatewayTupleOrdersResponse.Success"));<N...
(_ctx.stringValue("ListGatewayTupleOrdersResponse.RequestId"));
1,535,579
public final NumberContext number() throws RecognitionException {<NEW_LINE>NumberContext _localctx = new NumberContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 112, RULE_number);<NEW_LINE>try {<NEW_LINE>setState(857);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case DECIMAL_VALUE:<...
_errHandler.recover(this, re);
1,180,606
public final void operationComplete(final int rc, final T result) {<NEW_LINE>MdcUtils.restoreContext(mdcContextMap);<NEW_LINE>try {<NEW_LINE>// during closing, callbacks that are error out might try to submit to<NEW_LINE>// the scheduler again. if the submission will go to same thread, we<NEW_LINE>// don't need to subm...
warn("Failed to submit callback for {} : ", orderingKey, re);
1,444,192
private boolean waitForStart() throws DatabaseException {<NEW_LINE>int tries = 0;<NEW_LINE>while (tries <= 5 && !stopWaiting) {<NEW_LINE>tries++;<NEW_LINE>try {<NEW_LINE>// wait for perform start command first<NEW_LINE>Thread.sleep(2000);<NEW_LINE>} catch (InterruptedException ie) {<NEW_LINE>LOGGER.log(Level.INFO, "Int...
.currentThread().interrupt();
1,039,484
private void ins_chars(ByteBuffer buf) {<NEW_LINE>final String string = new String(buf.array(), buf.arrayOffset() + buf.position(), buf.remaining(), IO.UTF8);<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>Document doc = area.getDocument();<NEW_LINE>i...
int removeBytes = extra + MAX_DOC_SIZE / 10;
170,982
protected void ensureOffThread(boolean single) {<NEW_LINE>if (!Bukkit.isPrimaryThread())<NEW_LINE>return;<NEW_LINE>StackTraceElement[] elements = Thread.currentThread().getStackTrace();<NEW_LINE>String apiUser = <MASK><NEW_LINE>if (!nagged.add(apiUser))<NEW_LINE>return;<NEW_LINE>if (apiUser.startsWith("github.scarsz.di...
elements[3].toString();
619,089
public void firePublisherQueueNow(Map<String, Object> dataMap) {<NEW_LINE>try {<NEW_LINE>Scheduler sched = QuartzUtils.getScheduler();<NEW_LINE>JobDetail job = sched.getJobDetail("PublishQueueJob", "dotcms_jobs");<NEW_LINE>if (job == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>job.setJobDataMap(new JobDataMap(dataMap)...
Calendar calendar = Calendar.getInstance();
414,288
public Tag unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Tag tag = new Tag();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null...
int originalDepth = context.getCurrentDepth();
991,707
String tryToSave() {<NEW_LINE><MASK><NEW_LINE>if (project == null) {<NEW_LINE>Dialogs.showErrorMessage(title, "You need a project to save this classifier!");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>var name = GeneralTools.stripInvalidFilenameChars(tfSaveName.getText());<NEW_LINE>if (name.isBlank()) {<NEW_LINE>Dialogs...
var project = qupath.getProject();
1,670,135
public void persist() {<NEW_LINE>File file = null;<NEW_LINE>String prefix = "";<NEW_LINE>try {<NEW_LINE>// store properties either to openhab.cfg (legacy) or<NEW_LINE>// services/withings.cfg<NEW_LINE>if (isLegacyConfiguration()) {<NEW_LINE>file = new File(CONFIG_DIR + File.separator + "openhab.cfg");<NEW_LINE>// in le...
String> config = load(file);
1,263,864
// @see com.biglybt.core.util.AEDiagnosticsEvidenceGenerator#generate(com.biglybt.core.util.IndentWriter)<NEW_LINE>@Override<NEW_LINE>public void generate(IndentWriter writer) {<NEW_LINE>writer.println("ImageLoader for " + skinProperties);<NEW_LINE>writer.indent();<NEW_LINE><MASK><NEW_LINE>long[] totalSizeEstimate = { ...
long[] sizeCouldBeFree = { 0 };
1,292,677
public String dump(final String path) {<NEW_LINE>final ObjectName top = resolvePath(path);<NEW_LINE>if (top == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final AMXProxy topProxy = getProxyFactory().getProxy(top, AMXProxy.class);<NEW_LINE>final List<AMXProxy> list = new ArrayList<>();<NEW_LINE>list.add(topProxy);...
listChildren(topProxy, list, true);
1,084,346
public void addFormForAddAccount() {<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>InputTextField holderNameInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow, Res.get("payment.account.owner"));<NEW_LINE>holderNameInputTextField.setValidator(inputValidator);<NEW_LINE>holderNameInputTextField.textProperty...
TradeCurrency singleTradeCurrency = australiaPayid.getSingleTradeCurrency();
752,071
@Produces("application/json")<NEW_LINE>public Response deleteBundlesOlderThan(@Context final HttpServletRequest request, @Context final HttpServletResponse response, @PathParam("olderThan") final ISODateParam olderThan) {<NEW_LINE>if (olderThan.after(new Date())) {<NEW_LINE>throw new IllegalArgumentException("To avoid ...
locale = LocaleUtil.getLocale(request);
1,071,387
final GetLifecyclePolicyResult executeGetLifecyclePolicy(GetLifecyclePolicyRequest getLifecyclePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getLifecyclePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetLifecyclePolicy");
1,519,937
private CompletableFuture<Long> preIndexBatch(DirectSegmentAccess segment, long startOffset, int maxLength, Map<UUID, Long> tailCachePreIndexVersionTracker, long lastIndexedOffset, TailUpdates updates) {<NEW_LINE>log.debug("{}: Tail-caching batch started for Table Segment {}. StartOffset={}, MaxLength={}.", this.traceO...
), timer.getElapsedMillis());
1,070,897
protected Object buildBody() {<NEW_LINE>if (!receivedData.isEmpty()) {<NEW_LINE>Map body = new LinkedHashMap(receivedData.size());<NEW_LINE>for (HttpData data : receivedData.values()) {<NEW_LINE>String newValue = getContent(data);<NEW_LINE>// noinspection unchecked<NEW_LINE>body.compute(data.getName(), (key, oldValue) ...
int size = receivedContent.size();
856,586
// MRI: rb_range_beg_len<NEW_LINE>public static IRubyObject rangeBeginLength(ThreadContext context, IRubyObject range, int len, int[] begLen, int err) {<NEW_LINE>JavaSites.RangeSites sites = sites(context);<NEW_LINE>if (!RubyRange.isRangeLike(context, range, sites.respond_to_begin, sites.respond_to_end))<NEW_LINE>retur...
range, range).isTrue();
131,542
private EconomicMap<Node, Node> inlineSnippet(Node replacee, DebugContext debug, StructuredGraph replaceeGraph, EconomicMap<Node, Node> replacements) {<NEW_LINE>Mark mark = replaceeGraph.getMark();<NEW_LINE>try (InliningLog.UpdateScope scope = replaceeGraph.getInliningLog().openUpdateScope((oldNode, newNode) -> {<NEW_L...
NodeSourcePosition position = replacee.getNodeSourcePosition();
1,038,629
public void writeReference(Reference ref) {<NEW_LINE>// DD = definition description<NEW_LINE>Element classdd = htmldoc.createElement(HTMLUtil.HTML_DD_TAG);<NEW_LINE>maindl.appendChild(classdd);<NEW_LINE>// Prefix<NEW_LINE>if (!ref.prefix().isEmpty()) {<NEW_LINE>Element prediv = htmldoc.createElement(HTMLUtil.HTML_DIV_T...
setTextContent(ref.booktitle());
1,610,337
public AwsCredentialProviderPlugin defaultCredentialProvider(String awsCredentialPluginParam) {<NEW_LINE>Map<String, String> credentialMap = new Gson().fromJson(awsCredentialPluginParam, new TypeToken<Map<String, String>>() {<NEW_LINE>}.getType());<NEW_LINE>String <MASK><NEW_LINE>String secretKey = credentialMap.get(SE...
accessKey = credentialMap.get(ACCESS_KEY_NAME);
297,464
public HeatMap readHeatMap(final MetricsCondition condition, final String valueColumnName, final Duration duration) throws IOException {<NEW_LINE>final List<PointOfTime> pointOfTimes = duration.assembleDurationPoints();<NEW_LINE>final List<String> ids = new ArrayList<>(pointOfTimes.size());<NEW_LINE>pointOfTimes.forEac...
query.getCommand(), series);
485,102
public boolean intersects(MappeableArrayContainer x) {<NEW_LINE>if (this.nbrruns == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int rlepos = 0;<NEW_LINE>int arraypos = 0;<NEW_LINE>int rleval = (this.getValue(rlepos));<NEW_LINE>int rlelength = (this.getLength(rlepos));<NEW_LINE>while (arraypos < x.cardinality) {<NEW...
.content.get(arraypos));
953,152
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentExcept...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
644,237
void computeJointHistogram(GrayU8 left, GrayU8 right, int minDisparity, GrayU8 disparity, int invalid) {<NEW_LINE>// zero the histogram<NEW_LINE>ImageMiscOps.fill(histJoint, 0);<NEW_LINE>final int histLength = histogramIntensity.length;<NEW_LINE>// Compute the joint histogram<NEW_LINE>for (int y = 0; y < left.height; y...
data[idx - d] & 0xFF;
972,243
public void onReceive(Context context, Intent intent) {<NEW_LINE>if (intent.hasExtra("reload_feed")) {<NEW_LINE>if (UpdateInProgress) {<NEW_LINE>Log.e(getClass().getSimpleName(), "Feed already being refreshed, cancelling this request");<NEW_LINE>} else {<NEW_LINE>Log.i(getClass().getSimpleName(), "Downloading latest fe...
context, new ProgressDialogStub(context));
369,838
final DescribeUserResult executeDescribeUser(DescribeUserRequest describeUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
invoke(request, responseHandler, executionContext);
1,652,521
protected Pair<IUnaryExpression, String> transformToSingleQueryFilter(Map<PartialPath, TSDataType> pathTSDataTypeHashMap) throws LogicalOperatorException, MetadataException {<NEW_LINE>TSDataType type = pathTSDataTypeHashMap.get(singlePath);<NEW_LINE>if (type == null) {<NEW_LINE>throw new MetadataException("given series...
throw new LogicalOperatorException(value, "Please use single quotation marks");
1,561,961
public void analyze() throws SemanticException {<NEW_LINE>workgroup = new WorkGroup();<NEW_LINE>workgroup.setName(name);<NEW_LINE>List<WorkGroupClassifier> classifierList = new ArrayList<>();<NEW_LINE>for (List<Predicate> predicates : classifiers) {<NEW_LINE>WorkGroupClassifier classifier = WorkGroupAnalyzer.convertPre...
WorkGroupAnalyzer.analyzeProperties(workgroup, properties);
241,292
public WebModuleExtender createWebModuleExtender(WebModule webModule, ExtenderController controller) {<NEW_LINE>boolean isFrameworkAddition = (webModule == null || !isInWebModule(webModule));<NEW_LINE>boolean isMaven = webModule == null ? false : JsfComponentUtils.isMavenBased(webModule);<NEW_LINE>controller.getPropert...
(JSFConfigUtilities.verifyObjects(dd));
112,683
public void testCMTBeanSubmitsManagedTaskThatInvokesTxRequiresNew(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>PrintWriter out = response.getWriter();<NEW_LINE>final ConcurrentCMT bean = (ConcurrentCMT) new InitialContext().lookup("java:global/concurrent/ConcurrentCMTBean!ejb.Co...
get(TIMEOUT, TimeUnit.MILLISECONDS);
285,768
public boolean connect(IScope newScope, Object[] params) {<NEW_LINE>log.debug("Connect scope: {}", newScope);<NEW_LINE>boolean success = super.connect(newScope, params);<NEW_LINE>if (success) {<NEW_LINE><MASK><NEW_LINE>// tell the flash player how fast we want data and how fast we shall send it<NEW_LINE>two.write(new S...
final Channel two = getChannel(2);
1,715,226
private static void populateIntentInfo(IntentFilterData intentFilterData, IntentInfo outInfo) {<NEW_LINE>for (String action : intentFilterData.getActions()) {<NEW_LINE>outInfo.addAction(action);<NEW_LINE>}<NEW_LINE>for (String category : intentFilterData.getCategories()) {<NEW_LINE>outInfo.addCategory(category);<NEW_LI...
outInfo.addDataPath(pathPattern, PATTERN_LITERAL);
1,853,178
private void addMenuComponent(RADComponent newMenuComp, RADComponent targetComp, boolean newlyAdded) {<NEW_LINE><MASK><NEW_LINE>ComponentContainer menuContainer = null;<NEW_LINE>if (targetComp instanceof RADMenuComponent) {<NEW_LINE>// adding to a menu<NEW_LINE>if (newMenuComp instanceof RADMenuItemComponent && ((RADMe...
Class beanClass = newMenuComp.getBeanClass();
758,038
public static UserTrades toUserTrades(CurrencyPair pair, MercadoBitcoinBaseTradeApiResult<MercadoBitcoinUserOrders> orders) {<NEW_LINE>List<UserTrade> result = new LinkedList<>();<NEW_LINE>for (Map.Entry<String, MercadoBitcoinUserOrdersEntry> e : orders.getTheReturn().entrySet()) {<NEW_LINE>String orderId = e.getKey();...
MercadoBitcoinUserOrdersEntry order = e.getValue();
1,687,574
public Request<DeleteUserHierarchyGroupRequest> marshall(DeleteUserHierarchyGroupRequest deleteUserHierarchyGroupRequest) {<NEW_LINE>if (deleteUserHierarchyGroupRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteUserHierarchyGroupRequest)");<NEW_LINE>}<NEW_LINE>Reques...
(deleteUserHierarchyGroupRequest.getInstanceId()));
1,573,462
protected ECPoint.Fp twiceJacobianModified(boolean calculateW) {<NEW_LINE>ECFieldElement X1 = this.x, Y1 = this.y, Z1 = this.zs[0], W1 = getJacobianModifiedW();<NEW_LINE>ECFieldElement X1Squared = X1.square();<NEW_LINE>ECFieldElement M = three<MASK><NEW_LINE>ECFieldElement _2Y1 = two(Y1);<NEW_LINE>ECFieldElement _2Y1Sq...
(X1Squared).add(W1);
889,125
private PullResult pullSyncImpl(MessageQueue mq, SubscriptionData subscriptionData, long offset, int maxNums, boolean block, long timeout) throws MQClientException, RemotingException, MQBrokerException, InterruptedException {<NEW_LINE>if (null == mq) {<NEW_LINE>throw new MQClientException("mq is null", null);<NEW_LINE>...
block, true, false, true);
783,907
protected Function<ContainerRequest, ?> createValueProvider(Parameter parameter) {<NEW_LINE>final Class<?> rawType = parameter.getRawType();<NEW_LINE>if (Parameter.Source.ENTITY == parameter.getSource()) {<NEW_LINE>if (FormDataMultiPart.class.isAssignableFrom(rawType)) {<NEW_LINE>return new FormDataMultiPartProvider();...
(parameter, get(parameter));
830,154
private boolean provideAdmin(final String prefix, final java.util.function.Consumer<com.zeroc.Ice.ObjectPrx> consumer) {<NEW_LINE>getRoot().getCoordinator().getStatusBar().setText(prefix);<NEW_LINE>try {<NEW_LINE>getAdminAsync().whenComplete((admin, adminEx) -> {<NEW_LINE>if (adminEx == null && admin != null) {<NEW_LIN...
.toString() + "."));
1,660,610
void allSlotsInOptionalInfoDo() throws CorruptDataException {<NEW_LINE>U32Pointer optionalInfo = J9ROMClassHelper.optionalInfo(romClass);<NEW_LINE>SelfRelativePointer cursor = SelfRelativePointer.cast(optionalInfo);<NEW_LINE>if (romClass.optionalFlags().anyBitsIn(J9NonbuilderConstants.J9_ROMCLASS_OPTINFO_SOURCE_FILE_NA...
SlotType.J9_SRP, cursor, "permittedSubclassesAttributeSRP");
667,872
protected void updateExistElement(HugeGraph g, Element oldElement, JsonElement newElement, Map<String, UpdateStrategy> strategies) {<NEW_LINE>if (oldElement == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>E.checkArgument(newElement != null, "The json element can't be null");<NEW_LINE>for (Map.Entry<String, UpdateStrate...
properties.put(key, value);
1,293,213
protected IStatus run(final IProgressMonitor monitor) {<NEW_LINE>String dirPath = StackUtil.getStackWorkspaceDir(this.objName);<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(DateUtil.format(from, "yyyyMMdd"));<NEW_LINE>sb.append("_");<NEW_LINE>sb.append(DateUtil.format(from, "HHmmss"));<NEW_LINE>s...
tcp = TcpProxy.getTcpProxy(serverId);
114,591
public CramerShoupCiphertext encryptBlock(BigInteger input) {<NEW_LINE>CramerShoupCiphertext result = null;<NEW_LINE>if (!key.isPrivate() && this.forEncryption && key instanceof CramerShoupPublicKeyParameters) {<NEW_LINE>CramerShoupPublicKeyParameters pk = (CramerShoupPublicKeyParameters) key;<NEW_LINE>BigInteger p = p...
u1Bytes, 0, u1Bytes.length);
1,812,198
public void printHighLevel(ImageType.Family family) {<NEW_LINE>String sumType = input.getSumType();<NEW_LINE>String columns = family == ImageType.Family.INTERLEAVED ? "input.width*input.numBands" : "input.width";<NEW_LINE>String nameUn = this.name + (input.<MASK><NEW_LINE>out.println(javaDoc);<NEW_LINE>out.print("\tpub...
isSigned() ? "" : "U");
800,034
private List<Map<String, Integer>> crossedToken(final Zone zone, final Token tokenInContext, final Token target, final String pathString) {<NEW_LINE>JsonElement json = null;<NEW_LINE>json = JSONMacroFunctions.getInstance().asJsonElement(pathString);<NEW_LINE>ArrayList<Map<String, Integer>> pathPoints = new ArrayList<Ma...
<String, Integer>>();
1,488,052
IntOctagon calc_outside_restrained_shape(IntOctagon p_obstacle_shape, int p_obstacle_line_no, IntOctagon p_room_shape) {<NEW_LINE>int lx = p_room_shape.lx;<NEW_LINE>int ly = p_room_shape.ly;<NEW_LINE>int rx = p_room_shape.rx;<NEW_LINE>int uy = p_room_shape.uy;<NEW_LINE>int ulx = p_room_shape.ulx;<NEW_LINE>int lrx = p_r...
ulx, lrx, llx, urx);
1,704,822
public static ListTicketsResponse unmarshall(ListTicketsResponse listTicketsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTicketsResponse.setRequestId(_ctx.stringValue("ListTicketsResponse.RequestId"));<NEW_LINE>listTicketsResponse.setCode(_ctx.integerValue("ListTicketsResponse.Code"));<NEW_LINE>listTicketsRespons...
("ListTicketsResponse.Data[" + i + "].Status.Value"));
1,500,605
final GetCalendarStateResult executeGetCalendarState(GetCalendarStateRequest getCalendarStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCalendarStateRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetCalendarStateRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
697,377
protected Node[] createNodes(LibraryManager mgr) {<NEW_LINE>List<Library> libs = new ArrayList<Library>();<NEW_LINE>for (Library lib : mgr.getLibraries()) {<NEW_LINE>if (filter == null || filter.accept(lib)) {<NEW_LINE>libs.add(lib);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (libs.isEmpty()) {<NEW_LINE>return new Node[0];<NEW_...
), lib2.getDisplayName());
1,789,970
public CognitoStreams unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CognitoStreams cognitoStreams = new CognitoStreams();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
1,251,886
private <P extends HighlightCommonParameters> void addParameters(P parameters, AbstractHighlighterBuilder<?> builder, @Nullable Class<?> type) {<NEW_LINE>if (StringUtils.hasLength(parameters.getBoundaryChars())) {<NEW_LINE>builder.boundaryChars(parameters.getBoundaryChars().toCharArray());<NEW_LINE>}<NEW_LINE>if (param...
phraseLimit(parameters.getPhraseLimit());
1,277,276
public void analyze(Analyzer analyzer) throws UserException {<NEW_LINE>super.analyze(analyzer);<NEW_LINE>// check auth<NEW_LINE>if (!Catalog.getCurrentCatalog().getAuth().checkGlobalPriv(ConnectContext.get(), PrivPredicate.ADMIN)) {<NEW_LINE>ErrorReport.reportAnalysisException(ErrorCode.ERR_SPECIFIC_ACCESS_DENIED_ERROR...
ErrorReport.reportAnalysisException(ErrorCode.ERR_NO_DB_ERROR);
294,186
private List<JsonViewRowGeoLocation> retrieveGeoLocationsForBPartnerId(final ImmutableSetMultimap<BPartnerId, DocumentId> rowIdsByBPartnerId) {<NEW_LINE>if (rowIdsByBPartnerId.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>final List<JsonViewRowGeoLocation> result = new ArrayList<>();<NEW_LINE>fin...
GeographicalCoordinates coordinate = bplCoordinates.getCoordinate();