idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,209,438
public static List<List<Poker>> distributePoker() {<NEW_LINE>Collections.shuffle(basePokers);<NEW_LINE>List<List<Poker>> pokersList = new ArrayList<List<Poker>>();<NEW_LINE>List<Poker> pokers1 = new ArrayList<>(17);<NEW_LINE>pokers1.addAll(basePokers.subList(0, 17));<NEW_LINE>List<Poker> pokers2 = new ArrayList<>(17);<...
= new ArrayList<>(17);
1,006,819
public void loadDocument() {<NEW_LINE>// Only trigger the load process if constructing or file updated<NEW_LINE>final long modTime = _document.lastModified();<NEW_LINE>final boolean isStarted = getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED);<NEW_LINE>if (!isStarted || modTime > _loadModTime) {<NEW_...
], content.length());
609,162
public CellSet execute() throws Exception {<NEW_LINE>try {<NEW_LINE>if (statement != null) {<NEW_LINE>statement.close();<NEW_LINE>statement = null;<NEW_LINE>}<NEW_LINE>if (scenario != null && query.getDimension(SCENARIO) != null) {<NEW_LINE>QueryDimension dimension = query.getDimension(SCENARIO);<NEW_LINE>moveDimension...
OlapStatement stmt = connection.createStatement();
1,271,110
public static void partialReduceDoubleMultCarrierValue(double[] inputArray, double[] outputArray, int gidx, double value) {<NEW_LINE>int localIdx = PTXIntrinsics.get_local_id(0);<NEW_LINE>int localGroupSize = PTXIntrinsics.get_local_size(0);<NEW_LINE>int groupID = PTXIntrinsics.get_group_id(0);<NEW_LINE>double[] localA...
+ 1] = localArray[0];
795,110
public void exitRmsipnh_literal(Rmsipnh_literalContext ctx) {<NEW_LINE>// Incompatible with:<NEW_LINE>// - peer-address (TODO)<NEW_LINE>// - redist-unchanged (TODO)<NEW_LINE>// - unchanged<NEW_LINE>ImmutableList.Builder<Ip> nextHops = ImmutableList.builder();<NEW_LINE>RouteMapSetIpNextHop old = _currentRouteMapEntry.ge...
(nextHops.build()));
1,011,284
public UpdateFrameworkResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateFrameworkResult updateFrameworkResult = new UpdateFrameworkResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
int originalDepth = context.getCurrentDepth();
1,843,482
public Map<String, List<ImageOwnership>> handle(final ResultSet rs) throws SQLException {<NEW_LINE>if (!rs.next()) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>final Map<String, List<ImageOwnership>> imageTypeOwnershipMap = new HashMap<>();<NEW_LINE>do {<NEW_LINE>final String imageTypeName = rs.getStri...
createdOn = rs.getString("created_on");
1,622,575
final ListClassificationJobsResult executeListClassificationJobs(ListClassificationJobsRequest listClassificationJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listClassificationJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Macie2");
1,599,594
void lookupContentSupport(final long file_size, final byte networks, final RelatedContentLookupListener listener) throws ContentException {<NEW_LINE>if (!enabled) {<NEW_LINE>throw (new ContentException("rcm is disabled"));<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final byte[] key_bytes = ("az:rcm:size:assoc:" + file_size).ge...
new ContentException("lookup failed", e));
953,921
private void decodeVariableInformation(BufferedReader reader) throws IOException {<NEW_LINE>if (reader == null) {<NEW_LINE>throw new IllegalArgumentException("decodeVariableInformation: reader == null!");<NEW_LINE>}<NEW_LINE>// step 1: variable type<NEW_LINE>int variableType = parseNumericField(reader);<NEW_LINE>variab...
sb.append("." + formatDecimalPointPosition);
971,817
private void parserChildTable(SchemaInfo schemaInfo, final RouteResultset rrs, MySqlInsertStatement insertStmt, final ShardingService service, boolean isExplain) throws SQLNonTransientException {<NEW_LINE>final <MASK><NEW_LINE>String tableName = schemaInfo.getTable();<NEW_LINE>final ChildTableConfig tc = (ChildTableCon...
SchemaConfig schema = schemaInfo.getSchemaConfig();
186,938
// A graph is considered sparse if its number of edges is within a small constant factor of V<NEW_LINE>public List<EdgeWeightedGraph> randomSparseEdgeWeightedGraphsGenerator(int numberOfGraphs, boolean uniformWeightDistribution) {<NEW_LINE>if (numberOfGraphs < 0) {<NEW_LINE>throw new IllegalArgumentException("Number of...
vertices = graphVerticesCount[graph % 4];
267,680
protected void saveState() {<NEW_LINE>super.saveState();<NEW_LINE><MASK><NEW_LINE>if (context == null || bitmap == null || parent.getSurface().getComponent().isService())<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>// Saving current width and height to avoid restoring the screen after a screen rotation<NEW_LINE>restoreWid...
Context context = parent.getContext();
896,685
public static DatabaseConfiguration deserialize(final Path file) {<NEW_LINE>try (final FileReader fileReader = new FileReader(file.toAbsolutePath().resolve(DatabasePaths.CONFIGBINARY.getFile()).toFile());<NEW_LINE>final JsonReader jsonReader = new JsonReader(fileReader)) {<NEW_LINE>jsonReader.beginObject();<NEW_LINE>fi...
String fileName = jsonReader.nextName();
1,667,345
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>query_cfg_result result = new query_cfg_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER.error...
.thrift.protocol.TMessageType.EXCEPTION;
1,754,969
private void displayEmailMsg(MesssageArtifactData artifactData) {<NEW_LINE>enableCommonFields();<NEW_LINE>directionText.setEnabled(false);<NEW_LINE>ccLabel.setEnabled(true);<NEW_LINE>this.fromText.setText(artifactData.getAttributeDisplayString(TSK_EMAIL_FROM));<NEW_LINE>this.fromText.setToolTipText(artifactData.getAttr...
(artifactData.getAttributeDisplayString(TSK_EMAIL_CC));
1,567,676
private void hostSuspendedTablet(TabletLists tLists, TabletLocationState tls, TServerInstance location, TableConfiguration tableConf) {<NEW_LINE>if (manager.getSteadyTime() - tls.suspend.suspensionTime < tableConf.getTimeInMillis(Property.TABLE_SUSPEND_DURATION)) {<NEW_LINE>// Tablet is suspended. See if its tablet ser...
put(tls.extent, location);
1,676,146
private List<String> extractFields(String decisionDefinitionId) {<NEW_LINE>List<String> fields <MASK><NEW_LINE>ProcessEngine processEngine = Beans.get(ProcessEngineService.class).getEngine();<NEW_LINE>DecisionDefinition decisionDefinition = processEngine.getRepositoryService().createDecisionDefinitionQuery().decisionDe...
= new ArrayList<String>();
660,277
// pack an int32/64/128 value into ByteBuffer in little endian<NEW_LINE>ByteBuffer packDecimal() {<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(type.getTypeSize());<NEW_LINE>buffer.order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>int scale = ((ScalarType) type).getScalarScale();<NEW_LINE>BigDecimal scaledValue = value.mult...
.put(bytes[i]);
1,080,387
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String configStoreName, 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."));<NEW_LIN...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
636,995
private PublisherAgreementResponse parseAgreementResponse(ResponseEntity<String> response) {<NEW_LINE>var json = response.getBody();<NEW_LINE>try {<NEW_LINE>if (json.startsWith("[\"")) {<NEW_LINE>var error = objectMapper.readValue(json, TYPE_LIST_STRING);<NEW_LINE>logger.error("Publisher agreement request failed:\n" + ...
readValue(json, PublisherAgreementResponse.class);
736,622
public void bindData(TagsBean target, ViewHolder<RecyMutedTagBinding> bindView, int position) {<NEW_LINE>if (TextUtils.isEmpty(allItems.get(position).getName())) {<NEW_LINE>bindView.baseBind.starSize.<MASK><NEW_LINE>} else {<NEW_LINE>if (!TextUtils.isEmpty(allItems.get(position).getTranslated_name())) {<NEW_LINE>bindVi...
setText(R.string.string_155);
1,430,081
protected void run(StructuredGraph graph) {<NEW_LINE>// Prevent Pragma Unroll for non-fpga devices<NEW_LINE>if (graph.hasLoops() && (deviceContext.isPlatformFPGA())) {<NEW_LINE>boolean peeled;<NEW_LINE>do {<NEW_LINE>peeled = false;<NEW_LINE>final <MASK><NEW_LINE>dataCounted.detectedCountedLoops();<NEW_LINE>for (LoopEx ...
LoopsData dataCounted = new TornadoLoopsData(graph);
739,057
private CompletableFuture<Void> generateSnapshotIfRequired() {<NEW_LINE>// Generate a snapshot if no snapshot was saved before or when threshold for either time or number batches is reached.<NEW_LINE>boolean shouldGenerate = true;<NEW_LINE>if (lastSavedSystemSnapshot.get() == null) {<NEW_LINE>log.debug("SystemJournal[{...
error("SystemJournal[{}] Error while creating snapshot", containerId, e);
1,399,390
private void persistFields() {<NEW_LINE>String selectedJavaHome = null;<NEW_LINE>JavaPlatform selectedPlatform = isJavaPlatformDefault() ? null : javaPlatform();<NEW_LINE>if (selectedPlatform != null) {<NEW_LINE>Iterator<FileObject> platformIterator = selectedPlatform.getInstallFolders().iterator();<NEW_LINE>if (platfo...
getAddressValue().toString());
182,488
static Element show(Element element, String color) {<NEW_LINE>if (element != null) {<NEW_LINE>if (highlights == null) {<NEW_LINE>highlights = new HashSet<>();<NEW_LINE>}<NEW_LINE>Element highlight = DOM.createDiv();<NEW_LINE>Style style = highlight.getStyle();<NEW_LINE>style.setTop(element.getAbsoluteTop(), Unit.PX);<N...
(DEFAULT_OPACITY * 100) + ")");
1,211,110
public UnprocessedAccount unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UnprocessedAccount unprocessedAccount = new UnprocessedAccount();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
123,008
void uiDestroy() {<NEW_LINE>for (Image image : icon_list) {<NEW_LINE>image.dispose();<NEW_LINE>}<NEW_LINE>icon_list.clear();<NEW_LINE>SubscriptionManager subs_man = SubscriptionManagerFactory.getSingleton();<NEW_LINE>if (subs_man != null) {<NEW_LINE>if (subman_listener_delayed != null) {<NEW_LINE>subs_man.removeListene...
getPluginconfig().removeListener(pluginConfigListener);
928,568
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE><MASK><NEW_LINE>choice.setMessage("Choose mode");<NEW_LINE>choice.setChoices(choices);<NEW_LINE>if (!controller.choose(outcome, choice, game)) {<NEW_LINE>r...
Choice choice = new ChoiceImpl(true);
1,241,480
public static RexCall pushPredicateIntoCase(RexCall call) {<NEW_LINE>if (call.getType().getSqlTypeName() != SqlTypeName.BOOLEAN) {<NEW_LINE>return call;<NEW_LINE>}<NEW_LINE>switch(call.getKind()) {<NEW_LINE>case CASE:<NEW_LINE>case AND:<NEW_LINE>case OR:<NEW_LINE>// don't push CASE into CASE!<NEW_LINE>return call;<NEW_...
call.getType(), nodes);
1,709,598
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void resetButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_resetButtonActionPerformed<NEW_LINE>NbPreferences.forModule(VizConfig.class<MASK><NEW_LINE>NbPreferences.forModule(VizConfig.class).remove(VizConfig.NEIGHBOUR_SELECT);...
).remove(VizConfig.HIGHLIGHT);
1,789,936
final ReplicationGroup executeIncreaseReplicaCount(IncreaseReplicaCountRequest increaseReplicaCountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(increaseReplicaCountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,414,933
// Display header<NEW_LINE>private static void header(Comparable[] array) {<NEW_LINE><MASK><NEW_LINE>StdDraw.text(array.length / 2.0, -3, "array[ ]");<NEW_LINE>for (int i = 0; i < array.length; i++) {<NEW_LINE>StdDraw.text(i, -2, String.valueOf(i));<NEW_LINE>}<NEW_LINE>StdDraw.text(-2.50, -2, "i");<NEW_LINE>StdDraw.tex...
StdDraw.setPenColor(StdDraw.BLACK);
624,441
public boolean onNavigationItemSelected(@NonNull MenuItem item) {<NEW_LINE>super.onNavigationItemSelected(item);<NEW_LINE>updateNotificationIndicator(item.getItemId());<NEW_LINE>if (mFactory != null && mFactory.onDrawerItemSelected(item)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>int id = item.getItemId();<NEW_LINE>F...
.getAccounts().size();
1,159,108
final CreateCertificateAuthorityAuditReportResult executeCreateCertificateAuthorityAuditReport(CreateCertificateAuthorityAuditReportRequest createCertificateAuthorityAuditReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCertificateAuthorityAuditReportRequest);<NEW_LINE>AWSReque...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,404,694
public I_C_BP_BankAccount createNewC_BP_BankAccount(final IContextAware contextProvider, final int bpartnerId) {<NEW_LINE>final PaymentString paymentString = getPaymentString();<NEW_LINE>final I_C_BP_BankAccount bpBankAccount = InterfaceWrapperHelper.newInstance(I_C_BP_BankAccount.class, contextProvider);<NEW_LINE>Chec...
bpartnerId > 0, "We assume the bPartnerId to be greater than 0. This={}", this);
248,638
private AmazonS3 buildClient(final S3ClientSettings clientSettings) {<NEW_LINE>final AmazonS3ClientBuilder builder = AmazonS3ClientBuilder.standard();<NEW_LINE>builder.withCredentials<MASK><NEW_LINE>builder.withClientConfiguration(buildConfiguration(clientSettings));<NEW_LINE>final String endpoint = Strings.hasLength(c...
(buildCredentials(LOGGER, clientSettings));
304,860
public static void main(String[] argv) {<NEW_LINE>Scanner input = new Scanner(System.in);<NEW_LINE>System.out.println("Enter the matrix size (Square matrix only): ");<NEW_LINE>int n = input.nextInt();<NEW_LINE>double[][] a = <MASK><NEW_LINE>System.out.println("Enter the elements of matrix: ");<NEW_LINE>for (int i = 0; ...
new double[n][n];
221,288
public void start() throws IOException {<NEW_LINE>logger.info("starting StoreService...");<NEW_LINE>List<Integer> partitionIds = this.metaService.getPartitionsByStoreId(this.storeId);<NEW_LINE>this.idToPartition = new HashMap<>(partitionIds.size());<NEW_LINE>for (int partitionId : partitionIds) {<NEW_LINE>try {<NEW_LIN...
"StoreService started. storeId [" + this.storeId + "]");
253,920
public List<Article> findRelevantListByArticleId(long articleId, String status, Integer count) {<NEW_LINE>List<ArticleCategory> tags = categoryService.findListByArticleId(articleId, ArticleCategory.TYPE_TAG);<NEW_LINE>if (tags == null || tags.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<Long> tagIds = ta...
).findListByColumns(columns, count);
77,153
private void readAllFields(PageCursor cursor) throws IOException {<NEW_LINE>do {<NEW_LINE>creationTimeField = getRecordValue(cursor, Position.TIME);<NEW_LINE>randomNumberField = getRecordValue(cursor, Position.RANDOM_NUMBER);<NEW_LINE>versionField = getRecordValue(cursor, Position.LOG_VERSION);<NEW_LINE>long lastCommit...
getRecordValue(cursor, Position.LAST_CLOSED_TRANSACTION_LOG_BYTE_OFFSET);
1,129,611
protected Object valueOf(Object value) {<NEW_LINE>Class type = definition.getDataType();<NEW_LINE>if (value == null) {<NEW_LINE>return value;<NEW_LINE>} else if (type.isAssignableFrom(value.getClass())) {<NEW_LINE>return value;<NEW_LINE>} else if (value instanceof String) {<NEW_LINE>if (type.equals(Boolean.class)) {<NE...
new BigDecimal((String) value);
1,757,961
Configuration toConfigurationNode(String subnetId, ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) {<NEW_LINE>Configuration cfgNode = Utils.newAwsConfiguration(getNodeId(subnetId, _id), "aws", DeviceModel.AWS_VPC_ENDPOINT_INTERFACE);<NEW_LINE>cfgNode.setHumanName<MASK><NEW_LINE>cfgNode.getVen...
(_tags.get(TAG_NAME));
890,893
public void update(NQueensBoard board) {<NEW_LINE>int size = board.getSize();<NEW_LINE>if (queens.length != size * size) {<NEW_LINE>gridPane.getChildren().clear();<NEW_LINE>gridPane.getColumnConstraints().clear();<NEW_LINE>gridPane.getRowConstraints().clear();<NEW_LINE>queens = new Polygon[size * size];<NEW_LINE>RowCon...
getRowConstraints().add(c1);
1,249,022
public void saveGraph(DirectedGraph graph, String destFile) throws IOException {<NEW_LINE>if (graph == null)<NEW_LINE>throw new NullPointerException("Cannot dump null graph");<NEW_LINE>if (destFile == null)<NEW_LINE>throw new NullPointerException("No destination file");<NEW_LINE>logger.debug("Dumping directed graph in ...
getFeatureDefinition().writeBinaryTo(out);
1,670,127
private static Timestamp calculateDateDue(Timestamp DocDate, int FixMonthDay, int FixMonthOffset, int FixMonthCutoff) {<NEW_LINE>GregorianCalendar cal = new GregorianCalendar();<NEW_LINE>cal.setTime(DocDate);<NEW_LINE>cal.set(Calendar.HOUR_OF_DAY, 0);<NEW_LINE>cal.<MASK><NEW_LINE>cal.set(Calendar.SECOND, 0);<NEW_LINE>c...
set(Calendar.MINUTE, 0);
710,702
private static HybridInspectResponse inspectRowsWithHybrid(DlpServiceClient dlpClient, String hybridJobName, List<FieldId> headers, List<Table.Row> rows, HybridFindingDetails hybridFindingDetails) {<NEW_LINE>Table table = Table.newBuilder().addAllHeaders(headers).addAllRows(rows).build();<NEW_LINE>ContentItem tableItem...
setHybridItem(hybridContentItem).build();
462,843
protected void doCommit(TableMetadata base, TableMetadata metadata) {<NEW_LINE>String newMetadataLocation = writeNewMetadata(metadata, currentVersion() + 1);<NEW_LINE>CommitStatus commitStatus = CommitStatus.FAILURE;<NEW_LINE>try {<NEW_LINE>lock(newMetadataLocation);<NEW_LINE>Table glueTable = getGlueTable();<NEW_LINE>...
e, "Cannot commit %s because its Glue table already exists when trying to create one", tableName());
1,566,486
private AWTEvent mapMetaState(@Nonnull AWTEvent e) {<NEW_LINE>if (myWinMetaPressed) {<NEW_LINE>Application app = ApplicationManager.getApplication();<NEW_LINE>boolean weAreNotActive = app == <MASK><NEW_LINE>weAreNotActive |= e instanceof FocusEvent && ((FocusEvent) e).getOppositeComponent() == null;<NEW_LINE>if (weAreN...
null || !app.isActive();
1,479,595
private TableViewer createServerTable(Composite parent) {<NEW_LINE>TableViewer tableViewer = new TableViewer(parent, SWT.SINGLE | SWT.FULL_SELECTION);<NEW_LINE>Table serverTable = tableViewer.getTable();<NEW_LINE>serverTable.setHeaderVisible(true);<NEW_LINE>serverTable.setLinesVisible(true);<NEW_LINE>serverTable.setLay...
new GridData(GridData.FILL_BOTH));
689,889
private void populateTabStrip() {<NEW_LINE>final PagerAdapter adapter = mViewPager.getAdapter();<NEW_LINE>final View.OnClickListener tabClickListener = new TabClickListener();<NEW_LINE>final DisplayMetrics metrics = getResources().getDisplayMetrics();<NEW_LINE>final float fontSize = TypedValue.applyDimension(TypedValue...
int) paint.measureText(str);
1,596,738
private void updateFieldInDb(Field field) throws DotDataException {<NEW_LINE>DotConnect dc = new DotConnect();<NEW_LINE>dc.setSQL(sql.updateField);<NEW_LINE>dc.addParam(field.contentTypeId());<NEW_LINE>dc.addParam(field.name());<NEW_LINE>dc.addParam(field.type().getCanonicalName());<NEW_LINE>dc.addParam(field.relationT...
addParam(field.searchable());
377,740
final CompleteMultipartUploadResult executeCompleteMultipartUpload(CompleteMultipartUploadRequest completeMultipartUploadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(completeMultipartUploadRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
298,196
public void run() {<NEW_LINE>// init remoting server<NEW_LINE>NettyServerConfig serverConfig = new NettyServerConfig();<NEW_LINE>serverConfig.setListenPort(workerConfig.getListenPort());<NEW_LINE>this<MASK><NEW_LINE>this.nettyRemotingServer.registerProcessor(CommandType.TASK_EXECUTE_REQUEST, taskExecuteProcessor);<NEW_...
.nettyRemotingServer = new NettyRemotingServer(serverConfig);
917,397
public void toSrt(Path srtFile) {<NEW_LINE>try (FileOutputStream fos = new FileOutputStream(srtFile.toFile());<NEW_LINE>OutputStreamWriter osw = new OutputStreamWriter(fos, StandardCharsets.UTF_8);<NEW_LINE>PrintWriter writer = new PrintWriter(osw)) {<NEW_LINE>long counter = 1;<NEW_LINE>for (Subtitle title : subtitleLi...
.format(title.end));
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...
endClientExecution(awsRequestMetrics, request, response);
985,528
// re-compute the editor state with the cursor location implied by the passed slide index<NEW_LINE>public static PresentationEditorLocation locationForSlideIndex(int slideIndex, PresentationEditorLocation location, int slideLevel) {<NEW_LINE>// determine the slide level (either the arg, which is explicitly from the use...
slide = slides.get(i);
580,761
public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE>HistoricCaseInstanceEntityManager historicCaseInstanceEntityManager = cmmnEngineConfiguration.getHistoricCaseInstanceEntityManager();<NEW_LINE>HistoricCaseInstanceEntity historicCaseInstanceEntity = getH...
(historicalData, CmmnAsyncHistoryConstants.FIELD_CALLBACK_ID));
329,478
final StopEntitiesDetectionV2JobResult executeStopEntitiesDetectionV2Job(StopEntitiesDetectionV2JobRequest stopEntitiesDetectionV2JobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopEntitiesDetectionV2JobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,446,875
public void propertyChange(PropertyChangeEvent event) {<NEW_LINE>if (event.getPropertyName().equals(PreviewLabel.BACKGROUND_COLOR_PROPERTY_NAME))<NEW_LINE>getViewport().setBackground(data.getColor(isActive ? Theme.FILE_TABLE_BACKGROUND_COLOR : Theme.FILE_TABLE_INACTIVE_BACKGROUND_COLOR));<NEW_LINE>else if (event.getPro...
.FILE_TABLE_BORDER_COLOR : Theme.FILE_TABLE_INACTIVE_BORDER_COLOR));
1,791,824
protected static final QueryMap parseApiRequestQueryParams(String queryString) {<NEW_LINE>QueryMap rval = new QueryMap();<NEW_LINE>if (queryString != null) {<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String[] pairSplit = queryString.split("&");<NEW_LINE>for (String paramPair : pairSplit) {<NEW_LINE>// $NON-NLS-1$...
idx = paramPair.indexOf("=");
1,022,957
private static Geometry readPolygon(ByteBuffer byteBuffer, boolean multitype, GeometryFactory factory) {<NEW_LINE>int partCount = byteBuffer.getInt();<NEW_LINE>if (partCount == 0) {<NEW_LINE>if (multitype) {<NEW_LINE>return factory.createMultiPolygon();<NEW_LINE>}<NEW_LINE>return factory.createPolygon();<NEW_LINE>}<NEW...
+ 1] - startIndexes[i];
815,302
public void run() {<NEW_LINE>EditableProperties ep = null;<NEW_LINE>EditableProperties ep1 = null;<NEW_LINE>try {<NEW_LINE>ep = WSUtils.getEditableProperties(project, AntProjectHelper.PROJECT_PROPERTIES_PATH);<NEW_LINE>ep1 = WSUtils.getEditableProperties(project, AntProjectHelper.PRIVATE_PROPERTIES_PATH);<NEW_LINE>asse...
getDefault().notify(ex);
1,165,180
public RankProfile clone() {<NEW_LINE>try {<NEW_LINE>RankProfile clone = (RankProfile) super.clone();<NEW_LINE>clone.rankSettings = new LinkedHashSet<>(this.rankSettings);<NEW_LINE>// hmm?<NEW_LINE>clone.matchPhaseSettings = this.matchPhaseSettings;<NEW_LINE>clone.summaryFeatures = summaryFeatures != null ? new LinkedH...
>(this.matchFeatures) : null;
18,659
public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName) {<NEW_LINE>if (beanType != null) {<NEW_LINE>if (isReferenceBean(beanDefinition)) {<NEW_LINE>// mark property value as optional<NEW_LINE>List<PropertyValue> propertyValues = beanDefinition<MASK><NEW_LINE>fo...
.getPropertyValues().getPropertyValueList();
1,632,170
public Builder mergeFrom(io.kubernetes.client.proto.Meta.APIVersions other) {<NEW_LINE>if (other == io.kubernetes.client.proto.Meta.APIVersions.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (!other.versions_.isEmpty()) {<NEW_LINE>if (versions_.isEmpty()) {<NEW_LINE>versions_ = other.versions_;<NEW_LINE>bitFie...
this.mergeUnknownFields(other.unknownFields);
773,147
private static void tryAssertionNestedDotMethod(RegressionEnvironment env, boolean grouped, boolean soda, AtomicInteger milestone) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplDeclare = "@public create table varaggNDM (" + (grouped ? "key string primary key, " : "") + "windowSupportBean win...
env, "E1", 30, 0);
917,979
void read(WizardDescriptor settings) {<NEW_LINE>this.wizardDescriptor = settings;<NEW_LINE>String path = null;<NEW_LINE>String projectName = null;<NEW_LINE>// NOI18N<NEW_LINE>File projectLocation = (File) settings.getProperty("projdir");<NEW_LINE>if (projectLocation == null) {<NEW_LINE>projectLocation = ProjectChooser....
this.buildScriptName.setText(buildScriptName);
1,328,139
public void initialize(TemplateWizard wizard) {<NEW_LINE>this.wizard = wizard;<NEW_LINE>// NOI18N<NEW_LINE>selectedText = (String) wizard.getProperty("selectedText");<NEW_LINE>Project project = Templates.getProject(wizard);<NEW_LINE>Sources sources = project.getLookup().lookup(org.netbeans.api.project.Sources.class);<N...
sources.getSourceGroups(WebProjectConstants.TYPE_DOC_ROOT);
67,456
public final void updateView() {<NEW_LINE>this.view.clear();<NEW_LINE>this.view.ensureCapacity(<MASK><NEW_LINE>SearchMode searchMode = SearchMode.NAME;<NEW_LINE>if (AEConfig.instance().getSearchTooltips() != YesNo.NO) {<NEW_LINE>searchMode = SearchMode.NAME_OR_TOOLTIP;<NEW_LINE>}<NEW_LINE>String innerSearch = this.sear...
this.entries.size());
1,095,346
public void visitSignatureAttribute(Clazz clazz, SignatureAttribute signatureAttribute) {<NEW_LINE>try {<NEW_LINE>// Change the referenced classes.<NEW_LINE>updateReferencedClasses(signatureAttribute.referencedClasses);<NEW_LINE>} catch (RuntimeException e) {<NEW_LINE>logger.error("Unexpected error while adapting signa...
error(" Referenced class #{} = {}", index, referencedClass);
1,161,238
public void performOperation(POMModel pomModel) {<NEW_LINE>Build build = pomModel.getProject().getBuild();<NEW_LINE>Plugin felixPlugin = null;<NEW_LINE>if (build != null) {<NEW_LINE>felixPlugin = build.findPluginById(OSGiConstants.GROUPID_FELIX, OSGiConstants.ARTIFACTID_BUNDLE_PLUGIN);<NEW_LINE>} else {<NEW_LINE>build ...
.getFactory().createConfiguration();
1,409,354
protected void updateMovement(Unit unit) {<NEW_LINE><MASK><NEW_LINE>float speed = unit.speed();<NEW_LINE>float xa = Core.input.axis(Binding.move_x);<NEW_LINE>float ya = Core.input.axis(Binding.move_y);<NEW_LINE>boolean boosted = (unit instanceof Mechc && unit.isFlying());<NEW_LINE>movement.set(xa, ya).nor().scl(speed);...
boolean omni = unit.type.omniMovement;
1,495,826
public Permission unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Permission permission = new Permission();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
class).unmarshall(context));
1,420,694
public String bPartnerLocation(final ICalloutField calloutField) {<NEW_LINE>// FIXME !!!<NEW_LINE>// 05291: In case current record is on dataNew phase with Copy option set<NEW_LINE>// then just don't update the Bill fields but let them copy from original record<NEW_LINE>if (calloutField.isRecordCopyingMode()) {<NEW_LIN...
calloutField.getModel(I_C_Order.class);
1,041,639
public InteractionResult use(BlockState state, Level worldIn, BlockPos pos, Player player, InteractionHand handIn, BlockHitResult hit) {<NEW_LINE>if (!player.mayBuild())<NEW_LINE>return InteractionResult.PASS;<NEW_LINE>if (player.isShiftKeyDown())<NEW_LINE>return InteractionResult.PASS;<NEW_LINE>if (!player.getItemInHa...
direction = state.getValue(FACING);
1,292,216
protected Content prepare(@Nonnull Source field, @Nonnull Function<? super String, String> onShow) {<NEW_LINE>Font font = field.getFont();<NEW_LINE>FontMetrics metrics = font == null ? null : field.getFontMetrics(font);<NEW_LINE>int height = metrics == null ? 16 : metrics.getHeight();<NEW_LINE>Dimension size = new Dime...
(area.getText()));
233,815
public static void evaluateProposals(IType type, String prefix, int offset, int length, int relevance, Collection<CompletionProposal> result) throws JavaModelException {<NEW_LINE>if (prefix.length() == 0) {<NEW_LINE>relevance--;<NEW_LINE>}<NEW_LINE>IField[] fields = type.getFields();<NEW_LINE>IMethod[] methods = type.g...
setCompletion(getterName.toCharArray());
1,847,022
public static AbstractFilePickerFragment<FtpFile> newInstance(String startPath, int mode, boolean allowMultiple, boolean allowCreateDir, boolean allowExistingFile, boolean singleClick, String server, int port, String username, String password, String rootDir) {<NEW_LINE>FtpPickerFragment fragment = new FtpPickerFragmen...
args.putString(KEY_FTP_SERVER, server);
1,842,310
Future<Void> cruiseControlApiSecret() {<NEW_LINE>if (cruiseControl != null) {<NEW_LINE>return secretOperator.getAsync(reconciliation.namespace(), CruiseControlResources.apiSecretName(reconciliation.name())).compose(oldSecret -> {<NEW_LINE><MASK><NEW_LINE>if (oldSecret != null) {<NEW_LINE>// The credentials should not c...
Secret newSecret = cruiseControl.generateApiSecret();
203,188
public boolean visit(SuperMethodInvocation node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE>int pos = rewriteOptionalQualifier(node, SuperMethodInvocation.QUALIFIER_PROPERTY, node.getStartPosition());<NEW_LINE>if (node.getAST().apiLevel() >= JLS3_INTE...
getTokenEndOffset(TerminalTokens.TokenNameLPAREN, pos);
849,737
final DeregisterMailDomainResult executeDeregisterMailDomain(DeregisterMailDomainRequest deregisterMailDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deregisterMailDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
999,600
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>ExpressionFactory factory = ExpressionFactory.newInstance();<NEW_LINE>ELContextImpl context = new ELContextImpl(factory);<NEW_LINE>PrintWriter pw = response.getWriter();<NEW_LINE>ELResolver elR...
] { "1010110", 2 }));
264,448
public static void main(String[] args) {<NEW_LINE>Exercise26_3Collinearity exercise26_3Collinearity = new Exercise26_3Collinearity();<NEW_LINE>Point2D[] points = new Point2D[6];<NEW_LINE>for (int i = 0; i < points.length; i++) {<NEW_LINE>Point2D point = new Point2D(i, i + 1.5);<NEW_LINE>points[i] = point;<NEW_LINE>}<NE...
println("Number of triples: " + numberOfTriples3 + " Expected: 4");
1,374,205
private List<Embedding> predicates(Snapshot snapshot, Result parsed) {<NEW_LINE>List<Embedding> result = new LinkedList<>();<NEW_LINE>result.add(snapshot.create(GLOBAL_PATTERN_PACKAGE, "text/x-java"));<NEW_LINE>if (parsed.importsBlock != null) {<NEW_LINE>result.add(snapshot.create(parsed.importsBlock[0], parsed.imports...
.create("\n", "text/x-java"));
951,405
protected void printObject(Object o) {<NEW_LINE>if (o == null) {<NEW_LINE>commandOutput.print("null");<NEW_LINE>} else if (o instanceof String) {<NEW_LINE>commandOutput.print('"');<NEW_LINE>commandOutput.print(o);<NEW_LINE>commandOutput.print('"');<NEW_LINE>} else if (o instanceof Date) {<NEW_LINE>DateFormat df = DateF...
(m.get(key));
252,721
private String buildNumericPredicateQuery(QueryContext ctx, String field, NumericFilterPredicate numericFilterPredicate) {<NEW_LINE>String paramName = getNextParameterName(field);<NEW_LINE>ctx.addDoubleParameter(paramName, numericFilterPredicate.getValue().getValue());<NEW_LINE>String numericOperationQuery = "";<NEW_LI...
format("(%s is not null and %s)", field, numericOperationQuery);
238,371
public void emit(ServiceEmitter emitter) {<NEW_LINE>FileSystem[] fss = null;<NEW_LINE>try {<NEW_LINE>fss = sigar.getFileSystemList();<NEW_LINE>} catch (SigarException e) {<NEW_LINE>log.error(e, "Failed to get FileSystem list");<NEW_LINE>}<NEW_LINE>if (fss != null) {<NEW_LINE>log.debug("Found FileSystem list: [%s]", Joi...
fsu = sigar.getFileSystemUsage(name);
196,160
private void connect(int attempt, CompletableFuture<SessionClient> future) {<NEW_LINE>if (attempt > MAX_ATTEMPTS) {<NEW_LINE>future.completeExceptionally<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>primaryElection.getTerm().whenCompleteAsync((term, error) -> {<NEW_LINE>if (error == null) {<NEW_LINE>if (term.primary() ==...
(new PrimitiveException.Unavailable());
1,794,841
public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {<NEW_LINE>StringBuilder stringBuilder = new StringBuilder("(");<NEW_LINE>for (TypeDescription parameterType : parameterTypes) {<NEW_LINE>stringBuilder.append(parameterType.getDescriptor());<NEW_LINE>}<NEW_LINE>String methodDes...
getDescriptor()).toString();
1,675,704
public void onPreviewNativeEvent(Event.NativePreviewEvent event) {<NEW_LINE>NativeEvent nativeEvent = event.getNativeEvent();<NEW_LINE>EventTarget eventTarget = nativeEvent.getEventTarget();<NEW_LINE>if (// chrome fix<NEW_LINE>!Element.is(eventTarget)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Element target = (Element) E...
getChoiceButton().setFocus(false);
48,933
public void marshall(WorkspaceDescription workspaceDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (workspaceDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(workspaceDescription.get...
workspaceDescription.getAuthentication(), AUTHENTICATION_BINDING);
1,557,094
public SendMessageResult sendSyncMessage(SignalServiceSyncMessage message) {<NEW_LINE>var messageSender = dependencies.getMessageSender();<NEW_LINE>try {<NEW_LINE>return messageSender.sendSyncMessage(message, context.getUnidentifiedAccessHelper().getAccessForSync());<NEW_LINE>} catch (UnregisteredUserException e) {<NEW...
resolveSignalServiceAddress(account.getSelfRecipientId());
5,544
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select t1.col1, t1.col2, t2.col1, t2.col2, t3.col1, t3.col2 from Type1#keepall as t1" + " left outer join Type2#keepall as t2" + " on t1.col2 = t2.col2 and t1.col1 = t2.col1" + " left outer join Type3#keepall as t3" + " on t1.col1 = t3...
env, "Type2", "a1", "b1");
1,215,631
public ChunkSection read(ByteBuf buffer) throws Exception {<NEW_LINE>// Reaad bits per block<NEW_LINE><MASK><NEW_LINE>int originalBitsPerBlock = bitsPerBlock;<NEW_LINE>if (bitsPerBlock == 0 || bitsPerBlock > 8) {<NEW_LINE>bitsPerBlock = GLOBAL_PALETTE;<NEW_LINE>}<NEW_LINE>// Read palette<NEW_LINE>ChunkSection chunkSect...
int bitsPerBlock = buffer.readUnsignedByte();
411,953
private <B extends HttpSecurityBuilder<B>> List<AuthenticationProvider> createDefaultAuthenticationProviders(B builder) {<NEW_LINE>List<AuthenticationProvider> authenticationProviders = new ArrayList<>();<NEW_LINE>RegisteredClientRepository registeredClientRepository = OAuth2ConfigurerUtils.getRegisteredClientRepositor...
= new JwtClientAssertionAuthenticationProvider(registeredClientRepository, authorizationService);
84,435
public static int uploadJRE(@NonNull final String localJreLocation, @NonNull final String remoteJreLocation, @NonNull final ConnectionMethod connectionMethod, @NullAllowed File buildScript) {<NEW_LINE>String[] antTargets = null;<NEW_LINE>final Properties prop = new Properties();<NEW_LINE>// NOI18N<NEW_LINE>prop.setProp...
concealedProps = Collections.singleton("remote.password");
652,769
private List<WidgetEntity> createStatsCountWidget() {<NEW_LINE>final String function = config.getString("stats_function");<NEW_LINE>final String field = config.getString("field");<NEW_LINE>final boolean trend = config.getBoolean("trend");<NEW_LINE>final boolean lowerIsBetter = config.getBoolean("lower_is_better");<NEW_...
query = config.getOptionalString("query");
614,449
public void marshall(AnalyzedResource analyzedResource, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (analyzedResource == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(analyzedResource.getActions(), ACTIO...
analyzedResource.getUpdatedAt(), UPDATEDAT_BINDING);
1,836,518
public ModelAndView alarmAddForm(HttpSession session, HttpServletResponse response, HttpServletRequest request) {<NEW_LINE>String clusterAlias = session.getAttribute(KConstants.SessionAlias.CLUSTER_ALIAS).toString();<NEW_LINE>ModelAndView mav = new ModelAndView();<NEW_LINE>String group = request.getParameter("ke_alarm_...
session.setAttribute("Alarm_Submit_Status", "Insert failed.");