idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,448,471
public static JSONObject printTransactionToJSON(Transaction transaction, boolean selfType) {<NEW_LINE>JSONObject jsonTransaction = JSONObject.parseObject(JsonFormat.printToString(transaction, selfType));<NEW_LINE>JSONArray contracts = new JSONArray();<NEW_LINE>transaction.getRawData().getContractList().stream().forEach...
jsonTransaction.put("txID", txID);
579,366
public static HttpCompliance from(String spec) {<NEW_LINE>Set<Violation> sections;<NEW_LINE>String[] elements = spec.split("\\s*,\\s*");<NEW_LINE>switch(elements[0]) {<NEW_LINE>case "0":<NEW_LINE><MASK><NEW_LINE>break;<NEW_LINE>case "*":<NEW_LINE>sections = allOf(Violation.class);<NEW_LINE>break;<NEW_LINE>default:<NEW_...
sections = noneOf(Violation.class);
1,313,507
public static void horizontal9(Kernel1D_S32 kernel, GrayU8 image, GrayI16 dest) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel...
indexDst++] = (short) total;
88,650
protected void visitRange(MemberReader memberReader, RolapLevel level, RolapMember lowerMember, RolapMember upperMember, boolean recurse) {<NEW_LINE>final List<RolapMember> list = new ArrayList<RolapMember>();<NEW_LINE>memberReader.getMemberRange(level, lowerMember, upperMember, list);<NEW_LINE>for (RolapMember member ...
memberReader.getMemberChildren(lowerMember, list);
572,306
private TaskDOExample convert(TaskQueryCondition condition) {<NEW_LINE>TaskDOExample example = new TaskDOExample();<NEW_LINE>Criteria criteria = example.createCriteria();<NEW_LINE>if (!StringUtils.isEmpty(condition.getTaskUuid())) {<NEW_LINE>criteria.andTaskUuidEqualTo(condition.getTaskUuid());<NEW_LINE>}<NEW_LINE>if (...
andSceneCodeEqualTo(condition.getSceneCode());
264,166
public void updateText(NodeModel nodeModel) {<NEW_LINE>final NodeView nodeView = getNodeView();<NEW_LINE>if (nodeView == null)<NEW_LINE>return;<NEW_LINE>final ModeController modeController = nodeView.getMap().getModeController();<NEW_LINE>final TextController textController = TextController.getController(modeController...
warn(e.getMessage());
748,636
public static void renderProgressPie(PoseStack ms, int x, int y, float progress, ItemStack stack) {<NEW_LINE>Minecraft mc = Minecraft.getInstance();<NEW_LINE>mc.getItemRenderer().renderAndDecorateItem(stack, x, y);<NEW_LINE>RenderSystem.clear(GL11.GL_DEPTH_BUFFER_BIT, true);<NEW_LINE>GL11.glEnable(GL11.GL_STENCIL_TEST)...
180F * (float) Math.PI;
472,333
private Mode findCloserMode(List<Mode> modes, float videoFramerate) {<NEW_LINE>HashMap<Integer, int[]> relatedRates;<NEW_LINE>relatedRates = getRateMapping();<NEW_LINE>int myRate = <MASK><NEW_LINE>if (myRate >= 2300 && myRate <= 2399) {<NEW_LINE>myRate = 2397;<NEW_LINE>}<NEW_LINE>if (relatedRates.containsKey(myRate)) {...
(int) (videoFramerate * 100.0F);
1,331,044
public Void call() {<NEW_LINE>File oldMinimalRebuildCacheFile = computeMinimalRebuildCacheFile(moduleName, permutationDescription);<NEW_LINE>File newMinimalRebuildCacheFile = new File(oldMinimalRebuildCacheFile.getAbsoluteFile() + ".new");<NEW_LINE>// Ensure the cache folder exists.<NEW_LINE>oldMinimalRebuildCacheFile....
(new FileOutputStream(newMinimalRebuildCacheFile)));
1,472,301
long handlePendingConnection(long expectedState, Queue<ByteBuf> cachedFrames) {<NEW_LINE>CoreSubscriber<? super ByteBuf> lastActual = null;<NEW_LINE>for (; ; ) {<NEW_LINE>final CoreSubscriber<? super ByteBuf> nextActual = this.pendingActual;<NEW_LINE>if (nextActual != lastActual) {<NEW_LINE>for (final ByteBuf frame : c...
onNext(frame.retainedSlice());
1,159,507
public List<SDVariable> doDiff(List<SDVariable> f1) {<NEW_LINE>// Args at libnd4j level: in, gradAtOut, wD, wP, bias<NEW_LINE>// Args for SConv2d libnd4j: input, wD, wP, bias<NEW_LINE>List<SDVariable> inputs = new ArrayList<>();<NEW_LINE>inputs.add(arg(0));<NEW_LINE>inputs.add(f1.get(0));<NEW_LINE>SDVariable[] args = a...
asList(conv2DDerivative.outputVariables());
1,394,561
final CreatePartitionResult executeCreatePartition(CreatePartitionRequest createPartitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPartitionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreatePartitionRequest> reques...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,834,818
public boolean isSupported(final Path workdir, final String filename) {<NEW_LINE>if (workdir.isRoot()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!this.validate(filename)) {<NEW_LINE>log.warn(String.format("Validation failed for target name %s", filename));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (workdir.a...
.getSize(), workdir));
626,433
final ListControlsResult executeListControls(ListControlsRequest listControlsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listControlsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
451,927
public static Object instantiateDefault(final Class inClass) throws Exception {<NEW_LINE>Object result = null;<NEW_LINE>final Class objectClass = primitiveClassToObjectClass(inClass);<NEW_LINE>if (Number.class.isAssignableFrom(objectClass)) {<NEW_LINE>result = instantiateFromString(objectClass, "0");<NEW_LINE>} else if...
java.net.URL("http://www.sun.com");
1,798,371
public void onSubmit(Object task, PolicyTaskFuture<?> future, int invokeAnyCount) {<NEW_LINE>// notify listener: taskSubmitted<NEW_LINE>if (task instanceof ManagedTask) {<NEW_LINE>ManagedTaskListener listener = ((ManagedTask) task).getManagedTaskListener();<NEW_LINE>if (listener != null) {<NEW_LINE>ThreadContext tranCo...
taskSubmitted(future, managedExecutor, task);
157,566
public static void down(GrayS16 input, GrayI16 output) {<NEW_LINE>int maxY = input.height - input.height % 2;<NEW_LINE>int maxX = input.width - input.width % 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex ...
+= input.data[indexIn0++];
850,134
public static ListOutboundOrderSKUTagsResponse unmarshall(ListOutboundOrderSKUTagsResponse listOutboundOrderSKUTagsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOutboundOrderSKUTagsResponse.setRequestId(_ctx.stringValue("ListOutboundOrderSKUTagsResponse.RequestId"));<NEW_LINE>listOutboundOrderSKUTagsResponse.setPa...
("ListOutboundOrderSKUTagsResponse.SkuTags[" + i + "].StyleId"));
953,199
void onFedAuthInfo(SqlFedAuthInfo fedAuthInfo, TDSTokenHandler tdsTokenHandler) throws SQLServerException {<NEW_LINE>assert (null != activeConnectionProperties.getProperty(SQLServerDriverStringProperty.USER.toString()) && null != activeConnectionProperties.getProperty(SQLServerDriverStringProperty.PASSWORD.toString()))...
.toString()) && fedAuthRequiredPreLoginResponse);
1,605,936
protected Mono<Endpoints> convert(List<DetectedEndpoint> endpoints) {<NEW_LINE>if (endpoints.isEmpty()) {<NEW_LINE>return Mono.empty();<NEW_LINE>}<NEW_LINE>Map<String, List<DetectedEndpoint>> endpointsById = endpoints.stream().collect(groupingBy((e) -> e.getDefinition().getId()));<NEW_LINE>List<Endpoint> result = endpo...
collect(Collectors.toList());
757,498
private Mono<Response<Flux<ByteBuffer>>> reimageAllWithResponseAsync(String resourceGroupName, String vmScaleSetName, VirtualMachineScaleSetVMInstanceIDs vmInstanceIDs, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.get...
this.client.mergeContext(context);
1,268,670
public AuthorizationRequest checkForPreApproval(AuthorizationRequest authorizationRequest, Authentication userAuthentication) {<NEW_LINE>String clientId = authorizationRequest.getClientId();<NEW_LINE>Collection<String> requestedScopes = authorizationRequest.getScope();<NEW_LINE>Set<String> approvedScopes = new HashSet<...
debug(builder.toString());
742,035
static InstallException create(RepositoryException e, Collection<String> featureNames, boolean installingAsset, RestRepositoryConnectionProxy proxy, boolean defaultRepo, boolean isOpenLiberty) {<NEW_LINE>Throwable cause = e;<NEW_LINE>Throwable rootCause = e;<NEW_LINE>// Check the list of causes of the exception for con...
featuresListStr = InstallUtils.getFeatureListOutput(featureNames);
1,405,103
private Mono<Response<Void>> stopContinuousWebJobWithResponseAsync(String resourceGroupName, String name, String webJobName, 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.")...
error(new IllegalArgumentException("Parameter name is required and cannot be null."));
1,484,984
public static void execute(ManagerConnection c, String stmt) {<NEW_LINE>Map<String, String> paramster = parse(stmt);<NEW_LINE>int retryTime = 1;<NEW_LINE>long intervalTime = 200;<NEW_LINE>// "show @@CKECK_GLOBAL -SCHEMA=TESTDB -TABLE=E_ACCOUNT_SUBJECT -retrytime=2"<NEW_LINE>// + " -intervaltime=20"<NEW_LINE>String tabl...
writeErrMessage(ErrorCode.ER_UNKNOWN_ERROR, "retryTime is null, please add paramster -retry= ");
357,115
private void convertUnopInsn(InsnNode insn) {<NEW_LINE>int op = insn.getOpcode();<NEW_LINE>boolean dword = op == LNEG || op == DNEG;<NEW_LINE>StackFrame frame = getFrame(insn);<NEW_LINE>Operand[] out = frame.out();<NEW_LINE>Operand opr;<NEW_LINE>if (out == null) {<NEW_LINE>Operand op1 = dword ? popImmediateDual() : pop...
= new Operand(insn, unop);
218,195
public static boolean isMediaInGutenbergPostBody(@NonNull String postContent, String localMediaId) {<NEW_LINE>List<String> <MASK><NEW_LINE>// Regex for Image, Video, Audio and File blocks<NEW_LINE>patterns.add("<!-- wp:(?:image|video|audio|file){1} \\{[^\\}]*\"id\":%s([^\\d\\}][^\\}]*)*\\} -->");<NEW_LINE>// Regex for ...
patterns = new ArrayList<>();
1,644,970
public Response revoke() {<NEW_LINE>event.event(EventType.REVOKE_GRANT);<NEW_LINE>cors = Cors.add(request).auth().allowedMethods("POST").auth().exposedHeaders(Cors.ACCESS_CONTROL_ALLOW_METHODS);<NEW_LINE>checkSsl();<NEW_LINE>checkRealm();<NEW_LINE>checkClient();<NEW_LINE>formParams = request.getDecodedFormParameters();...
), cpe.getErrorStatus());
978,372
public static void main(final String[] args) {<NEW_LINE>final Option<Integer> o1 = some(7);<NEW_LINE>final Option<Integer> o2 = some(8);<NEW_LINE>final Option<Integer> o3 = none();<NEW_LINE>F<Integer, Option<Integer>> f = i -> i % 2 == 0 ? some(i * 3) : none();<NEW_LINE>final Option<Integer> o4 = o1.bind(f);<NEW_LINE>f...
(intShow).println(o4);
1,683,114
public static void doPartitionTableCutOver(final String schemaName, final String sourceTableName, final String targetTableName, final TableInfoManager tableInfoManager, final GsiMetaManager.TableType primaryTableType) {<NEW_LINE>String random = UUID.randomUUID().toString();<NEW_LINE>List<TablePartitionRecord> sourceTab...
format("Table '%s.%s' doesn't exist", schemaName, sourceTableName);
671,154
public StorageLensDataExport unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>StorageLensDataExport storageLensDataExport = new StorageLensDataExport();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<...
XMLEvent xmlEvent = context.nextEvent();
159,477
// implement RexToSqlNodeConverter<NEW_LINE>public SqlNode convertLiteral(RexLiteral literal) {<NEW_LINE>// Numeric<NEW_LINE>if (SqlTypeFamily.EXACT_NUMERIC.getTypeNames().contains(literal.getTypeName())) {<NEW_LINE>return SqlLiteral.createExactNumeric(literal.getValue().<MASK><NEW_LINE>}<NEW_LINE>if (SqlTypeFamily.APP...
toString(), SqlParserPos.ZERO);
387,452
public void testAnnotationJavamailSessionCreated() throws Throwable {<NEW_LINE>if (jm2 != null) {<NEW_LINE>Properties props = jm2.getProperties();<NEW_LINE>System.out.println("JavamailFATServlet.testAnnotationJavamailSessionCreated properties : " + props.toString());<NEW_LINE>// Validate we got the session we expected<...
testValue = jm2.getProperty("test");
1,364,137
public void initWithNiwsConfig(IClientConfig clientConfig) {<NEW_LINE>super.initWithNiwsConfig(clientConfig);<NEW_LINE>this.ncc = clientConfig;<NEW_LINE>this<MASK><NEW_LINE>this.isSecure = ncc.get(CommonClientConfigKey.IsSecure, this.isSecure);<NEW_LINE>this.isHostnameValidationRequired = ncc.get(CommonClientConfigKey....
.restClientName = ncc.getClientName();
1,098,034
protected <T extends com.x.base.core.project.organization.Group> T convert(Business business, Group group, Class<T> clz) throws Exception {<NEW_LINE>T t = clz.newInstance();<NEW_LINE>t.setId(group.getId());<NEW_LINE>t.setName(group.getName());<NEW_LINE>t.<MASK><NEW_LINE>t.setUnique(group.getUnique());<NEW_LINE>t.setDis...
setDescription(group.getDescription());
348,301
public void onRoutingSuccess(List<Route> route, int shortestRouteIndex) {<NEW_LINE>progressDialog.dismiss();<NEW_LINE>CameraUpdate center = CameraUpdateFactory.newLatLng(start);<NEW_LINE>CameraUpdate <MASK><NEW_LINE>map.moveCamera(center);<NEW_LINE>if (polylines.size() > 0) {<NEW_LINE>for (Polyline poly : polylines) {<...
zoom = CameraUpdateFactory.zoomTo(16);
1,268,370
public boolean applyTo(DomainObject obj) {<NEW_LINE>EquateTable equateTable = ((Program) obj).getEquateTable();<NEW_LINE>equate = equateTable.getEquate(equateName);<NEW_LINE>if (existsWithDifferentValue(equate)) {<NEW_LINE>msg = "Equate named " + equateName + " already exists with value of " + equate.getValue() + ".";<...
equateTable.createEquate(equateName, equateValue);
661,776
public void marshall(CreateReplicationConfigurationTemplateRequest createReplicationConfigurationTemplateRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createReplicationConfigurationTemplateRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<N...
e.getMessage(), e);
125,899
private void validateIncomingRequest(Request request) throws BadRequestException {<NEW_LINE>// check mandatory headers per RFC3261 8.1.1<NEW_LINE>if (request.getCallIdHeader() == null) {<NEW_LINE>throw new BadRequestException("Missing Call-ID header field", Response.BAD_REQUEST);<NEW_LINE>}<NEW_LINE>if (request.getCSeq...
BadRequestException("Missing Via header field", Response.BAD_REQUEST);
1,481,795
private boolean validateScheme(byte[] handshake, int scheme) {<NEW_LINE>int digestOffset = -1;<NEW_LINE>switch(scheme) {<NEW_LINE>case 0:<NEW_LINE>digestOffset = getDigestOffset1(handshake, 0);<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>digestOffset = getDigestOffset2(handshake, 0);<NEW_LINE>break;<NEW_LINE>default:<NEW...
log.error("Unknown algorithm: {}", scheme);
1,458,004
private static double[] genotypeLikelihoods(final PileupSummary site, final double c, final double errorRate, double maf) {<NEW_LINE>final double f = site.getAlleleFrequency();<NEW_LINE>final int k = site.getAltCount();<NEW_LINE>final int n = k + site.getRefCount();<NEW_LINE>// sample genotypes in order hom ref, alt mi...
1 - maf, 1 - errorRate };
311,159
public static void main(String[] args) {<NEW_LINE>Exercise28_SoftwareCaching softwareCaching = new Exercise28_SoftwareCaching();<NEW_LINE>BinarySearchTree<Integer, String> binarySearchTree = <MASK><NEW_LINE>for (int i = 0; i < 10; i++) {<NEW_LINE>binarySearchTree.put(i, "Value " + i);<NEW_LINE>}<NEW_LINE>// Cache on ge...
softwareCaching.new BinarySearchTree<>();
1,617,144
private static MysqlDateTime handleTimeInterval(MysqlDateTime src, MySQLInterval interval) {<NEW_LINE>long sign = interval.isNeg() ? -1 : 1;<NEW_LINE>MysqlDateTime ret = new MysqlDateTime();<NEW_LINE>ret.setSqlType(Types.TIMESTAMP);<NEW_LINE>long nano = src.getSecondPart() + sign * interval.getSecondPart();<NEW_LINE><M...
long extraSec = nano / MySQLTimeTypeUtil.SEC_TO_NANO;
875,220
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_bit_idauthentication);<NEW_LINE>request = (BitIDSignRequest) getIntent().getSerializableExtra(REQUEST);<NEW_LINE>signInButton = (Button) <MASK><NEW_LINE>errorView = (TextView) find...
findViewById(R.id.btSignUp);
16,702
final CreateServiceTemplateVersionResult executeCreateServiceTemplateVersion(CreateServiceTemplateVersionRequest createServiceTemplateVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createServiceTemplateVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
invoke(request, responseHandler, executionContext);
856,627
protected SegmentGenerationTaskSpec generateTaskSpec(Map<String, String> taskConfigs, File localTempDir) throws Exception {<NEW_LINE>SegmentGenerationTaskSpec taskSpec = new SegmentGenerationTaskSpec();<NEW_LINE>URI inputFileURI = URI.create(taskConfigs.get(BatchConfigProperties.INPUT_DATA_FILE_URI_KEY));<NEW_LINE>Pino...
.get(BatchConfigProperties.INPUT_FORMAT));
1,737,060
public ListenableFuture<Triple<byte[], byte[], String>> encryptAsync(final byte[] plaintext, final byte[] iv, final byte[] authenticationData, final String algorithm) throws NoSuchAlgorithmException {<NEW_LINE>if (plaintext == null) {<NEW_LINE>throw new IllegalArgumentException("plaintext");<NEW_LINE>}<NEW_LINE>if (iv ...
AlgorithmResolver.Default.get(algorithmName);
1,304,076
private void passThrough(HostMessage msg) {<NEW_LINE>HostVO vo = dbf.findByUuid(msg.getHostUuid(), HostVO.class);<NEW_LINE>if (vo == null && allowedMessageAfterSoftDeletion.contains(msg.getClass())) {<NEW_LINE>HostEO eo = dbf.findByUuid(msg.<MASK><NEW_LINE>vo = ObjectUtils.newAndCopy(eo, HostVO.class);<NEW_LINE>}<NEW_L...
getHostUuid(), HostEO.class);
1,601,352
protected ActionResult<List<Wo>> execute(HttpServletRequest request, EffectivePerson effectivePerson, String id, Integer count, String appId, JsonElement jsonElement) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>EqualsTerms equals = new EqualsTerms();<NEW_LINE>LikeTerms likes = new LikeTerm...
convertToWrapIn(jsonElement, Wi.class);
1,426,839
protected InstanceProperties updateOMRSAttributes(Classification omasClassification) {<NEW_LINE>InstanceProperties instanceProperties = new InstanceProperties();<NEW_LINE>Criticality criticality = (Criticality) omasClassification;<NEW_LINE>if (criticality.getSteward() != null) {<NEW_LINE>repositoryHelper.addStringPrope...
setPrimitiveValue(criticality.getConfidence());
114,257
public void didOpen(DidOpenTextDocumentParams params) {<NEW_LINE>String fileUri = params.getTextDocument().getUri();<NEW_LINE>try {<NEW_LINE>DocumentServiceContext context = ContextBuilder.buildDocumentServiceContext(CommonUtil.convertUriSchemeFromBala(fileUri), this.workspaceManagerProxy.get(fileUri), LSContextOperati...
, identifier, (Position) null);
577,743
private void handleColumn(TopLevelClass topLevelClass, InnerClass innerClass, IntrospectedColumn column, String tableFieldName) {<NEW_LINE>topLevelClass.<MASK><NEW_LINE>FullyQualifiedJavaType javaType;<NEW_LINE>if (column.getFullyQualifiedJavaType().isPrimitive()) {<NEW_LINE>javaType = column.getFullyQualifiedJavaType(...
addImportedType(column.getFullyQualifiedJavaType());
379,862
final AssociateHostedConnectionResult executeAssociateHostedConnection(AssociateHostedConnectionRequest associateHostedConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateHostedConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
false), new AssociateHostedConnectionResultJsonUnmarshaller());
1,661,752
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.<MASK><NEW_LINE>env.compileDeploy("@name('s0') select " + "varaggESC.keys()," + "varaggESC[p00].theEvents," + "varaggESC[p00]," + "varaggESC[p00].theEvents.last(*)," + "varaggESC[p00].theEvents.window(*).take(...
compileDeploy("@public create table varaggESC (" + "key string primary key, theEvents window(*) @type(SupportBean))", path);
1,465,647
public int sendMessageAsync(Message message) {<NEW_LINE>OtrChatManager cm = OtrChatManager.getInstance();<NEW_LINE>SessionID sId = cm.getSessionId(message.getFrom().getAddress(), mParticipant.getAddress().getAddress());<NEW_LINE>SessionStatus otrStatus = cm.getSessionStatus(sId);<NEW_LINE>message.setTo(new XmppAddress(...
setType(Imps.MessageType.POSTPONED);
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, ...
XP_bar_x - PPpXP.data[index];
526,312
private static void generateCodeCtor(StringBuilder builder, String className, boolean isInnerClass, CodegenCtor optionalCtor, Map<Class, String> imports, int additionalIndent) {<NEW_LINE>if (optionalCtor == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean hasAssignments = false;<NEW_LINE>for (CodegenTypedParam para...
indent(builder, 2 + additionalIndent);
923,761
protected PackageTree generatePackageTree() throws IOException {<NEW_LINE>PrintOptions options = getParameters().getPrintOptions().get();<NEW_LINE>Deobfuscator deobfuscator = Deobfuscator.create(getParameters().getMappingFile().<MASK><NEW_LINE>File inputFile = getParameters().getInputFile().getAsFile().get();<NEW_LINE>...
getAsFile().getOrNull());
1,619,399
public static DescribeSitePairsResponse unmarshall(DescribeSitePairsResponse describeSitePairsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSitePairsResponse.setRequestId(_ctx.stringValue("DescribeSitePairsResponse.RequestId"));<NEW_LINE>describeSitePairsResponse.setSuccess(_ctx.booleanValue("DescribeSitePairs...
("DescribeSitePairsResponse.SitePairs[" + i + "].SitePairId"));
174,510
protected Control createDialogArea(Composite parent) {<NEW_LINE><MASK><NEW_LINE>Composite group = (Composite) super.createDialogArea(parent);<NEW_LINE>GridData gd = new GridData(GridData.FILL_BOTH);<NEW_LINE>group.setLayoutData(gd);<NEW_LINE>Label infoLabel = new Label(group, SWT.NONE);<NEW_LINE>infoLabel.setText("Cont...
getShell().setText("Choose content editor");
536,498
final GetQueueAttributesResult executeGetQueueAttributes(GetQueueAttributesRequest getQueueAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getQueueAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
invoke(request, responseHandler, executionContext);
889,906
public void marshall(Branch branch, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (branch == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(branch.getBranchArn(), BRANCHARN_BINDING);<NEW_LINE>protocolMarsha...
branch.getBranchName(), BRANCHNAME_BINDING);
550,403
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>FormVersion formVersio...
getApplication(), Application.class);
1,501,527
public static synchronized void handleMetadataModelException(Class<?> clazz, DatabaseConnection connection, MetadataModelException e, boolean closeConnectionIfBroken) {<NEW_LINE>Logger.getLogger(clazz.getName()).log(Level.FINE, <MASK><NEW_LINE>if (connection == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!connecti...
e.getLocalizedMessage(), e);
1,140,378
protected static AggregationClassAssignmentPerLevel makeRow(boolean isGenerateTableEnter, AggregationCodegenRowLevelDesc rowLevelDesc, Class forgeClass, Consumer<AggregationRowCtorDesc> rowCtorConsumer, CodegenClassScope classScope, List<CodegenInnerClass> innerClasses, AggregationClassNames classNames) {<NEW_LINE>Aggr...
AggregationClassAssignment[][] leafAssignments = null;
850,014
private void printLabel(final DeliveryOrder deliveryOrder, final PackageLabel packageLabel, @NonNull final DeliveryOrderRepository deliveryOrderRepo, @Nullable final AsyncBatchId asyncBatchId) {<NEW_LINE>final IArchiveStorageFactory archiveStorageFactory = Services.get(IArchiveStorageFactory.class);<NEW_LINE>final Stri...
Properties ctx = Env.getCtx();
165,061
public void parseJsonQuery(String json, FeatureHandler<String> featureHandler, FeatureHandler<Long> rangeFeatureHandler) throws IllegalArgumentException {<NEW_LINE>try (JsonParser parser = factory.createParser(json)) {<NEW_LINE><MASK><NEW_LINE>while (parser.nextToken() != JsonToken.END_OBJECT) {<NEW_LINE>String fieldNa...
skipToken(parser, JsonToken.START_OBJECT);
889,906
public void marshall(Branch branch, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (branch == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(branch.getBranchArn(), BRANCHARN_BINDING);<NEW_LINE>protocolMarsha...
branch.getPullRequestEnvironmentName(), PULLREQUESTENVIRONMENTNAME_BINDING);
371,181
static FileObject copyBuildScript(@NonNull final Project project) throws IOException {<NEW_LINE>final FileObject projDir = project.getProjectDirectory();<NEW_LINE>FileObject rpBuildScript = projDir.getFileObject(BUILD_SCRIPT_PATH);<NEW_LINE>if (rpBuildScript != null && !isBuildScriptUpToDate(project)) {<NEW_LINE>// try...
nbproject = projDir.getFileObject("nbproject");
596,316
public void addRootPropertiesToBundle(String theId, @Nonnull BundleLinks theBundleLinks, Integer theTotalResults, IPrimitiveType<Date> theLastUpdated) {<NEW_LINE>ensureBundle();<NEW_LINE>if (myBundle.getIdElement().isEmpty()) {<NEW_LINE>myBundle.setId(theId);<NEW_LINE>}<NEW_LINE>if (myBundle.getMeta().getLastUpdated() ...
addTotalResultsToBundle(theTotalResults, theBundleLinks.bundleType);
477,425
static Component onCreateLayout(ComponentContext c, @State boolean shown) {<NEW_LINE>return Row.create(c).heightPercent(100).child(Row.create(c).child(SolidColor.create(c).widthDip(90).heightDip(40).transitionKey(YELLOW_KEY).color(Color.YELLOW)).child(SolidColor.create(c).widthDip(90).heightDip(40).transitionKey(BLUE_K...
YogaAlign.FLEX_START).build();
1,798,530
private static double apply(CompLongIntVector v1, LongIntVector v2) {<NEW_LINE>double dotValue = 0.0;<NEW_LINE>if (v2.isSparse() && v1.size() > v2.size()) {<NEW_LINE>ObjectIterator<Long2IntMap.Entry> iter = v2.getStorage().entryIterator();<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>Long2IntMap.<MASK><NEW_LINE>long idx ...
Entry entry = iter.next();
964,500
private void registerEndpoint(ClassLoader loader) throws Exception {<NEW_LINE>//<NEW_LINE>// Convert J2EE deployment descriptor information into<NEW_LINE>// JAXRPC endpoint data structure<NEW_LINE>//<NEW_LINE>RuntimeEndpointInfo endpointInfo = rpcFactory_.createRuntimeEndpointInfo();<NEW_LINE>Class serviceEndpointInter...
loadClass(endpoint_.getServletImplClass());
421,529
public Function<ContainerRequest, ?> createValueProvider(Parameter parameter) {<NEW_LINE>String parameterName = parameter.getSourceName();<NEW_LINE>if (parameterName == null || parameterName.length() == 0) {<NEW_LINE>// Invalid URI parameter name<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Class<?> rawParameterType...
, !parameter.isEncoded());
1,533,114
protected ControlRequestFlush createControlRequestFlush(SIBUuid8 target, long ID, SIBUuid12 stream) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createControlRequestFlush");<NEW_LINE>ControlRequestFlush rflushMsg;<NEW_LINE>// Create new...
rflushMsg.setGuaranteedProtocolType(ProtocolType.UNICASTOUTPUT);
1,662,244
public List<InvoiceLine> populate(Invoice invoice, InvoicingProject folder) throws AxelorException {<NEW_LINE>List<SaleOrderLine> saleOrderLineList = new ArrayList<SaleOrderLine>(folder.getSaleOrderLineSet());<NEW_LINE>List<PurchaseOrderLine> purchaseOrderLineList = new ArrayList<PurchaseOrderLine>(folder.getPurchaseOr...
>(folder.getProjectTaskSet());
1,381,894
private void drawText(String text, RectF rect, float textHeight, Canvas canvas) {<NEW_LINE>// If the image is flipped, the left will be translated to right, and the right to left.<NEW_LINE>float x0 = translateX(rect.left);<NEW_LINE>float x1 = translateX(rect.right);<NEW_LINE>rect.left = min(x0, x1);<NEW_LINE>rect.right...
bottom = translateY(rect.bottom);
613,260
// CSI: Sponge<NEW_LINE>private void checkFingerprint() {<NEW_LINE>final Certificate[] certificates = this.getClass().getProtectionDomain().getCodeSource().getCertificates();<NEW_LINE>final List<String> fingerprints = CertificateHelper.getFingerprints(certificates);<NEW_LINE>if (((Boolean) Launch.blackboard.getOrDefaul...
[fingerprints.indexOf(EXPECTED_CERTIFICATE_FINGERPRINT)];
806,252
protected IShape<T> mkShape(@Nonnull BlockFaceShape down, @Nonnull BlockFaceShape up, @Nonnull BlockFaceShape allSides) {<NEW_LINE>return new IShape<T>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>@Nonnull<NEW_LINE>public BlockFaceShape getBlockFaceShape(@Nonnull IBlockAccess worldIn, @Nonnull IBlockState state, @Nonnull ...
IBlockState paintSource = te.getPaintSource();
761,750
public static RegisterFaceResponse unmarshall(RegisterFaceResponse registerFaceResponse, UnmarshallerContext _ctx) {<NEW_LINE>registerFaceResponse.setRequestId(_ctx.stringValue("RegisterFaceResponse.RequestId"));<NEW_LINE>registerFaceResponse.setGroupId<MASK><NEW_LINE>List<Face> faces = new ArrayList<Face>();<NEW_LINE>...
(_ctx.stringValue("RegisterFaceResponse.GroupId"));
1,796,135
public static Element drawField(ClassDetailVO clazz, Integer expand) {<NEW_LINE>TableElement fieldsTable = new TableElement(1).leftCellPadding(0).rightCellPadding(0);<NEW_LINE>FieldVO[] fields = clazz.getFields();<NEW_LINE>if (fields == null || fields.length == 0) {<NEW_LINE>return fieldsTable;<NEW_LINE>}<NEW_LINE>for ...
() : field.getValue();
1,023,047
protected void processPskSecretResult(PskSecretResult pskSecretResult) throws HandshakeException {<NEW_LINE>if (!pskRequestPending) {<NEW_LINE>throw new IllegalStateException("psk secret not pending!");<NEW_LINE>}<NEW_LINE>pskRequestPending = false;<NEW_LINE>try {<NEW_LINE>ensureUndestroyed();<NEW_LINE>DTLSSession sess...
? session.getHostName() : null;
1,220,910
public static IRubyObject aliases(ThreadContext context, IRubyObject recv) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>EncodingService service = runtime.getEncodingService();<NEW_LINE>IRubyObject[] list = service.getEncodingList();<NEW_LINE>HashEntryIterator i = service<MASK><NEW_LINE>RubyHash result = RubyHash...
.getAliases().entryIterator();
689,448
public void prettyPrint(Appendable appendable) throws IOException {<NEW_LINE>appendable.append("CREATE");<NEW_LINE>if (unique()) {<NEW_LINE>appendable.append(" UNIQUE");<NEW_LINE>}<NEW_LINE>if (nullFiltered()) {<NEW_LINE>appendable.append(" NULL_FILTERED");<NEW_LINE>}<NEW_LINE>appendable.append(" INDEX `").append(name(...
(storingString).append(")");
76,283
public void onBindViewHolder(@Nonnull FeeViewHolder holder, int position) {<NEW_LINE>super.onBindViewHolder(holder, position);<NEW_LINE>if (getItemViewType(position) == VIEW_TYPE_ITEM) {<NEW_LINE>// - get element from your dataset at this position<NEW_LINE>// - replace the contents of the view with that element<NEW_LIN...
holder.itemView.setLayoutParams(layoutParams);
708,851
public void undoScaleToPixelsAndCameraMatrix(SceneStructureProjective structure, SceneObservations observations) {<NEW_LINE>for (int viewIdx = 0; viewIdx < structure.views.size; viewIdx++) {<NEW_LINE>NormalizationPoint2D n = pixelScaling.get(viewIdx);<NEW_LINE>float cx = (float) n.meanX;<NEW_LINE>float cy = (float) n.m...
structure.views.data[viewIdx];
752,124
public void requestReply(T request, StreamObserver<T> responseObserver) {<NEW_LINE>Message<byte[]> message = this.toSpringMessage(request);<NEW_LINE>FunctionInvocationWrapper function = this.resolveFunction(message.getHeaders());<NEW_LINE>if (FunctionTypeUtils.isFlux(function.getOutputType())) {<NEW_LINE>String errorMe...
.onNext((T) reply);
1,261,930
public FunctionRunAsConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FunctionRunAsConfig functionRunAsConfig = new FunctionRunAsConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
class).unmarshall(context));
232,235
public void joinParticleGroups(ParticleGroup groupA, ParticleGroup groupB) {<NEW_LINE>assert (groupA != groupB);<NEW_LINE>RotateBuffer(groupB.m_firstIndex, groupB.m_lastIndex, m_count);<NEW_LINE>assert (groupB.m_lastIndex == m_count);<NEW_LINE>RotateBuffer(groupA.m_firstIndex, groupA.m_lastIndex, groupB.m_firstIndex);<...
? 2 * m_pairCount : Settings.minParticleBufferCapacity;
1,297,680
public void writeImage(JRImage image, String imageName) {<NEW_LINE>if (image != null) {<NEW_LINE>write("JRDesignImage " + imageName + " = new JRDesignImage(jasperDesign);\n");<NEW_LINE>write(imageName + ".setScaleImage({0});\n", image.getOwnScaleImageValue());<NEW_LINE>write(imageName + ".setRotation({0});\n", image.ge...
".setUsingCache({0});\n", image.getUsingCache());
39,962
public void createCachedEnumeration(LockedMessageEnumeration lme, AsynchDispatchScheduler asynchDispatchScheduler) {<NEW_LINE>final String methodName = "createCachedEnumeration";<NEW_LINE>if (TRACE.isEntryEnabled()) {<NEW_LINE>SibTr.entry(this, TRACE, methodName, new Object[] { lme, asynchDispatchScheduler });<NEW_LINE...
[] { throwable, lme });
728,367
public static ListCampaignsResponse unmarshall(ListCampaignsResponse listCampaignsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCampaignsResponse.setRequestId(_ctx.stringValue("ListCampaignsResponse.RequestId"));<NEW_LINE>listCampaignsResponse.setMessage(_ctx.stringValue("ListCampaignsResponse.Message"));<NEW_LINE...
("ListCampaignsResponse.Data.List[" + i + "].Simulation"));
1,768,888
final DescribeFleetCapacityResult executeDescribeFleetCapacity(DescribeFleetCapacityRequest describeFleetCapacityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFleetCapacityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new DescribeFleetCapacityResultJsonUnmarshaller());
1,316,136
public List<PurchaseItem> placeRemotePurchaseOrder(@NonNull final Collection<PurchaseCandidate> purchaseCandidates) {<NEW_LINE>final ImmutableMap<PurchaseOrderRequestItem, PurchaseCandidate> //<NEW_LINE>//<NEW_LINE>requestItem2Candidate = Maps.uniqueIndex(purchaseCandidates, RealVendorGatewayInvoker::createPurchaseOrde...
), purchaseOrderResponse.getTransactionRecordId());
1,415,330
protected Object _deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {<NEW_LINE>final TreeNode treeNode = p.readValueAsTree();<NEW_LINE>final TreeNode typeNode = treeNode.path("type");<NEW_LINE>if (!typeNode.isObject()) {<NEW_LINE>ctxt.reportWrongTokenException(typeNode.traverse(), JsonToken.STAR...
deser.deserialize(newParser, ctxt);
685,041
public void enterSs_server(A10Parser.Ss_serverContext ctx) {<NEW_LINE>Optional<String> maybeName = toString(ctx, ctx.slb_server_name());<NEW_LINE>if (!maybeName.isPresent()) {<NEW_LINE>// dummy<NEW_LINE>_currentServer = new Server(ctx.slb_server_name().getText(), new ServerTargetAddress(Ip.ZERO));<NEW_LINE>return;<NEW_...
String name = maybeName.get();
913,685
public void marshall(ListProcessingJobsRequest listProcessingJobsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listProcessingJobsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listProce...
listProcessingJobsRequest.getMaxResults(), MAXRESULTS_BINDING);
1,775,926
private Map<Path, List<KeyExtent>> assignMapFiles(Map<Path, List<AssignmentInfo>> assignments, Map<KeyExtent, String> locations, int numThreads) {<NEW_LINE>// group assignments by tablet<NEW_LINE>Map<KeyExtent, List<PathSize>> assignmentsPerTablet = new TreeMap<>();<NEW_LINE>assignments.forEach((mapFile, tabletsToAssig...
).put(ke, pathSizes);
1,504,922
final CreateStoreImageTaskResult executeCreateStoreImageTask(CreateStoreImageTaskRequest createStoreImageTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createStoreImageTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,186,638
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>Card card = game.getCard(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (controller != null && card != null) {<NEW_LINE>if (controller.chooseUse(outcome, "Cast " + card.getLogName() + '?', source, game)) {<...
getPlayer(source.getControllerId());