idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
511,087 | /*<NEW_LINE>* A record of default values that represent the value of the<NEW_LINE>* outputs if the route is filtered / dropped in the policy<NEW_LINE>*/<NEW_LINE>@VisibleForTesting<NEW_LINE>BDDRoute zeroedRecord() {<NEW_LINE>BDDRoute rec = new BDDRoute(_factory, _configAtomicPredicates.getCommunityAtomicPredicates().ge... | getPrefixLength().setValue(0); |
42,969 | final CreateResourceDefinitionResult executeCreateResourceDefinition(CreateResourceDefinitionRequest createResourceDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createResourceDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
706,220 | protected void dataCalculations(Player player, float skillValue) {<NEW_LINE>// BLAST MINING<NEW_LINE>if (canBlast || canDemoExpert || canBiggerBombs) {<NEW_LINE>MiningManager miningManager = UserManager.<MASK><NEW_LINE>blastMiningRank = miningManager.getBlastMiningTier();<NEW_LINE>bonusTNTDrops = miningManager.getDropM... | getPlayer(player).getMiningManager(); |
428,267 | private void askForMerge(List<HgLogMessage> parents) {<NEW_LINE>if (isRebaseAllowed(root, parents)) {<NEW_LINE>if (Boolean.getBoolean("versioning.mercurial.pullwithrebase")) {<NEW_LINE>// NOI18N<NEW_LINE>mergeAccepted = false;<NEW_LINE>rebaseAccepted = true;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JButton btnMerge = new J... | btnRebase, Bundle.CTL_PullAction_rebaseButton_text()); |
1,518,721 | private void completeOperationTypeNamesInSchemaDefinition() {<NEW_LINE>CompletionProvider<CompletionParameters> provider = new CompletionProvider<>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void addCompletions(@NotNull final CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull Complet... | PsiElement completionElement = parameters.getPosition(); |
597,025 | // ---------//<NEW_LINE>// onEvent //<NEW_LINE>// ---------//<NEW_LINE>@Override<NEW_LINE>public void onEvent(LocationEvent event) {<NEW_LINE>final ImageHolder grayHolder = images.get(ImageKey.GRAY);<NEW_LINE>if ((grayHolder == null) || !grayHolder.hasDataReady()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>/... | , event.movement, level)); |
786,957 | public Object execute(VirtualFrame frame) {<NEW_LINE>if (markKeywordHashWithFlag) {<NEW_LINE>final ArgumentsDescriptor descriptor = RubyArguments.getDescriptor(frame);<NEW_LINE>if (descriptor instanceof KeywordArgumentsDescriptor) {<NEW_LINE>if (copyHashAndSetRuby2KeywordsNode == null) {<NEW_LINE>CompilerDirectives.tra... | RubyHash) RubyArguments.getLastArgument(frame); |
1,345,127 | public void beforeCommand(InvocationPolicy invocationPolicy) throws AbruptExitException {<NEW_LINE>CommonCommandOptions commonOptions = options.getOptions(CommonCommandOptions.class);<NEW_LINE>eventBus.post(new BuildMetadataEvent(makeMapFromMapEntries(commonOptions.buildMetadata)));<NEW_LINE>eventBus.post(new GotOption... | (), options, invocationPolicy)); |
1,096,142 | static void registerRSocketForwardingFunctionIfNecessary(String definition, FunctionCatalog functionCatalog, ApplicationContext applicationContext) {<NEW_LINE>String[] names = StringUtils.delimitedListToStringArray(definition.replaceAll(",", "|").trim(), "|");<NEW_LINE>for (String name : names) {<NEW_LINE>if (functionC... | .discoverFunctionTypeFromClass(RSocketForwardingFunction.class)); |
1,577,928 | public static void printStackTrace(Throwable self, PrintWriter s) {<NEW_LINE>// Guard against malicious overrides of Throwable.equals by<NEW_LINE>// using a Set with identity equality semantics.<NEW_LINE>Set<Throwable> dejaVu = Collections.newSetFromMap(new IdentityHashMap<>());<NEW_LINE>dejaVu.add(self);<NEW_LINE>// P... | trace, trace.length, s); |
1,724,747 | void writeTo(ByteArrayOutputStream outputStream) throws IOException {<NEW_LINE>header.writeTo(outputStream);<NEW_LINE>outputStream.write(intToByteArray(packageInfo.id));<NEW_LINE>char[] packageName <MASK><NEW_LINE>for (int i = 0; i < PACKAGE_NAME_MAX_LENGTH; i++) {<NEW_LINE>if (i < packageName.length) {<NEW_LINE>output... | = packageInfo.name.toCharArray(); |
660,081 | private List<Mapping> lcs(List<Tree> x, List<Tree> y) {<NEW_LINE>int m = x.size();<NEW_LINE>int n = y.size();<NEW_LINE>List<Mapping> lcs = new ArrayList<>();<NEW_LINE>int[][] opt = new int[m + 1][n + 1];<NEW_LINE>for (int i = m - 1; i >= 0; i--) {<NEW_LINE>for (int j = n - 1; j >= 0; j--) {<NEW_LINE>if (cpyMappings.get... | i][j + 1]); |
115,970 | protected void buildBars(GraphPayload payload, XmlBuilder b, double maxValue, double[] values) {<NEW_LINE>DecimalFormat format = new DecimalFormat("0.#");<NEW_LINE>int width = payload.getWidth();<NEW_LINE>int height = payload.getHeight();<NEW_LINE>int top = payload.getMarginTop();<NEW_LINE>int left = payload.getMarginL... | - tip.length() * 7; |
405,136 | private void createMA() {<NEW_LINE>MStorage[] storages = MStorage.getAll(getCtx(), getM_Product_ID(), getM_Locator_ID(), get_TrxName());<NEW_LINE>boolean allZeroASI = true;<NEW_LINE>for (int i = 0; i < storages.length; i++) {<NEW_LINE>if (storages[i].getM_AttributeSetInstance_ID() != 0) {<NEW_LINE>allZeroASI = false;<N... | add(storage.getQtyOnHand()); |
39,592 | static RestMethodResult sendMessage(MessageClient thisClient, final String topic, final String message, final SecurityContext securityContext) throws FrameworkException {<NEW_LINE>final App app = StructrApp.getInstance();<NEW_LINE>try (final Tx tx = app.tx()) {<NEW_LINE>Iterable<MessageSubscriber> subscribers = thisCli... | params.put("topic", topic); |
184,190 | protected void onDraw(Canvas canvas) {<NEW_LINE>if (mDividerType == DividerType.LINE) {<NEW_LINE>int l = (getWidth() - getPaddingLeft() - mDividerSize[0]) / 2;<NEW_LINE>int t = getHeight() - (getPaddingBottom() / 2);<NEW_LINE>int radius = mDividerSize[1];<NEW_LINE>canvas.drawRoundRect(l, t, l + mDividerSize[0], t + mDi... | ], radius, radius, mPaint); |
1,791,717 | protected WSSecUsernameToken addUsernameToken(SoapMessage message, UsernameToken token) {<NEW_LINE>String userName = (String) message.getContextualProperty(SecurityConstants.USERNAME);<NEW_LINE>WSSConfig wssConfig = (WSSConfig) message.getContextualProperty(WSSConfig.class.getName());<NEW_LINE>if (wssConfig == null) {<... | message.getContextualProperty(SecurityConstants.PASSWORD); |
1,616,663 | private static Pair<String, List<PredicateEvaluator>> isOrClauseValidForStarTree(IndexSegment indexSegment, FilterContext filter, Map<Predicate, PredicateEvaluator> predicateEvaluatorMap) {<NEW_LINE>assert filter.getType() == FilterContext.Type.OR;<NEW_LINE>List<Predicate> predicates = new ArrayList<>();<NEW_LINE>if (!... | Pair.of(identifier, predicateEvaluators); |
1,729,110 | public void refreshVmList() {<NEW_LINE>Set<String> oldKeys = new HashSet<>(info.keySet());<NEW_LINE>Set<String> newKeys = new HashSet<>();<NEW_LINE>for (VirtualMachineDescriptor descr : VirtualMachine.list()) {<NEW_LINE>try {<NEW_LINE>// Attach<NEW_LINE>AttachProvider provider = descr.provider();<NEW_LINE>VirtualMachin... | vm.pid, vm.displayName); |
1,819,733 | public TreeMap<Long, Map<String, Set<UUID>>> toActivityDataMap(long date, long msThreshold) {<NEW_LINE>TreeMap<Long, Map<String, Set<UUID>>> activityData = new TreeMap<>();<NEW_LINE>for (long time = date; time >= date - TimeAmount.MONTH.toMillis(2L); time -= TimeAmount.WEEK.toMillis(1L)) {<NEW_LINE>Map<String, Set<UUID... | player.getActivityIndex(time, msThreshold); |
885,525 | public void processBindingConfiguration(String context, Item item, String bindingConfig) throws BindingConfigParseException {<NEW_LINE>String[] configParts = bindingConfig.trim().split(",");<NEW_LINE>if (configParts.length < 5) {<NEW_LINE>throw new BindingConfigParseException("xPL binding configuration must contain : t... | setType(xPL_MessageI.MessageType.UNKNOWN); |
1,667,933 | public PeeringConnectionOptions unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PeeringConnectionOptions peeringConnectionOptions = new PeeringConnectionOptions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOf... | ().unmarshall(context)); |
217,801 | /* (non-Javadoc)<NEW_LINE>* @see javax.servlet.Filter#doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)... | .getCustomer((HttpServletRequest) request); |
1,695,768 | public Optional<PlaceholderExpansion> register(@NotNull final Class<? extends PlaceholderExpansion> clazz) {<NEW_LINE>try {<NEW_LINE>final PlaceholderExpansion expansion = createExpansionInstance(clazz);<NEW_LINE>if (expansion == null) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>Objects.requireNonNull(expan... | expansion.getIdentifier(), "The expansion identifier is null!"); |
358,637 | public List<Candidate> retrieveCandidates(StaffHeader.Range range, KeyRoi roi, List<KeyPeak> peaks, Set<Shape> shapes) {<NEW_LINE>logger.debug("retrieveCandidates for staff#{}", id);<NEW_LINE>// Key-signature area pixels<NEW_LINE>ByteProcessor keyBuf = roi.getAreaPixels(staffFreeSource, range);<NEW_LINE>RunTable runTab... | id, sets.size()); |
559,968 | private void dbUpdateErrorMessages(@NonNull final ImportRecordsSelection selection) {<NEW_LINE>StringBuilder sql;<NEW_LINE>int no;<NEW_LINE>sql = new StringBuilder("UPDATE I_Datev_Payment ").append("SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=No BPartner, ' ").append("WHERE C_BPartner_ID IS NULL ").append("AND I_... | logger.warn("No BPartner = {}", no); |
355,804 | public void open(Map<String, Object> map, SinkContext sinkContext) throws Exception {<NEW_LINE>try {<NEW_LINE>val configV2 = InfluxDBSinkConfig.load(map);<NEW_LINE>configV2.validate();<NEW_LINE>sink = new InfluxDBSink();<NEW_LINE>} catch (Exception e) {<NEW_LINE>try {<NEW_LINE>val configV1 = org.apache.pulsar.io.influx... | .influxdb.v1.InfluxDBGenericRecordSink(); |
302,274 | private void addRateContainer() {<NEW_LINE>RateLimiterInitialization.HttpRateLimiterItem item = Args.getInstance().getRateLimiterInitialization().getHttpMap().get(getClass().getSimpleName());<NEW_LINE>boolean success = false;<NEW_LINE>if (item != null) {<NEW_LINE>String cName = "";<NEW_LINE>String params = "";<NEW_LINE... | obj = constructor.newInstance(params); |
1,681,550 | public void propagate(InstanceState state) {<NEW_LINE>final var <MASK><NEW_LINE>final var nrOfPins = state.getAttributeValue(ATTR_SIZE).getWidth();<NEW_LINE>final var stateData = getState(state);<NEW_LINE>var currentPortIndex = 0;<NEW_LINE>// first we update the state data<NEW_LINE>if (portType.equals(INOUTSE) || portT... | portType = state.getAttributeValue(ATTR_DIR); |
888,843 | private void loadNode922() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerType_ServerDiagnostics_EnabledFlag, new QualifiedName(0, "EnabledFlag"), new LocalizedText("en", "EnabledFlag"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NU... | (1), 0.0, false); |
1,615,214 | final StopDataCollectionByAgentIdsResult executeStopDataCollectionByAgentIds(StopDataCollectionByAgentIdsRequest stopDataCollectionByAgentIdsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopDataCollectionByAgentIdsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,404,072 | CompletableFuture<CreateStreamResponse> checkStreamExists(StreamConfiguration configuration, long timestamp, final int startingSegmentNumber, OperationContext context) {<NEW_LINE>CompletableFuture<CreateStreamResponse> result = new CompletableFuture<>();<NEW_LINE>final long time;<NEW_LINE>final StreamConfigurationRecor... | , configuration, timestamp, startingSegmentNumber)); |
1,404,382 | public SourceReader<T, MySqlSplit> createReader(SourceReaderContext readerContext) throws Exception {<NEW_LINE>final Method metricGroupMethod = readerContext.getClass().getMethod("metricGroup");<NEW_LINE>metricGroupMethod.setAccessible(true);<NEW_LINE>final MetricGroup metricGroup = (MetricGroup) metricGroupMethod.invo... | MySqlSourceReaderMetrics sourceReaderMetrics = new MySqlSourceReaderMetrics(metricGroup); |
1,853,963 | private void attemptSshKeyDecryption() throws Exception {<NEW_LINE>// Try to decrypt and recover keypair, and failing that, report error.<NEW_LINE>kp = PubkeyUtils.decryptAndRecoverKeyPair(sshPrivKey, passphrase);<NEW_LINE>while (kp == null) {<NEW_LINE>sshKeyDecryptionAttempts++;<NEW_LINE>if (sshKeyDecryptionAttempts >... | (R.string.error_ssh_keypair_decryption_failure)); |
923,537 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>scrollPane = new javax.swing.JScrollPane();<NEW_LINE>list = new javax.swing.JList();<NEW_LINE>label = new javax.swing.JLabel();<NEW_LINE>list.setSelectionMode(javax.swing.ListSelec... | (PoliciesVisualPanel.class, "ACSN_SelectPolicy")); |
1,405,272 | final GetMapGlyphsResult executeGetMapGlyphs(GetMapGlyphsRequest getMapGlyphsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMapGlyphsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,551,959 | public IteratorOptions describeOptions() {<NEW_LINE>String desc = "This iterator allows ranges of key to be transformed (with" + " the exception of row transformations).";<NEW_LINE>String authDesc = "Comma-separated list of user's scan authorizations. " + "If excluded or empty, then no visibility check is performed on... | namedOptions.put(MAX_BUFFER_SIZE_OPT, bufferDesc); |
1,101,707 | private void createDDOrderLine(@NonNull final DDOrder ddOrder, @NonNull final DDOrderLine linePojo, @NonNull final I_DD_NetworkDistributionLine networkDistributionLineRecord, @NonNull final DDOrderProducer.FromToWarehouse fromToWarehouse, @NonNull final I_DD_Order ddOrderRecord) {<NEW_LINE>// Create DD Order Line<NEW_L... | setC_BPartner_ID(linePojo.getBPartnerId()); |
330,137 | public void generateHUsIfNeeded(final I_M_ReceiptSchedule receiptSchedule, @NonNull final Properties context) {<NEW_LINE>// Skip Receipt schedules which are about Packing Materials<NEW_LINE>if (receiptSchedule.isPackagingMaterial()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ILoggable loggable = Loggables.withLogger(... | huGenerator = ReceiptScheduleHUGenerator.newInstance(huContextInitial); |
50,488 | public static DescribeDBProxyResponse unmarshall(DescribeDBProxyResponse describeDBProxyResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBProxyResponse.setRequestId(_ctx.stringValue("DescribeDBProxyResponse.RequestId"));<NEW_LINE>describeDBProxyResponse.setDBProxyServiceStatus(_ctx.stringValue("DescribeDBProxyRe... | = new ArrayList<DBProxyConnectStringItemsItem>(); |
250,006 | private static Set<Scope> populateTypedScopes(Resource resource, ResourceServer resourceServer, List<Scope> defaultScopes, AuthorizationProvider authorization) {<NEW_LINE>String type = resource.getType();<NEW_LINE>if (type == null || resource.getOwner().equals(resourceServer.getId())) {<NEW_LINE>return new LinkedHashSe... | StoreFactory storeFactory = authorization.getStoreFactory(); |
534,063 | final char[] readCharBuff() throws IOException {<NEW_LINE>char[] readBuff;<NEW_LINE>char[] tmp = new char[2048];<NEW_LINE>int read;<NEW_LINE>ArrayList<char[]> buffs = new ArrayList<char[]>(20);<NEW_LINE>for (; ; ) {<NEW_LINE>read = readFully(tmp);<NEW_LINE>buffs.add(tmp);<NEW_LINE>if (read < 2048) {<NEW_LINE>break;<NEW... | = buffs.size() - 1; |
1,504,666 | public Object[] merge(Object[]... items) {<NEW_LINE>if (ArrayUtils.isEmpty(items)) {<NEW_LINE>return new Object[0];<NEW_LINE>}<NEW_LINE>int i = 0;<NEW_LINE>while (i < items.length && items[i] == null) {<NEW_LINE>i++;<NEW_LINE>}<NEW_LINE>if (i == items.length) {<NEW_LINE>return new Object[0];<NEW_LINE>}<NEW_LINE>Class<?... | Array.newInstance(type, totalLen); |
857,939 | // --------<NEW_LINE>private RADComponent createAndAddComponent(final Class compClass, final RADComponent targetComp, final Object constraints, boolean exactTargetMatch) {<NEW_LINE>// check adding form class to itself<NEW_LINE>if (!checkFormClass(compClass))<NEW_LINE>return null;<NEW_LINE>final TargetInfo target = getT... | showCannotAddComponentMessage(compClass.getName()); |
1,333,901 | public void optimize_board(boolean save_intermediate_stages, float optimization_improvement_threshold) {<NEW_LINE>if (routing_board.get_test_level() != TestLevel.RELEASE_VERSION) {<NEW_LINE>FRLogger.warn("Before optimize: Via count: " + routing_board.get_vias().size() + ", trace length: " + Math.round(routing_board.cum... | String suffix = "_op" + curr_pass_no + ".bin"; |
14,059 | protected void ensureCapacity(final int newCapacity) {<NEW_LINE>final int oldCapacity = data.length;<NEW_LINE>if (newCapacity <= oldCapacity) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (size == 0) {<NEW_LINE>threshold = calculateThreshold(newCapacity, loadFactor);<NEW_LINE>data = new HashEntry[newCapacity];<NEW_LINE>} e... | entry.next = newEntries[index]; |
1,678,877 | private static ParamCheckResult validStringParameter(final String paramName, final String paramValue, int paramMaxLen, final StringBuilder strBuffer) {<NEW_LINE>ParamCheckResult retResult = new ParamCheckResult();<NEW_LINE>if (TStringUtils.isBlank(paramValue)) {<NEW_LINE>retResult.setCheckResult(false, TErrCodeConstant... | (" data!").toString()); |
1,288,919 | public void marshall(ListOpenWorkflowExecutionsRequest listOpenWorkflowExecutionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listOpenWorkflowExecutionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | listOpenWorkflowExecutionsRequest.getExecutionFilter(), EXECUTIONFILTER_BINDING); |
1,001,736 | final DeletePublicAccessBlockResult executeDeletePublicAccessBlock(DeletePublicAccessBlockRequest deletePublicAccessBlockRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePublicAccessBlockRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
484,783 | public static PipelineTimelineEntry modification(String pipelineName, long id, List<String> materials, List<DateTime> datetimes, int counter, final String rev) {<NEW_LINE>if (materials.size() != datetimes.size()) {<NEW_LINE>throw new RuntimeException("Setup the data properly you (if raghu) stupid stupid stupid (else) l... | pipelineName, id, counter, materialToMod); |
76,168 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create window PointWindow#keepall as (id string, px double, py double);\n" + "create index MyIndex on PointWindow((px,py) pointregionquadtree(0,0,100,100,2,5));\n" + "insert into PointWindow ... | 0, 0, 100, 100); |
240,087 | private static void writeAttachedPartitions(FilesFacade ff, long tempMem8b, Path path, MemoryMARW txMem, int partitionBy, int symbolsCount, MemoryARW writeTo) {<NEW_LINE>int rootLen = path.length();<NEW_LINE>long minTimestamp = txMem.getLong(TX_OFFSET_MIN_TIMESTAMP);<NEW_LINE>long maxTimestamp = txMem.getLong(TX_OFFSET... | partitionFloorMethod = PartitionBy.getPartitionFloorMethod(partitionBy); |
152,788 | // Unmarshall JSON into Java object where one of the fields is an interface<NEW_LINE>// and JsonbDeserializer disambiguates which subclass should be used.<NEW_LINE>// Use JsonbProvider default provider to obtain the JsonbBuilder.<NEW_LINE>@Test<NEW_LINE>public void testJsonbDeserializer() throws Exception {<NEW_LINE>Re... | out.println("JSON for Scrum object: " + json); |
645,585 | public Expression eval() {<NEW_LINE>if (myExpression instanceof LetExpression) {<NEW_LINE>ExprSubstitution substitution = new ExprSubstitution(mySubstitution);<NEW_LINE>LetExpression let = (LetExpression) myExpression;<NEW_LINE>if (let.isStrict()) {<NEW_LINE>for (HaveClause letClause : let.getClauses()) {<NEW_LINE>subs... | myExpression.subst(mySubstitution, levelSubstitution); |
839,584 | public static void horizontal3(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int <MASK><NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int radius = ke... | k2 = kernel.data[1]; |
832,020 | private void runInternal() {<NEW_LINE>final long now = Clock.currentTimeMillis();<NEW_LINE>// if this node is the owner of a partition, we use this criteria time.<NEW_LINE>final long ownerHighestStoreTime = calculateHighestStoreTime(lastHighestStoreTime, now);<NEW_LINE>// if this node is the backup of a partition, we u... | failuresPerPartition = writeBehindProcessor.process(ownersList); |
1,347,228 | private void createDataBase() throws Exception {<NEW_LINE>String goalUrl = properties.getProperty("spring.datasource.url");<NEW_LINE>this.user = properties.getProperty("spring.datasource.username");<NEW_LINE>this.password = properties.getProperty("spring.datasource.password");<NEW_LINE>String driverName = properties.ge... | this.dbName, defaultUrl, databaseType); |
1,651,184 | private CliArg checkAmbiguitiesAndGetCliArg(VariableKey variableKey, String key, String moduleKey, String rootOrgValue, String rootModuleValue) {<NEW_LINE>if (rootOrgValue == null && rootModuleValue == null) {<NEW_LINE>return markAndGetCliArg(key, variableKey, null);<NEW_LINE>}<NEW_LINE>if (rootOrgValue != null && root... | markedCliKeyVariableMap.put(moduleKey, variableKey); |
328,191 | private ResultMap computePredictions(long user, @Nonnull Collection<Long> items, boolean includeDetails) {<NEW_LINE>logger.debug("predicting {} items for {}", <MASK><NEW_LINE>Long2DoubleMap ratings = makeUserVector(user, dao);<NEW_LINE>if (ratings == null) {<NEW_LINE>logger.warn("user {} has no ratings", user);<NEW_LIN... | items.size(), user); |
1,633,706 | protected boolean post(final java.nio.file.Path path, final Path file) {<NEW_LINE>if (Files.isSymbolicLink(path)) {<NEW_LINE>try {<NEW_LINE>final java.nio.file.Path p = Files.readSymbolicLink(path);<NEW_LINE>final Path target = new Path(p.toString(), EnumSet.of(Path.Type.file));<NEW_LINE>final Path.Type type;<NEW_LINE>... | (EnumSet.of(type)); |
477,305 | public List<PermissionTicket> find(ResourceServer resourceServer, Map<PermissionTicket.FilterOption, String> attributes, Integer firstResult, Integer maxResult) {<NEW_LINE>CriteriaBuilder builder = entityManager.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<PermissionTicketEntity> querybuilder = builder.createQuery(Perm... | builder, root, resourceServer, attributes); |
379,435 | public emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify result = new emu.grasscutter.net.<MASK><NEW_LINE>int from_bitField0_ = bitField... | proto.EntityFightPropChangeReasonNotifyOuterClass.EntityFightPropChangeReasonNotify(this); |
1,329,846 | public SamlIdentityProviderBuilder fromSettings(Environment env) {<NEW_LINE>final <MASK><NEW_LINE>this.entityId = require(settings, IDP_ENTITY_ID);<NEW_LINE>this.ssoEndpoints = new HashMap<>();<NEW_LINE>this.sloEndpoints = new HashMap<>();<NEW_LINE>this.ssoEndpoints.put(SAML2_REDIRECT_BINDING_URI, requiredUrl(settings,... | Settings settings = env.settings(); |
146,074 | protected QuantileResult expectedShortfall(double level, DoubleArray sample) {<NEW_LINE>ArgChecker.isTrue(level > 0, "Quantile should be above 0.");<NEW_LINE>ArgChecker.isTrue(level < 1, "Quantile should be below 1.");<NEW_LINE>int sampleSize = sampleCorrection(sample.size());<NEW_LINE>double fractionalIndex = level * ... | int) Math.floor(adjustedLevel); |
1,680,563 | // assumes that the path already has EPSILON as the last element.<NEW_LINE>public static void addOnePathToGraph(List path, double count, int markovOrder, TransducerGraph graph) {<NEW_LINE>Object source = graph.getStartNode();<NEW_LINE>for (int j = 0; j < path.size(); j++) {<NEW_LINE>Object <MASK><NEW_LINE>Arc a = graph... | input = path.get(j); |
1,504,713 | // Interpolate a color between values, potentially<NEW_LINE>int interpColor(float where) {<NEW_LINE>if (colors.size() == 0)<NEW_LINE>return 0;<NEW_LINE>if (colors.size() == 1)<NEW_LINE>return colors.get(0);<NEW_LINE>float pos = where * colors.size();<NEW_LINE>int aIdx = (int) Math.floor(pos);<NEW_LINE>int bIdx = (int) ... | b = colors.get(bIdx); |
1,144,432 | public static void main(String[] args) {<NEW_LINE>System.out.println("- Downloader started");<NEW_LINE>File baseDirectory = new File(args[0]);<NEW_LINE>System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());<NEW_LINE>// If the maven-wrapper.properties exists, read it and check if it contains a... | = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); |
1,506,080 | public void onFragment(DirectBuffer buffer, int offset, int length, Header header) {<NEW_LINE>if (buffer != null && length > 0) {<NEW_LINE>ByteBuffer byteBuffer = buffer.byteBuffer().order(ByteOrder.nativeOrder());<NEW_LINE>byteBuffer.position(offset);<NEW_LINE>byte[] b = new byte[length];<NEW_LINE>byteBuffer.get(b);<N... | log.error("", e); |
1,055,457 | protected SandboxedSpawn prepareSpawn(Spawn spawn, SpawnExecutionContext context) throws IOException, ForbiddenActionInputException, InterruptedException {<NEW_LINE>Path tmpDir = createActionTemp(execRoot);<NEW_LINE>Path commandTmpDir = tmpDir.getRelative("work");<NEW_LINE>commandTmpDir.createDirectory();<NEW_LINE>Immu... | binTools, commandTmpDir.getPathString()); |
679,683 | public ListedAccess unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListedAccess listedAccess = new ListedAccess();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
793,827 | public static void partialReduceDoubleMult(double[] inputArray, double[] outputArray, int gidx) {<NEW_LINE>int localIdx = SPIRVOCLIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = SPIRVOCLIntrinsics.get_local_size(0);<NEW_LINE>int <MASK><NEW_LINE>double[] localArray = (double[]) NewArrayNode.newUninitializedArr... | groupID = SPIRVOCLIntrinsics.get_group_id(0); |
625,874 | public void execute(IntegrationActivityBehavior receiveTaskActivityBehavior, DelegateExecution execution) {<NEW_LINE>Map<String, Object> stringObjectMap = new HashMap<>();<NEW_LINE>stringObjectMap.put(executionId, execution.getId());<NEW_LINE>stringObjectMap.put(processInstanceId, execution.getProcessInstanceId());<NEW... | processDefinitionId, execution.getProcessDefinitionId()); |
217,836 | public void run(String command, String[] args, Context context, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>String subcommand;<NEW_LINE>if (command.equals("!markmap")) {<NEW_LINE>if (args.length < 1) {<NEW_LINE>out.println("No command specified");<NEW_LINE>printHelp(out);<NEW_LINE>return;<NEW_LINE... | near(args, context, out); |
1,335,695 | public static DescribeRecordLogsResponse unmarshall(DescribeRecordLogsResponse describeRecordLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRecordLogsResponse.setRequestId(_ctx.stringValue("DescribeRecordLogsResponse.RequestId"));<NEW_LINE>describeRecordLogsResponse.setTotalCount(_ctx.longValue("DescribeRec... | ("DescribeRecordLogsResponse.RecordLogs[" + i + "].Message")); |
156,863 | public void rowResponse(final byte[] row, final BackendConnection conn) {<NEW_LINE>if (errorRepsponsed.get() || this.isFail()) {<NEW_LINE>// the connection has been closed or set to "txInterrupt" properly<NEW_LINE>// in tryErrorFinished() method! If we close it here, it can<NEW_LINE>// lead to tx error such as blocking... | binRowDataPk.read(fieldPackets, rowDataPkg); |
1,637,220 | public com.amazonaws.services.cognitoidp.model.InvalidEmailRoleAccessPolicyException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitoidp.model.InvalidEmailRoleAccessPolicyException invalidEmailRoleAccessPolicyException = new com.amazonaws.services.cognito... | int originalDepth = context.getCurrentDepth(); |
1,773,379 | public CdmObject copy(ResolveOptions resOpt, CdmObject host) {<NEW_LINE>// Since we need to call the base copy which will only return a document when there is no host,<NEW_LINE>// make a fake host here.<NEW_LINE>CdmManifestDefinition tempHost = (CdmManifestDefinition) host;<NEW_LINE>if (tempHost == null) {<NEW_LINE>tem... | setManifestName(this.getManifestName()); |
1,459,578 | private List<?> stubTestWriteValue(Stub stub, List<?> value) throws RemoteException {<NEW_LINE>while (true) {<NEW_LINE>InputStream in = null;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>OutputStream out = (OutputStream) <MASK><NEW_LINE>// RMIC compatible marshalling using write_value...<NEW_LINE>out.write_value((Serializabl... | stub._request("testWriteValue", true); |
85,746 | void alone(VirtualFrame frame, LZMACompressor.Native self, int format, long preset, Object filters, @Shared("cs") @Cached NativeLibrary.InvokeNativeFunction createStream, @Cached NativeLibrary.InvokeNativeFunction lzmaAloneEncoder, @Cached NativeFilterChain filterChain, @Cached ConditionProfile errProfile) {<NEW_LINE>P... | lzmast = lzmaSupport.createStream(createStream); |
1,569,521 | // getDescription<NEW_LINE>@Override<NEW_LINE>protected void initClassDefaults(final UIDefaults table) {<NEW_LINE>super.initClassDefaults(table);<NEW_LINE>// Overwrite<NEW_LINE>putDefault(table, AdempiereComboBoxUI.uiClassID, AdempiereComboBoxUI.class);<NEW_LINE>putDefault(table, AdempiereLabelUI.uiClassID, AdempiereLa... | JXTaskPane.uiClassID, AdempiereTaskPaneUI.class); |
375,154 | public GetSoftwareUpdatesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetSoftwareUpdatesResult getSoftwareUpdatesResult = new GetSoftwareUpdatesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonT... | String currentParentElement = context.getCurrentParentElement(); |
1,287,412 | static RenderInfo onRender(ComponentContext c, @FromEvent int index, @FromEvent Data model) {<NEW_LINE>final int numDemos = 5;<NEW_LINE>Component component;<NEW_LINE>// Keep alternating between demos<NEW_LINE>switch(index % numDemos) {<NEW_LINE>case 0:<NEW_LINE>component = StoryFooterComponent.create(c).key("footer").b... | create(c).build(); |
383,047 | private static void addURL1(ClassLoader loader, URL url) {<NEW_LINE>Class<?<MASK><NEW_LINE>do {<NEW_LINE>Field field;<NEW_LINE>try {<NEW_LINE>field = currentClass.getDeclaredField("ucp");<NEW_LINE>} catch (NoSuchFieldException ignored) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>field.setAccessible(true);<NEW_LINE>Object ... | > currentClass = loader.getClass(); |
1,598,023 | public static Integer appendGroupNodeComment(final SQLProvider provider, final INaviGroupNode groupNode, final String commentText, final Integer userId) throws CouldntSaveDataException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE02449: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(grou... | 2, groupNode.getId()); |
1,360,518 | public TransportFilter createTransportFilter(Connection connection, TransportCipher read_cipher, TransportCipher write_cipher) throws TransportException {<NEW_LINE><MASK><NEW_LINE>if (transport == null) {<NEW_LINE>throw (new TransportException("no transport available"));<NEW_LINE>}<NEW_LINE>com.biglybt.core.networkmana... | Transport transport = connection.getTransport(); |
886,496 | public synchronized void unInstall() {<NEW_LINE>if (IS_EMPTY.test(this)) {<NEW_LINE>LOGGER.info(String.join("", Collections.nCopies(76, "=")));<NEW_LINE>LOGGER.info("Skip un-installation of the cluster operator");<NEW_LINE>LOGGER.info(String.join("", Collections.nCopies(76, "=")));<NEW_LINE>} else {<NEW_LINE>LOGGER.inf... | Constants.PREPARE_OPERATOR_ENV_KEY + namespaceInstallTo, null); |
1,552,224 | public Builder mergeFrom(io.grpc.examples.routeguide.FeatureDatabase other) {<NEW_LINE>if (other == io.grpc.examples.routeguide.FeatureDatabase.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (featureBuilder_ == null) {<NEW_LINE>if (!other.feature_.isEmpty()) {<NEW_LINE>if (feature_.isEmpty()) {<NEW_LINE>featur... | bitField0_ = (bitField0_ & ~0x00000001); |
1,049,918 | public ResolverDnssecConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResolverDnssecConfig resolverDnssecConfig = new ResolverDnssecConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
1,378,406 | final DeleteVoiceConnectorGroupResult executeDeleteVoiceConnectorGroup(DeleteVoiceConnectorGroupRequest deleteVoiceConnectorGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceConnectorGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
518,758 | public SavingsPlanRateProperty unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SavingsPlanRateProperty savingsPlanRateProperty = new SavingsPlanRateProperty();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
521,065 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String namespaceName, String eventHubName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<... | getSubscriptionId(), accept, context); |
1,588,751 | public void run() {<NEW_LINE>database.initialize();<NEW_LINE>Relation<O> relation = database.getRelation(distance.getInputTypeRestriction());<NEW_LINE>KNNSearcher<DBIDRef> knnQ = new QueryBuilder<>(relation, distance).noCache().kNNByDBID(k);<NEW_LINE>// open file.<NEW_LINE>try (//<NEW_LINE>FileChannel //<NEW_LINE>chann... | buffer = ByteBuffer.allocateDirect(bufsize); |
666,419 | private static void scanObject(HashSet<J9ObjectPointer> visitedObjects, ObjectVisitor visitor, J9ObjectPointer object, VoidPointer address) {<NEW_LINE>if (visitedObjects.contains(object)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!visitor.visit(object, address)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>visitedObjects.ad... | GCObjectIterator.fromJ9Object(object, true); |
19,629 | public void cancelFileUploadViaShare(String accessKey, String uploadId) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'accessKey' is set<NEW_LINE>if (accessKey == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'accessKey' when call... | localVarAuthNames = new String[] {}; |
1,414,390 | private void saveActivity() {<NEW_LINE>ContentValues tmp = new ContentValues();<NEW_LINE>tmp.put(DB.ACTIVITY.COMMENT, notes.getText().toString());<NEW_LINE>tmp.put(DB.ACTIVITY.SPORT, sport.getValueInt());<NEW_LINE>String[] whereArgs = <MASK><NEW_LINE>mDB.update(DB.ACTIVITY.TABLE, tmp, "_id = ?", whereArgs);<NEW_LINE>//... | { Long.toString(mID) }; |
1,118,406 | public void onResume(RhodesActivity activity) {<NEW_LINE>Logger.I(TAG, "BarcodeFactoryRhoListener onResume");<NEW_LINE>int myUseDWScanning = 0;<NEW_LINE>IRhoConfig myIRhoConfig = null;<NEW_LINE>IRhoWebView myIRhoWebView = null;<NEW_LINE>try {<NEW_LINE>myIRhoWebView = RhodesActivity.safeGetInstance().getMainView().getWe... | Logger.I(TAG, "BarcodeFactoryRhoListener onResume-BarcodeFactory-DW-false created "); |
1,011,977 | public TypeBinding checkFieldAccess(BlockScope scope) {<NEW_LINE>FieldBinding fieldBinding = (FieldBinding) this.binding;<NEW_LINE>this.constant = fieldBinding.constant(scope);<NEW_LINE>// clear bits<NEW_LINE><MASK><NEW_LINE>this.bits |= Binding.FIELD;<NEW_LINE>MethodScope methodScope = scope.methodScope();<NEW_LINE>if... | this.bits &= ~ASTNode.RestrictiveFlagMASK; |
12,457 | public String handleRequest(String uri, String content, HttpResponse output) {<NEW_LINE>try (Connection connection = db.getConnection()) {<NEW_LINE>if (connection == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>output.setStatus(HttpResponseStatus.OK);<NEW_LINE>output.headers().set(HttpHeaders.Names.CONTENT_TYPE, "... | ps.setString(1, content); |
263,357 | protected String doIt() throws Exception {<NEW_LINE>log.info("Selection=" + isSelection() + ", M_Warehouse_ID=" + getWarehouseId() + ", C_BPartner_ID=" + getBPartnerId() + ", Consolidate=" + isConsolidateDocument() + ", IsUnconfirmed=" + isUnconfirmedInOut() + ", Movement=" + getMovementDate());<NEW_LINE>List<MDDOrder>... | parameters.add(getBPartnerId()); |
445,720 | public static ListDiagnoseReportResponse unmarshall(ListDiagnoseReportResponse listDiagnoseReportResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDiagnoseReportResponse.setRequestId(_ctx.stringValue("ListDiagnoseReportResponse.RequestId"));<NEW_LINE>Headers headers = new Headers();<NEW_LINE>headers.setXTotalCount(_ct... | + "].diagnoseItems[" + j + "].health")); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.