idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,462,467
public void execute() {<NEW_LINE>DomUtils.fillIFrame(frame.getIFrame(), htmlOutput);<NEW_LINE>DomUtils.forwardWheelEvent(frame.getIFrame().getContentDocument(), parentElement);<NEW_LINE>int contentHeight = frame.getWindow().getDocument().getDocumentElement().getOffsetHeight();<NEW_LINE><MASK><NEW_LINE>callbackContent.s...
callbackContent.setHeight(contentHeight + "px");
1,711,517
public boolean visit(SQLBetweenExpr x) {<NEW_LINE>if (x.isNot()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String begin;<NEW_LINE>if (x.beginExpr instanceof SQLCharExpr) {<NEW_LINE>begin = (String) ((SQLCharExpr) x.beginExpr).getValue();<NEW_LINE>} else if (x.beginExpr instanceof SQLNullExpr) {<NEW_LINE>begin = x.beg...
= x.beginExpr.toString();
382,535
public void generateGetDataType() {<NEW_LINE>for (ClassOutline classOutline : outline.getClasses()) {<NEW_LINE>JDefinedClass implClass = classOutline.implClass;<NEW_LINE>int mods = JMod.PUBLIC;<NEW_LINE>JType returnType = strType;<NEW_LINE>// JType returnType = objType;<NEW_LINE>JMethod dynamicMethod = implClass.method...
_return(JExpr._null());
353,101
private static void initFileHandler(Logger rootLogger) {<NEW_LINE>if (!logDir.get().isEmpty()) {<NEW_LINE>File dir = new <MASK><NEW_LINE>dir.mkdirs();<NEW_LINE>File file = new File(dir, "gapic.log");<NEW_LINE>for (int i = 0; i < 10; i++) {<NEW_LINE>if (!file.exists() || file.canWrite()) {<NEW_LINE>try {<NEW_LINE>FileHa...
File(logDir.get());
392,805
public short parseFile(File f) throws Exception {<NEW_LINE>String filename = f.getAbsolutePath();<NEW_LINE>String classname = filename.substring(this.basedir.length() + 1).replaceAll("/", ".");<NEW_LINE>classname = classname.substring(0, classname.length() - 5);<NEW_LINE>BufferedReader in = new BufferedReader(new FileR...
+ m.group(2));
365,995
void serAdd(T value) {<NEW_LINE>if (cancelled) {<NEW_LINE>Operators.onDiscard(<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LinkedArrayNode<T> t = tail;<NEW_LINE>if (t == null) {<NEW_LINE>t = new LinkedArrayNode<>(value);<NEW_LINE>head = t;<NEW_LINE>tail = t;<NEW_LINE>} else {<NEW_LINE>if (t.count == LinkedArrayNode.DEFA...
value, actual.currentContext());
969,556
public static void drawRain(float sizeMin, float sizeMax, float xspeed, float yspeed, float density, float intensity, float stroke, Color color) {<NEW_LINE>rand.setSeed(0);<NEW_LINE>float padding = sizeMax * 0.9f;<NEW_LINE>Tmp.r1.setCentered(Core.camera.position.x, Core.camera.position.y, Core.graphics.getWidth() / ren...
x, Tmp.r1.width);
1,365,845
private byte[] encrypt(SecretKeySpec skeySpec, String password) {<NEW_LINE>try {<NEW_LINE>Cipher cipher = Cipher.getInstance(ALGORITHM);<NEW_LINE>cipher.init(Cipher.ENCRYPT_MODE, skeySpec);<NEW_LINE>return cipher.doFinal(password.getBytes(ENCODING));<NEW_LINE>} catch (NoSuchAlgorithmException e) {<NEW_LINE>Activator.lo...
logError(Messages.PasswordProvider_ERR_IllegalBlockSize, e);
1,335,530
private Object decodeLocationNew(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_NEW, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next());...
(parser.nextInt()));
641,190
private OutputStream hasRemoteObjectWithPrefix(org.omg.CORBA_2_3.portable.InputStream in, ResponseHandler reply) throws Throwable {<NEW_LINE>String arg0 = (String) in.read_value(String.class);<NEW_LINE>String arg1 = (String) in.read_value(String.class);<NEW_LINE>String arg2 = (String) in.read_value(String.class);<NEW_L...
write_value(ex, NamingException.class);
1,730,208
private static void appendDiff(StringBuilder buf, Diff diff, Diff prevDiff) {<NEW_LINE>if (diff == null)<NEW_LINE>return;<NEW_LINE>String prefix = keyPrefix(diff.key);<NEW_LINE>if (!prefix.isEmpty()) {<NEW_LINE>if (prevDiff == null || !prefix.equals(keyPrefix(prevDiff.key))) {<NEW_LINE>if (prevDiff != null)<NEW_LINE>bu...
(prefix).append(" ----\n\n");
1,319,816
public int pfindByFields(Object[] fvals, int[] findex) {<NEW_LINE>ListBase1 mems = code.mems;<NEW_LINE>int len = mems.size();<NEW_LINE>int fcount = findex.length;<NEW_LINE>Object[] vals = new Object[fcount];<NEW_LINE>int low = 1, high = len;<NEW_LINE>while (low <= high) {<NEW_LINE>int mid = (low + high) >> 1;<NEW_LINE>...
Record) mems.get(mid);
1,040,277
public Future<Void> doProtocolAssetImport(Agent<?, ?, ?> agent, byte[] fileData, Consumer<AssetTreeNode[]> onDiscovered) throws RuntimeException {<NEW_LINE>Protocol<?> protocol = getProtocolInstance(agent.getId());<NEW_LINE>if (protocol == null) {<NEW_LINE>throw new UnsupportedOperationException("Agent is either invali...
LOG.fine("Initiating protocol asset import: Agent = " + agent);
161,708
private Pair<Long, Long> calcOperatorInterval(FilterOperator filterOperator) {<NEW_LINE>if (filterOperator.getSinglePath() != null && !IoTDBConstant.TIME.equals(filterOperator.getSinglePath().getMeasurement())) {<NEW_LINE>throw new SQLParserException(DELETE_ONLY_SUPPORT_TIME_EXP_ERROR_MSG);<NEW_LINE>}<NEW_LINE>long tim...
) filterOperator).getValue());
1,156,288
public void visitToken(final DetailAST ast) {<NEW_LINE>final boolean containsTag = containsInheritDocTag(ast);<NEW_LINE>if (containsTag && !JavadocTagInfo.INHERIT_DOC.isValidOn(ast)) {<NEW_LINE>log(ast, MSG_KEY_TAG_NOT_VALID_ON, JavadocTagInfo.INHERIT_DOC.getText());<NEW_LINE>} else {<NEW_LINE>boolean check = true;<NEW...
.getParent().getParent();
1,263,778
private String computeSecondRowText(String presenceString, Resources r, final Imps.ProviderSettings.QueryMap settings, boolean showPresence) {<NEW_LINE>String secondRowText;<NEW_LINE>StringBuffer secondRowTextBuffer = new StringBuffer();<NEW_LINE>if (showPresence && presenceString.length() > 0) {<NEW_LINE>secondRowText...
append(settings.getPort());
393,520
private void printCurrentLocation() {<NEW_LINE><MASK><NEW_LINE>StackFrame frame;<NEW_LINE>try {<NEW_LINE>frame = threadInfo.getCurrentFrame();<NEW_LINE>} catch (IncompatibleThreadStateException exc) {<NEW_LINE>MessageOutput.println("<location unavailable>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (frame == null) {<NEW...
ThreadInfo threadInfo = ThreadInfo.getCurrentThreadInfo();
1,303,122
DownloadPerAgeStats downloadsPerAgeStats() {<NEW_LINE>Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>logger.debug("Calculating downloads per age percentages");<NEW_LINE>DownloadPerAgeStats result = new DownloadPerAgeStats();<NEW_LINE>String percentage = "SELECT CASE\n" + " WHEN (SELECT CAST(COUNT(*) AS...
result.setDownloadsPerAge(downloadsPerAge());
864,093
private void pingDcomConnection(Node node) throws CommandValidationException {<NEW_LINE>try {<NEW_LINE>SshConnector connector = node.getSshConnector();<NEW_LINE>SshAuth auth = connector.getSshAuth();<NEW_LINE>String host = connector.getSshHost();<NEW_LINE>if (!StringUtils.ok(host)) {<NEW_LINE>host = node.getNodeHost();...
node.getNodeHost(), "DCOM");
258,994
public Long countWithJobWithPath(String job, String... paths) throws Exception {<NEW_LINE>EntityManager em = this.entityManagerContainer().get(Item.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> cq = cb.createQuery(Long.class);<NEW_LINE>Root<Item> root = cq.from(Item.class);...
createQuery(cq).getSingleResult();
1,404,390
public static Path archiveCompiledResources(final Path archiveOut, final Path databindingResourcesRoot, final Path compiledRoot, final List<Path> compiledArtifacts) throws IOException {<NEW_LINE>final Path relativeDatabindingProcessedResources = databindingResourcesRoot.getRoot().relativize(databindingResourcesRoot);<N...
relativeName = compiledRoot.relativize(relativeName);
9,617
private void writeUnCompressedData(ByteBuf out) {<NEW_LINE>int flushableBytes = buffer.readableBytes();<NEW_LINE>if (flushableBytes == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checksum.reset();<NEW_LINE>checksum.update(buffer.internalNioBuffer(buffer.readerIndex(), flushableBytes));<NEW_LINE>final int check = (int) ch...
setIntLE(idx + CHECKSUM_OFFSET, check);
46,974
public void process(Record<K, V> record) {<NEW_LINE>final Headers headers = record.headers();<NEW_LINE>headersObject.set(headers);<NEW_LINE>final Optional<RecordMetadata> optional <MASK><NEW_LINE>if (optional.isPresent()) {<NEW_LINE>final RecordMetadata recordMetadata = optional.get();<NEW_LINE>topicObject.set(recordMe...
= this.context.recordMetadata();
1,177,686
public static ListDistributedProductResponse unmarshall(ListDistributedProductResponse listDistributedProductResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDistributedProductResponse.setRequestId(_ctx.stringValue("ListDistributedProductResponse.RequestId"));<NEW_LINE>listDistributedProductResponse.setSuccess(_ctx.b...
("ListDistributedProductResponse.Data.Info[" + i + "].SourceUid"));
1,374,041
public void onSetting(PluginSetting setting) {<NEW_LINE>if (setting.getValue().length() > 0)<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_INFO, String.format("'%s', '%s'", setting.getName(), setting.getValue())));<NEW_LINE>else<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_INFO, setting.getName()))...
.getValue() + "'"));
306,029
private String buildDefaultName() {<NEW_LINE>String defaultName = "";<NEW_LINE>//<NEW_LINE>// City<NEW_LINE>defaultName = appendToName(defaultName, address.getCity());<NEW_LINE>//<NEW_LINE>// Address1<NEW_LINE>defaultName = appendToName(defaultName, address.getAddress1());<NEW_LINE>// Company Name<NEW_LINE><MASK><NEW_L...
defaultName = appendToName(defaultName, companyName);
1,652,805
private static synchronized void initializeVersions(ClasspathMultiReleaseJar jar) {<NEW_LINE>Path filePath = Paths.get(jar.zipFilename);<NEW_LINE>try {<NEW_LINE>if (Files.exists(filePath)) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>URI uri = URI.create("jar:" + filePath.toUri());<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>jar.fs =...
, new HashMap<>());
1,039,552
private void resizeTable(int newCapacity) {<NEW_LINE>// newCapacity always a power of two<NEW_LINE>int[] oldTable = table;<NEW_LINE>int oldCapacity = oldTable.length;<NEW_LINE>if (oldCapacity >= MAXIMUM_CAPACITY) {<NEW_LINE>threshold = Integer.MAX_VALUE;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int newThreshold = 1 + (int)...
long[] entries = this.entries;
1,418,469
// initialize<NEW_LINE>public String modelChange(PO po, int type) throws Exception {<NEW_LINE>boolean IsLiberoEnabled = "Y".equals(Env.getContext(po.getCtx(), "#IsLiberoEnabled"));<NEW_LINE>log.info(po.get_TableName() + " Type: " + type);<NEW_LINE>if (!IsLiberoEnabled)<NEW_LINE>return null;<NEW_LINE>if (po instanceof M...
(MWMInOutBoundLine) orderLine.getWM_InOutBoundLine();
1,154,103
private void tryProvisionGroups(List<CorpGroupSnapshot> corpGroups) {<NEW_LINE>log.debug(String.format("Attempting to provision groups with urns %s", corpGroups.stream().map(CorpGroupSnapshot::getUrn).collect(Collectors.toList())));<NEW_LINE>// 1. Check if this user already exists.<NEW_LINE>try {<NEW_LINE>final Set<Urn...
.format("Provisioning groups with urns %s", groupsToCreateUrns));
17,770
public static void write(XmlSerializer serializer, List<Identifier> identifiers, String title, List<Author> authors, TableOfContents tableOfContents) throws IllegalArgumentException, IllegalStateException, IOException {<NEW_LINE>serializer.startDocument(Constants.CHARACTER_ENCODING, false);<NEW_LINE>serializer.setPrefi...
endTag(NAMESPACE_NCX, NCXTags.text);
16,760
static void computeTBNNormalized(Vec3f pa, Vec3f pb, Vec3f pc, Vec2f ta, Vec2f tb, Vec2f tc, Vec3f[] norm) {<NEW_LINE>MeshTempState instance = MeshTempState.getInstance();<NEW_LINE>Vec3f n = instance.vec3f1;<NEW_LINE>Vec3f v1 = instance.vec3f2;<NEW_LINE>Vec3f v2 = instance.vec3f3;<NEW_LINE>// compute Normal |(v1-v0)X(v...
tc.y - ta.y);
791,908
private void autoAssignMappings() {<NEW_LINE>if (getWizard().getSettings().getDataPipes().size() > 1) {<NEW_LINE>try {<NEW_LINE>getWizard().getRunnableContext().run(true, true, (monitor -> getWizard().getSettings().sortDataPipes(monitor)));<NEW_LINE>} catch (InvocationTargetException e) {<NEW_LINE>log.error(e.getTarget...
.getName()), e);
1,524,154
private void defineConfigurationsForSourceSet(SourceSet sourceSet, ConfigurationContainer configurations) {<NEW_LINE>String implementationConfigurationName = sourceSet.getImplementationConfigurationName();<NEW_LINE>String runtimeOnlyConfigurationName = sourceSet.getRuntimeOnlyConfigurationName();<NEW_LINE>String compil...
setDescription("Implementation only dependencies for " + sourceSetName + ".");
1,542,648
public static FindProjectStatisticalDataResponse unmarshall(FindProjectStatisticalDataResponse findProjectStatisticalDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>findProjectStatisticalDataResponse.setRequestId(_ctx.stringValue("FindProjectStatisticalDataResponse.RequestId"));<NEW_LINE>findProjectStatisticalDataRe...
(_ctx.integerValue("FindProjectStatisticalDataResponse.Data.PageNumber"));
142,026
public void marshall(SearchRequest searchRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (searchRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(searchRequest.getCursor(), CURSOR_BINDING);<N...
searchRequest.getFacet(), FACET_BINDING);
1,374,687
public void run() {<NEW_LINE>// NOI18N<NEW_LINE>ProgressHandle progress = getProgressHandle();<NEW_LINE>JComponent bar = ProgressHandleFactory.createProgressComponent(progress);<NEW_LINE>// NOI18N<NEW_LINE>stopButton = new JButton(org.openide.util.NbBundle.getMessage(RepositoryStep.class, "BK2022"));<NEW_LINE>stopButto...
add(progressLabel, BorderLayout.NORTH);
98,517
private static int binarysearch(byte[] rawlist, int start, int end) {<NEW_LINE>int floor = 0;<NEW_LINE>int ceiling = (rawindex.length) / raw_block;<NEW_LINE>int middle, off, len, d;<NEW_LINE>while (floor < ceiling - 1) {<NEW_LINE>middle <MASK><NEW_LINE>off = rawindex[middle * raw_block];<NEW_LINE>len = rawindex[middle ...
= (floor + ceiling) / 2;
1,146,784
public static void main(String[] args) throws DataFormatException, IOException {<NEW_LINE>// START SNIPPET: patientUse<NEW_LINE>MyPatient patient = new MyPatient();<NEW_LINE>patient.setPetName(new StringType("Fido"));<NEW_LINE>patient.getImportantDates().<MASK><NEW_LINE>patient.getImportantDates().add(new DateTimeType(...
add(new DateTimeType("2010-01-02"));
5,083
public GrammarSlotTypeSource unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GrammarSlotTypeSource grammarSlotTypeSource = new GrammarSlotTypeSource();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token =...
String currentParentElement = context.getCurrentParentElement();
715,417
public static SourceAttachmentResult updateSourceAttachment(IPackageFragmentRoot root, SourceAttachmentAttribute changedAttributes, IProgressMonitor monitor) {<NEW_LINE>ClasspathEntryWrapper entryWrapper = null;<NEW_LINE>try {<NEW_LINE>entryWrapper = getClasspathEntry(root);<NEW_LINE>} catch (Exception e) {<NEW_LINE>re...
changedAttributes, javaProject.getProject());
604,940
public void createChatThread() {<NEW_LINE>ChatClient chatClient = createChatClient();<NEW_LINE>CommunicationUserIdentifier user1 = new CommunicationUserIdentifier("Id 1");<NEW_LINE><MASK><NEW_LINE>// BEGIN: com.azure.communication.chat.chatclient.createchatthread#createchatthreadoptions<NEW_LINE>// Initialize the list ...
CommunicationUserIdentifier user2 = new CommunicationUserIdentifier("Id 2");
44,243
public static void gen_CharStream(JavaResourceTemplateLocations locations) {<NEW_LINE>try {<NEW_LINE>final File file = new File(Options.getOutputDirectory(), "CharStream.java");<NEW_LINE>final OutputFile outputFile = new OutputFile(file, charStreamVersion, new String[] { Options.USEROPTION__STATIC, Options.USEROPTION__...
err.println("Failed to create CharStream " + e);
890,966
public Request<ListThingRegistrationTasksRequest> marshall(ListThingRegistrationTasksRequest listThingRegistrationTasksRequest) {<NEW_LINE>if (listThingRegistrationTasksRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListThingRegistrationTasksRequest)");<NEW_LINE>}<NEW_L...
(listThingRegistrationTasksRequest.getNextToken()));
316,344
public DialogAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DialogAction dialogAction = new DialogAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
class).unmarshall(context));
545,452
public static final <E extends Collection<? super String>> E addNeighbors(String geohash, int length, E neighbors) {<NEW_LINE>String north = neighbor(geohash<MASK><NEW_LINE>if (north != null) {<NEW_LINE>neighbors.add(neighbor(north, length, -1, 0));<NEW_LINE>neighbors.add(north);<NEW_LINE>neighbors.add(neighbor(north, ...
, length, 0, +1);
893,566
private String formatAnnotationAttribute(Annotation.Attribute attribute) {<NEW_LINE>List<String> values = attribute.getValues();<NEW_LINE>if (attribute.getType().equals(Class.class)) {<NEW_LINE>return formatValues(values, (value) -> String.format("%s.class", getUnqualifiedName(value)));<NEW_LINE>}<NEW_LINE>if (Enum.cla...
, getUnqualifiedName(enumClass), enumValue);
436,770
private static ConstructingObjectParser<Hyperparameters, Void> createParser(boolean ignoreUnknownFields) {<NEW_LINE>ConstructingObjectParser<Hyperparameters, Void> parser = new ConstructingObjectParser<>("classification_hyperparameters", ignoreUnknownFields, a -> new Hyperparameters((String) a[0], (double) a[1], (doubl...
declareDouble(constructorArg(), FEATURE_BAG_FRACTION);
1,734,170
public AbstractFile[] ls() throws IOException {<NEW_LINE>List<LsEntry> files <MASK><NEW_LINE>try (SFTPConnectionHandler connHandler = (SFTPConnectionHandler) ConnectionPool.getConnectionHandler(connHandlerFactory, fileURL, true)) {<NEW_LINE>// Makes sure the connection is started, if not starts it<NEW_LINE>connHandler....
= new ArrayList<LsEntry>();
81,910
Statement generateJumpStatement(Decompiler.Block sourceBlock, BasicBlock target) {<NEW_LINE>Decompiler.Block <MASK><NEW_LINE>if (targetBlock == null) {<NEW_LINE>int targetIndex = indexer.indexOf(target.getIndex());<NEW_LINE>if (targetIndex >= sourceBlock.end) {<NEW_LINE>throw new IllegalStateException("Could not find b...
targetBlock = getTargetBlock(sourceBlock, target);
1,784,878
NodeView newNodeView(final NodeModel model, final MapView map, final Container parent, final int index) {<NEW_LINE>final NodeView newView = new NodeView(model, map, parent);<NEW_LINE>parent.add(newView, index);<NEW_LINE>newView<MASK><NEW_LINE>if (map.isDisplayable())<NEW_LINE>updateNewView(newView);<NEW_LINE>else<NEW_L...
.setMainView(newMainView(newView));
1,131,084
public static ListDingtalkOpenPlatformConfigsResponse unmarshall(ListDingtalkOpenPlatformConfigsResponse listDingtalkOpenPlatformConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDingtalkOpenPlatformConfigsResponse.setRequestId(_ctx.stringValue("ListDingtalkOpenPlatformConfigsResponse.RequestId"));<NEW_LINE>lis...
(_ctx.booleanValue("ListDingtalkOpenPlatformConfigsResponse.Success"));
837,215
public Request<PutIdentityPolicyRequest> marshall(PutIdentityPolicyRequest putIdentityPolicyRequest) {<NEW_LINE>if (putIdentityPolicyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(PutIdentityPolicyRequest)");<NEW_LINE>}<NEW_LINE>Request<PutIdentityPolicyRequest> request...
String policyName = putIdentityPolicyRequest.getPolicyName();
1,350,377
private Set<IFileStore> loadFilteredItems() {<NEW_LINE>String uris = Platform.getPreferencesService().getString(IndexPlugin.PLUGIN_ID, IPreferenceConstants.FILTERED_INDEX_URIS, null, null);<NEW_LINE>if (StringUtil.isEmpty(uris)) {<NEW_LINE>// Don't return emptySet because we expect to be able to modify the return value...
IndexPlugin.getDefault(), e);
424,454
private void doAddPane(@Nonnull final AbstractProjectViewPane newPane) {<NEW_LINE>ApplicationManager.getApplication().assertIsDispatchThread();<NEW_LINE>int index;<NEW_LINE>final ContentManager manager = getContentManager();<NEW_LINE>for (index = 0; index < manager.getContentCount(); index++) {<NEW_LINE>Content content...
subId) : newPane.getIcon();
1,793,538
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>remove_index_result result = new remove_index_result();<NEW_LINE>if (e instanceof rpc_management_exception) {<NEW_LINE>result.ex = (rpc_management_ex...
INTERNAL_ERROR, e.getMessage());
1,025,782
public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, MixinInfo mixinInfo) throws Exception {<NEW_LINE>if (this.plugin == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.mode == CompatibilityMode.FAILED) {<NEW_LINE>throw new IllegalStateException("Companion plugin failure for...
plugin.getClass() + "]");
856,865
public List<ExecutableElement> findMethods() {<NEW_LINE>Iterable<? extends Element> list = eu.getMembers(te.asType(), new ElementUtilities.ElementAcceptor() {<NEW_LINE><NEW_LINE>public boolean accept(Element e, TypeMirror type) {<NEW_LINE>if (e.getKind() == ElementKind.METHOD) {<NEW_LINE>TypeElement te = (TypeElement) ...
= new ArrayList<ExecutableElement>();
993,695
private BigDecimal retrieveAllocatedAmt(final org.compiere.model.I_C_Invoice invoice, final TypedAccessor<BigDecimal> amountAccessor) {<NEW_LINE>BigDecimal sum = BigDecimal.ZERO;<NEW_LINE>for (final I_C_AllocationLine line : retrieveAllocationLines(invoice)) {<NEW_LINE>final I_C_AllocationHdr ah = line.getC_AllocationH...
lineAmt = amountAccessor.getValue(line);
1,495,672
protected boolean doEmpty() throws SQLException {<NEW_LINE>boolean empty = queryDBObjects(ObjectType.SCALAR_FUNCTION, ObjectType.AGGREGATE, ObjectType.CLR_SCALAR_FUNCTION, ObjectType.CLR_TABLE_VALUED_FUNCTION, ObjectType.TABLE_VALUED_FUNCTION, ObjectType.STORED_PROCEDURE, ObjectType.CLR_STORED_PROCEDURE, ObjectType.USE...
"Union " + "SELECT name FROM sys.assemblies WHERE is_user_defined=1" + ") R", name);
221,993
public void run() {<NEW_LINE>final Set<String> ALL_QUERIES = new HashSet(Arrays.asList(SkuType.INAPP, SkuType.SUBS));<NEW_LINE>List<Purchase> purchases = new ArrayList<>();<NEW_LINE>Set<String> completedQueries = new HashSet();<NEW_LINE>Set<<MASK><NEW_LINE>mBillingClient.queryPurchasesAsync(SkuType.INAPP, new Purchases...
BillingResult> billingResults = new HashSet();
170,624
public Request<ModifyVpcAttributeRequest> marshall(ModifyVpcAttributeRequest modifyVpcAttributeRequest) {<NEW_LINE>if (modifyVpcAttributeRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyVpcAttributeRequest> request = new DefaultReque...
request.addParameter("Action", "ModifyVpcAttribute");
1,122,491
public TaskRunSortCriteria unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TaskRunSortCriteria taskRunSortCriteria = new TaskRunSortCriteria();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
class).unmarshall(context));
1,268,538
private Collection<IProblem> validateFrames(IParseRootNode ast) {<NEW_LINE>Collection<IProblem> problems = new ArrayList<IProblem>();<NEW_LINE>try {<NEW_LINE>List<HTMLElementNode> framesetNodes = (List<HTMLElementNode>) FRAMESET_TAG.evaluate(ast);<NEW_LINE>if (!CollectionsUtil.isEmpty(framesetNodes)) {<NEW_LINE>// veri...
framesetNode = framesetNodes.get(i);
1,749,657
public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) {<NEW_LINE>final Map<String, Object> additionalInfo = new HashMap<>();<NEW_LINE>// UserDO userDo = (UserDO)authentication.getPrincipal();<NEW_LINE>// additionalInfo.put("loginName", userDo.getLoginName());<NEW_LINE>// i...
, details.get("client_id"));
1,371,586
private BucketReduceResult mergeConsecutiveBuckets(BucketReduceResult current, int mergeInterval, ReduceContext reduceContext) {<NEW_LINE>List<Bucket> mergedBuckets = new ArrayList<>();<NEW_LINE>List<Bucket> sameKeyedBuckets = new ArrayList<>();<NEW_LINE>double key = current.preparedRounding.round(current.buckets.get(0...
, format, bucket.aggregations));
183,517
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select symbol, sum(price) from " + "SupportMarketDataBean#length(10) " + "output every 6 events " + "order by volume*sum(price), symbol";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendEvent(env, "IBM", 2);<NEW_LINE>sendEve...
sendEvent(env, "CAT", 5);
200,624
private static void saveWaypointsWithoutTransaction(final Geocache cache) {<NEW_LINE>final String geocode = cache.getGeocode();<NEW_LINE>final List<Waypoint> waypoints = cache.getWaypoints();<NEW_LINE>if (CollectionUtils.isNotEmpty(waypoints)) {<NEW_LINE>final List<String> currentWaypointIds = new ArrayList<>();<NEW_LI...
insert(dbTableWaypoints, null, values);
784,985
@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Path("/cache")<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON })<NEW_LINE>public Response flushIndiciesCache(@Context final HttpServletRequest request, @Context final HttpServletResponse response) {<NEW_LINE>final InitDataObject init = auth(request, response);<NEW_LINE>final <MASK><N...
ContentletIndexAPI api = APILocator.getContentletIndexAPI();
863,107
public ObjectNode searchService(@RequestParam(defaultValue = StringUtils.EMPTY) String namespaceId, @RequestParam(defaultValue = StringUtils.EMPTY) String expr, @RequestParam(required = false) boolean responsibleOnly) throws NacosException {<NEW_LINE>Map<String, Collection<String>> serviceNameMap = new HashMap<>(16);<N...
serviceNameMap.put(namespaceId, names);
801,176
public List<FileUploadPartEntity> beginUpload(String path, BeginUploadPathBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'path' is set<NEW_LINE>if (path == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'path' when callin...
= new ArrayList<Pair>();
88,357
public static CraftingStatus create(IncrementalUpdateHelper changes, CraftingCpuLogic logic) {<NEW_LINE>boolean full = changes.isFullUpdate();<NEW_LINE>ImmutableList.Builder<CraftingStatusEntry<MASK><NEW_LINE>for (var what : changes) {<NEW_LINE>long storedCount = logic.getStored(what);<NEW_LINE>long activeCount = logic...
> newEntries = ImmutableList.builder();
100,976
public void syncWithInvoice(@NonNull final RemittanceAdviceLineInvoiceDetails remittanceAdviceLineInvoiceDetails) {<NEW_LINE>Amount.assertSameCurrency(remittedAmount, remittanceAdviceLineInvoiceDetails.getInvoiceAmtInREMADVCurrency(<MASK><NEW_LINE>invoiceId = remittanceAdviceLineInvoiceDetails.getInvoiceId();<NEW_LINE>...
), remittanceAdviceLineInvoiceDetails.getOverUnderAmtInREMADVCurrency());
1,719,980
private static OFActionSetVlanVid decode_set_vlan_id(String actionToDecode, OFVersion version) {<NEW_LINE>Matcher n = Pattern.compile("((?:0x)?\\d+)").matcher(actionToDecode);<NEW_LINE>if (n.matches()) {<NEW_LINE>if (n.group(1) != null) {<NEW_LINE>try {<NEW_LINE>VlanVid vlanid = VlanVid.ofVlan(ParseUtils.parseHexOrDecS...
log.debug("Invalid action: '{}'", actionToDecode);
1,295,488
public static void configure(LineReader reader, Reader r) throws IOException {<NEW_LINE>BufferedReader br;<NEW_LINE>if (r instanceof BufferedReader) {<NEW_LINE>br = (BufferedReader) r;<NEW_LINE>} else {<NEW_LINE>br = new BufferedReader(r);<NEW_LINE>}<NEW_LINE>reader.getVariables().putIfAbsent(LineReader.EDITING_MODE, "...
(reader).parse(br);
742,479
private void htmlDocSelectorSignatures() {<NEW_LINE>if (!signatures.isEmpty()) {<NEW_LINE>// NOI18N<NEW_LINE>documentation.append("<table align='right' style='width:95%; background-color:").append(getColorString(TABLE_BACKGROUNDCOLOR)).append("; padding:12px;margin-right:6px;'><tr><td>");<NEW_LINE>for (Signature signat...
.name).append("</b>: ");
1,629,035
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {<NEW_LINE>_logger.debug("postHandle");<NEW_LINE>final Apps app = (Apps) <MASK><NEW_LINE>String sessionId = (String) WebContext.getAttribute(WebConstants.CURRENT_USER_SESSION_ID);...
WebContext.getAttribute(WebConstants.AUTHORIZE_SIGN_ON_APP);
1,472,268
public void addBox(double minX, double minY, double minZ, double maxX, double maxY, double maxZ) {<NEW_LINE>minX /= 16.0;<NEW_LINE>minY /= 16.0;<NEW_LINE>minZ /= 16.0;<NEW_LINE>maxX /= 16.0;<NEW_LINE>maxY /= 16.0;<NEW_LINE>maxZ /= 16.0;<NEW_LINE>double aX = minX * this.x.getStepX() + minY * this.y.getStepX() + minZ * t...
* this.z.getStepY();
512,215
/*<NEW_LINE>* Reset context so as to resume to regular parse loop<NEW_LINE>*/<NEW_LINE>protected void resetStacks() {<NEW_LINE>this.astPtr = -1;<NEW_LINE>this.astLengthPtr = -1;<NEW_LINE>this.patternPtr = -1;<NEW_LINE>this.patternLengthPtr = -1;<NEW_LINE>this.expressionPtr = -1;<NEW_LINE>this.expressionLengthPtr = -1;<...
this.nestedType = 0] = 0;
1,011,427
public DeleteCommentResponse deleteComment(DeleteCommentRequest request) {<NEW_LINE>DeleteCommentResponse response = new DeleteCommentResponse();<NEW_LINE>try {<NEW_LINE>request.requestCheck();<NEW_LINE>String commentId = request.getCommentId();<NEW_LINE>Comment comment = commentMapper.selectByPrimaryKey(commentId);<NE...
= new Example(CommentPicture.class);
409,581
public CreateExplainabilityExportResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateExplainabilityExportResult createExplainabilityExportResult = new CreateExplainabilityExportResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
class).unmarshall(context));
394,643
private void detachSingle(SQLiteDatabase db, InstanceAdapter entityAdapter) {<NEW_LINE>TaskAdapter original = entityAdapter.taskAdapter();<NEW_LINE>TaskAdapter cloneAdapter = original.duplicate();<NEW_LINE>// first prepare the original to resemble the same instance but as a new, detached task<NEW_LINE>original.set(Task...
cloneAdapter.unset(TaskAdapter.LIST_VISIBLE);
1,144,480
protected String buildString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>String ls = System.getProperty("line.separator");<NEW_LINE>sb.append("[DNS Header (").append(length()).append(" bytes)]").append(ls);<NEW_LINE>sb.append(" ID: ").append("0x" + ByteArrays.toHexString(id, "")).append(ls);<NEW_LINE...
(anCount).append(ls);
1,678,594
public void processNewResult(Object result) {<NEW_LINE>Database db = ResultUtil.findDatabase(result);<NEW_LINE>boolean nonefound = true;<NEW_LINE>List<OutlierResult> oresults = OutlierResult.getOutlierResults(result);<NEW_LINE>List<OrderingResult> orderings = ResultUtil.getOrderingResults(result);<NEW_LINE>// Outlier r...
getRelation(distance.getInputTypeRestriction());
873,683
public void paint(Graphics g) {<NEW_LINE>// do this for self-painting editors in Options window - because<NEW_LINE>// we've turned off most property changes, the background won't be<NEW_LINE>// painted correctly otherwise<NEW_LINE>Color c = getBackground();<NEW_LINE>Color old = g.getColor();<NEW_LINE>g.setColor(c);<NEW...
= getBackground().darker();
1,802,777
protected void testUnitToPred() {<NEW_LINE>System.out.println("=====test unitToPred ");<NEW_LINE>Set maps = unitToPreds.entrySet();<NEW_LINE>for (Iterator iter = maps.iterator(); iter.hasNext(); ) {<NEW_LINE>Map.Entry entry = (Map.Entry) iter.next();<NEW_LINE>JPegStmt key = <MASK><NEW_LINE>Tag tag = (Tag) key.getTags()...
(JPegStmt) entry.getKey();
1,825,474
private void addCheckDependsOn(SuiteSpec suite) {<NEW_LINE>final ExpressionValue testSuites = expressionValue(builder.propertyExpression(builder.<MASK><NEW_LINE>if (builder.dsl == BuildInitDsl.GROOVY) {<NEW_LINE>final Expression suiteDependedUpon = builder.propertyExpression(testSuites, suite.getName());<NEW_LINE>build...
propertyExpression("testing"), "suites"));
551,028
private static int executeBackup(ScheduledAction scheduledAction, SQLiteDatabase db) {<NEW_LINE>if (!shouldExecuteScheduledBackup(scheduledAction))<NEW_LINE>return 0;<NEW_LINE>ExportParams params = ExportParams.<MASK><NEW_LINE>// HACK: the tag isn't updated with the new date, so set the correct by hand<NEW_LINE>params....
parseCsv(scheduledAction.getTag());
1,665,698
public void describeModel(DescribeModelRequest request, StreamObserver<ManagementResponse> responseObserver) {<NEW_LINE>String requestId = UUID.randomUUID().toString();<NEW_LINE>RequestInput input = new RequestInput(requestId);<NEW_LINE>String modelName = request.getModelName();<NEW_LINE>String modelVersion = request.g...
input.updateHeaders("describe", "True");
182,576
protected void loadValidators(Table component, Table.Column column) {<NEW_LINE>List<Element> validatorElements = column.getXmlDescriptor().elements("validator");<NEW_LINE>if (!validatorElements.isEmpty()) {<NEW_LINE>for (Element validatorElement : validatorElements) {<NEW_LINE>Consumer<?> validator = loadValidator(vali...
.getId()), context);
1,818,904
public Optional<Design> read(InputStream resourceAsStream) {<NEW_LINE>Parser parser = ParserBuilder.createDefaultParser();<NEW_LINE>try {<NEW_LINE>parser.parse(resourceAsStream, DXFParser.DEFAULT_ENCODING);<NEW_LINE>} catch (ParseException e) {<NEW_LINE>throw new RuntimeException("Could not parse file", e);<NEW_LINE>}<...
.Double(0, 0));
715,776
public void createPartControl(Composite parent) {<NEW_LINE>GridLayout layout <MASK><NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidth = 5;<NEW_LINE>parent.setLayout(layout);<NEW_LINE>parent.setBackground(ColorUtil.getInstance().getColor(SWT.COLOR_WHITE));<NEW_LINE>parent.setBackgroundMode(SWT.INHERIT_FORCE)...
= new GridLayout(1, true);
448,400
public static List<JSONDocumentFilterDescriptor> ofCollection(@Nullable final Collection<DocumentFilterDescriptor> filters, @NonNull final JSONDocumentLayoutOptions options) {<NEW_LINE>if (filters == null || filters.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>final ImmutableList<DocumentFilterD...
new JSONDocumentFilterDescriptor(filter, options));
1,498,220
final StartRestoreJobResult executeStartRestoreJob(StartRestoreJobRequest startRestoreJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startRestoreJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(startRestoreJobRequest));
1,323,313
public boolean testConnection(ConnectionContext context, final IConnectionRunnable connectRunnable) {<NEW_LINE>// WORKAROUND: getting contents after the control is disabled will return empty string if not called here<NEW_LINE>hostText.getText();<NEW_LINE>loginCombo.getText();<NEW_LINE>passwordText.getText();<NEW_LINE>r...
getLayoutData()).exclude = true;
487,374
private final OpDefNode generateLambda(TreeNode syntaxTreeNode, ModuleNode cm) throws AbortException {<NEW_LINE>TreeNode[<MASK><NEW_LINE>int arity = (children.length - 2) / 2;<NEW_LINE>Context ctxt = new Context(moduleTable, errors);<NEW_LINE>symbolTable.pushContext(ctxt);<NEW_LINE>FormalParamNode[] params = new Formal...
] children = syntaxTreeNode.heirs();
638,510
public String bulkEdit(@RequestParam(required = false) String[] selectedUsers, @RequestParam(required = false) final String[] selectedSpaces, HttpServletRequest req) {<NEW_LINE>Profile <MASK><NEW_LINE>boolean isAdmin = utils.isAdmin(authUser);<NEW_LINE>String operation = req.getParameter("operation");<NEW_LINE>String s...
authUser = utils.getAuthUser(req);
740,178
public static Cipher createSymmetricCipher(SecretKey symmetricCryptoKey, int encryptMode, Provider cryptoProvider, byte[] initVector) {<NEW_LINE>try {<NEW_LINE>Cipher cipher;<NEW_LINE>if (cryptoProvider != null) {<NEW_LINE>cipher = Cipher.getInstance(JceEncryptionConstants.SYMMETRIC_CIPHER_METHOD, cryptoProvider);<NEW_...
symmetricCryptoKey, new IvParameterSpec(initVector));
380,179
public void execute(JobExecutionContext jobExecutionContext) {<NEW_LINE>ExecutorService executorService = ExecutorUtils.getJobWorkers();<NEW_LINE>ExecutorUtils.printThreadPoolStatus(executorService, "JOB_WORKERS", scheduleLogger);<NEW_LINE>executorService.submit(() -> {<NEW_LINE>TriggerKey triggerKey = jobExecutionCont...
"ScheduleJob({}) is not found", triggerKey.getName());
499,863
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see javax.jms.JMSProducer#send(javax.jms.Destination, javax.jms.Message)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public JMSProducer send(Destination dest, Message msg) throws MessageFormatRuntimeException, InvalidDestinationRuntimeException, MessageNotWriteableRuntimeE...
getJMS2Exception(mfe, MessageFormatRuntimeException.class);