idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
12,201
private void initializeRecyclerView(Bundle savedInstanceState) {<NEW_LINE>// Initialize Adapter and RecyclerView<NEW_LINE>FlexibleAdapter.useTag("DataBindingAdapter");<NEW_LINE>mAdapter = new BindingFlexibleAdapter<>(getActivity(), true);<NEW_LINE>mAdapter.setAnimationOnForwardScrolling(DatabaseConfiguration.animateOnF...
(R.id.filter_view));
900,835
public co.elastic.clients.elasticsearch.indices.PutTemplateRequest indicesPutTemplateRequest(PutTemplateRequest putTemplateRequest) {<NEW_LINE>Assert.notNull(putTemplateRequest, "putTemplateRequest must not be null");<NEW_LINE>co.elastic.clients.elasticsearch.indices.PutTemplateRequest.Builder builder = new co.elastic....
] parametersAliases = parameters.getAliases();
751,552
private void loadMetadataKeyValueFieldIfAny(final Contentlet contentlet, final Map<String, Object> mapLowered) throws DotDataException, DotSecurityException {<NEW_LINE>final Optional<com.dotcms.contenttype.model.field.Field> metadataKeyValueField = contentlet.getContentType().fields(KeyValueField.class).stream().filter...
= new HashMap<>(readOnlyMetadata);
42,179
private static CuratorTransactionFinal modifyTableConfigRules(CuratorTransactionFinal transactionFinal, String schemal, String table, List<String> newDataNodes) throws Exception {<NEW_LINE>CuratorFramework client = ZKUtils.getConnection();<NEW_LINE>String rulePath = ZKUtils.getZKBasePath() + "schema/schema";<NEW_LINE>J...
tableName = tt.getString("name");
955,411
public static void drawImageCenterScaleDown(GC gc, Image imgSrc, Rectangle area) {<NEW_LINE>Rectangle imgSrcBounds = imgSrc.getBounds();<NEW_LINE>if (area.width < imgSrcBounds.width || area.height < imgSrcBounds.height) {<NEW_LINE>float dx = (float) area.width / imgSrcBounds.width;<NEW_LINE>float dy = (float<MASK><NEW_...
) area.height / imgSrcBounds.height;
393,204
public static void showMarker(IMarker marker, String viewId, IWorkbenchPart source) {<NEW_LINE>IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();<NEW_LINE>IViewPart view = page.findView(viewId);<NEW_LINE>if (!page.isPartVisible(view)) {<NEW_LINE>try {<NEW_LINE>view = page.showVi...
logException(e, "Could not open view: " + viewId);
86,055
private static String fixStyleSheetLinkInFile(Path helpFile, String fileContents) {<NEW_LINE>int currentPosition = 0;<NEW_LINE>StringBuffer newContents = new StringBuffer();<NEW_LINE>Matcher matcher = STYLE_SHEET_PATTERN.matcher(fileContents);<NEW_LINE>boolean hasMatches = matcher.find();<NEW_LINE>if (!hasMatches) {<NE...
fullHREFText.substring(0, filenameStart);
197,064
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId"));<NEW_LINE>describeRegionsResponse.setCode(_ctx.integerValue("DescribeRegionsResponse.Code"));...
(_ctx.integerValue("DescribeRegionsResponse.ErrorCode"));
566,376
final DeleteRepositoryResult executeDeleteRepository(DeleteRepositoryRequest deleteRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteRepository");
1,834,482
final DeleteStreamKeyResult executeDeleteStreamKey(DeleteStreamKeyRequest deleteStreamKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStreamKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
593,573
private JComponent createCallPanel() {<NEW_LINE>JPanel buttonsPanel = new TransparentPanel(new FlowLayout(FlowLayout.CENTER));<NEW_LINE>Image callButtonImage = ImageLoader.getImage(ImageLoader.DIAL_PAD_CALL_BUTTON_BG);<NEW_LINE>callButton = new SIPCommTextButton(GuiActivator.getResources().getI18NString("service.gui.CA...
callButtonImage.getHeight(null)));
432,998
private void loadLayoutManagerFromName(Context context, AttributeSet attrs, String name) {<NEW_LINE>try {<NEW_LINE>final int dotIndex = name.indexOf('.');<NEW_LINE>if (dotIndex == -1) {<NEW_LINE>name = "org.lucasr.twowayview.widget." + name;<NEW_LINE>} else if (dotIndex == 0) {<NEW_LINE>final String packageName = conte...
(constructor.newInstance(sConstructorArgs));
1,023,792
private void logState(PartitionState oldState, PartitionState newState, int partitionId) {<NEW_LINE>Map<TrackerClient, TrackerClientState> newTrackerClientStateMap = newState.getTrackerClientStateMap();<NEW_LINE>Map<TrackerClient, TrackerClientState> oldTrackerClientStateMap = oldState.getTrackerClientStateMap();<NEW_L...
collect(Collectors.toSet());
538,554
public static long LLVMDIBuilderCreateFunction(@NativeType("LLVMDIBuilderRef") long Builder, @NativeType("LLVMMetadataRef") long Scope, @NativeType("char const *") CharSequence Name, @NativeType("char const *") CharSequence LinkageName, @NativeType("LLVMMetadataRef") long File, @NativeType("unsigned int") int LineNo, @...
stack.nUTF8(Name, false);
802,396
private void initialize() {<NEW_LINE>locationTF.setPreferredSize(new Dimension(360, 30));<NEW_LINE>locationTF.setText(System.getProperty("user.home"));<NEW_LINE>locationTF.setEditable(false);<NEW_LINE>browseBtn.setText(FontUtils.elegantIconHtml("&#x6e;", MessageUtils.getLocalizedMessage("button.browse")));<NEW_LINE>bro...
(MessageUtils.getLocalizedMessage("button.clear"));
1,009,119
public void readExternal(Element element) throws InvalidDataException {<NEW_LINE>myLogFiles.clear();<NEW_LINE>for (final Object o : element.getChildren(LOG_FILE)) {<NEW_LINE>LogFileOptions logFileOptions = new LogFileOptions();<NEW_LINE>logFileOptions.readExternal((Element) o);<NEW_LINE>myLogFiles.add(logFileOptions);<...
myFileOutputPath = fileOutputElement.getAttributeValue(OUTPUT_FILE);
788,768
public void PostMedia(String mediafile) throws FileNotFoundException {<NEW_LINE>AsyncCallbackPair<String> myCallback = new AsyncCallbackPair<String>() {<NEW_LINE><NEW_LINE>public void onSuccess(final String response) {<NEW_LINE>androidUIHandler.post(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>Media...
MultipartEntityBuilder entityBuilder = MultipartEntityBuilder.create();
158,925
private static String applyTemplateVariables(InputStream inputStream, IFile file, IProject project) throws CoreException {<NEW_LINE>SimpleTextPatternReplacer replacer = new SimpleTextPatternReplacer();<NEW_LINE>try {<NEW_LINE>IPath absoluteFilePath = file.getLocation();<NEW_LINE>String filePathString = absoluteFilePath...
get(Calendar.YEAR)));
58,994
// Display header<NEW_LINE>private static void header(Comparable[] array) {<NEW_LINE>StdDraw.setPenColor(StdDraw.BLACK);<NEW_LINE>StdDraw.text(array.length / 2.0, -2.7, "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,...
-1.25, -2, "min");
679,595
public String test() {<NEW_LINE>// AppsServer<NEW_LINE>String server = p_data.getAppsServer();<NEW_LINE>boolean pass = server != null && server.length() > 0 && server.toLowerCase().indexOf("localhost") == -1 <MASK><NEW_LINE>InetAddress appsServer = null;<NEW_LINE>String error = "Not correct: AppsServer = " + server;<NE...
&& !server.equals("127.0.0.1");
1,483,303
public ValidationResult check(PageValidation pageValidation, String objectName, SpecDirectionPosition spec) throws ValidationErrorException {<NEW_LINE>PageElement mainObject = pageValidation.findPageElement(objectName);<NEW_LINE>checkAvailability(mainObject, objectName);<NEW_LINE>PageElement secondObject = pageValidati...
Rect mainArea = mainObject.getArea();
74,565
public final // JPA2.g:485:10: fragment date_part : ( 'EPOCH' | 'YEAR' | 'QUARTER' | 'MONTH' | 'WEEK' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND' );<NEW_LINE>JPA2Parser.date_part_return date_part() throws RecognitionException {<NEW_LINE>JPA2Parser.date_part_return retval = new JPA2Parser.date_part_return();<NEW_LINE>retval....
start = input.LT(1);
1,094,180
public void metaFieldDomain(ActionRequest request, ActionResponse response) throws ClassNotFoundException {<NEW_LINE>AdvancedExportLine adv = request.getContext().asType(AdvancedExportLine.class);<NEW_LINE>MetaModel metaModel = Beans.get(MetaModelRepository.class).findByName(adv.getCurrentDomain());<NEW_LINE>List<MetaF...
forName(metaModel.getFullName());
23,794
public static long addRule(RuleModel ruleModel) {<NEW_LINE>// Create a new map of values, where column names are the keys<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>values.put(RuleTable.RuleEntry.COLUMN_NAME_TYPE, ruleModel.getType());<NEW_LINE>values.put(RuleTable.RuleEntry.COLUMN_NAME_FILED, ruleMo...
COLUMN_NAME_SIM_SLOT, ruleModel.getSimSlot());
1,595,533
public void drawGuiContainerBackgroundLayer(float f, int mx, int my) {<NEW_LINE>GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);<NEW_LINE>bindGuiTexture();<NEW_LINE>int sx = (width - xSize) / 2;<NEW_LINE>int sy <MASK><NEW_LINE>drawTexturedModalRect(sx, sy, 0, 0, this.xSize, this.ySize);<NEW_LINE>int sw = getFontRenderer()...
= (height - ySize) / 2;
1,456,702
public static DescribeUserDomainsResponse unmarshall(DescribeUserDomainsResponse describeUserDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUserDomainsResponse.setRequestId(_ctx.stringValue("DescribeUserDomainsResponse.RequestId"));<NEW_LINE>describeUserDomainsResponse.setPageNumber(_ctx.longValue("Descr...
("DescribeUserDomainsResponse.Domains[" + i + "].DomainStatus"));
1,460,366
private Mono<Response<Flux<ByteBuffer>>> createCheckpointWithResponseAsync(String resourceGroupName, String virtualMachineName, VirtualMachineCreateCheckpoint body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndp...
error(new IllegalArgumentException("Parameter virtualMachineName is required and cannot be null."));
93,545
public static void writeWithTablet(TsFileWriter tsFileWriter, String deviceId, List<MeasurementSchema> schemas, long rowNum, long startTime, long startValue, boolean isAligned) throws IOException, WriteProcessException {<NEW_LINE>Tablet tablet = new Tablet(deviceId, schemas);<NEW_LINE><MASK><NEW_LINE>Object[] values = ...
long[] timestamps = tablet.timestamps;
291,144
void update(EnumMap<EnumOpType, PacketStats> map) {<NEW_LINE>for (Entry<EnumOpType, PacketStats> entry : map.entrySet()) {<NEW_LINE>EnumOpType type = entry.getKey();<NEW_LINE>int[] packetsTo = packets.get(type);<NEW_LINE>long[] <MASK><NEW_LINE>PacketStats stats = entry.getValue();<NEW_LINE>for (int i = 0; i < HISTORY_S...
bytesTo = bytes.get(type);
149,257
// Public Instance Methods ----------------------------------------------------------------<NEW_LINE>public boolean sendData() {<NEW_LINE>boolean isSuccess = false;<NEW_LINE>if (isWaitForCallback) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>isWaitForCallback = true;<NEW_LINE>LOG.info("Sending '" + data.length + "' byt...
poll(5000, TimeUnit.MILLISECONDS);
1,769,064
public static QueryDeviceServiceDataResponse unmarshall(QueryDeviceServiceDataResponse queryDeviceServiceDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceServiceDataResponse.setRequestId(_ctx.stringValue("QueryDeviceServiceDataResponse.RequestId"));<NEW_LINE>queryDeviceServiceDataResponse.setSuccess<MASK><...
(_ctx.booleanValue("QueryDeviceServiceDataResponse.Success"));
473,617
protected boolean substituteText(final JTextComponent c, final String substituteText, final int len, int moveBack) {<NEW_LINE>final BaseDocument doc = (BaseDocument) c.getDocument();<NEW_LINE>final boolean[] result = new boolean[1];<NEW_LINE>result[0] = true;<NEW_LINE>doc.runAtomic(new Runnable() {<NEW_LINE><NEW_LINE>@...
int dot = caret.getDot();
1,616,740
private void writeReporting(Reporting reporting, String tagName, XmlSerializer serializer) throws java.io.IOException {<NEW_LINE><MASK><NEW_LINE>flush(serializer);<NEW_LINE>StringBuffer b = b(serializer);<NEW_LINE>int start = b.length();<NEW_LINE>if (reporting.getExcludeDefaults() != null) {<NEW_LINE>writeValue(seriali...
serializer.startTag(NAMESPACE, tagName);
882,505
public void saveSettings() {<NEW_LINE>if (sqlWizard == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SQLScriptExecuteSettings settings = sqlWizard.getSettings();<NEW_LINE>List<String> scriptPaths = new ArrayList<>();<NEW_LINE>for (DBNResource resource : selectedScripts) {<NEW_LINE><MASK><NEW_LINE>if (res instanceof IFil...
IResource res = resource.getResource();
466,441
// ----- private methods -----<NEW_LINE>private void init() {<NEW_LINE>factories.put(NotEmptyQuery.class, new NotEmptyQueryFactory(this));<NEW_LINE>factories.put(FulltextQuery.class, new KeywordQueryFactory(this));<NEW_LINE>factories.put(SpatialQuery.<MASK><NEW_LINE>factories.put(GroupQuery.class, new GroupQueryFactory...
class, new SpatialQueryFactory(this));
428,505
private DoubleMatrix solve(final double[] xValues, final double[] yValues) {<NEW_LINE>final int nDataPts = xValues.length;<NEW_LINE>double[][] res = new double[nDataPts - 1][4];<NEW_LINE>double[] intervals = new double[nDataPts - 1];<NEW_LINE>double[] grads = new double[nDataPts - 1];<NEW_LINE>for (int i = 0; i < nData...
1]) / intervals[i];
1,245,129
public Builder mergeFrom(io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetStatus other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetStatus.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasObservedGeneration()) {<NEW_LINE>setObservedGeneration(other.getObservedGe...
conditionsBuilder_.addAllMessages(other.conditions_);
456,638
/* (non-Javadoc)<NEW_LINE>* @see org.eclipse.jdt.ls.core.internal.managers.IProjectImporter#importToWorkspace(org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void importToWorkspace(IProgressMonitor monitor) throws CoreException {<NEW_LINE>if (!applies(monitor)) {<NEW_LINE>retur...
.IncompatibleGradleJdkIssue).withData(info);
271,473
public static String createCriticalNotificationJSON(String caption, String message, String details, String url) {<NEW_LINE>String returnString = "";<NEW_LINE>try {<NEW_LINE>JsonObject appError = Json.createObject();<NEW_LINE>putValueOrJsonNull(appError, "caption", caption);<NEW_LINE>putValueOrJsonNull(appError, "url", ...
Level.WARNING, "Error creating critical notification JSON message", e);
1,853,973
protected void initChannel(Channel ch) throws Exception {<NEW_LINE>JoinStatusImpl joinStatus = new JoinStatusImpl();<NEW_LINE>ChannelPipeline p = ch.pipeline();<NEW_LINE>p.addLast(MetricRecordingHandler.NAME, new MetricRecordingHandler());<NEW_LINE>p.addLast("inflateDecoder", new Lz4FrameDecoder());<NEW_LINE>p.addLast(...
, 3, 0, 3));
1,154,937
private static String mergeExtensions(ArrayList<ProductExtensionInfo> productList, Set<String> extensionsSoFar, File mergeProductExtensionDir) {<NEW_LINE>StringBuffer mergedProdInfo = new StringBuffer();<NEW_LINE>if (mergeProductExtensionDir.exists()) {<NEW_LINE>File[] productPropertiesFiles = mergeProductExtensionDir....
, fileName.indexOf(PRODUCT_EXTENSIONS_FILE_EXTENSION));
623,351
/*<NEW_LINE>private void trimUnsafeCommits() throws IOException {<NEW_LINE>assert currentEngineReference.get() == null || currentEngineReference.get() instanceof ReadOnlyEngine : "a write engine is running";<NEW_LINE>final String translogUUID = store.readLastCommittedSegmentsInfo().getUserData().get(Translog.TRANSLOG_U...
minRetainedTranslogGen, indexSettings.getIndexVersionCreated());
833,701
private static final Tuple2<Integer, String> readChunkToHdfs(final String inputGCSPathFinal, final long chunkSize, final Integer chunkNum, final String outputDirectory) {<NEW_LINE>final Path gcsPath = IOUtils.getPath(inputGCSPathFinal);<NEW_LINE>final String basename = gcsPath.getName(gcsPath.getNameCount() - 1).toStri...
hadoop.fs.Path(outputDirectory);
342,075
void addApplicationInterfaceIpsToSecurityGroups(ConvertedConfiguration cfg, Warnings warnings) {<NEW_LINE>for (ElasticsearchDomain esd : _elasticsearchDomains.values()) {<NEW_LINE>Configuration c = cfg.getNode(esd.getId());<NEW_LINE>if (c == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Set<Ip> ips = c.getAllInterface...
sg = _securityGroups.get(sgName);
1,702,958
public void materializeRequiredSlots(Analyzer analyzer) throws AnalysisException {<NEW_LINE>TupleDescriptor tupleDesc = analyzer.getDescTbl().getTupleDesc(tupleId);<NEW_LINE>// to keep things simple we materialize all grouping exprs = output slots,<NEW_LINE>// regardless of what's being referenced externally<NEW_LINE>i...
(i).setIsMaterialized(true);
82,622
final AdvertiseByoipCidrResult executeAdvertiseByoipCidr(AdvertiseByoipCidrRequest advertiseByoipCidrRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(advertiseByoipCidrRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
invoke(request, responseHandler, executionContext);
1,740,413
public DispatchFrame mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>DispatchFrame frame = new DispatchFrame();<NEW_LINE>frame.id = rs.getString("pk_frame");<NEW_LINE>frame.name = rs.getString("frame_name");<NEW_LINE>frame.layerId = rs.getString("pk_layer");<NEW_LINE>frame.jobId = rs.getString("pk_job")...
uid = rs.getInt("int_uid");
1,102,906
public void marshall(RequestedServiceQuotaChange requestedServiceQuotaChange, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (requestedServiceQuotaChange == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(req...
requestedServiceQuotaChange.getStatus(), STATUS_BINDING);
1,638,462
public String findOrphanDescriptors() {<NEW_LINE>com.haulmont.cuba.core.app.filestorage.FileStorage fileStorage;<NEW_LINE>FileStorageAPI fileStorageAPI = AppBeans.get(FileStorageAPI.class);<NEW_LINE>if (fileStorageAPI instanceof com.haulmont.cuba.core.app.filestorage.FileStorage) {<NEW_LINE>fileStorage = (com.haulmont....
.app.filestorage.FileStorage) fileStorageAPI;
1,755,461
private Mono<PagedResponse<IdentifierInner>> listSiteIdentifiersAssignedToHostnameSinglePageAsync(NameIdentifierInner nameIdentifier, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot b...
error(new IllegalArgumentException("Parameter nameIdentifier is required and cannot be null."));
129,942
public static DescribeRdsPerformanceSummaryResponse unmarshall(DescribeRdsPerformanceSummaryResponse describeRdsPerformanceSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRdsPerformanceSummaryResponse.setRequestId(_ctx.stringValue("DescribeRdsPerformanceSummaryResponse.RequestId"));<NEW_LINE>describeRdsPe...
("DescribeRdsPerformanceSummaryResponse.RdsPerformanceInfos[" + i + "].Cpu"));
1,501,255
private void computeBlock() {<NEW_LINE>// Prepare message schedule.<NEW_LINE>for (int t = 16; t < blockBuffer.length; t++) {<NEW_LINE>blockBuffer[t] = enforceOverflow(sigma1(blockBuffer[t - 2]) + blockBuffer[t - 7] + sigma0(blockBuffer[t - 15]) + blockBuffer[t - 16]);<NEW_LINE>}<NEW_LINE>// Init working variables with ...
(c + hash[2]);
1,821,176
public void insertGroupMessageToLocalStorage(final MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>final String data = CommonUtil.getParam(methodCall, result, "data");<NEW_LINE>final String groupID = CommonUtil.getParam(methodCall, result, "groupID");<NEW_LINE>final String sender = CommonUtil.getPa...
returnError(result, i, s);
1,333,397
public com.amazonaws.services.codecommit.model.RepositoryNamesRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.RepositoryNamesRequiredException repositoryNamesRequiredException = new com.amazonaws.services.<MASK><NEW_LINE>int or...
codecommit.model.RepositoryNamesRequiredException(null);
1,223,277
protected void applyPatch() {<NEW_LINE>if (hasColumn(KillsTable.TABLE_NAME, KillsTable.SERVER_UUID)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>addColumn(KillsTable.TABLE_NAME, "server_id integer NOT NULL DEFAULT 0");<NEW_LINE>Map<Integer, Integer> sessionIDServerIDRelation = query(new SessionIDServerIDRelationQuery());<NE...
Integer sessionID = entry.getKey();
1,160,257
private CharSequence generateCompositePropertyElements(final List<Token> tokens, final String indent) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>for (int i = 0; i < tokens.size(); ) {<NEW_LINE>final Token token = tokens.get(i);<NEW_LINE>final String propertyName = formatPropertyName(token.name())...
, token, token, indent));
129,789
public TLoadTxnCommitResult loadTxnCommit(TLoadTxnCommitRequest request) throws TException {<NEW_LINE>String clientAddr = getClientAddrAsString();<NEW_LINE>LOG.debug("receive txn commit request: {}, backend: {}", request, clientAddr);<NEW_LINE>TLoadTxnCommitResult result = new TLoadTxnCommitResult();<NEW_LINE>TStatus s...
status.setStatusCode(TStatusCode.INTERNAL_ERROR);
70,165
private SupportAnimator showTransitionAnimation() {<NEW_LINE>// Get the center for the FAB<NEW_LINE>int cx = (int) mContinueFABContainer.getX() + mContinueFABContainer.getMeasuredHeight() / 2;<NEW_LINE>int cy = (int) mContinueFABContainer.getY() + mContinueFABContainer.getMeasuredWidth() / 2;<NEW_LINE>// get the final ...
mTransitionViewWhite.setVisibility(View.VISIBLE);
1,291,987
public int detectIndentationLevel(IDocument document, int offset, boolean isSelection, IFormattingContext formattingContext) {<NEW_LINE>int indent = 0;<NEW_LINE>try {<NEW_LINE>// detect the indentation offset with the parser, only if the given offset is not the first one in the<NEW_LINE>// current partition.<NEW_LINE>I...
partition = document.getPartition(offset);
44,243
public static void gen_CharStream(JavaResourceTemplateLocations locations) {<NEW_LINE>try {<NEW_LINE>final File file = new File(Options.getOutputDirectory(), "CharStream.java");<NEW_LINE>final OutputFile outputFile = new OutputFile(file, charStreamVersion, new String[] { Options<MASK><NEW_LINE>if (!outputFile.needToWri...
.USEROPTION__STATIC, Options.USEROPTION__SUPPORT_CLASS_VISIBILITY_PUBLIC });
194,638
public void fireSelectionChange(int columnIndex, int rowIndex) {<NEW_LINE>// Update selection collection.<NEW_LINE>if ((columnIndex >= 0) && (columnIndex < this.selectedRows.size())) {<NEW_LINE>this.selectedRows.set(columnIndex, rowIndex);<NEW_LINE>}<NEW_LINE>// Fire a "change" event with given selection.<NEW_LINE>Krol...
"selectedValue", selectedValues.toArray());
904,540
private void init(Props sysProps, Props jobProps, final Logger logger) {<NEW_LINE>shouldProxy = sysProps.getBoolean(HadoopSecurityManager.ENABLE_PROXYING, false);<NEW_LINE>jobProps.put(HadoopSecurityManager.ENABLE_PROXYING, Boolean.toString(shouldProxy));<NEW_LINE>obtainTokens = sysProps.<MASK><NEW_LINE>if (shouldProxy...
getBoolean(HadoopSecurityManager.OBTAIN_BINARY_TOKEN, false);
1,075,916
public int bulkInsert(@NonNull Uri uri, @NonNull ContentValues[] valuesArray) {<NEW_LINE>switch(MATCHER.match(uri)) {<NEW_LINE>case CODE_CHEESE_DIR:<NEW_LINE>final Context context = getContext();<NEW_LINE>if (context == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>final SampleDatabase database = SampleDatabase.getIns...
.fromContentValues(valuesArray[i]);
1,703,636
private static Interceptor[] resolveInterceptorsInternal(ExecutableMethod<?, ?> method, Class<? extends Annotation> annotationType, Interceptor[] interceptors, @NonNull ClassLoader classLoader) {<NEW_LINE>List<Class<? extends Annotation>> annotations = method.getAnnotationTypesByStereotype(annotationType, classLoader);...
toArray(Interceptor[]::new);
372,584
public void createControl(Composite parent) {<NEW_LINE>loadSettings();<NEW_LINE>Composite result = new Composite(parent, SWT.NONE);<NEW_LINE>setControl(result);<NEW_LINE>GridLayout layout = new GridLayout();<NEW_LINE>layout.numColumns = 2;<NEW_LINE>layout.verticalSpacing = 8;<NEW_LINE>result.setLayout(layout);<NEW_LINE...
text, new VariableNamesProcessor(fTempNameProposals));
762,419
public void marshall(WriteCampaignRequest writeCampaignRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (writeCampaignRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(writeCampaignRequest.get...
writeCampaignRequest.getTags(), TAGS_BINDING);
1,321,099
public static WavFormat readFormat(ExtractorInput input) throws IOException {<NEW_LINE>// Allocate a scratch buffer large enough to store the format chunk.<NEW_LINE>ParsableByteArray scratch = new ParsableByteArray(16);<NEW_LINE>// Skip chunks until we find the format chunk.<NEW_LINE>ChunkHeader chunkHeader = skipToChu...
int audioFormatType = scratch.readLittleEndianUnsignedShort();
1,165,501
// PMD does not understand Closer<NEW_LINE>@SuppressWarnings("PMD.CloseResource")<NEW_LINE>protected static <S extends Serializable> S deserializeObject(Path inputFile, Class<S> outputClass) {<NEW_LINE>try {<NEW_LINE>// Awkward nested try blocks required because we refuse to throw IOExceptions.<NEW_LINE>try (Closer clo...
(), inputFile), e);
1,183,831
public static HollowRecordCopier createCopier(HollowTypeReadState typeState, HollowSchema destinationSchema, OrdinalRemapper ordinalRemapper, boolean preserveHashPositions) {<NEW_LINE>if (typeState instanceof HollowObjectTypeReadState)<NEW_LINE>return new HollowObjectCopier((HollowObjectTypeReadState) typeState, (Hollo...
HollowMapTypeReadState) typeState, ordinalRemapper, preserveHashPositions);
274,298
public boolean onCreateOptionsMenu(final Menu menu) {<NEW_LINE>final RedditAccount user = RedditAccountManager.getInstance(this).getDefaultAccount();<NEW_LINE>final SubredditSubscriptionState subredditSubscriptionState;<NEW_LINE>final RedditSubredditSubscriptionManager subredditSubscriptionManager = RedditSubredditSubs...
getSubscriptionState(controller.subredditCanonicalName());
1,552,616
final DescribeLoggingConfigurationResult executeDescribeLoggingConfiguration(DescribeLoggingConfigurationRequest describeLoggingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoggingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,337,484
private void showWindowProduct(String query) {<NEW_LINE>// Show Info<NEW_LINE>posPanel.getFrame().getContentPane().invalidate();<NEW_LINE>InfoProduct infoProduct = new InfoProduct(posPanel.getFrame(), true, posPanel.getWindowNo(), posPanel.getM_Warehouse_ID(), posPanel.getM_PriceList_ID(), 0, query, true, true, null);<...
null, exception.getLocalizedMessage());
1,568,288
public final DimensionsContext dimensions() throws RecognitionException {<NEW_LINE>DimensionsContext _localctx = new DimensionsContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 416, RULE_dimensions);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(2853);<NEW_LI...
_errHandler.reportError(this, re);
63,391
private void saveStates(@Nonnull final VirtualFile dir) {<NEW_LINE>final Element storeElement = new Element(StorageData.COMPONENT);<NEW_LINE>for (final String componentName : copiedStorageData.getComponentNames()) {<NEW_LINE>copiedStorageData.processComponent(componentName, (fileName, state) -> {<NEW_LINE>if (!dirtyFil...
fileName, dir, MySaveSession.this);
1,284,344
public BinaryColumnStatisticsData unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BinaryColumnStatisticsData binaryColumnStatisticsData = new BinaryColumnStatisticsData();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
1,150,535
private static void populateCopyObjectHeaders(CopyObjectRequest copyObjectRequest, Map<String, String> headers) {<NEW_LINE>String copySourceHeader = "/" + copyObjectRequest.getSourceBucketName() + "/" + HttpUtil.urlEncode(copyObjectRequest.getSourceKey(), DEFAULT_CHARSET_NAME);<NEW_LINE>if (copyObjectRequest.getSourceV...
COPY_OBJECT_SOURCE_IF_UNMODIFIED_SINCE, copyObjectRequest.getUnmodifiedSinceConstraint());
1,412,887
public Converter<? extends State> createConverter(Item item, HomematicBindingConfig bindingConfig) {<NEW_LINE>if (bindingConfig != null && bindingConfig instanceof ValueBindingConfig && ((ValueBindingConfig) bindingConfig).getConverter() != null) {<NEW_LINE>logger.debug("Using custom converter for {}", bindingConfig);<...
CONVERTER_PACKAGE + converterName).newInstance();
385,985
public void typingNotificationReceived(TypingNotificationEvent evt) {<NEW_LINE>if (typingTimer.isRunning())<NEW_LINE>typingTimer.stop();<NEW_LINE>String notificationMsg = "";<NEW_LINE>MetaContact metaContact = GuiActivator.getContactListService().findMetaContactByContact(evt.getSourceContact());<NEW_LINE>String contact...
).getI18NString("service.gui.UNKNOWN") + " ";
393,910
public <T> T newInstance(@NonNull final I_AD_JavaClass javaClassDef) {<NEW_LINE>Check.errorIf(javaClassDef.isInterface(), "Param {} may not be an interface", javaClassDef);<NEW_LINE>final Class<?> javaClass = verifyClassName(javaClassDef);<NEW_LINE>final String className = javaClass.getName();<NEW_LINE>if (javaClass.is...
AdempiereException("The class " + className + " is an interface, so it cannot be instantiated.");
344,821
private void processDetails() {<NEW_LINE>BeanProperty orderColumn = null;<NEW_LINE><MASK><NEW_LINE>if (hasOrderColumn) {<NEW_LINE>if (!insertedParent && canSkipForOrderColumn() && saveRecurseSkippable) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>orderColumn = targetDescriptor.orderColumn();<NEW_LINE>}<NEW_LINE>if (insertedP...
boolean hasOrderColumn = many.hasOrderColumn();
992,391
public List<Long> readSkuIdsForProductOptionValues(Long productId, String attributeName, String attributeValue, List<Long> possibleSkuIds) {<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Sku> criteria = <MASK><NEW_LINE>Root<SkuProductOptionValueXrefImpl> root = criteria.from(SkuProductOp...
cb.createQuery(Sku.class);
1,158,580
public PartitionGetResult partitionGet(PartitionGetParam partParam) {<NEW_LINE>if (partParam instanceof PartitionGetRowsParam) {<NEW_LINE>PartitionGetRowsParam param = (PartitionGetRowsParam) partParam;<NEW_LINE>PartitionKey pkey = param.getPartKey();<NEW_LINE>pkey = psContext.getMatrixMetaManager().getMatrixMeta(pkey....
map = cks.get(col);
595,802
protected T circularGet(final Provider<? extends T> provider, InternalContext context, final Dependency<?> dependency, @Nullable ProvisionListenerStackCallback<T> provisionCallback) throws InternalProvisionException {<NEW_LINE>final ConstructionContext<T> constructionContext = context.getConstructionContext(this);<NEW_...
provision(provider, dependency, constructionContext);
339,538
public GatewayFilter apply(Config config) {<NEW_LINE>return (exchange, chain) -> {<NEW_LINE>if (exchange.getRequest().getHeaders().getAcceptLanguage().isEmpty()) {<NEW_LINE>String queryParamLocale = exchange.getRequest().getQueryParams().getFirst("locale");<NEW_LINE>Locale requestLocale = Optional.ofNullable(queryParam...
logger.info("Modify request output - Request contains Accept-Language header: {}", allOutgoingRequestLanguages);
12,920
private boolean handler(ServerConfiguration conf, ReadJournalFlags cmd) throws IOException {<NEW_LINE>Journal journal = null;<NEW_LINE>if (getJournals(conf).size() > 1) {<NEW_LINE>if (cmd.dir.equals(DEFAULT)) {<NEW_LINE>LOG.error("ERROR: invalid or missing journal directory");<NEW_LINE>usage();<NEW_LINE>return false;<N...
String name = f.getName();
1,212,780
/* (non-Javadoc)<NEW_LINE>* @see com.rho.rhoelements.plugins.Plugin#onSetting(com.rho.rhoelements.PluginSetting)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void onSetting(PluginSetting setting) {<NEW_LINE>if (setting.getName().equalsIgnoreCase("filename")) {<NEW_LINE>String file = setting.getValue();<NEW_LINE>if (f...
TAG, "Invalid Parameter: " + file + ", setting ignored");
1,598,974
private void statInit() {<NEW_LINE>lDocumentNo.setLabelFor(fDocumentNo);<NEW_LINE>fDocumentNo.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>fDocumentNo.addActionListener(this);<NEW_LINE>lDescription.setLabelFor(fDescription);<NEW_LINE>fDescription.setBackground(AdempierePLAF.getInfoBackground());<NEW_LINE>...
), p_WindowNo, "IsSOTrx")));
777,524
public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>app = getMyApplication();<NEW_LINE>if (savedInstanceState != null && filesSize == null) {<NEW_LINE>filesCount = savedInstanceState.getInt(FILES_COUNT_KEY);<NEW_LINE>remainingSize = savedInstanceState.getLon...
selectedStorage = savedInstanceState.getParcelable(SELECTED_STORAGE_KEY);
638,278
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>mNextButton = view.findViewById(R.id.button_next);<NEW_LINE>mProgressBar = view.findViewById(R.id.top_progress_bar);<NEW_LINE>// Email field and validator<NEW_LINE>mEmailLayout = view.findViewById(R.id.email_layout);<NEW_LINE>...
headerText.setVisibility(View.GONE);
403,618
public void connect(IGenericType type, IType typeHandle, IType superclassHandle, IType[] superinterfaceHandles) {<NEW_LINE>if (typeHandle == null)<NEW_LINE>return;<NEW_LINE>if (TypeHierarchy.DEBUG) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.out.// $NON-NLS-1$<NEW_LINE>println("Connecting: " + ((JavaElement) typeHandle)....
hierarchy.cacheSuperInterfaces(typeHandle, superinterfaceHandles);
152,454
private void unifyJavaAst(PrecompilationContext precompilationContext) throws UnableToCompleteException {<NEW_LINE>Event event = SpeedTracerLogger.start(CompilerEventType.UNIFY_AST);<NEW_LINE>RebindPermutationOracle rpo = precompilationContext.getRebindPermutationOracle();<NEW_LINE>String[] entryPointTypeNames = precom...
additionalRootTypes, rpo.getCompilationState());
500,977
private static void addSaltAndGetHashForList(List<Object> claim, List<Object> salt, List<Object> disclosures) {<NEW_LINE>for (int i = 0; claim != null && i < claim.size(); i++) {<NEW_LINE>Object obj = claim.get(i);<NEW_LINE>Object saltObj = salt.get(i);<NEW_LINE>if (obj instanceof Map) {<NEW_LINE>Object disclosureObj =...
= (ArrayList<Object>) disclosureObj;
492,669
boolean perform(JpsModule module, TeaVMBuildTarget target) throws IOException, BuildException {<NEW_LINE>TeaVMStorageProvider storageProvider = new TeaVMStorageProvider(target.getConfiguration().getTargetType().name());<NEW_LINE>storage = context.getProjectDescriptor().dataManager.getStorage(target, storageProvider);<N...
setMainClass(config.getMainClass());
1,213,181
public void doUpdate() {<NEW_LINE>if (!hasWorld()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (world.isRemote) {<NEW_LINE>// disable ticking on the client<NEW_LINE>super.doUpdate();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!network.isValid()) {<NEW_LINE>SolarPanelNetwork.build(this);<NEW_LINE>}<NEW_LINE>if (idleCounter ...
.receiveEnergy(canTransmit, false));
1,537,912
public void execute() {<NEW_LINE>ShardingNode dn = DbleServer.getInstance().getConfig().getShardingNodes().get(shardingNode);<NEW_LINE>String mysqlShowTableCol = "Tables_in_" + dn.getDatabase();<NEW_LINE>String[] mysqlShowTableCols = new String[] { mysqlShowTableCol, "Table_type" };<NEW_LINE>PhysicalDbInstance ds = dn....
.getDatabase(), ds));
1,451,785
private void importAppNamespace(String appNamespace, String operator) {<NEW_LINE>AppNamespace toImportPubAppNS = gson.fromJson(appNamespace, AppNamespace.class);<NEW_LINE>String appId = toImportPubAppNS.getAppId();<NEW_LINE>String namespaceName = toImportPubAppNS.getName();<NEW_LINE><MASK><NEW_LINE>AppNamespace managed...
boolean isPublic = toImportPubAppNS.isPublic();
1,589,462
// 813 1246 k<NEW_LINE>// 815 1258 l<NEW_LINE>// 818 1276 l<NEW_LINE>// 820 1296 l<NEW_LINE>// 826 1320 m<NEW_LINE>// 827 1328 m<NEW_LINE>// ...<NEW_LINE>// 836 1406 n<NEW_LINE>// ^ 848 1492 createAtMsg<NEW_LINE>@Override<NEW_LINE>public boolean initOnce() throws Exception {<NEW_LINE>if (HostInfo.requireMinQQVersion(QQ...
getMethodInstance(Initiator.getHostClassLoader());
1,320,904
private static void initListenerFromZK() throws Exception {<NEW_LINE>LOGGER.info("initListenerFromZK start");<NEW_LINE>ZookeeperProcessListen zkListen = new ZookeeperProcessListen();<NEW_LINE>Set<NotifyService> childService = new HashSet<>();<NEW_LINE>// load sharding<NEW_LINE>childService.add(new ShardingZkToXmlListen...
add(new DbGroupsZKToXmlListener(zkListen));
1,007,868
final RegisterScalableTargetResult executeRegisterScalableTarget(RegisterScalableTargetRequest registerScalableTargetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerScalableTargetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Application Auto Scaling");
949,014
public RFuture<Map<StreamMessageId, Map<K, V>>> readAsync(int count, long timeout, TimeUnit unit, StreamMessageId... ids) {<NEW_LINE>List<Object> params = new ArrayList<Object>();<NEW_LINE>if (count > 0) {<NEW_LINE>params.add("COUNT");<NEW_LINE>params.add(count);<NEW_LINE>}<NEW_LINE>if (timeout > 0) {<NEW_LINE>params.a...
XREAD_BLOCKING_SINGLE, params.toArray());