idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,232,304
/*<NEW_LINE>* Prints out all results in the Iterator. For each result, print the<NEW_LINE>* title, video ID, and thumbnail.<NEW_LINE>*<NEW_LINE>* @param iteratorSearchResults Iterator of SearchResults to print<NEW_LINE>*<NEW_LINE>* @param query Search query (String)<NEW_LINE>*/<NEW_LINE>private static void prettyPrint(...
" Video Id" + rId.getVideoId());
308,156
protected void projectClosed() {<NEW_LINE>evaluator().removePropertyChangeListener(AppClientProject.this.appClient);<NEW_LINE>// unregister j2ee platform classpath change listener<NEW_LINE>String servInstID = getProperty(<MASK><NEW_LINE>J2eePlatform platform = Deployment.getDefault().getJ2eePlatform(servInstID);<NEW_LI...
AntProjectHelper.PRIVATE_PROPERTIES_PATH, AppClientProjectProperties.J2EE_SERVER_INSTANCE);
87,574
public com.amazonaws.services.codecommit.model.RepositoryLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.RepositoryLimitExceededException repositoryLimitExceededException = new com.amazonaws.services.codecommit.model.Repos...
JsonToken token = context.getCurrentToken();
1,793,104
public void Output(IFragment<Long, Long, Long, Double> frag) {<NEW_LINE>executor.shutdown();<NEW_LINE>logger.info("frag: " + frag.fid() + " sendMessageTime: " + sendMessageTime / 1000000000);<NEW_LINE>logger.info("frag: " + frag.fid() + " receiveMessageTime: " + receiveMessageTime / 1000000000);<NEW_LINE>logger.info("f...
> innerNodes = frag.innerVertices();
1,409,702
public void write(NullWritable key, Writable value) throws IOException, InterruptedException {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Message msg = ((ProtobufWritable<Message>) value).get();<NEW_LINE>protoStream.flush();<NEW_LINE>// reinitialize the byteStream if buffer is too large?<NEW_LINE>byteStream.reset...
, msg.getField(fd));
23,338
public IterOutcome innerNext() {<NEW_LINE>while (true) {<NEW_LINE>if (!unionInputIterator.hasNext()) {<NEW_LINE>return IterOutcome.NONE;<NEW_LINE>}<NEW_LINE>Pair<IterOutcome, BatchStatusWrappper> nextBatch = unionInputIterator.next();<NEW_LINE>IterOutcome upstream = nextBatch.left;<NEW_LINE>BatchStatusWrappper batchSta...
.format("Unknown state %s.", upstream));
273,735
// ManagedService<NEW_LINE>@Override<NEW_LINE>public void init(NodeEngine engine, Properties hzProperties) {<NEW_LINE>this.nodeEngine = (NodeEngineImpl) engine;<NEW_LINE>this.config = findJetServiceConfig(engine.getConfig());<NEW_LINE>jetInstance = new JetInstanceImpl((HazelcastInstanceImpl) engine.getHazelcastInstance...
JobExecutionService(nodeEngine, taskletExecutionService, jobRepository);
1,224,889
/*<NEW_LINE>*<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>private Object invokeFunctionAndEnrichResultIfNecessary(Object value) {<NEW_LINE>AtomicReference<Message<?>> firstInputMessage = new AtomicReference<>();<NEW_LINE>Object inputValue;<NEW_LINE>if (value instanceof Flux) {<NEW_LINE>inputValue = ((F...
getOriginalMessage(), result) : result;
1,595,286
private YType createNetworkBlockSchema(BoshModels models) {<NEW_LINE>AbstractType t_manual_nw = f.ybean("ManualNetwork");<NEW_LINE>{<NEW_LINE>YBeanType t_subnet = f.ybean("Subnet[Manual]");<NEW_LINE>addProp(t_subnet, "range", t_ip_range).isRequired(true);<NEW_LINE>addProp(t_subnet, "gateway", t_ip_address).isRequired(t...
addProp(t_subnet, "cloud_properties", t_params);
868,656
private void defineBuilderMethod(boolean isParametrized) {<NEW_LINE>if (isParametrized) {<NEW_LINE>this.isParametrized = true;<NEW_LINE>}<NEW_LINE>String methodDescriptor;<NEW_LINE>String methodSignature;<NEW_LINE>final ClassElement beanDefinitionParam = ClassElement.of(BeanDefinition.class, AnnotationMetadata.EMPTY_ME...
.singletonMap("T", beanTypeElement));
643,805
protected Ftile doStep2(Ftile middle, Ftile result) {<NEW_LINE>final Swimlane swimlaneBlack = out;<NEW_LINE>final Ftile out = new FtileBlackBlock(skinParam(), barColor(), swimlaneBlack);<NEW_LINE>((FtileBlackBlock) out).setBlackBlockDimension(result.calculateDimension(getStringBounder()<MASK><NEW_LINE>if (label != null...
).getWidth(), barHeight);
87,558
final CreateRepositoryResult executeCreateRepository(CreateRepositoryRequest createRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,232,370
private void handleLocalDevice(Node deviceNode) {<NEW_LINE>BeanDefinitionBuilder <MASK><NEW_LINE>AbstractBeanDefinition beanDefinition = deviceConfigBuilder.getBeanDefinition();<NEW_LINE>Node attName = deviceNode.getAttributes().getNamedItem("name");<NEW_LINE>String deviceName = getTextContent(attName);<NEW_LINE>device...
deviceConfigBuilder = createBeanBuilder(LocalDeviceConfig.class);
205,238
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type) {<NEW_LINE>if (!Order.class.isAssignableFrom(type.getRawType())) {<NEW_LINE>// this class only serializes 'Order' and its subtypes<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final TypeAdapter<JsonElement> elementAdapter = gson.getAdapter(JsonElement.class);<...
toJsonTree(value).getAsJsonObject();
968,574
public DeleteAlarmResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteAlarmResult deleteAlarmResult = new DeleteAlarmResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
1,409,253
public static void renderTransparentCuboid(PoseStack matrices, MultiBufferSource buffer, FluidCuboid cube, FluidStack fluid, int opacity, int light) {<NEW_LINE>// nothing to render? skip<NEW_LINE>if (opacity < 0 || fluid.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FluidAttributes attributes = fluid.getFluid().get...
color = attributes.getColor(fluid);
1,704,393
private void drawOneColorGlobalStatus(Graphics g, Color color) {<NEW_LINE>g.setColor(color);<NEW_LINE>int x = (THICKNESS - STATUS_BOX_SIZE) / 2;<NEW_LINE>int y = (<MASK><NEW_LINE>g.fillRect(x, y, STATUS_BOX_SIZE, STATUS_BOX_SIZE);<NEW_LINE>g.setColor(STATUS_DOWN_PART_COLOR);<NEW_LINE>g.drawLine(x - 1, y - 1, x + STATUS...
topOffset() - STATUS_BOX_SIZE) / 2;
1,818,266
private static <K> Factory<K> createStateInternalsFactory(String id, @Nullable Coder<K> keyCoder, TaskContext context, SamzaPipelineOptions pipelineOptions, Collection<String> stateIds) {<NEW_LINE>final int batchGetSize = pipelineOptions.getStoreBatchGetSize();<NEW_LINE>final Map<String, KeyValueStore<ByteArray, StateV...
), stores, stateKeyCoder, batchGetSize);
55,746
public void contributeBootProperties(BiConsumer<String, Object> propertyCollector) {<NEW_LINE>addConfig(propertyCollector, EnversSettings.STORE_DATA_AT_DELETE, buildTimeConfig.storeDataAtDelete);<NEW_LINE>addConfig(propertyCollector, EnversSettings.AUDIT_TABLE_SUFFIX, buildTimeConfig.auditTableSuffix);<NEW_LINE>addConf...
EnversSettings.DO_NOT_AUDIT_OPTIMISTIC_LOCKING_FIELD, buildTimeConfig.doNotAuditOptimisticLockingField);
1,433,841
private static void newGroup() {<NEW_LINE>final NewGroupPanel panel = new NewGroupPanel();<NEW_LINE>DialogDescriptor dd = new DialogDescriptor(panel, GroupsMenu_new_title());<NEW_LINE>panel.setNotificationLineSupport(dd.createNotificationLineSupport());<NEW_LINE>dd.setOptionType(NotifyDescriptor.OK_CANCEL_OPTION);<NEW_...
boolean autoSync = panel.isAutoSyncField();
1,091,379
public void publishLockupTx(Coin lockupAmount, int lockTime, LockupReason lockupReason, byte[] hash, Consumer<String> resultHandler, ExceptionHandler exceptionHandler) {<NEW_LINE>checkArgument(lockTime <= BondConsensus.getMaxLockTime() && lockTime >= BondConsensus.getMinLockTime(), "lockTime not in range");<NEW_LINE>tr...
lockupAmount, lockTime, lockupReason, hash);
1,291,264
private JButton createBrowseButton(final JTextField textField, final String title) {<NEW_LINE>JButton browseButton = new JButton(msg("browse"));<NEW_LINE>browseButton.addActionListener(new ActionListener() {<NEW_LINE><NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>fileChooser.setCurrentDirectory(new Fil...
(textField.getText()));
116,405
public static String servePage(String command) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<html><head><meta charset=\"utf-8\"><title>").append(PropertiesUtil.getProjectProperties().get("project.name")).append(" HTML Console</title></head><body>");<NEW_LINE><MASK><NEW_LINE>if (command.equals(...
PmsConfiguration configuration = PMS.getConfiguration();
447,241
final TestRoleResult executeTestRole(TestRoleRequest testRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(testRoleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
333,294
public static String @NotNull [] calculateAbilityDisplayValuesStatic(@NotNull Player player, @NotNull PrimarySkillType primarySkillType, double chance) {<NEW_LINE>RandomChanceStatic rcs = new RandomChanceStatic(chance, LINEAR_CURVE_VAR, false);<NEW_LINE>double successChance = getRandomChanceExecutionChance(rcs);<NEW_LI...
] displayValues = new String[2];
674,795
private static Task<Object> createRestLiParSeqTask(final Object[] arguments, final int contextIndex, final Method method, final Object resource) {<NEW_LINE>return Task.async(context -> {<NEW_LINE>try {<NEW_LINE>if (contextIndex != -1) {<NEW_LINE>// we can now supply the context<NEW_LINE>arguments[contextIndex] = contex...
, t.getCause()));
1,408,396
final BatchExecuteStatementResult executeBatchExecuteStatement(BatchExecuteStatementRequest batchExecuteStatementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchExecuteStatementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(batchExecuteStatementRequest));
1,285,437
void draw(Canvas canvas, Paint paint, float opacity) {<NEW_LINE>VirtualView template = getSvgView().getDefinedTemplate(mHref);<NEW_LINE>if (template == null) {<NEW_LINE>FLog.w(ReactConstants.TAG, "`Use` element expected a pre-defined svg template as `href` prop, " + "template named: " + mHref + " is not defined.");<NEW...
(float) relativeOnHeight(mY));
153,924
private static boolean checkForSpecialSearchTerm(String str) {<NEW_LINE>str = str.trim();<NEW_LINE>String hit = UrlUtils.parseTextForURL(str, true, true);<NEW_LINE>if (hit == null) {<NEW_LINE>try {<NEW_LINE>File f = new File(str);<NEW_LINE>if (f.isFile()) {<NEW_LINE>String name = f.getName().toLowerCase();<NEW_LINE>if ...
UIFunctionsSWT uif = UIFunctionsManagerSWT.getUIFunctionsSWT();
234,714
private Collection createCollection(Type type) {<NEW_LINE>Class<<MASK><NEW_LINE>Collection list;<NEW_LINE>if (rawClass == AbstractCollection.class) {<NEW_LINE>list = new ArrayList();<NEW_LINE>} else if (rawClass.isAssignableFrom(HashSet.class)) {<NEW_LINE>list = new HashSet();<NEW_LINE>} else if (rawClass.isAssignableF...
?> rawClass = getRawClass(type);
330,065
public final void appendedBlock(AST callee) throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST appendedBlock_AST = null;<NEW_LINE>AST cb_AST = null;<NEW_LINE>closableBlock();<NEW_LINE>cb_AST = (AST) returnAST;<NEW_LINE>if (inputState....
appendedBlock_AST = (AST) currentAST.root;
726,716
public boolean deleteDefinitionMetadata(final QualifiedName name, final boolean force, final MetacatRequestContext metacatRequestContext) {<NEW_LINE>try {<NEW_LINE>final MetacatService service = this.helper.getService(name);<NEW_LINE>BaseDto dto = null;<NEW_LINE>if (!force) {<NEW_LINE>try {<NEW_LINE>dto = service.get(n...
helper.postPreDeleteEvent(name, metacatRequestContext);
1,673,229
// Parameter example: 100<NEW_LINE>public static void main(String[] args) {<NEW_LINE>int numberOfDigraphs = Integer.parseInt(args[0]);<NEW_LINE>Exercise49_RandomSparseEdgeWeightedDigraphs randomSparseEdgeWeightedDigraphs = new Exercise49_RandomSparseEdgeWeightedDigraphs();<NEW_LINE>List<EdgeWeightedDigraphInterface> ra...
randomSparseEdgeWeightedDigraphs.randomSparseEdgeWeightedDigraphsGenerator(numberOfDigraphs, true);
1,837,392
public BatchFailedResultModel unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchFailedResultModel batchFailedResultModel = new BatchFailedResultModel();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
class).unmarshall(context));
1,695,371
public void registerSynchronization(UOWCoordinator coord, Synchronization sync, int tier) throws RollbackException, IllegalStateException, SystemException {<NEW_LINE>final <MASK><NEW_LINE>if (traceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "registerSynchronization", new Object[] { coord, sync, tier });<NEW_LINE>i...
boolean traceOn = TraceComponent.isAnyTracingEnabled();
201,491
protected void buildConfigurationDialog() {<NEW_LINE>configurationDialog = new JDialog(UISupport.getMainFrame());<NEW_LINE>configurationDialog.setTitle(assertion.getConfigurationDialogTitle());<NEW_LINE>configurationDialog.addWindowListener(new WindowAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void windowO...
JXToolBar contentToolbar = UISupport.createToolbar();
794,813
private int updateWithMA() {<NEW_LINE>int no = 0;<NEW_LINE>//<NEW_LINE>String sql = "SELECT * FROM M_InventoryLine WHERE M_Inventory_ID=? AND M_AttributeSetInstance_ID=0";<NEW_LINE>PreparedStatement preparedStatement = null;<NEW_LINE>try {<NEW_LINE>preparedStatement = DB.prepareStatement(sql, get_TrxName());<NEW_LINE>p...
getM_Locator_ID(), get_TrxName());
1,811,310
private static Timer makeTimer(AbstractInstant instant, String closure, JobDataMap dataMap) {<NEW_LINE>Logger logger = LoggerFactory.getLogger(ScriptExecution.class);<NEW_LINE>JobKey jobKey = new JobKey(instant.toString() + ": " + closure.toString());<NEW_LINE>Trigger trigger = newTrigger().startAt(instant.toDate()).bu...
scheduler.scheduleJob(job, trigger);
560,266
private Mono<Response<HubInner>> updateWithResponseAsync(String resourceGroupName, String hubName, HubInner parameters, 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 null."));<NE...
this.client.mergeContext(context);
114,497
public TimeBasedAutoScalingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TimeBasedAutoScalingConfiguration timeBasedAutoScalingConfiguration = new TimeBasedAutoScalingConfiguration();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
int originalDepth = context.getCurrentDepth();
69,671
private void fillHorizontalEdge(Picture pic, int comp, int mbAddr, int[][] bs) {<NEW_LINE>SliceHeader sh = di.shs[mbAddr];<NEW_LINE>int mbWidth = sh.sps.picWidthInMbsMinus1 + 1;<NEW_LINE>int alpha = sh.sliceAlphaC0OffsetDiv2 << 1;<NEW_LINE>int beta = sh.sliceBetaOffsetDiv2 << 1;<NEW_LINE>int mbX = mbAddr % mbWidth;<NEW...
+ curQp + 1) >> 1;
1,025,704
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>HtmlTextView textView = (HtmlTextView) findViewById(R.id.html_text);<NEW_LINE>// text.setRemoveFromHtmlSpace(false); // default is true<NEW_LINE>textView<MASK><NEW_...
.setClickableTableSpan(new ClickableTableSpanImpl());
1,296,188
public static void from_3BU8_to_PLU8(byte[] srcData, int srcStride, int srcOffset, Planar<GrayU8> dst) {<NEW_LINE>byte[] band1 = dst.getBand(0).data;<NEW_LINE>byte[] band2 = dst.getBand(1).data;<NEW_LINE>byte[] band3 = dst.getBand(2).data;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, dst.height, y -> {<NEW_L...
indexDst] = srcData[indexSrc++];
965,159
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>String id = req.getParameter("id");<NEW_LINE>String text = req.getParameter("text");<NEW_LINE>// Validation for id and text inputs.<NEW_LINE>if (id == null || text == null || id.isEmpty() || text.isEmpty...
(HttpURLConnection) url.openConnection();
736,951
private void initComponents() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>JPanel contentsPanel = new JPanel(new BorderLayout());<NEW_LINE>contentsPanel.setBackground(UIUtils.getProfilerResultsBackground());<NEW_LINE>contentsPanel.setOpaque(true);<NEW_LINE>contentsPanel.setBorder(BorderFactory.createMatteBorder(0...
add(dataAreaScrollPane, BorderLayout.CENTER);
972,013
public static CodegenExpression codegenStartEnd(DTLocalLongOpsIntervalForge forge, CodegenExpressionRef start, CodegenExpressionRef end, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpression timeZoneField = codegenClassScope.addOrGetF...
localMethod(methodNode, start, end);
999,168
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select cast(item?,java.lang.String) as t0 from SupportBeanDynRoot";<NEW_LINE>env.eplToModelCompileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStmtType("s0", "t0", EPTypePremade.STRING.getEPType());<NEW_LINE>env.sendEventBean(new Suppo...
sendEventBean(new SupportBeanDynRoot("abc"));
351,529
public LocalSessionFactoryBuilder scanPackages(String... packagesToScan) throws HibernateException {<NEW_LINE>Set<String> entityClassNames = new TreeSet<>();<NEW_LINE>Set<String> converterClassNames = new TreeSet<>();<NEW_LINE>Set<String> <MASK><NEW_LINE>try {<NEW_LINE>for (String pkg : packagesToScan) {<NEW_LINE>Strin...
packageNames = new TreeSet<>();
583,372
private DocumentId createDocumentId() {<NEW_LINE><MASK><NEW_LINE>sb.append(type.getCode());<NEW_LINE>sb.append(PARTS_SEPARATOR).append(purchaseDemandId.getId());<NEW_LINE>if (type == PurchaseRowType.GROUP) {<NEW_LINE>} else if (type == PurchaseRowType.LINE) {<NEW_LINE>sb.append(PARTS_SEPARATOR).append(vendorId.getRepoI...
final StringBuilder sb = new StringBuilder();
1,277,958
final DescribeTemplateAliasResult executeDescribeTemplateAlias(DescribeTemplateAliasRequest describeTemplateAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTemplateAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
invoke(request, responseHandler, executionContext);
1,609,265
public static ICore readCoreFile(ImageInputStream in) throws IOException {<NEW_LINE>DumpTestResult accruedResult = null;<NEW_LINE>IOException thrown = null;<NEW_LINE>for (Class<? extends ICoreFileReader> clazz : coreReaders) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>DumpTestResult result = reader.testDump(in);<NEW_LINE...
ICoreFileReader reader = clazz.newInstance();
1,333,413
public void op_ri(int count) {<NEW_LINE>// cursor up - scroll<NEW_LINE>// Opposite of op_ind()<NEW_LINE>if (debugOps()) {<NEW_LINE>// NOI18N<NEW_LINE>System.out.printf("op_ri(%d)\n", count);<NEW_LINE>}<NEW_LINE>boolean old_atw = <MASK><NEW_LINE>Line l;<NEW_LINE>while (count-- > 0) {<NEW_LINE>if (st.cursor.row == st.fir...
cursor_line().setAboutToWrap(false);
496,520
public boolean onPreferenceClick(Preference preference) {<NEW_LINE>String country = sharedPrefs.getString("country", "United States");<NEW_LINE>final String[][] <MASK><NEW_LINE>String[] names = new String[full.length];<NEW_LINE>for (int i = 0; i < names.length; i++) {<NEW_LINE>String[] s = full[i];<NEW_LINE>names[i] = ...
full = LocalTrendsUtils.getArray(country);
1,240,029
public void redoMLog() throws IOException {<NEW_LINE>PhysicalPlan plan;<NEW_LINE>// templateName -> path -> plan<NEW_LINE>Map<String, Map<String, SetTemplatePlan>> setTemplatePlanAboveSG = new HashMap<>();<NEW_LINE>try (MLogReader mLogReader = new MLogReader(mlogFilePath);<NEW_LINE>TagLogFile tagLogFile = new TagLogFil...
logger.error("Error occurred during redo mlog: ", e);
608,503
public void addAssertionAndComments(Statement statement, List<VariableReference> variables, Throwable exception) {<NEW_LINE>TestCase test = statement.getTestCase();<NEW_LINE>int position = statement.getPosition();<NEW_LINE>VariableReference a = variables.get(0);<NEW_LINE>int pos = a.getStPosition();<NEW_LINE>try {<NEW_...
addStatement(st2, position + 2);
1,729,765
public Object eval(SQLEvalVisitor visitor, SQLMethodInvokeExpr x) {<NEW_LINE>if (x.getArguments().size() != 1) {<NEW_LINE>throw new ParserException("argument's != 1, " + x.getArguments().size());<NEW_LINE>}<NEW_LINE>SQLExpr param0 = x.getArguments().get(0);<NEW_LINE>param0.accept(visitor);<NEW_LINE>Object param0Value =...
Number) param0Value).longValue();
67,438
public void run() {<NEW_LINE>Case currentCase;<NEW_LINE>try {<NEW_LINE>currentCase = Case.getCurrentCaseThrows();<NEW_LINE>} catch (NoCurrentCaseException ex) {<NEW_LINE>logger.log(Level.SEVERE, String.format("Failed to start AddImageTask for %s, no current case", imageDetails.getImagePath()), ex);<NEW_LINE>return;<NEW...
onCompleted(result, errorMessages, newDataSources);
934,547
private <T extends CULConfig> CULHandlerInternal<T> createNewHandler(T config) throws CULDeviceException {<NEW_LINE>String deviceType = config.getDeviceType();<NEW_LINE><MASK><NEW_LINE>logger.debug("Searching class for device type {}", deviceType);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Class<? extends CULHan...
CULMode mode = config.getMode();
1,765,610
public Expression convert(org.eclipse.jdt.internal.compiler.ast.SwitchExpression expression) {<NEW_LINE>if (!this.ast.isPreviewEnabled()) {<NEW_LINE>return createFakeNullLiteral(expression);<NEW_LINE>}<NEW_LINE>SwitchExpression switchExpression = new SwitchExpression(this.ast);<NEW_LINE>if (this.resolveBindings) {<NEW_...
Statement[] statements = expression.statements;
1,461,210
public void marshall(UpdateServiceRequest updateServiceRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateServiceRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateServiceRequest.get...
updateServiceRequest.getTaskDefinition(), TASKDEFINITION_BINDING);
854,093
private static void find0(File f, String pattern, List<String> collector) {<NEW_LINE>if (f.isDirectory()) {<NEW_LINE>String[] files = f.list();<NEW_LINE>if (files == null)<NEW_LINE>return;<NEW_LINE>for (int i = 0, max = files.length; i < max; i++) {<NEW_LINE>File current = new File(f, files[i]);<NEW_LINE>if (current.is...
add(current.getAbsolutePath());
185,204
public TickRange findCompletedRange(TickRange r) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "findCompletedRange", r);<NEW_LINE>long stamp = r.valuestamp;<NEW_LINE>// starts will be set to first contiguous tick in Completed state<NEW_LINE>// ends will be se...
ends = discoverNextCompleted(ends, tr1);
1,844,657
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context ContextOne start SupportBean_S0 end SupportBean_S1", path);<NEW_LINE>String eplCreate = namedWindow ? "@public context ContextOne create window MyInfra#keepall as (pkey0 s...
env, "E2", 20, 200);
1,110,000
public void handle(ConfigurationAction action, Map<String, Object> config) {<NEW_LINE>if (config == null || config.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Object> configuration = ConfigMapping.getConvertedMap(config);<NEW_LINE>if (CREATE.equals(action)) {<NEW_LINE>valueCache.putAll(configuration);...
ImmutableMap.copyOf(configuration)));
3,805
private static List<EBPFProfilingStack> generateStacks(int totalStackCount, int perStackMinDepth, int perStackMaxDepth, double[] stackSymbolDuplicateRate, double stackDuplicateRate) {<NEW_LINE>int uniqStackCount = (int) (100 / stackDuplicateRate);<NEW_LINE>final List<EBPFProfilingStack> stacks = new ArrayList<>(totalSt...
RANDOM.nextInt(uniqStackCount)));
27,759
private ActionListener<RevertModelSnapshotAction.Response> wrapDeleteOldAnnotationsListener(ActionListener<RevertModelSnapshotAction.Response> listener, ModelSnapshot modelSnapshot, String jobId) {<NEW_LINE>return ActionListener.wrap(response -> {<NEW_LINE>Date deleteAfter = modelSnapshot.getLatestResultTimeStamp() == ...
0) : modelSnapshot.getLatestResultTimeStamp();
1,562,470
final DeleteVoiceTemplateResult executeDeleteVoiceTemplate(DeleteVoiceTemplateRequest deleteVoiceTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,435,555
private void compareJSON(String expected, String actual) throws Exception {<NEW_LINE>System.out.println("compareJSON\n\texpected = " + expected + "\n\tactual = " + actual);<NEW_LINE>try {<NEW_LINE>JsonReader jsonReader = Json.createReader(new StringReader(expected));<NEW_LINE>JsonObject exp = jsonReader.readObject();<N...
JsonObject act = jsonReader.readObject();
1,831,401
private void replaceString(String newValue, int start, int end, int segmentNumber) {<NEW_LINE>TextRange range = TextRange.create(start, end);<NEW_LINE>if (!TextRange.from(0, myDocument.getCharsSequence().length()).contains(range)) {<NEW_LINE>LOG.error("Diagnostic for EA-54980. Can't extract " + range + " range. " + pre...
replaceString(start, end, newValue);
1,519,066
protected void execute(Terminal terminal, OptionSet options) throws Exception {<NEW_LINE>if (subcommands.isEmpty()) {<NEW_LINE>throw new IllegalStateException("No subcommands configured");<NEW_LINE>}<NEW_LINE>// .values(...) returns an unmodifiable list<NEW_LINE>final List<String> args = new ArrayList<><MASK><NEW_LINE>...
(arguments.values(options));
342,785
default ToDoubleNullable<T> mapToDoubleIfPresent(IntToDoubleFunction mapper) {<NEW_LINE>final ToIntNullable<T> delegate = this;<NEW_LINE>return new ToDoubleNullable<T>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Double apply(T object) {<NEW_LINE>return delegate.isNull(object) ? null : mapper.applyAsDouble(delegate...
(delegate.applyAsInt(object));
1,590,716
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View list = inflater.inflate(R.layout.mobicom_message_list, container, false);<NEW_LINE>recyclerView = (RecyclerView) list.findViewById(R.id.messageList);<NEW_LINE>recyclerView.setBackgroundColor(getResources()....
View.VISIBLE : View.GONE);
1,182,062
private void handleTaskletAttributes(Element taskletElement, MutablePropertyValues propertyValues) {<NEW_LINE>String transactionManagerRef = taskletElement.getAttribute(TRANSACTION_MANAGER_ATTR);<NEW_LINE>if (StringUtils.hasText(transactionManagerRef)) {<NEW_LINE>propertyValues.addPropertyValue("transactionManager", ne...
throttleLimit = taskletElement.getAttribute("throttle-limit");
891,952
public void actionPerformed(ActionContext context) {<NEW_LINE>CategoryNode categoryNode = getCategoryNode(context);<NEW_LINE>Category category = categoryNode.getCategory();<NEW_LINE>CreateTypeDefDialog dialog = new CreateTypeDefDialog(plugin, category, categoryNode.getTreePath());<NEW_LINE>dialog.setHelpLocation(new He...
CategoryPath categoryPath = category.getCategoryPath();
1,491,948
public okhttp3.Call placeOrderCall(Order body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>basePath = local...
localVarAuthNames = new String[] {};
1,416,061
// -------------------------------------------------------------------------<NEW_LINE>MarketDataBox<RatesCurveGroup> buildCurveGroup(RatesCurveGroupDefinition configuredGroup, RatesCurveCalibrator calibrator, ScenarioMarketData marketData, ReferenceData refData, ObservableSource obsSource) {<NEW_LINE>// find and combin...
> valuationDates = marketData.getValuationDate();
576,691
private ClusterConfig buildNormalClusterConfig(DalConnectionStringConfigure configure) {<NEW_LINE>ClusterConfigWithNoVersion clusterConfig = new ClusterConfigWithNoVersion(configure.getName(), ClusterType.NORMAL, DatabaseCategory.MYSQL);<NEW_LINE>DatabaseShardConfigImpl databaseShardConfig = new DatabaseShardConfigImpl...
setPwd(configure.getPassword());
787,763
// init<NEW_LINE>void zkInit() throws Exception {<NEW_LINE>form.appendChild(mainPanel);<NEW_LINE>mainPanel.setStyle("width: 99%; height: 100%; border: none; padding: 0; margin: 0");<NEW_LINE>mainPanel.appendChild(mainLayout);<NEW_LINE>mainLayout.setWidth("100%");<NEW_LINE>mainLayout.setHeight("100%");<NEW_LINE>paramete...
.getCtx(), "M_Inventory_ID"));
1,022,966
public J visitTry(Try tryable, PrintOutputCapture<P> p) {<NEW_LINE>visitSpace(tryable.getPrefix(), Space.Location.TRY_PREFIX, p);<NEW_LINE>visitMarkers(tryable.getMarkers(), p);<NEW_LINE>p.append("try");<NEW_LINE>if (tryable.getPadding().getResources() != null) {<NEW_LINE>// Note: we do not call visitContainer here bec...
tryable.getCatches(), p);
631,320
private static boolean noArgsConstructorExists(EclipseNode node) {<NEW_LINE>node = EclipseHandlerUtil.upToTypeNode(node);<NEW_LINE>if (node != null && node.get() instanceof TypeDeclaration) {<NEW_LINE>TypeDeclaration typeDecl = (TypeDeclaration) node.get();<NEW_LINE>if (typeDecl.methods != null)<NEW_LINE>for (AbstractM...
((ConstructorDeclaration) def).arguments;
662,378
private int dp(Map<Integer, Integer> cache, String s, int index) {<NEW_LINE>if (cache.containsKey(index)) {<NEW_LINE>return cache.get(index);<NEW_LINE>}<NEW_LINE>if (index == s.length()) {<NEW_LINE>// this means we reached the end of the string, so return 1 as success<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>if (s.charAt...
cache, s, index + 1);
60,921
protected // Kafka group "leader" who does assignment, *not* the SR leader<NEW_LINE>Map<String, ByteBuffer> // Kafka group "leader" who does assignment, *not* the SR leader<NEW_LINE>onLeaderElected(String kafkaLeaderId, String protocol, List<JoinGroupResponseData.JoinGroupResponseMember> allMemberMetadata, boolean skip...
SchemaRegistryIdentity memberIdentity = entry.getValue();
1,716,367
public MycatRel compileQuery(OptimizationContext optimizationContext, SchemaPlus plus, DrdsSql drdsSql) {<NEW_LINE>RelNode logPlan;<NEW_LINE>RelNodeContext relNodeContext = null;<NEW_LINE>{<NEW_LINE>relNodeContext = getRelRoot(plus, drdsSql);<NEW_LINE>logPlan = relNodeContext.getRoot().rel;<NEW_LINE>optimizationContext...
getFieldNames()).build();
1,842,324
final GetMapTileResult executeGetMapTile(GetMapTileRequest getMapTileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMapTileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix);
1,686,900
public static DetailAST createBlockCommentNode(CommonToken token) {<NEW_LINE>final DetailAstImpl blockComment = new DetailAstImpl();<NEW_LINE>blockComment.initialize(TokenTypes.BLOCK_COMMENT_BEGIN, BLOCK_MULTIPLE_COMMENT_BEGIN);<NEW_LINE>blockComment.setColumnNo(token.getCharPositionInLine());<NEW_LINE>blockComment.set...
setLineNo(linesColumns.getKey());
1,205,389
public boolean handleAttribute(DDParser parser, String nsURI, String localName, int index) throws DDParser.ParseException {<NEW_LINE>if (nsURI == null) {<NEW_LINE>if (!xmi && "version".equals(localName)) {<NEW_LINE>this.<MASK><NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if ((xmi ? "clientMode" : "client-mode").equals(loc...
version = parser.parseStringAttributeValue(index);
837,228
public GroupIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GroupIdentifier groupIdentifier = new GroupIdentifier();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
1,033,553
static void upload(File file, String bucketName) throws IOException {<NEW_LINE>final AmazonS3 s3Client = AmazonS3ClientBuilder.defaultClient();<NEW_LINE>if (file.length() > MINIMUM_SIZE_FOR_MULTIPART) {<NEW_LINE>// multipart upload<NEW_LINE>final List<PartETag> partETags = new ArrayList<>();<NEW_LINE>final InitiateMult...
getName(), uploadId, partETags);
742,774
private void updateStatus(String statusId, Function<Status, Status> mapper) {<NEW_LINE>int index = CollectionsKt.indexOfFirst(this.notifications, (s) -> s.isRight() && s.asRight().getStatus() != null && s.asRight().getStatus().getId().equals(statusId));<NEW_LINE>if (index == -1)<NEW_LINE>return;<NEW_LINE>// We have qui...
()).copyWithStatus(newStatus);
788,058
public void exportDownload(File parent_dir) throws DownloadManagerException {<NEW_LINE>if (!canExportDownload()) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>FileUtil.runAsTask(CoreOperation.OP_DOWNLOAD_EXPORT, new CoreOperationTask() {<NEW_LINE><NEW_LINE>private ProgressCallback cb = new CoreOperationTask.Prog...
throw (new DownloadManagerException("Not in correct state"));
1,377,642
public void process(JsonObject json) throws DockerAccessException {<NEW_LINE>if (json.has("error")) {<NEW_LINE>String msg = json.<MASK><NEW_LINE>String detailMsg = "";<NEW_LINE>if (json.has("errorDetail")) {<NEW_LINE>JsonObject details = json.getAsJsonObject("errorDetail");<NEW_LINE>detailMsg = details.get("message").g...
get("error").getAsString();
169,282
public void listAlertForAlertConfigurationWithContext() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorClient.listAlerts#String-OffsetDateTime-OffsetDateTime-ListAlertOptions-Context<NEW_LINE>final String alertConfigurationId = "ff3014a0-bbbb-41ec-a637-677e77b81299";<NEW_LINE>final OffsetDateTime startT...
endTime, options, Context.NONE);
1,174,468
private int allocateArgMapLocal(int index, int size) {<NEW_LINE>// Allocate extra space if we've reached the end<NEW_LINE>if (index >= this.argMapVars.size()) {<NEW_LINE>int base = this.allocateLocals(size);<NEW_LINE>for (int offset = 0; offset < size; offset++) {<NEW_LINE>this.argMapVars.add(Integer.valueOf(base + off...
(Integer.valueOf(nextLocal));
105,387
final GetAutoTerminationPolicyResult executeGetAutoTerminationPolicy(GetAutoTerminationPolicyRequest getAutoTerminationPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAutoTerminationPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
242,519
final GetEventStreamResult executeGetEventStream(GetEventStreamRequest getEventStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEventStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
832,267
public void save() {<NEW_LINE>EditorSettingsStorage<String, MacroDescription> ess = EditorSettingsStorage.<String, MacroDescription>get(MacrosStorage.ID);<NEW_LINE>for (Map.Entry<MimePath, Map<String, Macro>> mimeType2MacrosEntry : mimeType2Macros.entrySet()) {<NEW_LINE>MimePath mimeType = mimeType2MacrosEntry.getKey()...
Macro macro = macroEntry.getValue();
85,001
public Op01WithProcessedDataAndByteJumps createOperation(JVMInstr instr, ByteData bd, ConstantPool cp, int offset) {<NEW_LINE>int curoffset = offset + 1;<NEW_LINE>// We need to align the next byte to a 4 byte boundary relative to the start of the method.<NEW_LINE>int overflow = (curoffset % 4);<NEW_LINE>overflow = over...
> 0 ? 4 - overflow : 0;
1,267,341
final ListResourcesResult executeListResources(ListResourcesRequest listResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(listResourcesRequest));
247,307
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>if (getArguments() != null && getArguments().containsKey(TomahawkFragment.PREFERENCEID)) {<NEW_LINE>String id = getArguments().getString(TomahawkFragment.PREFERENCEID);<NEW_LINE>mScriptResolver = PipeLine.get().getResolver(id);<NEW_LINE>}<NEW_LINE>TextV...
findViewById(R.id.config_enable_button_image);
1,184,815
public static void registerCustom() {<NEW_LINE>registerCustomComponent("Table", com.codename1.ui.table.Table.class);<NEW_LINE>registerCustomComponent("MediaPlayer", com.codename1.components.MediaPlayer.class);<NEW_LINE>registerCustomComponent("ContainerList", com.codename1.ui.list.ContainerList.class);<NEW_LINE>registe...
codename1.components.OnOffSwitch.class);