idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,462,606
public XContentBuilder toXContent(final XContentBuilder builder, final ToXContent.Params params) throws IOException {<NEW_LINE>assert Metadata.CONTEXT_MODE_SNAPSHOT.equals(params.param(Metadata.CONTEXT_MODE_PARAM)) : "use toXContentExternal() in external context";<NEW_LINE>builder.startObject(SNAPSHOT);<NEW_LINE>final ...
shardFailure.toXContent(builder, params);
638,601
public void start() {<NEW_LINE>if (current != null) {<NEW_LINE>current.show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Form hi = new Form("Hi World", new GridLayout(1, 2));<NEW_LINE>hi.setScrollable(false);<NEW_LINE>Container draggable = new Container(new FlowLayout()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void p...
.createLineBorder(1, 0x00ff00));
1,087,116
public List<Placement> resolve() {<NEW_LINE>if (entryViews == null || entryViews.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>columns = new ArrayList<>();<NEW_LINE>columns.add(new TimeBoundsColumn());<NEW_LINE>for (EntryViewBase<?> view : entryViews) {<NEW_LINE>boolean added = false;<NEW_LI...
placements = new ArrayList<>();
707,522
private void renderSection(Section section) {<NEW_LINE>contents.append("<div class=\"uk-accordion-content\">").append("<table class=\"uk-table uk-table-hover uk-table-divider uk-table-middle uk-table-small\">\n").append(" <thead>\n").append(" <tr>\n").append(" <th class=\"uk-table-shrink uk-width-a...
+ "</table>").append("</div>");
899,511
public Optional<A> act(PerceptStateReward<S> percept) {<NEW_LINE>S sPrime = percept.state();<NEW_LINE><MASK><NEW_LINE>// if TERMAINAL?(s') then Q[s',None] <- r'<NEW_LINE>if (isTerminal(sPrime)) {<NEW_LINE>Q.put(new Pair<>(sPrime, null), rPrime);<NEW_LINE>}<NEW_LINE>// if s is not null then<NEW_LINE>if (null != s) {<NEW...
double rPrime = percept.reward();
1,058,270
void constructA678() {<NEW_LINE>final int N = X1.numRows;<NEW_LINE>// Pseudo-inverse of hat(p)<NEW_LINE>computePseudo(X1, P_plus);<NEW_LINE>DMatrixRMaj PPpXP = new DMatrixRMaj(1, 1);<NEW_LINE>DMatrixRMaj PPpYP = new DMatrixRMaj(1, 1);<NEW_LINE>computePPXP(X1, P_plus, X2, 0, PPpXP);<NEW_LINE>computePPXP(X1, P_plus, X2, ...
= new DMatrixRMaj(1, 1);
454,605
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final I...
, operand2, dw, targetRegister));
884,655
private static void putMacroblock(Picture tgt, Picture decoded, final int mbX, final int mbY) {<NEW_LINE>byte[] luma = tgt.getPlaneData(0);<NEW_LINE>int stride = tgt.getPlaneWidth(0);<NEW_LINE>byte[] cb = tgt.getPlaneData(1);<NEW_LINE>byte[] cr = tgt.getPlaneData(2);<NEW_LINE>int strideChroma = tgt.getPlaneWidth(1);<NE...
) * stride + mbx16, 16);
587,534
final GetGeoMatchSetResult executeGetGeoMatchSet(GetGeoMatchSetRequest getGeoMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGeoMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
false), new GetGeoMatchSetResultJsonUnmarshaller());
1,284,810
public void run() throws IOException {<NEW_LINE>if (messages == null || messages.size() == 0) {<NEW_LINE>throw new RuntimeException("Need to specify a message");<NEW_LINE>}<NEW_LINE>getFileTypeFromFileName();<NEW_LINE>System.out.println(" File Name : " + fileName);<NEW_LINE>if (fileType.equals("pdf")) {<NEW_LINE>O...
println(" error : " + qr.error);
619,694
final GetRegexPatternSetResult executeGetRegexPatternSet(GetRegexPatternSetRequest getRegexPatternSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRegexPatternSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
844,030
public static ExploreTraceResponse unmarshall(ExploreTraceResponse exploreTraceResponse, UnmarshallerContext _ctx) {<NEW_LINE>exploreTraceResponse.setRequestId(_ctx.stringValue("ExploreTraceResponse.RequestId"));<NEW_LINE>List<SpanVO> spanVOs = new ArrayList<SpanVO>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("Exp...
("ExploreTraceResponse.SpanVOs[" + i + "].Meta"));
1,117,298
public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context) throws IOException {<NEW_LINE>LambdaLogger logger = context.getLogger();<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream, Charset.forName("US-ASCII")));<NEW_LINE>PrintWriter writer = new ...
getClass().toString());
978,625
public synchronized List<SingleAnalysis> analyze(Token token) {<NEW_LINE>SecondaryPos sPos = guessSecondaryPosType(token);<NEW_LINE>String word = token.getText();<NEW_LINE>// TODO: for now, for regular words and numbers etc, use the analyze method.<NEW_LINE>if (sPos == SecondaryPos.None) {<NEW_LINE>if (word.contains("?...
getStemTransitions().addDictionaryItem(item);
831,131
public static DescribeDomainQpsDataResponse unmarshall(DescribeDomainQpsDataResponse describeDomainQpsDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainQpsDataResponse.setRequestId(_ctx.stringValue("DescribeDomainQpsDataResponse.RequestId"));<NEW_LINE>describeDomainQpsDataResponse.setDomainName(_ctx.stri...
(_ctx.stringValue("DescribeDomainQpsDataResponse.DataInterval"));
364,474
public void writeToParcel(Parcel parcel, int i) {<NEW_LINE>parcel.writeString(id);<NEW_LINE>parcel.writeString(fullName);<NEW_LINE>parcel.writeString(subredditName);<NEW_LINE>parcel.writeString(subredditNamePrefixed);<NEW_LINE>parcel.writeString(subredditIconUrl);<NEW_LINE>parcel.writeString(author);<NEW_LINE>parcel.wr...
(isGfycat ? 1 : 0));
1,676,026
public Map<String, Object> changeAssetMenuOrder(final String inode, final int newValue) throws ActionException, DotDataException {<NEW_LINE>HttpServletRequest req = WebContextFactory.get().getHttpServletRequest();<NEW_LINE>User user = null;<NEW_LINE>try {<NEW_LINE>user = com.liferay.portal.util.PortalUtil.getUser(req);...
result = new HashMap<>();
332,502
public Applications toApplications() {<NEW_LINE>Map<String, Application> appsByName = new HashMap<>();<NEW_LINE>Iterator<InstanceInfo> it = serviceIterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE><MASK><NEW_LINE>Application instanceApp = appsByName.get(instanceInfo.getAppName());<NEW_LINE>if (instanceApp == null) {...
InstanceInfo instanceInfo = it.next();
1,078,006
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>multi_remove_result result = new multi_remove_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER...
.apache.thrift.TApplicationException) e;
394,803
public ModelAndView hotp() {<NEW_LINE>ModelAndView modelAndView = new ModelAndView("safe/hotp");<NEW_LINE><MASK><NEW_LINE>String sharedSecret = passwordReciprocal.decoder(userInfo.getSharedSecret());<NEW_LINE>otpKeyUriFormat.setSecret(sharedSecret);<NEW_LINE>otpKeyUriFormat.setCounter(Long.parseLong(userInfo.getSharedC...
UserInfo userInfo = WebContext.getUserInfo();
1,851,815
public Cursor handle(RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>BaseDdlOperation logicalDdlPlan = (BaseDdlOperation) logicalPlan;<NEW_LINE>initDdlContext(logicalDdlPlan, executionContext);<NEW_LINE>// Validate the plan first and then return immediately if needed.<NEW_LINE>boolean <MASK><NEW_LINE...
returnImmediately = validatePlan(logicalDdlPlan, executionContext);
406,530
public Object deliverMessage(Object[] params) throws Throwable {<NEW_LINE>if (stuckThreadsStore != null) {<NEW_LINE>stuckThreadsStore.registerThread(Thread.currentThread().getId());<NEW_LINE>}<NEW_LINE>RequestTraceSpan span = null;<NEW_LINE>if (requestTracing != null && requestTracing.isRequestTracingEnabled()) {<NEW_L...
UUID) msg.getObjectProperty("#BAF-CID");
1,507,438
private void assign_types_1_2() throws TypeException {<NEW_LINE>for (Iterator<Local> localIt = stmtBody.getLocals().iterator(); localIt.hasNext(); ) {<NEW_LINE>final Local local = localIt.next();<NEW_LINE>TypeVariable var = typeVariable(local);<NEW_LINE>if (var == null) {<NEW_LINE>local.setType(RefType.v("java.lang.Obj...
, var.depth()));
464,188
private double[] computeScores(int[] feature, Map<Integer, Integer> preMap) {<NEW_LINE>final double[] hidden = new double[config.hiddenSize];<NEW_LINE>final int numTokens = config.numTokens;<NEW_LINE>final int embeddingSize = config.embeddingSize;<NEW_LINE>int offset = 0;<NEW_LINE>for (int j = 0; j < feature.length; j+...
idInteger = preMap.get(index);
1,124,855
public boolean sendHtmlMail(MailSenderInfo mailInfo) {<NEW_LINE>MyAuthenticator authenticator = null;<NEW_LINE>Properties pro = mailInfo.getProperties();<NEW_LINE>if (mailInfo.isValidate()) {<NEW_LINE>authenticator = new MyAuthenticator(mailInfo.getUserName(), mailInfo.getPassword());<NEW_LINE>}<NEW_LINE>Session sendMa...
InternetAddress(mailInfo.getFromAddress());
1,797,016
public static void handle(String stmt, ManagerConnection c, int offset) {<NEW_LINE>int rs = ManagerParseReload.parse(stmt, offset);<NEW_LINE>switch(rs) {<NEW_LINE>case ManagerParseReload.CONFIG:<NEW_LINE>ReloadConfig.execute(c, false);<NEW_LINE>break;<NEW_LINE>case ManagerParseReload.CONFIG_ALL:<NEW_LINE>ReloadConfig.e...
writeErrMessage(ErrorCode.ER_YES, "Unsupported statement");
447,443
private void flattenConfigElement(ConfigElement nestedElement, String flatPrefix, AtomicInteger i, String attributeName, String elementName, EvaluationContext context, RegistryEntry nestedRegistryEntry, boolean ignoreWarnings) throws ConfigEvaluatorException {<NEW_LINE>String subPrefix = flatPrefix + attributeName + "....
, filter.getCount()));
702,720
private void dropConstraints() throws DotDataException {<NEW_LINE>Connection conn = null;<NEW_LINE>try {<NEW_LINE>conn = DbConnectionFactory.getDataSource().getConnection();<NEW_LINE>conn.setAutoCommit(true);<NEW_LINE>List<MASK><NEW_LINE>if (tables != null) {<NEW_LINE>boolean executeDrop = true;<NEW_LINE>logTaskProgres...
<String> tables = getTablesToDropConstraints();
37,979
public DcClusterTbl addDcCluster(String dcName, String clusterName, String redisRule) {<NEW_LINE>DcTbl dcInfo = dcService.find(dcName);<NEW_LINE>ClusterTbl clusterInfo = clusterService.find(clusterName);<NEW_LINE>if (null == dcInfo || null == clusterInfo)<NEW_LINE>throw new BadRequestException("Cannot add dc-cluster to...
dcClusterTbl = find(dcName, clusterName);
502,238
public boolean put(int key, double value) {<NEW_LINE>int i = indexOfInsertion(key);<NEW_LINE>if (i < 0) {<NEW_LINE>// already contained<NEW_LINE>i = -i - 1;<NEW_LINE>// if (debug) if (this.state[i] != FULL) throw new InternalError();<NEW_LINE>// if (debug) if (this.table[i] != key) throw new InternalError();<NEW_LINE>t...
this.values[i] = value;
374,882
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TargetPermanent target = new TargetPermanent(filter);<NEW_LINE>target.setNotTarget(true);<NEW_LINE>if (!target.canChoose(...
drawCards(1, source, game);
718,868
public void activate(Map<String, Object> config) {<NEW_LINE>betaFenceCheck();<NEW_LINE>id = (String) config.get(KEY_ID);<NEW_LINE>String uriValue = (String) config.get(KEY_URI);<NEW_LINE>if (uriValue != null)<NEW_LINE>try {<NEW_LINE>this.configuredUri = new URI(uriValue);<NEW_LINE>} catch (URISyntaxException e) {<NEW_L...
String key = entry.getKey();
1,522,269
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeInt64(1, tag_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeEnum(2, type_);<NEW_LINE>}<NEW_LINE>if (...
, fixtures_.get(i));
1,001,989
public int compareTo(archive_args 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.valueOf(isSetMid()).<MASK><NEW_LINE>if (lastComparison != 0)...
compareTo(other.isSetMid());
1,575,762
public void initParam(Object obj) {<NEW_LINE>long size = Runtime.getRuntime().totalMemory();<NEW_LINE>// initParam happens before display of the panel so the values are appropriately set when<NEW_LINE>// viewed<NEW_LINE>updateMemoryLabel(getSizeMemoryLabel(), "jvm.options.memory.size", size);<NEW_LINE>updateMemoryLabel...
getRuntime().maxMemory());
323,734
public static DescribeBackupTasksResponse unmarshall(DescribeBackupTasksResponse describeBackupTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupTasksResponse.setRequestId<MASK><NEW_LINE>List<BackupJob> items = new ArrayList<BackupJob>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("DescribeBackupTask...
(_ctx.stringValue("DescribeBackupTasksResponse.RequestId"));
567,503
private String formatOutput(CommandLine cl, JobInfo info) {<NEW_LINE>StringBuilder output = new StringBuilder();<NEW_LINE>output.append("ID: ").append(info.getId()).append("\n");<NEW_LINE>output.append("Name: ").append(info.getName()).append("\n");<NEW_LINE>output.append("Description: ");<NEW_LINE>if (cl.hasOption("v")...
()).append("\n");
786,078
public void run() {<NEW_LINE>try {<NEW_LINE>String folderServerId = message.getFolder().getServerId();<NEW_LINE>LocalStore localStore = localStoreProvider.getInstance(account);<NEW_LINE>LocalFolder localFolder = localStore.getFolder(folderServerId);<NEW_LINE>ProgressBodyFactory bodyFactory = new ProgressBodyFactory(new...
loadAttachmentFinished(account, message, part);
596,843
public ErrorCode action(ByteBuf ackPayload, String clientID, String fromUser, ProtoConstants.RequestSourceType requestSourceType, WFCMessage.DismissGroupRequest request, Qos1PublishHandler.IMCallback callback) {<NEW_LINE>WFCMessage.GroupInfo groupInfo = m_messagesStore.getGroupInfo(request.getGroupId());<NEW_LINE>boole...
request.getGroupId(), isAdmin);
1,112,027
public List<Object> apply(Object o) {<NEW_LINE>if (o instanceof org.docx4j.wml.SdtBlock || o instanceof org.docx4j.wml.SdtRun || o instanceof org.docx4j.wml.CTSdtRow || o instanceof org.docx4j.wml.CTSdtCell) {<NEW_LINE>SdtPr sdtPr = OpenDoPEHandler.getSdtPr(o);<NEW_LINE>if (sdtPr != null) {<NEW_LINE>log.debug("Processi...
Tag tag = sdtPr.getTag();
1,078,391
final CreateReadinessCheckResult executeCreateReadinessCheck(CreateReadinessCheckRequest createReadinessCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createReadinessCheckRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
986,546
public static ListDeploymentsResponse unmarshall(ListDeploymentsResponse listDeploymentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeploymentsResponse.setRequestId(_ctx.stringValue("ListDeploymentsResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setPageNumber(_ctx.longValue("ListDeployments...
= new ArrayList<Deployment>();
1,820,851
ViewType update(RNSharedElementContent content, RNSharedElementStyle style, float position) {<NEW_LINE>boolean invalidated = false;<NEW_LINE>// Update content<NEW_LINE>if (mContent != content) {<NEW_LINE>mContent = content;<NEW_LINE>invalidated = true;<NEW_LINE>}<NEW_LINE>// Update view-type<NEW_LINE>ViewType viewType ...
| RNSharedElementStyle.PROP_BACKGROUND_COLOR)) != 0;
1,816,472
private void bindColumns(RowSetLoader writer) {<NEW_LINE>rawColWriter = writer.scalar(RAW_LINE_COL_NAME);<NEW_LINE>unmatchedColWriter = writer.scalar(UNMATCHED_LINE_COL_NAME);<NEW_LINE>saveMatchedRows = rawColWriter.isProjected();<NEW_LINE>// If no match-case columns are projected, and the unmatched<NEW_LINE>// columns...
withSchema(providedSchema).build();
238,704
public void generateStart(OptimizedTagContext context) {<NEW_LINE>// PK65013 - start<NEW_LINE>String pageContextVar = Constants.JSP_PAGE_CONTEXT_ORIG;<NEW_LINE>JspOptions jspOptions = context.getJspOptions();<NEW_LINE>if (jspOptions != null) {<NEW_LINE>if (context.isTagFile() && jspOptions.isModifyPageContextVariable()...
writeSource("createRepeatStack(" + pageContextVar + ");");
851,920
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtOrigText = "@name('split') @public on SupportBean " + "insert into AStream2S select theString where intPrimitive=1 " + "insert into BStream2S select theString where intPrimitive=1 or intPrimitive=2 " + ...
assertEqualsNew("s1", "theString", "E1");
1,535,776
protected HttpMessage newFullBodyMessage(ByteBuf body) {<NEW_LINE>HttpResponse res = new DefaultFullHttpResponse(version(), status(), body);<NEW_LINE>if (!HttpMethod.HEAD.equals(method())) {<NEW_LINE>responseHeaders.remove(HttpHeaderNames.TRANSFER_ENCODING);<NEW_LINE>if (!HttpResponseStatus.NOT_MODIFIED.equals(status()...
responseHeaders.remove(HttpHeaderNames.TRANSFER_ENCODING);
181,479
public boolean add(int bitIndex) {<NEW_LINE>boolean set = contains(bitIndex);<NEW_LINE>if (!set) {<NEW_LINE>if (myBase < 0) {<NEW_LINE>myBase = roundToNearest(bitIndex);<NEW_LINE>} else if (bitIndex < myBase) {<NEW_LINE>int newBase = roundToNearest(bitIndex);<NEW_LINE>int wordDiff = (myBase - newBase) >> SHIFT;<NEW_LIN...
length), wordIndex + 1)];
1,640,918
final DeletePolicyResult executeDeletePolicy(DeletePolicyRequest deletePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
985,246
List<BQModuleMetadata> topSort() {<NEW_LINE>Map<BQModuleMetadata, Integer> degree = inDegree();<NEW_LINE>Deque<BQModuleMetadata> zeroDegree = new ArrayDeque<>(neighbors.size());<NEW_LINE>List<BQModuleMetadata> result = new ArrayList<>(neighbors.size());<NEW_LINE>degree.forEach((k, v) -> {<NEW_LINE>if (v == 0) {<NEW_LIN...
(Collectors.joining(" -> "));
1,329,011
public static void addSessionWorldTimesToBatch(PreparedStatement statement, FinishedSession session, String[] gms) throws SQLException {<NEW_LINE>UUID uuid = session.getPlayerUUID();<NEW_LINE>ServerUUID serverUUID = session.getServerUUID();<NEW_LINE>Optional<WorldTimes> worldTimes = session.getExtraData().get(WorldTime...
getTime(gms[0]));
1,081,941
public int distance() {<NEW_LINE>final int INFINITY = searchTerm.length() + searchText.length();<NEW_LINE>int[][] H = new int[searchTerm.length() + 2][searchText.length() + 2];<NEW_LINE>H[0][0] = INFINITY;<NEW_LINE>for (int i = 0; i <= searchTerm.length(); i++) {<NEW_LINE>H[i + 1][1] = i;<NEW_LINE>H[i + 1][0] = INFINIT...
(i - 1)] = i;
958,040
private Mono<Response<OnPremiseIotSensorInner>> createOrUpdateWithResponseAsync(String onPremiseIotSensorName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<...
error(new IllegalArgumentException("Parameter onPremiseIotSensorName is required and cannot be null."));
1,171,315
public com.amazonaws.services.eventbridge.model.ResourceAlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.eventbridge.model.ResourceAlreadyExistsException resourceAlreadyExistsException = new com.amazonaws.services.<MASK><NEW_LINE>int origin...
eventbridge.model.ResourceAlreadyExistsException(null);
1,399,263
public void updateAsciiStream(int i, InputStream x, long length) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateAsciiStream(i, x, length);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateAsciiStream", "2981", this);<NEW_LINE>throw WSJdbcUtil...
this, tc, "updateAsciiStream", err);
814,533
private void genJCallTerm(JavaMethodCall callIns, BType attachedType, int localVarOffset) {<NEW_LINE>// Load function parameters of the target Java method to the stack..<NEW_LINE>Label blockedOnExternLabel = new Label();<NEW_LINE>Label notBlockedOnExternLabel = new Label();<NEW_LINE>genHandlingBlockedOnExternal(localVa...
args.get(0).variableDcl;
994,413
MethodTree generateConstructorAuthBasic(TreeMaker maker) {<NEW_LINE>ModifiersTree methodModifier = maker.Modifiers(Collections.<Modifier>singleton(Modifier.PUBLIC));<NEW_LINE>List<VariableTree> paramList <MASK><NEW_LINE>// NOI18N<NEW_LINE>Tree argTypeTree = maker.Identifier("String");<NEW_LINE>ModifiersTree fieldModifi...
= new ArrayList<VariableTree>();
1,590,880
public void randomDisplayTick(@Nonnull IBlockState bs, @Nonnull World world, @Nonnull BlockPos pos, @Nonnull Random rand) {<NEW_LINE>T te = getTileEntity(world, pos);<NEW_LINE>if (PersonalConfig.machineParticlesEnabled.get() && te != null && te.isActive()) {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < 2; i++) {<NEW_LI...
EnumFacing front = te.getFacing();
926,236
protected ResultSet<O> retrieveEqual(final Equal<O, A> equal, final QueryOptions queryOptions, final SuffixTree<StoredResultSet<O>> tree) {<NEW_LINE>return new ResultSet<O>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Iterator<O> iterator() {<NEW_LINE>ResultSet<O> rs = tree.getValueForExactKey(equal.getValue());<NE...
getValueForExactKey(equal.getValue());
1,201,822
public Result process(CvPipeline pipeline) throws Exception {<NEW_LINE>Mat mat = pipeline.getWorkingImage();<NEW_LINE>List<Point> points = new ArrayList<>();<NEW_LINE>byte[] rowData = new byte[mat.cols()];<NEW_LINE>for (int row = 0, rows = mat.rows(); row < rows; row++) {<NEW_LINE>mat.get(row, 0, rowData);<NEW_LINE>for...
new Point[] {}));
89,287
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName) {<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 IllegalArgumentException("Parame...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
903,961
public void keyPressed(final KeyEvent event) {<NEW_LINE>if (event.getKeyCode() == KeyEvent.VK_RIGHT) {<NEW_LINE>if (m_caretPosition != (2 * m_registerModel.getRegisterInformation(m_editedRegister).getRegisterSize())) {<NEW_LINE>m_caretPosition++;<NEW_LINE>}<NEW_LINE>// Consume the event to avoid scrolling<NEW_LINE>even...
getRegisterInformation(m_editedRegister).getRegisterSize();
1,238,841
private JsonRequestBPartnerUpsertItem mapCareGiver(@NonNull final CareGiver careGiver) {<NEW_LINE>final String careGiverId = Optional.ofNullable(careGiver.getId()).map(UUID::toString).orElseThrow(() -> new RuntimeException("Missing careGiver._id!"));<NEW_LINE>final String careGiverExternalIdentifier = formatExternalId(...
setPhone(careGiver.getPhone());
572,504
private void loadNode392() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.CertificateGroupFolderType_DefaultApplicationGroup_TrustList_OpenWithMasks_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), L...
setInput(new StringReader(xml));
1,378,488
private HeapHisto collectYoung() throws InterruptedException {<NEW_LINE>// Force full GC<NEW_LINE>long ygc = 0;<NEW_LINE>LongCounter youngGcCnt = null;<NEW_LINE>try {<NEW_LINE>JStatData jsd = JStatData.connect(pid);<NEW_LINE>youngGcCnt = (LongCounter) jsd.getAllCounters().get("sun.gc.collector.0.invocations");<NEW_LINE...
(youngSampleDepth / 1000) + "s");
1,290,873
protected JFreeChart createGanttChart() throws JRException {<NEW_LINE>JFreeChart jfreeChart = super.createGanttChart();<NEW_LINE>CategoryPlot categoryPlot = (CategoryPlot) jfreeChart.getPlot();<NEW_LINE>categoryPlot.getDomainAxis().setCategoryLabelPositions(CategoryLabelPositions.STANDARD);<NEW_LINE>categoryPlot.setDom...
] { 1 }, 0));
1,297,864
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(Association.class, CMMN_ELEMENT_ASSOCIATION).namespaceUri(CMMN11_NS).extendsType(Artifact.class).instanceProvider(new ModelTypeInstanceProvider<Association>() {<NEW_LINE><NEW_LINE>public A...
AssociationDirection.class).build();
501,606
public ElasticsearchSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ElasticsearchSettings elasticsearchSettings = new ElasticsearchSettings();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
int originalDepth = context.getCurrentDepth();
184,656
public Integer save(ConsumptionInfo info, String operator) {<NEW_LINE>log.debug("begin to save consumption info={}", info);<NEW_LINE>Preconditions.checkNotNull(info, "consumption info cannot be null");<NEW_LINE>Preconditions.checkNotNull(info.getTopic(), "consumption topic cannot be empty");<NEW_LINE>if (isConsumerGrou...
info.getMqExtInfo(), entity);
357,675
public ByteBuffer read(long offset, long length) throws IOException {<NEW_LINE>Preconditions.checkState(!mClosed);<NEW_LINE>updateUnderFileSystemInputStream(offset);<NEW_LINE>updateBlockWriter(offset);<NEW_LINE>long bytesToRead = Math.min(length, mBlockMeta.getBlockSize() - offset);<NEW_LINE>if (bytesToRead <= 0) {<NEW...
new byte[(int) bytesToRead];
1,709,129
protected void processKeyEvent(KeyEvent event) {<NEW_LINE>if (event.getID() == KeyEvent.KEY_RELEASED) {<NEW_LINE>int row = getSelectedRow();<NEW_LINE>if (row != -1) {<NEW_LINE>if (event.getKeyCode() == KeyEvent.VK_LEFT) {<NEW_LINE>if (treeRenderer.isExpanded(row)) {<NEW_LINE>treeRenderer.collapseRow(row);<NEW_LINE>} el...
(row).getParentPath());
361,998
public void shutdownAndAwait() {<NEW_LINE>Map<RaftGroupId, InternalCompletableFuture<Object>> futures = super.shutdown();<NEW_LINE>ILogger logger = client.getLoggingService().getLogger(getClass());<NEW_LINE>long remainingTimeNanos = <MASK><NEW_LINE>while (remainingTimeNanos > 0) {<NEW_LINE>int closed = 0;<NEW_LINE>for ...
TimeUnit.SECONDS.toNanos(SHUTDOWN_TIMEOUT_SECONDS);
53,650
private void loadNode284() {<NEW_LINE>TwoStateVariableTypeNode node = new TwoStateVariableTypeNode(this.context, Identifiers.AcknowledgeableConditionType_EnabledState, new QualifiedName(0, "EnabledState"), new LocalizedText("en", "EnabledState"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new D...
.expanded(), true));
1,606,953
public void addProjectTags(AddProjectTags request, StreamObserver<AddProjectTags.Response> responseObserver) {<NEW_LINE>try {<NEW_LINE>final var response = futureProjectDAO.addTags(request).thenCompose(unused -> futureProjectDAO.getProjectById(request.getId()), executor).thenCompose(updatedProject -> addEvent(updatedPr...
CommonUtils.observeError(responseObserver, e);
122,540
private int copySetRecord(HollowSetSchema engineSchema, int currentRecordPointer, int currentRecordOrdinal) {<NEW_LINE>HollowSetWriteRecord rec = engineSchema != null ? (<MASK><NEW_LINE>int numElements = VarInt.readVInt(record.data, currentRecordPointer);<NEW_LINE>currentRecordPointer += VarInt.sizeOfVInt(numElements);...
HollowSetWriteRecord) getWriteRecord(engineSchema) : null;
1,293,543
private void loadCustomPrefixes(ArrayList<String> sourcePrefixes) {<NEW_LINE>s_logger.log(Level.FINE, "loadCustomPrefixes", getDirection());<NEW_LINE>ArrayList<String> entityTypes = new ArrayList<String>();<NEW_LINE>StringBuffer result = new StringBuffer();<NEW_LINE>String sql = s_dbEngine.sqlAD_getCustomEntityPrefixes...
rs, "EntityType").toUpperCase();
62,986
public ScorerSupplier scorerSupplier(LeafReaderContext context) throws IOException {<NEW_LINE>LeafReader reader = context.reader();<NEW_LINE>PointValues values = reader.getPointValues(field);<NEW_LINE>if (values == null) {<NEW_LINE>// No docs in this segment had any points fields<NEW_LINE>return null;<NEW_LINE>}<NEW_LI...
visitor = getIntersectVisitor(result, tree);
818,380
public double regress(DataPoint data) {<NEW_LINE>if (regressor == null || vc == null)<NEW_LINE>throw new UntrainedModelException("Model has not been trained");<NEW_LINE>List<? extends VecPaired<VecPaired<Vec, Double>, Double>> knn = vc.search(data.getNumericalValues(), k);<NEW_LINE>RegressionDataSet localSet = new Regr...
), new CategoricalData[0]);
1,265,388
public KMTTransitInfo parseInfo(@NonNull FelicaCard card) {<NEW_LINE>FelicaService serviceID = card.getSystem(SYSTEMCODE_KMT).getService(FELICA_SERVICE_KMT_ID);<NEW_LINE>ByteArray serialNumber;<NEW_LINE>if (serviceID != null) {<NEW_LINE>serialNumber = new ByteArray(serviceID.getBlocks().get(0).<MASK><NEW_LINE>} else {<...
getData().bytes());
1,226,870
private Comment buildComment() {<NEW_LINE>Comment comment = new Comment();<NEW_LINE>comment.comment = args.getString(InitBundle.MESSAGE);<NEW_LINE>comment.spoiler = args.getBoolean(InitBundle.ISSPOILER);<NEW_LINE>// episode?<NEW_LINE>long episodeId = args.getLong(InitBundle.EPISODE_ID);<NEW_LINE>if (episodeId != 0) {<N...
ShowTools.getShowTraktId(context, showId);
1,769,299
public String template(Cursor cursor, String template, Space.Location location) {<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>return Timer.builder("rewrite.template.generate.statement").register(Metrics.globalRegistry).record(() -> {<NEW_LINE>StringBuilder before = new StringBuilder();<NEW_LINE>StringBuilder a...
MethodDeclaration method = cursor.getValue();
1,843,177
public Column createColumn() {<NEW_LINE>Column c = new Column();<NEW_LINE>c.setName(name);<NEW_LINE>c.setType(type);<NEW_LINE>if (notnull)<NEW_LINE>c.setNotnull(true);<NEW_LINE>if (primaryKey)<NEW_LINE>c.setPrimaryKey(true);<NEW_LINE>if (identity)<NEW_LINE>c.setIdentity(true);<NEW_LINE>if (historyExclude)<NEW_LINE>c.se...
.setForeignKeyOnUpdate(fkeyModeOf(fkeyOnUpdate));
359,851
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>getActiveTservers_result result = new getActiveTservers_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSecurity...
_LOGGER.error("Exception inside handler", e);
1,686,346
private void startRootServer(@NonNull Context context, @NonNull Intent intent) throws IOException, InterruptedException, RemoteException {<NEW_LINE>// Register BinderReceiver to receive binder from root process<NEW_LINE>IntentFilter filter = new IntentFilter(getBroadcastAction(name));<NEW_LINE>context.registerReceiver(...
).linkToDeath(this, 0);
1,176,571
// ===================================================================================<NEW_LINE>// Basic Override<NEW_LINE>// ==============<NEW_LINE>@Override<NEW_LINE>protected String doBuildColumnString(String dm) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(dm).append(createdBy);<NEW_LINE>s...
(dm).append(name);
1,046,451
private static void consistencyCheckSchemaIndexes(IndexAccessors indexes, InconsistencyReport report, ProgressListener listener, CursorContext cursorContext) {<NEW_LINE>if (hasNodeLabelIndex(indexes)) {<NEW_LINE>consistencyCheckSingleCheckable(report, listener, indexes.nodeLabelIndex(), RecordType.LABEL_SCAN_DOCUMENT, ...
accessor = indexes.accessorFor(onlineRule);
563,213
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {<NEW_LINE>SimpleMetadataReaderFactory metadataReaderFactory = new SimpleMetadataReaderFactory(applicationContext);<NEW_LINE>DefaultListableBeanFactory defaultListableBeanFactory = (DefaultListableBeanFactory) beanFactory;<NEW_LINE>String r...
= JsonRpcService.class.getName();
1,494,833
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sacrificed = source.getCosts().stream().filter(SacrificeTargetCost.class::isInstance).map(SacrificeTargetCost.class::cast).map(SacrificeTargetCost::getPermanents).flatMap(Collection::s...
.getManaValue() + 1));
861,107
public NaiveBayesTextTrainBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>BatchOperator<?> in = checkAndGetFirst(inputs);<NEW_LINE>TypeInformation<?> labelType;<NEW_LINE>String labelColName = getLabelCol();<NEW_LINE>ModelType modelType = getModelType();<NEW_LINE>String weightColName = getWeightCol();<NEW_LINE>d...
in, null, vectorColName, keepColNames);
1,185,720
private static Map<URL, Set<URL>> findDependent(final URL root, final Collection<ElementHandle<TypeElement>> classes, boolean includeFilesInError) throws IOException {<NEW_LINE>// get dependencies<NEW_LINE>Map<URL, List<URL>> deps = IndexingController.getDefault().getRootDependencies();<NEW_LINE>Map<URL, List<URL>> pee...
URL u1 = entry.getKey();
1,636,890
public static SusiThought readRSS(String url) {<NEW_LINE>SyndFeedInput input = new SyndFeedInput();<NEW_LINE>SyndFeed feed = null;<NEW_LINE>try {<NEW_LINE>ClientConnection connection = new ClientConnection(url, "");<NEW_LINE>XmlReader xmlreader = new XmlReader(connection.getInputStream());<NEW_LINE>feed = input.build(x...
getValue().toString());
1,079,309
public void addFile(DocumentsStorageProvider.Document document) {<NEW_LINE>if (document == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OCFile file = document.getFile();<NEW_LINE>final int iconRes = MimeTypeUtil.getFileTypeIconId(file.getMimeType(<MASK><NEW_LINE>final String mimeType = file.isFolder() ? Document.MIME_T...
), file.getFileName());
686,380
public Object evaluateEnumMethod(EventBean[] eventsLambda, Collection enumcoll, boolean isNewData, ExprEvaluatorContext context) {<NEW_LINE>TreeMap<Comparable, Object> sort = new TreeMap<>();<NEW_LINE>boolean hasColl = false;<NEW_LINE>Collection<EventBean> beans = (Collection<EventBean>) enumcoll;<NEW_LINE>for (EventBe...
) entry).add(next);
1,238,034
private final void addVertex(final float[] values, final int offset) {<NEW_LINE>final int o = vertices.size;<NEW_LINE>vertices.addAll(values, offset, stride);<NEW_LINE>lastIndex = vindex++;<NEW_LINE>if (vertexTransformationEnabled) {<NEW_LINE>transformPosition(vertices.items, o + posOffset, posSize, positionTransform);...
o + tangentOffset, 3, normalTransform);
1,762,569
public void bind() {<NEW_LINE>GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mFrameBufferHandle);<NEW_LINE>GLES20.glFramebufferTexture2D(GLES20.GL_FRAMEBUFFER, GLES20.GL_COLOR_ATTACHMENT0, GLES20.GL_TEXTURE_2D, mTexture.getTextureId(), 0);<NEW_LINE>int status = GLES20.glCheckFramebufferStatus(GLES20.GL_FRAMEBUFFER);<N...
glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);
1,105,507
public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyGraph " + "DefaultSupportSourceOp -> outstream<SupportBean> {} " + "DefaultSupportCaptureOp(outstream) {}");<NEW_LINE>assertEquals(StatementType.CREATE_DATAFLOW, env.statement("flow").getProperty(StatementProperty.S...
sourceStat.getTimeOverall() > 0);
882,383
public boolean performOk() {<NEW_LINE>DBPPreferenceStore preferenceStore = DBWorkbench.getPlatform().getPreferenceStore();<NEW_LINE>preferenceStore.setValue(PostgreConstants.PROP_SHOW_NON_DEFAULT_DB, String.valueOf<MASK><NEW_LINE>preferenceStore.setValue(PostgreConstants.PROP_SHOW_TEMPLATES_DB, String.valueOf(showTempl...
(showNonDefault.getSelection()));
1,665,159
private List<ModelScore> scoreFull(String input, int maxSampleCount) {<NEW_LINE>int[] samplingPoints;<NEW_LINE>if (maxSampleCount <= 0) {<NEW_LINE>samplingPoints = getStepping(<MASK><NEW_LINE>} else {<NEW_LINE>samplingPoints = getStepping(input, maxSampleCount);<NEW_LINE>}<NEW_LINE>List<ModelScore> modelScores = Lists....
input, input.length());
872,964
private void handleMappingExceptions() {<NEW_LINE>if (singleValueIsAllowed) {<NEW_LINE>org.python.Object arg = peekNextArg();<NEW_LINE>if (arg instanceof org.python.types.Range) {<NEW_LINE>throw new org.python.exceptions.TypeError("range indices must be integers or slices, not str");<NEW_LINE>} else if (arg instanceof ...
arg.typeName() + " indices must be integers, not str");
1,142,442
private static void createEJBRoleRefPermissions(EjbDescriptor ejbDescriptor, PolicyConfiguration policyConfiguration) throws PolicyContextException {<NEW_LINE>List<Role> ejbScopedRoleNames = new ArrayList<Role>();<NEW_LINE>Collection<Role> allRoles = ejbDescriptor.getEjbBundleDescriptor().getRoles();<NEW_LINE>Role anyA...
allRoles, ejbScopedRoleNames, ejbName, policyConfiguration);