idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
313,984
public static String replaceSQLParameter(String sql, String params) {<NEW_LINE>UnescapedSQL unescapedSql = unescapeLiteralSQL(sql, params);<NEW_LINE>sql = unescapedSql.sql;<NEW_LINE>params = unescapedSql.param;<NEW_LINE>if (StringUtil.isEmpty(sql) || StringUtil.isEmpty(params)) {<NEW_LINE>return sql;<NEW_LINE>}<NEW_LIN...
sql.indexOf('?', pos);
880
public void run() {<NEW_LINE>Thread me = Thread.currentThread();<NEW_LINE>while (thread == me && !isShowing() || getSize().width == 0) {<NEW_LINE>try {<NEW_LINE>thread.sleep(500);<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>while (thread == me && isShowing()) {<NEW_LINE>D...
fm = big.getFontMetrics(font);
1,067,945
private ColumnPrinter build(Map<String, Entry> entries) {<NEW_LINE>ColumnPrinter printer = new ColumnPrinter();<NEW_LINE>printer.addColumn("PROPERTY");<NEW_LINE>printer.addColumn("FIELD");<NEW_LINE>printer.addColumn("DEFAULT");<NEW_LINE>printer.addColumn("VALUE");<NEW_LINE>printer.addColumn("DESCRIPTION");<NEW_LINE>Map...
entry.field.getName());
1,005,709
public void onComplete() {<NEW_LINE>if (lengthOptimization) {<NEW_LINE>LOGGER.finest(() -> "(client reqID: " + requestId + ") " + "Message body contains only one data chunk. Setting chunked encoding to false.");<NEW_LINE>HttpUtil.setTransferEncodingChunked(request, false);<NEW_LINE>if (!HttpUtil.isContentLengthSet(requ...
WebClientServiceRequest serviceRequest = channel.serviceRequest();
418,044
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {<NEW_LINE>if (!pattern.matcher(file.toString()).matches()) {<NEW_LINE>return FileVisitResult.CONTINUE;<NEW_LINE>} else if (!file.toString().endsWith(".java")) {<NEW_LINE>return FileVisitResult.CONTINUE;<NEW_LINE>}<NEW_LINE>try (I...
myEnum.getName() + "]");
1,791,676
public void demask() {<NEW_LINE>if (isMasked() && hasPayload()) {<NEW_LINE>int maskInt = 0;<NEW_LINE>for (byte maskByte : mask) {<NEW_LINE>maskInt = (maskInt << 8) + (maskByte & 0xFF);<NEW_LINE>}<NEW_LINE>int maskOffset = 0;<NEW_LINE>int start = payload.position();<NEW_LINE>int end = payload.limit();<NEW_LINE>int offse...
.getInt(start) ^ maskInt);
829,800
public void visit(BLangWorkerFlushExpr workerFlushExpr, AnalyzerData data) {<NEW_LINE>// Two scenarios should be handled<NEW_LINE>// 1) flush w1 -> Wait till all the asynchronous sends to worker w1 is completed<NEW_LINE>// 2) flush -> Wait till all asynchronous sends to all workers are completed<NEW_LINE>BLangIdentifie...
INVALID_WORKER_FLUSH, currentWrkerAction.currentWorkerId());
525,976
public Set<Command> findCommandsMatchingCriterion(@Valid final Criterion criterion, final boolean addDefaultStatus) {<NEW_LINE>final Criterion finalCriterion;<NEW_LINE>if (addDefaultStatus && !criterion.getStatus().isPresent()) {<NEW_LINE>finalCriterion = new Criterion(criterion, CommandStatus.ACTIVE.name());<NEW_LINE>...
log.debug("[findCommandsMatchingCriterion] Called to find commands matching {}", finalCriterion);
1,479,893
protected void apply(BaseInjection other) {<NEW_LINE>final String displayName = myNameTextField.getText();<NEW_LINE>if (StringUtil.isEmpty(displayName)) {<NEW_LINE>throw new IllegalArgumentException("Display name should not be empty");<NEW_LINE>}<NEW_LINE>other.setDisplayName(displayName);<NEW_LINE>boolean enabled = tr...
LazyPresentablePattern) pattern).compile();
1,597,196
public final MergeMatchedContext mergeMatched() throws RecognitionException {<NEW_LINE>MergeMatchedContext _localctx = new MergeMatchedContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 46, RULE_mergeMatched);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(787)...
_la = _input.LA(1);
1,707,784
private Mono<Response<Enum0>> checkServiceProviderAvailabilityWithResponseAsync(CheckServiceProviderAvailabilityInput checkServiceProviderAvailabilityInput) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ca...
error(new IllegalArgumentException("Parameter checkServiceProviderAvailabilityInput is required and cannot be null."));
1,356,567
final DeleteDevEndpointResult executeDeleteDevEndpoint(DeleteDevEndpointRequest deleteDevEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDevEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
endClientExecution(awsRequestMetrics, request, response);
104,861
public void createCheckpoint(String targetPath) {<NEW_LINE>Path parentName = Paths.get(targetPath).getParent().getFileName();<NEW_LINE>assert parentName.toString().startsWith("snapshot") : targetPath;<NEW_LINE>// https://github.com/facebook/rocksdb/wiki/Checkpoints<NEW_LINE>try (Checkpoint checkpoint = Checkpoint.creat...
File snapshotFile = new File(targetPath);
564,770
public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {<NEW_LINE>TreeNodeLabelManager labelManager = contextManager.getTreeNodeLabelManager();<NEW_LINE>VertexIdManager vertexIdManager = contextManager.getVertexIdManager();<NEW_LINE>QueryFlowOuterClass.OperatorType operatorType = <MASK><NEW_LIN...
getUseKeyOperator(QueryFlowOuterClass.OperatorType.SUM);
877,185
private void prepareReadingSession(FeedSet fs, StateFilter stateFilter, ReadFilter readFilter) {<NEW_LINE>// a selection filter that will be used to pull active story hashes from the stories table into the reading session table<NEW_LINE>StringBuilder sel = new StringBuilder();<NEW_LINE>// any selection args that need t...
selArgs, fs, stateFilter, readFilter);
655,504
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>try {<NEW_LINE>LinkedInApiClient apiClient = mLinkedInApiClientFactory.createLinkedInApiClient(mSharedPreferences.getString(SAVE_STATE_KEY_OAUTH_TOKEN, ""), mSharedPreferences.getString(SAVE_STATE_KEY_OAUTH_SECRET, ""));...
RESULT_ERROR, e.getMessage());
1,284,945
private void loadNode109() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.Server_SetSubscriptionDurable_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), LocalizedText.NULL_VALUE, UInteger.valueOf(0),...
.expanded(), false));
1,457,876
private void installUpdater() {<NEW_LINE>if (ApplicationManager.getApplication().isUnitTestMode() || myPopup.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Alarm alarm = new Alarm(Alarm.ThreadToUse.SWING_THREAD, myPopup);<NEW_LINE>alarm.addRequest(new Runnable() {<NEW_LINE><NEW_LINE>String filter = "";<NEW_LINE><...
.create(filter, box));
224,411
public void seekModule(char[] name, boolean prefixMatch, IJavaElementRequestor requestor) {<NEW_LINE>IPrefixMatcherCharArray prefixMatcher = prefixMatch ? CharOperation.equals(name, CharOperation.ALL_PREFIX) ? (x, y, isCaseSensitive) -> true : CharOperation::prefixEquals : CharOperation::equals;<NEW_LINE>int count = th...
rootToModule, this.rootToResolvedEntries::get);
1,489,773
public Message toProtoMessage() {<NEW_LINE>final protobuf.TradingPeer.Builder builder = protobuf.TradingPeer.newBuilder().setChangeOutputValue(changeOutputValue);<NEW_LINE>Optional.ofNullable(accountId).ifPresent(builder::setAccountId);<NEW_LINE>Optional.ofNullable(paymentAccountPayload).ifPresent(e -> builder.setPayme...
).ifPresent(builder::setContractAsJson);
421,304
public void paint(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>if (g2 == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);<NEW_LINE>// g2.setRenderingHint(RenderingHints.KEY_RENDERING,<NEW_LINE>// RenderingHints.VALUE...
setFont(FontResource.getItemFont());
1,417,771
private void init() throws UpdateFailedException {<NEW_LINE>_resolver = new Utils.Resolver(_descriptor.variables);<NEW_LINE>_resolver.put("application", _descriptor.name);<NEW_LINE>_origVariables = _descriptor.variables;<NEW_LINE>_origDescription = _descriptor.description;<NEW_LINE>_origDistrib = _descriptor.distrib.cl...
= new JTree(this, true);
1,766,539
@Transactional<NEW_LINE>@Path("async-with-completion-stage")<NEW_LINE>public CompletionStage<Integer> async2() throws SystemException {<NEW_LINE>System.out.printf("submitting async job ...%n");<NEW_LINE>ContextManagerProvider cmp <MASK><NEW_LINE>ManagedExecutor me = cmp.getContextManager().newManagedExecutorBuilder().p...
= ContextManagerProvider.INSTANCE.get();
327,029
private static Query stringMatch(LuceneQueryBuilder.Context context, List<Symbol> arguments, Object queryTerm) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<String, Object> fields = (Map) ((Literal) arguments.get(0)).value();<NEW_LINE>String queryString = (String) queryTerm;<NEW_LINE>String matchType = (String...
Map) fields, queryString, options);
1,606,049
public static void endTrack(final String title) {<NEW_LINE>if (isClosed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// --Make Task<NEW_LINE>final long timestamp = System.currentTimeMillis();<NEW_LINE>Runnable endTrack = () -> {<NEW_LINE>assert <MASK><NEW_LINE>String expected = titleStack.pop();<NEW_LINE>// (check name matc...
!isThreaded || control.isHeldByCurrentThread();
695,394
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>SearchRequest countRequest = new SearchRequest(Strings.splitStringByCommaToArray(request.param("index")));<NEW_LINE>countRequest.indicesOptions(IndicesOptions.fromRequest(request, countRequest.ind...
), response.getShardFailures());
1,814,319
private void resizeVolume(VolumeInfo volumeInfo) {<NEW_LINE>LOGGER.debug("Resizing PowerFlex volume");<NEW_LINE>Preconditions.checkArgument(volumeInfo != null, "volumeInfo cannot be null");<NEW_LINE>try {<NEW_LINE>String scaleIOVolumeId = ScaleIOUtil.getVolumePath(volumeInfo.getPath());<NEW_LINE>Long storagePoolId = vo...
(scaleIOVolumeId, (int) newSizeIn8gbBoundary);
1,691,813
private void convertCodeSystemCodesToCsv(List<CodeSystem.ConceptDefinitionComponent> theConcept, Map<String, String> theCodes, Map<String, List<CodeSystem.ConceptPropertyComponent>> theProperties, String theParentCode, Multimap<String, String> theCodeToParentCodes) {<NEW_LINE>for (CodeSystem.ConceptDefinitionComponent ...
nextConcept.getCode(), theParentCode);
571,210
public void init() {<NEW_LINE>photos = service.getPhotos();<NEW_LINE>responsiveOptions1 = new ArrayList<>();<NEW_LINE>responsiveOptions1.add(new ResponsiveOption("1024px", 5));<NEW_LINE>responsiveOptions1.add(new ResponsiveOption("768px", 3));<NEW_LINE>responsiveOptions1.add(new ResponsiveOption("560px", 1));<NEW_LINE>...
responsiveOptions2 = new ArrayList<>();
620,565
protected String generateSyntaxIncorrectAST() {<NEW_LINE>// create some dummy source to generate an ast node<NEW_LINE>StringBuilder buff = new StringBuilder();<NEW_LINE>IType type = getType();<NEW_LINE>String lineSeparator = org.eclipse.jdt.internal.core.util.Util.getLineSeparator(this.source, type == null ? null : typ...
toString().toCharArray());
1,288,502
private void printUsage(PrintStream ps) {<NEW_LINE>OutputStreamWriter outputStream = new OutputStreamWriter(ps, UTF_8);<NEW_LINE>boolean isFirst = true;<NEW_LINE>for (Map.Entry<String, Collection<String>> entry : categories.asMap().entrySet()) {<NEW_LINE>String prefix = "\n\n";<NEW_LINE>String suffix = "";<NEW_LINE>if ...
+ "Available Error Groups: " + normalPrefix + DiagnosticGroups.DIAGNOSTIC_GROUP_NAMES;
344,015
public Void execute(CommandContext commandContext) {<NEW_LINE>CommandConfig commandConfig = commandExecutor<MASK><NEW_LINE>FailedJobCommandFactory failedJobCommandFactory = commandContext.getFailedJobCommandFactory();<NEW_LINE>Command<Object> cmd = failedJobCommandFactory.getCommand(job.getId(), exception);<NEW_LINE>LO...
.getDefaultConfig().transactionRequiresNew();
1,540,241
public Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext) {<NEW_LINE>Size size = IntegerConstant.forValue(stackManipulations.size()).apply(methodVisitor, implementationContext);<NEW_LINE>// The array's construction does not alter the stack's size.<NEW_LINE>size = size.aggregate(arrayC...
.apply(methodVisitor, implementationContext));
536,582
private SecurityContext oauth2SecurityContext(Oauth2 oauth2) {<NEW_LINE>List<AuthorizationScope> scopes = new ArrayList<>();<NEW_LINE>List<AuthorizationScope> oauth2Scopes = oauth2.getScopes();<NEW_LINE>for (AuthorizationScope oauth2Scope : oauth2Scopes) {<NEW_LINE>scopes.add(new AuthorizationScope(oauth2Scope.getScope...
.match(patterns, mappingPattern));
1,316,323
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_list_sample);<NEW_LINE><MASK><NEW_LINE>final ListView listView = (ListView) findViewById(android.R.id.list);<NEW_LINE>List<String> data = new ArrayList<String>();<NEW_LINE>for (int...
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
246,625
private void handleReadResultForFenceRead(CompletableFuture<Boolean> fenceResult, ByteBuf data, long startTimeNanos) {<NEW_LINE>if (null != fenceThreadPool) {<NEW_LINE>fenceResult.whenCompleteAsync(new FutureEventListener<Boolean>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess(Boolean result) {<NEW_LIN...
data, BookieProtocol.EIO, startTimeNanos);
397,124
public boolean visit(MySqlKey x) {<NEW_LINE>if (x.isHasConstraint()) {<NEW_LINE>print0(ucase ? "CONSTRAINT " : "constraint ");<NEW_LINE>if (x.getName() != null) {<NEW_LINE>x.getName().accept(this);<NEW_LINE>print(' ');<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final String indexType = x.getIndexType();<NEW_LINE>boolean fullText =...
SQLExpr comment = x.getComment();
1,614,983
public void processResult(int rc, String path, Object ctx) {<NEW_LINE>if (rc == Code.OK.intValue()) {<NEW_LINE>String parent = new File(originalPath).getParent().replace("\\", "/");<NEW_LINE>zk.getData(parent, false, (dRc, dPath, dCtx, data, stat) -> {<NEW_LINE>if (Code.OK.intValue() == dRc && (stat != null && stat.get...
intValue(), path, leafNodePath);
1,665,837
private static SubstrateIntrinsics.Any slotTypeCheck(short start, short range, short slot, int typeIDSlotOffset, DynamicHub checkedHub, SubstrateIntrinsics.Any trueValue, SubstrateIntrinsics.Any falseValue) {<NEW_LINE>int typeCheckStart = Short.toUnsignedInt(start);<NEW_LINE>int <MASK><NEW_LINE>int typeCheckSlot = Shor...
typeCheckRange = Short.toUnsignedInt(range);
479,655
public void cleanAutoDeclareContext(ProducerDestination dest, ExtendedProducerProperties<RabbitProducerProperties> properties) {<NEW_LINE>synchronized (this.autoDeclareContext) {<NEW_LINE>if (dest instanceof RabbitProducerDestination) {<NEW_LINE>String qual = ((RabbitProducerDestination) dest).getBeanNameQualifier();<N...
group, "", group, false);
141,827
private void removeSharedFieldsByDifference(BibEntry localBibEntry, BibEntry sharedBibEntry) throws SQLException {<NEW_LINE>Set<Field> nullFields = new HashSet<>(sharedBibEntry.getFields());<NEW_LINE>nullFields.<MASK><NEW_LINE>for (Field nullField : nullFields) {<NEW_LINE>StringBuilder deleteFieldQuery = new StringBuil...
removeAll(localBibEntry.getFields());
515,339
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> <MASK><NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.knowledgeId, convLabelName("Knowledge Id"));<NEW_LINE>if (error != null)...
errors = new ArrayList<>();
57,599
public static void orderBandsBufferedFromRGB(DataBufferByte buffer, WritableRaster raster, int type) {<NEW_LINE>int height = raster.getHeight();<NEW_LINE>int width = raster.getWidth();<NEW_LINE>int <MASK><NEW_LINE>int offset = ConvertRaster.getOffset(raster);<NEW_LINE>byte[] data = buffer.getData();<NEW_LINE>if (Buffer...
stride = ConvertRaster.stride(raster);
181,661
public DeleteActionTargetResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteActionTargetResult deleteActionTargetResult = new DeleteActionTargetResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
class).unmarshall(context));
905,718
public void checkcast(TypeReference typeReference, TypeBinding typeBinding, int currentPosition) {<NEW_LINE>if (typeReference != null) {<NEW_LINE>TypeReference[<MASK><NEW_LINE>for (int i = typeReferences.length - 1; i >= 0; i--) {<NEW_LINE>// need to emit right to left.<NEW_LINE>typeReference = typeReferences[i];<NEW_L...
] typeReferences = typeReference.getTypeReferences();
497,854
public ReviveModelResultRepresentation reviveProcessModelHistory(ModelHistory modelHistory, String userId, String newVersionComment) {<NEW_LINE>Model latestModel = modelRepository.get(modelHistory.getModelId());<NEW_LINE>if (latestModel == null) {<NEW_LINE>throw new IllegalArgumentException("No process model found with...
.setLastUpdated(new Date());
461,017
private static int sortByTag(List<MdiEntry> entries) {<NEW_LINE>// due to async/swt-thread nature of tree construction we can't get an accurate list<NEW_LINE>// of existing tree items without forcing swt sync which messes up other crud<NEW_LINE>// so reconstruct the order here so we can insert new items based on this<N...
n2 = t.getTagName(true);
889,233
public io.kubernetes.client.proto.V1beta1Extensions.SupplementalGroupsStrategyOptions buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Extensions.SupplementalGroupsStrategyOptions result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (...
proto.V1beta1Extensions.SupplementalGroupsStrategyOptions(this);
754,001
public static QueryCardsInfoResponse unmarshall(QueryCardsInfoResponse queryCardsInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryCardsInfoResponse.setRequestId(_ctx.stringValue("QueryCardsInfoResponse.RequestId"));<NEW_LINE>queryCardsInfoResponse.setCode(_ctx.stringValue("QueryCardsInfoResponse.Code"));<NEW_LIN...
(_ctx.stringValue("QueryCardsInfoResponse.Message"));
721,773
final DescribeListenerResult executeDescribeListener(DescribeListenerRequest describeListenerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeListenerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
invoke(request, responseHandler, executionContext);
810,379
private void openTab(WebElement tabCell) {<NEW_LINE>// Open the tab by clicking its caption text if it exists.<NEW_LINE>List<WebElement> tabCaptions = tabCell.findElements(byCaption);<NEW_LINE>if (!tabCaptions.isEmpty()) {<NEW_LINE>tabCaptions.get(0).click();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// If no caption text w...
(By.className("v-icon"));
950,137
public static XComponentContext createInitialComponentContext(Map<String, Object> context_entries) throws Exception {<NEW_LINE>ServiceManager xSMgr = new ServiceManager();<NEW_LINE>XImplementationLoader xImpLoader = UnoRuntime.queryInterface(XImplementationLoader.class, new JavaLoader());<NEW_LINE>XInitialization xInit...
queryInterface(XSet.class, xSMgr);
41,560
private static RestRequest doEncode(final RestRequest request) throws URISyntaxException, MessagingException, IOException {<NEW_LINE>RestRequestBuilder requestBuilder = new RestRequestBuilder(request);<NEW_LINE>// Reconstruct URI without query. Use the URI(String) constructor to preserve any Rest.li specific encoding o...
ByteString entity = request.getEntity();
982,174
static void exportAttributes(final ODTExporter thisNode, final String uuid, final SecurityContext securityContext) throws FrameworkException {<NEW_LINE>final File output = thisNode.getResultDocument();<NEW_LINE>final VirtualType transformation = thisNode.getTransformationProvider();<NEW_LINE>try {<NEW_LINE>final App <M...
app = StructrApp.getInstance(securityContext);
1,455,288
private void defineReadStructMethod() {<NEW_LINE>MethodDefinition read = new MethodDefinition(a(PUBLIC), "read", structType, arg("protocol", TProtocol.class)).addException(Exception.class);<NEW_LINE>// TProtocolReader reader = new TProtocolReader(protocol);<NEW_LINE>read.addLocalVariable(type(TProtocolReader.class), "r...
result = buildStruct(read, structData);
180,963
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>mView = inflater.inflate(R.layout.basic_settings, container, false);<NEW_LINE>mProfileName = mView.findViewById(id.profilename);<NEW_LINE>mClientCert = <MASK><NEW_LINE>mClientKey = mView.findViewById(id.keyselec...
mView.findViewById(id.certselect);
523,692
final DescribeModelResult executeDescribeModel(DescribeModelRequest describeModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
false), new DescribeModelResultJsonUnmarshaller());
109,593
private Color reconcileObjectProtos(ColorId id, Map<ShardView, TypeProto> viewToProto) {<NEW_LINE>TreeSet<String> debugTypenames = new TreeSet<>();<NEW_LINE>ImmutableSet.Builder<Color<MASK><NEW_LINE>ImmutableSet.Builder<Color> prototypes = ImmutableSet.builder();<NEW_LINE>ImmutableSet.Builder<String> ownProperties = Im...
> instanceColors = ImmutableSet.builder();
1,016,084
static void onNullInjectedIntoNonNullableDependency(Object source, Dependency<?> dependency) throws InternalProvisionException {<NEW_LINE>// Hack to allow null parameters to @Provides methods, for backwards compatibility.<NEW_LINE>if (dependency.getInjectionPoint().getMember() instanceof Method) {<NEW_LINE>Method annot...
.getInjectionPoint().getMember();
1,307,862
private void processUpdateWithNameChange(final String pid, final ApplicationConfig newAppConfig, final NamedApplication appFromPid) {<NEW_LINE>final <MASK><NEW_LINE>ApplicationConfig oldAppConfig = appFromPid.getConfig();<NEW_LINE>if (oldAppConfig == null) {<NEW_LINE>// hmmm, our pid was previously associated with a di...
String oldAppName = appFromPid.getAppName();
1,510,765
public static <T extends ImageGray<T>> void median(Planar<T> input, T output, int startBand, int lastBand) {<NEW_LINE>if (GrayU8.class == input.getBandType()) {<NEW_LINE>ImageBandMath.median((Planar<GrayU8>) input, (GrayU8) output, startBand, lastBand);<NEW_LINE>} else if (GrayU16.class == input.getBandType()) {<NEW_LI...
GrayS64) output, startBand, lastBand);
1,616,159
protected void addRunnableTasks(ImageData<T> imageData, PathObject parentObject, List<Runnable> tasks) {<NEW_LINE>// Get pixel sizes, if possible<NEW_LINE>ImageServer<?> server = imageData.getServer();<NEW_LINE>double pixelWidth = 1, pixelHeight = 1;<NEW_LINE>PixelCalibration cal = server.getPixelCalibration();<NEW_LIN...
"distanceThresholdMicrons") / cal.getAveragedPixelSizeMicrons();
621,864
public void incrementalRedraw() {<NEW_LINE>if (layer == null) {<NEW_LINE>makeLayerElement();<NEW_LINE>addCSSClasses();<NEW_LINE>}<NEW_LINE>// TODO make the number of digits configurable<NEW_LINE>final String label = (epsilon > 0.0) ? FormatUtil.NF4.format(epsilon) : "";<NEW_LINE>// compute absolute y-value of bar<NEW_L...
SVGUtil.addCSSClass(elementLine, CSS_LINE);
9,341
private void energyCell(BlockDefinition<?> block, String baseTexture) {<NEW_LINE>var blockBuilder = <MASK><NEW_LINE>var models = new ArrayList<ModelFile>();<NEW_LINE>for (var i = 0; i < 5; i++) {<NEW_LINE>var model = models().cubeAll(modelPath(block) + "_" + i, makeId(baseTexture + "_" + i));<NEW_LINE>blockBuilder.part...
getVariantBuilder(block.block());
377,861
protected void initScene() {<NEW_LINE>final Material material = new Material();<NEW_LINE>final Plane plane = new Plane(1, 1, 1, 1);<NEW_LINE>plane.setMaterial(material);<NEW_LINE>getCurrentScene().addChild(plane);<NEW_LINE>try {<NEW_LINE>mGifTexture = new AnimatedGIFTexture("animGif", R.drawable.animated_gif);<NEW_LINE...
, 3), 0, 359);
757,050
public ParameterMapEntry unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterMapEntry parameterMapEntry = new ParameterMapEntry();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
96,336
protected void initComponents() {<NEW_LINE>if (!oPanel.isPrepared()) {<NEW_LINE>// NOI18N<NEW_LINE>initComponent = new JLabel(NbBundle.getMessage(InitPanel.class, "LBL_computing"));<NEW_LINE>initComponent.setPreferredSize(new Dimension(850, 450));<NEW_LINE>// avoid flicking ?<NEW_LINE>// NOI18N<NEW_LINE>Color <MASK><NE...
c = UIManager.getColor("Tree.background");
1,709,434
public ProfilingPoint create(Lookup.Provider project) {<NEW_LINE>if (project == null) {<NEW_LINE>// project not defined, will be detected from most active Editor or Main Project will be used<NEW_LINE>project = Utils.getCurrentProject();<NEW_LINE>}<NEW_LINE>CodeProfilingPoint.Location[] selectionLocations = Utils.getCur...
getCurrentLocation(CodeProfilingPoint.Location.OFFSET_START);
1,321,682
public void onUpdate(double tpf) {<NEW_LINE>if (sense.getState() == SenseAIState.CALM)<NEW_LINE>return;<NEW_LINE>if (!astarMove.isAtDestination())<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>var cellX = (int) (lastPoint.getX() / CELL_WIDTH);<NEW_LINE>var cellY = (int) (lastPoint.getY() / CELL_HEIGHT);<NEW_LINE>var cell =...
var lastPoint = sense.getLastHeardPoint();
1,200,262
public VehicleRoutingAlgorithm createAlgorithm(VehicleRoutingProblem vrp) {<NEW_LINE>// TODO determine alpha threshold<NEW_LINE>int radialShare = (int) (vrp.getJobs().size() * 0.3);<NEW_LINE>int randomShare = (int) (vrp.getJobs(<MASK><NEW_LINE>Jsprit.Builder builder = Jsprit.Builder.newInstance(vrp);<NEW_LINE>builder.s...
).size() * 0.5);
669,072
public PTransform<PBegin, PCollection<Row>> buildExternal(ReadBuilder.Configuration configuration) {<NEW_LINE>configuration.checkMandatoryFields();<NEW_LINE>SpannerIO.Read readTransform = SpannerIO.read().withProjectId(configuration.projectId).withDatabaseId(configuration.databaseId).withInstanceId(configuration.instan...
readTransform.withBatching(configuration.batching);
465,491
public com.amazonaws.services.inspector.model.InvalidCrossAccountRoleException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.inspector.model.InvalidCrossAccountRoleException invalidCrossAccountRoleException = new com.amazonaws.services.inspector.model.InvalidC...
String currentParentElement = context.getCurrentParentElement();
153,101
public boolean onMessage(Message<?> message) {<NEW_LINE>if (this.delegate.getConnectionId().equals(message.getHeaders().get(IpHeaders.CONNECTION_ID))) {<NEW_LINE>AbstractIntegrationMessageBuilder<?> messageBuilder = getMessageBuilderFactory().fromMessage(message).setHeader(IpHeaders.<MASK><NEW_LINE>if (message.getHeade...
CONNECTION_ID, this.getConnectionId());
544,055
// ~ Methods --------------------------------------------------------------------------------------------------------------<NEW_LINE>private String buildInfo() {<NEW_LINE>JmxModel jmx = JmxModelFactory.getJmxModelFor(module.getGlassFishRoot().getApplication());<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>...
getName(), "buildInfo", ex);
163,449
final DescribeAccountAttributesResult executeDescribeAccountAttributes(DescribeAccountAttributesRequest describeAccountAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAccountAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
(super.beforeMarshalling(describeAccountAttributesRequest));
1,037,012
public static Pair<List<String>, List<String>> classifyTablesByPrefixPartitionColumns(String schemaName, int prefixPartColCnt, String tableGroupName, String baseTableName) {<NEW_LINE>PartitionInfoManager partInfoMgr = OptimizerContext.getContext(schemaName).getPartitionInfoManager();<NEW_LINE>TableGroupInfoManager tgMg...
getContext(schemaName).getTableGroupInfoManager();
1,581,440
private void genVirtualCall(BIRTerminator.Call callIns, boolean isBuiltInModule, int localVarOffset) {<NEW_LINE>// load self<NEW_LINE>BIRNode.BIRVariableDcl selfArg = callIns.args.get(0).variableDcl;<NEW_LINE>this.loadVar(selfArg);<NEW_LINE>this.mv.visitTypeInsn(CHECKCAST, B_OBJECT);<NEW_LINE>// load the strand<NEW_LIN...
args.get(i + 1);
495,713
public void paint(Graphics2D g, int w, int h) {<NEW_LINE>if (Float.isNaN(dot_x)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int draw_width = w - ins_left - ins_right;<NEW_LINE>int draw_height = h - ins_top - ins_left;<NEW_LINE>float x = draw_width * (dot_x - minx) / (maxx - minx) + ins_left;<NEW_LINE>float y = draw_height ...
(maxy - miny)) + ins_top;
1,610,657
public com.amazonaws.services.lexmodelbuilding.model.NotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.lexmodelbuilding.model.NotFoundException notFoundException = new com.amazonaws.services.lexmodelbuilding.model.NotFoundException(null);<NEW_LIN...
int originalDepth = context.getCurrentDepth();
633,155
public void captureAmount(@NonNull final PaymentReservationCaptureRequest request) {<NEW_LINE>final PaymentReservation reservation = getBySalesOrderIdNotVoided(request.getSalesOrderId()).orElse(null);<NEW_LINE>if (reservation == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// eagerly fetching the processor to fail fast...
getAmount()).build();
738,857
public void marshall(BackupVaultListMember backupVaultListMember, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (backupVaultListMember == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(backupVaultListMember...
backupVaultListMember.getEncryptionKeyArn(), ENCRYPTIONKEYARN_BINDING);
423,153
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>Context context = getContext();<NEW_LINE>if (context == null || app == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>pluginId = savedInstanceState.getStr...
plugin = OsmandPlugin.getPlugin(pluginId);
247,359
public okhttp3.Call subscriptionsMultiplePostCall(List<SubscriptionDTO> subscriptionDTO, String xWSO2Tenant, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = subscriptionDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/subscriptions/multiple";<NEW_LINE...
String[] localVarContentTypes = { "application/json" };
1,043,989
static MaskedPassword createRaw(String algorithm, char[] initialKeyMaterial, int iterationCount, byte[] salt, byte[] maskedPasswordBytes, byte[] initializationVector) {<NEW_LINE><MASK><NEW_LINE>Assert.checkNotNullParam("initialKeyMaterial", initialKeyMaterial);<NEW_LINE>Assert.checkNotNullParam("salt", salt);<NEW_LINE>...
Assert.checkNotNullParam("algorithm", algorithm);
170,898
public void insertRow() throws SQLException {<NEW_LINE>isUpdatable();<NEW_LINE>if (!oninsrow || rowbuf == null) {<NEW_LINE>throw new SQLException("no insert data provided");<NEW_LINE>}<NEW_LINE>JDBCResultSetMetaData <MASK><NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>sb.append("INSERT INTO ");<NEW_LINE>sb.ap...
m = (JDBCResultSetMetaData) getMetaData();
1,673,106
public LoadStmt toLoadStmt() throws DdlException {<NEW_LINE>LabelName commitLabel = multiLabel;<NEW_LINE>List<DataDescription> dataDescriptions = Lists.newArrayList();<NEW_LINE>for (TableLoadDesc desc : loadDescByTable.values()) {<NEW_LINE>dataDescriptions.add(desc.toDataDesc());<NEW_LINE>}<NEW_LINE>Map<String, String>...
get().getCurrentUserIdentity());
1,814,202
public static SvnMaterialConfig fromJSON(JsonReader jsonReader, ConfigHelperOptions options) {<NEW_LINE>SvnMaterialConfig svnMaterialConfig = new SvnMaterialConfig();<NEW_LINE>ScmMaterialRepresenter.fromJSON(jsonReader, svnMaterialConfig);<NEW_LINE>jsonReader.readStringIfPresent("url", svnMaterialConfig::setUrl);<NEW_L...
encryptedPassword = jsonReader.getString("encrypted_password");
1,144,904
// We use reflection to get the methods from WebObjects because the jar is not distribuable publicly<NEW_LINE>// and we want to build witout it.<NEW_LINE>@Init<NEW_LINE>@SuppressWarnings({ "rawtypes", "unchecked" })<NEW_LINE>public void init(PluginConfiguration pluginConfiguration, ClassLoader appClassLoader) {<NEW_LIN...
kvcReflectionKeyBindingCreation_flushCaches = kvcReflectionKeyBindingCreationClass.getMethod("_flushCaches");
1,108,944
public Quaternion mulLeft(Quaternion other) {<NEW_LINE>final float newX = other.w * this.x + other.x * this.w + other.y * this.z <MASK><NEW_LINE>final float newY = other.w * this.y + other.y * this.w + other.z * this.x - other.x * this.z;<NEW_LINE>final float newZ = other.w * this.z + other.z * this.w + other.x * this....
- other.z * this.y;
1,294,572
private static void checkTelnetPortPid(Bootstrap bootstrap, long telnetPortPid, long targetPid) {<NEW_LINE>if (telnetPortPid > 0 && targetPid != telnetPortPid) {<NEW_LINE>AnsiLog.error("The telnet port {} is used by process {} instead of target process {}, you will connect to an unexpected process.", bootstrap.<MASK><N...
getTelnetPortOrDefault(), telnetPortPid, targetPid);
1,424,676
public final OnUpdateExprContext onUpdateExpr() throws RecognitionException {<NEW_LINE>OnUpdateExprContext _localctx = new OnUpdateExprContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>paraphrases.push("on-update clause");<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setS...
enterRule(_localctx, 60, RULE_onUpdateExpr);
1,629,943
public StartTaskContactResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartTaskContactResult startTaskContactResult = new StartTaskContactResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
935,616
/*<NEW_LINE>* @see com.sitewhere.grpc.service.DeviceEventManagementGrpc.<NEW_LINE>* DeviceEventManagementImplBase#addStateChanges(com.sitewhere.grpc.service.<NEW_LINE>* GAddStateChangesRequest, io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void addStateChanges(GAddStateChangesRequest reque...
onNext(response.build());
1,296,762
private void read() {<NEW_LINE>org.w3c.dom.Document document;<NEW_LINE>File file;<NEW_LINE>InputStream is;<NEW_LINE>int avail = 0;<NEW_LINE>try {<NEW_LINE>file = trackingFile;<NEW_LINE>if (!file.isFile()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>is = new FileInputStream(file);<NEW_LINE>avail = is.available();<NEW_LINE>In...
trackingFile + ", available bytes: " + avail, e);
28,369
public InsightSelector unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InsightSelector insightSelector = new InsightSelector();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
1,500,287
public static void shareFeedItemLinkWithDownloadLink(Context context, FeedItem item, boolean withPosition) {<NEW_LINE>String text = getItemShareText(item);<NEW_LINE>int pos = 0;<NEW_LINE>if (item.getMedia() != null && withPosition) {<NEW_LINE>text += "\n" + context.getResources().getString(R.string.share_starting_posit...
R.string.share_dialog_media_file_label) + ": ";
1,602,832
public static long LLVMDIBuilderCreateModule(@NativeType("LLVMDIBuilderRef") long Builder, @NativeType("LLVMMetadataRef") long ParentScope, @NativeType("char const *") CharSequence Name, @NativeType("char const *") CharSequence ConfigMacros, @NativeType("char const *") CharSequence IncludePath, @NativeType("char const ...
long NameEncoded = stack.getPointerAddress();
1,621,410
private void buildRow(Table table, boolean fullId, boolean detailed, DiscoveryNodes discoveryNodes, TaskInfo taskInfo) {<NEW_LINE>table.startRow();<NEW_LINE>String nodeId = taskInfo.getTaskId().getNodeId();<NEW_LINE>DiscoveryNode node = discoveryNodes.get(nodeId);<NEW_LINE>table.addCell(taskInfo.getId());<NEW_LINE>tabl...
address().getPort());
1,266,585
private void createViaBranchBasedOnIncomingRequest(ViaHeader viaHeader, TransactionUserWrapper tUser) throws SipParseException, IllegalArgumentException {<NEW_LINE>B2buaHelper helper = getB2buaHelper(false, UAMode.UAC);<NEW_LINE>if (helper == null) {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.trac...
.getSharedID().hashCode();
957,640
public static void main(String[] args) throws Exception {<NEW_LINE>Options options = getOptions();<NEW_LINE>try {<NEW_LINE>CommandLineParser parser = new GnuParser();<NEW_LINE>CommandLine line = parser.parse(options, args);<NEW_LINE>File dir = new File(line.getOptionValue("dir", "."));<NEW_LINE>String name = line.getOp...
formatter.printHelp("find", options);