idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
828,718 | final DBCluster executeRestoreDBClusterToPointInTime(RestoreDBClusterToPointInTimeRequest restoreDBClusterToPointInTimeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreDBClusterToPointInTimeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetric... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
401,813 | public Mono<ReplicationFactorChangeResponseDTO> changeReplicationFactor(KafkaCluster cluster, String topicName, ReplicationFactorChangeDTO replicationFactorChange) {<NEW_LINE>return loadTopic(cluster, topicName).flatMap(topic -> adminClientService.get(cluster).flatMap(ac -> {<NEW_LINE>Integer actual = topic.getReplicat... | Integer requested = replicationFactorChange.getTotalReplicationFactor(); |
1,282,283 | private static void storeLastFocusedComponent(@Nonnull WindowEvent we) {<NEW_LINE>final Window eventWindow = we.getWindow();<NEW_LINE>if (we.getID() == WindowEvent.WINDOW_DEACTIVATED || we.getID() == WindowEvent.WINDOW_LOST_FOCUS) {<NEW_LINE>Component <MASK><NEW_LINE>Component focusOwnerInDeactivatedWindow = eventWindo... | frame = UIUtil.findUltimateParent(eventWindow); |
1,521,230 | private void writeExportedFileRules(Project rootBuckProject, OkBuckExtension okBuckExtension) {<NEW_LINE>Set<String> currentProjectPaths = okBuckExtension.buckProjects.stream().filter(project -> ProjectUtil.getType(project) != ProjectType.UNKNOWN).map(project -> rootBuckProject.getProjectDir().toPath().relativize(proje... | okBuckExtension.buildFileName).toFile(); |
1,046,191 | private void saveOrUpdateJobRankDistribution(List<JobStatistics> jobList, String zkBsKey) {<NEW_LINE>try {<NEW_LINE>Map<Integer, Integer> jobDegreeCountMap = new HashMap<>();<NEW_LINE>for (JobStatistics jobStatistics : jobList) {<NEW_LINE>int jobDegree = jobStatistics.getJobDegree();<NEW_LINE>Integer count = jobDegreeC... | e.getMessage(), e); |
526,001 | public void methodReached(DependencyAgent agent, MethodDependency method) {<NEW_LINE>reachedMethods.put(method.getReference(), new HashSet<>());<NEW_LINE>if (method.isMissing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AnnotationReader annot = method.getMethod().getAnnotations().get(JavaScriptBody.class.getName());<NEW_L... | .parse(String.class)); |
832,401 | // ***********************************************************************************<NEW_LINE>// METHODS<NEW_LINE>// ***********************************************************************************<NEW_LINE>@Override<NEW_LINE>public void propagate(int evtmask) throws ContradictionException {<NEW_LINE>ISetIterator ... | force(i + offSet1, this); |
1,810,062 | public static DescribeVpnPbrRouteEntriesResponse unmarshall(DescribeVpnPbrRouteEntriesResponse describeVpnPbrRouteEntriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVpnPbrRouteEntriesResponse.setRequestId(_ctx.stringValue("DescribeVpnPbrRouteEntriesResponse.RequestId"));<NEW_LINE>describeVpnPbrRouteEntriesRe... | ("DescribeVpnPbrRouteEntriesResponse.VpnPbrRouteEntries[" + i + "].CreateTime")); |
415,675 | public static SuggestionWindow ofDecompilerChange(String switchMessage, String title, GuiController controller, ClassViewport view) {<NEW_LINE>GridPane grid = new GridPane();<NEW_LINE>grid.setPadding(new Insets(15));<NEW_LINE>grid.setVgap(4);<NEW_LINE>grid.setAlignment(Pos.CENTER);<NEW_LINE>int col = 0;<NEW_LINE>for (c... | add(btn, col, 4); |
1,682,268 | public Object2IntRBTreeMap<SearchHit> execute(final int limit) {<NEW_LINE>final <MASK><NEW_LINE>final Sequence<Cursor> cursors = adapter.makeCursors(filter, interval, VirtualColumns.EMPTY, query.getGranularity(), query.isDescending(), null);<NEW_LINE>final Object2IntRBTreeMap<SearchHit> retVal = new Object2IntRBTreeMap... | StorageAdapter adapter = segment.asStorageAdapter(); |
660,595 | synchronized Optional<BlockingQueue<Event>> registerStream(final String streamName) {<NEW_LINE>if (!streamQueuesMap.containsKey(streamName)) {<NEW_LINE>cleanupInactiveStreamQueues();<NEW_LINE>if (streamQueuesMap.keySet().size() >= config.maxNumStreams()) {<NEW_LINE>LOG.debug("failed to create queue for stream {} (MAX_N... | info("creating queue for stream {} (size: {})", streamName, qSize); |
1,553,741 | /* (non-Javadoc)<NEW_LINE>* @see com.dotmarketing.business.PermissionFactory#assignPermissions<NEW_LINE>* @deprecated Use save(permission) instead.<NEW_LINE>*/<NEW_LINE>@WrapInTransaction<NEW_LINE>@Override<NEW_LINE>@Deprecated<NEW_LINE>public void assignPermissions(List<Permission> permissions, Permissionable permissi... | = new ArrayList<Permission>(); |
1,447,801 | public void lowerStoreIndexedNode(StoreIndexedNode storeIndexed, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = storeIndexed.graph();<NEW_LINE>JavaKind elementKind = storeIndexed.elementKind();<NEW_LINE>ValueNode value = storeIndexed.value();<NEW_LINE>ValueNode array = storeIndexed.array();<NEW_LINE>AddressNode ... | value.stamp(NodeView.DEFAULT); |
1,769,415 | private List<Pair<TicketReservation, Event>> findStuckPaymentsToBeNotified(Date expirationDate) {<NEW_LINE>List<ReservationIdAndEventId> <MASK><NEW_LINE>Map<Integer, Event> events;<NEW_LINE>if (!stuckReservations.isEmpty()) {<NEW_LINE>events = eventRepository.findByIds(stuckReservations.stream().map(ReservationIdAndEve... | stuckReservations = ticketReservationRepository.findStuckReservationsForUpdate(expirationDate); |
1,809,128 | final CreateFleetMetricResult executeCreateFleetMetric(CreateFleetMetricRequest createFleetMetricRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFleetMetricRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | invoke(request, responseHandler, executionContext); |
525,582 | private Page parsePage(NextPageData overflow, List<TokenWithWidth> wordsAndSpaces, Predicate<List<String>> canPlaceAnchors, Function<List<String>, Integer> getLines) {<NEW_LINE>List<List<Token>> page = new ArrayList<>();<NEW_LINE>NextLineData lineOverflow = overflow.topLine;<NEW_LINE>List<String> anchorsOnPage = new Ar... | checkState(viability != AnchorViability.NOT_VALID); |
1,686,035 | public ListPredictorBacktestExportJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListPredictorBacktestExportJobsResult listPredictorBacktestExportJobsResult = new ListPredictorBacktestExportJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE... | String currentParentElement = context.getCurrentParentElement(); |
166,289 | public String buildInsertQuery(final String ksName, final String cfName, final Map<String, ByteBuffer> map, final String id, final boolean ifNotExists, ByteBuffer[] values, final int valuesOffset) {<NEW_LINE>final StringBuilder questionsMarks = new StringBuilder();<NEW_LINE>final StringBuilder columnNames = new StringB... | ()).append(") "); |
429,620 | public int loadTable(ResultSet rs) {<NEW_LINE>int no = 0;<NEW_LINE>int row = 0;<NEW_LINE>//<NEW_LINE>clearTable();<NEW_LINE>try {<NEW_LINE>while (rs.next()) {<NEW_LINE>no++;<NEW_LINE>setRowCount(row + 1);<NEW_LINE>int colOffset = 1;<NEW_LINE>int col = 0;<NEW_LINE>// BR [ 257 ]<NEW_LINE>for (MBrowseField field : getFiel... | gridField.setValue(value, true); |
178,679 | public void writeImage(JRImage image) throws IOException {<NEW_LINE>writer.startElement(JRXmlConstants.ELEMENT_image, getNamespace());<NEW_LINE>writer.addAttribute(JRXmlConstants.ATTRIBUTE_scaleImage, image.getOwnScaleImageValue());<NEW_LINE>if (isNewerVersionOrEqual(JRConstants.VERSION_6_10_0)) {<NEW_LINE>writer.addAt... | HyperlinkTypeEnum.NONE.getName()); |
1,460,732 | public IRubyObject onEvent(final ThreadContext context, final IRubyObject[] args) {<NEW_LINE>String message = <MASK><NEW_LINE>long eventDurationNanos = ((RubyNumeric) args[3]).getLongValue();<NEW_LINE>if (warnThreshold >= 0 && eventDurationNanos > warnThreshold) {<NEW_LINE>slowLogger.warn(message, asData(context, args[... | args[0].asJavaString(); |
1,076,859 | protected IStatus updateDataSource(DBRProgressMonitor monitor) {<NEW_LINE>UIServiceConnections serviceConnections = DBWorkbench.getService(UIServiceConnections.class);<NEW_LINE>if (serviceConnections != null) {<NEW_LINE>synchronized (CONFIRM_SYNC) {<NEW_LINE>if (!serviceConnections.confirmTransactionsClose(txnToEnd.key... | NT_ROLLBACK, "Transactions have been rolled back after long idle period", DBPMessageType.ERROR); |
206,631 | protected void configure() {<NEW_LINE>bind(AclManagerImpl.class).to(AclManager.class);<NEW_LINE>bind(BrokerConfigManagerImpl.class).to(BrokerConfigManager.class);<NEW_LINE>bind(BrokerManagerImpl.class).to(BrokerManager.class);<NEW_LINE>bind(ClusterConfigManagerImpl.class).to(ClusterConfigManager.class);<NEW_LINE>bind(C... | ).to(ConsumerAssignmentManager.class); |
1,350,834 | List<String> listEditable(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Portal.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<Portal>... | .get(Portal_.controllerList)); |
91,814 | public static void main(String[] args) {<NEW_LINE>Properties options = StringUtils.argsToProperties(args, argOptionDefs);<NEW_LINE>if (!options.containsKey("") || options.containsKey("help")) {<NEW_LINE>log.info(usage());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean retainNER = PropertiesUtils.getBool(options, "ner", f... | , false, false) : null); |
211,761 | public void selected() {<NEW_LINE>Coordinator c = _root.getCoordinator();<NEW_LINE>c.getShowLiveDeploymentFiltersAction().setEnabled(false);<NEW_LINE>c.getCloseApplicationAction().setEnabled(true);<NEW_LINE>c.getSaveAction().setEnabled(_root.needsSaving() && (_root.isLive() && c.connectedToMaster() || _root.hasFile()))... | ) && c.connectedToMaster()); |
583,679 | private Clipboard readVersion3(CompoundTag schematicTag, VersionedDataFixer fixer) throws IOException {<NEW_LINE>Map<String, Tag> schematic = schematicTag.getValue();<NEW_LINE>int width = requireTag(schematic, "Width", ShortTag.class).getValue() & 0xFFFF;<NEW_LINE>int height = requireTag(schematic, "Height", ShortTag.c... | min = offset.add(origin); |
355,901 | public static SketchHolder sketchSetOperation(Func func, int sketchSize, Object... holders) {<NEW_LINE>// in the code below, I am returning SetOp.getResult(false, null)<NEW_LINE>// "false" gets us an unordered sketch which is faster to build<NEW_LINE>// "true" returns an ordered sketch but slower to compute. advantage ... | [0]).getSketch(); |
44,351 | public void paint(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setStroke(new BasicStroke(2));<NEW_LINE>for (int i = 1; i < w; i += RectSize) {<NEW_LINE>for (int j = 1; j < h; j += RectSize) {<NEW_LINE>Node current = arr[i <MASK><NEW_LINE>if (currently.contains(current)) {<NEW_LINE>g2.setColor(Colo... | / RectSize][j / RectSize]; |
924,269 | private void modifyForSoundVibrationAndLight(Builder mBuilder, boolean notify, boolean quietHours, SharedPreferences preferences) {<NEW_LINE>final Resources resources = mXmppConnectionService.getResources();<NEW_LINE>final String ringtone = preferences.getString("notification_ringtone", resources.getString(R.string.not... | "unable to use custom notification sound " + uri.toString()); |
367,544 | private void updateAgencyLogo(String path) throws IOException {<NEW_LINE>agencyLogoPathField.setText(path);<NEW_LINE>ImageIcon agencyLogoIcon = new ImageIcon();<NEW_LINE>agencyLogoPreview.setText(NbBundle.getMessage(AutopsyOptionsPanel.class, "AutopsyOptionsPanel.agencyLogoPreview.text"));<NEW_LINE>if (!agencyLogoPathF... | File(agencyLogoPathField.getText()); |
1,673,542 | private static Set<Class<?>> sumNonJerseyBoundInjectables() {<NEW_LINE>final Set<Class<?>> injectables = new HashSet<>();<NEW_LINE>// JAX-RS<NEW_LINE>injectables.add(Application.class);<NEW_LINE>injectables.add(Configuration.class);<NEW_LINE>injectables.add(ContainerRequestContext.class);<NEW_LINE>injectables.add(HttpH... | injectables.add(ResourceInfo.class); |
1,193,300 | private OperationExt newRouteDescriptor(ParserContext ctx, MethodNode node, String httpMethod, String prefix) {<NEW_LINE>Optional<RequestBodyExt> requestBody = RequestParser.requestBody(ctx, node);<NEW_LINE>List<ParameterExt> arguments = RequestParser.parameters(node);<NEW_LINE>ResponseExt response = new ResponseExt();... | httpMethod, prefix, arguments, response); |
178,279 | public static Certificate createMasterCert(PublicKey pubKey, PrivateKey privKey) throws Exception {<NEW_LINE>//<NEW_LINE>// signers name<NEW_LINE>//<NEW_LINE>String issuer = "C=AU, O=The Legion of the Bouncy Castle, OU=Bouncy Primary Certificate";<NEW_LINE>//<NEW_LINE>// subjects name - the same as we are self signed.<... | .checkValidity(new Date()); |
1,611,548 | private ArrayBuilder arrayBuilderFor(IPCClient client, Field field) throws VineyardException {<NEW_LINE>if (field.getType().equals(Arrow.Type.Boolean)) {<NEW_LINE>return new BooleanArrayBuilder(client, rows);<NEW_LINE>} else if (field.getType().equals(Arrow.Type.Int)) {<NEW_LINE><MASK><NEW_LINE>} else if (field.getType... | return new Int32ArrayBuilder(client, rows); |
976,769 | public List<Integer> countSmaller(int[] nums) {<NEW_LINE>Set<Integer> <MASK><NEW_LINE>for (int v : nums) {<NEW_LINE>s.add(v);<NEW_LINE>}<NEW_LINE>List<Integer> alls = new ArrayList<>(s);<NEW_LINE>alls.sort(Comparator.comparingInt(a -> a));<NEW_LINE>int n = alls.size();<NEW_LINE>Map<Integer, Integer> m = new HashMap<>(n... | s = new HashSet<>(); |
101,544 | private void initCards() {<NEW_LINE>ArrayList<Card> cards = new ArrayList<Card>();<NEW_LINE>for (int i = 0; i < 50; i++) {<NEW_LINE>CardExample card = new CardExample(getActivity(), "My title " + i, "Inner text " + i);<NEW_LINE>cards.add(card);<NEW_LINE>CardExample2 cardx = new CardExample2(this.getActivity());<NEW_LIN... | random() * (5.0)); |
419,142 | public static Figure create(String title, Table table, String xCol, String yCol, String zCol, String sizeColumn, String groupCol) {<NEW_LINE>TableSliceGroup tables = table.splitOn(table.categoricalColumn(groupCol));<NEW_LINE>Layout layout = standardLayout(title, xCol, yCol, zCol, false);<NEW_LINE>Scatter3DTrace[] trace... | Scatter3DTrace[tables.size()]; |
1,639,024 | private String[] validateSearchBases(String[] searchBases, List<HashMap<String, String>> baseEntries) {<NEW_LINE>final String METHODNAME = "validateSearchBases(String[], List<HashMap<String, String>>)";<NEW_LINE>List<String> validSearchBase = new ArrayList<String>();<NEW_LINE>boolean isValid = false;<NEW_LINE>for (int ... | > itr = keys.iterator(); |
1,745,821 | public void loadInitialConfiguration(ConfigVariableRegistry variableRegistry) throws ConfigValidationException, ConfigParserException {<NEW_LINE>if (configRoot != null && configRoot.exists()) {<NEW_LINE>try {<NEW_LINE>serverConfiguration = loadServerConfiguration();<NEW_LINE>if (serverConfiguration == null) {<NEW_LINE>... | ConfigVariables.class, variableRegistry, properties); |
1,184,292 | private static DetailedExitCode createDetailedExitCodeForUndetailedExecutionCause(EvaluationResult<?> result, Throwable undetailedCause) {<NEW_LINE>// TODO(b/227660368): These warning logs should be a bug report, but tests currently fail.<NEW_LINE>if (undetailedCause == null) {<NEW_LINE>logger.atWarning().log("No excep... | ")", Execution.Code.NON_ACTION_EXECUTION_FAILURE); |
1,426,488 | private Publisher<?> fallbackForReactiveType(MethodInvocationContext<Object, Object> context, Publisher<?> publisher) {<NEW_LINE>return Flux.from(publisher).onErrorResume(throwable -> {<NEW_LINE>Optional<? extends MethodExecutionHandle<?, Object>> fallbackMethod = findFallbackMethod(context);<NEW_LINE>if (fallbackMetho... | invoke(context.getParameterValues()); |
1,503,047 | protected void configure() {<NEW_LINE>final CacheConfig cacheConfig = new ConfigurationObjectFactory(skifeConfigSource).build(CacheConfig.class);<NEW_LINE>bind(CacheConfig.class).toInstance(cacheConfig);<NEW_LINE>final EhCacheConfig ehCacheConfig = new ConfigurationObjectFactory(skifeConfigSource).build(EhCacheConfig.c... | TenantKVCacheLoader.class).asEagerSingleton(); |
878,361 | private // with all possible modifiers (Ctrl, Shift, Alt, etc.)<NEW_LINE>void registerSelectItemAction() {<NEW_LINE>int[] allowedModifiers = new int[] { 0, InputEvent.SHIFT_MASK, InputEvent.CTRL_MASK, InputEvent.META_MASK, InputEvent.ALT_MASK };<NEW_LINE>ShortcutSet selectShortcuts = ActionManager.getInstance().getActi... | ] indices = myResultsList.getSelectedIndices(); |
1,240,255 | public Request<DetectSyntaxRequest> marshall(DetectSyntaxRequest detectSyntaxRequest) {<NEW_LINE>if (detectSyntaxRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DetectSyntaxRequest)");<NEW_LINE>}<NEW_LINE>Request<DetectSyntaxRequest> request = new DefaultRequest<DetectSy... | content = snippet.getBytes(UTF8); |
114,136 | public AwsElasticsearchDomainEncryptionAtRestOptions unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsElasticsearchDomainEncryptionAtRestOptions awsElasticsearchDomainEncryptionAtRestOptions = new AwsElasticsearchDomainEncryptionAtRestOptions();<NEW_LINE>int originalDepth = context.getCurrentD... | String currentParentElement = context.getCurrentParentElement(); |
408,339 | public void configure(Parameterization config) {<NEW_LINE>//<NEW_LINE>new ObjectParameter<NumberVectorDistance<? super NumberVector>>(Algorithm.Utils.DISTANCE_FUNCTION_ID, NumberVectorDistance.class, EuclideanDistance.class).grab(config, x -> distance = x);<NEW_LINE>//<NEW_LINE>//<NEW_LINE>new IntParameter(REP_ID, 1)./... | config, x -> rep = x); |
1,725,002 | public CommandFuture<?> migrate(BeaconMigrationRequest migrationRequest) {<NEW_LINE>logger.debug("[migrate][{}] begin", migrationRequest.getClusterName());<NEW_LINE>SequenceCommandChain migrateSequenceCmd = new SequenceCommandChain();<NEW_LINE>migrateSequenceCmd.add(new MigrationPreCheckCmd(migrationRequest, checker, c... | (migrationRequest, migrationEventDao, migrationEventManager)); |
1,634,398 | private int doStartService(Context context, Intent intent) {<NEW_LINE>// It seems that startService with intent without ClassName can fail due to a framework bug<NEW_LINE>// See: http://b/19873307 and http://b/24065801 for GCM<NEW_LINE>String className = resolveServiceClassName(context, intent);<NEW_LINE>if (className ... | context.getPackageName(), className); |
979,564 | public com.squareup.okhttp.Call orderCancelAllAsync(String symbol, String filter, String text, final ApiCallback<List<Order>> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequestListener progressRequestListener = null;<NEW_L... | executeAsync(call, localVarReturnType, callback); |
529,134 | private Queue<String> collect(Node node, StringBuilder prefix) {<NEW_LINE>Queue<String> queue = new Queue<>();<NEW_LINE>Stack<NodeWithInformation> stack = new Stack<>();<NEW_LINE>stack.push(new NodeWithInformation(node<MASK><NEW_LINE>while (!stack.isEmpty()) {<NEW_LINE>NodeWithInformation currentNodeWithInformation = s... | , new StringBuilder(prefix))); |
1,741,869 | protected Clustering<Model> buildResult(final DBIDs ids, int clusterid) {<NEW_LINE>FiniteProgress pprog = LOG.isVerbose() ? new FiniteProgress("Building final result", ids.size(), LOG) : null;<NEW_LINE>ModifiableDBIDs[] clusters = new ModifiableDBIDs[clusterid];<NEW_LINE>ModifiableDBIDs noise = DBIDUtil.newArray();<NEW... | (result).setLongName("DBSCAN Clustering"); |
1,802,479 | private Mono<Response<Flux<ByteBuffer>>> resetWithResponseAsync(String resourceGroupName, String virtualNetworkGatewayName, String gatewayVip, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and... | getSubscriptionId(), accept, context); |
652,075 | private void processChildMouseEvent(MouseEvent e) {<NEW_LINE>boolean isIn = contains(e.getX(), e.getY());<NEW_LINE>boolean isPopupSide = e.getX<MASK><NEW_LINE>switch(e.getID()) {<NEW_LINE>case MouseEvent.MOUSE_ENTERED:<NEW_LINE>if (!wasIn) {<NEW_LINE>button.processEventImpl(fromEvent((MouseEvent) e, button, MouseEvent.... | () >= getWidth() - POPUP_EXTENT; |
390,092 | public Pair<INDArray, MaskState> feedForwardMaskArray(INDArray maskArray, MaskState currentMaskState, int minibatchSize) {<NEW_LINE>// Assume mask array is 1d - a mask array that has been reshaped from [minibatch,timeSeriesLength] to [minibatch*timeSeriesLength, 1]<NEW_LINE>if (maskArray == null) {<NEW_LINE>return new ... | (maskArray, minibatchSize), currentMaskState); |
618,966 | public boolean doConnectionVendorPropertyReset(Connection connImpl, Map<String, Object> props) throws SQLException {<NEW_LINE>try {<NEW_LINE>if (Autosave == null)<NEW_LINE>Autosave = WSManagedConnectionFactoryImpl.priv.loadClass(mcf.jdbcDriverLoader, "org.postgresql.jdbc.AutoSave");<NEW_LINE>Class<?> PGConnection = con... | debug(tc, "Resetting PGConnection vendor-specific properties to defaults: " + props); |
562,804 | public static void renamePartitionTableMeta(Connection metaDbConn, String schemaName, String logicalTableName, String newLogicalTableName, ExecutionContext executionContext) {<NEW_LINE>String tableListDataId = MetaDbDataIdBuilder.getTableListDataId(schemaName);<NEW_LINE>String tableDataId = MetaDbDataIdBuilder.getTable... | renameSequenceIfExists(schemaName, logicalTableName, newLogicalTableName); |
1,277,121 | /* @Asynchronous defined on interface class only. */<NEW_LINE>public void testNotInLocalIf_NOasyncOnBean() throws Exception {<NEW_LINE>// Names of interface, application, module, and bean used in the test for lookup.<NEW_LINE>String Interface = AsyncNotInLocalIf.class.getName();<NEW_LINE>String Application = "AsyncNotI... | CLASS_NAME, "testNotInLocalIf_NOasyncOnBean", "--> Caught Exception:", e); |
552,101 | public int read(byte[] out, int off, int len) throws IOException {<NEW_LINE>int nRead = 0;<NEW_LINE>if (buffered != null) {<NEW_LINE>int avail = buffered.length - pos;<NEW_LINE>if (avail != 0) {<NEW_LINE>int k = Math.min(len, avail);<NEW_LINE>int p1 = pos + k;<NEW_LINE>int p2 = off + k;<NEW_LINE>pos = p1;<NEW_LINE>whil... | p2] = buffered[--p1]; |
1,410,531 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "id", "s1totals.v1", "s1totals.v2" };<NEW_LINE>String text = "@name('s0') select id, (select count(*) as v1, sum(id) as v2 from SupportBean_S1#length(3)) as s1totals " + "from SupportBean_S0 s0";<NEW_LINE>env.compileDeploy(text).addL... | new SupportBean_S0(3, "G2")); |
737,961 | public Request<DescribeLogGroupsRequest> marshall(DescribeLogGroupsRequest describeLogGroupsRequest) {<NEW_LINE>if (describeLogGroupsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeLogGroupsRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeLogGroupsRequest> request... | request.setHttpMethod(HttpMethodName.POST); |
622,730 | public static void resizeHeap(int newHeapSize) {<NEW_LINE>if (newHeapSize <= heapSize) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int newStorageSize = calculateStorageSize(newHeapSize);<NEW_LINE>int newRegionsCount = calculateRegionsCount(newHeapSize, regionSize);<NEW_LINE>int newRegionsSize = calculateRegionsSize(newRegio... | moveMemoryBlock(cardTable, newCardTable, regionsCount); |
1,853,689 | private static void reorderAndFilterChildOperators(List<BaseFilterOperator> filterOperators, @Nullable Map<String, String> debugOptions) {<NEW_LINE>filterOperators.sort(new Comparator<BaseFilterOperator>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(BaseFilterOperator o1, BaseFilterOperator o2) {<NEW_LIN... | ScanBasedFilterOperator) filterOperator, 5, debugOptions); |
965,799 | static boolean insert_door_ok(ExpansionRoom p_room_1, ExpansionRoom p_room_2, TileShape p_door_shape) {<NEW_LINE>if (p_room_1.door_exists(p_room_2)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (p_room_1 instanceof ObstacleExpansionRoom && p_room_2 instanceof ObstacleExpansionRoom) {<NEW_LINE>Item first_item = ((Obs... | curr_corner = p_door_shape.corner(i); |
1,117,022 | public // }<NEW_LINE>Object construct(Object reference, JSFunction function, Object... args) {<NEW_LINE>if (!function.isConstructor()) {<NEW_LINE>throw new ThrowException<MASK><NEW_LINE>}<NEW_LINE>Object ctorName = function.get(this, "name");<NEW_LINE>if (ctorName == Types.UNDEFINED) {<NEW_LINE>if (reference instanceof... | (this, createTypeError("not a constructor")); |
1,090,134 | public static ItemStack fillItem(Level world, int requiredAmount, ItemStack stack, FluidStack availableFluid) {<NEW_LINE>FluidStack toFill = availableFluid.copy();<NEW_LINE>toFill.setAmount(requiredAmount);<NEW_LINE>wrapper.setItem(0, stack);<NEW_LINE>FillingRecipe fillingRecipe = SequencedAssemblyRecipe.getRecipe(worl... | EMPTY : results.get(0); |
1,168,416 | private ImportResults doSkosImport(String format, String url, String rdfFragment, Map<String, Object> props) throws RDFImportException {<NEW_LINE>SkosImporter skosImporter = null;<NEW_LINE>RDFParserConfig conf = null;<NEW_LINE>RDFFormat rdfFormat = null;<NEW_LINE>ImportResults importResults = new ImportResults();<NEW_L... | importResults.setTriplesParsed(skosImporter.totalTriplesParsed); |
227,091 | private Mono<Response<Void>> patchWithResponseAsync(String vaultName, String resourceGroupName, BackupResourceConfigResourceInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,006,507 | public void changeNumReplicas(final String tableName) throws Exception {<NEW_LINE>// Get the number of replicas in the tableconfig.<NEW_LINE>final String offlineTableName = TableNameBuilder.OFFLINE.tableNameWithType(tableName);<NEW_LINE>final TableConfig offlineTableConfig = ZKMetadataProvider.getOfflineTableConfig(_pr... | newIdealState = updateIdealState(currentIdealState, newNumReplicas); |
127,240 | public void init() {<NEW_LINE>if (currentStatus == LifecycleStatus.NONE) {<NEW_LINE>currentStatus = changedStatus(<MASK><NEW_LINE>try {<NEW_LINE>instance.init();<NEW_LINE>currentStatus = changedStatus(instance, currentStatus, LifecycleStatus.STOPPED);<NEW_LINE>} catch (Throwable e) {<NEW_LINE>currentStatus = changedSta... | instance, currentStatus, LifecycleStatus.INITIALIZING); |
1,207,806 | public void build(VBox box) {<NEW_LINE>LogArea logArea = logArea().withDecorations(box(BoxType.DOUBLE, "Log")).withPreferredSize(box.getContentSize().withRelativeHeight(-1)).build();<NEW_LINE>logArea.<MASK><NEW_LINE>logArea.addParagraph("This is a log row with a typing effect", false, 200);<NEW_LINE>logArea.addNewRows(... | addParagraph("This is a simple log row", false, 0); |
137,832 | public ImportResult importItem(UUID jobId, IdempotentImportExecutor idempotentImportExecutor, TokenAuthData authData, ContactsModelWrapper wrapper) {<NEW_LINE>JCardReader reader = new JCardReader(wrapper.getVCards());<NEW_LINE>try {<NEW_LINE>List<VCard> cards = reader.readAll();<NEW_LINE>List<String> <MASK><NEW_LINE>in... | problems = new ArrayList<>(); |
1,142,477 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode sourceOperand = instruction.getOperands().get(1).getRootNode().getChildren().get(0);<NEW_LINE>final String sourceRegister = (sourceOperand.g... | 31), bt, "N")); |
500,464 | final DeletePackagingGroupResult executeDeletePackagingGroup(DeletePackagingGroupRequest deletePackagingGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePackagingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,218,462 | public IntermediateLayer constructIntermediateLayer(long queryId, UDTFPlan udtfPlan, RawQueryInputLayer rawTimeSeriesInputLayer, Map<Expression, IntermediateLayer> expressionIntermediateLayerMap, Map<Expression, TSDataType> expressionDataTypeMap, LayerMemoryAssigner memoryAssigner) throws QueryProcessException, IOExcep... | getReaderIndexByExpressionName(toString()))); |
725,558 | private static String formatDocumentation(String input) {<NEW_LINE>StringBuilder builder = new <MASK><NEW_LINE>String[] paragraphs = PARAGRAPH.split(input);<NEW_LINE>for (String paragraph : paragraphs) {<NEW_LINE>if (builder.length() != 0) {<NEW_LINE>builder.append("\n\n");<NEW_LINE>}<NEW_LINE>Matcher matcher = WHITESP... | StringBuilder(input.length()); |
842,959 | private JSONObject decode17(ByteBuffer buf) {<NEW_LINE>JSONObject m = new JSONObject();<NEW_LINE>while (buf.position() < buf.array().length) {<NEW_LINE>long tl = uint32(buf);<NEW_LINE>int t = (int) (tl >>> 3);<NEW_LINE>switch(t) {<NEW_LINE>case 1:<NEW_LINE>m.put<MASK><NEW_LINE>break;<NEW_LINE>case 2:<NEW_LINE>m.put("AA... | ("AAA311", uint32(buf)); |
936,641 | public static DescribeContactsResponse unmarshall(DescribeContactsResponse describeContactsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeContactsResponse.setRequestId(_ctx.stringValue("DescribeContactsResponse.RequestId"));<NEW_LINE>PageBean pageBean = new PageBean();<NEW_LINE>pageBean.setTotal(_ctx.longValue(... | = new ArrayList<Contacts>(); |
595,236 | public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>binding = DataBindingUtil.inflate(inflater, R.layout.event_create_layout, container, false);<NEW_LINE>validator = new Validator(binding.form);<NEW_LINE>createEventViewModel = ViewModelProvide... | ((AppCompatActivity) getActivity()); |
1,579,761 | protected <S extends StylingString> S format(Widget widget, Object element, S string) {<NEW_LINE>if (element instanceof Group) {<NEW_LINE>Group group = (Group) element;<NEW_LINE>string.append(trimGroupString(group.name), string.defaultStyle());<NEW_LINE>string.append(" " + group.group.getItemsCount(), string.structureS... | ), string.errorStyle()); |
1,550,857 | public ClusterStateChangeReason unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ClusterStateChangeReason clusterStateChangeReason = new ClusterStateChangeReason();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | class).unmarshall(context)); |
940,013 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>rootView = inflater.inflate(R.<MASK><NEW_LINE>mainActivity = (MainActivity) getActivity();<NEW_LINE>accentColor = mainActivity.getAccent();<NEW_LINE>if (mainActivity.getAppTheme().equals(AppTheme.DARK) || mainAc... | layout.processparent, container, false); |
1,124,588 | private static CdmEntityAttributeDefinition CreateEntityAttributeForRelationshipBetweenTwoEntities(final CdmCorpusDefinition cdmCorpus, final String associatedEntityName, final String foreignKeyName, final String attributeExplanation) {<NEW_LINE>// Define a relationship by creating an entity attribute<NEW_LINE>CdmEntit... | cdmCorpus.makeObject(CdmObjectType.AttributeResolutionGuidanceDef); |
1,615,573 | public Request<GetSegmentRequest> marshall(GetSegmentRequest getSegmentRequest) {<NEW_LINE>if (getSegmentRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetSegmentRequest)");<NEW_LINE>}<NEW_LINE>Request<GetSegmentRequest> request = new DefaultRequest<MASK><NEW_LINE>reque... | <GetSegmentRequest>(getSegmentRequest, "AmazonPinpoint"); |
1,758,516 | public static void main(final String[] args) throws IOException {<NEW_LINE>final String fileZip = "src/main/resources/unzipTest/compressed.zip";<NEW_LINE>final File destDir = new File("src/main/resources/unzipTest");<NEW_LINE>final byte[] buffer = new byte[1024];<NEW_LINE>final ZipInputStream zis = new ZipInputStream(n... | throw new IOException("Failed to create directory " + newFile); |
1,246,338 | final UpdateResponseHeadersPolicyResult executeUpdateResponseHeadersPolicy(UpdateResponseHeadersPolicyRequest updateResponseHeadersPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResponseHeadersPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
284,058 | // createAccounting<NEW_LINE>private boolean createCalendar(Timestamp startDate, int historyYears) {<NEW_LINE>m_calendar = new MCalendar(m_client);<NEW_LINE>if (!m_calendar.save()) {<NEW_LINE>String err = "Calendar NOT inserted";<NEW_LINE>log.log(Level.SEVERE, err);<NEW_LINE>m_info.append(err);<NEW_LINE>m_trx.rollback(... | add(Calendar.YEAR, 1); |
355,042 | // TODO: sub file cache<NEW_LINE>public static Output provideOutput(OpenDocument document, TranslationSettings settings, String cachePrefix, String cacheSuffix) throws IOException {<NEW_LINE>Output output = new Output();<NEW_LINE><MASK><NEW_LINE>if (!settings.isSplitPages() || (document instanceof OpenDocumentText)) {<... | FileCache cache = settings.getCache(); |
1,146,173 | public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@name('s0') select p0.n0 as a, p1[0].n0 as b, p1[1].n0 as c, p0 as d, p1 as e from MyOAWithAMap");<NEW_LINE>env.addListener("s0");<NEW_LINE>Map<String, Object> n0Bean1 = makeMap(new Object[][] { { "n0", 1 } });<NEW_LINE>Map<String, Object> n0Bean2... | , eventType.getPropertyType("c")); |
975,006 | private static void tryMT(RegressionEnvironment env, int numSeconds) throws InterruptedException {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreateVariable = "@public create table vartotal (topgroup int primary key, subgroup int primary key, thecnt count(*))";<NEW_LINE>env.compileDeploy(ep... | = new ReadRunnable(env, listener); |
1,549,759 | protected List findByLayoutId(String layoutId, int begin, int end, OrderByComparator obc) 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 PortletPreferences IN CLASS com.liferay.porta... | ScrollableResults sr = q.scroll(); |
1,782,910 | protected Parse buildCells(Object row) {<NEW_LINE>if (row == null) {<NEW_LINE>Parse nil = new Parse(<MASK><NEW_LINE>nil.addToTag(" colspan=" + columnBindings.length);<NEW_LINE>return nil;<NEW_LINE>}<NEW_LINE>Parse root = new Parse(null, null, null, null);<NEW_LINE>Parse next = root;<NEW_LINE>for (Binding columnBinding ... | "td", "null", null, null); |
1,606,889 | public void execute(final String sql, final List<Object> parameters, final ConnectionInformation connectionInformation) {<NEW_LINE>if (check()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HmilyStatement statement;<NEW_LINE>try {<NEW_LINE>statement = HmilySqlParserEngineFactory.newInstance().parser(sql, <MASK><NEW_LINE>log.d... | DatabaseTypes.INSTANCE.getDatabaseType()); |
945,213 | public void run() {<NEW_LINE>TcpProxy <MASK><NEW_LINE>MapPack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("class", className);<NEW_LINE>p = (MapPack) tcp.getSingle(RequestCmd.OBJECT_CLASS_DESC, param);<NEW_LINE>} catch (Exception e) {<NEW_L... | tcp = TcpProxy.getTcpProxy(serverId); |
188,663 | private void matchUp() throws ContradictionException {<NEW_LINE><MASK><NEW_LINE>int y, x = SORTMIN[i];<NEW_LINE>for (y = 0; y < n; y++) {<NEW_LINE>while (i < n && !lexLt(YUB[y], XLB[x], k + 1)) {<NEW_LINE>CHUNK[x] = y;<NEW_LINE>i++;<NEW_LINE>if (i < n) {<NEW_LINE>x = SORTMIN[i];<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (i == ... | int e = 0, i = 0; |
1,814,501 | public void xor(final RoaringBitmap x2) {<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>int length1 = highLowContainer.size();<NEW_LINE>final int length2 = x2.highLowContainer.size();<NEW_LINE>main: if (pos1 < length1 && pos2 < length2) {<NEW_LINE>char s1 = highLowContainer.getKeyAtIndex(pos1);<NEW_LINE>char s2 = x2.highLo... | x2.highLowContainer.getKeyAtIndex(pos2); |
785,836 | public void marshall(ListRecommendedIntentsRequest listRecommendedIntentsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listRecommendedIntentsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marsha... | listRecommendedIntentsRequest.getLocaleId(), LOCALEID_BINDING); |
1,426,198 | public AviatorObject call(Map<String, Object> env, AviatorObject arg1) {<NEW_LINE>switch(arg1.getAviatorType()) {<NEW_LINE>case Boolean:<NEW_LINE>return new AviatorDouble(arg1.booleanValue(env) ? 1 : 0);<NEW_LINE>case JavaType:<NEW_LINE>Object obj = arg1.getValue(env);<NEW_LINE>if (obj instanceof Number) {<NEW_LINE>ret... | arg1.getValue(env))); |
699,168 | public void run(CompilationController controller) throws Exception {<NEW_LINE>Elements elems = controller.getElements();<NEW_LINE>TypeElement appletElement = elems.getTypeElement("java.applet.Applet");<NEW_LINE>ElementHandle<TypeElement> appletHandle = ElementHandle.create(appletElement);<NEW_LINE>TypeElement jappletEl... | jappletHandle = ElementHandle.create(jappletElement); |
1,548,031 | public Description matchCompilationUnit(CompilationUnitTree tree, VisitorState state) {<NEW_LINE>ImmutableChecker immutableChecker = new ImmutableChecker(ImmutableSet.of(javax.annotation.concurrent.Immutable.class.getName(), com.google.errorprone.annotations.Immutable<MASK><NEW_LINE>Optional<? extends ImportTree> immut... | .class.getName())); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.