idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,072,465
public Object calculate(Context ctx) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>if (param == null) {<NEW_LINE>throw new RQException("power" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object val = param.getLeafExpression().calculate(ctx);<NEW_LINE>return V...
+ mm.getMessage("function.invalidParam"));
1,464,789
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) throws IOException {<NEW_LINE>SofaTracerSpan sofaTracerSpan = restTemplateTracer.clientSend(request.getMethod().name());<NEW_LINE>appendRestTemplateRequestSpanTags(request, sofaTracerSpan);<NEW_LINE>ClientHttpRes...
getStatusCode().value());
263
public Optional<ListMultimapProperty> create(Config config) {<NEW_LINE><MASK><NEW_LINE>DeclaredType type = maybeDeclared(property.getType()).orElse(null);<NEW_LINE>if (!erasesToAnyOf(type, Multimap.class, ImmutableMultimap.class, ListMultimap.class, ImmutableListMultimap.class)) {<NEW_LINE>return Optional.empty();<NEW_...
Property property = config.getProperty();
484,207
public void serialize(ByteBuf buf) {<NEW_LINE>super.serialize(buf);<NEW_LINE>long startCol = splitContext.getPartKey().getStartCol();<NEW_LINE>if (isUseIntKey()) {<NEW_LINE>if (splitContext.isEnableFilter()) {<NEW_LINE>int filterValue = (int) splitContext.getFilterThreshold();<NEW_LINE>int position = buf.writerIndex();...
buf.setInt(position, needUpdateItemNum);
717,657
String validateAuthorizeService(PrincipalToken userToken, StringBuilder errMsg) {<NEW_LINE>errMsg = errMsg == null ? new StringBuilder(512) : errMsg;<NEW_LINE><MASK><NEW_LINE>if (authorizedServiceName == null) {<NEW_LINE>List<String> authorizedServices = userToken.getAuthorizedServices();<NEW_LINE>if (authorizedService...
String authorizedServiceName = userToken.getAuthorizedServiceName();
761,761
public void onRenderTooltip(RenderTooltipEvent.PostText event) {<NEW_LINE>ItemStack stack = event.getStack();<NEW_LINE>if (stack.getItem() instanceof IBulletContainer) {<NEW_LINE>NonNullList<ItemStack> bullets = ((IBulletContainer) stack.getItem()).getBullets(stack);<NEW_LINE>if (bullets != null) {<NEW_LINE>int bulletA...
-> b.endsWith(a));
818,483
protected SpanQuery buildQuery(List<String> queryTerms) {<NEW_LINE>List<SpanQuery> clauses = new ArrayList<>();<NEW_LINE>for (int i = 0, ln = queryTerms.size(); i < ln; i++) {<NEW_LINE>String <MASK><NEW_LINE>if (isWholeWordsOnly) {<NEW_LINE>clauses.add(new SpanTermQuery(new Term(CONTENT_FIELD, term)));<NEW_LINE>} else ...
term = queryTerms.get(i);
231,167
public PlanItemInstanceResponse createPlanItemInstanceResponse(PlanItemInstance planItemInstance) {<NEW_LINE>RestUrlBuilder urlBuilder = createUrlBuilder();<NEW_LINE>PlanItemInstanceResponse result = new PlanItemInstanceResponse();<NEW_LINE>result.setId(planItemInstance.getId());<NEW_LINE>result.setUrl(urlBuilder.build...
setExtraValue(planItemInstance.getExtraValue());
39,332
private static Bitmap blur(Bitmap bitmap, Context context) {<NEW_LINE>Point previewSize = scaleKeepingAspectRatio(new Point(bitmap.getWidth(), bitmap.getHeight()), PREVIEW_DIMENSION_LIMIT);<NEW_LINE>Point blurSize = scaleKeepingAspectRatio(new Point(previewSize.x / 2, previewSize.y / 2), MAX_BLUR_DIMENSION);<NEW_LINE>B...
x + "x" + blurSize.y);
87,813
final UpdateProfileResult executeUpdateProfile(UpdateProfileRequest updateProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
invoke(request, responseHandler, executionContext);
604,798
public ConfigurationProperty create(String key, String value, String encryptedValue, Boolean isSecure) {<NEW_LINE>ConfigurationProperty configurationProperty = new ConfigurationProperty();<NEW_LINE>configurationProperty.setConfigurationKey(new ConfigurationKey(key));<NEW_LINE>if (isNotBlank(value) && isNotBlank(encrypt...
configurationProperty.addError("configurationValue", "You may only specify `value` or `encrypted_value`, not both!");
534,690
public void mapOverShards(final Bundle<F>[] bundles) {<NEW_LINE>final LinkedList<Split> splits;<NEW_LINE>{<NEW_LINE>final byte[][] keys = new byte[bundles.length][];<NEW_LINE>for (int i = 0; i < bundles.length; i++) {<NEW_LINE>keys[i] = bundles[i].fromKey;<NEW_LINE>}<NEW_LINE>splits = splitter.splitKeys(op.timestamp, 0...
= new IBindingSet[split.ntuples];
1,521,785
public void launch(GhidraApplicationLayout layout, String[] args) throws Exception {<NEW_LINE>Application.initializeApplication<MASK><NEW_LINE>JDialog dialog = new JDialog((Window) null, "Assembly Autocompleter Demo");<NEW_LINE>dialog.setLayout(new BorderLayout());<NEW_LINE>Box hbox = Box.createHorizontalBox();<NEW_LIN...
(layout, new ApplicationConfiguration());
1,768,564
public com.amazonaws.services.lakeformation.model.ResourceNotReadyException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lakeformation.model.ResourceNotReadyException resourceNotReadyException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = c...
lakeformation.model.ResourceNotReadyException(null);
1,819,109
public void render(PoseStack transform, int mx, int my, float partialTicks) {<NEW_LINE>if (!visible)<NEW_LINE>return;<NEW_LINE>Font fr = gui.manual.fontRenderer();<NEW_LINE>int mmY = my - this.y;<NEW_LINE>transform.pushPose();<NEW_LINE>transform.scale(textScale, textScale, textScale);<NEW_LINE>transform.translate(x / t...
7 : 0, 0, col);
1,201,101
final public void remove() {<NEW_LINE>if (expectedModCount == backingMap.modCount) {<NEW_LINE>if (lastNode != null) {<NEW_LINE>int idx = lastOffset;<NEW_LINE>K key = null;<NEW_LINE>if (idx == lastNode.left_idx) {<NEW_LINE><MASK><NEW_LINE>} else if (idx == lastNode.right_idx) {<NEW_LINE>key = backingMap.removeRightmost(...
key = backingMap.removeLeftmost(lastNode);
1,754,200
public double continueToMargin(double[] origin, double[] delta) {<NEW_LINE>assert (delta.length == <MASK><NEW_LINE>double factor = Double.POSITIVE_INFINITY;<NEW_LINE>if (delta[0] > 0) {<NEW_LINE>factor = Math.min(factor, (maxx - origin[0]) / delta[0]);<NEW_LINE>} else if (delta[0] < 0) {<NEW_LINE>factor = Math.min(fact...
2 && origin.length == 2);
1,766,709
private void forgeImpl$useWorldSaveDirectoryforMods(final CallbackInfoReturnable<File> cir) {<NEW_LINE>final ModContainer activeContainer = Loader.instance().activeModContainer();<NEW_LINE>// Since Forge uses a single save handler mods will expect this method to return overworld's world directory<NEW_LINE>// Fixes mods...
cir.setReturnValue(this.forgeImpl$modWorldDirectory);
1,328,738
public static DigestBlob resumeTransfer(BlobContainer blobContainer, String digest, UUID transferId, long currentPos) {<NEW_LINE>DigestBlob digestBlob = new DigestBlob(blobContainer, digest, transferId);<NEW_LINE>digestBlob.file = getTmpFilePath(blobContainer, <MASK><NEW_LINE>try {<NEW_LINE>LOGGER.trace("Resuming Diges...
digest, transferId).toFile();
295,558
public DescribeOrganizationConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeOrganizationConfigurationResult describeOrganizationConfigurationResult = new DescribeOrganizationConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><...
String currentParentElement = context.getCurrentParentElement();
158,307
private int findAudioData(String dataName, DataType dt, byte[] pattern, byte[] mask) {<NEW_LINE>println("Looking for " + dataName + "'s in " + currentProgram.getName());<NEW_LINE>int numDataFound = 0;<NEW_LINE>List<Address> foundList = scanForAudioData(pattern, mask);<NEW_LINE>// Loop over all potential found WAVs<NEW_...
(i).toString());
174,981
private void migrationOperationFailed(Member partitionOwner) {<NEW_LINE>migration.setStatus(MigrationStatus.FAILED);<NEW_LINE>migrationInterceptor.onMigrationComplete(<MASK><NEW_LINE>partitionServiceLock.lock();<NEW_LINE>try {<NEW_LINE>migrationInterceptor.onMigrationRollback(MigrationParticipant.MASTER, migration);<NE...
MigrationParticipant.MASTER, migration, false);
30,488
public Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next) {<NEW_LINE>if ((boolean) context.getData(DISABLE_TRACING_KEY).orElse(false)) {<NEW_LINE>return next.process();<NEW_LINE>}<NEW_LINE>Span parentSpan = (Span) context.getData(PARENT_TRACE_CONTEXT_KEY).orElse(tracer.currentSpan(...
kind(Span.Kind.CLIENT);
128,519
public Flux<NewAction> findUnpublishedActionsForRestApiOnLoad(Set<String> names, String pageId, String httpMethod, Boolean userSetOnLoad, AclPermission aclPermission) {<NEW_LINE>Criteria namesCriteria = where(fieldName(QNewAction.newAction.unpublishedAction) + "." + fieldName(QNewAction.newAction.unpublishedAction.name...
userSetOnLoad)).is(userSetOnLoad);
606,814
public Description matchMethodInvocation(MethodInvocationTree tree, VisitorState state) {<NEW_LINE>// Allow the JDK to do whatever it wants (unit tests, etc.)<NEW_LINE>if (JAVA_MATCHER.matches(tree, state)) {<NEW_LINE>return Description.NO_MATCH;<NEW_LINE>}<NEW_LINE>// Get the receiver of the method invocation and make...
constValue(argument, Number.class);
1,758,835
public void update(@ApiParam(value = "Environment name", required = true) @PathParam("envName") String envName, @ApiParam(value = "Stage name", required = true) @PathParam("stageName") String stageName, @ApiParam(value = "List of MetricsConfigBean objects", required = true) @Valid List<MetricsConfigBean> metrics, @Cont...
.ENV), Role.OPERATOR);
558,986
private List<AtomicUpdateGroup<T>> findLatestFullyAvailableOvershadowedAtomicUpdateGroups(RootPartitionRange rangeOfAug, short minorVersion) {<NEW_LINE>final List<AtomicUpdateGroup<T>> overshadowedGroups = findOvershadowedBy(rangeOfAug, minorVersion, State.OVERSHADOWED);<NEW_LINE>// Filter out non-fully available group...
> currEntry = fullGroups.lastEntry();
447,508
public void populateItem(final Item<RepositoryCommit> commitItem) {<NEW_LINE>final <MASK><NEW_LINE>// author gravatar<NEW_LINE>commitItem.add(new AvatarImage("commitAuthor", commit.getAuthorIdent(), null, 16, false));<NEW_LINE>// merge icon<NEW_LINE>if (commit.getParentCount() > 1) {<NEW_LINE>commitItem.add(WicketUtils...
RepositoryCommit commit = commitItem.getModelObject();
1,219,479
protected void uninstallBundle(BundleContext bundleContext, String addonId) throws MarketplaceHandlerException {<NEW_LINE>try {<NEW_LINE>Path addonPath = getAddonCacheDirectory(addonId);<NEW_LINE>if (Files.isDirectory(addonPath)) {<NEW_LINE>for (Path bundleFile : Files.list(addonPath).collect(Collectors.toList())) {<NE...
bundle = bundleContext.getBundle(addonId);
38,964
public static boolean filterCheck(SearchSubsResultBase ds, String filter, boolean regex) {<NEW_LINE>if (filter == null || filter.length() == 0) {<NEW_LINE>return (true);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>boolean hash_filter = filter.startsWith("t:");<NEW_LINE>if (hash_filter) {<NEW_LINE>filter = filter.substring(2);<N...
Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);
570,172
public void formatStatusIcon(ImageView statusIcon) {<NEW_LINE>// Note: order is important!<NEW_LINE>if (keyInfo.is_revoked()) {<NEW_LINE>KeyFormattingUtils.setStatusImage(context, statusIcon, null, KeyFormattingUtils.State.REVOKED, R.color.key_flag_gray);<NEW_LINE>statusIcon.setVisibility(View.VISIBLE);<NEW_LINE>} else...
INSECURE, R.color.key_flag_gray);
25,729
public void outputAccumulators(FinishBundleContext context) {<NEW_LINE>// Establish immutable non-null handles to demonstrate that calling other<NEW_LINE>// methods cannot make them null<NEW_LINE>final Map<WindowedStructuralKey<K><MASK><NEW_LINE>final Map<WindowedStructuralKey<K>, Instant> timestamps = this.timestamps;...
, AccumT> accumulators = this.accumulators;
806,630
private boolean isServiceVulnerable(NetworkService networkService) {<NEW_LINE>String targetUri = NetworkServiceUtils.buildWebApplicationRootUrl(networkService);<NEW_LINE>targetUri = targetUri + VULNERABLE_ENDPOINT;<NEW_LINE>HttpResponse response;<NEW_LINE>String csrfToken = "";<NEW_LINE>// Request 1: plain GET request ...
).log("Creating a new Joomla session on target '%s'.", targetUri);
1,830,865
public static ClusterState resolveTemporaryState(final String matchingTemplate, final String indexName, final ClusterState simulatedState) {<NEW_LINE>Settings settings = resolveSettings(<MASK><NEW_LINE>// create the index with dummy settings in the cluster state so we can parse and validate the aliases<NEW_LINE>Setting...
simulatedState.metadata(), matchingTemplate);
873,231
public void drawTransform(Transform xf) {<NEW_LINE>GraphicsContext g = getGraphics();<NEW_LINE>getWorldToScreenToOut(xf.p, temp);<NEW_LINE>temp2.setZero();<NEW_LINE>float k_axisScale = 0.4f;<NEW_LINE>Color c = cpool.<MASK><NEW_LINE>g.setStroke(c);<NEW_LINE>temp2.x = xf.p.x + k_axisScale * xf.q.c;<NEW_LINE>temp2.y = xf....
getColor(1, 0, 0);
1,211,434
public void bridgeStatusChanged(final ThingStatusInfo bridgeStatusInfo) {<NEW_LINE>logger.debug("DEV {}: Controller status is {}", unitId, bridgeStatusInfo.getStatus());<NEW_LINE>if (bridgeStatusInfo.getStatus() != ThingStatus.ONLINE) {<NEW_LINE>updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_OFFLINE, Consta...
logger.debug("DEV {}: bridge handler is null!", unitId);
11,630
public void updateFlow(final Project project, final int version, final Flow flow) throws ProjectManagerException {<NEW_LINE>logger.info("Uploading flow " + flow.getId());<NEW_LINE>try {<NEW_LINE>final String json = JSONUtils.toJSON(flow.toObject());<NEW_LINE>final byte[] data = convertJsonToBytes(this.defaultEncodingTy...
logger.error("Error inserting flow", e);
390,076
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public FunctionRequirements requirements(CmsTrade trade, Set<Measure> measures, CalculationParameters parameters, ReferenceData refData) {<NEW_LINE>// extract data from product<NEW_LINE>Cms product = trade.getProduc...
addAll(payIndices).build();
185,740
public void prepare(PrepareJobRequest request, StreamObserver<PrepareJobResponse> responseObserver) {<NEW_LINE>try {<NEW_LINE>LOG.trace("{} {}", PrepareJobRequest.class.getSimpleName(), request);<NEW_LINE>// insert preparation<NEW_LINE>String preparationId = String.format("%s_%s", request.getJobName(), UUID.<MASK><NEW_...
randomUUID().toString());
801,825
private BLangConstantValue evaluateUnaryOperator(BLangConstantValue value, OperatorKind kind) {<NEW_LINE>if (value == null || value.value == null) {<NEW_LINE>// This is a compilation error.<NEW_LINE>// This is to avoid NPE exceptions in sub-sequent validations.<NEW_LINE>return new BLangConstantValue(null, this.currentC...
value.value, currentConstSymbol.type);
1,596,460
private // parent class types.<NEW_LINE>String generateFileName() {<NEW_LINE>int checksum = 1;<NEW_LINE>Set<TypeId<?><MASK><NEW_LINE>Iterator<TypeId<?>> it = typesKeySet.iterator();<NEW_LINE>int[] checksums = new int[typesKeySet.size()];<NEW_LINE>int i = 0;<NEW_LINE>while (it.hasNext()) {<NEW_LINE>TypeId<?> typeId = it...
> typesKeySet = types.keySet();
638,269
private void loadPropertiesConfiguration() {<NEW_LINE>// Initial configuration is seeded with any global configuration<NEW_LINE>configuration = new Properties(GlobalConfiguration.globalConfigurationProperties);<NEW_LINE>try {<NEW_LINE>Set<String> configurationFiles = new HashSet<String>();<NEW_LINE>ClassLoader classloa...
URL url = resources.nextElement();
540,227
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,671,653
public List<KeeperContainerInfoModel> findAllInfos() {<NEW_LINE>List<KeepercontainerTbl> baseInfos = findContainerBaseInfos();<NEW_LINE>HashMap<Long, KeeperContainerInfoModel> <MASK><NEW_LINE>baseInfos.forEach(baseInfo -> {<NEW_LINE>KeeperContainerInfoModel model = new KeeperContainerInfoModel();<NEW_LINE>model.setId(b...
containerInfoMap = new HashMap<>();
1,014,520
public Void execute(CommandContext commandContext) {<NEW_LINE>EnsureUtil.ensureNotNull(NotValidException.class, "incident id", incidentId);<NEW_LINE>IncidentEntity incident = (IncidentEntity) commandContext.getIncidentManager().findIncidentById(incidentId);<NEW_LINE>EnsureUtil.ensureNotNull(<MASK><NEW_LINE>if (incident...
BadUserRequestException.class, "incident", incident);
1,205,444
private Mono<Response<Flux<ByteBuffer>>> stopWithResponseAsync(String resourceGroupName, String labName, String virtualMachineName, 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 ...
this.client.mergeContext(context);
1,621,168
public void onActivityCreated(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>ActionBar actionBar = ((AppCompatActivity) getActivity()).getSupportActionBar();<NEW_LINE>assert actionBar != null;<NEW_LINE>actionBar.setTitle("Edit Budget Amounts");<NEW_LINE>setHasOptio...
addBudgetAmountView(null).getTag();
1,346,379
public Optional<AuthenticationDetails> authenticateAndProvision(AuthServiceCredentials authCredentials, ProvisionerService provisionerService) {<NEW_LINE>try (final LDAPConnection connection = ldapConnector.connect(config.getLDAPConnectorConfig())) {<NEW_LINE>if (connection == null) {<NEW_LINE>return Optional.empty();<...
(userDetails).build());
1,778,027
protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws IOException {<NEW_LINE>try {<NEW_LINE>AppIdentityCredential credential = new AppIdentityCredential(Arrays.asList(STORAGE_SCOPE));<NEW_LINE>// Set up and execute Google Cloud Storage request.<NEW_LINE>String bucketName = req.getReq...
HTTP_NOT_FOUND, e.getMessage());
1,462,888
protected void loadConfig() {<NEW_LINE>Map map = subs.getHistoryConfig();<NEW_LINE>Long l_enabled = (Long) map.get("enabled");<NEW_LINE>enabled = l_enabled == null ? true : l_enabled.longValue() == 1;<NEW_LINE>Long l_auto_dl = (<MASK><NEW_LINE>auto_dl = l_auto_dl == null ? false : l_auto_dl.longValue() == 1;<NEW_LINE>L...
Long) map.get("auto_dl");
822,240
/*<NEW_LINE>* Add a new referral entry to the cache, including: client principal,<NEW_LINE>* service principal, user principal (S4U2Self only), client service<NEW_LINE>* ticket (S4U2Proxy only), source KDC realm, destination KDC realm and<NEW_LINE>* referral TGT.<NEW_LINE>*<NEW_LINE>* If a loop is generated when adding...
remove(newEntry.getToRealm());
879,255
protected Long handleInternally(DataObject content) {<NEW_LINE>final long id = content.getLong("guild_id");<NEW_LINE>if (getJDA().getGuildSetupController().isLocked(id))<NEW_LINE>return id;<NEW_LINE>DataObject userJson = content.getObject("user");<NEW_LINE>final long userId = userJson.getLong("id");<NEW_LINE>GuildImpl ...
).createMember(guild, content);
343,584
private MacrosModel.Macro addMacro(String initCode) {<NEW_LINE><MASK><NEW_LINE>// NO18N<NEW_LINE>final DialogDescriptor descriptor = new DialogDescriptor(panel, loc("CTL_New_macro_dialog_title"));<NEW_LINE>panel.setChangeListener(new ChangeListener() {<NEW_LINE><NEW_LINE>public void stateChanged(ChangeEvent e) {<NEW_LI...
final MacrosNamePanel panel = new MacrosNamePanel();
1,134,624
Object POINTER(VirtualFrame frame, Object cls, @CachedLibrary(limit = "1") HashingStorageLibrary hlib, @Cached IsTypeNode isTypeNode, @Cached CallNode callNode, @Cached GetNameNode getNameNode, @Cached CastToJavaStringNode toJavaStringNode) {<NEW_LINE>CtypesThreadState ctypes = CtypesThreadState.get(getContext(), getLa...
name = toJavaStringNode.execute(cls);
1,485,211
public void remove(ContextID contextID, ContextKey contextKey) throws ErrorException {<NEW_LINE>String contextIdStr = SerializeHelper.serializeContextID(contextID);<NEW_LINE>String contextKeyStr = SerializeHelper.serializeContextKey(contextKey);<NEW_LINE>ContextRemoveAction contextRemoveAction = new ContextRemoveAction...
int status = contextRemoveResult.getStatus();
831,866
public UserContextDataType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UserContextDataType userContextDataType = new UserContextDataType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
1,787,882
protected void analyzeMethodForServiceConnection(SootMethod method) {<NEW_LINE>// Do not analyze system classes<NEW_LINE>if (SystemClassHandler.v().isClassInSystemPackage(method.getDeclaringClass().getName()))<NEW_LINE>return;<NEW_LINE>if (!method.isConcrete() || !method.hasActiveBody())<NEW_LINE>return;<NEW_LINE>for (...
br = iexpr.getArg(1);
1,466,528
private Pair<Boolean, List<String>> doKill(TaskKillRequestCommand killCommand) {<NEW_LINE>boolean processFlag = true;<NEW_LINE>List<String> appIds = Collections.emptyList();<NEW_LINE>int taskInstanceId = killCommand.getTaskInstanceId();<NEW_LINE>TaskExecutionContext <MASK><NEW_LINE>try {<NEW_LINE>Integer processId = ta...
taskExecutionContext = TaskExecutionContextCacheManager.getByTaskInstanceId(taskInstanceId);
1,546,164
public void findEdgeIdsInNeighborhood(double queryLat, double queryLon, int iteration, IntConsumer foundEntries) {<NEW_LINE>int x = keyAlgo.x(queryLon);<NEW_LINE>int y = keyAlgo.y(queryLat);<NEW_LINE>for (int yreg = -iteration; yreg <= iteration; yreg++) {<NEW_LINE>int subqueryY = y + yreg;<NEW_LINE>int subqueryXA = x ...
64 - keyAlgo.getBits());
706,869
private String findSpringVersion(FileObject ownerRoot) {<NEW_LINE>try {<NEW_LINE>if (ownerRoot != null) {<NEW_LINE>// NOI18N<NEW_LINE>if (ownerRoot.getFileSystem() instanceof JarFileSystem) {<NEW_LINE>JarFileSystem jarFileSystem = <MASK><NEW_LINE>String implementationVersion = SpringUtilities.getImplementationVersion(j...
(JarFileSystem) ownerRoot.getFileSystem();
1,308,262
public void updateContractStatusInOrder(final I_C_Flatrate_Term term) {<NEW_LINE>final IOrderDAO orderDAO = Services.get(IOrderDAO.class);<NEW_LINE>final IContractsDAO contractsDAO = Services.get(IContractsDAO.class);<NEW_LINE>final ISubscriptionBL subscriptionBL = Services.get(ISubscriptionBL.class);<NEW_LINE>final Or...
orderIds = contractOrderService.retrieveAllContractOrderList(orderId);
230,764
public <T> Optional<T> selectOne(String prompt, List<T> entries, Function<T, String> entryFormatter) throws IOException {<NEW_LINE>Preconditions.checkArgument(entries.size() > 0);<NEW_LINE>output.println();<NEW_LINE>output.println(prompt);<NEW_LINE>output.println();<NEW_LINE>for (int i = 0; i < entries.size(); i++) {<N...
(entries.get(index));
1,397,211
private void indexNonCachedResources(Map<String, Long> fileModified, Map<String, SQLiteTileSource> rs) {<NEW_LINE>for (Map.Entry<String, Long> entry : fileModified.entrySet()) {<NEW_LINE>String filename = entry.getKey();<NEW_LINE>try {<NEW_LINE>log.info("Indexing " + type + " file " + filename);<NEW_LINE>ContentValues ...
e.getMessage(), e);
1,696,679
void fillAdditionalValues(JsonMapper mapper) {<NEW_LINE>if (this.data != null) {<NEW_LINE>JsonObject dataObject = Json.parse(this.data).asObject();<NEW_LINE>if (dataObject.get("rating") != null) {<NEW_LINE>JsonObject rating = dataObject.get("rating").asObject();<NEW_LINE>if (rating != null) {<NEW_LINE>ratingValue = rat...
toString(), Place.class);
315,887
public void process(final String get, final InputStream is, final OutputStream os) throws IOException {<NEW_LINE>new AEThread2("MagnetProcessor", true) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>boolean close = false;<NEW_LINE>try {<NEW_LINE>long start = SystemTime.getMonotonousTime();<NEW_LIN...
InputStreamReader(is)), os);
764,855
public static IconCompat createFromBundle(@NonNull Bundle bundle) {<NEW_LINE>int type = bundle.getInt(EXTRA_TYPE);<NEW_LINE>IconCompat icon = new IconCompat(type);<NEW_LINE>icon.mInt1 = bundle.getInt(EXTRA_INT1);<NEW_LINE>icon.<MASK><NEW_LINE>if (bundle.containsKey(EXTRA_TINT_LIST)) {<NEW_LINE>icon.mTintList = bundle.g...
mInt2 = bundle.getInt(EXTRA_INT2);
673,578
private // NOSONAR<NEW_LINE>// NOSONAR<NEW_LINE>void // NOSONAR<NEW_LINE>paintMarkerLines(PaintEvent e) {<NEW_LINE>if (markerLines.isEmpty())<NEW_LINE>return;<NEW_LINE>IAxis xAxis = getAxisSet().getXAxis(0);<NEW_LINE>IAxis yAxis = getAxisSet().getYAxis(0);<NEW_LINE>int labelExtentX = 0;<NEW_LINE>int labelStackY = 0;<NE...
gc.setLineStyle(SWT.LINE_SOLID);
704,669
public com.amazonaws.services.voiceid.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.voiceid.model.ValidationException validationException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_...
voiceid.model.ValidationException(null);
327,699
final CreateNamedQueryResult executeCreateNamedQuery(CreateNamedQueryRequest createNamedQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createNamedQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
invoke(request, responseHandler, executionContext);
175,286
private void checkPropertyInheritanceOnGetpropAssign(Node assign, Node object, String property, JSDocInfo info, JSType propertyType) {<NEW_LINE>// Inheritance checks for prototype properties.<NEW_LINE>//<NEW_LINE>// TODO(nicksantos): This isn't the right place to do this check. We<NEW_LINE>// really want to do this whe...
Node preObject = object.getFirstChild();
1,403,952
public static KeyRange transformRange(Token leftKeyExclusive, Token rightKeyInclusive) {<NEW_LINE>if (!(leftKeyExclusive instanceof BytesToken))<NEW_LINE>throw new UnsupportedOperationException();<NEW_LINE>// if left part is BytesToken, right part should be too, otherwise there is no sense in the ring<NEW_LINE>assert r...
][] { leftTokenValue, rightTokenValue };
456,554
public boolean storeEntry(AuditLogEntry entry) {<NEW_LINE>LOGGER.debug("Storing entry {}", entry);<NEW_LINE>// Note checks for action, time and action are redundant since<NEW_LINE>// they are already checked in AuditLogEntry<NEW_LINE>if (entry == null || entry.getAction() == null || entry.getUser() == null || entry.get...
bucketLabel, changedProperty, before, after);
1,397,705
public void queryWithResponse() {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.BlobAsyncClientBase.queryWithResponse#BlobQueryOptions<NEW_LINE>String expression = "SELECT * from BlobStorage";<NEW_LINE>BlobQueryJsonSerialization input = new BlobQueryJsonSerialization().setRecordSeparator('\n');<NEW_LINE>BlobQue...
(errorConsumer).setProgressConsumer(progressConsumer);
1,686,111
private final int compareToInterval(final FcnRcdValue fcn) {<NEW_LINE>int result;<NEW_LINE>if (fcn.intv != null) {<NEW_LINE>result = this.intv<MASK><NEW_LINE>if (result != 0) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < this.values.length; i++) {<NEW_LINE>result = this.values[i].compareTo(fcn.value...
.low - fcn.intv.low;
857,537
private void updateLockMetrics() {<NEW_LINE>LockStats.getGlobal().getLockMetricsByPath().forEach((lockPath, lockMetrics) -> {<NEW_LINE>Metric.Context context = getContext(Map.of("lockPath", lockPath));<NEW_LINE>LatencyMetrics acquireLatencyMetrics = lockMetrics.getAndResetAcquireLatencyMetrics();<NEW_LINE>setNonZero("l...
lockedLatencyMetrics.maxLatencySeconds(), context);
10,388
private static ThinLevel convertLevel(QueryLevel ql, ThinQuery tq) {<NEW_LINE>List<ThinMember> inclusions = convertMembers(ql.getInclusions(), tq);<NEW_LINE>List<ThinMember> exclusions = convertMembers(ql.getExclusions(), tq);<NEW_LINE>ThinMember rangeStart = convertMember(ql.getRangeStart(), tq);<NEW_LINE>ThinMember r...
range = new ArrayList<>();
1,137,151
public void processEvent(SystemEvent event) {<NEW_LINE>Map<String, Object> scope = null;<NEW_LINE>if (event instanceof PreDestroyViewMapEvent) {<NEW_LINE>UIViewRoot viewRoot = (UIViewRoot) ((PreDestroyViewMapEvent) event).getComponent();<NEW_LINE>scope = viewRoot.getViewMap(false);<NEW_LINE>if (scope == null) {<NEW_LIN...
PreDestroyCustomScopeEvent) event).getContext();
1,063,908
public static Optional<ScalablePushRegistry> create(final LogicalSchema logicalSchema, final Supplier<List<PersistentQueryMetadata>> allPersistentQueries, final boolean isTable, final Map<String, Object> streamsProperties, final Map<String, Object> consumerProperties, final String sourceApplicationId, final KsqlTopic k...
(KsqlConfig.KSQL_QUERY_PUSH_V2_MAX_CATCHUP_CONSUMERS))));
1,521,827
public static void pasteSelectedChunks(TileMap tileMap, Stage primaryStage) {<NEW_LINE>if (tileMap.isInPastingMode()) {<NEW_LINE>DataProperty<ImportConfirmationDialog.ChunkImportConfirmationData> dataProperty = new DataProperty<>();<NEW_LINE>ChunkImportConfirmationData preFill = new ChunkImportConfirmationData(tileMap....
.getDefaultToolkit().getSystemClipboard();
182,521
public String buildAppConfig(DeployAppBuildAppConfigReq request, String operator) {<NEW_LINE>AppPackageDO appPackageDO = appPackageRepository.getByCondition(AppPackageQueryCondition.builder().id(request.getAppPackageId()).withBlobs(false).build());<NEW_LINE>DeployAppSchema deployAppSchema = new DeployAppSchema();<NEW_L...
getComponents().add(specComponent);
285,594
private void buildRuleTable(FDE fde, long instructionPointer) throws IOException {<NEW_LINE>PrintStream out = System.err;<NEW_LINE>state = new RuleState();<NEW_LINE>state.registerRules = new HashMap<Integer, RegisterRule>();<NEW_LINE>{<NEW_LINE>// out.printf("CIE has initial instructions:\n");<NEW_LINE>//<NEW_LINE>// S...
ImageInputStream initialInstructionStream = new MemoryCacheImageInputStream(i);
1,637,178
protected void validateOverridingRules(Set<String> overridingFieldNames, NullAway analysis, VisitorState state, MethodTree tree, Symbol.MethodSymbol overriddenMethod) {<NEW_LINE>Set<String> overriddenFieldNames = getAnnotationValueArray(overriddenMethod, annotName, false);<NEW_LINE>if (overriddenFieldNames == null) {<N...
append(iterator.next());
1,010,585
protected void onDraw(Canvas canvas) {<NEW_LINE>if (!mHasSelectorWheel) {<NEW_LINE>super.onDraw(canvas);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>float x = (getRight() - getLeft()) / 2;<NEW_LINE>float y = mCurrentScrollOffset;<NEW_LINE>if (mVirtualButtonPressedDrawable != null && mScrollState == OnScrollListener.SCROLL_STA...
scrollSelectorValue, x, y, mSelectorWheelPaint);
746,978
final ListUserTagsResult executeListUserTags(ListUserTagsRequest listUserTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUserTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
910,570
public PlacementTemplate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PlacementTemplate placementTemplate = new PlacementTemplate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
34,290
public static File normalize(final String path) {<NEW_LINE>Stack s = new Stack();<NEW_LINE>String[] dissect = dissect(path);<NEW_LINE>s.push(dissect[0]);<NEW_LINE>StringTokenizer tok = new StringTokenizer(dissect[1], File.separator);<NEW_LINE>while (tok.hasMoreTokens()) {<NEW_LINE>String thisToken = tok.nextToken();<NE...
sb.append(File.separatorChar);
992,483
private static void sortSam(final File input, final File output, final File reference, final ValidationStringency stringency) {<NEW_LINE><MASK><NEW_LINE>// We can't use ArgumentsBuilder since it assumes GATK argument names, but we're running a Picard<NEW_LINE>// tool, which uses upper case argument names.<NEW_LINE>fina...
final SortSam sort = new SortSam();
294,045
public void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, Player player, Level world, BlockState blockState, IProbeHitData data) {<NEW_LINE>BlockEntity te = world.getBlockEntity(data.getPos());<NEW_LINE>if (te instanceof IEBlockInterfaces.IConfigurableSides && data.getSideHit() != null) {<NEW_LINE>boolean flip = p...
(flip ? "opposite" : "facing"));
275,809
private static void tryComputeLayer2EdgesForLayer1ChildEdge(Layer1Edge layer1MappedEdge, Map<String, Configuration> configurations, Consumer<Layer2Edge> edges, Map<String, InterfacesByVlanRange> vlanRangesPerNode) {<NEW_LINE>Layer1Node node1 = layer1MappedEdge.getNode1();<NEW_LINE>Layer1Node node2 = layer1MappedEdge.ge...
? i1.getAccessVlan() : null;
67,903
private void initPersistedHosts() {<NEW_LINE>if (HostsSupport.storageDirectoryExists()) {<NEW_LINE>File storageDir = HostsSupport.getStorageDirectory();<NEW_LINE>File[] files = storageDir.listFiles(new FilenameFilter() {<NEW_LINE><NEW_LINE>public boolean accept(File dir, String name) {<NEW_LINE>return name.endsWith(Sto...
storageDir, file.getName());
1,746,347
public static void register(String userName, String userPassword, String session) {<NEW_LINE>Context context = ContextFactory.getContext();<NEW_LINE>SharedPreferences userPrefs = context.getSharedPreferences<MASK><NEW_LINE>if (userName != null && userName.length() != 0 && userPassword != null && userPassword.length() !...
(getSharedPrefName(context), 0);
11,770
static String generateGlobalKey(final ComponentContext parentContext, @Nullable final Component parentComponent, final Component childComponent) {<NEW_LINE>final boolean hasManualKey = childComponent.hasManualKey();<NEW_LINE>final String key = hasManualKey ? "$" + childComponent.getKey() : childComponent.getKey();<NEW_...
childKey = getKeyWithSeparator(parentGlobalKey, key);
1,228,238
public static void writeSearchRequestParams(SearchRequest request, XContentBuilder xContentBuilder) throws IOException {<NEW_LINE>xContentBuilder.startObject();<NEW_LINE>if (request.indices() != null) {<NEW_LINE>xContentBuilder.field("index", request.indices());<NEW_LINE>}<NEW_LINE>if (request.indicesOptions() != null ...
"request_cache", request.requestCache());
1,714,174
private void updateView(NeededMapsVH holder) {<NEW_LINE>boolean paidVersion = Version.isPaidVersion(app);<NEW_LINE>for (int i = 0; i < items.size(); i++) {<NEW_LINE>IndexItem item = items.get(i);<NEW_LINE>boolean downloading = downloadThread.isDownloading(item);<NEW_LINE>boolean currentDownloading = downloading && down...
int progress = downloadThread.getCurrentDownloadingItemProgress();
714,240
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>Bundle args = params[0];<NEW_LINE>String userID;<NEW_LINE>try {<NEW_LINE>LinkedInApiClient client = mLinkedInApiClientFactory.createLinkedInApiClient(new LinkedInAccessToken(mSharedPreferences.getString(SAVE_STATE_KEY_OA...
result.putBoolean(CURRENT, true);
304,048
final GetAutoSnapshotsResult executeGetAutoSnapshots(GetAutoSnapshotsRequest getAutoSnapshotsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAutoSnapshotsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
995,353
static ShapeFill newInstance(JSONObject json, LottieComposition composition) {<NEW_LINE>AnimatableColorValue color = null;<NEW_LINE>boolean fillEnabled;<NEW_LINE>AnimatableIntegerValue opacity = null;<NEW_LINE>JSONObject <MASK><NEW_LINE>if (jsonColor != null) {<NEW_LINE>color = AnimatableColorValue.Factory.newInstance(...
jsonColor = json.optJSONObject("c");
83,435
protected void layoutPeer() {<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!superPeerMode) {<NEW_LINE>// called by Codename One EDT to position the native component.<NEW_LINE>activity.runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>if (layoutWrapper != nu...
AndroidPeer.this.getHeight());
941,612
private List<Integer> columnTypesForQuery(String table) {<NEW_LINE>if ("revlog".equals(table)) {<NEW_LINE>return Arrays.asList(TYPE_INTEGER, TYPE_INTEGER, TYPE_INTEGER, TYPE_INTEGER, TYPE_INTEGER, <MASK><NEW_LINE>} else if ("cards".equals(table)) {<NEW_LINE>return Arrays.asList(TYPE_INTEGER, TYPE_INTEGER, TYPE_INTEGER,...
TYPE_INTEGER, TYPE_INTEGER, TYPE_INTEGER, TYPE_INTEGER);
1,651,387
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> executions = new ArrayList<>();<NEW_LINE>executions.add(new ExprDTIntervalCalendarOps());<NEW_LINE>executions.add(new ExprDTIntervalInvalid());<NEW_LINE>executions.add(new ExprDTIntervalBeforeInSelectClause());<NEW_LINE...
.add(new ExprDTIntervalStartedByWhereClause());