idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,775,213
static AccountInventory create(AccountBuilder builder) {<NEW_LINE>DebugUtils.Assert(builder.name != null, "name cannot be null");<NEW_LINE>DebugUtils.Assert(builder.type != null, "type cannot be null");<NEW_LINE>return new SQLBatchWithReturn<AccountInventory>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected AccountI...
setAccountUuid(avo.getUuid());
1,005,989
/*<NEW_LINE>* @see com.baidu.brpc.spring.annotation.AnnotationParserCallback<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void destroy() throws Exception {<NEW_LINE>if (rpcClients != null) {<NEW_LINE>for (RpcProxyFactoryBean bean : rpcClients) {<NEW_LINE>try {<NEW_LINE>bean.destroy();<NEW_LINE>} catch (Exception e) {...
), e.getCause());
1,614,957
private void initializeResources() {<NEW_LINE>chatId = getIntent().getIntExtra(CHAT_ID_EXTRA, 0);<NEW_LINE>contactId = getIntent().getIntExtra(CONTACT_ID_EXTRA, 0);<NEW_LINE>chatIsMultiUser = false;<NEW_LINE>chatIsDeviceTalk = false;<NEW_LINE>chatIsMailingList = false;<NEW_LINE>chatIsBroadcast = false;<NEW_LINE>fromCha...
this, R.id.toolbar);
1,256,733
void append(final List<AckEntry> batch) {<NEW_LINE>if (batch == null || batch.isEmpty())<NEW_LINE>return;<NEW_LINE>updateLock.lock();<NEW_LINE>try {<NEW_LINE>if (lastAppendOffset != -1 && lastAppendOffset + 1 != batch.get(0).pullOffset()) {<NEW_LINE>LOGGER.warn("{}/{} append ack entry not continous. last: {}, new: {}",...
getAndAdd(batch.size());
1,663,472
public int whichPath(DataPoint data) {<NEW_LINE>int paths = getNumberOfPaths();<NEW_LINE>if (paths < 0)<NEW_LINE>// Not trained<NEW_LINE>return paths;<NEW_LINE>else if (// ONLY one option, entropy was zero<NEW_LINE>paths == 1)<NEW_LINE>return 0;<NEW_LINE>else if (// Same for classification and regression<NEW_LINE>split...
0 ? -pos - 1 : pos;
591,026
protected void onSaveInstanceState(@NonNull Bundle outState) {<NEW_LINE>outState.putBoolean(ReaderConstants.ARG_IS_SINGLE_POST, mIsSinglePostView);<NEW_LINE>outState.putBoolean(ReaderConstants.ARG_IS_RELATED_POST, mIsRelatedPostView);<NEW_LINE>outState.putString(ReaderConstants.ARG_INTERCEPTED_URI, mInterceptedUri);<NE...
ReaderConstants.ARG_POST_LIST_TYPE, getPostListType());
1,720,793
private static boolean targetNewerThanSourceFile(File target, URL approximateSource) {<NEW_LINE>if (!COMPARE_TIMESTAMPS) {<NEW_LINE>LOG.finest("#227791: timestamp comparison disabled");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!"file".equals(approximateSource.getProtocol())) {<NEW_LINE>LOG.log(Level.FINER, "#2277...
long sourceLastMod = src.lastModified();
1,348,853
public void caseAMethodMember(AMethodMember node) {<NEW_LINE>inAMethodMember(node);<NEW_LINE>{<NEW_LINE>List<PModifier> copy = new ArrayList<PModifier>(node.getModifier());<NEW_LINE>for (PModifier e : copy) {<NEW_LINE>e.apply(this);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (node.getType() != null) {<NEW_LINE>node.getType().ap...
getLParen().apply(this);
203,180
default void renderManagedAttributes(final AsyncBuffer out, final SecurityContext securityContext, final RenderContext renderContext) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>// make sure we are inside a repeater<NEW_LINE>final String dataKey = getDataKey();<NEW_LINE>if (dataKey != null) {<NEW_LINE>// make s...
value = map.get(valueKey);
918,678
public void write(Append append) throws IOException {<NEW_LINE>Exceptions.checkNotClosed(this.closed.get(), this);<NEW_LINE>Session session = setupSegments.get(new SimpleImmutableEntry<>(append.getSegment(), append.getWriterId()));<NEW_LINE>validateAppend(append, session);<NEW_LINE>final ByteBuf data = append.getData()...
dataInsideBlock = data.readSlice(bytesLeftInBlock);
461,887
public void paint(IFigure figure, Graphics g, Insets insets) {<NEW_LINE>tempRect.setBounds(getPaintRectangle(figure, insets));<NEW_LINE>Rectangle rec = tempRect;<NEW_LINE>rec.height = Math.min(rec.height, getTextExtents(figure).height + padding.getHeight());<NEW_LINE>g.clipRect(rec);<NEW_LINE>g.setBackgroundColor(fillC...
= rec.y + padding.top;
1,401,719
private static void c_7() throws Exception {<NEW_LINE>BatchOperator<?> docs = getSource().select(LABEL_COL_NAME + ", " + TXT_COL_NAME).link(new SegmentBatchOp().setSelectedCol(TXT_COL_NAME)).link(new StopWordsRemoverBatchOp().setSelectedCol(TXT_COL_NAME));<NEW_LINE>docs.lazyPrint(10);<NEW_LINE>if (!new File(DATA_DIR + ...
).setFilePath(DATA_DIR + LDA_PWZ_FILE);
1,055,911
static BoundedCostBackupRequestsStrategy tryCreateBoundedCost(Map<String, Object> properties) {<NEW_LINE>int cost = mapGet(properties, PropertyKeys.COST);<NEW_LINE>int historyLength = properties.containsKey(PropertyKeys.HISTORY_LENGTH) ? mapGet(properties, PropertyKeys.<MASK><NEW_LINE>int requiredHistoryLength = proper...
HISTORY_LENGTH) : BCBR.getHistoryLength();
1,606,500
protected void performLiquibaseTask(Liquibase liquibase) throws LiquibaseException {<NEW_LINE>switch(type) {<NEW_LINE>case COUNT:<NEW_LINE>{<NEW_LINE>liquibase.rollback(rollbackCount, rollbackScript, new Contexts(contexts), new LabelExpression(labels), outputWriter);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case DATE:<NEW_L...
new LabelExpression(labels), outputWriter);
1,528,773
private List<String> loadBucketAssignments(long distributionId) {<NEW_LINE>Set<String> nodeIds = getNodeIdentifiers();<NEW_LINE>List<BucketNode> bucketNodes = getBuckets(distributionId);<NEW_LINE>BucketReassigner reassigner = new BucketReassigner(nodeIds, bucketNodes);<NEW_LINE>List<String> assignments = new ArrayList<...
bucket, distributionId, oldNodeId, nodeId);
374,097
protected void onPostExecute(Throwable result) {<NEW_LINE>try {<NEW_LINE>LOG.d("onPostExecute");<NEW_LINE>if (TempHolder.get().loadingCancelled) {<NEW_LINE>super.onPostExecute(result);<NEW_LINE>closeActivity(null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>wrapperControlls.onLoadBookFinish();<NEW_LINE>if (result == null) {<...
R.string.msg_unexpected_error, msg);
58,175
private static Range convertRange(IOpenable openable, IProblem problem) {<NEW_LINE>try {<NEW_LINE>if (problem.getID() == IProblem.UndefinedType && openable instanceof ICompilationUnit) {<NEW_LINE>ICompilationUnit cu = (ICompilationUnit) openable;<NEW_LINE>int start = getSourceStart(cu, problem);<NEW_LINE>if (start > -1...
- dProblem.getSourceStart() + 1;
267,426
public boolean GET() {<NEW_LINE>if ((this.cmd.length < 2) || (this.cmd.length > 3)) {<NEW_LINE>log.warn("Syntax: GET <remote-file> [<local-file>]");<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// (new File(cmd[1])).getName();<NEW_LINE>final String remote = this.cmd[1];<NEW_LINE>final boolean withoutLocalFile = this.cmd.l...
remote : this.cmd[2];
608,572
protected AreaChart<Number, Number> createChart() {<NEW_LINE>final NumberAxis xAxis = new NumberAxis(0, 128, 8);<NEW_LINE>final NumberAxis yAxis = new NumberAxis(0, 50, 10);<NEW_LINE>final AreaChart<Number, Number> ac = new AreaChart<Number, Number>(xAxis, yAxis);<NEW_LINE>// setup chart<NEW_LINE>ac.setId("audioAreaDem...
getData().add(series);
1,676,599
private void assertFilled(EventBean event) {<NEW_LINE>EPAssertionUtil.assertProps(event, FIELDS_ZERO, new Object[] { new String[] { "abc", "def" }, new Character[] { 'x', 'z' }, new char[] { 'x', 'y' }, new Boolean[] { true, false }, new boolean[] { false, true }, new Byte[] { 10, 11 }, new byte[] { 12, 13 } });<NEW_LI...
] { 42, 43 } });
10,521
public Object calculate(Context ctx) {<NEW_LINE>if (prevRank == null) {<NEW_LINE>prepare(param, ctx);<NEW_LINE>if (gexps != null) {<NEW_LINE>int gcount = gexps.length;<NEW_LINE>prevGroupVals = new Object[gcount];<NEW_LINE>for (int i = 0; i < gcount; ++i) {<NEW_LINE>prevGroupVals[i] = gexps[i].calculate(ctx);<NEW_LINE>}...
prevVal = exp.calculate(ctx);
779,618
public void draw(Batch spriteBatch, int start, int end) {<NEW_LINE>if (pageVertices.length == 1) {<NEW_LINE>// 1 page.<NEW_LINE>spriteBatch.draw(font.getRegion().getTexture(), pageVertices[0], start * 20, <MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Determine vertex offset and count to render for each page. Some page...
(end - start) * 20);
71,345
public static void init() {<NEW_LINE>// Metrics registries will be initialized only if enabled<NEW_LINE>if (!Configuration.root().getBoolean("metrics", false)) {<NEW_LINE>LOGGER.debug("Metrics not enabled in the conf file.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Metrics & healthcheck registries will be initialized o...
= AnalyticJob.class.getSimpleName();
1,093,516
private String createTooltip(@NotNull GraphQLError error, @NotNull String message, boolean isMultiple) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<html>").append<MASK><NEW_LINE>if (isMultiple) {<NEW_LINE>sb.append("<br/>").append(GraphQLBundle.message("graphql.inspection.related.definitions"...
(message).append("<br/>");
445,055
private static Polygon buildPolygon(List<Point[]> polygon) {<NEW_LINE>List<LinearRing> holes;<NEW_LINE>Point[] shell = polygon.get(0);<NEW_LINE>if (polygon.size() > 1) {<NEW_LINE>holes = new ArrayList<>(polygon.size() - 1);<NEW_LINE>for (int i = 1; i < polygon.size(); ++i) {<NEW_LINE>Point[] coords = polygon.get(i);<NE...
[c].getY());
1,777,079
public void run() {<NEW_LINE>double percentile = routerConfig.routerLatencyToleranceQuantile * 100;<NEW_LINE>for (Map.Entry<Resource, CachedHistogram> resourceToHistogram : getBlobLocalDcResourceToLatency.entrySet()) {<NEW_LINE>Resource resource = resourceToHistogram.getKey();<NEW_LINE>CachedHistogram histogram = resou...
Resource resource = resourceToHistogram.getKey();
1,327,452
private void initUserComponents() {<NEW_LINE>GridBagConstraints gridBagConstraints;<NEW_LINE>// panel parameters<NEW_LINE>setLayout(new GridBagLayout());<NEW_LINE>setBorder(new EmptyBorder(new Insets(5, 5, 0, 5)));<NEW_LINE>setPreferredSize(new Dimension(preferredWidth, 22 * fieldEntries.size() + 8));<NEW_LINE>for (int...
0, 0, 4, 4);
917,231
public static RemoveFacePhotosResponse unmarshall(RemoveFacePhotosResponse removeFacePhotosResponse, UnmarshallerContext context) {<NEW_LINE>removeFacePhotosResponse.setRequestId(context.stringValue("RemoveFacePhotosResponse.RequestId"));<NEW_LINE>removeFacePhotosResponse.setCode(context.stringValue("RemoveFacePhotosRe...
(context.stringValue("RemoveFacePhotosResponse.Message"));
1,688,443
public void execute() {<NEW_LINE>List<UserVO> users <MASK><NEW_LINE>if (getUserId() != null) {<NEW_LINE>UserVO user = _userDao.getUser(getUserId());<NEW_LINE>if (user != null) {<NEW_LINE>Account account = _accountService.getAccount(user.getAccountId());<NEW_LINE>_accountService.checkAccess(CallContext.current().getCall...
= new ArrayList<UserVO>();
1,295,737
private void cutCurrentCache() {<NEW_LINE>final File lock = Configuration.getInstance().getOsmdroidTileCache();<NEW_LINE>synchronized (lock) {<NEW_LINE>if (mUsedCacheSpace > Configuration.getInstance().getTileFileSystemCacheTrimBytes()) {<NEW_LINE>Log.d(IMapView.LOGTAG, "Trimming tile cache from " + mUsedCacheSpace + "...
toArray(new File[0]);
997,740
public static ScenarioSetup newSentryInstance() {<NEW_LINE>return new ScenarioSetup() {<NEW_LINE><NEW_LINE>public void execute(ProcessEngine engine, String scenarioName) {<NEW_LINE>CaseService caseService = engine.getCaseService();<NEW_LINE>CaseInstance caseInstance = caseService.createCaseInstanceByKey("case", scenari...
.singleResult().getId();
627,230
private void parseChildren(JsonLikeObject theObject, ParserState<?> theState) {<NEW_LINE>int allUnderscoreNames = 0;<NEW_LINE>int handledUnderscoreNames = 0;<NEW_LINE>for (Iterator<String> keyIter = theObject.keyIterator(); keyIter.hasNext(); ) {<NEW_LINE>String nextName = keyIter.next();<NEW_LINE>if ("resourceType".eq...
parseExtension(theState, array, false);
616,424
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {<NEW_LINE>super.onRequestPermissionsResult(requestCode, permissions, grantResults);<NEW_LINE>PermissionsRequest request = mViewModel.getPermissionsRequestValue();<NEW_LINE>if (request.permissionList.size...
updateWeather(request.triggeredByUser, false);
1,290,378
public OpenAPIExpectation[] deserializeArray(String jsonOpenAPIExpectations, boolean allowEmpty) {<NEW_LINE>List<OpenAPIExpectation> expectations = new ArrayList<>();<NEW_LINE>if (isBlank(jsonOpenAPIExpectations)) {<NEW_LINE>throw new IllegalArgumentException("1 error:" + <MASK><NEW_LINE>} else {<NEW_LINE>List<String> ...
NEW_LINE + " - an expectation or expectation array is required but value was \"" + jsonOpenAPIExpectations + "\"");
22,349
private void submitForm() {<NEW_LINE>if (!validateForm()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>InputMethodManager imm = (InputMethodManager) getSystemService(INPUT_METHOD_SERVICE);<NEW_LINE>imm.hideSoftInputFromWindow(et_user.getWindowToken(), 0);<NEW_LINE>if (!isOnline(this)) {<NEW_LINE>loginLoggingIn.setVisibility(...
generatingKeysText.setVisibility(View.VISIBLE);
1,604,651
private void createExecutionPlan() throws OrderingConstraintException {<NEW_LINE>executionPlan = new ExecutionPlan();<NEW_LINE>// Use user preferences to decide which detectors are enabled.<NEW_LINE>DetectorFactoryChooser detectorFactoryChooser = new DetectorFactoryChooser() {<NEW_LINE><NEW_LINE>HashSet<DetectorFactory...
executionPlan.getNumPasses() + " passes in execution plan");
364,142
public void run(String modelId) {<NEW_LINE>if (isCancelled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOGGER.info("[{}] Started inference on test data against model [{}]", config.getId(), modelId);<NEW_LINE>try {<NEW_LINE>PlainActionFuture<LocalModel> localModelPlainActionFuture = new PlainActionFuture<>();<NEW_LINE><MASK...
modelLoadingService.getModelForInternalInference(modelId, localModelPlainActionFuture);
1,053,253
private void createNetworkHelperEntry(UserStatisticsVO userStat, UsageNetworkVO usageNetworkStats, long timestamp) {<NEW_LINE>long currentAccountedBytesSent = 0L;<NEW_LINE>long currentAccountedBytesReceived = 0L;<NEW_LINE>if (usageNetworkStats != null) {<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.debug...
userStat.getAggBytesSent(), timestamp);
435,104
public void readFields(DataInput in) throws IOException {<NEW_LINE>transactionId = in.readLong();<NEW_LINE>label = Text.readString(in);<NEW_LINE>dbId = in.readLong();<NEW_LINE>int size = in.readInt();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>TableCommitInfo info = new TableCommitInfo();<NEW_LINE>info.readFiel...
, Text.readString(in));
826,527
public boolean place(Item item, Block block, Block target, BlockFace face, double fx, double fy, double fz, Player player) {<NEW_LINE>if (face != BlockFace.DOWN) {<NEW_LINE>CompoundTag nbt = new CompoundTag().putString("id", BlockEntity.SIGN).putInt("x", (int) block.x).putInt("y", (int) block.y).putInt("z", (int) block...
getUniqueId().toString());
1,464,364
public static RPr apply(ParaRPr source, RPr destination) {<NEW_LINE>if (!isEmpty(source)) {<NEW_LINE>if (destination == null)<NEW_LINE>destination = Context<MASK><NEW_LINE>destination.setRStyle(apply(source.getRStyle(), destination.getRStyle()));<NEW_LINE>destination.setRFonts(apply(source.getRFonts(), destination.getR...
.getWmlObjectFactory().createRPr();
1,161,450
/* Returns true iff s1 is reachable from s0 (s0 -+-> s1). */<NEW_LINE>public final boolean checkReachability(TLCState s0, TLCState s1) {<NEW_LINE>Action next = this.tool.getNextStateSpec();<NEW_LINE>if (!this.tool.isValid(next, s0, s1)) {<NEW_LINE>ToolIO.out.println("The following transition is illegal: ");<NEW_LINE>St...
.tool.getImpliedActions().length;
1,724,766
public static boolean isClockwiseWay(List<Way> ways) {<NEW_LINE>if (ways.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>LatLon latLon = ways.<MASK><NEW_LINE>double lat = latLon.getLatitude();<NEW_LINE>double lon = 180;<NEW_LINE>double firstLon = -360;<NEW_LINE>boolean firstDirectionUp = false;<NEW_LINE>double p...
get(0).getLatLon();
1,713,482
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static int intValue(com.sun.jdi.PrimitiveValue a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans.modules.debugger.jpda.JDIExcepti...
logCallEnd("com.sun.jdi.PrimitiveValue", "intValue", retValue);
303,764
public boolean beginDrag(MouseDownEvent event) {<NEW_LINE>// detect a click on this splitter<NEW_LINE>Element targetEl = event.getNativeEvent().getEventTarget().cast();<NEW_LINE>if (!targetEl.hasClassName(RES.styles().splitter()))<NEW_LINE>return false;<NEW_LINE>int index = StringUtil.parseInt(targetEl.getAttribute("da...
setColumnWidth(i, width + "px");
749,614
protected void decode() {<NEW_LINE>RLPList paramsList = (RLPList) RLP.decode2(encoded).get(0);<NEW_LINE>key = new Key(paramsList.get<MASK><NEW_LINE>if (paramsList.size() > 1) {<NEW_LINE>id = ByteUtil.byteArrayToLong(paramsList.get(1).getRLPData());<NEW_LINE>}<NEW_LINE>if (paramsList.size() > 2) {<NEW_LINE>maxSize = Byt...
(0).getRLPData());
1,280,661
private static void extractSite0(String dir, Log log, String publicDir, byte[] buffer, String thisVersion) throws IOException {<NEW_LINE>try (final InputStream is = ServerMain.class.getResourceAsStream(PUBLIC_ZIP)) {<NEW_LINE>if (is != null) {<NEW_LINE>try (ZipInputStream zip = new ZipInputStream(is)) {<NEW_LINE>ZipEnt...
$(']').$();
445,029
final GetDataflowEndpointGroupResult executeGetDataflowEndpointGroup(GetDataflowEndpointGroupRequest getDataflowEndpointGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDataflowEndpointGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,296,130
private <T> CosmosPagedFlux<T> queryItemsHelper(SqlQuerySpec sqlQuerySpec, CosmosQueryRequestOptions options, Class<T> classType, boolean isRetry) {<NEW_LINE>setRequestHeaders(options);<NEW_LINE>CosmosQueryRequestOptions finalOptions = options;<NEW_LINE>Flux<FeedResponse<T>> tFlux = CosmosBridgeInternal.queryItemsInter...
final CosmosException cosmosException = (CosmosException) exception;
481,606
public boolean verify() {<NEW_LINE>assertTrue(bitMemoryTransferSize == AArch64Address.ANY_SIZE || bitMemoryTransferSize == 8 || bitMemoryTransferSize == 16 || bitMemoryTransferSize == 32 || bitMemoryTransferSize == 64 || bitMemoryTransferSize == 128, "Invalid memory transfer size.");<NEW_LINE>switch(addressingMode) {<N...
assertTrue(scaleFactor == 1, "Should not have scale factor.");
1,225,411
protected Map<String, SpringResource> generateResourceMap(Set<Class<?>> validClasses) throws GenerateException {<NEW_LINE>Map<String, SpringResource> resourceMap = new HashMap<String, SpringResource>();<NEW_LINE>for (Class<?> aClass : validClasses) {<NEW_LINE>RequestMapping requestMapping = findAnnotation(aClass, Reque...
(aClass.getMethods()));
1,290,229
public Map<Integer, ParameterContext> buildParams() {<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>(22);<NEW_LINE>int index = 0;<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setString, this.tableSchema);<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setString, t...
ParameterMethod.setString, this.tbMetaMap);
322,969
private Set<ClassInfoType> processExplodedJarFormat(Path path) throws ClassScannerException {<NEW_LINE>final HashSet<ClassInfoType> citSet <MASK><NEW_LINE>final HashSet<Path> archiveFiles = new HashSet<Path>();<NEW_LINE>try {<NEW_LINE>Files.walkFileTree(path, new SimpleFileVisitor<Path>() {<NEW_LINE><NEW_LINE>@Override...
= new HashSet<ClassInfoType>();
1,613,374
protected DmnDecisionTableRuleImpl transformDecisionTableRule(Rule rule) {<NEW_LINE>DmnElementTransformHandler<Rule, DmnDecisionTableRuleImpl> handler = handlerRegistry.getHandler(Rule.class);<NEW_LINE>DmnDecisionTableRuleImpl dmnRule = handler.handleElement(this, rule);<NEW_LINE>// validate rule id<NEW_LINE>if (dmnRul...
outputEntries.size(), dmnRule);
1,102,022
final GetTriggersResult executeGetTriggers(GetTriggersRequest getTriggersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTriggersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
1,706,495
private boolean stateEventHandler(StateEvent stateEvent) {<NEW_LINE>logger.info(<MASK><NEW_LINE>if (!checkProcessInstance(stateEvent)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean result = false;<NEW_LINE>switch(stateEvent.getType()) {<NEW_LINE>case PROCESS_STATE_CHANGE:<NEW_LINE>result = processStateChangeHand...
"process event: {}", stateEvent.toString());
216,250
public void storeAccessToken(OAuth2AccessToken token, OAuth2Authentication authentication) {<NEW_LINE>String accessKey = (ACCESS + token.getValue());<NEW_LINE>String authKey = (AUTH + token.getValue());<NEW_LINE>String authToAccessKey = (AUTH_TO_ACCESS + authenticationKeyGenerator.extractKey(authentication));<NEW_LINE>...
_logger.trace("authKey " + authKey);
23,115
private void fieldTransformations(Map<String, Object> doc) {<NEW_LINE>for (Map.Entry<String, Object> x : doc.entrySet()) {<NEW_LINE>// Work on embedded Maps, too.<NEW_LINE>if (x.getValue() instanceof Map) {<NEW_LINE>x.setValue(Maps.newHashMap((Map<String, Object><MASK><NEW_LINE>fieldTransformations((Map<String, Object>...
) x.getValue()));
1,628,091
public static void showBalloonForComponent(@Nonnull Component component, @Nonnull final String message, final MessageType type, final boolean atTop, @Nullable final Disposable disposable) {<NEW_LINE>final JBPopupFactory popupFactory = JBPopupFactory.getInstance();<NEW_LINE>if (popupFactory == null)<NEW_LINE>return;<NEW...
Balloon balloon = balloonBuilder.createBalloon();
1,639,024
private String[] validateSearchBases(String[] searchBases, List<HashMap<String, String>> baseEntries) {<NEW_LINE>final String METHODNAME = "validateSearchBases(String[], List<HashMap<String, String>>)";<NEW_LINE>List<String> validSearchBase = new ArrayList<String>();<NEW_LINE>boolean isValid = false;<NEW_LINE>for (int ...
String key = itr.next();
1,193,854
// Wait until the last priority to unload, so plugins can still perform permission checks on this event<NEW_LINE>@EventHandler(priority = EventPriority.MONITOR)<NEW_LINE>public void onPlayerQuit(PlayerQuitEvent e) {<NEW_LINE>final Player player = e.getPlayer();<NEW_LINE><MASK><NEW_LINE>// perform unhooking from bukkit ...
handleDisconnect(player.getUniqueId());
736,252
public void onClick(View v) {<NEW_LINE>final Builder builder = jobDispatcher.newJobBuilder().setTag(form.tag.get()).setRecurring(form.recurring.get()).setLifetime(form.persistent.get() ? Lifetime.FOREVER : Lifetime.UNTIL_NEXT_BOOT).setService(DemoJobService.class).setReplaceCurrent(form.replaceCurrent.get()).setRetrySt...
, form.getWinEndSeconds()));
624,614
public boolean apply(Game game, Ability source) {<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl();<NEW_LINE>// Exile hand<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(source....
(uuid) != Zone.EXILED);
363,490
public ExtendLicenseConsumptionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExtendLicenseConsumptionResult extendLicenseConsumptionResult = new ExtendLicenseConsumptionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
JsonToken token = context.getCurrentToken();
1,543,781
public void runMerge(HoodieTable<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> table, HoodieMergeHandle<T, List<HoodieRecord<T>>, List<HoodieKey>, List<WriteStatus>> upsertHandle) throws IOException {<NEW_LINE>final boolean externalSchemaTransformation = table.getConfig().shouldUseExternalSchemaTransfor...
baseFile, reader, readSchema, externalSchemaTransformation);
188,189
public <C> /*>>> extends @NonNull Object*/<NEW_LINE>SpanContext extract(C carrier, Getter<C> getter) throws SpanContextParseException {<NEW_LINE>checkNotNull(carrier, "carrier");<NEW_LINE>checkNotNull(getter, "getter");<NEW_LINE>try {<NEW_LINE>String headerStr = getter.get(carrier, HEADER_NAME);<NEW_LINE>if (headerStr ...
headerStr.indexOf(TRACE_OPTION_DELIMITER, TRACE_ID_SIZE);
1,361,444
private void generateCodeSwitchPatternPrologue(BlockScope currentScope, CodeStream codeStream) {<NEW_LINE>this.expression.generateCode(currentScope, codeStream, true);<NEW_LINE>if ((this.switchBits & NullCase) == 0 && this.totalPattern == null) {<NEW_LINE>codeStream.dup();<NEW_LINE>codeStream.invokeJavaUtilObjectsrequi...
codeStream.classFile.recordBootstrapMethod(this);
917,054
static void exportToWkt(int export_flags, Geometry geometry, StringBuilder string) {<NEW_LINE>int type = geometry.getType().value();<NEW_LINE>switch(type) {<NEW_LINE>case Geometry.GeometryType.Polygon:<NEW_LINE>if ((export_flags & WktExportFlags.wktExportLineString) != 0 || (export_flags & WktExportFlags.wktExportMulti...
throw new IllegalArgumentException("Cannot export a Polygon as (Multi)LineString/(Multi)Point : " + export_flags);
660,572
public void write(org.apache.thrift.protocol.TProtocol prot, beginFateOperation_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (str...
struct.tnase.write(oprot);
840,068
// AsciiString Fast-Path implementation - no explicit bound-checks<NEW_LINE>static void writeAsciiString(AbstractByteBuf buffer, int writerIndex, AsciiString seq, int start, int end) {<NEW_LINE>final int begin = seq.arrayOffset() + start;<NEW_LINE>final int length = end - start;<NEW_LINE>if (PlatformDependent.hasUnsafe...
arrayOffset() + writerIndex, length);
1,001,627
final void parseStatusParameters() {<NEW_LINE>final AccessMessage message = (AccessMessage) mMessage;<NEW_LINE>mStatusCode = mParameters[0];<NEW_LINE>mStatusCodeName = getStatusCodeName(mStatusCode);<NEW_LINE>mElementAddress = MeshParserUtils.unsignedBytesToInt(mParameters[1], mParameters[2]);<NEW_LINE>mSubscriptionAdd...
.formatAddress(mElementAddress, true));
187,307
private void downloadAndSave(final ObservableEmitter<ImmutablePair<BitmapDrawable, Metadata>> emitter, final Disposable disposable) {<NEW_LINE>final File file = LocalStorage.getGeocacheDataFile(pseudoGeocode, url, true, true);<NEW_LINE>if (url.startsWith("data:image/")) {<NEW_LINE>if (url.contains(";base64,")) {<NEW_LI...
getTransparent1x1Drawable(resources), null));
167,938
public synchronized static void init(Context c) {<NEW_LINE>if (c == null) {<NEW_LINE>LOG.d("AppProfile init null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AppSP.get().init(c);<NEW_LINE>if (!Android6.canWrite(c)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (profile.equals(getCurrent(c))) {<NEW_LINE>LOG.d("AppProfile skip", ...
= new File(SYNC_FOLDER_ROOT, "Books");
256,189
protected Collection<Object> executeQuery(String dataType, SearchParameterMap map) {<NEW_LINE>// TODO: Once HAPI breaks this out from the server dependencies<NEW_LINE>// we can include it on its own.<NEW_LINE>ca.uhn.fhir.jpa.searchparam.SearchParameterMap hapiMap = ca.uhn.fhir.jpa<MASK><NEW_LINE>try {<NEW_LINE>Method[]...
.searchparam.SearchParameterMap.newSynchronous();
1,141,661
public void unbind(Name name) throws NamingException {<NEW_LINE>checkWritable();<NEW_LINE>while ((!name.isEmpty()) && (name.get(0).length() == 0)) name = name.getSuffix(1);<NEW_LINE>if (name.isEmpty())<NEW_LINE>throw new NamingException(rb<MASK><NEW_LINE>NamingEntry entry = bindings.get(name.get(0));<NEW_LINE>if (entry...
.getString(LogFacade.INVALID_NAME));
778,013
public static void main(String[] args) throws Exception {<NEW_LINE>// current clang version<NEW_LINE>System.out.println(clang.clang_getClangVersion().getString());<NEW_LINE>// Location of the *.cc file<NEW_LINE>File file = new File("sample1.cc");<NEW_LINE>System.out.println("Analyse file: " + file);<NEW_LINE>// Command...
PointerPointer command_line_args_ptr = new PointerPointer(command_line_args);
1,610,266
private static void defaultMobData(final EntityType type, final Entity spawned) {<NEW_LINE>if (type == EntityType.SKELETON) {<NEW_LINE>final EntityEquipment invent = ((LivingEntity) spawned).getEquipment();<NEW_LINE>InventoryWorkaround.setItemInMainHand(invent, new ItemStack(Material.BOW, 1));<NEW_LINE>InventoryWorkaro...
) spawned).setJumpStrength(1.2);
1,566,860
static <K, V> AbstractNode<K, V> mergeLeaves(int shift, LeafNode<K, V> leaf1, LeafSingleton<K, V> leaf2) {<NEW_LINE>final int h1 = leaf1.hash();<NEW_LINE>final int h2 = leaf2.hash();<NEW_LINE>if (h1 == h2) {<NEW_LINE>return new LeafList<>(h1, leaf2.key(), leaf2.value(), leaf1);<NEW_LINE>}<NEW_LINE>final int subH1 = has...
shift + SIZE, leaf1, leaf2);
1,116,697
private void queueIO(TCPBaseRequestContext req) throws IOException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "queueIO");<NEW_LINE>}<NEW_LINE>final TCPConnLink conn = req.getTCPConnLink();<NEW_LINE>final ChannelSelector channelSelector;<NEW_LINE>if (req.isRequest...
readInboundCount, readInbound, req, CS_READ_INBOUND);
1,622,331
public DatasetImageStats unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DatasetImageStats datasetImageStats = new DatasetImageStats();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
96,404
private void updateOutline(@NotNull FlutterOutline outline) {<NEW_LINE>currentOutline = outline;<NEW_LINE>final DefaultMutableTreeNode rootNode = getRootNode();<NEW_LINE>rootNode.removeAllChildren();<NEW_LINE>outlinesWithWidgets.clear();<NEW_LINE>outlineToNodeMap.clear();<NEW_LINE>if (outline.getChildren() != null) {<N...
propertyScrollPane = ScrollPaneFactory.createScrollPane(propertyEditPanel);
1,247,239
public static ConcurrentCompositeConfiguration convertToConcurrentCompositeConfiguration(CombinedConfiguration config) {<NEW_LINE>ConcurrentCompositeConfiguration root = new ConcurrentCompositeConfiguration();<NEW_LINE>IdentityHashMap<Configuration, String> reverseMap = new IdentityHashMap<Configuration, String>();<NEW...
Configuration conf = new ConcurrentMapConfiguration(child);
1,746,953
private EhcacheEntityResponse invokePassiveInternal(InvokeContext context, EhcacheEntityMessage message) {<NEW_LINE>if (message instanceof EhcacheOperationMessage) {<NEW_LINE>EhcacheOperationMessage operationMessage = (EhcacheOperationMessage) message;<NEW_LINE>try (EhcacheStateContext ignored = stateService.beginProce...
.invoke((StateRepositoryOpMessage) message);
90,632
public void cleanOlderProjectVersion(final int projectId, final int version, final List<Integer> excludedVersions) throws ProjectManagerException {<NEW_LINE>// Would use param of type Array from transOperator.getConnection().createArrayOf() but<NEW_LINE>// h2 doesn't support the Array type, so format the filter manuall...
this.dbOperator.transaction(cleanOlderProjectTransaction);
865,524
public void updateTile() {<NEW_LINE>if (currentPlan < 0 || currentPlan >= plans.size) {<NEW_LINE>currentPlan = -1;<NEW_LINE>}<NEW_LINE>if (consValid() && currentPlan != -1) {<NEW_LINE>time += edelta() * speedScl * Vars.state.rules.unitBuildSpeed(team);<NEW_LINE>progress += edelta() * Vars.state.rules.unitBuildSpeed(tea...
(payload.unit, this));
1,645,427
private static Response decorateSyncRetry(Invocation invocation, GovernanceRequest request) {<NEW_LINE>try {<NEW_LINE>// governance implementations.<NEW_LINE>RetryHandler retryHandler = <MASK><NEW_LINE>Retry retry = retryHandler.getActuator(request);<NEW_LINE>if (retry != null) {<NEW_LINE>CheckedFunction0<Response> sup...
BeanUtils.getBean(RetryHandler.class);
1,711,642
private RemoteViews updateWidgetListView(Context context, int appWidgetId) {<NEW_LINE>// which layout to show on widget<NEW_LINE>RemoteViews remoteViews = new RemoteViews(context.getPackageName(), R.layout.checklist_widget);<NEW_LINE>// RemoteViews Service needed to provide adapter for ListView<NEW_LINE>Intent svcInten...
check_list_view, R.id.empty_view);
1,583,217
private Movement runBackwards(BetterBlockPos src, BetterBlockPos dest, double cost) {<NEW_LINE>for (Moves moves : Moves.values()) {<NEW_LINE>Movement move = <MASK><NEW_LINE>if (move.getDest().equals(dest)) {<NEW_LINE>// have to calculate the cost at calculation time so we can accurately judge whether a cost increase ha...
moves.apply0(context, src);
1,093,620
public ListCodeRepositoriesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListCodeRepositoriesResult listCodeRepositoriesResult = new ListCodeRepositoriesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
)).unmarshall(context));
860,050
public StartEventsDetectionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartEventsDetectionJobResult startEventsDetectionJobResult = new StartEventsDetectionJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth...
String currentParentElement = context.getCurrentParentElement();
1,750,070
private void assignSerdes(DatastreamTaskImpl datastreamTask) {<NEW_LINE>Datastream datastream = datastreamTask.<MASK><NEW_LINE>SerDeSet destinationSet = null;<NEW_LINE>if (datastream.hasDestination()) {<NEW_LINE>DatastreamDestination destination = datastream.getDestination();<NEW_LINE>SerDe envelopeSerDe = null;<NEW_LI...
getDatastreams().get(0);
810
private void generateCppFiles() {<NEW_LINE>// Fetch the directory path that we'll write the C++ files too.<NEW_LINE>String directoryPath = this.processingEnv.getOptions().get(OPTION_CPP_DIR_PATH);<NEW_LINE>if ((directoryPath == null) || directoryPath.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch the JavaSc...
= new KrollBindingGenerator(directoryPath, jsModuleName);
1,839,979
private Executable resolveFactoryMethod(List<Method> executables, Function<Method, List<ResolvableType>> parameterTypesFactory, List<ResolvableType> valueTypes) {<NEW_LINE>List<? extends Executable> matches = executables.stream().filter((executable) -> match(parameterTypesFactory.apply(executable), valueTypes, Fallback...
collect(Collectors.toList());
1,774,757
private DefaultActionGroup createPopupActionGroup() {<NEW_LINE>final LayoutTree tree = myLayoutTreeComponent.getLayoutTree();<NEW_LINE>DefaultActionGroup popupActionGroup = new DefaultActionGroup();<NEW_LINE>popupActionGroup.add(createAddGroup());<NEW_LINE>final RemovePackagingElementAction removeAction = new RemovePac...
add(AnSeparator.getInstance());
209,527
protected QualifiedDeclaration<ModuleDeclaration> lookupModuleDeclaration(String name) {<NEW_LINE>Set<String> possibleNames = new LinkedHashSet<String>();<NEW_LINE>String mainModuleName = "";<NEW_LINE>if (getRoot() instanceof CompilationUnit) {<NEW_LINE>mainModuleName = ((CompilationUnit) getRoot()).getMainModule().get...
? name : containerName + "." + name;
917,186
public ModelMapper createNew(List<Row> modelRows) {<NEW_LINE>System.out.println("update model");<NEW_LINE>FmModelMapper fmModelMapper = new FmModelMapper(getModelSchema(), getDataSchema(), params.clone());<NEW_LINE>FmModelData modelData = new FmModelData();<NEW_LINE>modelData.vectorColName = this.model.vectorColName;<N...
.labelColName = this.model.labelColName;
202,064
public void killAllLoads(boolean primitiveOnly) {<NEW_LINE>if (!REDUNDANT_LOAD_ELIMINATION) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FieldSummary fieldSummary = AnalysisContext<MASK><NEW_LINE>HashSet<AvailableLoad> killMe = new HashSet<AvailableLoad>();<NEW_LINE>for (AvailableLoad availableLoad : getAvailableLoadMap().ke...
.currentAnalysisContext().getFieldSummary();
1,508,427
public Void visitTypeCast(TypeCastTree node, Void p) {<NEW_LINE>AnnotatedTypeMirror exprType = atypeFactory.<MASK><NEW_LINE>AnnotatedTypeMirror castType = atypeFactory.getAnnotatedType(node);<NEW_LINE>AnnotationMirror exprAnno = null, castAnno = null;<NEW_LINE>// find commitment annotation<NEW_LINE>for (Class<? extends...
getAnnotatedType(node.getExpression());
591,955
protected SearchHit createSearchHit(SearchContext context, FieldsVisitor fieldsVisitor, int docId, int subDocId, Map<String, Set<String>> storedToRequestedFields, LeafReaderContext subReaderContext) {<NEW_LINE>if (fieldsVisitor == null) {<NEW_LINE>return new SearchHit(docId);<NEW_LINE>}<NEW_LINE>loadStoredFields(contex...
fieldsVisitor, subDocId, storedToRequestedFields, subReaderContext);
1,636,483
final ListWorldTemplatesResult executeListWorldTemplates(ListWorldTemplatesRequest listWorldTemplatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listWorldTemplatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListWorldTemplates");