idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
679,274
final StartOnDemandReplicationRunResult executeStartOnDemandReplicationRun(StartOnDemandReplicationRunRequest startOnDemandReplicationRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startOnDemandReplicationRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
false), new StartOnDemandReplicationRunResultJsonUnmarshaller());
1,331,190
public static ProxyDefinitions createFromMetadata(Metadata storeableMetadata, PreGeneratedProxies preGeneratedProxies) {<NEW_LINE>// Check upfront for any need across all metadata: would be nice to avoid initializing the Bytecode provider.<NEW_LINE>LazyBytecode lazyBytecode = new LazyBytecode();<NEW_LINE>if (needAnyPro...
, proxyClassDefinition.getConstructor()));
810,640
public void disconnect(MqttDisconnect disconnect, long quiesceTimeout, MqttToken token) throws MqttException {<NEW_LINE>final String methodName = "disconnect";<NEW_LINE>synchronized (conLock) {<NEW_LINE>if (isClosed()) {<NEW_LINE>// @TRACE 223=failed: in closed state<NEW_LINE>log.fine(CLASS_NAME, methodName, "223");<NE...
fine(CLASS_NAME, methodName, "210");
1,329,477
public DescriptiveUrl toDownloadUrl(final Path file, final Void options, final PasswordCallback callback) throws BackgroundException {<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>final CreateFileShareRequest request = new CreateFileShareRequest().fileId(fileid.getFileId(file, new DisabledListProgressListener()));<NEW...
Host bookmark = session.getHost();
40,575
public CompletableFuture<RawJobMetrics> runLightJob(long jobId, long executionId, Address coordinator, int coordinatorMemberListVersion, Set<MemberInfo> participants, ExecutionPlan plan) {<NEW_LINE>assert executionId == jobId : "executionId(" + idToString(executionId) + ") != jobId(" + idToString(jobId) + ")";<NEW_LINE...
(execCtx, new CancellationException());
1,221,124
private void registerForPavement(Consumer<FinishedRecipe> consumer, String color, Item mainInput) {<NEW_LINE><MASK><NEW_LINE>Block base = Registry.BLOCK.getOptional(prefix(baseName)).get();<NEW_LINE>Block stair = Registry.BLOCK.getOptional(prefix(baseName + LibBlockNames.STAIR_SUFFIX)).get();<NEW_LINE>Block slab = Regi...
String baseName = color + LibBlockNames.PAVEMENT_SUFFIX;
394,834
private static List<AnAction> doBuildSurroundActions(Project project, Editor editor, PsiFile file, Map<Surrounder, PsiElement[]> surrounders) {<NEW_LINE>List<AnAction> applicable = new ArrayList<>();<NEW_LINE>Set<Character> usedMnemonicsSet = new HashSet<>();<NEW_LINE>int index = 0;<NEW_LINE>for (Map.Entry<Surrounder, ...
add(AnSeparator.getInstance());
689,786
protected JDialog createDialog(Component parent) throws HeadlessException {<NEW_LINE>final JDialog dialog = super.createDialog(parent);<NEW_LINE>customizer.accept(dialog);<NEW_LINE>if (optionComponents.size() == 1) {<NEW_LINE>dialog.getContentPane().add(optionComponents.get(0), BorderLayout.SOUTH);<NEW_LINE>} else if (...
globalInputMap = getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
1,061,642
private void removeSensorJob(Device device, DeviceStateUpdate deviceStateUpdate) {<NEW_LINE>switch(deviceStateUpdate.getType()) {<NEW_LINE>case DeviceStateUpdate.UPDATE_SCENE_CONFIG:<NEW_LINE>if (sceneJobExecutor != null) {<NEW_LINE>sceneJobExecutor.removeSensorJob(device, SceneConfigReadingJob.getID(device, deviceStat...
, deviceStateUpdate.getTypeAsSensorEnum()));
406,575
public void configure(B http) throws Exception {<NEW_LINE>PortMapper portMapper = http.getSharedObject(PortMapper.class);<NEW_LINE>if (portMapper != null) {<NEW_LINE>this.authenticationEntryPoint.setPortMapper(portMapper);<NEW_LINE>}<NEW_LINE>RequestCache requestCache = http.getSharedObject(RequestCache.class);<NEW_LIN...
http.getSharedObject(SessionAuthenticationStrategy.class);
730,571
public void initViewContainer(Activity activity, int localUid, HashMap<Integer, SurfaceView> uids, boolean isLandscape) {<NEW_LINE>boolean newCreated = initAdapter(activity, localUid, uids);<NEW_LINE>if (!newCreated) {<NEW_LINE>mGridVideoViewContainerAdapter.setLocalUid(localUid);<NEW_LINE>mGridVideoViewContainerAdapte...
int count = uids.size();
723,351
public void loadContactImage(CircleImageView imageView, TextView textView, Contact contact) {<NEW_LINE>try {<NEW_LINE>textView.setVisibility(View.VISIBLE);<NEW_LINE>imageView.setVisibility(View.GONE);<NEW_LINE>String contactNumber = "";<NEW_LINE>char firstLetter = 0;<NEW_LINE>contactNumber = contact.getDisplayName().to...
(String.valueOf(firstLetter));
1,517,673
public Malware unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Malware malware = new Malware();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE...
JsonToken token = context.getCurrentToken();
1,029,936
private void createWeekReportEvent(final IContextAware context, final I_PMM_Product pmmProduct, final SyncWeeklySupply syncWeeklySupply) {<NEW_LINE>logger.debug("Creating Week Report event from {} ({})", syncWeeklySupply, pmmProduct);<NEW_LINE>final I_PMM_WeekReport_Event event = InterfaceWrapperHelper.newInstance(I_PM...
setM_AttributeSetInstance_ID(pmmProduct.getM_AttributeSetInstance_ID());
22,778
private static void fill(ImageData data, int x, int y, int w, int h, RGB color, int radius, int alpha) {<NEW_LINE>Rectangle topLeft = new Rectangle(x, y, radius, radius);<NEW_LINE>Rectangle topRight = new Rectangle(x + w - radius, y, radius, radius);<NEW_LINE>Rectangle bottomLeft = new Rectangle(x, y + h - radius, radi...
cx, cy, color, alpha);
1,820,063
public void clone(String srcTableName, String newTableName, CloneConfiguration config) throws AccumuloSecurityException, TableNotFoundException, AccumuloException, TableExistsException {<NEW_LINE>NEW_TABLE_NAME.validate(newTableName);<NEW_LINE>TableId srcTableId = context.getTableId(srcTableName);<NEW_LINE>if (config.i...
> propertiesToExclude = config.getPropertiesToExclude();
1,773,655
public void run() {<NEW_LINE>int invalidSelectCount = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>try {<NEW_LINE>final Selector tSelector = this.selector;<NEW_LINE>++connectCount;<NEW_LINE>long start = System.nanoTime();<NEW_LINE>tSelector.select(1000L);<NEW_LINE>long end = System.nanoTime();<NEW_LINE>connect(tSelector);<NEW_LIN...
LOGGER.warn(name, e);
968,666
protected final void doBracketMatching() {<NEW_LINE>// We always need to repaint the "matched bracket" highlight if it<NEW_LINE>// exists.<NEW_LINE>if (match != null) {<NEW_LINE>repaint(match);<NEW_LINE>if (dotRect != null) {<NEW_LINE>repaint(dotRect);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// If a matching bracket is found, g...
match = modelToView(bracketInfo.y);
1,702,623
private static Icon findIcon(@NotNull final CompletionSuggestion suggestion) {<NEW_LINE>final Element element = suggestion.getElement();<NEW_LINE>if (element != null) {<NEW_LINE>final String returnType = element.getReturnType();<NEW_LINE>if (!StringUtils.isEmpty(returnType)) {<NEW_LINE>final String name = element.getNa...
return icon != null ? icon : EMPTY_ICON;
239,511
private void addDAMLOILVocabulary() {<NEW_LINE>synonymMap.put(daml("subClassOf"), RDFS_SUBCLASS_OF.getIRI());<NEW_LINE>synonymMap.put(daml("imports"), OWL_IMPORTS.getIRI());<NEW_LINE>synonymMap.put(daml("range"), RDFS_RANGE.getIRI());<NEW_LINE>synonymMap.put(daml("hasValue"), OWL_HAS_VALUE.getIRI());<NEW_LINE>synonymMa...
), OWL_SOME_VALUES_FROM.getIRI());
1,838,584
public // calculate gradient<NEW_LINE>void createNewTree() throws Exception {<NEW_LINE>LOG.info("------Create new tree------");<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>// 1. create new tree, initialize tree nodes and node stats<NEW_LINE>RegTree tree = new RegTree(this.param);<NEW_LINE>tree.initTr...
.nodePosEnd[nid] = -1;
1,037,017
public INDArray appendBias(INDArray... vectors) {<NEW_LINE>Preconditions.checkArgument(vectors != null && vectors.length > 0, "vectros must be not null and have at least one element");<NEW_LINE>int size = 0;<NEW_LINE>for (INDArray vector : vectors) {<NEW_LINE>size += vector.rows();<NEW_LINE>Preconditions.checkArgument(...
.dataType(), 1));
1,070,673
public static ListQuotaApplicationsResponse unmarshall(ListQuotaApplicationsResponse listQuotaApplicationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQuotaApplicationsResponse.setRequestId(_ctx.stringValue("ListQuotaApplicationsResponse.RequestId"));<NEW_LINE>listQuotaApplicationsResponse.setTotalCount(_ctx.inte...
("ListQuotaApplicationsResponse.QuotaApplications[" + i + "].NoticeType"));
706,420
public static DescribeDcdnUserBillHistoryResponse unmarshall(DescribeDcdnUserBillHistoryResponse describeDcdnUserBillHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnUserBillHistoryResponse.setRequestId(_ctx.stringValue("DescribeDcdnUserBillHistoryResponse.RequestId"));<NEW_LINE>List<BillHistoryDataIte...
("DescribeDcdnUserBillHistoryResponse.BillHistoryData[" + i + "].Dimension"));
701,020
private void runCraft() throws Throwable {<NEW_LINE>if (Tools.LOCAL_RENDERER == null) {<NEW_LINE>Tools.LOCAL_RENDERER = LauncherPreferences.PREF_RENDERER;<NEW_LINE>}<NEW_LINE>Logger.getInstance().appendToLog("--------- beggining with launcher debug");<NEW_LINE>Logger.getInstance().appendToLog("Info: Launcher version: "...
.jreReleaseList = JREUtils.readJREReleaseProperties();
1,261,472
public static void horizontal11(Kernel1D_S32 kernel, GrayS32 image, GrayS32 dest) {<NEW_LINE>final int[] dataSrc = image.data;<NEW_LINE>final int[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int <MASK><NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel.data[3];<NEW_L...
k2 = kernel.data[1];
845,981
public void drawEventBasedGateway(String id, GraphicInfo graphicInfo) {<NEW_LINE>// rhombus<NEW_LINE>drawGateway(graphicInfo);<NEW_LINE>int x = (int) graphicInfo.getX();<NEW_LINE>int y = (int) graphicInfo.getY();<NEW_LINE>int width = (int) graphicInfo.getWidth();<NEW_LINE>int height = (int) graphicInfo.getHeight();<NEW...
Polygon(xPoints, yPoints, 5);
1,616,607
private Job buildSimpleJob(QuartzJobContext quartzJobContext) {<NEW_LINE>SimpleTriggerImpl simpleTrigger = <MASK><NEW_LINE>String description = simpleTrigger.getDescription();<NEW_LINE>int priority = simpleTrigger.getPriority();<NEW_LINE>String name = quartzJobContext.getName();<NEW_LINE>int repeatCount = simpleTrigger...
(SimpleTriggerImpl) quartzJobContext.getTrigger();
958,007
private <T> List<T> doFind(RedisOperationChain criteria, long offset, int rows, String keyspace, Class<T> type) {<NEW_LINE>if (criteria == null || (CollectionUtils.isEmpty(criteria.getOrSismember()) && CollectionUtils.isEmpty(criteria.getSismember())) && criteria.getNear() == null) {<NEW_LINE>return getAdapter().getAll...
allKeys = new ArrayList<>();
1,395,999
private static RegisterMap<Variable> saveAtEntry(LIR lir, LIRGeneratorTool lirGen, LIRGenerationResult lirGenRes, RegisterArray calleeSaveRegisters, Architecture arch) {<NEW_LINE>AbstractBlockBase<?> startBlock = lir.getControlFlowGraph().getStartBlock();<NEW_LINE>ArrayList<LIRInstruction> instructions = lir.getLIRforB...
registerValue = register.asValue(lirKind);
178,199
private long allocateNewBlock(Nd nd, int blockSize) {<NEW_LINE>short poolId = getMemoryPoolId(nd);<NEW_LINE>int elementSize = getElementSize();<NEW_LINE>long bytesNeeded = BlockHeader.BLOCK_HEADER_BYTES + blockSize * elementSize;<NEW_LINE>// If we're close enough to filling the chunk that we wouldn't be able to fit any...
, result, (short) blockSize);
367,780
private void updateAllDatabaseUsedDataQuota() {<NEW_LINE>Catalog catalog = Catalog.getCurrentCatalog();<NEW_LINE>List<Long> dbIdList = catalog.getDbIds();<NEW_LINE>GlobalTransactionMgr globalTransactionMgr = catalog.getGlobalTransactionMgr();<NEW_LINE>for (Long dbId : dbIdList) {<NEW_LINE>Database db = catalog.getDb(db...
globalTransactionMgr.updateDatabaseUsedQuotaData(dbId, usedDataQuotaBytes);
1,253,361
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
(createPolygon(), fillSymbol));
1,718,365
private void train(List<Pair<String, FileFilter>> trainTreebankPath, Pair<String, FileFilter> devTreebankPath, String serializedPath) {<NEW_LINE>log.info("Training method: " + op.trainOptions().trainingMethod);<NEW_LINE>log.debug("Headfinder used to binarize trees: " + getTLPParams().headFinder().getClass());<NEW_LINE>...
transitionIndex.addAll(example.transitions);
1,536,608
protected String doIt() throws Exception {<NEW_LINE>final IInvoiceCandBL service = Services.get(IInvoiceCandBL.class);<NEW_LINE>final Properties ctx = getCtx();<NEW_LINE>final IInvoiceGenerateResult <MASK><NEW_LINE>final ADHyperlinkBuilder linkHelper = new ADHyperlinkBuilder();<NEW_LINE>final StringBuilder summary = ne...
result = service.generateInvoicesFromQueue(ctx);
151,601
final RejectTransitGatewayMulticastDomainAssociationsResult executeRejectTransitGatewayMulticastDomainAssociations(RejectTransitGatewayMulticastDomainAssociationsRequest rejectTransitGatewayMulticastDomainAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectTransitGatewayMult...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
586,210
public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>g.setColor(Color.WHITE);<NEW_LINE>g.fillRect(x, y, getIconWidth(), getIconHeight());<NEW_LINE>g.setColor(new Color(0xb5d5ff));<NEW_LINE>g.drawRect(x, y, getIconWidth(), getIconHeight());<NEW_LINE>float fontSize = getMaxFontSize(g, getIconWidth() - ...
).deriveFont(Font.BOLD);
559,521
public MongodConfig embeddedMongoConfiguration(EmbeddedMongoProperties embeddedProperties) throws IOException {<NEW_LINE>ImmutableMongodConfig.Builder builder = MongodConfig.builder().version(determineVersion(embeddedProperties));<NEW_LINE>EmbeddedMongoProperties.Storage storage = embeddedProperties.getStorage();<NEW_L...
String replSetName = storage.getReplSetName();
1,438,857
private static String applySetter(final JCCompilationUnit cu, JavacNode node, String sectionName) {<NEW_LINE>final JCTree n = node.get();<NEW_LINE>String javadoc = Javac.getDocComment(cu, n);<NEW_LINE>// step 1: Check if there is a 'SETTER' section. If yes, that becomes the new method's javadoc.<NEW_LINE>String <MASK><...
out = getJavadocSection(javadoc, sectionName);
554,676
public static Wallet adaptWallet(GateioFunds bterAccountInfo) {<NEW_LINE>List<Balance> balances = new ArrayList<>();<NEW_LINE>for (Entry<String, BigDecimal> funds : bterAccountInfo.getAvailableFunds().entrySet()) {<NEW_LINE>Currency currency = Currency.getInstance(funds.getKey().toUpperCase());<NEW_LINE>BigDecimal amou...
? BigDecimal.ZERO : locked));
1,237,330
public com.amazonaws.services.waf.model.WAFInternalErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.waf.model.WAFInternalErrorException wAFInternalErrorException = new com.amazonaws.services.waf.model.WAFInternalErrorException(null);<NEW_LINE>int o...
String currentParentElement = context.getCurrentParentElement();
438,222
private void initOrUpdateTransform() {<NEW_LINE>Map<String, TransformRequest> transformRequests = streamContext.getTransformRequests();<NEW_LINE>InlongStreamInfo streamInfo = streamContext.getStreamInfo();<NEW_LINE>final String groupId = streamInfo.getInlongGroupId();<NEW_LINE>final <MASK><NEW_LINE>List<TransformRespon...
String streamId = streamInfo.getInlongStreamId();
1,029,212
public void plus(final Pair<String, AbstractVcs> pair) {<NEW_LINE>// does not support<NEW_LINE>if (pair.getSecond().getDiffProvider() == null)<NEW_LINE>return;<NEW_LINE>final String key = pair.getFirst();<NEW_LINE>final AbstractVcs newVcs = pair.getSecond();<NEW_LINE>final VirtualFile root = getRootForPath(key);<NEW_LI...
= new VcsRoot(newVcs, root);
574,061
public static ListExecutionLogsResponse unmarshall(ListExecutionLogsResponse listExecutionLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listExecutionLogsResponse.setRequestId<MASK><NEW_LINE>listExecutionLogsResponse.setMaxResults(_ctx.integerValue("ListExecutionLogsResponse.MaxResults"));<NEW_LINE>listExecutionLog...
(_ctx.stringValue("ListExecutionLogsResponse.RequestId"));
678,734
public int countForTargetType(String assetGroup, String parentType, Map<String, String> termsFilter, String applicationFilter, String environmentFilter, int from, int size) throws Exception {<NEW_LINE>int count = 0;<NEW_LINE>String targetType = "vulninfo";<NEW_LINE>Map<String, Object> mustFilterMap = new LinkedHashMap<...
HashMap<String, Object>();
1,176,238
public void testDecimalInclusiveForNumber() throws Exception {<NEW_LINE>if (bean == null) {<NEW_LINE>throw new Exception("CDI didn't inject the bean TestBean into this servlet");<NEW_LINE>}<NEW_LINE>bean.testDecimalInclusiveValidationForNumber(9.9, 1.1, 10, 1);<NEW_LINE>try {<NEW_LINE>bean.testDecimalInclusiveValidatio...
10, 1, 10.1, .9);
1,698,367
public List<Supplier<List<HealthRecord>>> jobs(final HealthSupplier.HealthSupplierRequest request) {<NEW_LINE>final PwmApplication pwmApplication = request.getPwmApplication();<NEW_LINE>final SessionLabel sessionLabel = request.getSessionLabel();<NEW_LINE>if (pwmApplication.getConfig().readSettingAsBoolean(PwmSetting.H...
(), PwmConstants.DEFAULT_LOCALE));
1,131,513
private BlobServiceClientBuilder applyLocationMode(final BlobServiceClientBuilder builder, final AzureStorageSettings settings) {<NEW_LINE>final StorageConnectionString storageConnectionString = StorageConnectionString.create(settings.getConnectString(), logger);<NEW_LINE>final StorageEndpoint endpoint = storageConnect...
(createRetryPolicy(settings, null));
910,425
private List<Pair> list(Business business) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>EntityManager em = emc.get(Agent.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Root<Ag...
root.get(Agent_.lastStartTime);
1,811,876
protected void prepare() {<NEW_LINE>paySelectionUpdater = paySelectionBL.newPaySelectionUpdater();<NEW_LINE>final PaySelectionId paySelectionId = PaySelectionId.ofRepoId(getRecord_ID());<NEW_LINE>final I_C_PaySelection paySelection = paySelectionDAO.getById(paySelectionId).get();<NEW_LINE>paySelectionUpdater.setC_PaySe...
ofNullableCode(para.getParameterAsString());
1,091,894
final public static String encode(byte[] data, int off, int len) {<NEW_LINE>if (len <= 0)<NEW_LINE>return "";<NEW_LINE>char[] out = new char[len / 3 * 4 + 4];<NEW_LINE>int rindex = off;<NEW_LINE>int windex = 0;<NEW_LINE>int rest = len;<NEW_LINE>while (rest >= 3) {<NEW_LINE>int i = ((data[rindex] & 0xff) << 16) + ((data...
(i << 2) & 0x3f];
1,768,130
public void marshall(PresetWatermark presetWatermark, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (presetWatermark == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(presetWatermark.getId(), ID_BINDING);<N...
presetWatermark.getOpacity(), OPACITY_BINDING);
1,625,686
public Bitmap scaleCenterCrop(Bitmap source, int newHeight, int newWidth) {<NEW_LINE>int sourceWidth = source.getWidth();<NEW_LINE>int sourceHeight = source.getHeight();<NEW_LINE>// Compute the scaling factors to fit the new height and width,<NEW_LINE>// respectively.<NEW_LINE>// To cover the final image, the final sca...
xScale = (float) newWidth / sourceWidth;
818,421
public void testCaptureDebuggerStackPlugin() throws Throwable {<NEW_LINE>DomainFolder root = tool.getProject().getProjectData().getRootFolder();<NEW_LINE>program = createDefaultProgram("echo", ToyProgramBuilder._X64, this);<NEW_LINE>try (UndoableTransaction tid = UndoableTransaction.start(program, "Populate", true)) {<...
stack.getFrame(1, false);
1,740,053
public I_PP_Order execute() {<NEW_LINE>final ProductPlanningId productPlanningId = request.getProductPlanningId();<NEW_LINE>final I_PP_Product_Planning productPlanning = productPlanningId != null ? productPlanningsRepo.getById(productPlanningId) : null;<NEW_LINE>//<NEW_LINE>// Create PP Order<NEW_LINE>final I_PP_Order ...
ppOrderRecord.setScheduleType(X_PP_MRP.TYPEMRP_Demand);
118,849
protected void fillCluster(int seedX, int seedY, int clusterSize) {<NEW_LINE>float seedValue = image.unsafe_get(seedX, seedY);<NEW_LINE>checkTrue(seedValue != fillValue, "BUG! Shouldn't have gotten this far");<NEW_LINE>totalFilled++;<NEW_LINE>image.unsafe_set(seedX, seedY, fillValue);<NEW_LINE>open.reset();<NEW_LINE>op...
setTo(seedX, seedY, seedValue);
789,145
public android.widget.ImageButton createFavoriteButton() {<NEW_LINE>ChannelInfoDto channel = TvManager.getChannel(TvManager.getAllChannelsIndex(mProgram.getChannelId()));<NEW_LINE>boolean isFav = channel.getUserData() != null && channel<MASK><NEW_LINE>android.widget.ImageButton fave = addImgButton(mDButtonRow, isFav ? ...
.getUserData().getIsFavorite();
1,025,775
private void callAppriseCli(NotificationConfig notificationConfig, NotificationConfigEntry configEntry, String notificationTitle, String notificationBody) {<NEW_LINE>List<String> commands = new ArrayList<>();<NEW_LINE>commands.<MASK><NEW_LINE>if (notificationTitle != null) {<NEW_LINE>commands.add("-t");<NEW_LINE>comman...
add(notificationConfig.getAppriseCliPath());
397,780
protected int assignToNearestCluster() {<NEW_LINE>recomputeSeperation(csim);<NEW_LINE>int changed = 0;<NEW_LINE>for (DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {<NEW_LINE>final int orig = assignment.intValue(it);<NEW_LINE>double ls = lsim.doubleValue(it);<NEW_LINE>final double us = usim.doubleValue(i...
(fv, means[i]);
1,068,726
public static void dispatchAsyncServlet(Object asyncContext, String url) {<NEW_LINE>if (http == null)<NEW_LINE>return;<NEW_LINE>TraceContext ctx = http.getTraceContextFromAsyncContext(asyncContext);<NEW_LINE>if (ctx == null)<NEW_LINE>return;<NEW_LINE>boolean <MASK><NEW_LINE>if (self) {<NEW_LINE>// http.setSelfDispatch(...
self = http.isSelfDispatch(asyncContext);
1,184,097
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(untagResourceRequest));
1,756,396
protected void copyFile(String src, String dst) {<NEW_LINE>File srcFile = new File(src);<NEW_LINE>File dstFile = new File(dst);<NEW_LINE>try {<NEW_LINE>File reportSubdir = new File(getDestdir().toString() + DIR_SEP + "changes");<NEW_LINE>if (!reportSubdir.mkdir() && !reportSubdir.exists()) {<NEW_LINE>project.log("Warni...
InputStream in = new FileInputStream(src);
37,307
private synchronized void handleConnectResult(Handler<AsyncResult<Void>> completionHandler, AsyncResult<PgConnection> ar1) {<NEW_LINE>connecting = false;<NEW_LINE>if (ar1.succeeded()) {<NEW_LINE>conn = ar1.result();<NEW_LINE>conn.notificationHandler(PgSubscriberImpl.this::handleNotification);<NEW_LINE>conn.closeHandler...
handle(ar1.mapEmpty());
613,063
public UpdateRuleGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateRuleGroupResult updateRuleGroupResult = new UpdateRuleGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
982,041
private EVCacheLatch fixup(EVCacheClient sourceClient, EVCacheClient[] destClients, EVCacheKey evcKey, int timeToLive, Policy policy) {<NEW_LINE>final EVCacheLatchImpl latch = new EVCacheLatchImpl(policy, destClients.length, _appName);<NEW_LINE>try {<NEW_LINE>final CachedData readData = sourceClient.get(evcKey.getDeriv...
), readData, timeToLive, latch);
855,263
public static void renderArrow(MatrixStack matrixStack, BlockPos start, BlockPos end) {<NEW_LINE>BufferBuilder bufferBuilder = Tessellator.getInstance().getBuffer();<NEW_LINE>bufferBuilder.begin(VertexFormat.DrawMode.DEBUG_LINES, VertexFormats.POSITION);<NEW_LINE>int startX = start.getX();<NEW_LINE>int startY = start.g...
2, 0).next();
841,203
public void createMetricFeedbackWithResponse() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorClient.addFeedbackWithResponse#String-MetricFeedback-Context<NEW_LINE>final String metricId = "d3gh4i4-b804-4ab9-a70f-0da0c89cft3l";<NEW_LINE>final OffsetDateTime startTime = OffsetDateTime.parse("2020-01-01T00...
metricId, metricChangePointFeedback, Context.NONE);
1,450,362
public static DescribeConfigurationPriceResponse unmarshall(DescribeConfigurationPriceResponse describeConfigurationPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeConfigurationPriceResponse.setRequestId(_ctx.stringValue("DescribeConfigurationPriceResponse.RequestId"));<NEW_LINE>describeConfigurationPriceRe...
(_ctx.floatValue("DescribeConfigurationPriceResponse.Data.Order.DiscountAmount"));
421,835
private Object createReferenceProxy(SofaReference sofaReferenceAnnotation, Class<?> interfaceType) {<NEW_LINE>Reference reference = new ReferenceImpl(sofaReferenceAnnotation.uniqueId(), interfaceType, InterfaceMode.annotation, sofaReferenceAnnotation.jvmFirst());<NEW_LINE>BindingConverter bindingConverter = bindingConv...
().bindingType()));
188,151
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select symbol as mySymbol from " + "SupportMarketDataBean#length(5) " + "output every 6 events " + "order by mySymbol";<NEW_LINE>SupportUpdateListener listener = new SupportUpdateListe...
= "@name('s0') select symbol as mySymbol, price as myPrice from " + "SupportMarketDataBean#length(5) " + "output every 6 events " + "order by myPrice";
1,384,673
private static MappeableContainer or(List<MappeableContainer> containers) {<NEW_LINE>int parallelism;<NEW_LINE>// if there are few enough containers it's possible no bitmaps will be materialised<NEW_LINE>if (containers.size() < 16) {<NEW_LINE>MappeableContainer result = containers.get(0).clone();<NEW_LINE>for (int i = ...
result = result.lazyIOR(container);
1,357,809
public void bindMessage(@NonNull MessageResult messageResult, @NonNull GlideRequests glideRequests, @NonNull Locale locale, @Nullable String highlightSubstring) {<NEW_LINE>observeRecipient(messageResult.getConversationRecipient().live());<NEW_LINE>observeDisplayBody(null);<NEW_LINE>setSubjectViewText(null);<NEW_LINE>th...
, messageResult.getReceivedTimestampMs()));
1,683,791
private void validateConfiguration() {<NEW_LINE>Assert.state(!(this.requestChannelName != null && this.requestChannel != null), "'requestChannelName' and 'requestChannel' are mutually exclusive.");<NEW_LINE>Assert.state(!(this.replyChannelName != null && this<MASK><NEW_LINE>Assert.state(!(this.errorChannelName != null ...
.replyChannel != null), "'replyChannelName' and 'replyChannel' are mutually exclusive.");
1,772,514
public void linkBankStatementLinesByPaymentIds(@NonNull final Map<PaymentId, BankStatementAndLineAndRefId> bankStatementAndLineAndRefIds) {<NEW_LINE>if (bankStatementAndLineAndRefIds.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Set<PaymentId> paymentIds = bankStatementAndLineAndRefIds.keySet();<NEW_LINE>fina...
(paySelectionLine.getC_Payment_ID()));
174,468
private void checkRow(SessionLocal session, Row oldRow) {<NEW_LINE>SearchRow check = table.getRowFactory().createRow();<NEW_LINE>for (int i = 0, len = columns.length; i < len; i++) {<NEW_LINE>Column <MASK><NEW_LINE>int refIdx = refCol.getColumnId();<NEW_LINE>Column col = columns[i].column;<NEW_LINE>Value v = col.conver...
refCol = refColumns[i].column;
1,123,322
protected BeanDefinitionBuilder configureDefaultAuditHandlerAttributes(AuditingConfiguration configuration, BeanDefinitionBuilder builder) {<NEW_LINE>if (StringUtils.hasText(configuration.getAuditorAwareRef())) {<NEW_LINE>builder.addPropertyValue(AUDITOR_AWARE, createLazyInitTargetSourceBeanDefinition(configuration.get...
SET_DATES, configuration.isSetDates());
274,254
private HeadStemRelation discardWeakerStem() {<NEW_LINE>double worstGrade = Double.MAX_VALUE;<NEW_LINE>HeadStemRelation worstRel = null;<NEW_LINE>StemInter worstStem = null;<NEW_LINE>for (HeadStemRelation rel : rels) {<NEW_LINE>StemInter stem = (<MASK><NEW_LINE>double grade = stem.getGrade();<NEW_LINE>if (grade < worst...
StemInter) sig.getEdgeTarget(rel);
1,375,069
private RubyMap newMapForField(ThreadContext context, FieldDescriptor fieldDescriptor) {<NEW_LINE>RubyDescriptor mapDescriptor = (RubyDescriptor) getDescriptorForField(context, fieldDescriptor);<NEW_LINE>FieldDescriptor keyField = fieldDescriptor.getMessageType().findFieldByNumber(1);<NEW_LINE>FieldDescriptor valueFiel...
getMessageType().findFieldByNumber(2);
624,703
public static ListVpcGatewayEndpointsResponse unmarshall(ListVpcGatewayEndpointsResponse listVpcGatewayEndpointsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listVpcGatewayEndpointsResponse.setRequestId(_ctx.stringValue("ListVpcGatewayEndpointsResponse.RequestId"));<NEW_LINE>listVpcGatewayEndpointsResponse.setNextToke...
= new ArrayList<String>();
1,793,206
final UpdateVirtualServiceResult executeUpdateVirtualService(UpdateVirtualServiceRequest updateVirtualServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVirtualServiceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "App Mesh");
958,762
protected final Graphics2D createTextGraphics(double x, double y, double w, double h, double rotation, boolean clip, TextAlign align, TextBaseline valign) {<NEW_LINE>Graphics2D g2 = state.g;<NEW_LINE>state.g.setFont(state.myFont);<NEW_LINE>if (rotation != 0) {<NEW_LINE>g2 = (Graphics2D) state.g.create();<NEW_LINE>doubl...
* (Math.PI / 180);
327,150
public String decodeParseMethod(String method) {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>Tag methodTag = parseDictionary.getMethod(method);<NEW_LINE>Map<String, String> methodTagAttrs = methodTag.getAttributes();<NEW_LINE>String returnTypeID = methodTagAttrs.get(JITWatchConstants.ATTR_RETURN);<NE...
klassTagAttrs.get(JITWatchConstants.ATTR_NAME);
1,495,680
private synchronized void updateStatistics() {<NEW_LINE>if (System.currentTimeMillis() < m_nextStats)<NEW_LINE>return;<NEW_LINE>String sql = //<NEW_LINE>"SELECT " + "(SELECT COUNT(*) FROM R_Request r" + " INNER JOIN R_Status s ON (r.R_Status_ID=s.R_Status_ID AND s.IsOpen='Y') " + "WHERE r.R_RequestType_ID=x.R_RequestTy...
m_closed30No = rs.getInt(4);
541,713
/*<NEW_LINE>* taken from https://stackoverflow.com/a/29698326/4393565<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private static Map<?, ?> deepMerge(Map<String, Object> original, Map<String, Object> newMap) {<NEW_LINE>for (Object key : newMap.keySet()) {<NEW_LINE>if (newMap.get(key) instanceof Map && o...
>) original.get(key);
507,101
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_list, container, false);<NEW_LINE>// Save the views<NEW_LINE>mList = view.findViewById(R.id.fragment_list_recycler_view);<NEW_LINE>mSwi...
= new AppListAdapter(mService, mDefaultIcon);
472,503
public static void enqueue(long threadId, @NonNull RecipientId recipientId, List<MarkedMessageInfo> markedMessageInfos) {<NEW_LINE>if (recipientId.equals(Recipient.self().getId())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JobManager jobManager = ApplicationDependencies.getJobManager();<NEW_LINE>List<List<MarkedMessageInf...
collect(Collectors.toList());
1,412,942
public Map<String, Object> buildHiveWriter() {<NEW_LINE>FlinkxHivePojo flinkxHivePojo = new FlinkxHivePojo();<NEW_LINE>flinkxHivePojo.setJdbcDatasource(writerDatasource);<NEW_LINE>List<Map<String, Object>> columns = Lists.newArrayList();<NEW_LINE>writerColumns.forEach(c -> {<NEW_LINE>Map<String, Object> column = Maps.n...
setWriterPath(hiveWriterDto.getWriterPath());
816,271
public void removeMarker(BlockPos pos) {<NEW_LINE>if (positions.getFirst().equals(pos)) {<NEW_LINE>positions.removeFirst();<NEW_LINE>loop = false;<NEW_LINE>if (positions.size() < 2) {<NEW_LINE>positions.clear();<NEW_LINE>}<NEW_LINE>subCache.refreshConnection(this);<NEW_LINE>} else if (positions.getLast().equals(pos)) {...
PathConnection conA = new PathConnection(subCache);
829,292
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String hub...
Utils.getValueFromIdByName(id, "resourceGroups");
1,752,758
public void handle(String command, Lookup lookup) {<NEW_LINE>command = command.substring(Term.ExternalCommandsConstants.IDE_OPEN.length() + 1).trim();<NEW_LINE>List<String> paths = new ArrayList<String>();<NEW_LINE>// NOI18N<NEW_LINE>Matcher m = Pattern.compile("([^\"]\\S*|\".+?\")\\s*").matcher(command);<NEW_LINE>whil...
String.class) + "/" + filePath;
1,027,300
private void applyBreaksOutsideRegions(List<IRegion> regions) {<NEW_LINE>String source <MASK><NEW_LINE>int previousRegionEnd = 0;<NEW_LINE>for (IRegion region : regions) {<NEW_LINE>int index = this.tm.findIndex(previousRegionEnd, -1, true);<NEW_LINE>Token token = this.tm.get(index);<NEW_LINE>if (this.tm.countLineBreaks...
= this.tm.getSource();
349,247
public static void main(String[] args) {<NEW_LINE>System.out.println("Usage: java -jar ... [PSK] [ECDHE_PSK] [RPK] [X509] [WANT_AUTH|NO_AUTH]");<NEW_LINE>System.out.println("Default : [PSK] [ECDHE_PSK] [RPK] [X509]");<NEW_LINE>Configuration configuration = Configuration.createWithFile(CONFIG_FILE, CONFIG_HEA...
configuration.get(CoapConfig.COAP_SECURE_PORT);
1,113,510
public void actionPerformed(ActionEvent e) {<NEW_LINE>try {<NEW_LINE>if (saveUserButton.isEnabled()) {<NEW_LINE>// save changes<NEW_LINE>String username = ucm.user.username;<NEW_LINE>setEditable(false);<NEW_LINE>oidsPanel.updateUser(ucm);<NEW_LINE>saveUser(username, ucm);<NEW_LINE>}<NEW_LINE>NewClientCertificateDialog ...
boolean sendEmail = dialog.sendEmail();
572,799
public IpSpace visitIpSpaceReference(IpSpaceReference ipSpaceReference) throws CircularReferenceException, UndefinedReferenceException {<NEW_LINE>String name = ipSpaceReference.getName();<NEW_LINE>if (!_referencedIpSpaces.add(name)) {<NEW_LINE>// This is a reference to an already-referenced IP space. Line is in a cycle...
referenced = _namedIpSpaces.get(name);
1,266,435
public List<AssignedProductOptionDTO> findAssignedProductOptionsByProductId(Long productId) {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<AssignedProductOptionDTO> criteria = <MASK><NEW_LINE>Root<SkuProductOptionValueXrefImpl> root = criteria.from(SkuProductOptionValueXrefImpl.cla...
builder.createQuery(AssignedProductOptionDTO.class);
248,377
public Request<UntagResourceRequest> marshall(UntagResourceRequest untagResourceRequest) {<NEW_LINE>if (untagResourceRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(UntagResourceRequest)");<NEW_LINE>}<NEW_LINE>Request<UntagResourceRequest> request = new DefaultRequest<Un...
> tagKeys = untagResourceRequest.getTagKeys();
1,562,612
@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response createContentTypeField(@PathParam("typeId") final String typeId, final String fieldJson, @Context final HttpServletRequest req) throws DotDataException, DotSecuri...
ExceptionMapperUtil.createResponse(null, "Field 'id' should not be set");
1,678,606
public void addTab(Path path, Runnable... runnables) {<NEW_LINE>ObservableList<Item> recentFiles = storedConfigBean.getRecentFiles();<NEW_LINE>if (Files.notExists(path)) {<NEW_LINE>recentFiles.remove(new Item(path));<NEW_LINE>logger.debug("Path {} not found in the filesystem", path);<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
EditorPane editorPane = tab.getEditorPane();
1,603,760
private void move(int size, int index) {<NEW_LINE>int currentLength = lengthInternalUnsynchronized();<NEW_LINE>int currentCapacity = capacityInternal();<NEW_LINE>// Check if the StringBuffer is compressed<NEW_LINE>if (String.COMPACT_STRINGS && count >= 0) {<NEW_LINE>int newLength;<NEW_LINE>if (currentCapacity - current...
index + size, currentLength - index);
1,715,453
private void display(Node node) {<NEW_LINE>if (node == null)<NEW_LINE>return;<NEW_LINE>String left = "";<NEW_LINE>if (node.left != null)<NEW_LINE>left = "[" + node.left.startInterval + "-" + node.left.endInterval + "]" + ":" + node.left.data;<NEW_LINE>else<NEW_LINE>left = null;<NEW_LINE>String right = "";<NEW_LINE>if (...
+ "->" + curr + "<-" + right;