idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
385,848
public void migrateWithStorage(final String vmUuid, final long srcHostId, final long destHostId, final Map<Long, Long> volumeToPool) throws ResourceUnavailableException, ConcurrentOperationException {<NEW_LINE>final AsyncJobExecutionContext jobContext = AsyncJobExecutionContext.getCurrentExecutionContext();<NEW_LINE>if...
vm = _vmDao.findByUuid(vmUuid);
1,712,731
private AggregationBuilder addHavingClause(Expression havingExpression, AggregationBuilder aggregationBuilder, EntityMetadata entityMetadata) {<NEW_LINE>if (havingExpression instanceof ComparisonExpression) {<NEW_LINE>Expression expression = ((ComparisonExpression) havingExpression).getLeftExpression();<NEW_LINE>if (!i...
getLeftExpression(), aggregationBuilder, entityMetadata);
1,219,516
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.impetus.kundera.client.Client#findAll(java.lang.Class,<NEW_LINE>* java.lang.Object[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public <E> List<E> findAll(Class<E> entityClass, String[] columnsToSelect, Object... rowIds) {<NEW_LINE>EntityMetadata entityMetadata =...
throw new KunderaException("Error during find All , Caused by: .", ioex);
1,621,869
public void announce() throws AnnounceException {<NEW_LINE>Gitter gitter = context.getModel()<MASK><NEW_LINE>String message = "";<NEW_LINE>if (isNotBlank(gitter.getMessage())) {<NEW_LINE>message = gitter.getResolvedMessage(context);<NEW_LINE>} else {<NEW_LINE>Map<String, Object> props = new LinkedHashMap<>();<NEW_LINE>...
.getAnnounce().getGitter();
1,062,016
private void storeData(Job key, TileBitmap bitmap) {<NEW_LINE>OutputStream outputStream = null;<NEW_LINE>try {<NEW_LINE>File file = getOutputFile(key);<NEW_LINE>if (file == null) {<NEW_LINE>// if the file cannot be written, silently return<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>outputStream = new FileOutputStream(file);<...
.writeLock().unlock();
489,607
final UpdateJobResult executeUpdateJob(UpdateJobRequest updateJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
invoke(request, responseHandler, executionContext);
785,238
private static void printTables(final DragstrParams params, final PrintWriter printWriter) {<NEW_LINE>final StringBuilder lineBuilder = new StringBuilder(LINE_BUILDER_BUFFER_SIZE);<NEW_LINE>lineBuilder.append(String.format("%5s", "1"));<NEW_LINE>for (int i = 2; i <= params.maximumRepeats(); i++) {<NEW_LINE>lineBuilder....
println(lineBuilder.toString());
372,296
public void marshall(CreateInstancesRequest createInstancesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createInstancesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>pr...
createInstancesRequest.getInstanceNames(), INSTANCENAMES_BINDING);
532,599
private int adjust(boolean use_outer_taps) {<NEW_LINE>int p1 = minus128(this.p1);<NEW_LINE>int <MASK><NEW_LINE>int q0 = minus128(this.q0);<NEW_LINE>int q1 = minus128(this.q1);<NEW_LINE>short a = CommonUtils.byteClamp((short) ((use_outer_taps ? CommonUtils.byteClamp((short) (p1 - q1)) : 0) + 3 * (q0 - p0)));<NEW_LINE>sh...
p0 = minus128(this.p0);
402,618
public void enable() {<NEW_LINE>logger.debug("{} enable called on RemoteSwitchB", LoggerConstants.TFINIT);<NEW_LINE>minValue = BigDecimal.ZERO;<NEW_LINE>maxValue = new BigDecimal("15");<NEW_LINE>if (tfConfig != null) {<NEW_LINE>if (tfConfig.eIsSet(tfConfig.eClass().getEStructuralFeature("address"))) {<NEW_LINE>setAddre...
setUnit(tfConfig.getUnit());
129,942
public static DescribeRdsPerformanceSummaryResponse unmarshall(DescribeRdsPerformanceSummaryResponse describeRdsPerformanceSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRdsPerformanceSummaryResponse.setRequestId(_ctx.stringValue("DescribeRdsPerformanceSummaryResponse.RequestId"));<NEW_LINE>describeRdsPe...
("DescribeRdsPerformanceSummaryResponse.RdsPerformanceInfos[" + i + "].Iops"));
84,165
public static DAVProperties findStartingProperties(DAVConnection connection, DAVRepository repos, String fullPath) throws SVNException {<NEW_LINE>DAVProperties props = null;<NEW_LINE>String originalPath = fullPath;<NEW_LINE>String loppedPath = "";<NEW_LINE>if ("".equals(fullPath)) {<NEW_LINE>props = getStartingProperti...
.REPOSITORY_UUID).getString());
1,484,449
private void validateSlaPolicy(TaskConfig config, int instanceCount) throws TaskDescriptionException {<NEW_LINE>if (config.isSetSlaPolicy()) {<NEW_LINE>if (!(settings.slaAwareKillNonProd || tierManager.getTier(ITaskConfig.build(config)).isProduction())) {<NEW_LINE>throw new TaskDescriptionException(String.format("Tier ...
SlaPolicy slaPolicy = config.getSlaPolicy();
1,419,618
final CreateCaseResult executeCreateCase(CreateCaseRequest createCaseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCaseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<CreateCaseRequest> request = nu...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,711,131
public static <T, R> Future<R> tailRec(T initial, Function<? super T, ? extends Future<? extends Either<T, R>>> fn) {<NEW_LINE>SimpleReact sr = SequentialElasticPools.simpleReact.nextReactor();<NEW_LINE>return Future.of(() -> {<NEW_LINE>Future<? extends Either<T, R>>[] next = new Future[1];<NEW_LINE>next[0] = Future.of...
(fn.apply(s));
155,164
public int findLengthOfShortestSubarray(int[] arr) {<NEW_LINE>int n = arr.length;<NEW_LINE>int left = 0;<NEW_LINE>while (left + 1 < n && arr[left] <= arr[left + 1]) {<NEW_LINE>left++;<NEW_LINE>}<NEW_LINE>if (left == n - 1) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int right = n - 1;<NEW_LINE>while (right > 0 && arr[righ...
int i = 0, j = right;
201,059
List<File> storeContractsAsFiles(String path, String fqn, String outputPath) {<NEW_LINE>try {<NEW_LINE>log.info("Input path [{}]", path);<NEW_LINE>log.info("FQN of the converter [{}]", fqn);<NEW_LINE><MASK><NEW_LINE>Collection<Contract> contracts = collectContractDescriptors(new File(path));<NEW_LINE>log.info("Found [{...
log.info("Output path [{}]", outputPath);
756,383
public void updateOffset() {<NEW_LINE>float width = getWidth();<NEW_LINE>float height = getHeight();<NEW_LINE>float localX2 = width / 2;<NEW_LINE>float localY2 = height / 2;<NEW_LINE>float localX = -localX2;<NEW_LINE>float localY = -localY2;<NEW_LINE>if (region instanceof AtlasRegion) {<NEW_LINE>AtlasRegion region = (A...
offset[ULY] = localY2Cos + localXSin;
1,819,581
final UpdateQueueHoursOfOperationResult executeUpdateQueueHoursOfOperation(UpdateQueueHoursOfOperationRequest updateQueueHoursOfOperationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateQueueHoursOfOperationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
46,609
public static ListRecordingOfDualTrackResponse unmarshall(ListRecordingOfDualTrackResponse listRecordingOfDualTrackResponse, UnmarshallerContext context) {<NEW_LINE>listRecordingOfDualTrackResponse.setRequestId(context.stringValue("ListRecordingOfDualTrackResponse.RequestId"));<NEW_LINE>listRecordingOfDualTrackResponse...
("ListRecordingOfDualTrackResponse.Recordings.List[" + i + "].FilePath"));
27,859
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String policyName, 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_LINE>}<N...
getSubscriptionId(), apiVersion, context);
1,372,933
final DeleteJobTaggingResult executeDeleteJobTagging(DeleteJobTaggingRequest deleteJobTaggingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteJobTaggingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "S3 Control");
316,856
private void recordMovieData(int indexX, int indexY) {<NEW_LINE>Paint paint;<NEW_LINE>int posX = indexY * gridWidth + indexY * gridWidthMargin;<NEW_LINE>int posY = rectBoundsHorizontalOffset + indexX * (gridHeight + gridHeightMargin + titleHeight + titleMargin);<NEW_LINE>// Draw title<NEW_LINE>if (indexY == 0) {<NEW_LI...
).get(indexY).rect;
1,202,941
public Set<Permission> fetchAllPermissions(String resouceName) throws IOException, GeneralSecurityException {<NEW_LINE>logger.atInfo().log("Fetching all permissions from " + resouceName);<NEW_LINE>QueryTestablePermissionsRequest requestBody = new QueryTestablePermissionsRequest();<NEW_LINE>requestBody.setFullResourceNa...
= new HashSet<Permission>();
738,687
public void update(boolean silent) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.fine("Eclipse resynchronize started (" + silent + ")");<NEW_LINE>WorkspaceFactory.getInstance().resetCache();<NEW_LINE>List<String> importProblems = new ArrayList<String>();<NEW_LINE>List<UpgradableProject> projs = getListOfUpdatableProjects();<NEW_LI...
, ex.getMessage()));
799,675
private boolean consumeMultipart(long fd, HttpRequestProcessor processor, long headerEnd, int read, boolean newRequest, RescheduleContext rescheduleContext) throws PeerDisconnectedException, PeerIsSlowToReadException, ServerDisconnectException {<NEW_LINE>if (newRequest) {<NEW_LINE>processor.onHeadersReady(this);<NEW_LI...
final HttpMultipartContentListener multipartListener = (HttpMultipartContentListener) processor;
636,986
public IfcModel execute() throws UserException, BimserverDatabaseException, BimserverLockConflictException {<NEW_LINE>DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy HH:mm");<NEW_LINE>User user = getUserByUoid(getAuthorization().getUoid());<NEW_LINE>Revision revision = getRevisionByRoid(roid);<NEW_LINE>Project...
getDatabaseSession().store(checkout);
1,236,018
private static ChangeBlockEvent.Pre createAndPostChangeBlockEventPre(CauseStackManager.StackFrame frame, ForgeToSpongeEventData eventData) {<NEW_LINE>final BlockEvent.BreakEvent forgeEvent = (BlockEvent.BreakEvent) eventData.getForgeEvent();<NEW_LINE>final net.minecraft.world.World world = forgeEvent.getWorld();<NEW_LI...
.getInstance().getCurrentContext();
1,412,865
final ListServiceInstancesResult executeListServiceInstances(ListServiceInstancesRequest listServiceInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServiceInstancesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListS...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
226,415
DescriptorProto generateCodingWithFixedCodeSystem(String codeSystemUrl, QualifiedType qualifiedType) {<NEW_LINE>DescriptorProto.Builder codingMessage = DescriptorProto.newBuilder();<NEW_LINE>codingMessage.setName(qualifiedType.getName());<NEW_LINE>codingMessage.getOptionsBuilder().addExtension(Annotations.fhirProfileBa...
(Collectors.toList()));
1,228,754
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(...
KEY_STATUS, parser.nextHexLong());
16,055
private List<SectionDescriptor> prepareSections(List<? extends GuardedSection> list) {<NEW_LINE>List<SectionDescriptor> dest = new ArrayList<SectionDescriptor<MASK><NEW_LINE>for (GuardedSection o : list) {<NEW_LINE>if (o instanceof SimpleSection) {<NEW_LINE>SectionDescriptor desc = new SectionDescriptor(GuardTag.LINE, ...
>(list.size());
1,526,729
/*<NEW_LINE>* @see com.sitewhere.microservice.api.event.IDeviceEventManagement#<NEW_LINE>* listDeviceCommandResponsesForIndex(com.sitewhere.spi.device.event.<NEW_LINE>* DeviceEventIndex, java.util.List,<NEW_LINE>* com.sitewhere.spi.search.IDateRangeSearchCriteria)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ISearchR...
results = new ArrayList<>();
587,089
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String privateCloudName, String addonName, 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 this.client.getSubscriptionId() is required and cannot be null."));
1,119,951
public BuilderSingularNoAuto build() {<NEW_LINE>java.util.List<String> things;<NEW_LINE>switch(this.things == null ? 0 : this.things.size()) {<NEW_LINE>case 0:<NEW_LINE>things = java<MASK><NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>things = java.util.Collections.singletonList(this.things.get(0));<NEW_LINE>break;<NEW_LIN...
.util.Collections.emptyList();
1,367,396
private void updateButtonAvailability() {<NEW_LINE>boolean isConnected = (ooBase != null);<NEW_LINE>boolean isConnectedToDocument = <MASK><NEW_LINE>// For these, we need to watch something<NEW_LINE>// (style != null);<NEW_LINE>boolean hasStyle = true;<NEW_LINE>// !getBaseList().isEmpty();<NEW_LINE>boolean hasDatabase =...
isConnected && !ooBase.isDocumentConnectionMissing();
306,019
public static Reader createBOMStrippedReader(InputStream stream, String defaultCharset) throws IOException {<NEW_LINE>InputStream in = stream.markSupported() ? stream : new BufferedInputStream(stream);<NEW_LINE>String charset = null;<NEW_LINE>in.mark(3);<NEW_LINE>byte[] head = new byte[3];<NEW_LINE>int br = in.read(hea...
= StandardCharsets.UTF_16.name();
1,282,330
public void testJPA() throws Exception {<NEW_LINE>EntityManagerFactory <MASK><NEW_LINE>EntityManager em = emf.createEntityManager();<NEW_LINE>tx.begin();<NEW_LINE>em.joinTransaction();<NEW_LINE>assertTrue(em.isJoinedToTransaction());<NEW_LINE>Widget w = new Widget();<NEW_LINE>w.id = 4;<NEW_LINE>em.persist(w);<NEW_LINE>...
emf = Persistence.createEntityManagerFactory("test_pu");
361,247
private int readTargetValue(int offset) {<NEW_LINE>int currentOffset = offset;<NEW_LINE>int tag = u1At(currentOffset);<NEW_LINE>currentOffset++;<NEW_LINE>switch(tag) {<NEW_LINE>case 'e':<NEW_LINE>int utf8Offset = this.constantPoolOffsets[u2At(currentOffset)] - this.structOffset;<NEW_LINE>char[] typeName = utf8At(utf8Of...
++) currentOffset = readTargetValue(currentOffset);
303,861
public void save(@NonNull final BPartnerComposite bpartnerComposite, final boolean validatePermissions) {<NEW_LINE>final ImmutableList<ITranslatableString> validateResult = bpartnerComposite.validate();<NEW_LINE>if (!validateResult.isEmpty()) {<NEW_LINE>final String errors = validateResult.stream().map(trl -> trl.trans...
BPartner bpartner = bpartnerComposite.getBpartner();
189,326
private void createListener(final APICreateLoadBalancerListenerMsg msg, final NoErrorCompletion completion) {<NEW_LINE>final APICreateLoadBalancerListenerEvent evt = new APICreateLoadBalancerListenerEvent(msg.getId());<NEW_LINE>LoadBalancerListenerVO vo = new LoadBalancerListenerVO();<NEW_LINE>vo.setLoadBalancerUuid(se...
getSession().getAccountUuid());
1,701,924
boolean applyFilter(RepositoryRevision rev) {<NEW_LINE>boolean visible = true;<NEW_LINE>String filterText = txtFilter.getText().trim().toLowerCase();<NEW_LINE>Object selectedFilterKind = cmbFilterKind.getSelectedItem();<NEW_LINE>if (selectedFilterKind != FilterKind.ALL && !filterText.isEmpty()) {<NEW_LINE>if (selectedF...
toLowerCase().contains(filterText);
261,396
public static AMQP.BasicProperties copy(AMQP.BasicProperties props) {<NEW_LINE>AMQP.BasicProperties source = props;<NEW_LINE>if (source == null) {<NEW_LINE>source = MessageProperties.MINIMAL_BASIC;<NEW_LINE>}<NEW_LINE>AMQP.BasicProperties.Builder builder = new AMQP.BasicProperties.Builder();<NEW_LINE>builder.contentTyp...
deliveryMode(source.getDeliveryMode());
1,692,397
private void commitTx(final long txId) throws RemoteTransactionNotFoundException, RemoteTransactionValidationException {<NEW_LINE>final ConnectOptions opts = new ConnectOptions(mgr.getBaseServiceURL() + "/tx/" <MASK><NEW_LINE>opts.method = "POST";<NEW_LINE>opts.addRequestParam("COMMIT");<NEW_LINE>JettyResponseListener ...
+ Long.toString(txId));
962,946
protected Object doMapFromContext(DirContextOperations ctx) {<NEW_LINE>if (resultFilter != null && !resultFilter.needSelect(ctx.getNameInNamespace())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>result.put(LdapConstant.LDAP_DN_KEY, ctx.getNameInNamespace());<NEW_LI...
list = new ArrayList<>();
1,240,092
protected void migrateRealm(KeycloakSession session, ProtocolMapperModel localeMapper, RealmModel realm) {<NEW_LINE>realm.setOfflineSessionIdleTimeout(Constants.DEFAULT_OFFLINE_SESSION_IDLE_TIMEOUT);<NEW_LINE>if (realm.getRole(Constants.OFFLINE_ACCESS_ROLE) == null) {<NEW_LINE>KeycloakModelUtils.setupOfflineRole(realm)...
client.addRole(AdminRoles.CREATE_CLIENT);
1,698,376
public static BeginContactFlowVersionModificationResponse unmarshall(BeginContactFlowVersionModificationResponse beginContactFlowVersionModificationResponse, UnmarshallerContext context) {<NEW_LINE>beginContactFlowVersionModificationResponse.setRequestId(context.stringValue("BeginContactFlowVersionModificationResponse....
("BeginContactFlowVersionModificationResponse.ContactFlow.PhoneNumbers[" + i + "].RemainingTime"));
562,138
public void generateAccountSas() {<NEW_LINE>QueueServiceAsyncClient queueServiceAsyncClient = createAsyncClientWithCredential();<NEW_LINE>// BEGIN: com.azure.storage.queue.QueueServiceAsyncClient.generateAccountSas#AccountSasSignatureValues<NEW_LINE>AccountSasPermission permissions = new AccountSasPermission().setListP...
sas = queueServiceAsyncClient.generateAccountSas(sasValues);
261,552
public ProcessStatus restOrgChartData(final PwmRequest pwmRequest) throws IOException, PwmUnrecoverableException, ServletException {<NEW_LINE>final PeopleSearchProfile peopleSearchProfile = peopleSearchProfile(pwmRequest);<NEW_LINE>final PeopleSearchConfiguration peopleSearchConfiguration = new PeopleSearchConfiguratio...
throw new PwmUnrecoverableException(PwmError.ERROR_SERVICE_NOT_AVAILABLE);
482,570
final UpdateDatasetEntriesResult executeUpdateDatasetEntries(UpdateDatasetEntriesRequest updateDatasetEntriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDatasetEntriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,801,341
// ---------------------------------------------------------------- print<NEW_LINE>public void printBeans(final int width) {<NEW_LINE>final Print print = new Print();<NEW_LINE>print.line("Beans", width);<NEW_LINE>final List<BeanDefinition> beanDefinitionList = new ArrayList<>();<NEW_LINE>final String appName = appNameS...
, scopeName(beanDefinition), 10);
1,776,985
private boolean pivot() {<NEW_LINE>assert rmark[minr] < 0;<NEW_LINE>for (int j = 0; j < cmark.length; j++) {<NEW_LINE>if (cmark[j] == minr) {<NEW_LINE>assert rsel[minr] >= 0;<NEW_LINE>// Unmark column.<NEW_LINE>cmark[j] = -1;<NEW_LINE>// Mark row.<NEW_LINE>rmark[minr] = minc;<NEW_LINE>// Update rmin, because we removed...
final double cadjj = cadj[j];
1,821,813
public ThingGroupIndexingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ThingGroupIndexingConfiguration thingGroupIndexingConfiguration = new ThingGroupIndexingConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g...
class).unmarshall(context));
1,260,502
private void initTable(Rectangle maxBounds) {<NEW_LINE>table.setShowGrid(false);<NEW_LINE>table.setCellSelectionEnabled(true);<NEW_LINE>table.setAutoscrolls(false);<NEW_LINE>// +4 for icon<NEW_LINE>table.setRowHeight(table.getRowHeight() + 4);<NEW_LINE>// Get Graphics resp. FontRenderContext from an off-screen image<NE...
TableColumnModel columnModel = table.getColumnModel();
446,276
protected void generateMethodInvoker(MethodVisitor mv, Method method) {<NEW_LINE>int invokeOpcode;<NEW_LINE>if ((method.getModifiers() & STATIC) == 0) {<NEW_LINE>// context object is the instance whose method we want to call<NEW_LINE>mv.visitVarInsn(ALOAD, 1);<NEW_LINE><MASK><NEW_LINE>invokeOpcode = hostIsInterface ? I...
mv.visitTypeInsn(CHECKCAST, hostName);
1,533,557
synchronized protected void downloadAssetBundle(final AssetBundle assetBundle, HttpUrl baseUrl) {<NEW_LINE>Set<AssetBundle.Asset> missingAssets = new HashSet<AssetBundle.Asset>();<NEW_LINE>for (AssetBundle.Asset asset : assetBundle.getOwnAssets()) {<NEW_LINE>// Create containing directories for the asset if necessary<N...
.Asset cachedAsset = cachedAssetForAsset(asset);
249,147
public PeerComponent createBrowserComponent(Object browserComponent) {<NEW_LINE>synchronized (UiApplication.getEventLock()) {<NEW_LINE>BrowserField bff = new BrowserField();<NEW_LINE><MASK><NEW_LINE>bff.addListener(new BrowserFieldListener() {<NEW_LINE><NEW_LINE>public void documentError(BrowserField browserField, Docu...
final BrowserComponent cmp = (BrowserComponent) browserComponent;
1,622,014
public List<NetworkAddressAlias> loadLastUpdate(long timeBucket) {<NEW_LINE>StringBuilder query = new StringBuilder();<NEW_LINE>query.append("select * from ");<NEW_LINE>IoTDBUtils.addModelPath(client.getStorageGroup(), query, NetworkAddressAlias.INDEX_NAME);<NEW_LINE>IoTDBUtils.addQueryAsterisk(NetworkAddressAlias.INDE...
>(storageDataList.size());
298,306
private PlanFragment constructShuffleJoin(AbstractPhysicalJoin<PhysicalPlan, PhysicalPlan> physicalHashJoin, HashJoinNode hashJoinNode, PlanFragment leftFragment, PlanFragment rightFragment, PlanTranslatorContext context) {<NEW_LINE>hashJoinNode.setDistributionMode(HashJoinNode.DistributionMode.PARTITIONED);<NEW_LINE>/...
0).clone(null));
1,514,457
public void onTraversalStart() {<NEW_LINE>if (VALIDATE_GVCF) {<NEW_LINE>final SAMSequenceDictionary seqDictionary = getBestAvailableSequenceDictionary();<NEW_LINE>if (seqDictionary == null)<NEW_LINE>throw new UserException("Validating a GVCF requires a sequence dictionary but no dictionary was able to be constructed fr...
createReferenceReader(referenceArguments.getReferenceSpecifier());
1,516,013
public AggregationFunctionForge resolveAggregationFunction(String functionName, ClasspathExtensionAggregationFunction extension) throws ClasspathImportUndefinedException, ClasspathImportException {<NEW_LINE>Class inlined = extension.resolveAggregationFunction(functionName);<NEW_LINE>Class forgeClass;<NEW_LINE>String cl...
getClassForNameProvider().classForName(className);
192,538
public void validate() {<NEW_LINE>column.getArgumentDefinitions().forEach(arg -> {<NEW_LINE>verifyValues(arg, errorMsgPrefix);<NEW_LINE>verifyDefaultValue(arg, errorMsgPrefix);<NEW_LINE>});<NEW_LINE>List<Reference> references = parser.parse(table, column.getExpression());<NEW_LINE>ReferenceExtractor<LogicalReference> l...
).forEach(this::verifyLogicalReference);
1,713,267
private void addWaypoint(@Nullable GPXFile gpxFile, @NonNull MapActivity mapActivity) {<NEW_LINE>LatLon latLon = mapActivity.getMapView().getCurrentRotatedTileBox().getCenterLatLon();<NEW_LINE>boolean usePredefinedWaypoint = Boolean.parseBoolean(getParams().get(KEY_USE_PREDEFINED_WPT_APPEARANCE));<NEW_LINE>if (usePrede...
getParams().get(KEY_CATEGORY_NAME);
1,574,540
boolean planarSimplifyNoCrackingAndCluster(boolean OGCoutput, EditShape shape, int geom, ProgressTracker progress_tracker) {<NEW_LINE>m_bOGCOutput = OGCoutput;<NEW_LINE>m_topo_graph = new TopoGraph();<NEW_LINE>int rule = shape.getFillRule(geom);<NEW_LINE>int gt = shape.getGeometryType(geom);<NEW_LINE>if (rule != Polygo...
setAndSimplifyEditShapeWinding(shape, geom, progress_tracker);
486,312
private ByteBuf deserialize(ImmutableList<Cookie> sessionCookies) throws Exception {<NEW_LINE>if (sessionCookies.isEmpty()) {<NEW_LINE>return Unpooled.EMPTY_BUFFER;<NEW_LINE>}<NEW_LINE>StringBuilder sessionCookie = new StringBuilder();<NEW_LINE>for (Cookie cookie : sessionCookies) {<NEW_LINE>sessionCookie.append(cookie...
Unpooled.buffer(0, 0);
479,072
private void handle(APILogInByUserMsg msg) {<NEW_LINE>APILogInReply reply = new APILogInReply();<NEW_LINE>String accountUuid;<NEW_LINE>if (msg.getAccountUuid() != null) {<NEW_LINE>accountUuid = msg.getAccountUuid();<NEW_LINE>} else {<NEW_LINE>SimpleQuery<AccountVO> accountq = dbf.createQuery(AccountVO.class);<NEW_LINE>...
EQ, msg.getPassword());
964,968
public void loadData(FileObject file, FileLock dataLock) throws IOException {<NEW_LINE>try {<NEW_LINE>BufferedInputStream inputStream = new <MASK><NEW_LINE>String encoding = encodingHelper.detectEncoding(inputStream);<NEW_LINE>if (!encodingHelper.getEncoding().equals(encoding)) {<NEW_LINE>showUsingDifferentEncodingMess...
BufferedInputStream(file.getInputStream());
1,678,926
private List<String[]> fetchData(String[][] fieldsData, Query<? extends Model> query, Map<String, String> selectMap, ResourceBundle bundle) {<NEW_LINE>List<String[]> dataList = new ArrayList<>();<NEW_LINE>dataList.add(fieldsData[1]);<NEW_LINE>List<Map> records = query.select(fieldsData[0]).fetch(0, 0);<NEW_LINE>for (Ma...
object = recordMap.get(field);
946,606
// GEN-LAST:event_createNewPlatform<NEW_LINE>private void librariesBrowseActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_librariesBrowseActionPerformed<NEW_LINE>if (!isSharable) {<NEW_LINE>boolean result = makeSharable(uiProperties);<NEW_LINE>if (result) {<NEW_LINE>isSharable = true;<NEW_L...
uiProperties.JAVAC_CLASSPATH_MODEL.getDefaultListModel());
904,735
public void addEnvironment(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, LanguageException, DotSecurityException {<NEW_LINE>try {<NEW_LINE>String identifier = request.getParameter("identifier");<NEW_LINE>if (UtilMethods.isSet(identifier)) {<NEW_LINE>editEnvironment(requ...
eAPI.saveEnvironment(environment, permissions);
721,640
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>baseRequest.setHandled(true);<NEW_LINE>response.setContentType(CONTENT_TYPE);<NEW_LINE>final String message;<NEW_LINE>final javax.ws.rs.core.Response.Status status;<NEW_LINE>if ...
.core.Response.Status.INTERNAL_SERVER_ERROR;
736,721
public static boolean writeConfiguration(ApdConfiguration apdConfiguration) throws IOException {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "Start"));<NEW_LINE>if (apdConfiguration == null) {<NEW_LINE>Common.logger.add(new LogEntry<MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FileWriter apdConfi...
(LogEntry.PB_LOG_ERROR, "apdConfiguration not valid"));
587,481
final BatchGetAggregateResourceConfigResult executeBatchGetAggregateResourceConfig(BatchGetAggregateResourceConfigRequest batchGetAggregateResourceConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetAggregateResourceConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
198,422
public List<AutoScalingGroup> describeAutoScalingGroups(String... names) {<NEW_LINE>if (names == null || names.length == 0) {<NEW_LINE>LOGGER.info(String.format("Getting all auto-scaling groups in region %s.", region));<NEW_LINE>} else {<NEW_LINE>LOGGER.info(String.format("Getting auto-scaling groups for %d names in re...
, names.length, region));
1,327,962
public static void motan2XmlCommonClientDemo(CommonHandler client) throws Throwable {<NEW_LINE>System.out.println(client.call("hello", new Object[] { <MASK><NEW_LINE>User user = new User(1, "AAA");<NEW_LINE>System.out.println(user);<NEW_LINE>user = (User) client.call("rename", new Object[] { user, "BBB" }, User.class);...
"a" }, String.class));
400,901
private <T> T allowStaticAccessToMember(final T member, final boolean staticOnly) {<NEW_LINE>if (member == null)<NEW_LINE>return null;<NEW_LINE>if (!staticOnly)<NEW_LINE>return member;<NEW_LINE>boolean isStatic;<NEW_LINE>if (member instanceof Variable) {<NEW_LINE>Variable v = (Variable) member;<NEW_LINE>isStatic = Modi...
(T) Collections.emptyList();
849,062
public void readAttributes(String qname, Attributes attributes) throws SAXException {<NEW_LINE>final String METHOD = "readAttributes";<NEW_LINE>if (readData) {<NEW_LINE>try {<NEW_LINE>String id = attributes.getValue("name");<NEW_LINE>if (id != null && id.length() > 0) {<NEW_LINE>if (attributes.getValue("port").startsWi...
result.put(id, data);
150,850
public List<ResourcePersistentId> resolveResourcePersistentIdsWithCache(RequestPartitionId theRequestPartitionId, List<IIdType> theIds, boolean theOnlyForcedIds) {<NEW_LINE>assert myDontCheckActiveTransactionForUnitTest || TransactionSynchronizationManager.isSynchronizationActive();<NEW_LINE>List<ResourcePersistentId> ...
MemoryCacheService.CacheEnum.FORCED_ID_TO_PID, key);
38,004
public Problem prepare(final RefactoringElementsBag elementsBag) {<NEW_LINE>this.usages.clearResults();<NEW_LINE>if (isFindOverridingMethods()) {<NEW_LINE>usages.overridingMethods();<NEW_LINE>}<NEW_LINE>if (isFindSubclasses()) {<NEW_LINE>usages.collectSubclasses();<NEW_LINE>} else if (isFindDirectSubclassesOnly()) {<NE...
elementsBag, usages.getDeclarationFileObject());
78,020
public int readLength() {<NEW_LINE><MASK><NEW_LINE>if (type >= BC_INT32_NUM_MIN && type <= BC_INT32_NUM_MAX) {<NEW_LINE>return type;<NEW_LINE>}<NEW_LINE>if (type >= BC_INT32_BYTE_MIN && type <= BC_INT32_BYTE_MAX) {<NEW_LINE>return ((type - BC_INT32_BYTE_ZERO) << 8) + (bytes[offset++] & 0xFF);<NEW_LINE>}<NEW_LINE>if (ty...
byte type = bytes[offset++];
1,210,579
public SchemaConfig deserialize(final JsonParser jsonParser, final DeserializationContext context) throws JsonMappingException {<NEW_LINE>final JsonNode node;<NEW_LINE>try {<NEW_LINE>node = OBJECT_MAPPER.readTree(jsonParser);<NEW_LINE>} catch (final JsonParseException ex) {<NEW_LINE>throw JsonMappingException.from(json...
"Expected array to deserialize SchemaConfig", jsonParser.getCurrentLocation());
1,674,402
public static void validateProtocolConfig(ProtocolConfig config) {<NEW_LINE>if (config != null) {<NEW_LINE>String name = config.getName();<NEW_LINE>checkName("name", name);<NEW_LINE>checkHost(HOST_KEY, config.getHost());<NEW_LINE>checkPathName("contextpath", config.getContextpath());<NEW_LINE>if (DUBBO_PROTOCOL.equals(...
CODEC_KEY, config.getCodec());
1,108,491
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>items.add(new TitleItem(getString(R.string.gpx_split_interval)));<NEW_LINE>LayoutInflater themedInflater = UiUtilities.getInflater(requireContext(), nightMode);<NEW_LINE>View view = themedInflater.inflate(<MASK><NEW_LINE>sliderContainer = view.findViewBy...
R.layout.track_split_interval, null);
1,504,118
private String createManifest() throws IOException {<NEW_LINE>Document doc = new Document();<NEW_LINE>Element root = new Element(ITemplateXMLTags.XML_TEMPLATE_ELEMENT_MANIFEST);<NEW_LINE>doc.setRootElement(root);<NEW_LINE>// Type<NEW_LINE>root.setAttribute(ITemplateXMLTags.XML_TEMPLATE_ATTRIBUTE_TYPE, ArchimateModelTem...
= new Element(ITemplateXMLTags.XML_TEMPLATE_ELEMENT_NAME);
567,401
protected Iterable<CharSequence> contexts() {<NEW_LINE>Set<CharsRef> <MASK><NEW_LINE>final CharsRefBuilder scratch = new CharsRefBuilder();<NEW_LINE>scratch.grow(1);<NEW_LINE>for (int typeId = 0; typeId < contextMappings.size(); typeId++) {<NEW_LINE>scratch.setCharAt(0, (char) typeId);<NEW_LINE>scratch.setLength(1);<NE...
typedContexts = new HashSet<>();
417,053
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>getSerializedSize();<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeMessage(1, conversation_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writ...
output.writeInt64(4, messageId_);
414,867
public void processMessage(WebSocketMessage webSocketData) throws FrameworkException {<NEW_LINE>setDoTransactionNotifications(true);<NEW_LINE>// default: list start | pause | resume | cancel | abort | cancelAllAfter<NEW_LINE>final String mode = webSocketData.getNodeDataStringValue("mode");<NEW_LINE>final Long jobId ...
).send(webSocketData, true);
240,750
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>removeTimedOutStreams();<NEW_LINE>String requestURI = req.getRequestURI();<NEW_LINE>if (requestURI == null) {<NEW_LINE>resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "requestURI is null")...
transferTo(resp.getOutputStream());
1,141,520
private void updatePinViewHolder(PinViewHolder holder, Pin pin) {<NEW_LINE>CharSequence text = pin.loadable.title;<NEW_LINE>if (pin.archived) {<NEW_LINE>text = TextUtils.concat(PostHelper.addIcon(PostHelper.archivedIcon, sp(14 + 2)), text);<NEW_LINE>}<NEW_LINE>holder.textView.setText(text);<NEW_LINE>holder.image.setUrl...
holder.watchCountText.setTextColor(0xff898989);
357,480
public static DescribeLoadBalancerAttributeResponse unmarshall(DescribeLoadBalancerAttributeResponse describeLoadBalancerAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLoadBalancerAttributeResponse.setRequestId(_ctx.stringValue("DescribeLoadBalancerAttributeResponse.RequestId"));<NEW_LINE>describeLoadB...
("DescribeLoadBalancerAttributeResponse.ListenerPortsAndProtocols[" + i + "].Description"));
1,401,097
public void decorate(World world, Random random, Chunk source) {<NEW_LINE>int sourceX = (source.getX() << 4) + random.nextInt(16);<NEW_LINE>int sourceZ = (source.getZ() << 4) + random.nextInt(16);<NEW_LINE>int sourceY = random.nextInt(world.getHighestBlockYAt(sourceX, sourceZ) << 1);<NEW_LINE>while (world.getBlockAt(so...
) - random.nextInt(8);
408,331
private static synchronized List<PermutationWorkerFactory> createAll(TreeLogger logger) throws UnableToCompleteException {<NEW_LINE>// NB: This is the much-derided FactoryFactory pattern<NEW_LINE>logger = logger.branch(TreeLogger.TRACE, "Creating PermutationWorkerFactory instances");<NEW_LINE>List<PermutationWorkerFact...
= new ArrayList<PermutationWorkerFactory>();
262,492
// create a TermDeposit trade<NEW_LINE>private static Trade createTrade2() {<NEW_LINE>TermDeposit td = TermDeposit.builder().buySell(BuySell.BUY).startDate(LocalDate.of(2014, 12, 12)).endDate(LocalDate.of(2015, 12, 12)).businessDayAdjustment(BusinessDayAdjustment.of(FOLLOWING, HolidayCalendarIds.GBLO)).currency(Currenc...
build()).build();
1,779,837
public void serializeImpl(ByteBuffer buffer) {<NEW_LINE>buffer.put((byte) <MASK><NEW_LINE>// distinguish the plan from that of old versions<NEW_LINE>buffer.putInt(PLAN_SINCE_0_14);<NEW_LINE>byte[] bytes = prefixPath.getFullPath().getBytes();<NEW_LINE>buffer.putInt(bytes.length);<NEW_LINE>buffer.put(bytes);<NEW_LINE>Rea...
PhysicalPlanType.CREATE_ALIGNED_TIMESERIES.ordinal());
1,308,037
private ArrayList<Permission> _getSelectedPermissions(ActionRequest req, Contentlet con) {<NEW_LINE>ArrayList<Permission> pers = new ArrayList<Permission>();<NEW_LINE>String[] readPermissions = req.getParameterValues("read");<NEW_LINE>if (readPermissions != null) {<NEW_LINE>for (int k = 0; k < readPermissions.length; k...
writePermissions = req.getParameterValues("write");
42,132
public boolean mineBlock() {<NEW_LINE>// if miner server was stopped for some reason, we don't mine.<NEW_LINE>if (stop) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>MinerWork work = minerServer.getWork();<NEW_LINE>co.rsk.bitcoinj.core.NetworkParameters bitcoinNetworkParameters = co.rsk.bitcoinj.params.RegTestParams.get...
work.getBlockHashForMergedMining(), bitcoinMergedMiningBlock);
318,112
public UpdateResolverDnssecConfigResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateResolverDnssecConfigResult updateResolverDnssecConfigResult = new UpdateResolverDnssecConfigResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
int originalDepth = context.getCurrentDepth();
217,337
private Mono<Response<DomainAvailabilityInner>> checkDomainAvailabilityWithResponseAsync(CheckDomainAvailabilityParameter parameters) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalA...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,850,998
private boolean isClassOf(Element e, Class providerClass) {<NEW_LINE>switch(e.getKind()) {<NEW_LINE>case CLASS:<NEW_LINE>{<NEW_LINE>TypeElement te = (TypeElement) e;<NEW_LINE>TypeMirror superType = te.getSuperclass();<NEW_LINE>if (superType.getKind().equals(TypeKind.NONE)) {<NEW_LINE>return false;<NEW_LINE>} else {<NEW...
TypeElement) e).toString();
1,009,767
public void invoke(Request request, Response response) throws IOException, ServletException {<NEW_LINE>Exception ex = null;<NEW_LINE>Span handleReceive = httpServerHandler().handleReceive(HttpServletRequestWrapper.create(request.getRequest()));<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Created a server r...
debug("Handled send of span [" + handleReceive + "]");