idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
64,394
public org.bukkit.entity.Entity createEntity(Location location, BaseEntity state) {<NEW_LINE>checkNotNull(location);<NEW_LINE>checkNotNull(state);<NEW_LINE>CraftWorld craftWorld = ((CraftWorld) location.getWorld());<NEW_LINE>ServerLevel worldServer = craftWorld.getHandle();<NEW_LINE>Entity createdEntity = createEntityF...
addFreshEntity(createdEntity, SpawnReason.CUSTOM);
1,048,622
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtTextSet = "@name('set') on SupportBean_S0 set var1IF = p00";<NEW_LINE>env.compileDeploy(stmtTextSet).addListener("set");<NEW_LINE>String[] fieldsVar <MASK><NEW_LINE>env.assertPropsPerRowIterator("set", fieldsVar, new Object[][] { { null } });<NEW_LINE>Str...
= new String[] { "var1IF" };
413,080
protected void createPartitionSublists() {<NEW_LINE>final Pair<Collection<Path><MASK><NEW_LINE>List<PartitionLocation> locations = new LinkedList<>();<NEW_LINE>boolean hasDirsOnly = fileLocationsAndStatus.getRight();<NEW_LINE>final Path selectionRoot = getBaseTableLocation();<NEW_LINE>// map used to map the partition k...
, Boolean> fileLocationsAndStatus = getFileLocationsAndStatus();
1,099,685
public boolean enoughToFilter() {<NEW_LINE>String substringCursor = getText().toString(<MASK><NEW_LINE>Matcher matcherEdit = INTERNOTE_LINK_PATTERN_EDIT.matcher(substringCursor);<NEW_LINE>// When an internote link title is being edited, don't show an autocomplete popup.<NEW_LINE>if (matcherEdit.lookingAt()) {<NEW_LINE>...
).substring(getSelectionEnd());
874,038
public void paintComponent(Graphics2D g2d) {<NEW_LINE>if ((!drawPolygon) && (!isDrawLine()))<NEW_LINE>return;<NEW_LINE>if (polygon == null) {<NEW_LINE>// don't recompute polygon for each paint event<NEW_LINE>polygon = computePolygon(getModelChart(), getModelChart().getModel());<NEW_LINE>}<NEW_LINE>clippedPolygon = init...
ypoints, clippedPolygon.npoints - 1);
474,891
static void encode(NDArray array, OutputStream os) throws IOException {<NEW_LINE>DataOutputStream dos = new DataOutputStream(os);<NEW_LINE>// magic string for version identification<NEW_LINE>dos.writeUTF(MAGIC_NUMBER);<NEW_LINE>dos.writeInt(VERSION);<NEW_LINE>String name = array.getName();<NEW_LINE>if (name == null) {<...
Shape shape = array.getShape();
1,162,726
public void saveAs(String path) throws IOException {<NEW_LINE>Storage storage = getStorage();<NEW_LINE>if (storage == null) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IOException("Data has already been disposed");<NEW_LINE>}<NEW_LINE>FileOutputStream fos = new FileOutputStream(path);<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_...
CharBuffer cb = br.getBuffer();
627,525
public static ScoredDocuments fromQrels(Map<String, Integer> qrels, IndexReader reader) throws IOException {<NEW_LINE>ScoredDocuments scoredDocs = new ScoredDocuments();<NEW_LINE>List<Document> documentList = new ArrayList<>();<NEW_LINE>List<Integer> idList = new ArrayList<>();<NEW_LINE>List<Float> scoreList = new Arra...
().floatValue()));
73,655
private void loadSettings() {<NEW_LINE>// Get the settings preferences<NEW_LINE>SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this);<NEW_LINE>mVibrateOn = sp.getBoolean(PREF_VIBRATE_ON, false);<NEW_LINE>mVibrateLen = getPrefInt(sp, PREF_VIBRATE_LEN, getResources().getString(R.string.vibrate_durat...
(R.string.voice_mode_main));
1,276,655
public AwsEcsServicePlacementStrategiesDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsEcsServicePlacementStrategiesDetails awsEcsServicePlacementStrategiesDetails = new AwsEcsServicePlacementStrategiesDetails();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurren...
int originalDepth = context.getCurrentDepth();
669,785
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,320,973
public boolean tryFillFromExpr(SQLExpr expr) throws SqlParseException {<NEW_LINE>if (!(expr instanceof SQLMethodInvokeExpr))<NEW_LINE>return false;<NEW_LINE>SQLMethodInvokeExpr method = (SQLMethodInvokeExpr) expr;<NEW_LINE>String methodName = method.getMethodName();<NEW_LINE>if (!methodName.toLowerCase().equals("childr...
Where where = Where.newInstance();
1,612,600
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LI...
setId(o.getId());
513,456
public ListFraudsterRegistrationJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListFraudsterRegistrationJobsResult listFraudsterRegistrationJobsResult = new ListFraudsterRegistrationJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
JsonToken token = context.getCurrentToken();
831,628
public CompositeModelProperty unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CompositeModelProperty compositeModelProperty = new CompositeModelProperty();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
class).unmarshall(context));
716,813
private Mono<ResourceResponse<UserDefinedFunction>> deleteUserDefinedFunctionInternal(String udfLink, RequestOptions options, DocumentClientRetryPolicy retryPolicyInstance) {<NEW_LINE>// we are using an observable factory here<NEW_LINE>// observable will be created fresh upon subscription<NEW_LINE>// this is to ensure ...
ResourceType.UserDefinedFunction, OperationType.Delete);
1,277,968
private char[] filterTag(final char[] content, final char quotechar, final String tagname, final boolean opening) {<NEW_LINE>assert tagname != null;<NEW_LINE>if (this.tagStack.size() == 0) {<NEW_LINE>// we are not collection tag text -> case (1) - (3)<NEW_LINE>// we have a new tag<NEW_LINE>if (opening) {<NEW_LINE>// ca...
(filterTagOpening(tagname, content));
882,617
public static String typeStr(ArgType type) {<NEW_LINE>if (type == null) {<NEW_LINE>return "null";<NEW_LINE>}<NEW_LINE>if (type.isObject()) {<NEW_LINE>if (type.isGenericType()) {<NEW_LINE>return type.getObject();<NEW_LINE>}<NEW_LINE>ArgType wt = type.getWildcardType();<NEW_LINE>if (wt != null) {<NEW_LINE>ArgType.<MASK><...
WildcardBound bound = type.getWildcardBound();
653,487
public static void createMemoryDump(@NonNull final Activity context) {<NEW_LINE>Toast.makeText(context, R.string.init_please_wait, Toast.LENGTH_LONG).show();<NEW_LINE>final File file = ContentStorage.get().createTempFile();<NEW_LINE>new Handler(Looper.getMainLooper()).postDelayed(() -> {<NEW_LINE>try {<NEW_LINE>android...
dumpHprofData(file.getPath());
244,530
protected void createPasswordControls(Composite parent, Runnable propertyChangeListener) {<NEW_LINE>passwordLabel = UIUtils.createLabel(parent, getPasswordFieldLabel());<NEW_LINE>passwordLabel.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));<NEW_LINE>passPlaceholder = UIUtils.createComposite(parent, 2)...
null || dataSource.isSavePassword());
1,261,108
public BatchGetChannelResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchGetChannelResult batchGetChannelResult = new BatchGetChannelResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
)).unmarshall(context));
434,111
public void process(final HttpServletRequest request, final HttpServletResponse response, final FilterChain chain) throws IOException, ServletException {<NEW_LINE>final RequestManager requestManager = ComponentUtil.getRequestManager();<NEW_LINE>if (!requestManager.findUserBean(FessUserBean.class).map(user -> user.hasRo...
), e.getMessage());
1,372,443
public static boolean canAccessInfo(String infoWindowName) {<NEW_LINE>boolean result = false;<NEW_LINE>int roleid = Env.getAD_Role_ID(Env.getCtx());<NEW_LINE>String sqlRolePermission = "Select COUNT(AD_ROLE_ID) AS ROWCOUNT FROM AD_ROLE WHERE AD_ROLE_ID=" + roleid + " AND ALLOW_INFO_" + infoWindowName + "='Y'";<NEW_LINE...
Level.SEVERE, "(1)", e);
309,546
private ComboBox<T> createFilteredComboBox() {<NEW_LINE>ComboBox<T> box = new ComboBox<>();<NEW_LINE>box.setId("filtered");<NEW_LINE>box.getStyleClass().add("combo-box-filtered");<NEW_LINE>box.setFocusTraversable(false);<NEW_LINE>// unidirectional bindings -- copy values from skinnable<NEW_LINE>Bindings.bindContent(box...
getSkinnable().promptTextProperty());
692,318
public LambdaAuthorizerConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LambdaAuthorizerConfig lambdaAuthorizerConfig = new LambdaAuthorizerConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
JsonToken token = context.getCurrentToken();
1,639,285
private Mono<Response<Void>> restartWithResponseAsync(String resourceGroup, String integrationServiceEnvironmentName, 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_...
getApiVersion(), accept, context);
277,050
private Offset checkSignatures(Program program) {<NEW_LINE>int magicLen = ISO9660Constants.MAGIC_BYTES.length;<NEW_LINE>byte[] signatureArray = new byte[magicLen];<NEW_LINE>try {<NEW_LINE>Options options = program.getOptions("Program Information");<NEW_LINE>String format = options.getString("Executable Format", null);<...
program.getMemory(), addressSpace);
971,362
public SpecificTag toNbt() {<NEW_LINE>CompoundTag root = new CompoundTag();<NEW_LINE>addPosition(root);<NEW_LINE>// write velocity as 0, we'd rather have entities become stationary<NEW_LINE>List<DoubleTag> motion = Arrays.asList(new DoubleTag(0), new DoubleTag(0), new DoubleTag(0));<NEW_LINE>root.add("Motion", new List...
(uuid.getLower()));
536,229
final ListResourceRecordSetsResult executeListResourceRecordSets(ListResourceRecordSetsRequest listResourceRecordSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourceRecordSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
(super.beforeMarshalling(listResourceRecordSetsRequest));
1,114,554
public void marshall(OrderSummary orderSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (orderSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(orde...
orderSummary.getOutpostId(), OUTPOSTID_BINDING);
1,004,896
public JsonProcessCompositeResponse processOLCands(@NonNull final JsonOLCandProcessRequest request) {<NEW_LINE>final AsyncBatchId <MASK><NEW_LINE>final JsonOLCandClearingResponse clearingResponse = clearOLCandidates(request.getInputDataSourceName(), request.getExternalHeaderId(), asyncBatchId);<NEW_LINE>final JsonOLCan...
asyncBatchId = asyncBatchBL.newAsyncBatch(C_Async_Batch_InternalName_OLCand_Processing);
1,669,361
static void updateNavigationViewLayout(int screenWidth, @NonNull DrawerLayout drawerLayout, @NonNull NavigationView modalNavDrawer, @Nullable FloatingActionButton fab, @NonNull BottomNavigationView bottomNav, @NonNull NavigationRailView navRail, @NonNull NavigationView navDrawer, @NonNull ExtendedFloatingActionButton n...
bottomNav.setVisibility(View.GONE);
95,003
public static UUID createHashicorpCAConfig(UUID customerUUID, String label, String storagePath, HashicorpVaultConfigParams hcVaultParams) throws Exception {<NEW_LINE>if (Strings.isNullOrEmpty(hcVaultParams.vaultAddr) || Strings.isNullOrEmpty(hcVaultParams.vaultToken) || Strings.isNullOrEmpty(hcVaultParams.engine) || St...
throw new PlatformServiceException(BAD_REQUEST, message);
959,438
private static void uploadFile(UnitClient uc, File file, String dstPathName, boolean isMove, boolean isY) throws Exception {<NEW_LINE>// if (file.isDirectory()) {<NEW_LINE>// File[] subFiles = file.listFiles();<NEW_LINE>// for (int i = 0; i < subFiles.length; i++) {<NEW_LINE>// File subFile = subFiles[i];<NEW_LINE>// u...
(file.lastModified()));
1,194,420
protected void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>// handle result of pick image chooser<NEW_LINE>if (requestCode == CropImageConsts.PICK_IMAGE_CHOOSER_REQUEST_CODE) {<NEW_LINE>if (resultCode == Activity.RESULT_CANCEL...
.READ_EXTERNAL_STORAGE }, CropImageConsts.PICK_IMAGE_PERMISSIONS_REQUEST_CODE);
1,117,325
private void processFunction(@NotNull final Project project, @NotNull final ErlangFunction function, @Nullable Editor editor) {<NEW_LINE>if (!(function.getContainingFile() instanceof ErlangFile))<NEW_LINE>return;<NEW_LINE>ErlangFile file = (ErlangFile) function.getContainingFile();<NEW_LINE>List<ErlangExport> exports =...
ErlangExport) exportPopupList.getSelectedValue());
1,608,956
public RedisFuture<List<KeyValue<K, V>>> mget(Iterable<K> keys) {<NEW_LINE>Map<Integer, List<K>> partitioned = SlotHash.partition(codec, keys);<NEW_LINE>if (partitioned.size() < 2) {<NEW_LINE>return super.mget(keys);<NEW_LINE>}<NEW_LINE>// For a given partition, maps the key to its index within the List<K> in partition...
slots = SlotHash.getSlots(partitioned);
1,596,110
public final void allToAllv(Object sendbuf, int[] sendcount, int[] sdispls, Datatype sendtype, Object recvbuf, int[] recvcount, int[] rdispls, Datatype recvtype) throws MPIException {<NEW_LINE>MPI.check();<NEW_LINE><MASK><NEW_LINE>boolean sdb = false, rdb = false;<NEW_LINE>if (sendbuf instanceof Buffer && !(sdb = ((Buf...
int sendoff = 0, recvoff = 0;
876,427
public QuarkusCommandOutcome execute(MessageWriter log) throws QuarkusCommandException {<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>catalog.createProject(input).generate(newExtensionDir);<NEW_LINE>final String extensionDirName = newExtensionDir.getFileName().toString();<NEW_LINE>if (extensionsParentDir != null) {<NE...
QuarkusExtensionCodestartCatalog catalog = QuarkusExtensionCodestartCatalog.fromBaseCodestartsResources();
1,850,378
public static URL convertRequestToUrl(Request<?> request, boolean removeLeadingSlashInResourcePath, boolean urlEncode) {<NEW_LINE>String resourcePath = urlEncode ? HttpUtils.urlEncode(request.getResourcePath(), true) : request.getResourcePath();<NEW_LINE>// Removed the padding "/" that was already added into the reques...
) : queryParams.append("?");
978,428
public static void writeMBID(final String mBID, InputStream cover) {<NEW_LINE>boolean trace = LOGGER.isTraceEnabled();<NEW_LINE>try (Connection connection = MediaDatabase.get().getConnectionIfAvailable()) {<NEW_LINE>String query = "SELECT * FROM " + TABLE_NAME + contructMBIDWhere(mBID) + " LIMIT 1";<NEW_LINE>if (trace)...
LOGGER.trace("Searching for Cover Art Archive cover with \"{}\" before update", query);
1,782,064
public void testJMS2MessageOrderingSingleProducer() throws JMSException, InterruptedException {<NEW_LINE>clearQueue(queueOne_);<NEW_LINE>messageOrderListener_.reset();<NEW_LINE>messageOrderListener_.setExpectedMessageCount(5);<NEW_LINE>int i = 0;<NEW_LINE>int outOfOrderCount = 0;<NEW_LINE>try (JMSContext context = queu...
Message message = context.createMessage();
1,654,350
public void run() {<NEW_LINE>identified.lastKeepAliveReceived = System.currentTimeMillis();<NEW_LINE>unidentified.lastKeepAliveReceived = System.currentTimeMillis();<NEW_LINE>while (shouldKeepRunning && isKeepAliveNecessary()) {<NEW_LINE>try {<NEW_LINE>sleepTimer.sleep(KEEP_ALIVE_SEND_CADENCE);<NEW_LINE>if (shouldKeepR...
unidentified.lastKeepAliveReceived + " needed by: " + keepAliveRequiredSinceTime);
478,814
final BatchDisassociateResourcesFromCustomLineItemResult executeBatchDisassociateResourcesFromCustomLineItem(BatchDisassociateResourcesFromCustomLineItemRequest batchDisassociateResourcesFromCustomLineItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDisassociateResourcesFromCustom...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchDisassociateResourcesFromCustomLineItem");
430,821
final CreateReplicationJobResult executeCreateReplicationJob(CreateReplicationJobRequest createReplicationJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createReplicationJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
184,803
public void upsertEntity() {<NEW_LINE>TableAsyncClient tableAsyncClient = createAsyncClient();<NEW_LINE>// BEGIN: com.azure.data.tables.tableAsyncClient.upsertEntity#TableEntity<NEW_LINE>String partitionKey = "partitionKey";<NEW_LINE>String rowKey = "rowKey";<NEW_LINE>TableEntity tableEntity = new TableEntity(partition...
).addProperty("Property", "Value");
586,447
private void generateRelationshipFile(org.odpi.openmetadata.fvt.opentypes.model.OmrsBeanRelationship omrsBeanRelationship, String fileName, String pkg) throws IOException {<NEW_LINE>FileWriter outputFileWriter = null;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>outputFileWriter = new FileWriter(fileN...
put("entityProxy1Name", omrsBeanRelationship.entityProxy1Name);
526,241
protected IMetaStoreClient createNewResource() throws IOException {<NEW_LINE>// Hive uses/saves the thread context class loader.<NEW_LINE>ClassLoader currentClassLoader = Thread<MASK><NEW_LINE>try {<NEW_LINE>// use the extension class loader<NEW_LINE>Thread.currentThread().setContextClassLoader(this.getClass().getClass...
.currentThread().getContextClassLoader();
340,389
private void login() {<NEW_LINE>try {<NEW_LINE>UserInfo userInfo <MASK><NEW_LINE>accountExpiresProperty().setValue(userInfo.getExpirationDate());<NEW_LINE>mLoginStatus = CheckExpDate(userInfo.getExpirationDate());<NEW_LINE>if (mLoginStatus == LoginStatus.VALID_PREMIUM) {<NEW_LINE>availableProperty().set(true);<NEW_LINE...
= getService().getUserInfo();
219,068
// prepareIt<NEW_LINE>private void checkCreditLimit() {<NEW_LINE>if (!isCheckCreditLimitNeeded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IBPartnerStatsDAO bpartnerStatsDAO = <MASK><NEW_LINE>final IBPartnerStatsBL bpartnerStatsBL = Services.get(IBPartnerStatsBL.class);<NEW_LINE>final I_C_BPartner partner = Interfa...
Services.get(IBPartnerStatsDAO.class);
1,115,919
private boolean insertDocAsterisk(int lineStart, boolean docAsterisk, boolean previousLineIndentUsed, CodeDocumentationAwareCommenter commenter) {<NEW_LINE>PsiDocumentManager.getInstance(myProject).commitDocument(myDocument);<NEW_LINE>PsiElement atLineStart = myFile.findElementAt(lineStart);<NEW_LINE>if (atLineStart ==...
myDocument.insertString(myOffset, toInsert);
407,332
public static void updateCurrentTrack(View v, final Activity ctx, final OsmandApplication app) {<NEW_LINE>final OsmandMonitoringPlugin plugin = OsmandPlugin.getActivePlugin(OsmandMonitoringPlugin.class);<NEW_LINE>if (v == null || ctx == null || app == null || plugin == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final...
(R.drawable.ic_action_distance_16));
1,791,580
public void doPostCleanup(BibEntry entry) {<NEW_LINE>// CiteSeer escapes some characters in a way that is not recognized by the normal html to unicode formatter<NEW_LINE>// We, of course, also want to convert these special characters<NEW_LINE>Formatter extendedHtmlFormatter = new HtmlToUnicodeFormatter() {<NEW_LINE><NE...
formatted = super.format(fieldText);
1,223,110
public static ImageView forNode(Document node) {<NEW_LINE>requireNonNull(node);<NEW_LINE>final Optional<String> path = Optional.of(node).filter(HasIconPath.class::isInstance).map(HasIconPath.class::cast).map(HasIconPath::getIconPath);<NEW_LINE>if (path.isPresent()) {<NEW_LINE>final InputStream stream = SpeedmentIcon.cl...
.isView() ? TABLE_LINK : TABLE;
1,249,075
public static RestException buildRestException(RestLiResponseException restLiResponseException, boolean writableStackTrace, ContentType contentType) {<NEW_LINE>RestLiResponse restLiResponse = restLiResponseException.getRestLiResponse();<NEW_LINE>RestResponseBuilder responseBuilder = new RestResponseBuilder().setHeaders...
HEADER_CONTENT_TYPE, contentType.getHeaderKey());
666,259
public DeliveryOrder save(@NonNull final DeliveryOrder deliveryOrder) {<NEW_LINE>final I_DerKurier_DeliveryOrder headerRecord;<NEW_LINE>if (deliveryOrder.getId() == null) {<NEW_LINE>headerRecord = newInstance(I_DerKurier_DeliveryOrder.class);<NEW_LINE>} else {<NEW_LINE>headerRecord = loadAssumeRecordExists(deliveryOrde...
PackageDimensions packageDimensions = deliveryPosition.getPackageDimensions();
382,861
private DataEntryLayout retrieveByWindowId(@NonNull final AdWindowId adWindowId) {<NEW_LINE>final ImmutableList<<MASK><NEW_LINE>final I_AD_Tab firstADTab = Services.get(IADWindowDAO.class).retrieveFirstTab(adWindowId);<NEW_LINE>if (firstADTab == null) {<NEW_LINE>throw new AdempiereException("@NotFound@ @AD_Tab_ID@: (@A...
I_DataEntry_Tab> tabRecords = retrieveTabRecords(adWindowId);
1,107,729
// NoSuchElementException is thrown by {@link Deque#element()} when it's empty<NEW_LINE>@SuppressWarnings("squid:S2272")<NEW_LINE>public IterationElement next() {<NEW_LINE>IterationElement visitingElement = visiting.element();<NEW_LINE>Trie node = visitingElement.getNode();<NEW_LINE>Trie rightNode = node.retrieveNode((...
visitingRightChild.push(Boolean.FALSE);
712,771
public com.amazonaws.services.dataexchange.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dataexchange.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.dataexchange.model.ResourceNotFoundExce...
class).unmarshall(context));
950,919
public Set<N> predecessors() {<NEW_LINE>return new AbstractSet<N>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public UnmodifiableIterator<N> iterator() {<NEW_LINE>if (orderedNodeConnections == null) {<NEW_LINE>Iterator<Entry<N, Object>> entries = adjacentNodeValues.entrySet().iterator();<NEW_LINE>return new AbstractItera...
> entry = entries.next();
371,003
private DatabaseAccountUpdateParameters updateParametersInner(DatabaseAccountGetResultsInner inner) {<NEW_LINE>this.ensureFailoverIsInitialized();<NEW_LINE>DatabaseAccountUpdateParameters updateParameters = new DatabaseAccountUpdateParameters();<NEW_LINE>updateParameters.withTags(inner.tags());<NEW_LINE>updateParameter...
withCapabilities(inner.capabilities());
1,372,596
@Path("/namespace/{namespace}")<NEW_LINE>@ApiOperation(value = "Get all metrics of a namespace")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 404, message = "No such metric namespace") })<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public MetricsSummaryResponse byNamespace(@ApiParam(name = "namespac...
String metricName = e.getKey();
298,976
public void unlockWrite(long stamp) {<NEW_LINE>Jvm.debug().on(getClass(), " ,@t=" + System.currentTimeMillis() + " ChronicleStampedLock unlockWrite(" + stamp + ") unlocking..,");<NEW_LINE>offHeapLock = chm.get("Stamp ");<NEW_LINE>offHeapLock.setEntryLockState(0L);<NEW_LINE>chm.put("Stamp ", offHeapLock);<NEW_LINE>write...
getVolatileValue() + "] " + "..,");
1,325,921
private List<CachedRow> oracleQuery(boolean bulk) throws DatabaseException, SQLException {<NEW_LINE>CatalogAndSchema catalogAndSchema = new CatalogAndSchema(catalogName, schemaName).customize(database);<NEW_LINE>String jdbcSchemaName = ((AbstractJdbcDatabase) database).getJdbcSchemaName(catalogAndSchema);<NEW_LINE>Stri...
jdbcTableName = database.escapeStringForDatabase(tableName);
1,153,358
private void removeSubscriptionSetting(Subscription subscription, ClusterState currentState, Metadata.Builder mdBuilder) {<NEW_LINE>for (var relationName : subscription.relations().keySet()) {<NEW_LINE>var concreteIndices = indexNameExpressionResolver.concreteIndexNames(currentState, IndicesOptions.lenientExpandOpen(),...
put(templateMetadata.settings());
171,696
public void read(org.apache.thrift.protocol.TProtocol iprot, rpc_invalid_operation struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type ...
skip(iprot, schemeField.type);
1,453,231
final DBCluster executeRestoreDBClusterFromS3(RestoreDBClusterFromS3Request restoreDBClusterFromS3Request) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreDBClusterFromS3Request);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetr...
addHandlerContext(HandlerContextKey.SERVICE_ID, "RDS");
150,452
final DeleteNetworkInterfacePermissionResult executeDeleteNetworkInterfacePermission(DeleteNetworkInterfacePermissionRequest deleteNetworkInterfacePermissionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNetworkInterfacePermissionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
1,615,693
public void update(short siteId, String dictionaryId, List<CmsDictionaryData> dataList) {<NEW_LINE>Set<CmsDictionaryDataId> idSet = new HashSet<>();<NEW_LINE>if (CommonUtils.notEmpty(dataList)) {<NEW_LINE>for (CmsDictionaryData entity : dataList) {<NEW_LINE>if (null != entity.getId()) {<NEW_LINE>entity.getId().setSiteI...
delete(entity.getId());
1,020,883
private static PartitionField calculateSplitAtVal(TableGroupConfig tableGroupConfig, PartitionInfo partitionInfo, SqlAlterTableGroupSplitPartition sqlAlter) {<NEW_LINE>PartitionField atVal = null;<NEW_LINE>if (sqlAlter.getAtValue() != null) {<NEW_LINE>if (partitionInfo.getPartitionBy().getStrategy() != PartitionStrateg...
TddlRuntimeException(ErrorCode.ERR_PARTITION_MANAGEMENT, "Missing the new partitions spec");
1,458,463
public void marshall(EntityRecognizerProperties entityRecognizerProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (entityRecognizerProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(entity...
entityRecognizerProperties.getEndTime(), ENDTIME_BINDING);
54,169
private void encode(Codecs codecs, int iterations, Blackhole voodoo) {<NEW_LINE>for (int i = 0; i < iterations; i++) {<NEW_LINE>voodoo.consume(codecs.<MASK><NEW_LINE>voodoo.consume(codecs.encode(35698));<NEW_LINE>voodoo.consume(codecs.encode(-256.3698));<NEW_LINE>voodoo.consume(codecs.encode(85.7458f));<NEW_LINE>voodoo...
encode((short) 12));
865,199
private OCFile saveFolderInDB() {<NEW_LINE>OCFile newDir = null;<NEW_LINE>if (mCreateFullPath && getStorageManager().getFileByPath(FileStorageUtils.getParentPath(mRemotePath)) == null) {<NEW_LINE>// When parent<NEW_LINE>// of remote path<NEW_LINE>// is not created<NEW_LINE>String[] <MASK><NEW_LINE>String composedRemote...
subFolders = mRemotePath.split("/");
162,729
public void leave(Element element) {<NEW_LINE>if (canonical) {<NEW_LINE>c14nNamespaceStack.poll();<NEW_LINE>c14nAttrStack.poll();<NEW_LINE>}<NEW_LINE>String name = element.getTagName();<NEW_LINE>if (element.hasChildNodes()) {<NEW_LINE>if (needIndentInClosing(element)) {<NEW_LINE>indentation.pop();<NEW_LINE>buffer.appen...
(name).append('>');
1,745,786
void applyState() {<NEW_LINE>for (Map.Entry<String, Map<UUID, Long>> entry : reservationsByTxnIdPerMap.entrySet()) {<NEW_LINE>String mapName = entry.getKey();<NEW_LINE>Map<UUID, Long> reservationsByTxnId = entry.getValue();<NEW_LINE>RecordStore <MASK><NEW_LINE>WriteBehindStore mapDataStore = (WriteBehindStore) recordSt...
recordStore = mapReplicationOperation.getRecordStore(mapName);
398,812
public void traverseSelection(SelectionVisitor visitor) {<NEW_LINE>// walk the section indices backwards<NEW_LINE>List<Integer> sectionIndices = new ArrayList<>(selectionStateBySection.keySet());<NEW_LINE>Collections.sort(sectionIndices, Collections<MASK><NEW_LINE>for (int sectionIndex : sectionIndices) {<NEW_LINE>Sect...
.<Integer>reverseOrder());
111,454
JavaFile generateJavaFile() throws RemixerAnnotationException {<NEW_LINE>Collection<MethodAnnotation> annotatedMethods = sortMethods();<NEW_LINE>TypeSpec.Builder classBuilder = TypeSpec.classBuilder(generatedClassName);<NEW_LINE>ParameterizedTypeName superInterface = ParameterizedTypeName.get(REMIXER_BINDER_CLASS_NAME,...
build()).build();
1,496,686
void handle(Object relatedValueToStore, Object newRelatedObject, Object potentiallyRecreatedRelatedObject) {<NEW_LINE>if (potentiallyRecreatedRelatedObject != newRelatedObject) {<NEW_LINE>if (cardinality == Cardinality.ONE_TO_ONE) {<NEW_LINE>this.newRelatedObjects = Collections.singletonList(potentiallyRecreatedRelated...
newRelatedObjectsByType.put(key, potentiallyRecreatedRelatedObject);
672,321
public static void serialize(final OffsetDateTime value, final JsonWriter sw) {<NEW_LINE>final int year = value.getYear();<NEW_LINE>if (year < 0) {<NEW_LINE>throw new SerializationException("Negative dates are not supported.");<NEW_LINE>} else if (year > 9999) {<NEW_LINE>sw.writeByte(JsonWriter.QUOTE);<NEW_LINE>sw.writ...
), buf, pos + 18);
748,136
public static SabrIborCapletFloorletVolatilityCalibrationDefinition ofFixedBeta(IborCapletFloorletVolatilitiesName name, IborIndex index, DayCount dayCount, DoubleArray alphaCurveNodes, DoubleArray rhoCurveNodes, DoubleArray nuCurveNodes, DoubleArray initialParameters, CurveInterpolator interpolator, CurveExtrapolator ...
ConstantCurve.of("Zero shift", 0d);
252,481
public static void planarToBuffered_F32(Planar<GrayF32> src, BufferedImage dst) {<NEW_LINE>if (src.getNumBands() != 3)<NEW_LINE>throw new IllegalArgumentException("src must have three bands");<NEW_LINE>final int width = dst.getWidth();<NEW_LINE>final int height = dst.getHeight();<NEW_LINE>float[] band1 = src.getBand(0)...
= (int) band3[indexSrc];
668,374
final DescribeFastSnapshotRestoresResult executeDescribeFastSnapshotRestores(DescribeFastSnapshotRestoresRequest describeFastSnapshotRestoresRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFastSnapshotRestoresRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeFastSnapshotRestores");
1,079,826
public RefactoringStatus checkInitialConditions(IProgressMonitor pm) throws CoreException {<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>pm.beginTask("", 7);<NEW_LINE>RefactoringStatus result = Checks.validateEdit(fCu, getValidationContext(), pm);<NEW_LINE>if (result.hasFatalError()) {<NEW_LINE>return result;<NEW_LI...
null, fCu, cuNode, fFormatterOptions);
693,080
private static Map<String, ColorMap> loadDefaultColorMaps() {<NEW_LINE>Map<String, ColorMap> maps = new LinkedHashMap<>();<NEW_LINE>try {<NEW_LINE>Path pathColorMaps;<NEW_LINE>URI uri = ColorMaps.class.getResource("/colormaps").toURI();<NEW_LINE>if (uri.getScheme().equals("jar")) {<NEW_LINE>FileSystem fileSystem = File...
defaultColorMap = maps.get(preferred);
327,153
public void run(RegressionEnvironment env) {<NEW_LINE>// assert join<NEW_LINE>SupportQueryPlanIndexHook.reset();<NEW_LINE>String epl = "@name('s0') " + IndexBackingTableInfo.INDEX_CALLBACK_HOOK + "select * from SupportBean_S0#keepall as s0, SupportBean_S1 as s1 unidirectional " + "where p00 in (p10, p11) and p01 in (p1...
), onExprTable.getTableLookupStrategy());
206,931
public void paintInstance(InstancePainter painter) {<NEW_LINE>if (painter.getAttributeValue(StdAttr.APPEARANCE) == StdAttr.APPEAR_CLASSIC) {<NEW_LINE>drawRegisterClassic(painter);<NEW_LINE>} else {<NEW_LINE>final var state = (RegisterData) painter.getData();<NEW_LINE>final var widthVal = painter.getAttributeValue(StdAt...
int y = loc.getY();
227,915
private Result findForBinaryRoot(final URL binaryRoot) throws MalformedURLException, MalformedURLException {<NEW_LINE>URL jar = FileUtil.getArchiveFile(binaryRoot);<NEW_LINE>if (!jar.getProtocol().equals("file")) {<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>Util.err.log(binaryRoot + " is not an archive file.");<NEW...
err.log(binaryRootF + " does not correspond to a known platform");
976,837
public final Object remove(Object key) {<NEW_LINE>int bucketIndex = (key.hashCode() & Integer.MAX_VALUE) % numBuckets;<NEW_LINE>Object[] bucketKeys = keys[bucketIndex];<NEW_LINE>int bucketSize = bucketSizes[bucketIndex];<NEW_LINE>// Look through the entries in the bucket to find one that matches for removal.<NEW_LINE>f...
[i] = bucketValues[bucketSize];
675,939
public boolean apply(Game game, Ability source) {<NEW_LINE>SubType choice = SubType.byDescription((String) game.getState().getValue(source.getSourceId().toString() + "_ElsewhereFlask"));<NEW_LINE>if (choice == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (Iterator<MageObjectReference> it = affectedObjectList....
source.getSourceId(), game);
89,383
private List<Wo> list(Business business, Wi wi) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>if (StringUtils.isEmpty(wi.getKey())) {<NEW_LINE>return wos;<NEW_LINE>}<NEW_LINE>String str = StringUtils.lowerCase(StringTools.escapeSqlLikeKey(wi.getKey()));<NEW_LINE>EntityManager em = business.enti...
identity().sort(wos);
769,761
private FxSingle parseLeg(XmlElement legEl, FpmlDocument document, TradeInfoBuilder tradeInfoBuilder) {<NEW_LINE>// supported elements:<NEW_LINE>// 'exchangedCurrency1/paymentAmount'<NEW_LINE>// 'exchangedCurrency2/paymentAmount'<NEW_LINE>// 'valueDate'<NEW_LINE>// ignored elements:<NEW_LINE>// 'dealtCurrency?'<NEW_LIN...
(curr1El.getChild("paymentAmount"));
1,369,549
public void trackerEventOccurred(AllTrackersEvent event) {<NEW_LINE><MASK><NEW_LINE>List<AllTrackersTracker> trackers = event.getTrackers();<NEW_LINE>List<AllTrackersViewEntry> entries = new ArrayList<>(trackers.size());<NEW_LINE>synchronized (tracker_map) {<NEW_LINE>for (AllTrackersTracker tracker : trackers) {<NEW_LI...
int type = event.getEventType();
794,049
public Long addNewComplexTaskOutline(ComplexTaskOutlineRecord complexTaskOutlineRecord) {<NEW_LINE>try {<NEW_LINE>List<Map<Integer, ParameterContext>> paramsBatch = new ArrayList<>();<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>();<NEW_LINE>int index = 1;<NEW_LINE>MetaDbUtil.setParameter(index++, para...
setString, complexTaskOutlineRecord.getSourceSql());
139,812
protected void serializeFromStream() {<NEW_LINE>super.serializeFromStream();<NEW_LINE>final List<String> keyTypeNames = document.field("keyTypes");<NEW_LINE>keyTypes = new OType[keyTypeNames.size()];<NEW_LINE>int i = 0;<NEW_LINE>for (final String keyTypeName : keyTypeNames) {<NEW_LINE>keyTypes[i<MASK><NEW_LINE>i++;<NEW...
] = OType.valueOf(keyTypeName);
416,723
public ResponseEntity<IdentityZone> createIdentityZone(@RequestBody @Valid IdentityZone body, BindingResult result) {<NEW_LINE>if (result.hasErrors()) {<NEW_LINE>throw new UnprocessableEntityException(getErrorMessages(result));<NEW_LINE>}<NEW_LINE>if (!IdentityZoneHolder.isUaa()) {<NEW_LINE>throw new AccessDeniedExcept...
setIdentityZoneId(created.getId());
1,199,996
private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>buttonGroup = <MASK><NEW_LINE>checkBoxes = new javax.swing.JPanel();<NEW_LINE>label = new javax.swing.JLabel();<NEW_LINE>searchInComments = new javax.swing.JCheckBox();<NEW_LINE>...
new javax.swing.ButtonGroup();
407,546
private Pair<Boolean, Metadata_V4.MetadataSummary> checkMetadataForScanStats(PlannerSettings settings, DrillTable drillTable, FormatSelection formatSelection) {<NEW_LINE>// Currently only support metadata rowcount stats for Parquet tables<NEW_LINE>FormatPluginConfig formatConfig = formatSelection.getFormat();<NEW_LINE>...
getOptions()).build();
157,290
public FieldBinding addSyntheticFieldForEnumValues() {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (this.synthetics == null)<NEW_LINE>this.synthetics = new Map[MAX_SYNTHETICS];<NEW_LINE>if (this.synthetics[SourceTypeBinding.FIELD_EMUL] == null)<NEW_LINE>this.synthetics[SourceTyp...
].put("enumConstantValues", synthField);
756,737
protected Predicate createJoinFilter(QueryMetadata metadata) {<NEW_LINE>Map<Expression<?>, Predicate> predicates = new HashMap<>();<NEW_LINE>List<JoinExpression<MASK><NEW_LINE>for (int i = joins.size() - 1; i >= 0; i--) {<NEW_LINE>JoinExpression join = joins.get(i);<NEW_LINE>Path<?> source = (Path) ((Operation<?>) join...
> joins = metadata.getJoins();
1,366,484
public static AutogenBlobDiff fromProto(ai.verta.modeldb.versioning.BlobDiff blob) {<NEW_LINE>if (blob == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>AutogenBlobDiff obj = new AutogenBlobDiff();<NEW_LINE>{<NEW_LINE>Function<ai.verta.modeldb.versioning.BlobDiff, AutogenCodeDiff> f = x -> AutogenCodeDiff.fromProto(...
(f.apply(blob));