idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,698,682 | private void printHeader() {<NEW_LINE>for (int i = 0, columnsSize = columns.length; i < columnsSize; i++) {<NEW_LINE>DBDAttributeBinding column = columns[i];<NEW_LINE>String colName = column.getName();<NEW_LINE>if (headerFormat == HeaderFormat.description) {<NEW_LINE>colName = column.getDescription();<NEW_LINE>if (colN... | String description = column.getDescription(); |
1,647,998 | private BType checkSpreadFieldWithMapType(BType spreadOpType) {<NEW_LINE>switch(spreadOpType.tag) {<NEW_LINE>case TypeTags.RECORD:<NEW_LINE>List<BType> types = new ArrayList<>();<NEW_LINE>BRecordType recordType = (BRecordType) spreadOpType;<NEW_LINE>for (BField recField : recordType.fields.values()) {<NEW_LINE><MASK><N... | types.add(recField.type); |
339,340 | private boolean writeDictionaryRowGroup(Block dictionary, int valueCount, IntBigArray dictionaryIndexes, int maxDirectBytes) {<NEW_LINE>int[][] segments = dictionaryIndexes.getSegments();<NEW_LINE>for (int i = 0; valueCount > 0 && i < segments.length; i++) {<NEW_LINE>int[] segment = segments[i];<NEW_LINE>int positionCo... | chunk.getRegion(0, chunkPositionCount); |
333,347 | private void prepareCluster() {<NEW_LINE>String clusterName = url.getParameter(URLParamType.cluster.getName(), URLParamType.cluster.getValue());<NEW_LINE>String loadbalanceName = url.getParameter(URLParamType.loadbalance.getName(), URLParamType.loadbalance.getValue());<NEW_LINE>String haStrategyName = url.getParameter(... | .class).getExtension(haStrategyName); |
1,286,422 | protected XFormDialog buildDialog(Interface modelItem) {<NEW_LINE>XFormDialogBuilder builder = XFormFactory.createDialogBuilder(".NET 2.0 artifacts");<NEW_LINE>XForm mainForm = builder.createForm("Basic");<NEW_LINE>addWSDLFields(mainForm, modelItem);<NEW_LINE>mainForm.addTextField(OUTPUT, "root directory for generated ... | "password to access the WSDL-URI", XForm.FieldType.PASSWORD); |
861,336 | public Suggestions search(final List<NamedIndexReader> indexReaders, final SuggesterQuery suggesterQuery, final Query query) {<NEW_LINE>if (indexReaders == null || suggesterQuery == null) {<NEW_LINE>return new Suggestions(<MASK><NEW_LINE>}<NEW_LINE>List<NamedIndexReader> readers = indexReaders;<NEW_LINE>if (!projectsEn... | Collections.emptyList(), true); |
1,546,254 | protected boolean continueProcessing() {<NEW_LINE>if (level.isClientSide && !isVirtual())<NEW_LINE>return true;<NEW_LINE>if (processingTicks < 5)<NEW_LINE>return true;<NEW_LINE>if (!EmptyingByBasin.canItemBeEmptied(level, heldItem.stack))<NEW_LINE>return false;<NEW_LINE>Pair<FluidStack, ItemStack> emptyItem = EmptyingB... | FluidStack fluidFromItem = emptyItem.getFirst(); |
73,719 | public com.amazonaws.services.textract.model.InternalServerErrorException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.textract.model.InternalServerErrorException internalServerErrorException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = co... | textract.model.InternalServerErrorException(null); |
226,118 | public GetPreparedStatementResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetPreparedStatementResult getPreparedStatementResult = new GetPreparedStatementResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | ().unmarshall(context)); |
475,090 | public List<QueryMetadata> sql(final String sql, final Map<String, ?> overriddenProperties) {<NEW_LINE>final List<ParsedStatement> statements = ksqlEngine.parse(sql);<NEW_LINE>final KsqlExecutionContext sandbox = ksqlEngine.<MASK><NEW_LINE>final Map<String, Object> validationOverrides = new HashMap<>(overriddenProperti... | createSandbox(ksqlEngine.getServiceContext()); |
1,404,581 | public void createBindings() {<NEW_LINE>LengthConverter lengthConverter = new LengthConverter();<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter("%f");<NEW_LINE>addWrappedBinding(axis, "type", this, "type");<NEW_LINE>addWrappedBinding(axis, "backlashCompensationMethod", backlashCompensationMethod, "selec... | "acceptableTolerance", acceptableTolerance, "text", lengthConverter); |
812,847 | public void process(T input, GrayS32 output) {<NEW_LINE>output.reshape(input.width, input.height);<NEW_LINE>stopRequested = false;<NEW_LINE>if (input.width < 2 * BORDER || input.height < 2 * BORDER)<NEW_LINE>throw new IllegalArgumentException("Image is too small to process. Must have a width and height of at least " + ... | mergeSmall.setMinimumSize(N / 2); |
1,274,254 | private void parseCfgHostsAndConnect(String cfgHostsLine) {<NEW_LINE>String[] <MASK><NEW_LINE>for (int i = 0; i < cfgHostsEntries.length; i++) {<NEW_LINE>String cfgHostEntry = cfgHostsEntries[i];<NEW_LINE>String[] cfgHostAndPort = cfgHostEntry.split(":", 3);<NEW_LINE>String host = cfgHostAndPort[0];<NEW_LINE>int port;<... | cfgHostsEntries = cfgHostsLine.split("\\s"); |
388,008 | public PlanNode visitWindow(WindowNode node, RewriteContext<Void> context) {<NEW_LINE>PlanNode source = context.rewrite(node.getSource());<NEW_LINE>ImmutableMap.Builder<VariableReferenceExpression, WindowNode.Function> functions = ImmutableMap.builder();<NEW_LINE>for (Map.Entry<VariableReferenceExpression, WindowNode.F... | ), node.getPreSortedOrderPrefix()); |
863,239 | public Tree visitClass(ClassTree node, Element source) {<NEW_LINE>final GeneratorUtilities genUtils = GeneratorUtilities.get(workingCopy);<NEW_LINE>final TreePath classPath = getCurrentPath();<NEW_LINE>ClassTree classTree = node;<NEW_LINE>translateQueue.addLast(new HashMap<Tree, Tree>());<NEW_LINE>Element el = workingC... | ).translate(classTree, original2Translated); |
812,369 | public void init(final int capacity) {<NEW_LINE>this.bayes.setMemoryCapacity(capacity);<NEW_LINE>// read the categories<NEW_LINE>for (Category f : this.categories.keySet()) {<NEW_LINE>String keys = DAO.getConfig("classification." + this.name() + "." + f.name(), "");<NEW_LINE>Set<String> <MASK><NEW_LINE>for (String key ... | keyset = new HashSet<>(); |
270,394 | public boolean apply(Game game, Ability source) {<NEW_LINE>List<Permanent> permanents = new ArrayList<>();<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(source.getControllerId(), game)) {<NEW_LINE>Player player = game.getPlayer(playerId);<NEW_LINE>if (player == null || game.getBattlefield().count(Stat... | getPermanent(target.getFirstTarget()); |
642,731 | private Definition loadDefinition(String url) throws WSDLException {<NEW_LINE>WSDLReader reader = factory.newWSDLReader();<NEW_LINE>reader.setFeature("javax.wsdl.verbose", false);<NEW_LINE>reader.setFeature("javax.wsdl.importDocuments", true);<NEW_LINE>reader.setExtensionRegistry(registry);<NEW_LINE>CatalogWSDLLocator ... | xmlReader = StaxUtils.createXMLStreamReader(src); |
923,676 | public static void Initialize() {<NEW_LINE>// remove all the appenders<NEW_LINE>log.removeAllAppenders();<NEW_LINE>// setting up the logger<NEW_LINE>// This is the root logger provided by log4j<NEW_LINE>log.setLevel(Level.ALL);<NEW_LINE>// Define log pattern layout<NEW_LINE>PatternLayout layout = new PatternLayout("%m%... | + date.toString() + ".log"; |
103,235 | public synchronized void containerPut(IJavaProject project, IPath containerPath, IClasspathContainer container) {<NEW_LINE>// set/unset the initialization in progress<NEW_LINE>if (container == CONTAINER_INITIALIZATION_IN_PROGRESS) {<NEW_LINE>containerAddInitializationInProgress(project, containerPath);<NEW_LINE>// do n... | this.containers.get(project); |
245,436 | public static ClassTree addMethod(WorkingCopy copy, ClassTree tree, Modifier[] modifiers, String[] annotations, Object[] annotationAttrs, String name, Object returnType, String[] parameters, Object[] paramTypes, Object[] paramAnnotationsArray, Object[] paramAnnotationAttrsArray, Object[] throwList, String bodyText, Str... | ] {}, paramAnnotations, paramAnnotationAttrs); |
1,255,528 | private void printLocalsInBody(Body body, UnitPrinter up) {<NEW_LINE>Map<Type, List<Local>> typeToLocals = new DeterministicHashMap<Type, List<Local>>(body.getLocalCount() * 2 + 1, 0.7f);<NEW_LINE>// Collect locals<NEW_LINE>for (Local local : body.getLocals()) {<NEW_LINE><MASK><NEW_LINE>List<Local> localList = typeToLo... | Type t = local.getType(); |
1,063,058 | public static DescribeExpressSyncSharesResponse unmarshall(DescribeExpressSyncSharesResponse describeExpressSyncSharesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeExpressSyncSharesResponse.setRequestId<MASK><NEW_LINE>describeExpressSyncSharesResponse.setMessage(_ctx.stringValue("DescribeExpressSyncSharesRespo... | (_ctx.stringValue("DescribeExpressSyncSharesResponse.RequestId")); |
1,047,919 | public static PropertyValues resolvePropertyValues(Object bean, final String prefix, String dataId, String groupId, String content, String type) {<NEW_LINE>final Map<String, Object> configProperties = toProperties(<MASK><NEW_LINE>final MutablePropertyValues propertyValues = new MutablePropertyValues();<NEW_LINE>Reflect... | dataId, groupId, content, type); |
1,180,880 | public static void paintAtScale1x(Graphics2D g, int x, int y, int width, int height, Painter painter) {<NEW_LINE>// save original transform<NEW_LINE>AffineTransform transform = g.getTransform();<NEW_LINE>// check whether scaled<NEW_LINE>if (transform.getScaleX() == 1 && transform.getScaleY() == 1) {<NEW_LINE>painter.pa... | floor(scaledRect.y))); |
860,244 | public void split() {<NEW_LINE>if (chord.isVip()) {<NEW_LINE>logger.info("VIP split {}, {} origins on {}", chord, origins.size(<MASK><NEW_LINE>}<NEW_LINE>// Detect all partitions of consistent heads in this chord<NEW_LINE>getAllPartitions();<NEW_LINE>logger.debug("allPartitions: {}", allPartitions);<NEW_LINE>if (rootSt... | ), side.opposite()); |
1,823,692 | protected void encodeMarkup(FacesContext context, TextEditor editor) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String clientId = editor.getClientId(context);<NEW_LINE>String valueToRender = sanitizeHtml(context, editor, ComponentUtils.getValueToRender(context, editor));... | "id", clientId + "_toolbar", null); |
1,326,698 | private void zoom(double x, double y, double factor, boolean slow) {<NEW_LINE>final double w = center.getBoundsInParent().getWidth();<NEW_LINE>final double h = center<MASK><NEW_LINE>final double minx = center.getBoundsInParent().getMinX();<NEW_LINE>final double miny = center.getBoundsInParent().getMinY();<NEW_LINE>doub... | .getBoundsInParent().getHeight(); |
227,253 | public static void handleClassPath(CommandLine line) {<NEW_LINE>String DCP = null;<NEW_LINE>java.util.Properties properties = line.getOptionProperties("D");<NEW_LINE>for (String propertyName : properties.stringPropertyNames()) {<NEW_LINE>if (propertyName.equals("CP")) {<NEW_LINE>DCP = properties.getProperty(propertyNam... | entry = line.getOptionValue("evosuiteCP"); |
1,840,940 | void jarHellCheck(PluginInfo candidateInfo, Path candidateDir, Path pluginsDir, Path modulesDir) throws Exception {<NEW_LINE>// create list of current jars in classpath<NEW_LINE>final Set<URL> classpath = JarHell.parseClassPath().stream().filter(url -> {<NEW_LINE>try {<NEW_LINE>return url.toURI().getPath().matches(LIB_... | sortedBundles = PluginsService.sortBundles(bundles); |
731,965 | public Request<DescribeTimeToLiveRequest> marshall(DescribeTimeToLiveRequest describeTimeToLiveRequest) {<NEW_LINE>if (describeTimeToLiveRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeTimeToLiveRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeTimeToLiveRequest> r... | t.getMessage(), t); |
703,869 | public static byte[] attributesFromSecretKey(KeyType slot, CanonicalizedSecretKey secretKey, KeyFormat formatForKeyType) throws IOException {<NEW_LINE>if (secretKey.isRSA()) {<NEW_LINE>return attributesForRsaKey(secretKey.getBitStrength<MASK><NEW_LINE>} else if (secretKey.isEC()) {<NEW_LINE>byte[] oid = new ASN1ObjectI... | (), (RsaKeyFormat) formatForKeyType); |
1,818,258 | // Visible for testing<NEW_LINE>static Sampler configureSampler(String sampler, ConfigProperties config, ClassLoader serviceClassLoader) {<NEW_LINE>NamedSpiManager<Sampler> spiSamplersManager = SpiUtil.loadConfigurable(ConfigurableSamplerProvider.class, ConfigurableSamplerProvider::getName, ConfigurableSamplerProvider:... | (Sampler.traceIdRatioBased(ratio)); |
1,391,732 | private void genInterfaceMethodDecl(StringBuilder sb, Type iface, MethodSymbol mi, ClassSymbol rootType) {<NEW_LINE>Types types = Types.instance(JavacPlugin.instance().getContext());<NEW_LINE>mi = (MethodSymbol) mi.asMemberOf(iface, types);<NEW_LINE>if ((mi.isDefault() && !implementsMethod(rootType, mi)) || mi.isStatic... | pi = params.get(i); |
1,407,740 | public static EvaluatedParams evaluateMessageParams(EvalContext context) {<NEW_LINE>List<Expression> params = context.getParams();<NEW_LINE>if (params.size() < 2) {<NEW_LINE>return EMPTY;<NEW_LINE>}<NEW_LINE>Supplier<?>[] allResults = new Supplier[params.size()];<NEW_LINE>List<CompletableFuture<?>> asyncResults = null;... | return new EvaluatedParams(cs, allResults); |
65,741 | protected List<ClassificationResult<BytesRef>> buildListFromTopDocs(TopDocs topDocs) throws IOException {<NEW_LINE>Map<BytesRef, Integer> classCounts = new HashMap<>();<NEW_LINE>// this is a boost based on class ranking positions in topDocs<NEW_LINE>Map<BytesRef, Double> // this is a boost based on class ranking positi... | Integer count = entry.getValue(); |
432,378 | public StockMoveLine compute(StockMoveLine stockMoveLine, StockMove stockMove) throws AxelorException {<NEW_LINE>BigDecimal unitPriceUntaxed = BigDecimal.ZERO;<NEW_LINE>BigDecimal companyPurchasePrice = BigDecimal.ZERO;<NEW_LINE>if (stockMoveLine.getProduct() != null && stockMove != null) {<NEW_LINE>if ((stockMove.getT... | unitPriceUntaxed = companyPurchasePrice.multiply(shippingCoef); |
682,034 | private void renderProgressBar(List<Polygon> rectangles) {<NEW_LINE>if (rectangles.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Canvas container = getPrimitiveContainer().getLayer(0);<NEW_LINE>final TimeUnit timeUnit = input.getProgressBarTimeUnit();<NEW_LINE>final ITaskSceneTask task = ((ITaskActivity<ITask... | getModelObject()).getOwner(); |
63,826 | public static DescribeLiveDomainOnlineUserNumResponse unmarshall(DescribeLiveDomainOnlineUserNumResponse describeLiveDomainOnlineUserNumResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveDomainOnlineUserNumResponse.setRequestId(_ctx.stringValue("DescribeLiveDomainOnlineUserNumResponse.RequestId"));<NEW_LINE>des... | = new ArrayList<LiveStreamOnlineUserNumInfo>(); |
1,529,683 | // Convert our data to DynamoDB attribute values<NEW_LINE>private static Map<String, AttributeValue> toAttributeValueMap(Map<String, Object> engineDetails) {<NEW_LINE>Map<String, AttributeValue> options = new HashMap<>();<NEW_LINE>options.put("name", AttributeValue.builder().s((String) engineDetails.get("name")).build(... | instances = new HashMap<>(); |
901,748 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String clusterName, String applicationName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot ... | this.client.mergeContext(context); |
149,848 | protected Promise<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> run(final Context context) throws Exception {<NEW_LINE>final SettablePromise<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> result = Promises.settable();<NEW_LINE>InternalUtil.fastFailAfter(p -> {<NEW_LINE>if (p.isFailed()) {<NEW_LINE>result.fail(p.getError());<NEW_LIN... | Task<?>) t)); |
856,820 | private void init() {<NEW_LINE>this.typePublic = new ConcurrentHashMap<String, String>();<NEW_LINE>this.typeUri = new <MASK><NEW_LINE>Map<String, NamespaceDefinition> namespaceDefinitionRegistry = new HashMap<String, NamespaceDefinition>();<NEW_LINE>ResourceLoader classLoader = loaderCache.getResourceLoader(project, nu... | ConcurrentHashMap<String, String>(); |
1,631,653 | public void marshall(StartTaskRequest startTaskRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (startTaskRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(startTaskRequest.getCluster(), CLUST... | startTaskRequest.getEnableECSManagedTags(), ENABLEECSMANAGEDTAGS_BINDING); |
115,524 | boolean breakDownDestructure(AbstractCompiler compiler) {<NEW_LINE>if (!NodeUtil.isLhsByDestructuring(getLhs())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Node rootTarget = NodeUtil.getRootTarget(getLhs());<NEW_LINE>checkState(rootTarget.getParent().isDestructuringLhs());<NEW_LINE>if (!NodeUtil.isNameDeclaration(roo... | temp = IR.var(n); |
1,236,016 | private void appendElementValueWhereClause(final StringBuilder whereClause, final List<Object> whereClauseSqlParams) {<NEW_LINE>if (p_C_ElementValue_ID > 0 && p_C_ElementValue_ID_To > 0) {<NEW_LINE>final I_C_ElementValue elementValueFrom = InterfaceWrapperHelper.create(getCtx(), p_C_ElementValue_ID, I_C_ElementValue.cl... | (" IN ").append(sql); |
808,281 | public void drawButton(float llx, float lly, float urx, float ury, String text, BaseFont bf, float size) {<NEW_LINE>if (llx > urx) {<NEW_LINE>float x = llx;<NEW_LINE>llx = urx;<NEW_LINE>urx = x;<NEW_LINE>}<NEW_LINE>if (lly > ury) {<NEW_LINE>float y = lly;<NEW_LINE>lly = ury;<NEW_LINE>ury = y;<NEW_LINE>}<NEW_LINE>// bla... | llx + 1f, lly + 1f); |
794,268 | /*<NEW_LINE>* encode the input data producing a Bcrypt base 64 String.<NEW_LINE>*<NEW_LINE>* @param a byte representation of the salt or the password<NEW_LINE>* @return the Bcrypt base64 String<NEW_LINE>*/<NEW_LINE>private static void encodeData(StringBuffer sb, byte[] data) {<NEW_LINE>if (// 192 bit key or 128 bit s... | - 1] = (byte) 0; |
18,938 | private JPanel createShaderStagePanel(final ParticleEditor editor, JPanel contentPanel, final boolean isVertexShader) {<NEW_LINE>JPanel buttonsPanel = new JPanel(<MASK><NEW_LINE>JLabel label = new JLabel(isVertexShader ? "Vertex Shader" : "Frag. Shader");<NEW_LINE>buttonsPanel.add(label);<NEW_LINE>JButton defaultButton... | new GridLayout(5, 1)); |
496,961 | public static void fromXmlNode(MMigration parent, Node stepNode) {<NEW_LINE>MMigrationStep mstep = new MMigrationStep(parent);<NEW_LINE>Element step = (Element) stepNode;<NEW_LINE>mstep.setSeqNo(Integer.parseInt(step.getAttribute("SeqNo")));<NEW_LINE>mstep.setStepType(step.getAttribute("StepType"));<NEW_LINE>mstep.setS... | children = step.getElementsByTagName("PO"); |
910,991 | public void message(final Contact contact, final Message message) throws OperationFailedException {<NEW_LINE>if (!this.connectionState.isConnected()) {<NEW_LINE>throw new IllegalStateException("Not connected to an IRC server.");<NEW_LINE>}<NEW_LINE>final String target = contact.getAddress();<NEW_LINE>// message format ... | e.getMessage(), e); |
1,797,543 | public void marshall(CreateTaskSetRequest createTaskSetRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createTaskSetRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createTaskSetRequest.get... | createTaskSetRequest.getTags(), TAGS_BINDING); |
419,185 | private void modify(HTTPSamplerBase sampler, String value) {<NEW_LINE>if (isPathExtension()) {<NEW_LINE>String oldPath = sampler.getPath();<NEW_LINE>int indexOfSessionId = oldPath.indexOf(SEMI_COLON + getArgumentName());<NEW_LINE>if (oldPath.contains(SEMI_COLON + getArgumentName())) {<NEW_LINE>int indexOfQuestionMark =... | value, !encode())); |
860,609 | private void showImportSuggestion(String[] list, int x, int y) {<NEW_LINE>if (frmImportSuggest != null) {<NEW_LINE>// frmImportSuggest.setVisible(false);<NEW_LINE>// frmImportSuggest = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final JList<String> classList = new JList<>(list);<NEW_LINE><MASK><NEW_LINE>frmImportSuggest... | classList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); |
1,052,960 | protected void mouseClicked(MouseEvent e) {<NEW_LINE>// *** JTree ***<NEW_LINE>if (e.getSource() instanceof JTree) {<NEW_LINE>// Left Double Click<NEW_LINE>if (SwingUtilities.isLeftMouseButton(e) && e.getClickCount() > 0) {<NEW_LINE>int selRow = tree.getRowForLocation(e.getX(), e.getY());<NEW_LINE>if (selRow != -1) {<N... | ), e.getY()); |
1,561,316 | protected void makeSerializable(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {<NEW_LINE>if (addGWTInterface) {<NEW_LINE>topLevelClass.addImportedType(gwtSerializable);<NEW_LINE>topLevelClass.addSuperInterface(gwtSerializable);<NEW_LINE>}<NEW_LINE>if (!suppressJavaInterface) {<NEW_LINE>topLevelClass... | "serialVersionUID", new FullyQualifiedJavaType("long")); |
1,197,188 | private void execute() {<NEW_LINE>if (processing.app.Base.DEBUG) {<NEW_LINE>systemOut.println("Build status: ");<NEW_LINE>systemOut.println("Sketch: " + sketchPath);<NEW_LINE>systemOut.println("Output: " + outputPath);<NEW_LINE><MASK><NEW_LINE>systemOut.println("Target: " + target);<NEW_LINE>systemOut.println(... | systemOut.println("Force: " + force); |
1,331,068 | protected JFreeChart createBubbleChart() throws JRException {<NEW_LINE><MASK><NEW_LINE>XYPlot xyPlot = (XYPlot) jfreeChart.getPlot();<NEW_LINE>XYBubbleRenderer bubbleRenderer = (XYBubbleRenderer) xyPlot.getRenderer();<NEW_LINE>bubbleRenderer = new GradientXYBubbleRenderer(bubbleRenderer.getScaleType());<NEW_LINE>xyPlot... | JFreeChart jfreeChart = super.createBubbleChart(); |
1,747,561 | public final FuncbodyContext funcbody() throws RecognitionException {<NEW_LINE>FuncbodyContext _localctx = new FuncbodyContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 56, RULE_funcbody);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(356);<NEW_LINE>match(LPA... | _la = _input.LA(1); |
1,654,138 | synchronized void removeDomainObject(DomainObjectAdapterDB domainObj) throws LockException {<NEW_LINE>if (getCurrentTransaction() != null) {<NEW_LINE>throw new LockException("domain object has open transaction: " + getCurrentTransaction().getDescription());<NEW_LINE>}<NEW_LINE>if (isLocked()) {<NEW_LINE>throw new LockE... | ] updatedDomainObjects = new DomainObjectAdapterDB[count]; |
433,422 | public void add(long item, long count) {<NEW_LINE>if (count < 0) {<NEW_LINE>// Negative values are not implemented in the regular version, and do not<NEW_LINE>// play nicely with this algorithm anyway<NEW_LINE>throw new IllegalArgumentException("Negative increments not implemented");<NEW_LINE>}<NEW_LINE>int[] buckets =... | ] = hash(item, i); |
496,843 | private static void writeMetadata(ResolvedPom pom, StringBuilder bom) {<NEW_LINE>bom.append(" <metadata>\n");<NEW_LINE>bom.append(" <timestamp>").append(Instant.now().toString()).append("</timestamp>\n");<NEW_LINE>bom.append(" <tools>\n");<NEW_LINE>bom.append(" <tool>\n");<NEW_LINE>bom.appen... | ())) ? "application" : "library"; |
1,110,495 | public boolean visit(SQLSelect x) {<NEW_LINE>SQLWithSubqueryClause withSubQuery = x.getWithSubQuery();<NEW_LINE>if (withSubQuery != null) {<NEW_LINE>if (withSubQuery.getRecursive() != null && withSubQuery.getRecursive() == true) {<NEW_LINE>throw new FastSqlParserException(FastSqlParserException.ExceptionType.NOT_SUPPOR... | getSubQuery().accept(this); |
994,880 | public void exitRedistribute_connected_is_stanza(Redistribute_connected_is_stanzaContext ctx) {<NEW_LINE>IsisProcess proc <MASK><NEW_LINE>RedistributionSourceProtocol sourceProtocol = RedistributionSourceProtocol.CONNECTED;<NEW_LINE>IsisRedistributionPolicy r = new IsisRedistributionPolicy(sourceProtocol);<NEW_LINE>pro... | = currentVrf().getIsisProcess(); |
1,127,578 | private void updateFooterFromState(GridStaticSectionState state) {<NEW_LINE>Grid<JsonObject> grid = getWidget();<NEW_LINE><MASK><NEW_LINE>while (grid.getFooterRowCount() > 0) {<NEW_LINE>grid.removeFooterRow(0);<NEW_LINE>}<NEW_LINE>for (RowState rowState : state.rows) {<NEW_LINE>FooterRow row = grid.appendFooterRow();<N... | grid.setFooterVisible(state.visible); |
1,444,179 | private static void filterExactMatches(@Nonnull List<PatchAndVariants> candidates, @Nonnull MultiMap<VirtualFile, AbstractFilePatchInProgress> result) {<NEW_LINE>for (Iterator<PatchAndVariants> iterator = candidates.iterator(); iterator.hasNext(); ) {<NEW_LINE>final PatchAndVariants candidate = iterator.next();<NEW_LIN... | getVariants().get(0); |
757,549 | private void mergeMonoDex(@NonNull Collection<Path> inputs, @NonNull Path output) throws IOException {<NEW_LINE>Map<Path, List<Dex>> dexesFromArchives = Maps.newConcurrentMap();<NEW_LINE>// counts how many inputs are yet to be processed<NEW_LINE>AtomicInteger inputsToProcess = new AtomicInteger(inputs.size());<NEW_LINE... | subTasks = new ArrayList<>(); |
724,271 | final DescribeCacheResult executeDescribeCache(DescribeCacheRequest describeCacheRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCacheRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | (super.beforeMarshalling(describeCacheRequest)); |
1,145,825 | public void loadTableInfo(BankInfo bi, Timestamp payDate, ValueNamePair paymentRule, boolean onlyDue, int C_BPartner_ID, KeyNamePair docType, IMiniTable miniTable) {<NEW_LINE>log.config("");<NEW_LINE>// not yet initialized<NEW_LINE>if (m_sql == null)<NEW_LINE>return;<NEW_LINE>String sql = m_sql;<NEW_LINE>// Parameters<... | .setTimestamp(index++, payDate); |
1,367,418 | public ListUsersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListUsersResult listUsersResult = new ListUsersResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte... | int originalDepth = context.getCurrentDepth(); |
573,621 | public Status scan(String table, String startkey, int recordcount, Set<String> fields, Vector<HashMap<String, ByteIterator>> result) {<NEW_LINE>try {<NEW_LINE>final RangeQueryBuilder rangeQuery = rangeQuery<MASK><NEW_LINE>final SearchResponse response = client.prepareSearch(indexKey).setTypes(table).setQuery(rangeQuery... | ("_id").gte(startkey); |
921,294 | public boolean step() {<NEW_LINE>NetworkSystem networkSystem = context.get(NetworkSystem.class);<NEW_LINE>WorldAtlas atlas = new WorldAtlasImpl(context.get(Config.class).getRendering().getMaxTextureAtlasResolution());<NEW_LINE>context.put(WorldAtlas.class, atlas);<NEW_LINE>ModuleEnvironment environment = context.get(<M... | ModuleManager.class).getEnvironment(); |
609,723 | public void registerService(String serviceName, String groupName, Instance instance) throws NacosException {<NEW_LINE>NAMING_LOGGER.info("[REGISTER-SERVICE] {} registering service {} with instance: {}", namespaceId, serviceName, instance);<NEW_LINE>String groupedServiceName = NamingUtils.getGroupedName(serviceName, gro... | put(CommonParams.NAMESPACE_ID, namespaceId); |
846,153 | // ----- private methods -----<NEW_LINE>private static GraphObjectMap relationPropertyToMap(final ConfigurationProvider config, final RelationProperty relationProperty) {<NEW_LINE>final GraphObjectMap map = new GraphObjectMap();<NEW_LINE>final Relation relation = relationProperty.getRelation();<NEW_LINE>map.put(SchemaR... | map.put(htmlSourceTypesPossibleProperty, true); |
560,633 | public void exec() throws IOException {<NEW_LINE>if (this.central == null) {<NEW_LINE>this.central = new Central(this.project, this.session, this.manager);<NEW_LINE>}<NEW_LINE>String before = this.status();<NEW_LINE>int cycle = 0;<NEW_LINE>final Moja<?>[] mojas = { new Moja<>(ParseMojo.class), new Moja<>(OptimizeMojo.c... | <>(PlaceMojo.class) }; |
117,886 | public void forwardToConflictDestination(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>response.setStatus(HttpServletResponse.SC_CONFLICT);<NEW_LINE>final Map reducedMap = new LinkedHashMap(request.getParameterMap());<NEW_LINE>reducedMap.remove(Bro... | reducedMap.remove(BroadleafAdminRequestProcessor.SANDBOX_REQ_PARAM); |
1,117,146 | private void removeBreakpoints(DebuggerManagerListener dl) {<NEW_LINE>if (!breakpointsInitialized) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Breakpoint[] bps;<NEW_LINE>try {<NEW_LINE>java.lang.reflect.Method unloadMethod = dl.getClass().getMethod("unloadBreakpoints", new Class[] {});<NEW_LINE>bps = (Breakpoint[]) unloadMe... | ClassLoader cl = c.getClassLoader(); |
1,152,557 | public void insertHoleAt(final JSONArray args, final CallbackContext callbackContext) throws JSONException {<NEW_LINE>String id = args.getString(0);<NEW_LINE>final int holeIndex = args.getInt(1);<NEW_LINE>JSONArray holeJson = args.getJSONArray(2);<NEW_LINE>final ArrayList<LatLng> newHole = PluginUtil.JSONArray2LatLngLi... | polygon = this.getPolygon(id); |
271,350 | public CompletableFuture<InitializeResult> initialize(InitializeParams init) {<NEW_LINE>NbCodeClientCapabilities capa = NbCodeClientCapabilities.get(init);<NEW_LINE>client.setClientCaps(capa);<NEW_LINE>hackConfigureGroovySupport(capa);<NEW_LINE>List<FileObject> projectCandidates = new ArrayList<>();<NEW_LINE>List<Works... | (w.getUri())); |
1,215,042 | final DeleteDomainResult executeDeleteDomain(DeleteDomainRequest deleteDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | (super.beforeMarshalling(deleteDomainRequest)); |
1,313,594 | public static <K, V> SnapshotEntry<K, V> forEntry(K key, V value, long snapshot, int weight, long expiresAt, long refreshableAt) {<NEW_LINE><MASK><NEW_LINE>int features = 0 | ((refreshableAt == unsetTicks) ? 0b000 : 0b100) | ((expiresAt == unsetTicks) ? 0b000 : 0b010) | ((weight < 0) || (weight == 1) ? 0b000 : 0b001);<... | long unsetTicks = snapshot + Long.MAX_VALUE; |
1,669,495 | // int c = 0;<NEW_LINE>@Override<NEW_LINE>public boolean publish(BinaryMapDataObject object) {<NEW_LINE>if (object.getPointsLength() < 1) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>initTypes(object);<NEW_LINE>String nm = mapIndexFields.get(mapIndexFields.downloadNameType, object);<NEW_LINE>if (!countriesByDownloadNam... | maxx = object.getPoint31XTile(0); |
1,672,744 | public void addDeserializationCode(Context context) throws SerializationProcessingFailedException {<NEW_LINE>Context repeated = context.with(((ArrayType) context.type).getComponentType(), context.makeName("repeated"));<NEW_LINE>String lengthName = context.makeName("length");<NEW_LINE>context.builder.addStatement("int $... | resultName, indexName, repeated.name); |
1,065,386 | public void checkForMultipleStyleSheets(String fileName) {<NEW_LINE>LinkMarkup firstOne = null;<NEW_LINE>for (LinkMarkup linkTag : linkTags) {<NEW_LINE>if (linkTag.relAttribute.compareToIgnoreCase("stylesheet") == 0) {<NEW_LINE>if (++styleSheetsCount == 1) {<NEW_LINE>firstOne = linkTag;<NEW_LINE>} else if (styleSheetsC... | , firstOne.getHrefAttribute())); |
1,517,714 | public void playNotificationSoundURI(Command notificationURL) {<NEW_LINE>if (notificationURL instanceof StringType) {<NEW_LINE>try {<NEW_LINE>ZonePlayerHandler coordinator = getCoordinatorHandler();<NEW_LINE>String currentURI = coordinator.getCurrentURI();<NEW_LINE>logger.debug("playNotificationSoundURI: currentURI {} ... | currentURI, coordinator.getCurrentURIMetadataAsString()); |
989,240 | protected void updateTable(boolean pack) {<NEW_LINE>ServerStatus status = gitblit.getStatus();<NEW_LINE>header.setText(Translation.get("gb.status"));<NEW_LINE>version.setText(Constants.NAME + (status.isGO ? " GO v" <MASK><NEW_LINE>releaseDate.setText(status.releaseDate);<NEW_LINE>bootDate.setText(status.bootDate.toStri... | : " WAR v") + status.version); |
1,716,037 | private void assignLogserver(DeployState deployState, NodesSpecification nodesSpecification, Admin admin) {<NEW_LINE>if (nodesSpecification.minResources().nodes() > 1)<NEW_LINE>throw new IllegalArgumentException("You can only request a single log server");<NEW_LINE>// No logserver is needed on tester applications<NEW_L... | createLogserver(deployState, admin, hosts); |
1,407,052 | public BlacklistEntry unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BlacklistEntry blacklistEntry = new BlacklistEntry();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g... | int originalDepth = context.getCurrentDepth(); |
615,416 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportCollection");<NEW_LINE>builder.expression(fields[0], "strvals.sumOf(v => extractNum(v))");<NEW_LINE>builder.expression(fields[1], "strvals.sumOf(v => ext... | 402 + 411 + 425 + 434); |
1,304,349 | protected CompletableFuture<Response> encodeResponse(Invocation invocation, Response response) {<NEW_LINE>invocation.onEncodeResponseStart(response);<NEW_LINE>ResponseHeader header = new ResponseHeader();<NEW_LINE>header.setStatusCode(response.getStatusCode());<NEW_LINE>header.<MASK><NEW_LINE>header.setContext(invocati... | setReasonPhrase(response.getReasonPhrase()); |
80,005 | private static void ensureMapColorsInitialized(Device device) {<NEW_LINE>if (device == null || device.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mapColors.size() == 0) {<NEW_LINE>for (int i = 1; i <= 16; i++) {<NEW_LINE>Color color = device.getSystemColor(i);<NEW_LINE>Long key = new Long(((long) color.get... | Long key = iter.next(); |
1,032,275 | private void readAndFormatOldStyle() throws IOException {<NEW_LINE>// process the trace records in all the input files<NEW_LINE>for (Iterator i = traceFiles.iterator(); i.hasNext(); ) {<NEW_LINE>traceFile = (TraceFile) i.next();<NEW_LINE>instantiateMessageFileOldStyle();<NEW_LINE>traceFile.traceFileHeader.processTraceB... | "\n" + isre.getMessage()); |
798,032 | public static GroupRepresentation toRepresentation(GroupModel group, boolean full) {<NEW_LINE>GroupRepresentation rep = new GroupRepresentation();<NEW_LINE>rep.setId(group.getId());<NEW_LINE>rep.setName(group.getName());<NEW_LINE>rep.setPath(buildGroupPath(group));<NEW_LINE>if (!full)<NEW_LINE>return rep;<NEW_LINE>// R... | collect(Collectors.toSet()); |
1,462,467 | public void execute() {<NEW_LINE>DomUtils.fillIFrame(<MASK><NEW_LINE>DomUtils.forwardWheelEvent(frame.getIFrame().getContentDocument(), parentElement);<NEW_LINE>int contentHeight = frame.getWindow().getDocument().getDocumentElement().getOffsetHeight();<NEW_LINE>callbackContent.setHeight(contentHeight + "px");<NEW_LINE>... | frame.getIFrame(), htmlOutput); |
588,389 | public boolean visit(MySqlDeclareHandlerStatement x) {<NEW_LINE>String handleType = x.getHandleType().name();<NEW_LINE><MASK><NEW_LINE>print0(ucase ? handleType : handleType.toLowerCase());<NEW_LINE>print0(ucase ? " HANDLER FOR " : " handler for ");<NEW_LINE>for (int i = 0; i < x.getConditionValues().size(); i++) {<NEW... | print0(ucase ? "DECLARE " : "declare "); |
284,964 | public HealthCheckResponse call() {<NEW_LINE>HealthCheckResponseBuilder builder = HealthCheckResponse.named("vault");<NEW_LINE>boolean status = true;<NEW_LINE>for (String vaultId : vaultIds) {<NEW_LINE>try {<NEW_LINE>ApiOptionalResponse<GetVault.Response> r = ociVault.getVault(GetVault.Request.builder().vaultId(vaultId... | vaultId, t.getMessage()); |
93,687 | /* Component basic features */<NEW_LINE>@Override<NEW_LINE>public void paintContent(PaintTarget target) throws PaintException {<NEW_LINE>// Adds the locale as attribute<NEW_LINE>final Locale l = getLocale();<NEW_LINE>if (l != null) {<NEW_LINE>target.addAttribute("locale", l.toString());<NEW_LINE>}<NEW_LINE>if (getDateF... | target.addAttribute("parsable", uiHasValidDateString); |
388,315 | public void doWithDevice(final IDevice device) throws MojoExecutionException {<NEW_LINE>String deviceLogLinePrefix = DeviceHelper.getDeviceLogLinePrefix(device);<NEW_LINE>// message will be set in for each loop according to the processed files<NEW_LINE>String message = "";<NEW_LINE>try {<NEW_LINE>SyncService syncServic... | new LogSyncProgressMonitor(getLog())); |
747,047 | public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'petId' when ca... | localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); |
679,449 | public void onStatisticsUpdate(V2TXLivePlayer player, V2TXLiveDef.V2TXLivePlayerStatistics statistics) {<NEW_LINE>Bundle netStatus = new Bundle();<NEW_LINE>netStatus.putInt(TXLiveConstants.NET_STATUS_VIDEO_WIDTH, statistics.width);<NEW_LINE>netStatus.putInt(TXLiveConstants.NET_STATUS_VIDEO_HEIGHT, statistics.height);<N... | TXLiveConstants.NET_STATUS_AUDIO_BITRATE, statistics.audioBitrate); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.