idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
834,075
protected Void scan(AnnotatedTypeMirror type, Void p) {<NEW_LINE>// If the type's fully-qualified name is in the appropriate map, annotate the type. Do this<NEW_LINE>// before looking at kind or class, as this information is more specific.<NEW_LINE>String qname;<NEW_LINE>if (type.getKind() == TypeKind.DECLARED) {<NEW_L...
> t = type.getClass();
994,673
public static List<Range> findLatexChunks(DocDisplay docDisplay) {<NEW_LINE>docDisplay.tokenizeDocument();<NEW_LINE>List<Range> ranges = new ArrayList<>();<NEW_LINE>Position startPos = null;<NEW_LINE>for (int i = 0, n = docDisplay.getRowCount(); i < n; i++) {<NEW_LINE>Position pos = Position.create(i, 0);<NEW_LINE>Toke...
create(i, 2)));
1,028,820
public static PsiElementVisitor createVisitorAndAcceptElements(@Nonnull LocalInspectionTool tool, @Nonnull ProblemsHolder holder, boolean isOnTheFly, @Nonnull LocalInspectionToolSession session, @Nonnull List<PsiElement> elements, @Nonnull Set<String> elementDialectIds, @Nullable Set<String> dialectIdsSpecifiedForTool)...
tool.getClass() + ") must not return null from the buildVisitor() method");
1,586,652
private static final void _copy(byte[] src, byte[] dest, int offX, int offY, int stepX, int stepY, int strideSrc, int strideDest, int heightSrc, int heightDst) {<NEW_LINE>int offD = offX + offY * strideDest, srcOff = 0;<NEW_LINE>for (int i = 0; i < heightSrc; i++) {<NEW_LINE>for (int j = 0; j < strideSrc; j++) {<NEW_LI...
] = dest[lastLine + j];
352,109
public String reverseWords(String s) {<NEW_LINE>s = s.trim();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (int i = 0; i < s.length(); i++) {<NEW_LINE>if (s.charAt(i) == ' ' && sb.length() > 0 && sb.charAt(sb.length() - 1) == ' ') {<NEW_LINE>continue;<NEW_LINE>} else {<NEW_LINE>sb.append<MASK><NEW_LINE...
(s.charAt(i));
1,829,724
public AwsS3BucketBucketLifecycleConfigurationDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsS3BucketBucketLifecycleConfigurationDetails awsS3BucketBucketLifecycleConfigurationDetails = new AwsS3BucketBucketLifecycleConfigurationDetails();<NEW_LINE>int originalDepth = context.getCurr...
String currentParentElement = context.getCurrentParentElement();
596,085
final UpdateFirewallPolicyResult executeUpdateFirewallPolicy(UpdateFirewallPolicyRequest updateFirewallPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateFirewallPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
236,056
public List<JvmGcBo> decodeValues(Buffer valueBuffer, AgentStatDecodingContext decodingContext) {<NEW_LINE>final String agentId = decodingContext.getAgentId();<NEW_LINE>final long baseTimestamp = decodingContext.getBaseTimestamp();<NEW_LINE>final long timestampDelta = decodingContext.getTimestampDelta();<NEW_LINE>final...
(startTimestamps.get(i));
1,449,759
public boolean evaluate(HttpServletRequest request, HttpServletResponse response, Instance instance) {<NEW_LINE>Enumeration<Locale> locales = request.getLocales();<NEW_LINE>boolean evalSuccess = false;<NEW_LINE>// Check if the selected language exist in the list of languages provided by the Accept-Language header<NEW_L...
Locale locale = locales.nextElement();
254,510
public ResourceEndpointListItem unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceEndpointListItem resourceEndpointListItem = new ResourceEndpointListItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
JsonToken token = context.getCurrentToken();
1,488,413
final CreatePushTemplateResult executeCreatePushTemplate(CreatePushTemplateRequest createPushTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPushTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
62,327
public boolean correlates(final String pathSubjectId, final String pathObjectId, final String message) {<NEW_LINE>if (correlations.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>LinkedList<LogEvent> correlationEntries;<NEW_LINE>if (correlationOp != null && correlationPattern != null) {<NEW_LINE>final Matcher <M...
matcher = correlationPattern.matcher(message);
1,300,030
public void renameDatabase(AlterDatabaseRename stmt) throws DdlException {<NEW_LINE>String fullDbName = stmt.getDbName();<NEW_LINE>String newFullDbName = stmt.getNewDbName();<NEW_LINE>String clusterName = stmt.getClusterName();<NEW_LINE>if (fullDbName.equals(newFullDbName)) {<NEW_LINE>throw new DdlException("Same datab...
), db.getId());
54,739
public DataContext createDataContext(final JavaTypeFactory typeFactory, List<TypedValue> parameters) {<NEW_LINE>class DruidDataContext implements DataContext {<NEW_LINE><NEW_LINE>private final Map<String, Object> base_context = ImmutableMap.of(DataContext.Variable.UTC_TIMESTAMP.camelName, localNow.getMillis(), DataCont...
builder.put(DATA_CTX_AUTHENTICATION_RESULT, authenticationResult);
337,178
public void onMsg(TbContext ctx, TbMsg msg) {<NEW_LINE>log.trace("onMsg, config {}, msg {}", config, msg);<NEW_LINE>if (initialized.get() && msg.getType().equals(TB_MSG_GENERATOR_NODE_MSG) && msg.getId().equals(nextTickId)) {<NEW_LINE>TbStopWatch sw = TbStopWatch.startNew();<NEW_LINE>withCallback(generate(ctx, msg), m ...
ctx.enqueueForTellNext(m, SUCCESS);
363,559
public void read(org.apache.thrift.protocol.TProtocol iprot, closeUpdate_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == ...
.dataImpl.thrift.UpdateErrors();
373,560
// This tries to build a private channel instance through an arbitrary message object<NEW_LINE>private PrivateChannel createPrivateChannelByMessage(DataObject message) {<NEW_LINE>final long channelId = message.getLong("channel_id");<NEW_LINE>final DataObject author = message.getObject("author");<NEW_LINE>final long aut...
.getSelfUser().getIdLong();
529,027
public static void vp8_alloc_compressor_data(Compressor cpi) {<NEW_LINE>CommonData cm = cpi.common;<NEW_LINE>int width = cm.Width;<NEW_LINE>int height = cm.Height;<NEW_LINE>cm.vp8_alloc_frame_buffers(width, height);<NEW_LINE>if ((width & 0xf) != 0)<NEW_LINE>width += 16 - (width & 0xf);<NEW_LINE>if ((height & 0xf) != 0)...
= new YV12buffer(width, height);
570,723
private void writeBinder(IndentedWriter w, FieldWriter rootField) throws UnableToCompleteException {<NEW_LINE>writePackage(w);<NEW_LINE>writeImports(w);<NEW_LINE>w.newline();<NEW_LINE>writeClassOpen(w);<NEW_LINE>writeStatics(w);<NEW_LINE>w.newline();<NEW_LINE>// Create SafeHtml Template<NEW_LINE>writeTemplatesInterface...
), uiOwnerType.getParameterizedQualifiedSourceName());
999,477
protected void run(StructuredGraph graph, CoreProviders context) {<NEW_LINE>DebugContext debug = graph.getDebug();<NEW_LINE>if (graph.hasLoops()) {<NEW_LINE>boolean unswitched;<NEW_LINE>do {<NEW_LINE>unswitched = false;<NEW_LINE>final LoopsData dataUnswitch = context.getLoopsDataProvider().getLoopsData(graph);<NEW_LINE...
DETAILED_LEVEL, graph, "After unswitch %s", controlSplits);
223,881
public io.kubernetes.client.proto.V2beta2Autoscaling.HPAScalingRules buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V2beta2Autoscaling.HPAScalingRules result = new io.kubernetes.client.proto.V2beta2Autoscaling.HPAScalingRules(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LI...
util.Collections.unmodifiableList(policies_);
229,620
/*<NEW_LINE>* private static String[] shift(String args[]) { if ((args == null) ||<NEW_LINE>* (args.length == 0)) return args; else { String[] newArgs = new<NEW_LINE>* String[args.length-1]; System.arraycopy(args, 1, newArgs, 0,<NEW_LINE>* args.length-1); return newArgs; } } public boolean JAR() { //Sun<NEW_LINE>* prop...
File dir = new File(path);
1,306,798
public static Collection<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> executions = new ArrayList<>();<NEW_LINE>executions.add(new ExecCoreNewInstanceKeyword(true));<NEW_LINE>executions.add(new ExecCoreNewInstanceKeyword(false));<NEW_LINE>executions.add(new ExecCoreNewInstanceStreamAlias());<NE...
add(new ExecCoreNewInstanceArraySized(true));
1,761,868
public static List<FridaProcess> enumerateProcesses(FridaTarget t) {<NEW_LINE>Pointer device = t.getPointer();<NEW_LINE>FridaError err = new FridaError();<NEW_LINE>Pointer list = FridaNative.INSTANCE.GH_frida_device_enumerate_processes_sync(device, null, null, err.error);<NEW_LINE>if (list == null) {<NEW_LINE>Msg.error...
FridaNative.INSTANCE.GH_frida_process_get_name(process);
1,050,347
protected void run() throws GitException {<NEW_LINE>Repository repository = getRepository();<NEW_LINE>String workTreePath = repository.getWorkTree().getAbsolutePath();<NEW_LINE>try (DiffFormatter formatter = new DiffFormatter(out);<NEW_LINE>ObjectReader or = repository.newObjectReader()) {<NEW_LINE>formatter.setReposit...
firstTree = getIterator(firstCommit, or);
1,424,621
public double compare(Record r1, Record r2) {<NEW_LINE>comparisons++;<NEW_LINE>double prob = 0.5;<NEW_LINE>for (String propname : r1.getProperties()) {<NEW_LINE>Property prop = config.getPropertyByName(propname);<NEW_LINE>if (prop == null)<NEW_LINE>// means the property is unknown<NEW_LINE>continue;<NEW_LINE>if (prop.i...
vs1 = r1.getValues(propname);
1,709,021
private UserDetails fetchUserDetails(User user, String emailId) throws PacManException {<NEW_LINE>UserDetails userDetails = new UserDetails();<NEW_LINE>try {<NEW_LINE>if (user == null) {<NEW_LINE>List<String> roles = Lists.newArrayList();<NEW_LINE>roles.add("ROLE_USER");<NEW_LINE>userDetails.setUserRoles(roles);<NEW_LI...
setLastName(user.getLastName());
1,413,055
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Calendar calendar;<NEW_LINE>try {<NEW_LINE>Date value = DateFormat.getDateInstance().parse(m_editText.getText().toString());<NEW_LINE>calendar = new GregorianCalendar();<NEW_LINE>calendar.setTime(value);<NEW_LINE>} catch (Exception excep) {<NEW_LINE>// ...
getTime().getTime());
273,257
private void runAssertion(RegressionEnvironment env, AtomicInteger milestone, boolean advanced, String filter) {<NEW_LINE>String epl = HOOK + "@name('s0') select * from pattern[every s0=SupportBean_S0 -> " + "SupportBean_S1(" + filter + ")]";<NEW_LINE>SupportFilterPlanHook.reset();<NEW_LINE>env.compileDeploy(epl).addLi...
new SupportBean_S0(3, "y"));
1,156,324
public void finalizeImplForNereids() throws AnalysisException {<NEW_LINE>try {<NEW_LINE>analyze();<NEW_LINE>} catch (AnalysisException ex) {<NEW_LINE>LOG.warn("Implicit casts fail", ex);<NEW_LINE>Preconditions.checkState(false, "Implicit casts should never throw analysis exception.");<NEW_LINE>}<NEW_LINE>FunctionName f...
searchDesc, Function.CompareMode.IS_IDENTICAL);
1,553,046
public static DescribeBindersResponse unmarshall(DescribeBindersResponse describeBindersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBindersResponse.setRequestId(_ctx.stringValue("DescribeBindersResponse.RequestId"));<NEW_LINE>describeBindersResponse.setErrorMessage(_ctx.stringValue("DescribeBindersResponse.E...
(_ctx.integerValue("DescribeBindersResponse.TotalCount"));
770,660
public I_PP_Order_Qty save(@NonNull final CreateIssueCandidateRequest request) {<NEW_LINE>final I_PP_Order_Qty record = newInstance(I_PP_Order_Qty.class);<NEW_LINE>record.setPP_Order_ID(request.getOrderId().getRepoId());<NEW_LINE>record.setPP_Order_BOMLine_ID(PPOrderBOMLineId.toRepoId<MASK><NEW_LINE>record.setM_Locator...
(request.getOrderBOMLineId()));
16,176
public void monitor() {<NEW_LINE>final Device d = UPNPControl.getDevice(uuid);<NEW_LINE>monitor = new Thread(() -> {<NEW_LINE>String id = data.get(INSTANCE_ID);<NEW_LINE>String <MASK><NEW_LINE>while (active && (PLAYING.equals(transportState) || RECORDING.equals(transportState) || TRANSITIONING.equals(transportState))) ...
transportState = data.get(TRANSPORT_STATE);
1,569,014
private void drawNumbering(GraphicsWrap g, RectangleWrap field, double x, int index) {<NEW_LINE>double position = x;<NEW_LINE>if (this.tic < 1 && Math.abs(ticStart - position) < this.tic * this.tic) {<NEW_LINE>position = ticStart;<NEW_LINE>}<NEW_LINE>FontMetricsWrap fm = g.getFontMetrics();<NEW_LINE>float fontHeight = ...
width = fm.stringWidth(text);
512,286
public void executeUpgrade() throws DotDataException, DotRuntimeException {<NEW_LINE>final DotConnect dotConnect = new DotConnect().setSQL(SELECT_FORM_WIDGET_FIELD_INODE);<NEW_LINE>final String fieldId = dotConnect.getString("fieldId");<NEW_LINE>final String contentTypeId = dotConnect.getString("contentTypeId");<NEW_LI...
.getContentTypeCache().clearCache();
883,088
public Graphics create() {<NEW_LINE>PdfGraphics2D g2 = new PdfGraphics2D();<NEW_LINE>g2.rhints.putAll(this.rhints);<NEW_LINE>g2.onlyShapes = this.onlyShapes;<NEW_LINE>g2.transform = new AffineTransform(this.transform);<NEW_LINE>g2.baseFonts = this.baseFonts;<NEW_LINE>g2.fontMapper = this.fontMapper;<NEW_LINE>g2.paint =...
g2.transformStroke(g2.strokeOne);
1,249,610
public static int calculateBlockSize(String path) {<NEW_LINE>if (Platform.getPlatform().getOS() != Platform.OS.LINUX) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>final int linuxVersion = 0;<NEW_LINE>final int majorRev = 1;<NEW_LINE>final int minorRev = 2;<NEW_LINE>List<Integer> versionNumbers = new ArrayList<>();<NEW_LIN...
fsBlockSize = lcm(fsBlockSize, 512);
585,792
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public JSONArray initNetwork(@FormDataParam(CoordConsts.SVC_KEY_API_KEY) String apiKey, @FormDataParam(CoordConsts.SVC_KEY_VERSION) String clientVersion, @FormDataParam(CoordConsts.SVC_KEY_NETWORK_NAME) String networkName, @FormDataParam(CoordConsts.SVC_KEY_NETWORK_PREFIX)...
stackTrace = Throwables.getStackTraceAsString(e);
1,217,354
public static String sendHttpDelete(String url, String user) throws Exception {<NEW_LINE>String resultString = "{}";<NEW_LINE>HttpDelete httpdelete = new HttpDelete(url);<NEW_LINE>logger.info("sendDeleteReq url is: " + url);<NEW_LINE>httpdelete.<MASK><NEW_LINE>httpdelete.addHeader("Token-User", user);<NEW_LINE>httpdele...
addHeader(HTTP.CONTENT_ENCODING, "UTF-8");
288,526
protected PeopleCounterAsset createDemoPeopleCounterAsset(String name, Asset<?> area, GeoJSONPoint location, Supplier<AgentLink<?>> agentLinker) {<NEW_LINE>PeopleCounterAsset peopleCounterAsset = new PeopleCounterAsset(name);<NEW_LINE>peopleCounterAsset.setParent(area);<NEW_LINE>peopleCounterAsset.getAttributes().addOr...
, agentLinker.get()));
1,631,746
private CodegenMethod evaluateGetROCollectionEventsCodegenRewritten(CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenExpressionField nodeObject = getNodeObject(codegenClassScope);<NEW_LINE>ExprForgeCodegenSymbol scope = new ExprForgeCodegenSymbol(true, null);<NEW_LINE>Codege...
refEPS, ref("result")));
334,005
public void completeQueryWithObject(SearchResult sr) {<NEW_LINE>if (sr.object instanceof AbstractPoiType) {<NEW_LINE>SearchHistoryHelper.getInstance(app).addNewItemToHistory((AbstractPoiType) sr.object);<NEW_LINE>reloadHistory();<NEW_LINE>} else if (sr.object instanceof PoiUIFilter) {<NEW_LINE>SearchHistoryHelper.getIn...
localeName, city.getLocation());
490,226
public void sendKeys(CharSequence... keysToSend) {<NEW_LINE>if (keysToSend == null || keysToSend.length == 0) {<NEW_LINE>throw new IllegalArgumentException("Keys to send should be a not null CharSequence");<NEW_LINE>}<NEW_LINE>for (CharSequence cs : keysToSend) {<NEW_LINE>if (cs == null) {<NEW_LINE>throw new IllegalArg...
String.join("", keysToSend);
1,770,669
public boolean isNotNumberOrChar(AnnotatedTypeMirror type) {<NEW_LINE>TypeMirror serializableTM = elements.getTypeElement(Serializable.class.getCanonicalName()).asType();<NEW_LINE>TypeMirror comparableTM = elements.getTypeElement(Comparable.class.getCanonicalName()).asType();<NEW_LINE>TypeMirror numberTM = elements.get...
getCanonicalName()).asType();
709,979
public com.squareup.okhttp.Call cancelTaskCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String loca...
String[] localVarAccepts = { "application/json" };
995,692
private boolean executableMatches(Executable executable, ImmutableSet<ExecutableElement> methodsInAutoBuilderType) {<NEW_LINE>// Start with the complete set of parameter names and remove them one by one as we find<NEW_LINE>// corresponding methods. We ignore case, under the assumption that it is unlikely that a case<NE...
addAll(executable.parameterNames());
441,883
// GEN-LAST:event_tablesDropdownListActionPerformed<NEW_LINE>@NbBundle.Messages({ "SQLiteViewer.csvExport.fileName.empty=Please input a file name for exporting.", "SQLiteViewer.csvExport.title=Export to csv file", "SQLiteViewer.csvExport.confirm.msg=Do you want to overwrite the existing file?" })<NEW_LINE>private void ...
= new FileNameExtensionFilter("*.csv", "csv");
558,971
private void run(final String uri) {<NEW_LINE>JFrame frame = new JFrame("Show Sample XML with Embedded SVG");<NEW_LINE>frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);<NEW_LINE>// RootPanel holds the ReplacedElementFactories. Currently, this factory<NEW_LINE>// is created on each call to layout, so we override the...
.addFactory(new SwingReplacedElementFactory());
1,215,663
public List<Pair<String, String>> export(Node node, ProgressReporter progressReporter) {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>final String labelName = (String) node.getProperty(SystemPropertyKeys.label.name());<NEW_LINE>final String property = (String) node.getProperty(SystemPropertyKeys.propert...
final String uuidConfig = toCypherMap(map);
942,373
public void testBodyWithQueryParams(String query, User body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'query' is set<NEW_LINE>if (query == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryPa...
String[] localVarContentTypes = { "application/json" };
1,478,670
protected List<BoundQuery> buildQueries(DataFetchingEnvironment environment, StargateGraphqlContext context) throws UnauthorizedException {<NEW_LINE>boolean ifNotExists = environment.containsArgument("ifNotExists") && environment.getArgument("ifNotExists") != null && (Boolean) environment.getArgument("ifNotExists");<NE...
>(valuesToInsert.size());
1,161,950
DataFileValue minorCompact(InMemoryMap memTable, TabletFile tmpDatafile, TabletFile newDatafile, long queued, CommitSession commitSession, long flushId, MinorCompactionReason mincReason) {<NEW_LINE>boolean failed = false;<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>timer.incrementStatusMinor();<NEW_LINE>...
currentThread().setName(oldName);
1,524,430
private AggregationInfo buildAggregationInfo(Function function) {<NEW_LINE>List<Expression> operands = function.getOperands();<NEW_LINE>if (operands == null || operands.isEmpty()) {<NEW_LINE>throw new Pql2CompilationException("Aggregation function expects non null argument");<NEW_LINE>}<NEW_LINE>List<String> args = new...
>(operands.size());
179,013
public void OpenShift_StubbedTests_emptyUserApiToken() throws Exception {<NEW_LINE>// send a flag to the stubbed an OpenShift tokenReviews response<NEW_LINE>String access_token = "badServiceAccountToken";<NEW_LINE>WebClient webClient = getAndSaveWebClient();<NEW_LINE>SocialTestSettings updatedSocialTestSettings = socia...
STRING_CONTAINS, "Message log did not contain message indicating that we could not get user info", SocialMessageConstants.CWWKS5461E_ERROR_GETTING_USERINFO);
1,050,948
JSONObject dumpJSON(boolean verbose) throws JSONException {<NEW_LINE>synchronized (mLock) {<NEW_LINE>JSONArray nonPrimaryList = new JSONArray();<NEW_LINE>JSONArray acquiredList = new JSONArray();<NEW_LINE>JSONArray waiters = new JSONArray();<NEW_LINE>JSONObject o = new JSONObject().put("path", mConfiguration.path).put(...
).put("waiters", waiters);
1,020,619
public final void onApplicationEvent(RepositoryEvent event) {<NEW_LINE>Class<?> srcType = event.getSource().getClass();<NEW_LINE>if (null != INTERESTED_TYPE && !INTERESTED_TYPE.isAssignableFrom(srcType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (event instanceof BeforeSaveEvent) {<NEW_LINE>onBeforeSave((T) event.getSo...
T) event.getSource());
1,294,742
/*<NEW_LINE>* Collects configuration properties for Kubernetes. Reads all properties and<NEW_LINE>* matches properties that match known Dekorate generators. These properties may<NEW_LINE>* or may not be prefixed with `quarkus.` though the prefixed ones take<NEW_LINE>* precedence.<NEW_LINE>*<NEW_LINE>* @return A map con...
() + ".part-of", g));
504,695
private Executable storeValue() {<NEW_LINE>return connection -> {<NEW_LINE>int maxColumnSize = table.getMaxColumnSize();<NEW_LINE>if (maxColumnSize == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Integer tableID = query(tableID());<NEW_LINE>List<Object[]<MASK><NEW_LINE>Integer oldRowCount = query(currentRowCount(tab...
> rows = table.getRows();
534,633
public void search(final String text, final boolean isCaseSensitive, final boolean isRegularExpression) {<NEW_LINE>if (selectedProject == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (fFilenameSearchMode) {<NEW_LINE>clearFilter();<NEW_LINE>try {<NEW_LINE>final Pattern pattern = search.createSearchPattern();<NEW_LINE...
matcher(string).find();
1,532,765
private static boolean isUnionCompatible(final DruidRel<?> first, final DruidRel<?> second, @Nullable PlannerContext plannerContext) {<NEW_LINE>final Optional<List<String>> <MASK><NEW_LINE>final Optional<List<String>> secondColumnNames = getColumnNamesIfTableOrUnion(second, plannerContext);<NEW_LINE>if (!firstColumnNam...
firstColumnNames = getColumnNamesIfTableOrUnion(first, plannerContext);
459,505
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 1000);<NEW_LINE>if (sub.isCanceled()) {<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>}<NEW_LINE>GitRepository currentRepo = commit.repository();<NEW_LINE>currentRepo.enterWriteProcess();<NEW_LINE>try {<NEW_LINE>// ...
), currentRepo.workingDirectory());
927,923
public BufferedImage readFrame(int frameIndex) throws IOException {<NEW_LINE>if (iis == null)<NEW_LINE>iis = new FileImageInputStream(file);<NEW_LINE>if (decompressor != null)<NEW_LINE>return decompressFrame(iis, frameIndex);<NEW_LINE>iis.setByteOrder(pixeldata.bigEndian() ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDI...
.getRaster().getDataBuffer();
496,826
public static DescribeDcdnDomainOriginTrafficDataResponse unmarshall(DescribeDcdnDomainOriginTrafficDataResponse describeDcdnDomainOriginTrafficDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnDomainOriginTrafficDataResponse.setRequestId(_ctx.stringValue("DescribeDcdnDomainOriginTrafficDataResponse.Reques...
("DescribeDcdnDomainOriginTrafficDataResponse.OriginTrafficDataPerInterval[" + i + "].OriginTraffic"));
799,230
private final void showResult(ActionEvent event, String result) {<NEW_LINE>EscapeDialog messageDialog = new // $NON-NLS-1$<NEW_LINE>EscapeDialog(// $NON-NLS-1$<NEW_LINE>getParentFrame(event), // $NON-NLS-1$<NEW_LINE>JMeterUtils.getResString("export_transactions_title"), false);<NEW_LINE>Container contentPane = messageD...
.setLayout(new BorderLayout());
968,201
public void onInboundNext(ChannelHandlerContext ctx, Object frame) {<NEW_LINE>if (frame instanceof CloseWebSocketFrame && ((CloseWebSocketFrame) frame).isFinalFragment()) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(format<MASK><NEW_LINE>}<NEW_LINE>CloseWebSocketFrame closeFrame = new CloseWebSocketFrame(t...
(channel(), "CloseWebSocketFrame detected. Closing Websocket"));
1,242,841
private void checkInfo(Info info, Entry entry, Collection<? extends Entry> entries, java.util.Map<Entry, Info> map) {<NEW_LINE>if (info == null) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("Error in ").append(getClass().getName()).append(" with entry ").append(entry).append(" from among entrie...
append(ei.getValue());
1,823,384
protected Item parseItem(final Element rssRoot, final Element eItem, final Locale locale) {<NEW_LINE>final Item item = super.parseItem(rssRoot, eItem, locale);<NEW_LINE>final Element description = eItem.<MASK><NEW_LINE>if (description != null) {<NEW_LINE>item.setDescription(parseItemDescription(rssRoot, description));<...
getChild("description", getRSSNamespace());
332,330
public void installFixes(Collection<String> fixes, String userId, String password) throws InstallException {<NEW_LINE>fireProgressEvent(InstallProgressEvent.CHECK, 1, Messages.INSTALL_KERNEL_MESSAGES.getLogMessage("STATE_CHECKING"));<NEW_LINE>List<String> fixesToInstall = new ArrayList<String>(fixes.size());<NEW_LINE>f...
(), d, true));
1,835,664
protected MessageExtBrokerInner buildInnerMsg(final ChannelHandlerContext ctx, final SendMessageRequestHeader requestHeader, final byte[] body, TopicConfig topicConfig) {<NEW_LINE>int queueIdInt = requestHeader.getQueueId();<NEW_LINE>if (queueIdInt < 0) {<NEW_LINE>queueIdInt = ThreadLocalRandom.current().nextInt(999999...
channel().remoteAddress());
1,735,826
public boolean hasObjectsForRegion(Class<? extends PathObject> cls, ImageRegion region, boolean includeSubclasses) {<NEW_LINE>ensureCacheConstructed();<NEW_LINE>var envelope = region == null ? MAX_ENVELOPE : getEnvelope(region);<NEW_LINE>int z = region == null ? <MASK><NEW_LINE>int t = region == null ? -1 : region.getT...
-1 : region.getZ();
342,031
public boolean remove(Object key, Object value) {<NEW_LINE>checkTransactionState();<NEW_LINE>checkNotNull(key, "key can't be null");<NEW_LINE>checkNotNull(value, "value can't be null");<NEW_LINE>Data keyData = mapServiceContext.toData(key, partitionStrategy);<NEW_LINE>TxnValueWrapper <MASK><NEW_LINE>// wrapper is null ...
wrapper = txMap.get(keyData);
551,156
public CreateEmailIdentityResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateEmailIdentityResult createEmailIdentityResult = new CreateEmailIdentityResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
().unmarshall(context));
363,941
public static ParamListResponse unmarshall(ParamListResponse paramListResponse, UnmarshallerContext _ctx) {<NEW_LINE>paramListResponse.setRequestId(_ctx.stringValue("ParamListResponse.RequestId"));<NEW_LINE>paramListResponse.setErrorCode(_ctx.stringValue("ParamListResponse.ErrorCode"));<NEW_LINE>paramListResponse.setEr...
= new ArrayList<DataItem>();
526,784
private Map<String, Object> initAttributes(KeycloakSession session, RealmModel realm, Theme theme, Locale locale, int statusCode) throws IOException {<NEW_LINE>Map<String, Object> attributes = new HashMap<>();<NEW_LINE>Properties messagesBundle = theme.getMessages(locale);<NEW_LINE>attributes.put("statusCode", statusCo...
"properties", theme.getProperties());
1,344,059
public void reportMismatches(List<Class<?>> classes) {<NEW_LINE>if (Boolean.getBoolean("enginehub.disable.class.source.validation")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<Class<?>, CodeSource> mismatches = findMismatches(classes);<NEW_LINE>if (mismatches.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StringBuil...
ROOT)).append(" AND ALL OF ITS FEATURES.\n");
541,466
private void maybeReportBepTransports(PositionAwareAnsiTerminalWriter terminalWriter) throws IOException {<NEW_LINE>if (!buildComplete || bepOpenTransports.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Duration waitTime = Duration.between(buildCompleteAt, Instant.ofEpochMilli(clock.currentTimeMillis()));<NEW_LINE>i...
+ waitTime.getSeconds() + "s";
1,201,399
protected void process(Env env, Map<Option, String[]> maps) throws CommandException {<NEW_LINE>String[] <MASK><NEW_LINE>if (pids != null && pids.length == 1) {<NEW_LINE>try {<NEW_LINE>int pid = Integer.valueOf(pids[0]);<NEW_LINE>new ApplicationFinder(pid) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void found(Applic...
pids = maps.get(ARGUMENT);
1,824,428
private void processLeaveType(MHRLeaveType leaveType) {<NEW_LINE>String durationType = TNAUtil.getDurationUnitFromFrequencyType(leaveType.getFrequencyType());<NEW_LINE>// Create<NEW_LINE>if (Util.isEmpty(durationType)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (durationType.equals(TimeUtil.DURATIONUNIT_Hour)) {<NEW_LIN...
Timestamp dateLastRun = assignedLeave.getDateLastRun();
1,303,603
/*<NEW_LINE>* @see com.ibm.ws.channel.ssl.internal.SSLHandshakeCompletedCallback#complete(javax.net.ssl.SSLEngineResult)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void complete(SSLEngineResult sslResult) {<NEW_LINE>// Release buffers used in the handshake.<NEW_LINE>netBuffer.release();<NEW_LINE>netBuffer = null;<N...
debug(tc, "Unable to complete SSLhandshake, " + e);
1,322,459
public static boolean addMenu(final SearchSubsResultBase result, Menu menu) {<NEW_LINE>final byte[] hash = result.getHash();<NEW_LINE>if (hash != null) {<NEW_LINE>MenuItem item = new MenuItem(menu, SWT.PUSH);<NEW_LINE>item.setText(MessageText.getString("searchsubs.menu.google.hash"));<NEW_LINE>item.addSelectionListener...
MenuItem(menu, SWT.PUSH);
67,161
public void initialize(T image, int x0, int y0, int x1, int y1) {<NEW_LINE>if (imagePyramid == null || imagePyramid.getInputWidth() != image.width || imagePyramid.getInputHeight() != image.height) {<NEW_LINE>int minSize = (config.trackerFeatureRadius * 2 + 1) * 5;<NEW_LINE>ConfigDiscreteLevels configLevels = ConfigDisc...
image.width, image.height);
1,162,355
public double[] kg(T x, T y) {<NEW_LINE>double[] kg1 = k1.kg(x, y);<NEW_LINE>double[] kg2 = <MASK><NEW_LINE>double[] kg = new double[kg1.length + kg2.length - 1];<NEW_LINE>double k1 = kg1[0];<NEW_LINE>double k2 = kg2[0];<NEW_LINE>kg[0] = k1 + k2;<NEW_LINE>int n1 = kg1.length;<NEW_LINE>for (int i = 1; i < n1; i++) {<NEW...
k2.kg(x, y);
1,519,772
static AssertionError makeComparisonFailure(ImmutableList<String> messages, ImmutableList<Fact> facts, String expected, String actual, @Nullable Throwable cause) {<NEW_LINE>Class<?> comparisonFailureClass;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (LinkageError | ClassNotFoundException probablyJunitNotOnClasspath...
comparisonFailureClass = Class.forName("com.google.common.truth.ComparisonFailureWithFacts");
1,123,426
public long spill(long numBytes) throws IOException {<NEW_LINE>synchronized (this) {<NEW_LINE>if (!destructive || dataPages.size() == 1) {<NEW_LINE>return 0L;<NEW_LINE>}<NEW_LINE>long released = 0L;<NEW_LINE>while (dataPages.size() > 0) {<NEW_LINE>MemoryBlock block = dataPages.getLast();<NEW_LINE>// The currentPage is ...
long offset = block.getBaseOffset();
1,424,242
private Mono<PagedResponse<ClusterInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE...
)).readOnly()));
654,623
final DeleteConditionalForwarderResult executeDeleteConditionalForwarder(DeleteConditionalForwarderRequest deleteConditionalForwarderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConditionalForwarderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
(super.beforeMarshalling(deleteConditionalForwarderRequest));
613,988
public void actionPerformed(ActionEvent evt, JTextComponent target) {<NEW_LINE>try {<NEW_LINE>boolean toggled = false;<NEW_LINE>BaseDocument doc = <MASK><NEW_LINE>// inside scriptlet<NEW_LINE>int startPos = org.netbeans.editor.Utilities.getRowStart(doc, target.getSelectionStart());<NEW_LINE>TokenHierarchy th = TokenHie...
(BaseDocument) target.getDocument();
239,574
private void createImplicitTestFixturesDependencies(Project project, JavaPluginExtension extension) {<NEW_LINE>DependencyHandler dependencies = project.getDependencies();<NEW_LINE>dependencies.add(TEST_FIXTURES_API, dependencies.create(project));<NEW_LINE>SourceSet testSourceSet = findTestSourceSet(extension);<NEW_LINE...
ConfigurationContainer configurations = project.getConfigurations();
1,004,803
public void afterPropertiesSet() {<NEW_LINE>Map<String, GlobalOpenApiCustomizer> globalOpenApiCustomizerMap = applicationContext.getBeansOfType(GlobalOpenApiCustomizer.class);<NEW_LINE>Map<String, GlobalOperationCustomizer> globalOperationCustomizerMap = applicationContext.getBeansOfType(GlobalOperationCustomizer.class...
applicationContext.getBeansOfType(GlobalOpenApiMethodFilter.class);
414,957
public static PdfFunction type0(PdfWriter writer, float[] domain, float[] range, int[] size, int bitsPerSample, int order, float[] encode, float[] decode, byte[] stream) {<NEW_LINE>PdfFunction func = new PdfFunction(writer);<NEW_LINE>func.dictionary = new PdfStream(stream);<NEW_LINE>((PdfStream) func.dictionary).<MASK>...
flateCompress(writer.getCompressionLevel());
369,245
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Extensions.DaemonSetList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Extensions.DaemonSetList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_LINE>i...
.alwaysUseFieldBuilders ? getItemsFieldBuilder() : null;
1,517,872
private void processNodeActionsIfReady(@Nonnull final DefaultMutableTreeNode node) {<NEW_LINE>assertIsDispatchThread();<NEW_LINE>if (isNodeBeingBuilt(node))<NEW_LINE>return;<NEW_LINE>NodeDescriptor descriptor = getDescriptorFrom(node);<NEW_LINE>if (descriptor == null)<NEW_LINE>return;<NEW_LINE>if (isYeildingNow()) {<NE...
myNodeActions, childrenReady ? myNodeChildrenActions : null);
800,034
private List<Map<String, Integer>> crossedToken(final Zone zone, final Token tokenInContext, final Token target, final String pathString) {<NEW_LINE>JsonElement json = null;<NEW_LINE>json = JSONMacroFunctions.getInstance().asJsonElement(pathString);<NEW_LINE>ArrayList<Map<String, Integer>> pathPoints = new ArrayList<Ma...
("y").getAsInt());
782,573
final ListSpeakersResult executeListSpeakers(ListSpeakersRequest listSpeakersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSpeakersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListSpeakersRequest> ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
435,304
public void findDatafeedsByJobIds(Collection<String> jobIds, ActionListener<Map<String, DatafeedConfig.Builder>> listener) {<NEW_LINE>SearchRequest searchRequest = client.prepareSearch(MlConfigIndex.indexName()).setIndicesOptions(IndicesOptions.lenientExpandOpen()).setSource(new SearchSourceBuilder().query(buildDatafee...
parseLenientlyFromSource(hit.getSourceRef());
1,385,921
public void testAsyncInvoker_postReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>ClientBuilder cb = ClientBuilder.newBuilder();<NEW_LINE>cb.property("com.ibm.ws.jaxrs.client.receive.timeout", ...
AsyncInvoker asyncInvoker = builder.async();
1,401,288
private boolean decommission(ServerConfiguration conf, DecommissionFlags flags) throws BKException, InterruptedException, IOException {<NEW_LINE>ClientConfiguration adminConf = new ClientConfiguration(conf);<NEW_LINE>BookKeeperAdmin admin = new BookKeeperAdmin(adminConf);<NEW_LINE>try {<NEW_LINE>final String remoteBook...
warn("No cookie to remove for the decommissioning bookie: {}, it could be deleted already", bookieAddressToDecommission, nne);
673,403
public void createCertificateIssuerCodeSnippets() {<NEW_LINE>CertificateClient certificateClient = getCertificateClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.certificates.CertificateClient.createIssuer#CertificateIssuer<NEW_LINE>CertificateIssuer issuerToCreate = new CertificateIssuer("myissuer", "myProvide...
returnedIssuer = certificateClient.createIssuer(issuerToCreate);
1,795,836
private void addKeyboardListener(final WXEditText host) {<NEW_LINE>if (host == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Context context = host.getContext();<NEW_LINE>if (context != null && context instanceof Activity) {<NEW_LINE>SoftKeyboardDetector.registerKeyboardEventListener((Activity) context, new SoftKe...
getInstance().getInstanceViewPortWidth());
21,303
public void run(RegressionEnvironment env) {<NEW_LINE>final long startTime = 1000;<NEW_LINE>sendTimer(env, startTime);<NEW_LINE>SupportMarketDataBean[] events = get100Events();<NEW_LINE>String epl = "@name('s0') select irstream sum(price) as sumPrice from SupportMarketDataBean#time_accum(10 sec)";<NEW_LINE>env.compileD...
sendTimer(env, startTime + 25000);