idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
80,313
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String workId) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<...
.setPressTime(new Date());
409,872
public void deleteRoleAssignment() {<NEW_LINE>KeyVaultAccessControlClient keyVaultAccessControlClient = createClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.administration.keyVaultAccessControlClient.deleteRoleAssignment#KeyVaultRoleScope-String<NEW_LINE>String roleAssignmentName = "c3ed874a-64a9-4a87-8581-2a...
deleteRoleAssignment(KeyVaultRoleScope.GLOBAL, roleAssignmentName);
488,928
private static int callGetRecordCount(final Page page) {<NEW_LINE>final Object result;<NEW_LINE>try {<NEW_LINE>result = Holder.GET_RECORD_COUNT.invoke(null, page);<NEW_LINE>} catch (final IllegalAccessException | IllegalArgumentException ex) {<NEW_LINE>throw new LinkageError("[FATAL] org.embulk.spi.PageReaderImpl is in...
"[FATAL] org.embulk.spi.PageReaderImpl is invalid.", new NullPointerException("PageReaderImpl#getRecordCount returned null."));
1,784,162
String makeUniqueTokenForMachine(final SessionLabel sessionLabel, final TokenMachine machine) throws PwmUnrecoverableException, PwmOperationalException {<NEW_LINE>String tokenKey = null;<NEW_LINE>int attempts = 0;<NEW_LINE>final int maxUniqueCreateAttempts = Integer.parseInt(pwmDomain.getConfig().readAppProperty(AppPro...
, "unable to generate a unique token key after " + attempts + " attempts"));
1,557,563
public void solve(BigMatrix B) {<NEW_LINE>if (lu.m != lu.n) {<NEW_LINE>throw new IllegalArgumentException(String.format("The matrix is not square: %d x %d", lu.m, lu.n));<NEW_LINE>}<NEW_LINE>if (B.m != lu.m) {<NEW_LINE>throw new IllegalArgumentException(String.format("Row dimensions do not agree: A is %d x %d, but B is...
logger.error("LAPACK GETRS error code: {}", ret);
1,081,713
// files are already there - this assumption is not valid for maven<NEW_LINE>private AppChanges _distributeOnSave(TargetModuleID target, Iterable<Artifact> artifacts) throws IOException {<NEW_LINE>AppChanges mc = createModuleChangeDescriptor(target);<NEW_LINE>setStatusDistributeRunning(NbBundle.getMessage(ServerFileDis...
destDir = FileUtil.toFile(contentDirectory);
554,448
public void checkAvailability(final ReturnValueCompletion<Boolean> completion) {<NEW_LINE>ConsoleProxyCommands.CheckAvailabilityCmd cmd = new ConsoleProxyCommands.CheckAvailabilityCmd();<NEW_LINE>cmd.setProxyHostname(self.getProxyHostname());<NEW_LINE>cmd.setProxyPort(self.getProxyPort());<NEW_LINE>cmd.setTargetSchema(...
, ret.getError()));
657,966
private ConfigurationModule buildModuleInfo(@NotNull final Configuration currentConfig) throws CheckstyleException {<NEW_LINE>final String name = currentConfig.getName();<NEW_LINE>final Map<String, <MASK><NEW_LINE>final Map<String, String> properties = new HashMap<>();<NEW_LINE>Set<KnownTokenTypes> knownTokenTypes = En...
String> messages = messagesFrom(currentConfig);
1,378,691
public final GF2nPolynomial[] divide(GF2nPolynomial b) {<NEW_LINE>GF2nPolynomial[<MASK><NEW_LINE>GF2nPolynomial a = new GF2nPolynomial(this);<NEW_LINE>a.shrink();<NEW_LINE>GF2nPolynomial shift;<NEW_LINE>GF2nElement factor;<NEW_LINE>int bDegree = b.getDegree();<NEW_LINE>GF2nElement inv = (GF2nElement) b.coeff[bDegree].i...
] result = new GF2nPolynomial[2];
922,120
public static ListPersonTagResponse unmarshall(ListPersonTagResponse listPersonTagResponse, UnmarshallerContext _ctx) {<NEW_LINE>listPersonTagResponse.setRequestId(_ctx.stringValue("ListPersonTagResponse.RequestId"));<NEW_LINE>listPersonTagResponse.setCode(_ctx.stringValue("ListPersonTagResponse.Code"));<NEW_LINE>listP...
(_ctx.longValue("ListPersonTagResponse.PageNumber"));
694,190
public static DownloadLogResponse unmarshall(DownloadLogResponse downloadLogResponse, UnmarshallerContext context) {<NEW_LINE>downloadLogResponse.setRequestId(context.stringValue("DownloadLogResponse.RequestId"));<NEW_LINE>List<String> suppressed = new ArrayList<String>();<NEW_LINE>for (int i = 0; i < context.lengthVal...
("DownloadLogResponse.StackTrace[" + i + "].MethodName"));
477,773
static // / @brief Print the solution.<NEW_LINE>void printSolution(DataModel data, RoutingModel routing, RoutingIndexManager manager, Assignment solution) {<NEW_LINE>// Solution cost.<NEW_LINE>logger.info("Objective: " + solution.objectiveValue());<NEW_LINE>// Inspect solution.<NEW_LINE>long totalDistance = 0;<NEW_LINE...
nodeIndex = manager.indexToNode(index);
500,477
final ListKeysResult executeListKeys(ListKeysRequest listKeysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listKeysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
598,363
private <T extends CompletableFuture<?>> void makeRequest(final String path, final Buffer requestBody, final T cf, final Handler<HttpClientResponse> responseHandler, final boolean endRequest, final HttpMethod method) {<NEW_LINE>HttpClientRequest request = httpClient.request(method, serverSocketAddress, clientOptions.ge...
).exceptionHandler(cf::completeExceptionally);
1,795,741
public void onScriptPostFired(ScriptPostFired event) {<NEW_LINE>if (event.getScriptId() == ScriptID.FRIENDS_UPDATE) {<NEW_LINE>final int world = client.getWorld();<NEW_LINE>final boolean isMember = client.getVar(VarPlayer.MEMBERSHIP_DAYS) > 0;<NEW_LINE>final NameableContainer<Friend> friendContainer = client.getFriendC...
int ignoreCount = ignoreContainer.getCount();
970,937
private LookupTable combineModalityVOILUT(int outBits) {<NEW_LINE>float m = rescaleSlope;<NEW_LINE>float b = rescaleIntercept;<NEW_LINE>LookupTable modalityLUT = this.modalityLUT;<NEW_LINE>LookupTable lut = this.voiLUT;<NEW_LINE>if (lut == null) {<NEW_LINE>float c = windowCenter;<NEW_LINE>float w = windowWidth;<NEW_LIN...
lut = lut.adjustOutBits(outBits);
611,259
public Object doQuery(Object[] objs) {<NEW_LINE>Object[<MASK><NEW_LINE>os[0] = objs[0];<NEW_LINE>// for columns<NEW_LINE>super.doQuery(os);<NEW_LINE>if (objs.length != 2) {<NEW_LINE>throw new RQException("redis sunion param size " + objs.length + " is 2");<NEW_LINE>} else {<NEW_LINE>Set<String> set = null;<NEW_LINE>if ...
] os = new Object[1];
263,255
public void initSendable(NTSendableBuilder builder) {<NEW_LINE>builder.setSmartDashboardType("Scheduler");<NEW_LINE>final NetworkTableEntry namesEntry = builder.getEntry("Names");<NEW_LINE>final NetworkTableEntry idsEntry = builder.getEntry("Ids");<NEW_LINE>final NetworkTableEntry cancelEntry = builder.getEntry("Cancel...
getDoubleArray(new double[0]);
732,060
public static void registerType(final ModelBuilder modelBuilder) {<NEW_LINE>final ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(ZeebeLoopCharacteristics.class, ZeebeConstants.ELEMENT_LOOP_CHARACTERISTICS).namespaceUri(BpmnModelConstants.ZEEBE_NS).instanceProvider(ZeebeLoopCharacteristicsImpl::new);<NEW_...
.required().build();
1,664,438
public void copyIncrementalWithResponseCodeSnippet() {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.PageBlobAsyncClient.copyIncrementalWithResponse#String-String-RequestConditions<NEW_LINE>final String snapshot = "copy snapshot";<NEW_LINE>RequestConditions modifiedRequestConditions = new RequestConditions().se...
System.out.println("Page blob copied aborted");
451,912
// auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>public <T> void visitCtExecutableReference(final spoon.reflect.reference.CtExecutableReference<T> reference) {<NEW_LINE>spoon.reflect.reference.CtExecutableReference<T> aCtExecutableReference = reference.getFactory().Core().createExecutableReference...
(reference.getActualTypeArguments()));
340,278
Guard anonfun_11(Guard pc_41, EventBuffer effects, EventHandlerReturnReason outcome) {<NEW_LINE>PrimitiveVS<Machine> var_$tmp0 = new PrimitiveVS<Machine>().restrict(pc_41);<NEW_LINE>PrimitiveVS<Event> var_$tmp1 = new PrimitiveVS<Event>(_null).restrict(pc_41);<NEW_LINE>PrimitiveVS<Machine> var_$tmp2 = new PrimitiveVS<Ma...
>().restrict(pc_41);
69,728
void parseRouting(RelationshipStyleDslContext context, Tokens tokens) {<NEW_LINE>// routing direct|orthogonal|curved<NEW_LINE>Map<String, Routing> routings = new HashMap<>();<NEW_LINE>for (Routing routing : Routing.values()) {<NEW_LINE>routings.put(routing.toString().toLowerCase(), routing);<NEW_LINE>}<NEW_LINE>Relatio...
get(1).toLowerCase();
420,486
private void toGeolocation(JsonNode theMatch, AddressHelper theHelper, FhirContext theFhirContext) {<NEW_LINE>if (!theMatch.has("Latitude") || !theMatch.has("Longitude")) {<NEW_LINE>ourLog.warn("Geocode is not provided in JSON {}", theMatch);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IBase address = theHelper.getAddress();<...
ExtensionUtil.addExtension(geolocation, "latitude");
133,466
protected void visitJspBodyStart(Element jspElement) throws JspCoreException {<NEW_LINE>Node parent = jspElement.getParentNode();<NEW_LINE>if (parent.getNodeType() == Node.ELEMENT_NODE) {<NEW_LINE>Element parentElement = (Element) parent;<NEW_LINE>String uri = (String) prefixToUriMap.get(parentElement.getPrefix());<NEW...
String actionName = parentElement.getLocalName();
635,528
public OutputStream addEntry(ArchiveEntry entry) throws IOException, UnsupportedFileOperationException {<NEW_LINE>checkFile();<NEW_LINE>libguestFile.add(entry);<NEW_LINE>addToEntriesTree(entry);<NEW_LINE>return new BufferedOutputStream(new OutputStream() {<NEW_LINE><NEW_LINE>int offset;<NEW_LINE><NEW_LINE>File tmpFile ...
= "/" + entry.getPath();
1,821,080
private String bPartnerOwnership() {<NEW_LINE>log.info("bPartnerOwnership - C_BP_Group_ID=" + p_C_BP_Group_ID + ", C_BPartner_ID=" + p_C_BPartner_ID);<NEW_LINE>String set = " SET AD_Org_ID=" + p_AD_Org_ID;<NEW_LINE>if (p_C_BP_Group_ID > 0)<NEW_LINE>set += " WHERE EXISTS (SELECT * FROM C_BPartner bp WHERE bp.C_BPartner_...
(getCtx(), "C_AcctSchema_ID"));
1,341,305
public static void addBox(RenderPatchFactory rpf, List<RenderPatch> list, double xmin, double xmax, double ymin, double ymax, double zmin, double zmax, int[] patchids) {<NEW_LINE>if (patchids == null) {<NEW_LINE>patchids = default_patches;<NEW_LINE>}<NEW_LINE>if (patchids[1] >= 0)<NEW_LINE>addIfNonNull(list, rpf.getPat...
TOP, patchids[1]));
1,670,210
protected List<Retry> parseRetry(List<Object> retryList) {<NEW_LINE>if (retryList != null) {<NEW_LINE>List<Retry> retries = new ArrayList<>(retryList.size());<NEW_LINE>for (Object retryObj : retryList) {<NEW_LINE>Map<String, Object> retryMap = (Map<String, Object>) retryObj;<NEW_LINE>RetryImpl retry = new RetryImpl();<...
) intervalSeconds).doubleValue());
818,534
public void onTextChanged(CharSequence s, int start, int before, int count) {<NEW_LINE>// Since Jelly Bean, pressing the 'return' key won't trigger onEditorAction callback<NEW_LINE>// http://stackoverflow.com/questions/11311790/oneditoraction-is-not-called-after-enter-key-has-been-pressed-on-jelly-bean-em<NEW_LINE>// S...
fireEvent(TiC.EVENT_CHANGE, data);
1,633,131
private void handleWebsocket(final OutPacketMessage msg, ChannelHandlerContext ctx, ChannelPromise promise) throws IOException {<NEW_LINE>ChannelFutureList writeFutureList = new ChannelFutureList();<NEW_LINE>while (true) {<NEW_LINE>Queue<Packet> queue = msg.getClientHead().getPacketsQueue(msg.getTransport());<NEW_LINE>...
ctx.alloc(), true);
866,103
public DeleteRateBasedRuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteRateBasedRuleResult deleteRateBasedRuleResult = new DeleteRateBasedRuleResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
1,852,708
public void prepare(Map conf, TopologyContext context, OutputCollector collector) {<NEW_LINE>this.collector = collector;<NEW_LINE>LinkedHashMap copy = new LinkedHashMap(conf);<NEW_LINE>copy.putAll(boltConfig);<NEW_LINE><MASK><NEW_LINE>flushOnTickTuple = settings.getStormTickTupleFlush();<NEW_LINE>ackWrites = settings.g...
StormSettings settings = new StormSettings(copy);
18,479
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.wsspi.sib.core.BifurcatedConsumerSession#readAndDeleteSet(com.ibm.wsspi.sib.core.SIMessageHandle[],<NEW_LINE>* com.ibm.wsspi.sib.core.SITransaction)<NEW_LINE>*/<NEW_LINE>public SIBusMessage[] readAndDeleteSet(final SIMessageHandle[] msgHandles, final S...
, _parentConnection.mapTransaction(tran));
865,208
private void printThrowable(Throwable throwable, boolean cause, int indent) {<NEW_LINE><MASK><NEW_LINE>char[] prefixChars = new char[indent];<NEW_LINE>Arrays.fill(prefixChars, ' ');<NEW_LINE>String prefix = new String(prefixChars);<NEW_LINE>if (msg == null || msg.isEmpty()) {<NEW_LINE>out.println(prefix + (cause ? "Cau...
String msg = throwable.getMessage();
461,819
final UpdateFirewallPolicyChangeProtectionResult executeUpdateFirewallPolicyChangeProtection(UpdateFirewallPolicyChangeProtectionRequest updateFirewallPolicyChangeProtectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFirewallPolicyChangeProtectionRequest);<NEW_LINE>AWSRequestMet...
endClientExecution(awsRequestMetrics, request, response);
1,797,557
public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec) {<NEW_LINE>final SqlWriter.Frame frame = writer.startFunCall(getName());<NEW_LINE>call.operand(0).<MASK><NEW_LINE>writer.sep(",", true);<NEW_LINE>call.operand(1).unparse(writer, 0, 0);<NEW_LINE>final SqlJsonQueryWrapperBehavior wrapperBeha...
unparse(writer, 0, 0);
1,455,868
public void paintBorderBackground(Graphics g, Component c) {<NEW_LINE>int x = c.getX();<NEW_LINE><MASK><NEW_LINE>int width = c.getWidth();<NEW_LINE>int height = c.getHeight();<NEW_LINE>if (outerBorder != null) {<NEW_LINE>int ac;<NEW_LINE>if (millimeters) {<NEW_LINE>ac = Display.getInstance().convertToPixels(thickness);...
int y = c.getY();
333,450
public MultiTreeSPEntry[] calcPaths(int[] from, int[] to) {<NEW_LINE>for (int i = 0; i < from.length; i++) {<NEW_LINE>if (from[i] == -1)<NEW_LINE>continue;<NEW_LINE>// If two queried points are on the same node, this case can occur<NEW_LINE>MultiTreeSPEntry existing = bestWeightMapFrom.get(from[i]);<NEW_LINE>if (existi...
(i).setWeight(0.0);
521,885
private void addEntry(File file, String path, ZipOutputStream out) throws FileNotFoundException, IOException {<NEW_LINE>if (file.isDirectory()) {<NEW_LINE>String[] files = file.list();<NEW_LINE>for (int i = 0; i < files.length; i++) {<NEW_LINE>File f = new File(file + File<MASK><NEW_LINE>addEntry(f, path + File.separat...
.separator + files[i]);
1,797,638
// TODO separate out ours and users models possibly regression vs classification<NEW_LINE>private void addInferenceIngestUsage(GetTrainedModelsStatsAction.Response statsResponse, Map<String, Object> inferenceUsage) {<NEW_LINE>int pipelineCount = 0;<NEW_LINE>StatsAccumulator docCountStats = new StatsAccumulator();<NEW_L...
("time_ms", getMinMaxSumAsLongsFromStats(timeStats));
1,421,512
public static ConstructorDeclaration createConstructor(AccessLevel level, EclipseNode typeNode, boolean msgParam, boolean causeParam, EclipseNode sourceNode, ExplicitConstructorCall explicitCall, Statement extra) {<NEW_LINE>ASTNode source = sourceNode.get();<NEW_LINE>TypeDeclaration typeDeclaration = ((TypeDeclaration)...
p, typeRef, Modifier.FINAL);
285,398
public void read(org.apache.thrift.protocol.TProtocol prot, continueScan_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(5);<NEW_LINE>if (incoming.get(0...
struct.tsnpe = new TSampleNotPresentException();
1,611,538
private void serializeVersion1(final V val, final short version, final OutputStream out, final ByteArrayBuffer tmp) throws IOException {<NEW_LINE>final byte termCode = getTermCode(val);<NEW_LINE>out.write(/*Byte*/<NEW_LINE>termCode);<NEW_LINE>switch(termCode) {<NEW_LINE>case ITermIndexCodes.TERM_CODE_BND:<NEW_LINE>uc.e...
getLanguage(), out, tmp);
790,016
public ListConferenceProvidersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListConferenceProvidersResult listConferenceProvidersResult = new ListConferenceProvidersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
JsonToken token = context.getCurrentToken();
1,587,500
// GEN-LAST:event_browseButton3ActionPerformed<NEW_LINE>private void browseButton2ActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_browseButton2ActionPerformed<NEW_LINE>try {<NEW_LINE>SourceGroup[] groups = DDUtils.getDocBaseGroups(dObj);<NEW_LINE>org.openide.filesystems.FileObject fo = Bro...
addItem(oldValue, fileName, false);
560,771
public ASTNode processRange(final ASTNode element, final int startOffset, final int endOffset) {<NEW_LINE>final PsiElement psiElement = SourceTreeToPsiMap.treeElementToPsi(element);<NEW_LINE>assert psiElement != null;<NEW_LINE>final PsiFile file = psiElement.getContainingFile();<NEW_LINE>final Document document = file....
.create(startOffset, endOffset));
1,182,704
public void powerOnSelfTest() throws Error {<NEW_LINE>try {<NEW_LINE>Collection myVoices = Voice.getAvailableVoices(this);<NEW_LINE>if (myVoices.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UnitSelectionVoice unitSelVoice = (UnitSelectionVoice) myVoices.iterator().next();<NEW_LINE>assert unitSelVoice != null;<NE...
synthesize(tokensAndBoundaries, unitSelVoice, null);
1,004,577
private String marshalJSLJob(JSLJob job) {<NEW_LINE>String resultXML = null;<NEW_LINE>JSLValidationEventHandler handler = new JSLValidationEventHandler();<NEW_LINE>try {<NEW_LINE>ClassLoader currentClassLoader = AccessController.doPrivileged(new PrivilegedAction<ClassLoader>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>pu...
.class, job), baos);
1,561,021
public List<LinkTeamVO> listTeamVos(@NonNull Sort sort) {<NEW_LINE>Assert.notNull(sort, "Sort info must not be null");<NEW_LINE>// List all links<NEW_LINE>List<<MASK><NEW_LINE>// Get teams<NEW_LINE>Set<String> teams = ServiceUtils.fetchProperty(links, LinkDTO::getTeam);<NEW_LINE>// Convert to team link list map (Key: t...
LinkDTO> links = listDtos(sort);
387,561
final ListAnomalyGroupRelatedMetricsResult executeListAnomalyGroupRelatedMetrics(ListAnomalyGroupRelatedMetricsRequest listAnomalyGroupRelatedMetricsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAnomalyGroupRelatedMetricsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
71,792
public static DataStream<Row> calcResultRows(BatchOperator<?> model, StreamOperator<?> input_data, StreamOperator<?> input_model_stream, ModelMapper mapper, Params params, Long mlEnvironmentId, TriFunction<TableSchema, TableSchema, Params, ModelMapper> mapperBuilder) {<NEW_LINE>DataBridge modelDataBridge = DirectReader...
new ModelMapperAdapter(mapper, modelSource));
1,464,102
public synchronized void ack(Object msgId) {<NEW_LINE>TransactionAttempt tx = (TransactionAttempt) msgId;<NEW_LINE>TransactionStatus status = _activeTx.get(tx.getTransactionId());<NEW_LINE>if (status != null && tx.equals(status.attempt)) {<NEW_LINE>if (status.status == AttemptStatus.PROCESSING) {<NEW_LINE>LOG.debug("ac...
SUCCESS_STREAM_ID, new Values(tx));
333,007
public void actionPerformed(ActionEvent e) {<NEW_LINE>deletePattern.setEnabled(true);<NEW_LINE>GuiUtils.stopTableEditing(stringTable);<NEW_LINE>int rowCount = stringTable.getRowCount();<NEW_LINE>try {<NEW_LINE>String clipboardContent = GuiUtils.getPastedText();<NEW_LINE>if (clipboardContent == null) {<NEW_LINE>return;<...
), "Error", JOptionPane.ERROR_MESSAGE);
199,047
public ExperimentCounts calculateExperimentCounts(Collection<BucketCounts> bucketsSet) {<NEW_LINE>Map<Bucket.Label, BucketCounts> buckets = new HashMap<>();<NEW_LINE>for (BucketCounts bucket : bucketsSet) {<NEW_LINE>buckets.put(bucket.getLabel(), bucket);<NEW_LINE>}<NEW_LINE>Counts jointActionCounts = new Counts(0, 0);...
withJointActionCounts(jointActionCounts).build();
161,185
public static JoinFabricChannelResponse unmarshall(JoinFabricChannelResponse joinFabricChannelResponse, UnmarshallerContext _ctx) {<NEW_LINE>joinFabricChannelResponse.setRequestId(_ctx.stringValue("JoinFabricChannelResponse.RequestId"));<NEW_LINE>joinFabricChannelResponse.setSuccess(_ctx.booleanValue("JoinFabricChannel...
("JoinFabricChannelResponse.Result[" + i + "].ApproveTime"));
1,224,640
final DeleteEnvironmentConfigurationResult executeDeleteEnvironmentConfiguration(DeleteEnvironmentConfigurationRequest deleteEnvironmentConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEnvironmentConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,105,389
private void handleActionComplete(MqttToken token) throws MqttException {<NEW_LINE>final String methodName = "handleActionComplete";<NEW_LINE>synchronized (token) {<NEW_LINE>// @TRACE 705=callback and notify for key={0}<NEW_LINE>log.fine(CLASS_NAME, methodName, "705", new Object[] { token.internalTok.getKey() });<NEW_L...
new Object[] { ex });
670,697
public void resourceDeleted(ShareResource resource) {<NEW_LINE>log.log(LoggerChannel.LT_INFORMATION, "Resource deleted:".concat(resource.getName()));<NEW_LINE>Download dl = (<MASK><NEW_LINE>if (dl != null) {<NEW_LINE>try {<NEW_LINE>download_being_removed = dl;<NEW_LINE>dl.stopAndRemove(false, false);<NEW_LINE>} catch (...
Download) resource_dl_map.get(resource);
571,331
private static int indexOfAnyCharIntl(Node location, Object array, int offset, int length, int stride, int fromIndex, char[] values) {<NEW_LINE><MASK><NEW_LINE>final Object stubArray = stubArray(array, isNative);<NEW_LINE>validateRegionIndex(stubArray, offset, length, stride, fromIndex, isNative);<NEW_LINE>final long s...
final boolean isNative = isNativePointer(array);
851,509
boolean hardDelete() throws StoreException {<NEW_LINE>if (index.getCurrentEndOffset().compareTo(index.getStartOffset()) > 0) {<NEW_LINE>final Timer.Context context = metrics.hardDeleteTime.time();<NEW_LINE>try {<NEW_LINE>FindInfo info = index.findDeletedEntriesSince(startToken, scanSizeInBytes, <MASK><NEW_LINE>endToken...
time.seconds() - messageRetentionSeconds);
550,666
public void updateTask(String currentTaskId, String newTaskId, int status, int progress, boolean resumable) {<NEW_LINE>SQLiteDatabase db = dbHelper.getWritableDatabase();<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(TaskContract.TaskEntry.COLUMN_NAME_TASK_ID, newTaskId);<NEW_LINE>values.put(...
TaskContract.TaskEntry.COLUMN_NAME_STATUS, status);
1,825,413
private static Map<String, Object> list2map_string(List<Object> valueList, String key, Udf convert, Hints hints) throws Throwable {<NEW_LINE>return list2map_udf(valueList, (readOnly, params) -> {<NEW_LINE>int rowNumber = (int) params[0];<NEW_LINE>if (params[1] == null) {<NEW_LINE>throw new NullPointerException("element...
) rowData).get(key);
527,480
protected void handleControlPropertyChanged(String p) {<NEW_LINE>if ("DEFAULT_COLOR".equals(p)) {<NEW_LINE>((JFXTextField) getEditor()).setFocusColor(jfxDatePicker.getDefaultColor());<NEW_LINE>} else if ("DAY_CELL_FACTORY".equals(p)) {<NEW_LINE>updateDisplayNode();<NEW_LINE>content = null;<NEW_LINE>popup = null;<NEW_LI...
LocalDate date = jfxDatePicker.getValue();
900,064
private static Object recurse(Map<String, Object> raw) {<NEW_LINE>if (raw == null || raw.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String key = raw.keySet().iterator().next();<NEW_LINE>Object val = raw.get(key);<NEW_LINE>switch(key) {<NEW_LINE>case "o":<NEW_LINE>List<Map<String, Object>> objectItems = (Lis...
(entryKey, recurse(entryValue));
173,035
public static final void assertFoundAllLogs(String message, JULLogsFound logsFound) {<NEW_LINE>if (message == null) {<NEW_LINE>message = "%s log for JUL not found";<NEW_LINE>}<NEW_LINE>// finer<NEW_LINE>assertTrue(String.format(message, "entering"), logsFound.enteringFound);<NEW_LINE>assertTrue(String.format(message, "...
, "finer"), logsFound.finerFound);
1,010,944
public void displaySearchResults(List<String> filteredClassNames, List<Translator.ELEMENT> displayedManifestSearchResultsTokens, String textFromTypingArea) {<NEW_LINE>displayDataState = DisplayDataState.CLASSES_LIST;<NEW_LINE>StyleConstants.setFontSize(style, 20);<NEW_LINE>StyleConstants.setForeground(style, theme.getI...
style, theme.getBackgroundColor());
160,372
protected void doRunCommand(KeycloakSession session) {<NEW_LINE>final int workersCount = getIntArg(0);<NEW_LINE>final int limit = getIntArg(1);<NEW_LINE>// int workersCount = 8;<NEW_LINE>// int limit = 64;<NEW_LINE>AtomicReference<String> lastSessionId = new AtomicReference<>("abc");<NEW_LINE>AtomicBoolean finished = n...
get(), limit, sessionFactory);
1,006,044
final GetRateBasedRuleManagedKeysResult executeGetRateBasedRuleManagedKeys(GetRateBasedRuleManagedKeysRequest getRateBasedRuleManagedKeysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRateBasedRuleManagedKeysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
endClientExecution(awsRequestMetrics, request, response);
119,729
protected void flush() {<NEW_LINE>if (buffer != null && !buffer.isEmpty()) {<NEW_LINE>try {<NEW_LINE>logger.log("executing callback " + callbackCommandId + " " + buffer.size() + " batched events");<NEW_LINE>Object r = conn.executeClientCommand(callbackCommandId, buffer.toArray(new Object[buffer.size()]));<NEW_LINE>noti...
callbackCommandId + " SUCCESS [" + r + "]");
788,250
private int writeFields(Object[] rowRecord, PublicBAOS outputStream) throws IOException {<NEW_LINE>int serializedByteLength = 0;<NEW_LINE>for (int i = 0; i < seriesNumber; ++i) {<NEW_LINE>Object field = rowRecord[i];<NEW_LINE>boolean isNull = field == null;<NEW_LINE>serializedByteLength += ReadWriteIOUtils.write(isNull...
((float) field, outputStream);
1,248,918
private static void addAvailableThemes(@NonNull final Folder dir, final List<ThemeData> themes, final String prefix, final int level) {<NEW_LINE>for (FileInformation candidate : Objects.requireNonNull(ContentStorage.get().list(dir))) {<NEW_LINE>if (candidate.isDirectory && (AVAILABLE_THEMES_SCAN_MAXDEPTH < 0 || level <...
+ candidate.name + ZIP_THEME_SEPARATOR + zipXmlTheme;
953,897
private JPanel makeParameterPanel() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>leftBoundaryField = new JLabeledTextField(JMeterUtils.getResString("boundaryextractor_leftboundary_field"));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>rightBoundaryField = new JLabeledTextField(JMeterUtils.getResString("boundaryextractor_rightboundary_field"...
(JMeterUtils.getResString("ref_name_field"));
72,198
public void write(LogoutRequestType logOutRequest) throws ProcessingException {<NEW_LINE>StaxUtil.writeStartElement(writer, PROTOCOL_PREFIX, JBossSAMLConstants.LOGOUT_REQUEST.get(), PROTOCOL_NSURI.get());<NEW_LINE>StaxUtil.writeNameSpace(writer, PROTOCOL_PREFIX, PROTOCOL_NSURI.get());<NEW_LINE>StaxUtil.writeNameSpace(w...
StaxUtil.writeCharacters(writer, sessionIndex);
948,034
public void provideFrames() throws InterruptedException {<NEW_LINE>MpegSectionInfo moof;<NEW_LINE>try (ReadableByteChannel channel = new DetachedByteChannel(Channels.newChannel(reader.seek))) {<NEW_LINE>while ((moof = reader.nextChild(root)) != null) {<NEW_LINE>if (!"moof".equals(moof.type)) {<NEW_LINE>reader.skip(moof...
mdat = reader.nextChild(root);
621,763
final DescribeParameterGroupsResult executeDescribeParameterGroups(DescribeParameterGroupsRequest describeParameterGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeParameterGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
38,322
public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest deleteEndpointRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
855,958
private VirtualMachine upgradeStoppedSystemVm(final Long systemVmId, final Long serviceOfferingId, final Map<String, String> customparameters) {<NEW_LINE>final Account caller = getCaller();<NEW_LINE>final VMInstanceVO systemVm = _vmInstanceDao.findByIdTypes(systemVmId, VirtualMachine.Type.ConsoleProxy, VirtualMachine.T...
systemVmId, systemVm.getServiceOfferingId());
456,350
public AllowlistOperationResult removeAccounts(final List<String> accounts) {<NEW_LINE>final List<<MASK><NEW_LINE>final AllowlistOperationResult inputValidationResult = inputValidation(normalizedAccounts);<NEW_LINE>if (inputValidationResult != AllowlistOperationResult.SUCCESS) {<NEW_LINE>return inputValidationResult;<N...
String> normalizedAccounts = normalizeAccounts(accounts);
58,387
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr());<NEW_LINE>// Log.setTraceLevel(9);<NEW_LINE>// WebEnv.dump(request);<NEW_LINE>// WebEnv.dump(request.getSession());<N...
setAttribute(WebSessionCtx.HDR_MESSAGE, msg);
512,496
private void exportIndexDefinitions() throws IOException {<NEW_LINE>listener.onMessage("\nExporting index info...");<NEW_LINE>writer.beginCollection(1, true, "indexes");<NEW_LINE>final OIndexManagerAbstract indexManager = database<MASK><NEW_LINE>indexManager.reload();<NEW_LINE>final Collection<? extends OIndex> indexes...
.getMetadata().getIndexManagerInternal();
445,412
public BigInteger parseLiteral(Object input) {<NEW_LINE>if (input instanceof StringValue) {<NEW_LINE>try {<NEW_LINE>return new BigDecimal(((StringValue) input).getValue()).toBigIntegerExact();<NEW_LINE>} catch (NumberFormatException | ArithmeticException e) {<NEW_LINE>throw new CoercingParseLiteralException("Unable to ...
.getValue().toBigIntegerExact();
1,606,613
private void handleShowExport() throws AnalysisException {<NEW_LINE>ShowExportStmt showExportStmt = (ShowExportStmt) stmt;<NEW_LINE>Env env = Env.getCurrentEnv();<NEW_LINE>Database db = env.getInternalCatalog().getDbOrAnalysisException(showExportStmt.getDbName());<NEW_LINE>long dbId = db.getId();<NEW_LINE>ExportMgr exp...
<ExportJob.JobState> states = null;
1,608,876
public static ListFlowJobResponse unmarshall(ListFlowJobResponse listFlowJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowJobResponse.setRequestId(_ctx.stringValue("ListFlowJobResponse.RequestId"));<NEW_LINE>listFlowJobResponse.setPageNumber(_ctx.integerValue("ListFlowJobResponse.PageNumber"));<NEW_LINE>listFl...
("ListFlowJobResponse.JobList[" + i + "].MaxRetry"));
681,744
void add() {<NEW_LINE>try {<NEW_LINE>if (added == null || added.isEmpty())<NEW_LINE>return;<NEW_LINE>String clusterId = "";<NEW_LINE>String shardId = "";<NEW_LINE>List<Pair<String, Integer>> <MASK><NEW_LINE>List<RedisMeta> toUpdateMaster = new ArrayList<>();<NEW_LINE>for (Redis redis : added) {<NEW_LINE>toAdded.add(new...
toAdded = new ArrayList<>();
121,572
public static DescribeStatisticalDataResponse unmarshall(DescribeStatisticalDataResponse describeStatisticalDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeStatisticalDataResponse.setRequestId(_ctx.stringValue("DescribeStatisticalDataResponse.RequestId"));<NEW_LINE>describeStatisticalDataResponse.setResolved...
(_ctx.stringValue("DescribeStatisticalDataResponse.TotalKnowledgeHitRate"));
600,483
public Mono<MatchResult> matches(ServerWebExchange exchange) {<NEW_LINE>List<MediaType> httpRequestMediaTypes;<NEW_LINE>try {<NEW_LINE>httpRequestMediaTypes = resolveMediaTypes(exchange);<NEW_LINE>} catch (NotAcceptableStatusException ex) {<NEW_LINE>this.logger.debug("Failed to parse MediaTypes, returning false", ex);<...
.format("Processing %s", httpRequestMediaType));
243,543
static void ensureIndexCompatibility(final Version nodeVersion, MetaData metaData) {<NEW_LINE>Version supportedIndexVersion = nodeVersion.minimumIndexCompatibilityVersion();<NEW_LINE>// we ensure that all indices in the cluster we join are compatible with us no matter if they are<NEW_LINE>// closed or not we can't read...
getCreationVersion() + " minimum compatible index version is: " + supportedIndexVersion);
1,648,305
public static String displaySkill(PlayerProfile profile, PrimarySkillType skill) {<NEW_LINE>if (SkillTools.isChildSkill(skill)) {<NEW_LINE>return LocaleLoader.getString("Skills.ChildStats", LocaleLoader.getString(StringUtils.getCapitalized(skill.toString()) + ".Listener") + " ", profile.getSkillLevel(skill));<NEW_LINE>...
, profile.getXpToLevel(skill));
391,193
public void visitBranch(int opcode, int offset, int length, int target) {<NEW_LINE>switch(opcode) {<NEW_LINE>case ByteOps.IFEQ:<NEW_LINE>case ByteOps.IFNE:<NEW_LINE>case ByteOps.IFLT:<NEW_LINE>case ByteOps.IFGE:<NEW_LINE>case ByteOps.IFGT:<NEW_LINE>case ByteOps.IFLE:<NEW_LINE>{<NEW_LINE>machine.popArgs(frame, Type.INT)...
visitInvalid(opcode, offset, length);
328,233
private // the caller cleans jsr2astore, astore2ret<NEW_LINE>boolean findOutmostJsrs(Instruction start, Instruction end) {<NEW_LINE>// use to put innerJsrs.<NEW_LINE>HashSet<Instruction> innerJsrs = new HashSet<Instruction>();<NEW_LINE>boolean unusual = false;<NEW_LINE>Instruction insn = start;<NEW_LINE>do {<NEW_LINE>i...
astore2ret.put(astore, ret);
801,822
public static void vertical(Kernel1D_S32 kernel, GrayS32 src, GrayS32 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final i...
int imgWidth = dst.getWidth();
1,376,329
public ActionResult<ItemStack> onItemRightClick(@Nonnull World worldIn, @Nonnull EntityPlayer playerIn, @Nonnull EnumHand handIn) {<NEW_LINE>final ItemStack stack = playerIn.getHeldItem(handIn);<NEW_LINE>if (playerIn.isSneaking()) {<NEW_LINE>if (!worldIn.isRemote) {<NEW_LINE>ModObject.blockDarkSteelAnvil.openGui(worldI...
>(EnumActionResult.SUCCESS, stack);
671,654
private void addSecurityRelatedAccountT(CalculationState state, Account account, AccountTransaction t) {<NEW_LINE>BigDecimal accountWeight = state.getWeight(account);<NEW_LINE>BigDecimal securityWeight = state.getWeight(t.getSecurity());<NEW_LINE>long taxes = value(t.getUnitSum(Unit.Type.TAX).getAmount(), securityWeigh...
value(u, securityWeight)));
1,354,798
private InetSocketAddress bindToPort(final String name, final InetAddress hostAddress, String port) {<NEW_LINE>PortsRange portsRange = new PortsRange(port);<NEW_LINE>final AtomicReference<Exception> <MASK><NEW_LINE>final AtomicReference<InetSocketAddress> boundSocket = new AtomicReference<>();<NEW_LINE>closeLock.writeL...
lastException = new AtomicReference<>();
1,126,511
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>switch(viewType) {<NEW_LINE>default:<NEW_LINE>case VIEWTYPE_ITEM:<NEW_LINE>if (gridView) {<NEW_LINE>View itemView = LayoutInflater.from(mContext).inflate(R.layout.grid_item, parent, false);<NEW_LINE>return new LocalFil...
layout.list_footer, parent, false);
20,681
public void marshall(CreateSMBFileShareRequest createSMBFileShareRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createSMBFileShareRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createSMB...
createSMBFileShareRequest.getLocationARN(), LOCATIONARN_BINDING);
1,400,585
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextKeySegmentedTermByFilter(false));<NEW_LINE>execs.add(new ContextKeySegmentedTermByFilter(true));<NEW_LINE>execs.add(new ContextKeySegmentedTermByFilterWSubtype())...
add(new ContextKeySegmentedInitNoTerm(true));
1,338,477
private void renderQuad(BakedQuad quad, Direction cullFace, Value defaultMaterial) {<NEW_LINE>// TODO: should remove in 1.17 cycle, was for OF compat only<NEW_LINE>if (!CompatibilityHelper.canRender(quad.getVertexData())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final MutableQuadViewImpl editorQuad = this.editorQuad;<NEW...
defaultLayer, editorQuad.colorIndex());
921,458
static void appendPrivacy(final PrecompileContractRegistry registry, final PrecompiledContractConfiguration precompiledContractConfiguration) {<NEW_LINE>if (!precompiledContractConfiguration.getPrivacyParameters().isEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (precompiledContractConfiguration.getPrivacyParamet...
, precompiledContractConfiguration.getPrivacyParameters()));