idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
404,666 | private static void addButtons(final Context context, final AlertDialog.Builder builder, final Message msg) {<NEW_LINE>if (msg.buttons().size() > 0) {<NEW_LINE>DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onClick(DialogInterface dia... | ).title(), listener); |
1,620,098 | Set<Integer> analyze() {<NEW_LINE>// Get ExceptionPrunedCFG<NEW_LINE>LOG(DEBUG, "DEBUG", "@ " + method.getSignature());<NEW_LINE>prunedCFG = ExceptionPrunedCFG.make(cfg);<NEW_LINE>// In case the only control flows are exceptional, simply return.<NEW_LINE>if (prunedCFG.getNumberOfNodes() == 2 && prunedCFG.containsNode(c... | derefedParamList = computeDerefParamList(numParam, firstParamIndex); |
999,613 | public void render(@Nonnull TileEnchanter enchanter, float f, PoseStack ms, MultiBufferSource buffers, int light, int overlay) {<NEW_LINE>float alphaMod = 0F;<NEW_LINE>if (enchanter.stage == TileEnchanter.State.GATHER_MANA) {<NEW_LINE>alphaMod = Math.min(20, enchanter.stageTicks) / 20F;<NEW_LINE>} else if (enchanter.st... | = enchanter.stageTicks + enchanter.stage3EndTicks; |
620,861 | void insertPrettyNewlines() {<NEW_LINE>AceEditor editor = (AceEditor) docDisplay_;<NEW_LINE>if (editor != null) {<NEW_LINE>String selectionText = docDisplay_.getSelectionValue();<NEW_LINE>// Tokenize the selection and walk through and replace<NEW_LINE>// TODO: Enable for other modes?<NEW_LINE>Tokenizer tokenizer = Toke... | replacement.replaceAll("[ \\t]*\\n", "\n"); |
1,329,880 | public Optional<String> apply(final PwmPasswordRule rule, final String value1, final String value2) {<NEW_LINE>final String localValueString = StringUtil.defaultString(value1, rule.getDefaultValue());<NEW_LINE>final String otherValueString = StringUtil.defaultString(value2, rule.getDefaultValue());<NEW_LINE>final ChaiP... | otherValue = StringUtil.convertStrToBoolean(otherValueString); |
628,885 | private static MediaType internalParse(String type) {<NEW_LINE>int typeIndex = type.indexOf('/');<NEW_LINE>int paramIndex = type.indexOf(';');<NEW_LINE>String major = null;<NEW_LINE>String subtype = null;<NEW_LINE>if (// possible "*"<NEW_LINE>typeIndex < 0) {<NEW_LINE>major = type;<NEW_LINE>if (paramIndex > -1) {<NEW_L... | throw new IllegalArgumentException("Failed to parse media type " + type); |
1,791,993 | public void onDraw(Canvas canvas, RecyclerView parent, RecyclerView.State state) {<NEW_LINE>canvas.save();<NEW_LINE>final int right;<NEW_LINE>// noinspection AndroidLintNewApi - NewApi lint fails to handle overrides.<NEW_LINE>if (parent.getClipToPadding()) {<NEW_LINE>right = parent.getWidth<MASK><NEW_LINE>canvas.clipRe... | () - parent.getPaddingRight(); |
1,033,677 | private void runAssertionTypeValidProp(RegressionEnvironment env, String typeName, EPTypeClass nestedClass, String fragmentTypeName) {<NEW_LINE>EventType eventType = env.runtime().getEventTypeService().getEventTypePreconfigured(typeName);<NEW_LINE>Object[][] expectedType = new Object[][] { { "l1", nestedClass.getType()... | eventType.getPropertyType(prop))); |
471,594 | public static <T extends DateIntervalConsumer> void declareIntervalFields(ObjectParser<T, String> parser) {<NEW_LINE>// NOTE: this field is deprecated and will be removed<NEW_LINE>parser.declareField((wrapper, interval) -> {<NEW_LINE>if (interval instanceof Long) {<NEW_LINE>wrapper.interval((long) interval);<NEW_LINE>}... | FIXED_INTERVAL_FIELD, ObjectParser.ValueType.STRING); |
1,689,119 | private PgpSignEncryptResult encryptBackupData(@NonNull BackupKeyringParcel backupInput, @NonNull CryptoInputParcel cryptoInput, @Nullable OutputStream outputStream, Uri plainUri, long exportedDataSize) throws FileNotFoundException {<NEW_LINE>PgpSignEncryptOperation signEncryptOperation = new PgpSignEncryptOperation(mC... | InputData(inStream, exportedDataSize, filename); |
198,738 | public void onMinecartPass(BlockState state, Level world, BlockPos pos, AbstractMinecart cart) {<NEW_LINE>if (world.isClientSide)<NEW_LINE>return;<NEW_LINE>Vec3 accelerationVec = Vec3.atLowerCornerOf(getAccelerationVector(state));<NEW_LINE>double targetSpeed = cart.getMaxSpeedWithRail() * <MASK><NEW_LINE>if (cart insta... | state.getValue(POWER) / 15f; |
331,418 | final ListApprovedOriginsResult executeListApprovedOrigins(ListApprovedOriginsRequest listApprovedOriginsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApprovedOriginsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,749,006 | public void xls() throws JRException {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>File sourceFile = new File("build/reports/AccessibleReport.jrprint");<NEW_LINE>JasperPrint jasperPrint = (JasperPrint) JRLoader.loadObject(sourceFile);<NEW_LINE>File destFile = new File(sourceFile.getParent(), jasperPrint.... | setExporterOutput(new SimpleOutputStreamExporterOutput(destFile)); |
1,685,636 | private Object initItem(Class clazz, String[] fieldDef, int startIndex) throws Exception {<NEW_LINE>HashMap<String, Field> cache = mFieldCache.get(clazz);<NEW_LINE>if (cache == null) {<NEW_LINE>cache = new HashMap<>();<NEW_LINE>Class c = clazz;<NEW_LINE>while (c != null) {<NEW_LINE>for (Field f : c.getDeclaredFields())... | (item, fieldData[1]); |
679,364 | public void marshall(ReputationOptions _reputationOptions, Request<?> request, String _prefix) {<NEW_LINE>String prefix;<NEW_LINE>if (_reputationOptions.getSendingEnabled() != null) {<NEW_LINE>prefix = _prefix + "SendingEnabled";<NEW_LINE>Boolean sendingEnabled = _reputationOptions.getSendingEnabled();<NEW_LINE>request... | Boolean reputationMetricsEnabled = _reputationOptions.getReputationMetricsEnabled(); |
1,093,010 | private void changeNonOwningParameterTypesToTop(ExecutableElement declaration, AnnotatedExecutableType type) {<NEW_LINE>List<AnnotatedTypeMirror> parameterTypes = type.getParameterTypes();<NEW_LINE>for (int i = 0; i < parameterTypes.size(); i++) {<NEW_LINE>Element paramDecl = declaration.getParameters().get(i);<NEW_LIN... | - 1)).getComponentType(); |
839,222 | private void updateTexts(DocumentEvent e) {<NEW_LINE>Document doc = e.getDocument();<NEW_LINE>if (doc.equals(projectNameTextField.getDocument()) || doc.equals(projectLocationTextField.getDocument())) {<NEW_LINE>// Change in the project name<NEW_LINE>String projectName = projectNameTextField.getText();<NEW_LINE>String p... | (projectFolder)).getAbsolutePath(); |
692,725 | private static String classToSourceURL(FileObject fo, PrintWriter logger) {<NEW_LINE>ClassPath cp = ClassPath.getClassPath(fo, ClassPath.EXECUTE);<NEW_LINE>if (cp == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FileObject root = cp.findOwnerRoot(fo);<NEW_LINE>String resourceName = cp.getResourceName(fo, '/', false... | println("Can not find classpath resource for " + fo + ", skipping..."); |
1,072,983 | public int transfer(@Nonnull Side baseSide, int line) {<NEW_LINE>ScrollHelper helper <MASK><NEW_LINE>processHelper(helper);<NEW_LINE>int master1 = helper.getMaster1();<NEW_LINE>int master2 = helper.getMaster2();<NEW_LINE>int slave1 = helper.getSlave1();<NEW_LINE>int slave2 = helper.getSlave2();<NEW_LINE>if (master1 == ... | = new ScrollHelper(baseSide, line); |
1,725,844 | private static OpenedRocksDB openRocksDB(HugeConfig config, List<String> cfNames, String dataPath, String walPath) throws RocksDBException {<NEW_LINE>// Old CFs should always be opened<NEW_LINE>Set<String> mergedCFs = RocksDBStdSessions.mergeOldCFs(dataPath, cfNames);<NEW_LINE>List<String> cfs = ImmutableList.copyOf(me... | cfs.size(), "Expect same size of cf-handles and cf-names"); |
748,960 | private void createCombinedContext(final Image loadedImage, final int major, final int minor, final ImageAddressSpace space, final ImageProcess proc, final JavaRuntime rt, String coreFilePath) {<NEW_LINE>// take the DTFJ context and attempt to combine it with a DDR interactive one<NEW_LINE>Object obj = ctx.getPropertie... | Level.FINE, "Warning: native libraries are not available for " + coreFilePath); |
1,099,773 | void forEachConnection(AsyncTaskQueue asyncQueue, final Action action) {<NEW_LINE>List<Runnable> tasks = new ArrayList<<MASK><NEW_LINE>for (final List<HeldConnection> groupHeldConns : heldConns.values()) {<NEW_LINE>for (HeldConnection heldConn : groupHeldConns) {<NEW_LINE>if (action.condition(heldConn.group, heldConn.c... | >(heldConns.size()); |
1,354,310 | public void mouseDragged(final MouseEvent e) {<NEW_LINE>final NodeView nodeV = getNodeView(e);<NEW_LINE>if (!isDragActive()) {<NEW_LINE>if (!nodeV.isSelected())<NEW_LINE>super.mouseDragged(e);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ((e.getModifiersEx() & InputEvent.BUTTON1_DOWN_MASK) == (InputEvent.BUTTON1_DOWN_MASK))... | .in(LengthUnit.pt)); |
1,225,816 | private void fireChanged() {<NEW_LINE>List<String> savedCategories = loadCategories();<NEW_LINE>ListModel model = lUseIn.getModel();<NEW_LINE>List<String> currentCategories = new ArrayList<String>(model.getSize());<NEW_LINE>for (int i = 0; i < model.getSize(); i++) {<NEW_LINE>currentCategories.add((String) model.getEle... | ) selectedItem).split("_"); |
1,532,785 | private void createStepRequest(int threadId, int stepType) {<NEW_LINE>context.getEventManager().deleteEventRequests(stepRequests);<NEW_LINE>ThreadReferenceProxyImpl proxy = context.getAdapter().<MASK><NEW_LINE>if (proxy == null || proxy.getThreadReference() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StepRequest re... | getAllThreads().get(threadId); |
153,204 | protected List findByCompanyId(String companyId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM UserTracker IN CLASS com.liferay.portal.ejb.UserTrackerHBM WHERE ");<NEW_LINE>query.ap... | .list().iterator(); |
667,234 | private void drawOutline(Graphics2D g) {<NEW_LINE>Shape s = getClipShape();<NEW_LINE>g.setColor(dark());<NEW_LINE>g.<MASK><NEW_LINE>Rectangle r = getBounds();<NEW_LINE>r.height += 1;<NEW_LINE>Shape clip = g.getClip();<NEW_LINE>if (clip != null) {<NEW_LINE>Area a = new Area(clip);<NEW_LINE>a.intersect(new Area(r));<NEW_... | setStroke(new BasicStroke(0.95f)); |
600,403 | public FileObject[] listSavedSnapshots(Lookup.Provider project, File directory) {<NEW_LINE>try {<NEW_LINE>FileObject snapshotsFolder = null;<NEW_LINE>if (project == null && directory != null) {<NEW_LINE>snapshotsFolder = FileUtil.toFileObject(directory);<NEW_LINE>} else {<NEW_LINE>snapshotsFolder = <MASK><NEW_LINE>}<NE... | ProfilerStorage.getProjectFolder(project, false); |
1,426,144 | public long persistSubscription(Subscription subscription) throws PersistenceException {<NEW_LINE>SQLiteDatabase db = getWritableDatabase();<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(<MASK><NEW_LINE>values.put(SUBSCRIPTIONS_COLUMN_TOPIC, subscription.getTopic());<NEW_LINE>// convert boole... | COLUMN_CLIENT_HANDLE, subscription.getClientHandle()); |
298,288 | public Tuple8<T1, T2, T3, T4, T5, T6, T7, T8> memo() {<NEW_LINE>Tuple8<T1, T2, T3, T4, T5, T6<MASK><NEW_LINE>return new Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>(null, null, null, null, null, null, null, null) {<NEW_LINE><NEW_LINE>final Supplier<T1> memo1 = Memoize.memoizeSupplier(host::_1);<NEW_LINE><NEW_LINE>final Suppl... | , T7, T8> host = this; |
1,176,433 | public void renderWorld(double mouseX, double mouseY, double sf, BlockPos offset) {<NEW_LINE>// Prepare<NEW_LINE>mc.renderEngine.bindTexture(TextureMap.locationBlocksTexture);<NEW_LINE>RenderHelper.disableStandardItemLighting();<NEW_LINE>GlStateManager.pushMatrix();<NEW_LINE>GL11.glTranslated(<MASK><NEW_LINE>// GlState... | 0, 0, 2000 - sf); |
1,438,722 | public ASTNode visitScalingRuleDefinition(final ScalingRuleDefinitionContext ctx) {<NEW_LINE>ShardingScalingRuleConfigurationSegment result = new ShardingScalingRuleConfigurationSegment();<NEW_LINE>if (null != ctx.inputDefinition()) {<NEW_LINE>result.setInputSegment((InputOrOutputSegment) visit(ctx.inputDefinition()));... | (ctx.completionDetector())); |
1,500,847 | protected void replace(RubyHash hash, RubyHash dest, @Cached @Exclusive PropagateSharingNode propagateSharing) {<NEW_LINE>if (hash == dest) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>propagateSharing.executePropagate(dest, hash);<NEW_LINE>assert verify(hash);<NEW_LINE>final Entry[] entries = ((BucketsHashStore) hash.store)... | getHashed(), newEntries.length); |
871,041 | public static ListTableThemeResponse unmarshall(ListTableThemeResponse listTableThemeResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTableThemeResponse.setRequestId(_ctx.stringValue("ListTableThemeResponse.RequestId"));<NEW_LINE>listTableThemeResponse.setErrorCode(_ctx.stringValue("ListTableThemeResponse.ErrorCode")... | ("ListTableThemeResponse.Data.ThemeList[" + i + "].CreateTimeStamp")); |
865,911 | public Map<T, U> deserialize(final JsonElement json, final Type type, final JsonDeserializationContext context) {<NEW_LINE>if (!json.isJsonObject()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>JsonObject jsonObject = json.getAsJsonObject();<NEW_LINE>Set<Map.Entry<String, JsonElement>> jsonEntrySet = jsonObject.entrySet... | LOG.error("failed to get constructor", e); |
686,051 | private TryStatement.Resource parseResource() throws CompileException, IOException {<NEW_LINE>Location loc = this.location();<NEW_LINE>Modifier[] modifiers = this.parseModifiers();<NEW_LINE><MASK><NEW_LINE>if (modifiers.length > 0 || this.peek(TokenType.IDENTIFIER)) {<NEW_LINE>if (Parser.hasAccessModifier(modifiers, "d... | Atom a = this.parseExpressionOrType(); |
129,117 | protected String load(final Session<?> session, final Path directory) throws BackgroundException {<NEW_LINE>final Path parent = this.toEncrypted(session, directory.getParent().attributes().getDirectoryId(), directory.getParent());<NEW_LINE>final String cleartextName = directory.getName();<NEW_LINE>final String cipherte... | ("Read directory ID for folder %s from %s", directory, ciphertextName)); |
326,484 | public TextBlock addFrame(final TextBlock original) {<NEW_LINE>final Display mainFrame = annotated.getMainFrame();<NEW_LINE>if (mainFrame == null)<NEW_LINE>return original;<NEW_LINE>final double x1 = 5;<NEW_LINE>final double x2 = 7;<NEW_LINE>final double y1 = 10;<NEW_LINE>final double y2 = 10;<NEW_LINE>final double del... | ), rect.getHeight()); |
143,364 | CRJob jobToCRJob(JobConfig jobConfig) {<NEW_LINE>CRJob job = new CRJob();<NEW_LINE>job.setName(jobConfig.name().toString());<NEW_LINE>job.setResources(jobConfig.resourceConfigs().resourceNames());<NEW_LINE>job.setElasticProfileId(jobConfig.getElasticProfileId());<NEW_LINE>for (EnvironmentVariableConfig var : jobConfig.... | .addTask(taskToCRTask(task)); |
872,550 | final ListLoggerDefinitionsResult executeListLoggerDefinitions(ListLoggerDefinitionsRequest listLoggerDefinitionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLoggerDefinitionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | invoke(request, responseHandler, executionContext); |
201,589 | final DescribeDBClusterEndpointsResult executeDescribeDBClusterEndpoints(DescribeDBClusterEndpointsRequest describeDBClusterEndpointsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDBClusterEndpointsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
410,718 | public void parseTasklet(Element stepElement, Element taskletElement, AbstractBeanDefinition bd, ParserContext parserContext, boolean stepUnderspecified) {<NEW_LINE>bd.setBeanClass(StepParserStepFactoryBean.class);<NEW_LINE>bd.setAttribute("isNamespaceStep", true);<NEW_LINE>String taskletRef = taskletElement.getAttribu... | DomUtils.getChildElementsByTagName(taskletElement, REF_ELE); |
316,203 | private static final long parse(Class<? extends java.util.Date> type, String date) throws SQLException {<NEW_LINE>// Try reading a plain number first<NEW_LINE>Long number = Longs.tryParse(date);<NEW_LINE>if (number != null)<NEW_LINE>return number;<NEW_LINE>// If that fails, try reading a formatted date<NEW_LINE>// [#73... | [0]).getTime(); |
83,034 | final ListSpeechSynthesisTasksResult executeListSpeechSynthesisTasks(ListSpeechSynthesisTasksRequest listSpeechSynthesisTasksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSpeechSynthesisTasksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,525,965 | public ChangeStatus checkStatus(Database database) {<NEW_LINE>ChangeStatus result = new ChangeStatus();<NEW_LINE>try {<NEW_LINE>for (AddColumnConfig column : getColumns()) {<NEW_LINE>Column snapshot = SnapshotGeneratorFactory.getInstance().createSnapshot(new Column(Table.class, getCatalogName(), getSchemaName(), getTab... | column.getName() + " not set as primary key"); |
123,860 | public void refreshFeatureBundles(PackageInspectorImpl packageInspector, BundleContext bundleContext, ShutdownHookManager shutdownHook) {<NEW_LINE>Set<String> blocked = returnSet(packageInspector.listKernelBlockedApiPackages());<NEW_LINE>if (blocked.isEmpty()) {<NEW_LINE>// return if the blocked is empty<NEW_LINE>retur... | ).get(PackageNamespace.PACKAGE_NAMESPACE); |
613,103 | // NOSONAR<NEW_LINE>@Override<NEW_LINE>protected void postProcessGateway(BeanDefinitionBuilder builder, Element element, ParserContext parserContext) {<NEW_LINE>parseMarshallerAttribute(builder, element, parserContext);<NEW_LINE>IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "request-callbac... | webServiceTemplateRef = element.getAttribute("web-service-template"); |
623,951 | private static boolean dontUseHostName(String nonProxyHosts, String host) {<NEW_LINE>if (host == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean dontUseProxy = false;<NEW_LINE>StringTokenizer st = new StringTokenizer(nonProxyHosts, "|", false);<NEW_LINE>while (st.hasMoreTokens() && !dontUseProxy) {<NEW_LINE>... | token.length() - 1); |
1,402,993 | final DeleteServerResult executeDeleteServer(DeleteServerRequest deleteServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteServerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
747,690 | public void execute() throws BuildException {<NEW_LINE>readSuspandables();<NEW_LINE>if (USE_REFLECTION)<NEW_LINE>log("Using reflection", Project.MSG_INFO);<NEW_LINE>try {<NEW_LINE>List<URL> urls = new ArrayList<>();<NEW_LINE>for (FileSet fs : filesets) urls.add(fs.getDir().toURI().toURL());<NEW_LINE>cl = new URLClassLo... | fs.getDirectoryScanner(getProject()); |
280,112 | private Object convertFieldValue(SField field, Object val) throws ConvertException {<NEW_LINE>if (val instanceof EnumValueDescriptor) {<NEW_LINE>EnumValueDescriptor enumValueDescriptor = (EnumValueDescriptor) val;<NEW_LINE>Class<?> enumClass;<NEW_LINE>try {<NEW_LINE>enumClass = Class.forName("org.bimserver.interfaces.o... | = (Enum<?>) v; |
1,849,112 | public static boolean isStageCompletable(Object object) {<NEW_LINE>if (object instanceof PlanItemInstanceEntity) {<NEW_LINE>PlanItemInstanceEntity planItemInstanceEntity = (PlanItemInstanceEntity) object;<NEW_LINE>if (planItemInstanceEntity.isStage()) {<NEW_LINE>return planItemInstanceEntity.isCompletable();<NEW_LINE>}... | ), true).isCompletable(); |
1,803,029 | void addSubscriber(Subscriber<? super T> subscriber, ContextMap contextMap, AsyncContextProvider contextProvider) {<NEW_LINE>final int sCount = subscribeCountUpdater.incrementAndGet(this);<NEW_LINE>if (exactlyMinSubscribers && sCount > minSubscribers) {<NEW_LINE>deliverOnSubscribeAndOnError(subscriber, contextMap, cont... | newSubs, 0, currSubs.length); |
1,570,096 | private static ElementMatcher.Junction<MethodDescription> configureExcludedMethods() {<NEW_LINE>ElementMatcher.Junction<MethodDescription> result = none();<NEW_LINE>Map<String, Set<String>> excludedMethods = MethodsConfigurationParser.parse(Config.get().getString(TRACE_ANNOTATED_METHODS_EXCLUDE_CONFIG));<NEW_LINE>for (... | (ElementMatchers.named(className)); |
1,358,162 | public MaxCardinalityQRestriction createMaxCardinalityQRestriction(String uri, Property prop, int cardinality, OntClass cls) {<NEW_LINE>checkProfileEntry(getProfile().RESTRICTION(), "RESTRICTION");<NEW_LINE>checkProfileEntry(getProfile().ON_PROPERTY(), "ON_PROPERTY");<NEW_LINE>checkProfileEntry(getProfile().MAX_CARDINA... | (), createTypedLiteral(cardinality)); |
1,554,228 | public static <K> PartitionByParams<K> build(final LogicalSchema sourceSchema, final ExecutionKeyFactory<K> serdeFactory, final List<Expression> partitionBys, final KsqlConfig ksqlConfig, final FunctionRegistry functionRegistry, final ProcessingLogger logger) {<NEW_LINE>final List<PartitionByColumn> partitionByCols = g... | buildMapper(partitionByCols, evaluators, serdeFactory); |
174,063 | private void collectJarOf(JavaFileObject reference, Set<Path> platformJars, boolean completed) {<NEW_LINE>Path path = getJarPath(reference);<NEW_LINE>if (path == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Filter out classes in rt.jar<NEW_LINE>if (platformJars.contains(path)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>... | ()).build()); |
1,473,937 | /*<NEW_LINE>* Retrieve the server's stored configuration<NEW_LINE>* @param userId userId under which the request is performed<NEW_LINE>* @param serverName The name of the server to interrogate<NEW_LINE>* @param methodName The name of the method being invoked<NEW_LINE>* @return the platform origin<NEW_LINE>*<NEW_LINE>*... | platformRootURL = resolvePlatformRootURL(platformName, methodName); |
456,750 | public String cleanup(@ShellOption(value = { "", "--id" }, help = "the task execution id", defaultValue = ShellOption.NULL) Long id, @ShellOption(help = "all task execution IDs", defaultValue = "false") boolean all, @ShellOption(help = "include non-completed task executions", defaultValue = "false") boolean includeNonC... | + " completed" : taskExecutionsCount.toString(); |
1,658,117 | private JsonNode writeItemFile(StaticDataSource data) throws IOException {<NEW_LINE>List<EntitySource> itemSources = data.getSourcesForType(CommonTypes.ITEM);<NEW_LINE>if (itemSources.isEmpty()) {<NEW_LINE>logger.info("writing item IDs to {}", ITEM_FILE_NAME);<NEW_LINE>Path itemFile = outputDir.resolve(ITEM_FILE_NAME);... | node.set("columns", cols); |
1,033,031 | public void copy(final int index, final ILeafData leaf) {<NEW_LINE>nvisited++;<NEW_LINE>versionDeleted = leaf.hasDeleteMarkers() && leaf.getDeleteMarker(index);<NEW_LINE>versionTimestamp = leaf.hasVersionTimestamps() ? leaf.getVersionTimestamp(index) : 0L;<NEW_LINE>if (needKeys) {<NEW_LINE>kbuf.reset();<NEW_LINE>leaf.g... | ).copy(index, vbuf); |
814,533 | private void genJCallTerm(JavaMethodCall callIns, BType attachedType, int localVarOffset) {<NEW_LINE>// Load function parameters of the target Java method to the stack..<NEW_LINE>Label blockedOnExternLabel = new Label();<NEW_LINE>Label notBlockedOnExternLabel = new Label();<NEW_LINE>genHandlingBlockedOnExternal(localVa... | this.loadVar(arg.variableDcl); |
1,665,660 | protected void generateXML(ProjectInfo proj) {<NEW_LINE>String apiname = proj.getName();<NEW_LINE>Javadoc jd = initJavadoc("Analyzing " + apiname);<NEW_LINE>jd.setDestdir(getDestdir());<NEW_LINE>addSourcePaths(jd, proj);<NEW_LINE>// Tell Javadoc which packages we want to scan.<NEW_LINE>// JDiff works with packagenames,... | .setPackagenames(getPackageList(proj)); |
1,431,283 | public TiUIView createView(Activity activity) {<NEW_LINE>// Do not continue if this ListItem is a placeholder for a header/footer.<NEW_LINE>if (placeholder) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Fetch template assigned to this ListItem.<NEW_LINE>loadTemplate();<NEW_LINE>if (this.template == null) {<NEW_LINE>re... | template.getKrollDict(TiC.PROPERTY_PROPERTIES); |
1,392,706 | private static JsonElement buildJsonElement(Object object) {<NEW_LINE>if (object instanceof Boolean) {<NEW_LINE>return new JsonPrimitive((Boolean) object);<NEW_LINE>} else if (object instanceof Number) {<NEW_LINE>return new JsonPrimitive((Number) object);<NEW_LINE>} else if (object instanceof String) {<NEW_LINE>return ... | final JsonElement jsonItem = buildJsonElement(item); |
1,609,143 | public static void show(final ExecutionException e, final String title, final Project project) {<NEW_LINE>if (e instanceof RunCanceledByUserException) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (ApplicationManager.getApplication().isUnitTestMode()) {<NEW_LINE>throw new RuntimeException(e.getLocalizedMessage());<NEW_LINE... | new Dimension(500, 200)); |
1,360,654 | private static void addTransitions(ZoneId zoneId, VTimeZone result, int rawTimeZoneOffsetInSeconds) throws ParseException {<NEW_LINE>Map<ZoneOffsetKey, Set<ZoneOffsetTransition>> zoneTransitionsByOffsets = new HashMap<ZoneOffsetKey, Set<ZoneOffsetTransition>>();<NEW_LINE>for (ZoneOffsetTransition zoneTransitionRule : z... | e.getKey().offsetBefore); |
1,486,091 | final void executeDeprecateWorkflowType(DeprecateWorkflowTypeRequest deprecateWorkflowTypeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deprecateWorkflowTypeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.start... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,323,096 | private void updateDefaultAccounts(int C_AcctSchema_ID) {<NEW_LINE>log.config("C_AcctSchema_ID=" + C_AcctSchema_ID);<NEW_LINE>MAcctSchema as = new MAcctSchema(getCtx(), C_AcctSchema_ID, get_TrxName());<NEW_LINE>if (as.getAcctSchemaElement("AC").getC_Element_ID() != m_C_Element_ID) {<NEW_LINE>log.log(Level.SEVERE, "C_El... | importElementValueId = rs.getInt(4); |
878,670 | protected void addCommonTaskFields(TaskEntity task, ExecutionEntity execution, ObjectNode data) {<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.ID, task.getId());<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.REVISION, task.getRevision());<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.NAME, task.getName());<NE... | data, execution.getProcessDefinitionId()); |
1,772,065 | protected List<Equation> processEquations(String rese, List<LayoutToken> tokenizations, Document doc) {<NEW_LINE>List<Equation> results = new ArrayList<>();<NEW_LINE>TaggingTokenClusteror clusteror = new TaggingTokenClusteror(GrobidModels.FULLTEXT, rese, tokenizations, true);<NEW_LINE>List<TaggingTokenCluster> clusters... | (cluster.concatTokens())); |
480,120 | public void run(RegressionEnvironment env) {<NEW_LINE>EPCompiled base = env.compile("@name('basevar') @public create constant variable int basevar = 1");<NEW_LINE>EPCompiled child0 = env.compile("@name('s0') select basevar from SupportBean", new RegressionPath().add(base));<NEW_LINE>EPCompiled child1 = env.compile("@na... | base).add(child1)); |
1,553,906 | // for qmd files, we default to python unless there is already an<NEW_LINE>// r or ojs chunk in the file<NEW_LINE>void onQuartoInsertChunk() {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < lines.length(); i++) {<NEW_LINE>Match match = RegexUtil.RE_RMARKDOWN_CHUNK_BEGIN.match(lines.get(i), 0);<NEW_LINE>if (match != null)... | JsArrayString lines = docDisplay_.getLines(); |
535,200 | private void resolveSpecialization(JMethod method) {<NEW_LINE>// TODO (cromwellian): Move to GwtAstBuilder eventually<NEW_LINE>if (method.getSpecialization() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Specialization specialization = method.getSpecialization();<NEW_LINE>if (specialization.getParams() == null) {<NEW... | translate(specialization.getReturns()); |
163,669 | public PrimitiveVS<Integer> indexOf(T element) {<NEW_LINE>// assert(Checks.includedIn(element.getUniverse(), getUniverse()));<NEW_LINE>if (element.getUniverse().isFalse()) {<NEW_LINE>return new PrimitiveVS<>();<NEW_LINE>}<NEW_LINE>// System.out.println(this.guard(element.getUniverse()));<NEW_LINE>PrimitiveVS<Integer> i... | index = new PrimitiveVS<>(); |
306,054 | public static Intent buildYouTubeIntent(Context context, String query) {<NEW_LINE>PackageManager pm = context.getPackageManager();<NEW_LINE>boolean hasYouTube;<NEW_LINE>try {<NEW_LINE>pm.getPackageInfo(YOUTUBE_PACKAGE, PackageManager.GET_ACTIVITIES);<NEW_LINE>hasYouTube = true;<NEW_LINE>} catch (PackageManager.NameNotF... | = new Intent(Intent.ACTION_VIEW); |
1,249,090 | private boolean readOptImpl(int readTag, OptionalFormat expectedFormat) {<NEW_LINE>if (isEncoding_1_0()) {<NEW_LINE>// Optional members aren't supported with the 1.0 encoding.<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>if (_buf.b.position() >= _encapsStack.start + _encapsStack.sz) {<NEW_LINE>// ... | MarshalException("invalid optional data member `" + tag + "': unexpected format"); |
371,936 | public static ListWatermarkResponse unmarshall(ListWatermarkResponse listWatermarkResponse, UnmarshallerContext _ctx) {<NEW_LINE>listWatermarkResponse.setRequestId(_ctx.stringValue("ListWatermarkResponse.RequestId"));<NEW_LINE>List<WatermarkInfo> watermarkInfos = new ArrayList<WatermarkInfo>();<NEW_LINE>for (int i = 0;... | ("ListWatermarkResponse.WatermarkInfos[" + i + "].WatermarkId")); |
1,416,577 | public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select irstream * from SupportMarketDataBean#length(3)#linest(price, volume)";<NEW_LINE>env.compileDeployAddListenerMileZero(text, "s0");<NEW_LINE>env.sendEventBean(makeBean(70, 1000));<NEW_LINE>env.assertPropsNV("s0", new Object[][] { { "... | (makeBean(70.25, 1000)); |
1,091,855 | private void initComponents() {<NEW_LINE>// NOI18N<NEW_LINE>dialog = new JDialog(parentFrame, NbBundle.getMessage(AboutDialog.class, "LBL_About"), true);<NEW_LINE>dialog.addWindowListener(new WindowAdapter() {<NEW_LINE><NEW_LINE>public void windowClosed(WindowEvent e) {<NEW_LINE>cleanup();<NEW_LINE>}<NEW_LINE>});<NEW_L... | setDefaultButton(aboutDialogControls.getDefaultButton()); |
187,463 | final DescribeAppInstanceAdminResult executeDescribeAppInstanceAdmin(DescribeAppInstanceAdminRequest describeAppInstanceAdminRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppInstanceAdminRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
987,374 | public void render(PoseStack transform, int mx, int my, float partial) {<NEW_LINE>super.render(transform, mx, my, partial);<NEW_LINE>List<Component> tooltip = new ArrayList<>();<NEW_LINE>GuiHelper.handleGuiTank(transform, tile.tank, leftPos + 8, topPos + 8, 16, 47, 176, 30, 20, 51, mx, my, TEXTURE, tooltip);<NEW_LINE>i... | getMaxEnergyStored(null) + " IF")); |
1,459,091 | private void updateWatchlistBox(final CacheDetailActivity activity) {<NEW_LINE>final boolean supportsWatchList = cache.supportsWatchList();<NEW_LINE>binding.watchlistBox.setVisibility(supportsWatchList ? View.VISIBLE : View.GONE);<NEW_LINE>if (!supportsWatchList) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int watchLi... | addToWatchlist.setVisibility(View.GONE); |
1,076,103 | public OSSAsyncTask<PutBucketLoggingResult> putBucketLogging(PutBucketLoggingRequest request, OSSCompletedCallback<PutBucketLoggingRequest, PutBucketLoggingResult> completedCallback) {<NEW_LINE>RequestMessage requestMessage = new RequestMessage();<NEW_LINE>Map<String, String> query = new LinkedHashMap<String, String>()... | setIsAuthorizationRequired(request.isAuthorizationRequired()); |
1,653,420 | public void saveGroup(@NonNull final Group group, final OrderLinesStorage orderLinesStorage) {<NEW_LINE>final GroupId groupId = group.getGroupId();<NEW_LINE>final OrderId orderId = extractOrderIdFromGroupId(groupId);<NEW_LINE>final I_C_Order order = orderDAO.getById(orderId);<NEW_LINE>assertOrderNotProcessed(order);<NE... | savedOrderLineIds = new HashSet<>(); |
381,483 | public void doAction() {<NEW_LINE>Entity entity;<NEW_LINE>HashSet<Entity> entities = (HashSet<Entity>) sandbox<MASK><NEW_LINE>Entity item = entities.iterator().next();<NEW_LINE>if (entities.size() == 1 && EntityUtils.getType(item) == EntityFactory.COMPOSITE_TYPE) {<NEW_LINE>entity = item;<NEW_LINE>} else {<NEW_LINE>sup... | .getSelector().getSelectedItems(); |
1,731,179 | public <T> Provider<T> scope(final Key<T> key, final Provider<T> creator) {<NEW_LINE>final String name = key.toString();<NEW_LINE>return new Provider<T>() {<NEW_LINE><NEW_LINE>public T get() {<NEW_LINE>HttpSession session = GuiceFilter.getRequest(key).getSession();<NEW_LINE>synchronized (session) {<NEW_LINE>Object obj ... | format("%s[%s]", creator, SESSION); |
512,434 | protected Drawable generateRippleDrawable(Drawable drawable, String color) {<NEW_LINE>final Activity activity = TiApplication.getAppCurrentActivity();<NEW_LINE>if (drawable instanceof RippleDrawable) {<NEW_LINE>drawable = ((RippleDrawable) drawable).getDrawable(0);<NEW_LINE>}<NEW_LINE>if (activity != null) {<NEW_LINE>f... | final TypedValue typedValue = new TypedValue(); |
1,234,532 | private KenaiRepository createKenaiRepository(TeamProject kenaiProject, String displayName, String location) {<NEW_LINE>final URL loc;<NEW_LINE>try {<NEW_LINE>loc = new URL(location);<NEW_LINE>} catch (MalformedURLException ex) {<NEW_LINE>Bugzilla.LOG.log(Level.WARNING, null, ex);<NEW_LINE>return null;<NEW_LINE>}<NEW_L... | productAttribute.length(), idxProductEnd); |
1,610,799 | private boolean saveToolSet(List<PluginTool> tools) {<NEW_LINE>List<PluginTool> changedTools = new ArrayList<>();<NEW_LINE>for (PluginTool tool : tools) {<NEW_LINE>if (tool.hasConfigChanged()) {<NEW_LINE>changedTools.add(tool);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (changedTools.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>... | PluginTool tool = dialog.getSelectedTool(); |
193,364 | public void resolve(DependencyMetadata dependency, VersionSelector acceptor, @Nullable VersionSelector rejector, BuildableComponentIdResolveResult result) {<NEW_LINE><MASK><NEW_LINE>if (componentSelector instanceof ModuleComponentSelector) {<NEW_LINE>ModuleComponentSelector module = (ModuleComponentSelector) componentS... | ComponentSelector componentSelector = dependency.getSelector(); |
1,833,402 | public com.amazonaws.services.schemas.model.NotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.schemas.model.NotFoundException notFoundException = new com.amazonaws.services.schemas.model.NotFoundException(null);<NEW_LINE><MASK><NEW_LINE>String cu... | int originalDepth = context.getCurrentDepth(); |
316,136 | protected void doMarks(BreakpointMarkerSets marks, Map<Address, Set<LogicalBreakpoint>> byAddress, java.util.function.Function<LogicalBreakpoint, State> stateFunc) {<NEW_LINE>for (Map.Entry<Address, Set<LogicalBreakpoint>> bEnt : byAddress.entrySet()) {<NEW_LINE>Map<Long, State> byLength = new HashMap<>();<NEW_LINE>for... | Address start = bEnt.getKey(); |
1,756,976 | public Event readImageAsync(CommandQueue queue, ByteBuffer dest, long[] origin, long[] region, long rowPitch, long slicePitch) {<NEW_LINE>if (origin.length != 3 || region.length != 3) {<NEW_LINE>throw new IllegalArgumentException("origin and region must both be arrays of length 3");<NEW_LINE>}<NEW_LINE>Utils.pointerBuf... | [0].get(0); |
681,226 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,133,745 | public AssertionError[] assertResponse(WsdlMessageExchange messageExchange, boolean envelopeOnly) {<NEW_LINE>List<XmlError> errors = new ArrayList<XmlError>();<NEW_LINE>try {<NEW_LINE>String response = messageExchange.getResponseContent();<NEW_LINE>if (StringUtils.isNullOrEmpty(response)) {<NEW_LINE>if (!messageExchang... | BindingOperation bindingOperation = operation.getBindingOperation(); |
1,075,204 | private <X, T> void validateandSetEntityType(EntityMetadata metadata, Class<X> clazz, MetaModelBuilder<X, T> metaModelBuilder) {<NEW_LINE>if (metadata.getType() == null && clazz != null && !clazz.equals(Object.class) && clazz.isAnnotationPresent(javax.persistence.Entity.class)) {<NEW_LINE>EntityType entityType = (Entit... | clazz.getSuperclass(), metaModelBuilder); |
641,332 | public static DescribeAppsResponse unmarshall(DescribeAppsResponse describeAppsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppsResponse.setRequestId(_ctx.stringValue("DescribeAppsResponse.RequestId"));<NEW_LINE>describeAppsResponse.setTotalPage(_ctx.integerValue("DescribeAppsResponse.TotalPage"));<NEW_LINE>d... | = new ArrayList<String>(); |
524,523 | public void handleInterrupt(Status status) {<NEW_LINE>int a = getCpu().getRegisterSet().getRegister("A").getValue();<NEW_LINE>if (a == FLOPPY_POLL) {<NEW_LINE>if (floppyDisk != null) {<NEW_LINE>getCpu().getRegisterSet().getRegister("B").setValue(0);<NEW_LINE>} else {<NEW_LINE>getCpu().getRegisterSet().getRegister("B").... | ).getMemory(), y); |
1,092,197 | public ImportTerminologyResult importTerminology(ImportTerminologyRequest importTerminologyRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(importTerminologyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.