idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
673,236
// Must init at first<NEW_LINE>public static void allClasses() throws HackAssertionException {<NEW_LINE>if (android.os.Build.VERSION.SDK_INT <= 8) {<NEW_LINE>LoadedApk = Hack.into("android.app.ActivityThread$PackageInfo");<NEW_LINE>} else {<NEW_LINE>LoadedApk = Hack.into("android.app.LoadedApk");<NEW_LINE>}<NEW_LINE>Ac...
PackageParser$Provider = Hack.into("android.content.pm.PackageParser$Provider");
449,351
// 2nd Move<NEW_LINE>private void runMoveAnimation(boolean removalsPending, boolean movesPending) {<NEW_LINE>if (movesPending) {<NEW_LINE>final ArrayList<MoveInfo> moves = new ArrayList<>();<NEW_LINE>moves.addAll(mPendingMoves);<NEW_LINE>mMovesList.add(moves);<NEW_LINE>mPendingMoves.clear();<NEW_LINE>Runnable mover = n...
view, mover, getRemoveDuration());
1,594,436
private void rebuildRecentMenu() {<NEW_LINE>recentMenu.removeAll();<NEW_LINE>ImageIcon icon = new ImageIcon(getClass().getResource("/gitblt-favicon.png"));<NEW_LINE>List<GitblitRegistration> list = new ArrayList<GitblitRegistration>(registrations.values());<NEW_LINE>Collections.sort(list, new Comparator<GitblitRegistra...
JMenuItem(reg.name, icon);
1,523,218
public OrcaTransitInfo parseInfo(@NonNull DesfireCard card) {<NEW_LINE>byte[] data;<NEW_LINE>int serialNumber;<NEW_LINE>int balance;<NEW_LINE>List<Trip> trips;<NEW_LINE>List<Refill> refills;<NEW_LINE>try {<NEW_LINE>data = ((StandardDesfireFile) card.getApplication(0xffffff).getFile(0x0f)).getData().bytes();<NEW_LINE>se...
.getData().bytes();
1,437,488
public void draw(Texture texture, float[] spriteVertices, int offset, int count) {<NEW_LINE>if (!drawing)<NEW_LINE>throw new IllegalStateException("PolygonSpriteBatch.begin must be called before draw.");<NEW_LINE>final short[] triangles = this.triangles;<NEW_LINE>final float[] vertices = this.vertices;<NEW_LINE>int tri...
(short) (vertex + 2);
679,930
private Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String clusterName, ClusterInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required an...
error(new IllegalArgumentException("Parameter clusterName is required and cannot be null."));
1,161,895
public static void swapChunks(TileMap tileMap, Stage primaryStage) {<NEW_LINE>new ProgressDialog(Translation.MENU_TOOLS_SWAP_CHUNKS, primaryStage).showProgressBar(t -> {<NEW_LINE>t.setMax(4);<NEW_LINE>Long2ObjectOpenHashMap<LongOpenHashSet> markedChunks = tileMap.getMarkedChunks();<NEW_LINE><MASK><NEW_LINE>for (Long2Ob...
LongArrayList chunks = new LongArrayList(2);
1,461,730
private JPanel buildParserOptionsPanel() {<NEW_LINE>ActionListener l = (e) -> updateParserOptionEnablement(false);<NEW_LINE>universalParserButton = new JRadioButton("Universal");<NEW_LINE>universalParserButton.setToolTipText("Platform-independent PDB analyzer (No PDB.XML support).");<NEW_LINE>msdiaParserButton = new JR...
add(new GLabel("Control:"));
1,217,253
private StockQtyAndUOMQty addPackRecordToLineUsingHU(@NonNull final I_EDI_DesadvLine desadvLineRecord, @NonNull final I_M_InOutLine inOutLineRecord, @NonNull final I_M_HU huRecord, @NonNull final BPartnerId bPartnerId, @NonNull final LinkedList<I_EDI_DesadvLine_Pack> existingPacks) {<NEW_LINE>final ProductId productId ...
desadvLineRecord, qtyInStockUOM.toBigDecimal());
1,693,996
public ServiceResponse serviceImpl(Query post, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JSONObject result = new JSONObject(true);<NEW_LINE>result.put("accepted", false);<NEW_LINE>result.put("message", "Error: Unable to show user manageme...
result.put("user-list", users);
410,436
private void publicRLPxHandshakeFinished(ChannelHandlerContext ctx, HelloMessage helloRemote, EthVersion ethVersion) {<NEW_LINE>if (!P2pHandler.isProtocolVersionSupported(helloRemote.getP2PVersion())) {<NEW_LINE>throw new RuntimeException(String.format("The remote peer protocol version %s isn't supported"<MASK><NEW_LIN...
, helloRemote.getP2PVersion()));
314,122
/* Build call for throttlingPoliciesCustomRuleIdDelete */<NEW_LINE>private com.squareup.okhttp.Call throttlingPoliciesCustomRuleIdDeleteCall(String ruleId, String ifMatch, String ifUnmodifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRe...
String[] localVarAccepts = { "application/json" };
389,858
public TaskDefPb.TaskDef toProto(TaskDef from) {<NEW_LINE>TaskDefPb.TaskDef.Builder to = TaskDefPb.TaskDef.newBuilder();<NEW_LINE>if (from.getName() != null) {<NEW_LINE>to.setName(from.getName());<NEW_LINE>}<NEW_LINE>if (from.getDescription() != null) {<NEW_LINE>to.setDescription(from.getDescription());<NEW_LINE>}<NEW_...
setOwnerEmail(from.getOwnerEmail());
858,709
private void createTablesAndHashes(Random rand) {<NEW_LINE>int D = vecs.get(0).length();<NEW_LINE>h = new Vec[L][k];<NEW_LINE>b = new double[L][k];<NEW_LINE>for (int l = 0; l < L; l++) for (int i = 0; i < k; i++) {<NEW_LINE>DenseVector dv = new DenseVector(D);<NEW_LINE>for (int j = 0; j < D; j++) dv.set(j, rand.nextGau...
= rand.nextDouble() * w;
1,678,199
public SootMethod makeSootMethod(final Method method) {<NEW_LINE>int accessFlags = method.getAccessFlags();<NEW_LINE>// get the name of the method<NEW_LINE>String name = method.getName();<NEW_LINE>List<SootClass> thrownExceptions = getThrownExceptions(method);<NEW_LINE>List<<MASK><NEW_LINE>// retrieve the return type o...
Type> parameterTypes = getParameterTypes(method);
979,532
public Rectangle call() throws Exception {<NEW_LINE>AccessibleComponent acmp = ac.getAccessibleComponent();<NEW_LINE>if (acmp != null) {<NEW_LINE>Rectangle r = acmp.getBounds();<NEW_LINE>if (r != null) {<NEW_LINE>try {<NEW_LINE>Point p = acmp.getLocationOnScreen();<NEW_LINE>if (p != null) {<NEW_LINE>r.x = p.x;<NEW_LINE...
width * at.getScaleX());
1,476,897
public Optional<Double> pulse(long time) {<NEW_LINE>boolean firstRun = lastPulse < 0;<NEW_LINE>long currentPulse = System.nanoTime();<NEW_LINE>long difference = currentPulse - lastPulse;<NEW_LINE>lastPulse = currentPulse;<NEW_LINE>if (firstRun) {<NEW_LINE>// Can not calculate on first check.<NEW_LINE>return Optional.em...
average.add(time, 0.0);
1,359,170
final DescribeDatasetResult executeDescribeDataset(DescribeDatasetRequest describeDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
591,332
public static int modOddInverse(int[] m, int[] x, int[] z) {<NEW_LINE>int len32 = m.length;<NEW_LINE>// assert len32 > 0;<NEW_LINE>// assert (m[0] & 1) != 0;<NEW_LINE>// assert m[len32 - 1] != 0;<NEW_LINE>int bits = (len32 << 5) - Integers.numberOfLeadingZeros(m[len32 - 1]);<NEW_LINE>int len30 = (bits + 29) / 30;<NEW_L...
] E = new int[len30];
909,531
public Mqtt5PUBLISH decode(@NotNull final ClientConnection clientConnection, @NotNull final ByteBuf buf, final byte header) {<NEW_LINE>final int <MASK><NEW_LINE>if (qos == DISCONNECTED) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Boolean dup = decodeDup(clientConnection, header, qos);<NEW_LINE>if (dup == null) {<...
qos = decodeQoS(clientConnection, header);
483,451
final CreateCarrierGatewayResult executeCreateCarrierGateway(CreateCarrierGatewayRequest createCarrierGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCarrierGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
16,197
private void loadImages() {<NEW_LINE>int width = container.getWidth();<NEW_LINE>int height = container.getHeight();<NEW_LINE>// set images<NEW_LINE>File parent = beatmap.getFile().getParentFile();<NEW_LINE>for (GameImage img : GameImage.values()) {<NEW_LINE>if (img.isBeatmapSkinnable()) {<NEW_LINE>img.setDefaultImage()...
.getHeight() / 2f));
1,500,272
public String reverseVowels(String s) {<NEW_LINE>StringBuilder sb = new StringBuilder(s);<NEW_LINE>Set<Character> vowels = new HashSet(Arrays.asList('a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'));<NEW_LINE>// use two pointers approach would be the fastest<NEW_LINE>int i = 0;<NEW_LINE>int j = s.length() - 1;<NEW_LIN...
sb.setCharAt(j, temp);
1,608,697
public void rename(IPackageFragment rootPackage, RenameArguments args, boolean renameSubPackages) throws CoreException {<NEW_LINE>add(rootPackage, args, null);<NEW_LINE>IPackageFragment[] allSubPackages = null;<NEW_LINE>if (renameSubPackages) {<NEW_LINE>allSubPackages = getSubpackages(rootPackage);<NEW_LINE>for (int i ...
add(pack, subArgs, null);
1,287,570
private void check(APIRecoverVmInstanceMsg msg, Map<String, Quota.QuotaPair> pairs) {<NEW_LINE>String currentAccountUuid = msg<MASK><NEW_LINE>String resourceTargetOwnerAccountUuid = msg.getSession().getAccountUuid();<NEW_LINE>long totalVmNumQuota = pairs.get(VmQuotaConstant.VM_TOTAL_NUM).getValue();<NEW_LINE>VmQuotaUti...
.getSession().getAccountUuid();
1,698,028
void join() {<NEW_LINE>final String METHOD = "join";<NEW_LINE>try {<NEW_LINE>taskResult = future.get(timeout(startup), TimeUnit.MILLISECONDS);<NEW_LINE>result = new ResultVersion(taskResult, Status.SUCCESS, failureEvent, serverName, exceptionMeasage);<NEW_LINE>LOGGER.log(Level.FINE, "completed", tm(System.currentTimeMi...
ie, failureEvent, serverName, exceptionMeasage);
398,356
final GetSdkTypeResult executeGetSdkType(GetSdkTypeRequest getSdkTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSdkTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,119,594
protected Page newPage(final HttpServletRequest req, final HttpServletResponse resp, final Session session, final String template) {<NEW_LINE>final Page page = new Page(req, resp, getApplication().getVelocityEngine(), template);<NEW_LINE>page.add("version", jarVersion);<NEW_LINE>page.add("azkaban_name", this.name);<NEW...
()).getMillis());
534,818
public static SpanEventBitField build(SpanEventBo spanEventBo, SpanEventBo prevSpanEventBo) {<NEW_LINE>Objects.requireNonNull(spanEventBo, "spanEventBo");<NEW_LINE>Objects.requireNonNull(prevSpanEventBo, "prevSpanEventBo");<NEW_LINE>final SpanEventBitField bitFiled = buildFirst(spanEventBo);<NEW_LINE>if (spanEventBo.ge...
bitFiled.setStartElapsedEncodingStrategy(StartElapsedTimeEncodingStrategy.PREV_EQUALS);
42,043
private static void writeItem(EpubBook book, Resource resource, XmlSerializer serializer) throws IllegalArgumentException, IllegalStateException, IOException {<NEW_LINE>if (resource == null || (resource.getMediaType() == MediaTypes.NCX && book.getSpine().getTocResource() != null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE...
startTag(NAMESPACE_OPF, OPFTags.item);
115,779
public BigInteger calculateX(byte[] salt, byte[] identity, byte[] password) {<NEW_LINE>byte[] hashInput1 = ArrayConverter.concatenate(identity, ArrayConverter.hexStringToByteArray("3A"), password);<NEW_LINE>LOGGER.debug("HashInput for hashInput1: " + ArrayConverter.bytesToHexString(hashInput1));<NEW_LINE>byte[] hashOut...
ArrayConverter.concatenate(salt, hashOutput1);
949,198
private void createMatchingDocs() throws IOException {<NEW_LINE>if (scores == null || scores.length == segmentHits) {<NEW_LINE>matchingDocs.add(new MatchingDocs(this.context, docs.getDocIdSet(), segmentHits, scores));<NEW_LINE>} else {<NEW_LINE>// NOTE: we could skip the copy step here since the MatchingDocs are suppos...
] finalScores = new float[segmentHits];
1,452,003
private long partition(long leftIndex, long rightIndex, long pivotIndex) {<NEW_LINE>long li = leftIndex;<NEW_LINE>long ri = rightIndex - 2;<NEW_LINE>long pi = pivotIndex;<NEW_LINE>long pivot = EncodingIdMapper.clearCollision(dataCache.get(tracker.get(pi)));<NEW_LINE>// save pivot in last index<NEW_LINE>tracker.swap(pi,...
tracker.get(ri)));
166,026
public static void enableRegionDesktopSharing(Call call, int x, int y, int width, int height) {<NEW_LINE>// Use the default media device corresponding to the screen to share<NEW_LINE>MediaService mediaService = GuiActivator.getMediaService();<NEW_LINE>List<MediaDevice> desktopDevices = mediaService.getDevices(MediaType...
, x, y), true);
1,220,246
public void update(DeviceDTO deviceDTO) {<NEW_LINE>super.update(deviceDTO);<NEW_LINE>// values to put on a overview dashboard<NEW_LINE>this.addWattQuantity(CHANNEL_POWER_BUFFERED, deviceDTO);<NEW_LINE>this.addWattQuantity(CHANNEL_POWER_SELF_CONSUMED, deviceDTO);<NEW_LINE>this.addWattQuantity(CHANNEL_POWER_SELF_SUPPLIED...
addWattQuantity(CHANNEL_POWER_IN, deviceDTO, true);
1,776,320
private void analyzeCall(RexCall call, Constancy callConstancy) {<NEW_LINE>parentCallTypeStack.push(call.getOperator());<NEW_LINE>// visit operands, pushing their states onto stack<NEW_LINE>super.visitCall(call);<NEW_LINE>// look for NON_CONSTANT operands<NEW_LINE>int operandCount = call.getOperands().size();<NEW_LINE>...
().get(iOperand));
690,666
protected Element createPropRef(Document refDoc, PropertyDoc property) {<NEW_LINE>CompiledPropertyMetadata propertyMetadata = property.getPropertyMetadata();<NEW_LINE>String propName = propertyMetadata.getName();<NEW_LINE>Element refProp = refDoc.createElement(ELEMENT_CONFIG_PROP);<NEW_LINE>refProp.setAttribute(ATTR_CO...
contextUnawareElem = refDoc.createElement(ELEMENT_CONTEXT_UNAWARE);
1,809,837
public ResourcePendingMaintenanceActions unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourcePendingMaintenanceActions resourcePendingMaintenanceActions = new ResourcePendingMaintenanceActions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth...
String currentParentElement = context.getCurrentParentElement();
1,685,070
private void addToCreatedInvoiceCandidates(final I_C_Invoice_Candidate invoiceCandidate) {<NEW_LINE>Check.assumeNotNull(invoiceCandidate, "invoiceCandidate not null");<NEW_LINE>final boolean newIc = InterfaceWrapperHelper.isNew(invoiceCandidate);<NEW_LINE>//<NEW_LINE>// Make sure the invoice candidate is saved, so that...
I_C_Invoice_Clearing_Alloc.class, getContext());
1,012,028
protected void onPrepareRightNavigationDrawerMenu(Menu menu) {<NEW_LINE>super.onPrepareRightNavigationDrawerMenu(menu);<NEW_LINE>MenuItem milestoneFilterItem = menu.findItem(R.id.filter_by_milestone);<NEW_LINE>if (milestoneFilterItem != null) {<NEW_LINE>final String subtitle = mSelectedMilestone == null ? getString(R.s...
getStringArray(R.array.filter_participating);
807,326
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.jvm.dtfjview.spi.ICombinedContext#displayContext(com.ibm.jvm.dtfjview.Output, boolean)<NEW_LINE>*/<NEW_LINE>public void displayContext(IOutputManager out, boolean shortFormat) {<NEW_LINE>out.print(id + " : ");<NEW_LINE>if (ddrAvailable) {<NEW_LINE>out.clearBuffer();<NEW_LINE>try...
.print(getJREVersion(shortFormat));
1,528,080
public void exitSummary_address_is_stanza(Summary_address_is_stanzaContext ctx) {<NEW_LINE>Ip ip = toIp(ctx.ip);<NEW_LINE>Ip mask = toIp(ctx.mask);<NEW_LINE>Prefix prefix = Prefix.create(ip, mask);<NEW_LINE>RedistributionSourceProtocol sourceProtocol = RedistributionSourceProtocol.ISIS_L1;<NEW_LINE>IsisRedistributionPo...
metric = toInteger(ctx.metric);
924,775
private void updateConstructorDisableInheritable(@NonNull final CtClass clazz) throws NotFoundException, CannotCompileException {<NEW_LINE>for (CtConstructor constructor : clazz.getDeclaredConstructors()) {<NEW_LINE>final CtClass[] parameterTypes = constructor.getParameterTypes();<NEW_LINE>final StringBuilder insertCod...
parameterTypes[i].getName();
74,337
public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePriceResponse.setRequestId(_ctx.stringValue("DescribePriceResponse.RequestId"));<NEW_LINE>describePriceResponse.setOrderParams(_ctx.stringValue("DescribePriceResponse.OrderParams"));<...
(_ctx.stringValue("DescribePriceResponse.Order.OriginalAmount"));
1,360,972
private static void toServiceRelation(ServiceMeshMetric.Builder metrics, long minuteTimeBucket) {<NEW_LINE>ServiceRelation serviceRelation = new ServiceRelation();<NEW_LINE>serviceRelation.setTimeBucket(minuteTimeBucket);<NEW_LINE>serviceRelation.setSourceServiceName(metrics.getSourceServiceName());<NEW_LINE>serviceRel...
setDestServiceName(metrics.getDestServiceName());
694,232
public ListLaunchesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListLaunchesResult listLaunchesResult = new ListLaunchesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
)).unmarshall(context));
475,320
public boolean implementsInterface(ReferenceBinding anInterface, boolean searchHierarchy) {<NEW_LINE>if (TypeBinding.equalsEquals(this, anInterface))<NEW_LINE>return true;<NEW_LINE>ReferenceBinding[] interfacesToVisit = null;<NEW_LINE>int nextPosition = 0;<NEW_LINE>ReferenceBinding currentType = this;<NEW_LINE>do {<NEW...
+ 5], 0, nextPosition);
230,303
final ListAccessPreviewsResult executeListAccessPreviews(ListAccessPreviewsRequest listAccessPreviewsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAccessPreviewsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
false), new ListAccessPreviewsResultJsonUnmarshaller());
436,507
private void readProcessData() throws IOException {<NEW_LINE>if (_processEntries.size() == 0) {<NEW_LINE>throw new IOException("No process entries found in Elf file.");<NEW_LINE>} else if (_processEntries.size() != 1) {<NEW_LINE>throw new IOException("Unexpected number of process entries found in ELF file. Expected 1, ...
_reader.seek(entry.offset);
1,554,786
public static ChartUrn createFromUrn(Urn urn) throws URISyntaxException {<NEW_LINE>if (!"li".equals(urn.getNamespace())) {<NEW_LINE>throw new URISyntaxException(urn.toString(), "Urn namespace type should be 'li'.");<NEW_LINE>} else if (!ENTITY_TYPE.equals(urn.getEntityType())) {<NEW_LINE>throw new URISyntaxException(ur...
(1, String.class));
219,895
public void addFormForAddAccount() {<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>InputTextField holderNameInputTextField = FormBuilder.addInputTextField(gridPane, ++gridRow<MASK><NEW_LINE>holderNameInputTextField.setValidator(inputValidator);<NEW_LINE>holderNameInputTextField.textProperty().addListener((ov, oldValue, ...
, Res.get("payment.account.owner"));
1,819,705
public List<String> generateRunnableQueries(Transaction tx, boolean global, List<Node> nodeSet) {<NEW_LINE>List<String> labels;<NEW_LINE>if (global) {<NEW_LINE>labels = (List<String>) tx.execute("call db.labels() yield label return collect(label) as labelsInUse").next().get("labelsInUse");<NEW_LINE>} else {<NEW_LINE>Ma...
new HashSet<>(labels));
128,174
final GetSigningCertificateResult executeGetSigningCertificate(GetSigningCertificateRequest getSigningCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSigningCertificateRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,726,586
void updateCandidateRecordFromCandidate(@NonNull final I_MD_Candidate candidateRecord, @NonNull final Candidate candidate, final boolean preserveExistingSeqNo) {<NEW_LINE>final MaterialDescriptor materialDescriptor = candidate.getMaterialDescriptor();<NEW_LINE>candidateRecord.setAD_Org_ID(candidate.<MASK><NEW_LINE>cand...
getOrgId().getRepoId());
78,147
public void deserialize(ByteBuf input) {<NEW_LINE>int featsFlag = ByteBufSerdeUtils.deserializeInt(input);<NEW_LINE>if (featsFlag > 0) {<NEW_LINE>feats = (IntFloatVector) ByteBufSerdeUtils.deserializeVector(input);<NEW_LINE>}<NEW_LINE>int neighborsFlag = ByteBufSerdeUtils.deserializeInt(input);<NEW_LINE>if (neighborsFl...
weightsFlag = ByteBufSerdeUtils.deserializeInt(input);
481,451
private void writeKeyToDisk(String key, String keyPath) {<NEW_LINE>File keyfile = new File(keyPath);<NEW_LINE>if (!keyfile.exists()) {<NEW_LINE>try {<NEW_LINE>keyfile.createNewFile();<NEW_LINE>} catch (IOException e) {<NEW_LINE>s_logger.warn("Failed to create file: " + e.toString());<NEW_LINE>throw new CloudRuntimeExce...
write(key.getBytes());
747,599
final CreateApplicationResult executeCreateApplication(CreateApplicationRequest createApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createApplicationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateApplicationReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
633,104
public void paint(Graphics g, Rectangle bounds, Node node) {<NEW_LINE>Style style = node.getStyle();<NEW_LINE>if (style == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Font font = style.getFont();<NEW_LINE>if (font == null) {<NEW_LINE>font = Font.getDefaultFont();<NEW_LINE>}<NEW_LINE>int textWidth = font.stringWidth(te...
() - style.getHorizontalPadding();
210,466
public static GetFullRequestOriginStatByInstanceIdResponse unmarshall(GetFullRequestOriginStatByInstanceIdResponse getFullRequestOriginStatByInstanceIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getFullRequestOriginStatByInstanceIdResponse.setRequestId(_ctx.stringValue("GetFullRequestOriginStatByInstanceIdResponse.R...
("GetFullRequestOriginStatByInstanceIdResponse.Data.List[" + i + "].RtRate"));
1,617,915
private PublicKey generatePublicImpl(KeySpec keySpec) throws InvalidKeyException, InvalidKeySpecException {<NEW_LINE>if (keySpec instanceof X509EncodedKeySpec) {<NEW_LINE>X509EncodedKeySpec x509Spec = (X509EncodedKeySpec) keySpec;<NEW_LINE>XDHPublicKeyImpl result = new XDHPublicKeyImpl(x509Spec.getEncoded());<NEW_LINE>...
new, publicKeySpec.getParams());
948,802
private Object xmlToMap(Node node) {<NEW_LINE>Map<String, Object> objectMap = new HashMap<>();<NEW_LINE>NodeList childNodes = node.getChildNodes();<NEW_LINE>JsonNode content = null;<NEW_LINE>for (int i = 0; i < childNodes.getLength(); i++) {<NEW_LINE>Node item = childNodes.item(i);<NEW_LINE>if (item.getChildNodes().get...
getTextContent().trim());
343,050
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(BusinessRuleTask.class, BPMN_ELEMENT_BUSINESS_RULE_TASK).namespaceUri(BPMN20_NS).extendsType(Task.class).instanceProvider(new ModelTypeInstanceProvider<BusinessRuleTask>() {<NEW_LINE><NEW_...
defaultValue("##unspecified").build();
1,627,972
public UploadResult uploadBackup(Exhibitor exhibitor, BackupMetaData backup, File source, final Map<String, String> configValues) throws Exception {<NEW_LINE>List<BackupMetaData> availableBackups = getAvailableBackups(exhibitor, configValues);<NEW_LINE>if (availableBackups.contains(backup)) {<NEW_LINE>return UploadResu...
.getKey()), key);
1,818,929
private Flowable<DocProperty> execute(List<BoundQuery> queries, Comparator<DocProperty> comparator, int pageSize, boolean exponentPageSize, List<ByteBuffer> pagingState, ExecutionContext context) {<NEW_LINE>List<Flowable<DocProperty>> flows = new ArrayList<>(queries.size());<NEW_LINE>int idx = 0;<NEW_LINE>for (BoundQue...
, context)), 1));
656,898
public UserUpdateMsg constructUserUpdatedMsg(UpdateMsgType msgType, User user, CustomerId customerId) {<NEW_LINE>UserUpdateMsg.Builder builder = UserUpdateMsg.newBuilder().setMsgType(msgType).setIdMSB(user.getId().getId().getMostSignificantBits()).setIdLSB(user.getId().getId().getLeastSignificantBits()).setEmail(user.g...
getId().getLeastSignificantBits());
1,330,212
private static String buildStringRepresentation(Program program, Address address, Reference reference, ShowBlockName showBlockName) {<NEW_LINE>if (address == null) {<NEW_LINE>return "<NULL>";<NEW_LINE>}<NEW_LINE>if (address.getAddressSpace().getType() == AddressSpace.TYPE_NONE) {<NEW_LINE>// NO_ADDRESS or EXT_FROM_ADDR...
(shiftedRef.getShift()));
666,382
final GetMemberResult executeGetMember(GetMemberRequest getMemberRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMemberRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,191,733
final GetPushTemplateResult executeGetPushTemplate(GetPushTemplateRequest getPushTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPushTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
invoke(request, responseHandler, executionContext);
1,732,896
private void updateProfilerStackWrite(int stackWriteEventId, TaskMetaData meta, OCLCallStack stack) {<NEW_LINE>if (TornadoOptions.isProfilerEnabled()) {<NEW_LINE>TornadoProfiler profiler = meta.getProfiler();<NEW_LINE>Event event = deviceContext.resolveEvent(stackWriteEventId);<NEW_LINE>event.waitForEvents();<NEW_LINE>...
), stack.getSize());
1,818,910
final ListConfigurationSetsResult executeListConfigurationSets(ListConfigurationSetsRequest listConfigurationSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConfigurationSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListConfigurationSets");
1,128,946
public static void migrateOptionalAuthenticationExecution(RealmModel realm, AuthenticationFlowModel parentFlow, AuthenticationExecutionModel optionalExecution, boolean updateOptionalExecution) {<NEW_LINE>LOG.debugf("Migrating optional execution '%s' of flow '%s' of realm '%s' to subflow", optionalExecution.getAuthentic...
setPriority(optionalExecution.getPriority());
618,965
void createLRAParticipantRegistry(NarayanaLRARecorder recorder, BeanArchiveIndexBuildItem beanArchiveIndex) {<NEW_LINE>final List<String> <MASK><NEW_LINE>IndexView index = beanArchiveIndex.getIndex();<NEW_LINE>Collection<AnnotationInstance> annotations = index.getAnnotations(PATH);<NEW_LINE>for (AnnotationInstance anno...
classNames = new ArrayList<>();
123,901
private void add(Container parent, String key, JComponent widget, int x, int y) {<NEW_LINE>JLabel label = new JLabel(UIManager.getString(key + "Text", getLocale()));<NEW_LINE>String mnemonic = (String) UIManager.get(key + "Mnemonic", getLocale());<NEW_LINE>if (mnemonic != null) {<NEW_LINE>try {<NEW_LINE>label.setDispla...
parent.add(label, con);
1,835,637
private void rememberDependencies() {<NEW_LINE>final AntArtifactProvider aap = project.getLookup().lookup(AntArtifactProvider.class);<NEW_LINE>if (aap == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Map<URI, Pair<AntArtifact, URI>> artifacts = createArtifactsMap(aap);<NEW_LINE>final Set<Project> dependencies = ne...
).lookup(SubprojectProvider.class);
206,712
final DeleteTransitGatewayPeeringAttachmentResult executeDeleteTransitGatewayPeeringAttachment(DeleteTransitGatewayPeeringAttachmentRequest deleteTransitGatewayPeeringAttachmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTransitGatewayPeeringAttachmentRequest);<NEW_LINE>AWSReque...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
244,003
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException {<NEW_LINE>ObjectInstance oi = nu...
signature, "createMBean", "failure", "Instance of MBean already exists");
601,388
public static ModuleDescriptionInfo createModule(ModuleDeclaration module) {<NEW_LINE>ModuleDescriptionInfo mod = new ModuleDescriptionInfo();<NEW_LINE>mod.name = module.moduleName;<NEW_LINE>mod.setFlags(module.modifiers);<NEW_LINE>if (module.requiresCount > 0) {<NEW_LINE>RequiresStatement[] refs = module.requires;<NEW...
char[uses.length][];
53,462
public void deleteAny(Node g, Node s, Node p, Node o) {<NEW_LINE>g = (g != null ? g : Node.ANY);<NEW_LINE>s = (s != null ? s : Node.ANY);<NEW_LINE>p = (p != null ? p : Node.ANY);<NEW_LINE>o = (o != null ? o : Node.ANY);<NEW_LINE>Triple t = new Triple(s, p, o);<NEW_LINE>if (Node.ANY.equals(g)) {<NEW_LINE>String exec_tex...
rs = stmt.executeQuery(exec_text);
846,519
private void rememberLibraryLocation() {<NEW_LINE>libraryWithinProject = false;<NEW_LINE>absolutesRelPath = null;<NEW_LINE>libraryPath = helper.getAntProjectHelper().getLibrariesLocation();<NEW_LINE>if (libraryPath != null) {<NEW_LINE>File prjRoot = FileUtil.<MASK><NEW_LINE>libraryFile = PropertyUtils.resolveFile(prjRo...
toFile(project.getProjectDirectory());
157,223
final DeleteFlowResult executeDeleteFlow(DeleteFlowRequest deleteFlowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteFlowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,154,874
public List<ByteRecord> decode(List<Object> parts, State state) {<NEW_LINE>List<List<Object>> list = (List<List<<MASK><NEW_LINE>List<ByteRecord> result = new ArrayList<>(parts.size() / 2);<NEW_LINE>for (List<Object> entries : list) {<NEW_LINE>List<List<Object>> streamEntries = (List<List<Object>>) entries.get(1);<NEW_L...
Object>>) (Object) parts;
910,513
final AssociateServiceRoleToAccountResult executeAssociateServiceRoleToAccount(AssociateServiceRoleToAccountRequest associateServiceRoleToAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateServiceRoleToAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,129,911
<T> T runInsideDocker(DockerImageName imageName, Consumer<CreateContainerCmd> createContainerCmdConsumer, BiFunction<DockerClient, String, T> block) {<NEW_LINE>RemoteDockerImage dockerImage = new RemoteDockerImage(imageName);<NEW_LINE>HashMap<String, String> labels = new HashMap<>(DEFAULT_LABELS);<NEW_LINE>labels.putAl...
block.apply(client, id);
1,146,243
public static SqlNode buildSqlLiteral(RexLiteral literal) {<NEW_LINE>switch(literal.getTypeName().getFamily()) {<NEW_LINE>case CHARACTER:<NEW_LINE>return SqlLiteral.createCharString((String) literal.getValue2(), POS);<NEW_LINE>case EXACT_INTEGER:<NEW_LINE>return SqlLiteral.createExactNumeric(literal.getValueAs(Integer....
": " + literal.getTypeName());
376,633
protected void paintContent(@NotNull final Graphics2D g2d, @NotNull final C c, @NotNull final D d, @NotNull final Rectangle bounds) {<NEW_LINE>// Ensure that text painting is allowed<NEW_LINE>if (!isEmpty(c, d)) {<NEW_LINE>// Applying graphics settings<NEW_LINE>final Font oldFont = GraphicsUtils.setupFont(g2d, getFont(...
GraphicsUtils.restoreFont(g2d, oldFont);
920,233
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.microservice.api.device.IDeviceManagement#createCustomer(com.<NEW_LINE>* sitewhere.spi.customer.request.ICustomerCreateRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public RdbCustomer createCustomer(ICustomerCreateRequest request) throws SiteWhereException {<NEW_LINE>// Re...
RdbCustomer.copy(customer, created);
1,615,481
public static Tuple4<Integer, List<Tuple2<Double, ConfusionMatrix>>, Double, Double> calcOutlierStats(Iterable<Row> rows, String posValueStr) {<NEW_LINE>Tuple4<Integer, boolean[], boolean[], double[]> sampleStats = extractSampleInfo(rows, posValueStr);<NEW_LINE>int n = sampleStats.f0;<NEW_LINE>boolean[] labels = sample...
d -> d).toArray();
254,668
public void paintTrack(Graphics g) {<NEW_LINE>boolean enabled = slider.isEnabled();<NEW_LINE>float tw = UIScale<MASK><NEW_LINE>float arc = tw;<NEW_LINE>RoundRectangle2D coloredTrack = null;<NEW_LINE>RoundRectangle2D track;<NEW_LINE>if (slider.getOrientation() == JSlider.HORIZONTAL) {<NEW_LINE>float y = trackRect.y + (t...
.scale((float) trackWidth);
671,449
protected Component createButtonPanel() {<NEW_LINE>JButton ok = new JButton(Translations.getString("Theme.Save"));<NEW_LINE>ok.setDefaultCapable(true);<NEW_LINE>ok.addActionListener(e -> {<NEW_LINE><MASK><NEW_LINE>oldTheme = theme;<NEW_LINE>oldFontSize = themePanel.getFontSize();<NEW_LINE>Configuration.get().setThemeIn...
ThemeInfo theme = themePanel.setTheme();
940,640
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create table varagg (mywin window(*) @type(SupportBean))", path);<NEW_LINE>env.compileDeploy("@name('into') into table varagg " + "select window(sb.*) as mywin from SupportBean#time(10 s...
SupportBean[] { b1 } });
1,501,235
public static void stbtt_MakeCodepointBitmapSubpixelPrefilter(@NativeType("stbtt_fontinfo const *") STBTTFontinfo info, @NativeType("unsigned char *") ByteBuffer output, int out_w, int out_h, int out_stride, float scale_x, float scale_y, float shift_x, float shift_y, int oversample_x, int oversample_y, @NativeType("flo...
oversample_y, sub_x, sub_y, codepoint);
398,394
public void marshall(SynthesisTask synthesisTask, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (synthesisTask == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(synthesisTask.getEngine(), ENGINE_BINDING);<N...
synthesisTask.getTextType(), TEXTTYPE_BINDING);
769,525
public Future<SummaryCollection> processFiles(FileSystemResolver volMgr, Map<String, List<TRowRange>> files, BlockCache summaryCache, BlockCache indexCache, Cache<String, Long> fileLenCache, ExecutorService srp) {<NEW_LINE>List<CompletableFuture<SummaryCollection>> <MASK><NEW_LINE>for (Entry<String, List<TRowRange>> en...
futures = new ArrayList<>();
1,272,542
public void paint(Graphics g) {<NEW_LINE>try {<NEW_LINE>Border border = getBorder();<NEW_LINE>Insets insets = new Insets(0, 0, 0, 0);<NEW_LINE>if (border != null) {<NEW_LINE>insets = border.getBorderInsets(this);<NEW_LINE>}<NEW_LINE>int diameter = Math.min(getBounds().width - (insets.left + insets.right), getBounds().h...
+ insets.bottom)) - 4;
1,842,011
PackingPlan buildNewPackingPlan(Map<String, Integer> changeRequests, PackingPlan currentPackingPlan) {<NEW_LINE>Map<String, Integer> <MASK><NEW_LINE>Map<String, Integer> componentCounts = currentPackingPlan.getComponentCounts();<NEW_LINE>for (String compName : changeRequests.keySet()) {<NEW_LINE>if (!componentCounts.co...
componentDeltas = new HashMap<>();
177,787
private void rotateLocalSessionKeys() throws OtrException {<NEW_LINE>if (Debug.DEBUG_ENABLED)<NEW_LINE>Log.<MASK><NEW_LINE>SessionKeys sess1 = getSessionKeysByIndex(SessionKeys.Previous, SessionKeys.Current);<NEW_LINE>if (sess1.getIsUsedReceivingMACKey()) {<NEW_LINE>if (Debug.DEBUG_ENABLED)<NEW_LINE>Log.d(ImApp.LOG_TAG...
d(ImApp.LOG_TAG, "Rotating local keys.");
172,369
public AttributeListValue generateAttributeValue(final Properties ctx, final int tableId, final int recordId, boolean isSOTrx, final String trxName) {<NEW_LINE>final IContextAware context = new PlainContextAware(ctx, trxName);<NEW_LINE>final ITableRecordReference record = TableRecordReference.of(tableId, recordId);<NEW...
.class).retrieveADRAttribute(partner);
775,617
public final void acceptSearchMatch(final SearchMatch match) throws CoreException {<NEW_LINE>final SearchMatch <MASK><NEW_LINE>if (accepted != null) {<NEW_LINE>fCollectedMatches.add(accepted);<NEW_LINE>final IResource resource = accepted.getResource();<NEW_LINE>if (!resource.equals(fLastResource)) {<NEW_LINE>if (fBinar...
accepted = fRequestor.acceptSearchMatch(match);
804,004
public static AddMediaResponse unmarshall(AddMediaResponse addMediaResponse, UnmarshallerContext _ctx) {<NEW_LINE>addMediaResponse.setRequestId(_ctx.stringValue("AddMediaResponse.RequestId"));<NEW_LINE>Media media = new Media();<NEW_LINE>media.setCreationTime(_ctx.stringValue("AddMediaResponse.Media.CreationTime"));<NE...
("AddMediaResponse.Media.RunIdList[" + i + "]"));
254,749
public void hullSet(Point A, Point B, ArrayList<Point> set, ArrayList<Point> hull) {<NEW_LINE>int insertPosition = hull.indexOf(B);<NEW_LINE>if (set.size() == 0)<NEW_LINE>return;<NEW_LINE>if (set.size() == 1) {<NEW_LINE>Point p = set.get(0);<NEW_LINE>set.remove(p);<NEW_LINE>hull.add(insertPosition, p);<NEW_LINE>return;...
A, P, leftSetAP, hull);