idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
186,010
public ReactionAdapter.ViewHolderReaction onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_reaction, parent, false);<NEW_LINE>ViewHolderReaction holder = new ViewHolderReaction(v);<NEW_LINE>holder.generalLayout = v.findViewById(R.id.ge...
findViewById(R.id.item_number_users_reaction);
971,817
private void parserChildTable(SchemaInfo schemaInfo, final RouteResultset rrs, MySqlInsertStatement insertStmt, final ShardingService service, boolean isExplain) throws SQLNonTransientException {<NEW_LINE>final SchemaConfig schema = schemaInfo.getSchemaConfig();<NEW_LINE>String tableName = schemaInfo.getTable();<NEW_LI...
get(joinColumnIndex).toString();
35,941
private Mono<Response<Flux<ByteBuffer>>> stopWithResponseAsync(String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>retur...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
246,859
private void _sendContentletPublishNotification(Contentlet contentlet, HttpServletRequest req) throws Exception, PortalException, SystemException {<NEW_LINE>try {<NEW_LINE>req.setAttribute(com.liferay.portal.util.WebKeys.LAYOUT, req.getSession().getAttribute(com.dotmarketing.util.WebKeys.LAYOUT));<NEW_LINE>req.setAttri...
MAXIMIZED.toString(), params);
1,274,286
public static Domain map(final EntityResponse entityResponse) {<NEW_LINE><MASK><NEW_LINE>final Urn entityUrn = entityResponse.getUrn();<NEW_LINE>final EnvelopedAspectMap aspects = entityResponse.getAspects();<NEW_LINE>result.setUrn(entityUrn.toString());<NEW_LINE>result.setType(EntityType.DOMAIN);<NEW_LINE>// Domains M...
final Domain result = new Domain();
329,036
private void transformMetadataMethod(ClassHolder cls, MethodHolder method, ClassHierarchy hierarchy, int suffix) {<NEW_LINE>FieldHolder field = new FieldHolder("$$metadata$$" + suffix);<NEW_LINE>field.setType(method.getResultType());<NEW_LINE><MASK><NEW_LINE>field.getModifiers().add(ElementModifier.STATIC);<NEW_LINE>fi...
field.setLevel(AccessLevel.PRIVATE);
826,306
// Create a new asymmetric key for the purpose of signing and verifying data.<NEW_LINE>public void createKeyAsymmetricSign(String projectId, String locationId, String keyRingId, String id) throws IOException {<NEW_LINE>// Initialize client that will be used to send requests. This client only<NEW_LINE>// needs to be cre...
"Created asymmetric key %s%n", createdKey.getName());
243,410
public void onParameterChanged(final String parameterName) {<NEW_LINE>if (PARAM_AD_ORG_TARGET_ID.equals(parameterName) || PARAM_DATE_ORG_CHANGE.equals(parameterName)) {<NEW_LINE>if (p_orgTargetId == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final BPartnerId partnerId = BPartnerId.ofRepoId(getRecord_ID());<NEW_LINE>f...
service.getByIdAndOrgChangeDate(partnerId, orgChangeDate);
1,428,773
private TrackedEventMessage<?> doConsumeNext() {<NEW_LINE>HashMap<String, TrackedEventMessage<?>> candidateMessagesToReturn = new HashMap<>();<NEW_LINE>peekForMessages(candidateMessagesToReturn);<NEW_LINE>// select message to return from candidates<NEW_LINE>final Optional<Map.Entry<String, TrackedEventMessage<?>>> chos...
nextAvailable().withTrackingToken(advancedToken);
479,368
final DisassociateBudgetFromResourceResult executeDisassociateBudgetFromResource(DisassociateBudgetFromResourceRequest disassociateBudgetFromResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateBudgetFromResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
920,606
public String update(HttpServletRequest request) throws Exception {<NEW_LINE>String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID);<NEW_LINE>String serviceName = WebUtils.<MASK><NEW_LINE>ServiceMetadata serviceMetadata = new ServiceMetadata();<NEW_LINE>serviceMetadat...
required(request, CommonParams.SERVICE_NAME);
1,382,560
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>int primaryColor = themeColorUtils.primaryColor(getActivity());<NEW_LINE>mParentFolder = <MASK><NEW_LINE>// Inflate the layout for the dialog<NEW_LINE>LayoutInflater inflater = requireActivity().getLayoutInflater();<NEW_LINE>EditBoxDialogBinding binding...
getArguments().getParcelable(ARG_PARENT_FOLDER);
1,304,246
public void copy4x4(Matrix4x3d src, double[] dest, int off) {<NEW_LINE>dest[off + 0] = src.m00();<NEW_LINE>dest[off + 1] = src.m01();<NEW_LINE>dest[off + 2] = src.m02();<NEW_LINE>dest[off + 3] = 0.0;<NEW_LINE>dest[off + <MASK><NEW_LINE>dest[off + 5] = src.m11();<NEW_LINE>dest[off + 6] = src.m12();<NEW_LINE>dest[off + 7...
4] = src.m10();
1,745,079
private void sendResponse(Address us, int code, String statusString, String uid, byte[] body) {<NEW_LINE>MemorySessionOutputBuffer outBuf = new MemorySessionOutputBuffer();<NEW_LINE>HttpMessageWriter writer = new HttpResponseWriter(outBuf, lineFormatter, params);<NEW_LINE>HttpMessage response = new BasicHttpResponse(ne...
"send response " + statusString + " for " + uid);
1,629,775
public boolean OnAuthenticate(StringBuilder username, StringBuilder domain, StringBuilder password) {<NEW_LINE>// this is where the return code of our dialog will be stored<NEW_LINE>callbackDialogResult = false;<NEW_LINE>// set text fields<NEW_LINE>((EditText) userCredView.findViewById(R.id.editTextUsername)).setText(u...
editTextDomain)).setText(domain);
1,106,750
public R visit(final CompilationUnit n, final A arg) {<NEW_LINE>R result;<NEW_LINE>{<NEW_LINE>result = n.getImports(<MASK><NEW_LINE>if (result != null)<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>if (n.getModule().isPresent()) {<NEW_LINE>result = n.getModule().get().accept(this, arg);<NEW_LINE>if (result != null)<NEW_L...
).accept(this, arg);
45,188
public URL generatePresignedUrl(GeneratePresignedUrlRequest request) throws ClientException {<NEW_LINE>assertParameterNotNull(request, "request");<NEW_LINE>if (request.getBucketName() == null) {<NEW_LINE>throw new IllegalArgumentException(OSS_RESOURCE_MANAGER.getString("MustSetBucketName"));<NEW_LINE>}<NEW_LINE>ensureB...
(OSS_RESOURCE_MANAGER.getString("MustSetExpiration"));
1,300,968
public Object decodeNumber(KrollDict args) {<NEW_LINE>if (!args.containsKey(TiC.PROPERTY_SOURCE)) {<NEW_LINE>throw new IllegalArgumentException("source was not specified for decodeNumber");<NEW_LINE>}<NEW_LINE>if (!args.containsKey(TiC.PROPERTY_TYPE)) {<NEW_LINE>throw new IllegalArgumentException("type was not specifie...
(s1 << 8) + s2);
555,653
public static ListApplicationsResponse unmarshall(ListApplicationsResponse listApplicationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApplicationsResponse.setRequestId(_ctx.stringValue("ListApplicationsResponse.RequestId"));<NEW_LINE>listApplicationsResponse.setMessage(_ctx.stringValue("ListApplicationsResponse...
("ListApplicationsResponse.Data.Applications[" + i + "].Instances"));
1,524,042
private void checkPackageIntegrity() throws IOException, UpgradeException {<NEW_LINE>Path packagePath = this.getUpgradePackagePath();<NEW_LINE>if (Files.notExists(packagePath)) {<NEW_LINE>if (this.log.isTraceEnable()) {<NEW_LINE>this.log.warn(this, "Package " + this.getSoftwarePackage() + " does not exist");<NEW_LINE>}...
this.getSoftwarePackage() + " does not exist");
703,295
public Request<RebalanceSlotsInGlobalReplicationGroupRequest> marshall(RebalanceSlotsInGlobalReplicationGroupRequest rebalanceSlotsInGlobalReplicationGroupRequest) {<NEW_LINE>if (rebalanceSlotsInGlobalReplicationGroupRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<N...
(rebalanceSlotsInGlobalReplicationGroupRequest.getGlobalReplicationGroupId()));
1,636,463
public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {<NEW_LINE>switch(requestCode) {<NEW_LINE>case ACTIVITY_CHOOSE_FILE1:<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>String realPath = FilePathUtil.getRealPath(getContext(), data.getData());<NEW_LINE>filePath = realPath;<NEW_LINE>Fil...
getContext()).finish();
445,598
public void paintComponent(Graphics g) {<NEW_LINE>if (g == null)<NEW_LINE>return;<NEW_LINE>Sketch sketch = editor.getSketch();<NEW_LINE>// possible?<NEW_LINE>if (sketch == null)<NEW_LINE>return;<NEW_LINE>// need to set this each time through<NEW_LINE>g.setFont(font);<NEW_LINE>if (fontAscent == 0) {<NEW_LINE>fontAscent ...
drawTabs(g2, Editor.LEFT_GUTTER);
263,818
public boolean initNewCluster() throws Exception {<NEW_LINE>String zkServers = ZKMetadataDriverBase.resolveZkServers(conf);<NEW_LINE>String instanceIdPath = ledgersRootPath + "/" + INSTANCEID;<NEW_LINE>log.info("Initializing ZooKeeper metadata for new cluster, ZKServers: {} ledger root path: {}", zkServers, ledgersRoot...
.randomUUID().toString();
1,359,901
private void generateCastToString(MethodVisitor mv, BType type) {<NEW_LINE>BType <MASK><NEW_LINE>if (TypeTags.isStringTypeTag(sourceType.tag)) {<NEW_LINE>return;<NEW_LINE>} else if (TypeTags.isIntegerTypeTag(sourceType.tag)) {<NEW_LINE>mv.visitMethodInsn(INVOKESTATIC, LONG_VALUE, JVM_TO_STRING_METHOD, LONG_TO_STRING, f...
sourceType = JvmCodeGenUtil.getReferredType(type);
962,595
private void showOrHideButtons() {<NEW_LINE>if (playQueue == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final boolean showPrev = playQueue.getIndex() != 0;<NEW_LINE>final boolean showNext = playQueue.getIndex() + 1 != playQueue.getStreams().size();<NEW_LINE>final boolean showQueue = playQueue.getStreams().size() > 1 ...
setAlpha(showSegment ? 1.0f : 0.0f);
1,715,348
public Request<DescribeReservedInstancesRequest> marshall(DescribeReservedInstancesRequest describeReservedInstancesRequest) {<NEW_LINE>if (describeReservedInstancesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeReservedInstan...
, StringUtils.fromString(reservedInstancesIdsListValue));
472,806
protected void configurePlot(Plot plot, JRChartPlot jrPlot) {<NEW_LINE>super.configurePlot(plot, jrPlot);<NEW_LINE>if (plot instanceof CategoryPlot) {<NEW_LINE>CategoryPlot categoryPlot = (CategoryPlot) plot;<NEW_LINE>CategoryItemRenderer categoryRenderer = categoryPlot.getRenderer();<NEW_LINE><MASK><NEW_LINE>if (categ...
CategoryDataset categoryDataset = categoryPlot.getDataset();
1,824,928
protected void consumeAnnotationTypeDeclarationHeaderName() {<NEW_LINE>// consumeAnnotationTypeDeclarationHeader ::= Modifiers '@' PushModifiers interface Identifier<NEW_LINE>// consumeAnnotationTypeDeclarationHeader ::= '@' PushModifiers interface Identifier<NEW_LINE>TypeDeclaration annotationTypeDeclaration = new Typ...
.bodyStart = annotationTypeDeclaration.sourceEnd + 1;
1,133,406
public boolean action(Request request, Response response) {<NEW_LINE>if (request.getNettyRequest() instanceof FullHttpRequest) {<NEW_LINE>InputDismissGroup inputDismissGroup = getRequestBody(request.getNettyRequest(), InputDismissGroup.class);<NEW_LINE>inputDismissGroup.setOperator(robot.getUid());<NEW_LINE>if (inputDi...
fromCode(byteBuf.readByte());
1,559,071
public boolean isSupported(Context context) {<NEW_LINE>switch(this) {<NEW_LINE>case WORK_MANAGER:<NEW_LINE>return WorkManagerAvailableHelper.isWorkManagerApiSupported();<NEW_LINE>case V_26:<NEW_LINE>return Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && isServiceEnabled(context, PlatformJobService.class);<NEW_LINE>ca...
(context, PlatformAlarmReceiver.class));
1,106,629
public static XContentBuilder serialize(GridFSDBFile file) throws IOException {<NEW_LINE>XContentBuilder builder = XContentFactory.jsonBuilder();<NEW_LINE>ByteArrayOutputStream buffer = new ByteArrayOutputStream();<NEW_LINE>int nRead;<NEW_LINE>byte[] data = new byte[1024];<NEW_LINE>try (InputStream stream = file.getInp...
encodeBytes(buffer.toByteArray());
1,514,790
private void consume(Purchase itemInfo) throws IabException {<NEW_LINE>checkNotDisposed();<NEW_LINE>checkSetupDone("consume");<NEW_LINE>if (!itemInfo.mItemType.equals(ITEM_TYPE_INAPP)) {<NEW_LINE>throw new IabException(IABHELPER_INVALID_CONSUMPTION, "Items of type '" + itemInfo.mItemType + "' can't be consumed.");<NEW_...
ApplicationUtils.getPackageName(), token);
1,297,975
public static void locateFiles(final DownloadManager[] dms, final DiskManagerFileInfo[][] dm_files, Shell shell) {<NEW_LINE>if (!Utils.isSWTThread()) {<NEW_LINE>Utils.execSWTThread(() -> {<NEW_LINE>locateFiles(dms, dm_files, shell);<NEW_LINE>});<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean all_bad = true;<NEW_LINE>bool...
locateFilesSupport(dms, dm_files, shell);
232,749
public List<ImageUrl> parseImages(String html, Chapter chapter) {<NEW_LINE>List<ImageUrl> list = new LinkedList<>();<NEW_LINE>String str = StringUtils.match("cp=\"(.*?)\"", html, 1);<NEW_LINE>if (str != null) {<NEW_LINE>try {<NEW_LINE>str = DecryptionUtils.evalDecrypt(DecryptionUtils.base64Decrypt(str));<NEW_LINE>Strin...
array[i], false));
757,974
public static void gen_JavaCharStream(JavaResourceTemplateLocations locations) {<NEW_LINE>try {<NEW_LINE>final File file = new File(<MASK><NEW_LINE>final OutputFile outputFile = new OutputFile(file, charStreamVersion, new String[] { Options.USEROPTION__STATIC, Options.USEROPTION__SUPPORT_CLASS_VISIBILITY_PUBLIC });<NEW...
Options.getOutputDirectory(), "JavaCharStream.java");
1,739,471
public CreateActivityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateActivityResult createActivityResult = new CreateActivityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();
760,766
public static boolean isDeprecated(ASTNode node) {<NEW_LINE>if (node instanceof PropertyNode && ((PropertyNode) node).getField() != null) {<NEW_LINE>// use the associated field because properties are never the declaration<NEW_LINE>node = ((<MASK><NEW_LINE>} else if (node instanceof ClassNode) {<NEW_LINE>node = ((ClassN...
PropertyNode) node).getField();
558,094
private void updateUdt(RestDB restDB, Keyspace keyspace, UserDefinedTypeUpdate udtUpdate, UserDefinedType udt) throws ExecutionException, InterruptedException {<NEW_LINE>List<UserDefinedTypeField> addFields = udtUpdate.getAddFields();<NEW_LINE>List<UserDefinedTypeUpdate.RenameUdtField> renameFields = udtUpdate.getRenam...
ConsistencyLevel.LOCAL_QUORUM).get();
1,331,452
public List<PurchaseOrder> generatePo(List<PurchaseRequest> purchaseRequests, Boolean groupBySupplier, Boolean groupByProduct) throws AxelorException {<NEW_LINE>List<PurchaseOrderLine> purchaseOrderLineList = new ArrayList<PurchaseOrderLine>();<NEW_LINE>Map<String, PurchaseOrder> purchaseOrderMap = new HashMap<>();<NEW...
purchaseOrderLineService.compute(purchaseOrderLine, purchaseOrder);
1,708,037
private void createActions() {<NEW_LINE>searchAction = new NavigatableContextAction("Search Memory", getName(), false) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(NavigatableActionContext context) {<NEW_LINE>setNavigatable(context.getNavigatable());<NEW_LINE>invokeSearchDialog(context);<NEW_LINE...
searchAgainAction.addToWindowWhen(NavigatableActionContext.class);
86,358
public static void main(final String[] args) {<NEW_LINE>//<NEW_LINE>// Start ADempiere<NEW_LINE>AdempiereToolsHelper.getInstance().startupMinimal();<NEW_LINE><MASK><NEW_LINE>// metas: don't log migration scripts<NEW_LINE>Ini.setProperty(Ini.P_LOGMIGRATIONSCRIPT, false);<NEW_LINE>final TableAndColumnInfoRepository repos...
LogManager.setLevel(Level.DEBUG);
581,604
protected void finished() {<NEW_LINE>Iterator<GenericDetail> allDetails = (Iterator<GenericDetail>) get();<NEW_LINE>if (allDetails == null)<NEW_LINE>return;<NEW_LINE>while (allDetails.hasNext()) {<NEW_LINE>GenericDetail detail = allDetails.next();<NEW_LINE>loadDetail(detail);<NEW_LINE>}<NEW_LINE>boolean isAnyDetailEdit...
field = detailToTextField.get(editable);
525,593
SQLException closeWrapper() {<NEW_LINE>SQLException sqlX = null;<NEW_LINE>// Indicate the statement is closed by setting the parent object's statement to<NEW_LINE>// null. This will allow us to be garbage collected.<NEW_LINE>try // Connection wrapper can close at any time.<NEW_LINE>{<NEW_LINE>parentWrapper.childWrappe...
[] { pstmtImpl, closeX });
553,592
public void bind(@NonNull ReviewCommentModel commentModel) {<NEW_LINE>if (commentModel.getUser() != null) {<NEW_LINE>avatarView.setUrl(commentModel.getUser().getAvatarUrl(), commentModel.getUser().getLogin(), commentModel.getUser().isOrganizationType(), LinkParserHelper.isEnterprise(commentModel.getHtmlUrl()));<NEW_LIN...
owner.setVisibility(View.GONE);
705,761
private Sharing parseSharing(final Element element, final Locale locale) {<NEW_LINE>final Element root = getRoot(element);<NEW_LINE>Sharing sharing = null;<NEW_LINE>final Element sharingChild = root.getChild(Sharing.NAME, SSEModule.SSE_NS);<NEW_LINE>if (sharingChild != null) {<NEW_LINE>sharing = new Sharing();<NEW_LINE...
(sharingChild, Sharing.WINDOW_ATTRIBUTE));
1,153,605
private void doRehash(int new_table_size) throws IOException, EOFException, FileManagerException, ClassNotFoundException, HashtableOnDiskException {<NEW_LINE>//<NEW_LINE>// Acquire the lock to prevent iteration while doubling<NEW_LINE>//<NEW_LINE>iterationLock.p();<NEW_LINE>//<NEW_LINE>// Step 0:<NEW_LINE>// This shoul...
header.initNewTable(new_table_size, new_table);
857,323
private void initializeExecutor() {<NEW_LINE>int maximumPoolSize = Runtime.getRuntime().availableProcessors();<NEW_LINE>LinkedBlockingQueue<Runnable> executorQueue = new LinkedBlockingQueue<>(maximumPoolSize);<NEW_LINE>BasicThreadFactory threadFactory = new BasicThreadFactory.Builder().namingPattern("worker-" + "-%d")....
Thread.NORM_PRIORITY).build();
540,140
private void saveMaxResources(AssignableVirtualMachine avm) {<NEW_LINE>if (attrNameToGroupMaxResources != null && !attrNameToGroupMaxResources.isEmpty()) {<NEW_LINE>String attrValue = avm.getAttrValue(attrNameToGroupMaxResources);<NEW_LINE>if (attrValue != null) {<NEW_LINE>Map<VMResource, Double<MASK><NEW_LINE>Map<VMRe...
> maxResources = avm.getMaxResources();
1,392,433
public static ListDeployGroupResponse unmarshall(ListDeployGroupResponse listDeployGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeployGroupResponse.setRequestId(_ctx.stringValue("ListDeployGroupResponse.RequestId"));<NEW_LINE>listDeployGroupResponse.setCode(_ctx.integerValue("ListDeployGroupResponse.Code"));...
("ListDeployGroupResponse.DeployGroupList[" + i + "].ClusterName"));
295,290
public void marshall(CreateIdentityProviderRequest createIdentityProviderRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createIdentityProviderRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha...
e.getMessage(), e);
60,770
private static void loadFromLocalMotorFiles(List<Motor> allMotors, String inputDir) throws IOException {<NEW_LINE>GeneralMotorLoader loader = new GeneralMotorLoader();<NEW_LINE>FileIterator iterator = DirectoryIterator.findDirectory(inputDir, new SimpleFileFilter("", false, loader.getSupportedExtensions()));<NEW_LINE>i...
InputStream is = f.getV();
172,129
public PlanWithProperties visitSemiJoin(SemiJoinNode node, HashComputationSet parentPreference) {<NEW_LINE>Optional<HashComputation> sourceHashComputation = computeHash(ImmutableList.of(node.getSourceJoinVariable()), functionAndTypeManager);<NEW_LINE>PlanWithProperties source = planAndEnforce(node.getSource(), new Hash...
getRequiredHashVariable(sourceHashComputation.get());
680,197
public ProcessStatus handleRestValidateCode(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException, ServletException, ChaiUnavailableException {<NEW_LINE>final PwmDomain pwmDomain = pwmRequest.getPwmDomain();<NEW_LINE>final PwmSession pwmSession = pwmRequest.getPwmSession();<NEW_LINE>final OTPUserRe...
OtpService otpService = pwmDomain.getOtpService();
1,614,898
protected void doPost(HttpServletRequest request, HttpServletResponse response) {<NEW_LINE>GrpcAPI.Return.Builder returnBuilder = GrpcAPI.Return.newBuilder();<NEW_LINE>EasyTransferResponse.Builder responseBuild = EasyTransferResponse.newBuilder();<NEW_LINE>boolean visible = false;<NEW_LINE>try {<NEW_LINE>String input =...
setTransaction(transactionCapsule.getInstance());
19,497
public void offer(SendLogRequest log) {<NEW_LINE>// if nodeLogQueues.isEmpty(), then nothing to do.<NEW_LINE>// do serialization here to avoid taking LogManager for too long<NEW_LINE>if (!nodeLogQueues.isEmpty()) {<NEW_LINE>log.serializedLogFuture = serializationService.submit(() -> {<NEW_LINE>ByteBuffer byteBuffer = l...
byteBuffer.array().length);
1,468,095
public void read(int empId) {<NEW_LINE>OperationResult<ColumnList<String>> result;<NEW_LINE>try {<NEW_LINE>result = keyspace.prepareQuery(EMP_CF).getKey(empId).execute();<NEW_LINE>ColumnList<String> cols = result.getResult();<NEW_LINE>logger.debug("read: isEmpty: " + cols.isEmpty());<NEW_LINE>// process data<NEW_LINE>/...
throw new RuntimeException("failed to read from C*", e);
1,015,716
static void edgeType(int u) {<NEW_LINE>status[u] = EXPLORED;<NEW_LINE>for (int v : adjList[u]) if (status[v] == UNVISITED) {<NEW_LINE>System.out.printf("Edge from %d to %d is %s%n", u, v, "tree edge");<NEW_LINE>parent[v] = u;<NEW_LINE>edgeType(v);<NEW_LINE>} else if (// cross edges only occur in directed graph<NEW_LINE...
"Edge from %d to %d is %s%n", u, v, "bidirectional edge");
637,673
protected JSModuleRecord loadModuleFromUrl(ScriptOrModule referrer, ModuleRequest moduleRequest, TruffleFile maybeModuleFile, TruffleString maybeCanonicalPath) throws IOException {<NEW_LINE>JSModuleRecord existingModule;<NEW_LINE>TruffleFile moduleFile;<NEW_LINE>TruffleString canonicalPath;<NEW_LINE>if (maybeCanonicalP...
get(JSContext.getTypeImportAssertion());
778,513
public void ready(ReadableMap params, final Callback success, final Callback failure) {<NEW_LINE>TSConfig config = TSConfig.getInstance(getReactApplicationContext());<NEW_LINE>boolean reset = true;<NEW_LINE>if (params.hasKey("reset")) {<NEW_LINE>reset = params.getBoolean("reset");<NEW_LINE>}<NEW_LINE>if (mReady) {<NEW_...
(options)).commit();
1,277,307
public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own additive inverse<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>ECFi...
a : a.multiply(Z1Sq);
526,917
public RestRequest makeRequest(int method, String url, java.util.Map<String, String> params, RestRequest.Listener listener, RestRequest.ErrorListener errorListener) {<NEW_LINE>AppLog.v(T.TESTS, this.getClass() + ": makeRequest(" + url + ")");<NEW_LINE>RestRequest dummyReturnValue = new RestRequest(method, url, params, ...
.onErrorResponse(forgeVolleyErrorFromFilename(filename));
379,629
final DescribeDBParameterGroupsResult executeDescribeDBParameterGroups(DescribeDBParameterGroupsRequest describeDBParameterGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBParameterGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
DescribeDBParameterGroupsResult>(new DescribeDBParameterGroupsResultStaxUnmarshaller());
1,041,888
public Map<String, Object> createToken(User loginUser, int userId, String expireTime, String token) {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>// 1. check permission<NEW_LINE>if (!canOperator(loginUser, userId)) {<NEW_LINE>putMsg(result, Status.USER_NO_OPERATION_PERM);<NEW_LINE>return result;<NEW...
put(Constants.DATA_LIST, accessToken);
1,460,113
private void resolveMethod(@Nullable Context context, @NonNull String name) {<NEW_LINE>while (context != null) {<NEW_LINE>try {<NEW_LINE>if (!context.isRestricted()) {<NEW_LINE>final Method method = context.getClass().getMethod(mMethodName, BootstrapTextButton.class, boolean.class);<NEW_LINE>if (method != null) {<NEW_L...
int id = mHostView.getId();
1,601,309
public String computeJavaDoc(CompletionProposal proposal) {<NEW_LINE>try {<NEW_LINE>IType type = unit.getJavaProject().findType(SignatureUtil.stripSignatureToFQN(String.valueOf(proposal.getDeclarationSignature())));<NEW_LINE>if (type != null) {<NEW_LINE>if (proposal instanceof InternalCompletionProposal) {<NEW_LINE>Bin...
}, 500, TimeUnit.MILLISECONDS);
150,476
private void writeClass(SmaliWriter smali, ClassNode cls) {<NEW_LINE>IClassData clsData = cls.getClsData();<NEW_LINE>if (clsData == null) {<NEW_LINE>smali.startLine(String.format("###### Class %s is created by jadx", cls.getFullName()));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AttributeStorage attributes = new AttributeSt...
.get(JadxAttrType.SOURCE_FILE));
1,327,084
private static ObjectParser<TreeNode.Builder, Void> createParser(boolean lenient) {<NEW_LINE>ObjectParser<TreeNode.Builder, Void> parser = new ObjectParser<>(NAME, lenient, TreeNode.Builder::new);<NEW_LINE>parser.declareDouble(TreeNode.Builder::setThreshold, THRESHOLD);<NEW_LINE>parser.declareField(TreeNode.Builder::se...
TreeNode.Builder::setDefaultLeft, DEFAULT_LEFT);
878,822
public Object evaluate(EditorAdaptor vim, Queue<String> command) {<NEW_LINE>String lhs = command.poll();<NEW_LINE>String rhs = "";<NEW_LINE>while (!command.isEmpty()) {<NEW_LINE>// restore spaces between extra parameters<NEW_LINE>rhs += command.poll() + " ";<NEW_LINE>}<NEW_LINE>if (lhs != null && !"".equals(rhs)) {<NEW...
setInfoMessage("Changing recursive remap '" + lhs + "' to non-recursive.");
1,096,029
public AssumeRoleResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>AssumeRoleResult assumeRoleResult = new AssumeRoleResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 2;<NEW_LINE>while (true) {<NEW_LINE>...
int originalDepth = context.getCurrentDepth();
829,050
private static void runAssertionIn(RegressionEnvironment env, RegressionPath path) {<NEW_LINE>tryAssertionIn(env, path, "theString in ('E2', 'E3') and intPrimitive in (10, 20)", new Long[] { 200L });<NEW_LINE>tryAssertionIn(env, path, "intPrimitive in (30, 20) and theString in ('E4', 'E1')", new Long[] {});<NEW_LINE>tr...
new Long[] { 200L });
1,216,180
public Object execute(ODistributedRequestId requestId, OServer iServer, ODistributedServerManager iManager, ODatabaseDocumentInternal database) throws Exception {<NEW_LINE>ODistributedDatabase db = iManager.getMessageService().getDatabase(database.getName());<NEW_LINE>db.checkReverseSync(lastState);<NEW_LINE>List<OTran...
ONewDeltaTaskResponse(ONewDeltaTaskResponse.ResponseType.NO_CHANGES);
1,646,264
public void stateMachineJoined(final StateMachine<S, E> stateMachine, final StateMachineContext<S, E> context) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Event stateMachineJoined stateMachine=[" + stateMachine + "] context=[" + context + "]");<NEW_LINE>}<NEW_LINE>if (stateMachine != null && stateMachine...
.stopReactively().block();
1,474,434
final CreateVpcEndpointConnectionNotificationResult executeCreateVpcEndpointConnectionNotification(CreateVpcEndpointConnectionNotificationRequest createVpcEndpointConnectionNotificationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createVpcEndpointConnectionNotificationRequest);<NEW_LIN...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,274,635
protected void updateZoneInfo() {<NEW_LINE>Map<String, String> result = service.invokeAction(this, "DeviceProperties", "GetZoneInfo", null);<NEW_LINE>Map<String, String> result2 = service.invokeAction(this, "DeviceProperties", "GetZoneAttributes", null);<NEW_LINE>result.putAll(result2);<NEW_LINE>for (String variable : ...
.stateMap.get("SerialNumber"));
1,694,700
public EncryptedData encrypt(byte[] plainBytes, KeyParameter key) {<NEW_LINE>checkNotNull(plainBytes);<NEW_LINE>checkNotNull(key);<NEW_LINE>try {<NEW_LINE>// Generate iv - each encryption call has a different iv.<NEW_LINE>byte[] iv = new byte[BLOCK_LENGTH];<NEW_LINE>secureRandom.nextBytes(iv);<NEW_LINE>ParametersWithIV...
.getOutputSize(plainBytes.length)];
1,356,131
final DisableKeyResult executeDisableKey(DisableKeyRequest disableKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disableKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
endClientExecution(awsRequestMetrics, request, response);
1,060,646
public byte[] convertValueToWireFormat(ConsumerRecord<byte[], byte[]> record, SchemaRegistryClient registryClient, SchemaRegistryType schemaRegistryType) {<NEW_LINE>byte magicByte = 0x0;<NEW_LINE>if (schemaRegistryType == SchemaRegistryType.TIBCO) {<NEW_LINE>magicByte = (byte) 0x80;<NEW_LINE>}<NEW_LINE>Iterator<Header>...
registryClient, subject, version, magicByte);
371,277
protected boolean supportsViewFor(Application app) {<NEW_LINE>if (!(ApplicationTypeFactory.getApplicationTypeFor(app) instanceof GlassFishApplicationType))<NEW_LINE>return false;<NEW_LINE>final JmxModel model = JmxModelFactory.getJmxModelFor(app);<NEW_LINE>if (model == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE...
.getMonitoringRoot().getServerRootMonitorMap();
218,161
private void disableFormattingExclusively(int openingTagIndex, int closingTagIndex) {<NEW_LINE>Token openingTag = <MASK><NEW_LINE>int noFormatStart = openingTag.originalEnd + 1;<NEW_LINE>int noFormatEnd = this.ctm.get(closingTagIndex - 1).originalEnd;<NEW_LINE>if (noFormatStart <= noFormatEnd) {<NEW_LINE>Token noFormat...
this.ctm.get(openingTagIndex);
416,913
private void writeSAMfilesForUnknown(final String outputPrefix, final JavaRDD<GATKRead> assemblyRawAlignments, final SAMFileHeader header) {<NEW_LINE>final Map<String, ReasonForAlignmentClassificationFailure> tigNameToReason = unknown.mapToPair(tig -> new Tuple2<>(tig.getContigName(), tig.getReasonForAlignmentClassific...
.comparing(GATKRead::getName));
1,145,338
private static com.yahoo.jdisc.Request createDiscRequest(Request request, CurrentContainer currentContainer) {<NEW_LINE>String scheme = getScheme(request.getUri());<NEW_LINE>com.yahoo.jdisc.Request discRequest;<NEW_LINE>if ("http".equals(scheme) || "https".equals(scheme)) {<NEW_LINE>com.yahoo.jdisc.http.HttpRequest htt...
), entry.getValue());
382,370
private void doSearchV2(boolean searchByTask, SearchPb.Request req, StreamObserver<WorkflowServicePb.WorkflowSearchResult> response) {<NEW_LINE>final int start = req.getStart();<NEW_LINE>final int size = GRPC_HELPER.optionalOr(req.getSize(), maxSearchSize);<NEW_LINE>final List<String> sort = convertSort(req.getSort());...
req.getFreeText(), "*");
1,145,340
private SegmentZKMetadata updateCommittingSegmentZKMetadata(String realtimeTableName, CommittingSegmentDescriptor committingSegmentDescriptor) {<NEW_LINE>String segmentName = committingSegmentDescriptor.getSegmentName();<NEW_LINE>LOGGER.info("Updating segment ZK metadata for committing segment: {}", segmentName);<NEW_L...
getSegmentZKMetadata(realtimeTableName, segmentName, stat);
919,078
void refreshUI(UserPreferences prefs) {<NEW_LINE>IPreferenceStore store = propertyPage.getPreferenceStore();<NEW_LINE>scariestRankCombo.setText(MarkerSeverity.get(store.getString(FindBugsConstants.RANK_SCARIEST_MARKER_SEVERITY)).name());<NEW_LINE>scaryRankCombo.setText(MarkerSeverity.get(store.getString(FindBugsConstan...
ProjectFilterSettings filterSettings = prefs.getFilterSettings();
827,123
protected synchronized void startOptimisation(EnergyOptimisationAsset optimisationAsset) {<NEW_LINE>LOG.fine("Initialising optimiser for optimisation asset: " + optimisationAsset);<NEW_LINE>double intervalSize = optimisationAsset.getIntervalSize().orElse(0.25d);<NEW_LINE>int financialWeighting = optimisationAsset.getFi...
optimiser.intervalSize * 60 * 60);
318,113
protected void redrawBar(int x1, int y1, int x2, int y2) {<NEW_LINE>boolean firstDone = x1 < 0 || y1 < 0, secondDone = x2 < 0 || y2 < 0;<NEW_LINE>if (firstDone && secondDone) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Element child : children) {<NEW_LINE>boolean first = child.contains(x1, y1);<NEW_LINE>boolean second ...
y1, -1, -1);
414,109
private void doEncrypt(BufferedInputStream inputStream, BufferedOutputStream outputStream, int operationMode) throws GeneralSecurityException, IOException {<NEW_LINE>Cipher cipher = Cipher.getInstance(ALGO_AES);<NEW_LINE>AlgorithmParameterSpec parameterSpec;<NEW_LINE>if (SDK_INT >= KITKAT) {<NEW_LINE>parameterSpec = ne...
= new byte[GenericCopyUtil.DEFAULT_BUFFER_SIZE];
803,593
public ErrorCode preAction(String clientID, String fromUser, String topic, Qos1PublishHandler.IMCallback callback, ProtoConstants.RequestSourceType requestSourceType) {<NEW_LINE>LOG.info("imHandler fromUser={}, clientId={}, topic={}", fromUser, clientID, topic);<NEW_LINE>if (requestSourceType == ProtoConstants.RequestS...
Utility.printExecption(LOG, e);
753,124
protected void handle(final APIMigrateVmMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getName() {<NEW_LINE>return String.format("migrate-vm-%s", self.getUuid());<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>r...
APIMigrateVmEvent(msg.getId());
625,884
public IssuerDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IssuerDetails issuerDetails = new IssuerDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
152,745
private static double apply(CompLongDoubleVector 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.Entry entry = iter.nex...
idx = base + partIndices[i];
1,487,743
private void handleInvokeExpr(InvokeExpr ie) {<NEW_LINE>if (!uses) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Handle the parameters<NEW_LINE>SootMethodRef method = ie.getMethodRef();<NEW_LINE>for (int i = 0; i < ie.getArgCount(); i++) {<NEW_LINE>Value arg = ie.getArg(i);<NEW_LINE>if (arg instanceof Local) {<NEW_LINE>Loc...
localType = resolver.typeVariable(local);
1,638,975
public void marshall(DataSourceSyncJob dataSourceSyncJob, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataSourceSyncJob == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshalle...
dataSourceSyncJob.getExecutionId(), EXECUTIONID_BINDING);
1,081,369
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Card aura = game.getCard(source.getFirstTarget());<NEW_LINE>if (controller == null || aura == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterControlledCreaturePermanent FILTER = ne...
TargetControlledPermanent target = new TargetControlledPermanent(FILTER);
890,683
final BatchAcknowledgeAlarmResult executeBatchAcknowledgeAlarm(BatchAcknowledgeAlarmRequest batchAcknowledgeAlarmRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchAcknowledgeAlarmRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,665,303
private void internalRun(final String[] args) {<NEW_LINE>final SpanCustomizer span = this.tracer.currentSpanCustomizer();<NEW_LINE>log.info("Parsing arguments: {}", Arrays.toString(args));<NEW_LINE>this.exitCode = ExitCode.INVALID_ARGS;<NEW_LINE>// TODO: workaround for https://jira.spring.io/browse/SPR-17416<NEW_LINE>f...
this.argumentParser.parse(originalArgs);
1,789,390
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>Activity activity = requireActivity();<NEW_LINE>GenericViewModel viewModel = ViewModelProviders.of(this).get(GenericViewModel.class);<NEW_LINE>LiveData<List<UnifiedKeyInfo>> liveData = viewModel.get...
EXTRA_CERTIFY_KEY_ID, Constants.key.none);
653,718
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>if (sources == null || sources.length != 2) {<NEW_LINE>logParameterError(caller, sources, ctx.isJavaScriptContext());<NEW_LINE>return usage(ctx.isJavaScriptContext());<NEW_LINE>}<NEW_LINE>try {...
systemDefault()).toLocalDate();
1,216,649
public ChangeInfo implement() throws Exception {<NEW_LINE>final FileObject file = handle.getFileObject();<NEW_LINE>final JTextComponent comp = EditorRegistry.lastFocusedComponent();<NEW_LINE>if (file != null && file == getFileObject(comp)) {<NEW_LINE>final int[] pos = new int[] { -1 };<NEW_LINE>JavaSource.forFileObject...
toPhase(JavaSource.Phase.PARSED);