idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,069,656
private boolean checkBounds(Unifier unifier, Inliner inliner, Warner warner) throws CouldNotResolveImportException {<NEW_LINE>Types types = unifier.types();<NEW_LINE>ListBuffer<Type> varsBuffer = new ListBuffer<>();<NEW_LINE>ListBuffer<Type> bindingsBuffer = new ListBuffer<>();<NEW_LINE>for (UTypeVar typeVar : typeVari...
(inliner.inlineAsVar(typeVar));
1,690,581
protected Query doToQuery(SearchExecutionContext context) throws IOException {<NEW_LINE>Settings newSettings = new Settings(settings);<NEW_LINE>final Map<String, Float> resolvedFieldsAndWeights;<NEW_LINE>boolean isAllField;<NEW_LINE>if (fieldsAndWeights.isEmpty() == false) {<NEW_LINE>resolvedFieldsAndWeights = QueryPar...
, QueryParserHelper.parseFieldsAndWeights(defaultFields));
1,401,757
private RatpackAdapter createAdapter(JavaExec task, ServiceRegistry services) {<NEW_LINE>Object builder;<NEW_LINE>if (gradleVersion.compareTo(V2_13) < 0) {<NEW_LINE>builder = Invoker.invokeParamless(Factory.class, getWorkerProcessBuilderFactory(services), "create");<NEW_LINE>Invoker.of("org.gradle.process.internal.work...
invokeParamless("org.gradle.process.internal.worker.WorkerProcess", process, "getConnection");
668,731
final DBClusterParameterGroup executeCopyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest copyDBClusterParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(copyDBClusterParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
invoke(request, responseHandler, executionContext);
1,672,077
final ImportApiResult executeImportApi(ImportApiRequest importApiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importApiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
749,321
ActionResult<Wo> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<String> applicationIds = emc...
copier), WoAgent.copier));
1,842,456
public static NdConstant create(Nd nd, Constant constant) {<NEW_LINE>if (constant == Constant.NotAConstant) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>switch(constant.typeID()) {<NEW_LINE>case TypeIds.T_boolean:<NEW_LINE>return NdConstantBoolean.create(nd, constant.booleanValue());<NEW_LINE>case TypeIds.T_byte:<NEW_LI...
nd, constant.charValue());
574,023
public void domainObjectRestored(DataTypeManagerDomainObject domainObject) {<NEW_LINE>boolean reload = true;<NEW_LINE>String objectType = "domain object";<NEW_LINE>if (domainObject instanceof Program) {<NEW_LINE>objectType = "program";<NEW_LINE>} else if (domainObject instanceof DataTypeArchive) {<NEW_LINE>objectType =...
StackEditorModel) model).getOriginalComposite();
1,240,105
public Object rebuild(java.util.List<Editable> editables) throws UpdateFailedException {<NEW_LINE>Backup backup = new Backup();<NEW_LINE>//<NEW_LINE>// Fix-up _descriptor if necessary<NEW_LINE>//<NEW_LINE>if (_descriptor.template.length() > 0) {<NEW_LINE>TemplateDescriptor templateDescriptor = getRoot().findServiceTemp...
_descriptor.parameterValues, templateDescriptor.parameters);
477,012
// Treat Emacs profile specially in order to fix #191895<NEW_LINE>private void emacsProfileFix(final JTextComponent incSearchTextField) {<NEW_LINE>class JumpOutOfSearchAction extends AbstractAction {<NEW_LINE><NEW_LINE>private final String actionName;<NEW_LINE><NEW_LINE>public JumpOutOfSearchAction(String n) {<NEW_LINE...
Action a4 = new JumpOutOfSearchAction(actionName);
345,184
public boolean applyTo(DomainObject obj, TaskMonitor monitor) {<NEW_LINE>monitor.setMessage("ApplyDiffTask starting...");<NEW_LINE>applied = false;<NEW_LINE>final ProgramLocation origLocation = plugin.getProgramLocation();<NEW_LINE>if (!plugin.isTaskInProgress()) {<NEW_LINE>plugin.setTaskInProgress(true);<NEW_LINE>Stri...
= new ReadTextDialog(title, applyMsg);
1,743,171
public TrieMap<K, V> putChildTrie(Iterable<K> key, TrieMap<K, V> child) {<NEW_LINE>TrieMap<K, V> parentTrie = null;<NEW_LINE>TrieMap<K, V> curTrie = this;<NEW_LINE>Iterator<K> keyIter = key.iterator();<NEW_LINE>// go through each element<NEW_LINE>while (keyIter.hasNext()) {<NEW_LINE>K element = keyIter.next();<NEW_LINE...
children.put(element, child);
517,120
public MaryData process(MaryData d) throws Exception {<NEW_LINE>String phoneString = d.getPlainText();<NEW_LINE>MaryData result = new MaryData(getOutputType(), d.getLocale(), true);<NEW_LINE>Document doc = result.getDocument();<NEW_LINE>Element root = doc.getDocumentElement();<NEW_LINE>root.setAttribute("xml:lang", Mar...
, String.valueOf(dur));
216,723
private void generateFastIsSuperclassFunction(String className) {<NEW_LINE>List<TagRegistry.Range> ranges = tagRegistry.getRanges(className);<NEW_LINE>if (ranges.isEmpty()) {<NEW_LINE>codeWriter.println("return INT32_C(0);");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String tagName = context.getNames().forMemberField(new Fi...
.getName(), "tag"));
261,124
public void verifyGqrViewComment(FeedbackQuestionAttributes question, FeedbackResponseCommentAttributes comment, FeedbackResponseAttributes response, Collection<InstructorAttributes> instructors, Collection<StudentAttributes> students, boolean isGroupedByTeam) {<NEW_LINE>selectViewType(GQR_VIEW);<NEW_LINE>FeedbackParti...
getRecipient(), instructors, students);
1,589,355
public void testTimerReferencesSurvivePassivation() {<NEW_LINE>final String method = "testTimerReferencesSurvivePassivation";<NEW_LINE>if (svLogger.isLoggable(Level.FINEST)) {<NEW_LINE>svLogger.logp(Level.FINEST, CLASSNAME, method, "creating 4 timers via SFSB");<NEW_LINE>}<NEW_LINE>// create a bunch of timers<NEW_LINE>...
, timers.contains(timer1));
203,889
private void statInit() {<NEW_LINE>labelValue.setText(Msg.getMsg(Env.getCtx(), "Value"));<NEW_LINE>fieldValue.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>fieldValue.addActionListener(this);<NEW_LINE>labelName.setText(Msg.getMsg(Env.getCtx(), "Name"));<NEW_LINE>fieldName.setBackground(AdempierePLAF.getInf...
new Dimension(1200, 100));
1,571,180
public WorkflowExportResponseRef exportRef(WorkflowExportRequestRef workflowExportRequestRef) throws ExternalOperationFailedException {<NEW_LINE>String userName = workflowExportRequestRef.getUserName();<NEW_LINE>// todo<NEW_LINE>long flowId = workflowExportRequestRef.getAppId();<NEW_LINE>Long projectId = workflowExport...
ExternalOperationFailedException(100085, "Error ask workflow to export!", null);
1,636,512
private static AbstractConfigObject createValueUnderPath(Path path, AbstractConfigValue value) {<NEW_LINE>// for path foo.bar, we are creating<NEW_LINE>// { "foo" : { "bar" : value } }<NEW_LINE>List<String> keys = new ArrayList<>();<NEW_LINE>String key = path.first();<NEW_LINE>Path remaining = path.remainder();<NEW_LIN...
listIterator(keys.size());
1,544,583
public ContentLayoutData layoutContent(@NotNull final C c, @NotNull final D d, @NotNull final Rectangle bounds) {<NEW_LINE>final ContentLayoutData layoutData = new ContentLayoutData(5);<NEW_LINE>final boolean ltr = isLeftToRight(c, d);<NEW_LINE>final int gap = getGap();<NEW_LINE>final Dimension lps = getPreferredSize(c...
, y, width, height));
20,920
private void loadNode454() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_TrustList_Write_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"...
.expanded(), true));
1,631,135
public com.amazonaws.services.eventbridge.model.InvalidStateException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.eventbridge.model.InvalidStateException invalidStateException = new com.amazonaws.services.eventbridge.model.InvalidStateException(null);<NEW_LI...
JsonToken token = context.getCurrentToken();
185,164
private boolean saveAsRocksim(File file) {<NEW_LINE>if (prefs.getShowRockSimFormatWarning()) {<NEW_LINE>// Show Rocksim format warning<NEW_LINE>JPanel panel = <MASK><NEW_LINE>panel.add(new StyledLabel(trans.get("SaveRktWarningDialog.txt1")), "wrap");<NEW_LINE>final JCheckBox check = new JCheckBox(trans.get("SaveRktWarn...
new JPanel(new MigLayout());
1,300,417
private void registerHandlers(RaftServerProtocol protocol) {<NEW_LINE>protocol.registerOpenSessionHandler(request -> runOnContextIfReady(() -> role.onOpenSession(request), OpenSessionResponse::builder));<NEW_LINE>protocol.registerCloseSessionHandler(request -> runOnContextIfReady(() -> role.onCloseSession(request), Clo...
role.onVote(request)));
1,598,658
public void startOneIndividualStreamRecording(Session session, Participant participant) {<NEW_LINE>Recording recording = this.sessionsRecordings.get(session.getSessionId());<NEW_LINE>if (recording == null) {<NEW_LINE>recording = this.sessionsRecordingsStarting.get(session.getSessionId());<NEW_LINE>if (recording == null...
recording.getRecordingProperties(), participant);
1,396,610
public static DynamicConfigAddMapConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.next();<NEW...
decodeInt(initialFrame.content, REQUEST_METADATA_POLICY_FIELD_OFFSET);
1,090,633
public CompletableFuture<FetchedValue> fetchValue(ExecutionContext executionContext, Object source, Object localContext, MergedField sameFields, ExecutionStepInfo executionInfo) {<NEW_LINE>Field field = sameFields.getSingleField();<NEW_LINE>GraphQLFieldDefinition fieldDef = executionInfo.getFieldDefinition();<NEW_LINE>...
ExecutionId executionId = executionContext.getExecutionId();
1,639,185
final DescribeRulesetResult executeDescribeRuleset(DescribeRulesetRequest describeRulesetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRulesetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.SERVICE_ID, "DataBrew");
712,654
public void testPersistTaskWithNonSerializableResult(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>String taskName = "TaskWithNonSerializableResult-" + VNEXT;<NEW_LINE>NonSerializableResultTask task = new NonSerializableResultTask();<NEW_LINE>TaskStatus<ThreadGroup> status = exec...
throw new Exception("Unexpected result: " + result);
905,575
public static JPanel createProgressBarPanel(JProgressBar progressBar, int space, boolean indeterimate) {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>if (isMac()) {<NEW_LINE>// default native progress bar on mac ignores color settings, use a custom ui to get green/red<NEW_LINE>progressBar<MASK><NEW_...
.setUI(new BasicProgressBarUI());
1,646,931
private void doExperiment(Comparable[] originalArray) {<NEW_LINE>int[] cutoffSizes <MASK><NEW_LINE>List<double[]> allSubArraySizes = new ArrayList<>();<NEW_LINE>for (int cutoffSize : cutoffSizes) {<NEW_LINE>Comparable[] array = new Comparable[originalArray.length];<NEW_LINE>System.arraycopy(originalArray, 0, array, 0, ...
= { 10, 20, 50 };
556,150
private void workflowHistoryChanges() throws SQLException, DotDataException {<NEW_LINE>String dropInode = "";<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>if (DbConnectionFactory.isMySql()) {<NEW_LINE>dropInode = "ALTER TABLE workflow_history DROP FOREIGN KEY fk933334145fb51eb;" + "drop index fk933334145fb51eb o...
addWorkFlowHistoryFK.replaceAll("varchar\\(", "varchar2\\(");
477,056
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Busines...
result = new ActionResult<>();
537,718
private PropertyNode createDefaultClassConstructor(int classLineNumber, long classToken, long lastToken, IdentNode className, boolean subclass) {<NEW_LINE>final int ctorFinish = finish;<NEW_LINE>final List<Statement> statements;<NEW_LINE>final List<IdentNode> parameters;<NEW_LINE>final long identToken = Token.recast(cl...
null, null, false, false);
673,554
public void onEvent(Event event) throws Exception {<NEW_LINE>if (event.getTarget() == bRefresh) {<NEW_LINE>loadTable();<NEW_LINE>renderListBox();<NEW_LINE>updateFooter();<NEW_LINE>} else if (event.getName() == Events.ON_OPEN) {<NEW_LINE>OpenEvent openEvt = (OpenEvent) event;<NEW_LINE>WEditorPopupMenu popup = (WEditorPo...
Component referencedComponent = openEvt.getReference();
1,195,203
private InitiateProfilingCommand createInitiateInstrumnetation(int instrType, String[] classNames, boolean instrSpawnedThreads, boolean startProfilingPointsActive) {<NEW_LINE>RuntimeProfilingPoint[<MASK><NEW_LINE>String[] profilingPointHandlers = new String[points.length];<NEW_LINE>String[] profilingPointInfos = new St...
] points = settings.getRuntimeProfilingPoints();
1,733,552
private static void checksumResourceFilePath(final PwmDomain pwmDomain, final CrcChecksumOutputStream checksumStream) {<NEW_LINE>if (pwmDomain.getPwmApplication().getPwmEnvironment().getContextManager() != null) {<NEW_LINE>try {<NEW_LINE>final Optional<File> webInfPath = pwmDomain.getPwmApplication().getPwmEnvironment(...
.get().getParentFile();
1,617,768
final PutRegistryPolicyResult executePutRegistryPolicy(PutRegistryPolicyRequest putRegistryPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putRegistryPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
(super.beforeMarshalling(putRegistryPolicyRequest));
406,537
public void splitRemarkReferenceWithWeakReferenceSplitBug(GCLogTrace trace, String line) {<NEW_LINE>GCLogTrace remarkTrace = REMARK_CLAUSE.parse(line);<NEW_LINE>Pattern durationGroupPattern = Pattern.compile(".* " + PAUSE_TIME);<NEW_LINE>Matcher matcher = durationGroupPattern.matcher(line);<NEW_LINE>double duration = 0...
weakReferenceFragment = weakReferenceFragmentRule.parse(line);
569,399
public KinesisParameters unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KinesisParameters kinesisParameters = new KinesisParameters();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token...
int originalDepth = context.getCurrentDepth();
1,838,941
protected void executeParse(BpmnParse bpmnParse, IntermediateCatchEvent event) {<NEW_LINE>ActivityImpl nestedActivity = null;<NEW_LINE>EventDefinition eventDefinition = null;<NEW_LINE>if (!event.getEventDefinitions().isEmpty()) {<NEW_LINE>eventDefinition = event.getEventDefinitions().get(0);<NEW_LINE>}<NEW_LINE>if (eve...
(!event.isNotExclusive());
418,528
public static Map<String, AttributeValue> toAttributeValueMap(Onboarding onboarding) {<NEW_LINE>Map<String, AttributeValue> <MASK><NEW_LINE>item.put("id", AttributeValue.builder().s(onboarding.getId().toString()).build());<NEW_LINE>if (onboarding.getCreated() != null) {<NEW_LINE>item.put("created", AttributeValue.build...
item = new HashMap<>();
1,022,591
public int loadConnections(InputStream in, long delta) throws IOException {<NEW_LINE>boolean clear = true;<NEW_LINE>int count = 0;<NEW_LINE>long startNanos = ClockUtil.nanoRealtime();<NEW_LINE>DataStreamReader reader = new DataStreamReader(in);<NEW_LINE>long progressNanos = startNanos;<NEW_LINE>try {<NEW_LINE>Connectio...
long now = ClockUtil.nanoRealtime();
279,270
protected AssemblyResolution solveLeftSide(PatternExpression lexp, MaskedLong rval, MaskedLong goal, Map<String, Long> vals, AssemblyResolvedPatterns cur, Set<SolverHint> hints, String description) throws NeedsBackfillException, SolverException {<NEW_LINE>// Try the usual case first<NEW_LINE>ResultTracker tracker = new...
vals, cur, hintsWithRepetition, description);
674,275
public <V> FileContentCache<V> newCache(String name, int normalizedCacheSize, final Calculator<? extends V> calculator, Serializer<V> serializer) {<NEW_LINE>PersistentIndexedCacheParameters<HashCode, V> parameters = PersistentIndexedCacheParameters.of(name, hashCodeSerializer, serializer).withCacheDecorator(inMemoryCac...
.decorator(normalizedCacheSize, true));
737,516
public static Bitmap drawable2Bitmap(@Nullable final Drawable drawable) {<NEW_LINE>if (drawable == null)<NEW_LINE>return null;<NEW_LINE>if (drawable instanceof BitmapDrawable) {<NEW_LINE>BitmapDrawable bitmapDrawable = (BitmapDrawable) drawable;<NEW_LINE>if (bitmapDrawable.getBitmap() != null) {<NEW_LINE>return bitmapD...
), canvas.getHeight());
1,451,522
public static void updateReadFilter(Context context, FeedSet fs, ReadFilter newFilter) {<NEW_LINE>if (fs.isAllNormal()) {<NEW_LINE>setReadFilterForFolder(<MASK><NEW_LINE>} else if (fs.getSingleFeed() != null) {<NEW_LINE>setReadFilterForFeed(context, fs.getSingleFeed(), newFilter);<NEW_LINE>} else if (fs.getMultipleFeed...
context, PrefConstants.ALL_STORIES_FOLDER_NAME, newFilter);
46,979
final CompleteSnapshotResult executeCompleteSnapshot(CompleteSnapshotRequest completeSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(completeSnapshotRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CompleteSnapshotRequest> ...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,740,959
final DescribeAnomalyDetectorsResult executeDescribeAnomalyDetectors(DescribeAnomalyDetectorsRequest describeAnomalyDetectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAnomalyDetectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
971,140
public ApplicationMap build(LinkDataDuplexMap linkDataDuplexMap, long timeoutMillis) {<NEW_LINE>Objects.requireNonNull(linkDataDuplexMap, "linkDataDuplexMap");<NEW_LINE>logger.info("Building application map");<NEW_LINE>NodeType nodeType = this.nodeType;<NEW_LINE>if (nodeType == null) {<NEW_LINE>nodeType = NodeType.DETA...
linkList, timeoutWatcher.remainingTimeMillis());
939,786
public static ListTransitRouterPeerAttachmentsResponse unmarshall(ListTransitRouterPeerAttachmentsResponse listTransitRouterPeerAttachmentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTransitRouterPeerAttachmentsResponse.setRequestId(_ctx.stringValue("ListTransitRouterPeerAttachmentsResponse.RequestId"));<NEW_LIN...
("ListTransitRouterPeerAttachmentsResponse.TransitRouterAttachments[" + i + "].CenBandwidthPackageId"));
1,544,593
public DoubleFunction1D multiply(DoubleFunction1D f) {<NEW_LINE>ArgChecker.notNull(f, "function");<NEW_LINE>if (f instanceof RealPolynomialFunction1D) {<NEW_LINE>RealPolynomialFunction1D p1 = (RealPolynomialFunction1D) f;<NEW_LINE>double[] c = _coefficients;<NEW_LINE>double[] c1 = p1.getCoefficients();<NEW_LINE>int m =...
DoubleFunction1D.super.multiply(f);
950,995
public void marshall(Job job, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (job == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(job.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.marshall(job.getD...
job.getDefaultArguments(), DEFAULTARGUMENTS_BINDING);
1,476,985
private static BuildInfo readBuildPropertiesClass(Class<?> clazz, BuildInfo upstreamBuildInfo, Overrides overrides) {<NEW_LINE>String <MASK><NEW_LINE>String build = readStaticStringField(clazz, "BUILD");<NEW_LINE>String revision = readStaticStringField(clazz, "REVISION");<NEW_LINE>String distribution = readStaticString...
version = readStaticStringField(clazz, "VERSION");
1,015,761
public void afterPropertiesSet() throws Exception {<NEW_LINE>if (this.workingDir == null) {<NEW_LINE>String <MASK><NEW_LINE>if (apacheWorkDir == null) {<NEW_LINE>apacheWorkDir = createTempDirectory("apacheds-spring-security-");<NEW_LINE>}<NEW_LINE>setWorkingDirectory(new File(apacheWorkDir));<NEW_LINE>}<NEW_LINE>Assert...
apacheWorkDir = System.getProperty("apacheDSWorkDir");
39,687
protected Node createControl() {<NEW_LINE>sourceView = new SourceView();<NEW_LINE>Calendar meetings = new Calendar("Meetings");<NEW_LINE>Calendar training = new Calendar("Training");<NEW_LINE>Calendar customers = new Calendar("Customers");<NEW_LINE>Calendar holidays = new Calendar("Holidays");<NEW_LINE>meetings.setStyl...
holidays.setStyle(Style.STYLE5);
430,272
public int compareTo(loadTablet_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE>if (l...
this.extent, other.extent);
969,152
public Schema resolve(AnnotatedType type) {<NEW_LINE>AnnotatedType aType = OptionalUtils.unwrapOptional(type);<NEW_LINE>if (aType != null) {<NEW_LINE>return resolve(aType);<NEW_LINE>}<NEW_LINE>if (processedTypes.contains(type)) {<NEW_LINE>return modelByType.get(type);<NEW_LINE>} else {<NEW_LINE>processedTypes.add(type)...
resolve(type, this, converters);
124,159
public static ExtendedDateTime fromPackedLong(long packed, DateTimeZone tz) {<NEW_LINE>// TODO: As for JDBC behavior, it can be configured to "round" or "toNull"<NEW_LINE>// for now we didn't pass in session so we do a toNull behavior<NEW_LINE>if (packed == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>long ymdhms = p...
hour, minute, second, microsec);
1,516,420
private static String findConfiguredHosts(ProtocolConfig protocolConfig, ProviderConfig provider, Map<String, String> map) {<NEW_LINE>boolean anyhost = false;<NEW_LINE>String hostToBind = getValueFromConfig(protocolConfig, DUBBO_IP_TO_BIND);<NEW_LINE>if (hostToBind != null && hostToBind.length() > 0 && isInvalidLocalHo...
, String.valueOf(anyhost));
1,692,637
protected List<String> splitStatements(String sql) {<NEW_LINE>List<String> <MASK><NEW_LINE>SimpleCharStream stream = new SimpleCharStream(new StringReader(sql)) {<NEW_LINE><NEW_LINE>{<NEW_LINE>super.setTabSize(1);<NEW_LINE>}<NEW_LINE>};<NEW_LINE>// this lexer will automatically filter comments<NEW_LINE>SqlDdlParserImpl...
stmts = new LinkedList<>();
743,112
protected void initializeDataExtends(Relation<NumberVector> relation, int dim, double[] min, double[] extend) {<NEW_LINE>assert (min.length == <MASK><NEW_LINE>// if no parameter for min max compute min max values for each dimension<NEW_LINE>// from dataset<NEW_LINE>if (minima == null || maxima == null || minima.length ...
dim && extend.length == dim);
9,101
private static Point index2point(Point index) {<NEW_LINE>int indexPos = index.x;<NEW_LINE>int indexLevel = index.y;<NEW_LINE>if (indexPos < indexLevel) {<NEW_LINE>return new Point(indexLevel, indexPos);<NEW_LINE>} else if (indexPos < 3 * indexLevel) {<NEW_LINE>return new Point(indexLevel - (indexPos - indexLevel), inde...
(indexPos - 3 * indexLevel));
1,451,328
public void handle(Context ctx) throws IOException, ServletException {<NEW_LINE>boolean isTraceMode = Cat.getManager().isTraceMode();<NEW_LINE>HttpServletRequest req = ctx.getRequest();<NEW_LINE>HttpServletResponse res = ctx.getResponse();<NEW_LINE>MessageProducer producer = Cat.getProducer();<NEW_LINE>int mode = ctx.g...
setHeader("X-CAT-SERVER", getCatServer());
1,340,914
public static Scriptable jsConstructor(final Context cx, final Object[] args, final Function ctorObj, final boolean inNewExpr) {<NEW_LINE>final PointerEvent event = new PointerEvent();<NEW_LINE>if (args.length != 0) {<NEW_LINE>event.setType(Context.toString(args[0]));<NEW_LINE>event.setBubbles(false);<NEW_LINE>event.se...
= (NativeObject) args[1];
1,800,991
private void displayFile(AvroFileStoreConnector connector) {<NEW_LINE>try {<NEW_LINE>System.out.println("===============================");<NEW_LINE>System.out.println("Accessing file: " + fileName);<NEW_LINE>File file = connector.getFile();<NEW_LINE>System.out.println("File: " + file.getName());<NEW_LINE>System.out.pr...
"Path: " + file.getPath());
1,532,171
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>final String[] indices = Strings.splitStringByCommaToArray(request.param("index"));<NEW_LINE>final String[] fields = Strings.splitStringByCommaToArray(request.param("fields"));<NEW_LINE>if (reques...
deprecationLogger.compatibleCritical("get_field_mapping_with_types", INCLUDE_TYPE_DEPRECATION_MESSAGE);
1,183,682
private boolean processUnsafeStore(RawStoreNode store, PEReadEliminationBlockState state, GraphEffectList effects) {<NEW_LINE>if (store.ordersMemoryAccesses()) {<NEW_LINE>state.killReadCache();<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ResolvedJavaType type = StampTool.typeOrNull(store.object());<NEW_LINE>if (type != ...
location = NamedLocationIdentity.getArrayLocation(componentKind);
68,110
public List<MechanicalPipe> adoptTransmittersAndAcceptorsFrom(FluidNetwork net) {<NEW_LINE>float oldScale = currentScale;<NEW_LINE>long oldCapacity = getCapacity();<NEW_LINE>List<MechanicalPipe> transmittersToUpdate = super.adoptTransmittersAndAcceptorsFrom(net);<NEW_LINE>// Merge the fluid scales<NEW_LINE>long capacit...
* net.capacity) / capacity);
669,664
public void rename(final Map<Path, Path> selected) {<NEW_LINE>final DefaultMainAction action = new DefaultMainAction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final SessionPool pool = parent.getSession();<NEW_LINE>final MoveWorker move = new MoveWorker(selected, pool.getHost().getProtocol()...
changed = new ArrayList<>();
1,140,058
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>activity = (SettingsActivity) requireActivity();<NEW_LINE>view.findViewById(R.id.export_internal).setOnClickListener(v -> {<NEW_LINE>final String fileName = "app_manager_rules_export-" + DateUtils.formatDateTime(System.current...
))).show());
1,064,408
public QuranRow fromBookmark(Context context, Bookmark bookmark, Long tagId) {<NEW_LINE>final QuranRow.Builder <MASK><NEW_LINE>if (bookmark.isPageBookmark()) {<NEW_LINE>final int sura = quranInfo.getSuraNumberFromPage(bookmark.getPage());<NEW_LINE>builder.withText(quranDisplayData.getSuraNameString(context, bookmark.ge...
builder = new QuranRow.Builder();
1,331,714
private void dfsVisit(int node) {<NEW_LINE>int i;<NEW_LINE><MASK><NEW_LINE>if (this.s2.isEmpty()) {<NEW_LINE>this.s1.push(node);<NEW_LINE>this.s2.push(node, node, x[f[node]].getUB());<NEW_LINE>i = 0;<NEW_LINE>while (xyGraph[node][i] != -1) {<NEW_LINE>if (dfsNodes[xyGraph[node][i]] == 0) {<NEW_LINE>this.dfsVisit(xyGraph...
this.dfsNodes[node] = 1;
286,171
public RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq) {<NEW_LINE>final RelNode buildInput;<NEW_LINE>final RelNode streamInput;<NEW_LINE>streamInput = left;<NEW_LINE>buildInput = right;<NEW_LINE>final double streamRowCount = mq.getRowCount(streamInput);<NEW_LINE>final double buildRowCount = mq.ge...
cpu, memory, 0, 0);
350,517
// @see com.biglybt.ui.swt.views.table.TableCellSWTPaintListener#cellPaint(org.eclipse.swt.graphics.GC, com.biglybt.ui.swt.views.table.TableCellSWT)<NEW_LINE>@Override<NEW_LINE>public void cellPaint(GC gcImage, TableCellSWT cell) {<NEW_LINE>int percentDone = getPercentDone(cell);<NEW_LINE>Rectangle bounds = cell.getBou...
imgEnd = imageLoader.getImage("dl_bar_end");
855,680
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.<MASK><NEW_LINE>}<NEW_LINE>String resourceName = Utils.getValueFromIdByName(id...
format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
1,750,971
public void drawViewFinderBorder(Canvas canvas) {<NEW_LINE>Rect framingRect = getFramingRect();<NEW_LINE>// Top-left corner<NEW_LINE>Path path = new Path();<NEW_LINE>path.moveTo(framingRect.left, framingRect.top + mBorderLineLength);<NEW_LINE>path.lineTo(framingRect.left, framingRect.top);<NEW_LINE>path.lineTo(framingR...
canvas.drawPath(path, mBorderPaint);
1,606,811
void paint() {<NEW_LINE>// loadContentIcon may return a null image<NEW_LINE>if (image != null) {<NEW_LINE>image.paintIcon(comp, graphics, 0, 0);<NEW_LINE>}<NEW_LINE>// turn anti-aliasing on for the splash text<NEW_LINE>graphics.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_O...
buildNumber = System.getProperty("netbeans.buildnumber");
1,061,724
void bindTags(Map<TagKey<T>, List<Holder<T>>> newTags) {<NEW_LINE>Map<Holder.Reference<T>, List<TagKey<T>>> holderToTag = new IdentityHashMap<>();<NEW_LINE>this.holdersByName.values().forEach(v -> holderToTag.put(v, new ArrayList<>()));<NEW_LINE>newTags.forEach((name, values) -> values.forEach(holder -> addTagToHolder(...
), newTags.keySet());
1,197,924
public int compareTo(compactionFailed_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE...
this.tinfo, other.tinfo);
903,537
private static String formatJson(String json_path) {<NEW_LINE>String ret = "";<NEW_LINE>String reg = ".(\\d{1,3}).{0,1}";<NEW_LINE>Boolean change_flag = false;<NEW_LINE>Matcher m1 = Pattern.compile<MASK><NEW_LINE>String newStr = "";<NEW_LINE>int rest = 0;<NEW_LINE>String tail = "";<NEW_LINE>while (m1.find()) {<NEW_LINE...
(reg).matcher(json_path);
185,718
public Builder mergeFrom(org.apache.jena.riot.protobuf.wire.PB_RDF.RDF_Graph other) {<NEW_LINE>if (other == org.apache.jena.riot.protobuf.wire.PB_RDF.RDF_Graph.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (tripleBuilder_ == null) {<NEW_LINE>if (!other.triple_.isEmpty()) {<NEW_LINE>if (triple_.isEmpty()) {<NE...
triple_.addAll(other.triple_);
851,119
public AppInstanceStreamingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AppInstanceStreamingConfiguration appInstanceStreamingConfiguration = new AppInstanceStreamingConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c...
class).unmarshall(context));
735,391
private void initCastFunc() {<NEW_LINE>if (targetType.equals(Types.DOUBLE)) {<NEW_LINE>castFunc = x -> {<NEW_LINE>if (x == null) {<NEW_LINE>return null;<NEW_LINE>} else if (x instanceof String) {<NEW_LINE>return Double.parseDouble((String) x);<NEW_LINE>} else {<NEW_LINE>return ((Number) x).doubleValue();<NEW_LINE>}<NEW...
.parseFloat((String) x);
449,982
public static byte[] addDependenciesToManifest(ByteArrayInputStream manifestStream, List<Dependency> deps) {<NEW_LINE>Map<String, Object> toml = new Toml().<MASK><NEW_LINE>Map<String, Object> dependencies = new LinkedHashMap<>();<NEW_LINE>if (toml.containsKey("dependencies")) {<NEW_LINE>Object tomlDepsAsObject = toml.g...
read(manifestStream).toMap();
710,654
public Node cloneNode(Document doc, Node eold) {<NEW_LINE>Node enew = null;<NEW_LINE>if (eold instanceof Element) {<NEW_LINE>Element e = (Element) eold;<NEW_LINE>if (e.getTagName().equals(SVGConstants.SVG_IMAGE_TAG)) {<NEW_LINE>String url = e.getAttributeNS(SVGConstants.XLINK_NAMESPACE_URI, SVGConstants.XLINK_HREF_ATTR...
inlineExternal(doc, urldata, eold);
1,578,305
public void initialize(@Nullable View view) {<NEW_LINE>Objects.requireNonNull(view);<NEW_LINE>BookmarkManager.INSTANCE.setElevationActivePointChangedListener(this);<NEW_LINE>BookmarkManager.INSTANCE.setElevationCurrentPositionChangedListener(this);<NEW_LINE>final <MASK><NEW_LINE>mChart = view.findViewById(R.id.elevatio...
Resources resources = mContext.getResources();
3,735
public void renderButton(PoseStack matrices, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>RenderUtils.setup(this.backgroundLocation);<NEW_LINE>if (this.visible) {<NEW_LINE>this.isHovered = mouseX >= this.x && mouseY >= this.y && mouseX < this.x + this.width && mouseY < this.y + this.height;<NEW_LINE>if (this....
this.x, this.y);
620,688
public Boolean visitAsSetsMatchingRanges(AsSetsMatchingRanges asSetsMatchingRanges, AsPath arg) {<NEW_LINE>List<Range<Long><MASK><NEW_LINE>List<AsSet> asSets = arg.getAsSets();<NEW_LINE>int numRanges = asRanges.size();<NEW_LINE>int numAsSets = arg.length();<NEW_LINE>if (numAsSets < numRanges) {<NEW_LINE>return false;<N...
> asRanges = asSetsMatchingRanges.getAsRanges();
1,127,399
public SRenderEnginePluginConfiguration convertToSObject(RenderEnginePluginConfiguration input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SRenderEnginePluginConfiguration result = new SRenderEnginePluginConfiguration();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(inpu...
setName(input.getName());
1,177,865
private String generateServerPhaseTimeCostSpan(RpcInvokeContext context) {<NEW_LINE>TreeMap<String, String> resultMap = new TreeMap<>();<NEW_LINE>Long reqDeSerializeTime = (Long) context.get(RpcConstants.INTERNAL_KEY_REQ_DESERIALIZE_TIME_NANO);<NEW_LINE>Long respSerializeTime = (Long) context.get(RpcConstants.INTERNAL_...
(ambushTime).toString());
1,831,992
static void store(List<HistoryItem> history) {<NEW_LINE>Preferences _prefs = getPrefs();<NEW_LINE>for (int i = 0; i < history.size(); i++) {<NEW_LINE>HistoryItem hi = history.get(i);<NEW_LINE>if ((hi.id != i) && (hi.id >= history.size())) {<NEW_LINE>_prefs.remove(PROP_URL_PREFIX + hi.id);<NEW_LINE>_prefs.remove(PROP_IC...
log(Level.FINE, "Stored");
410,975
// The tested exceptions cause FFDC so we have to allow for this.<NEW_LINE>@AllowedFFDC<NEW_LINE>public void runFreshMainBranchTck() throws Exception {<NEW_LINE>File repoParent = new File(GIT_REPO_PARENT_DIR);<NEW_LINE>File repo = new File(repoParent, GIT_REPO_NAME);<NEW_LINE>MvnUtils.mvnCleanInstall(repo);<NEW_LINE>St...
out.println("Passed in impl.version is : " + implVersion);
559,385
final GetConnectivityInfoResult executeGetConnectivityInfo(GetConnectivityInfoRequest getConnectivityInfoRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getConnectivityInfoRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,397,929
public synchronized TypeMember createStructureMember(final BaseType containingType, final BaseType memberType, final String memberName, int memberOffset) throws CouldntSaveDataException {<NEW_LINE>Preconditions.checkNotNull(containingType, "Error: containing type argument can not be null");<NEW_LINE>Preconditions.check...
Preconditions.checkNotNull(memberName, "Error: name argument can not be null");
820,355
public static Uri findFileUri(Context context, Uri folderUri, String fileNameToFind) {<NEW_LINE>final ContentResolver resolver = context.getContentResolver();<NEW_LINE>final Uri childrenUri = DocumentsContract.buildChildDocumentsUriUsingTree(folderUri, DocumentsContract.getDocumentId(folderUri));<NEW_LINE>try {<NEW_LIN...
DocumentsContract.buildDocumentUriUsingTree(folderUri, documentID);
838,156
public JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject constructor) {<NEW_LINE>JSContext ctx = realm.getContext();<NEW_LINE>JSObject prototype = JSObjectUtil.createOrdinaryPrototypeObject(realm);<NEW_LINE>JSObjectUtil.putConstructorProperty(ctx, prototype, constructor);<NEW_LINE>JSObjectUtil.putBuiltinA...
(TemporalDurationPrototypeBuiltins.BUILTINS, NANOSECONDS));
1,525,331
public void run(Publisher<T> pub) throws InterruptedException {<NEW_LINE>ManualSubscriber<T> <MASK><NEW_LINE>ManualSubscriber<T> sub2 = env.newManualSubscriber(pub);<NEW_LINE>ManualSubscriber<T> sub3 = env.newManualSubscriber(pub);<NEW_LINE>sub1.request(1);<NEW_LINE>T x1 = sub1.nextElement(String.format("Publisher %s d...
sub1 = env.newManualSubscriber(pub);
1,581,352
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>Parser parser = new Parser(PATTERN, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession...
.check(input, 0));
262,684
public boolean hasPrevious() throws IOException {<NEW_LINE>synchronized (db) {<NEW_LINE>if (modCount != expectedModCount) {<NEW_LINE>reset();<NEW_LINE>}<NEW_LINE>if (!hasPrev) {<NEW_LINE>if (bufferId < 0 || keyIndex < 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Check previous key index<NEW_LINE>int prevIndex = k...
= leaf.getKeyCount() - 1;