idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
80,562
public void loadConfiguration(InputStream inputStream) {<NEW_LINE>Properties properties = new Properties();<NEW_LINE>try {<NEW_LINE>properties.load(inputStream);<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new IllegalArgumentException("Restlet Cloud configuration file error. See exception for details.", e);<NEW_L...
properties.getProperty("agent.serviceUrl", DEFAULT_AGENT_SERVICE_URL);
1,230,528
private HttpRequest.Builder testGroupParametersRequestBuilder(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws ApiException {<NEW_LINE>// verify the required parameter 'requiredStringGroup' is set<NEW_LINE>if (required...
+ queryJoiner.toString()));
1,637,808
final GetMaintenanceWindowTaskResult executeGetMaintenanceWindowTask(GetMaintenanceWindowTaskRequest getMaintenanceWindowTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMaintenanceWindowTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
657,950
@ResponseBody<NEW_LINE>public Map<String, Object> upload(@RequestAttribute SysSite site, @SessionAttribute SysUser user, MultipartFile file, HttpServletRequest request) {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>result.put("success", false);<NEW_LINE>if (null != file && !file.isEmpty() && null !=...
CmsFileUtils.getFileSize(filePath, suffix);
1,200,876
Propagation.Factory sleuthPropagationWithB3Baggage(BaggagePropagation.FactoryBuilder factoryBuilder, @Qualifier(BAGGAGE_KEYS) List<String> baggageKeys, @Qualifier(LOCAL_KEYS) List<String> localKeys, @Qualifier(PROPAGATION_KEYS) List<String> propagationKeys, SleuthBaggageProperties sleuthBaggageProperties, SleuthPropaga...
SingleBaggageField.class.getName());
226,353
protected List<MCostDetail> createCostDetails() {<NEW_LINE>final String idColumnName;<NEW_LINE>if (model instanceof MMatchPO) {<NEW_LINE>idColumnName = I_C_OrderLine.COLUMNNAME_C_OrderLine_ID;<NEW_LINE>} else if (model instanceof MMatchInv) {<NEW_LINE>idColumnName = I_C_InvoiceLine.COLUMNNAME_C_InvoiceLine_ID;<NEW_LINE...
setM_Transaction_ID(transaction.get_ID());
237,133
private void annotateCalls(Node n) {<NEW_LINE>checkState(n.isCall() || n.isOptChainCall() || n.isTaggedTemplateLit(), n);<NEW_LINE>// Keep track of of the "this" context of a call. A call without an<NEW_LINE>// explicit "this" is a free call.<NEW_LINE>Node callee = n.getFirstChild();<NEW_LINE>// ignore cast nodes.<NEW...
putBooleanProp(Node.FREE_CALL, true);
1,485,518
// findEntitiesIteratively<NEW_LINE>public List<EntityDetail> findEntitiesIteratively(List<String> validTypeNames, SearchProperties searchProperties, MatchCriteria matchCriteria) throws InvalidParameterException, RepositoryErrorException, FunctionNotSupportedException {<NEW_LINE>final String methodName = "findEntitiesI...
repositoryHelper.getTypeDefByName(repositoryName, typeName);
670,054
protected void onFinishInflate() {<NEW_LINE>super.onFinishInflate();<NEW_LINE>this.subjectView = findViewById(R.id.subject);<NEW_LINE>this.fromView = findViewById(R.id.from_text);<NEW_LINE>this.dateView = <MASK><NEW_LINE>this.deliveryStatusIndicator = new DeliveryStatusView(findViewById(R.id.delivery_indicator));<NEW_L...
findViewById(R.id.date);
427,515
public static void response(ServerConnection c, String stmt, int aliasIndex) {<NEW_LINE>String alias = ParseUtil.parseAlias(stmt, aliasIndex);<NEW_LINE>if (alias == null) {<NEW_LINE>alias = ORG_NAME;<NEW_LINE>}<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = header.write(buffer, c,...
alias, ORG_NAME, Fields.FIELD_TYPE_LONGLONG);
1,177,352
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify other) {<NEW_LINE>if (other == emu.grasscutter.net.proto.PlayerEnterSceneInfoNotifyOuterClass.PlayerEnterSceneInfoNotify.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.getCurAvatarEntityId(...
this.mergeUnknownFields(other.unknownFields);
410,620
public JMenu createInsertVariableMenu(final JTextComponent editor) {<NEW_LINE>final Collection<MADBoilerPlateVar> boilderPlateVars = MADBoilerPlateVar.getAll(Env.getCtx()).values();<NEW_LINE>if (boilderPlateVars.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final JMenu menuVars = new JMenu(Msg.translate(Env.ge...
private static final long serialVersionUID = -5007856575142340294L;
872,703
public LinkAssociation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LinkAssociation linkAssociation = new LinkAssociation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
1,001,808
protected void doCODESIZE() {<NEW_LINE>if (computeGas) {<NEW_LINE>if (op == OpCode.EXTCODESIZE) {<NEW_LINE>gasCost = GasCost.EXT_CODE_SIZE;<NEW_LINE>}<NEW_LINE>spendOpCodeGas();<NEW_LINE>}<NEW_LINE>// EXECUTION PHASE<NEW_LINE>DataWord codeLength;<NEW_LINE>if (op == OpCode.CODESIZE) {<NEW_LINE>// during initialization i...
ForBlock activations = program.getActivations();
1,603,781
public void testTransfer(HttpServletRequest request, PrintWriter out) throws Throwable {<NEW_LINE>Callable<Integer> task = new MBeanCounterCallable();<NEW_LINE>taskFutures.add(executor.schedule(task, 2000, TimeUnit.SECONDS));<NEW_LINE>Callable<<MASK><NEW_LINE>taskFutures.add(executor2.schedule(task2, 2000, TimeUnit.SEC...
Integer> task2 = new MBeanCounterCallable();
925,444
private ImmutableSortedMap<String, FileSystemSnapshot> captureOutputs(UnitOfWork work, BeforeExecutionContext context, BeforeExecutionState beforeExecutionState) {<NEW_LINE>ImmutableSortedMap<String, FileSystemSnapshot> unfilteredOutputSnapshotsAfterExecution = outputSnapshotter.snapshotOutputs(work, context.getWorkspa...
orElse(ImmutableSortedMap.of());
1,058,783
public Request<ModifySubnetAttributeRequest> marshall(ModifySubnetAttributeRequest modifySubnetAttributeRequest) {<NEW_LINE>if (modifySubnetAttributeRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifySubnetAttributeRequest> request = n...
(modifySubnetAttributeRequest.getEnableResourceNameDnsARecordOnLaunch()));
1,809,001
public void marshall(StartKeyPhrasesDetectionJobRequest startKeyPhrasesDetectionJobRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (startKeyPhrasesDetectionJobRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMa...
startKeyPhrasesDetectionJobRequest.getInputDataConfig(), INPUTDATACONFIG_BINDING);
1,109,444
private PortfolioTransaction convertToDelivery(PortfolioTransaction t, PortfolioTransaction.Type targetType) {<NEW_LINE>PortfolioTransaction pseudo = new PortfolioTransaction();<NEW_LINE>pseudo.<MASK><NEW_LINE>pseudo.setCurrencyCode(t.getCurrencyCode());<NEW_LINE>pseudo.setSecurity(t.getSecurity());<NEW_LINE>pseudo.set...
setDateTime(t.getDateTime());
1,279,460
public void execute() {<NEW_LINE>ensureArgCount(2);<NEW_LINE>final String fullyQualifiedTableSegmentName = getArg(0);<NEW_LINE>final String segmentStoreHost = getArg(1);<NEW_LINE>@Cleanup<NEW_LINE>CuratorFramework zkClient = createZKClient();<NEW_LINE>@Cleanup<NEW_LINE>AdminSegmentHelper adminSegmentHelper = instantiat...
f.apply(tableSegmentInfo)));
1,073,809
private void updatePose() {<NEW_LINE>vrCompositor.WaitGetPoses.apply(hmdTrackedDevicePoseReference, JOpenVRLibrary.k_unMaxTrackedDeviceCount, null, 0);<NEW_LINE>for (int nDevice = 0; nDevice < JOpenVRLibrary.k_unMaxTrackedDeviceCount; ++nDevice) {<NEW_LINE>hmdTrackedDevicePoses[nDevice].read();<NEW_LINE>}<NEW_LINE>if (...
VR_STATE.setEyePoseWRTHead(matPose, nEye);
710,120
public // }<NEW_LINE>int createParticle(ParticleDef def) {<NEW_LINE>if (m_count >= m_internalAllocatedCapacity) {<NEW_LINE>int capacity = m_count != 0 ? 2 * m_count : Settings.minParticleBufferCapacity;<NEW_LINE>capacity = limitCapacity(capacity, m_maxCount);<NEW_LINE>capacity = limitCapacity(capacity, m_flagsBuffer.us...
m_colorBuffer, m_internalAllocatedCapacity, capacity, true);
691,612
// TODO: Add code fore interpolation type (none and angular)<NEW_LINE>void interpolateAttributes_(int semantics, int from_path_index, int from_point_index, int to_path_index, int to_point_index, double sub_length, int ordinate) {<NEW_LINE>SegmentIteratorImpl seg_iter = querySegmentIterator();<NEW_LINE>int absolute_from...
getAttributeAsDbl(semantics, absolute_to_index, ordinate);
429,996
private void doExport() {<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>chooser.setFileFilter(FileHelper.CSV_FILTER);<NEW_LINE>chooser.setCurrentDirectory(((SwingPreferences) Application.getPreferences()).getDefaultDirectory());<NEW_LINE>if (chooser.showSaveDialog(this) != JFileChooser.APPROVE_OPTION)<NE...
i], selected[i]);
760,605
public static Instruction createDeclareByte(int b0, int b1, int b2, int b3, int b4, int b5, int b6, int b7, int b8, int b9, int b10) {<NEW_LINE>Instruction instruction = new Instruction();<NEW_LINE><MASK><NEW_LINE>instruction.setDeclareDataCount(11);<NEW_LINE>instruction.setDeclareByteValue(0, toByte(b0));<NEW_LINE>ins...
instruction.setCode(Code.DECLAREBYTE);
1,557,719
public final void andExpression() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST andExpression_AST = null;<NEW_LINE>shiftExpression();<NEW_LINE>astFactory.addASTChild(currentAST, returnAST);<NEW_LINE>{<NEW_LINE>_loop144: do {<NEW_...
.create(LT(1));
934,315
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>monitor.beginTask("Load Batch Stack....", IProgressMonitor.UNKNOWN);<NEW_LINE>final String stackfile = getStackData(serverId, pack);<NEW_LINE>if (stackfile == null) {<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>}<NEW_LINE>if (isSFA) {<NEW_LINE>ExUtil.exec(Di...
instance().processStackFile(stackfile);
1,751,073
private void renderBase() {<NEW_LINE>BlockRendererDispatcher blockrendererdispatcher = Minecraft.getMinecraft().getBlockRendererDispatcher();<NEW_LINE>BlockModelShapes modelShapes = blockrendererdispatcher.getBlockModelShapes();<NEW_LINE>IBakedModel bakedModel = modelShapes.getModelForState(MachineObject.block_enchante...
(EnumFacing) null, 0L));
252,658
private static boolean processCompositeIndexDelete(final OIndex index, final Set<String> dirtyFields, final ODocument iRecord, List<IndexChange> changes) {<NEW_LINE>final OCompositeIndexDefinition indexDefinition = (OCompositeIndexDefinition) index.getDefinition();<NEW_LINE>final String multiValueField = indexDefinitio...
index, iRecord, origValue, changes);
1,804,195
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent sacrificedPermanent = null;<NEW_LINE>for (Cost cost : source.getCosts()) {<NEW_LINE>if (cost instanceof SacrificeTargetCost) {<NEW_LINE>SacrificeTargetCost sacrificeCost = (SacrificeTargetCost) cost;<NEW_LINE>if (!sacrificeCost.getPermanents().isEmpty...
.FEWER_THAN, newConvertedCost + 1));
1,489,254
private ImmutableList<ProductPrice> extractProductPrices(final I_C_Invoice invoice) {<NEW_LINE>final IInvoiceDAO invoicesRepo = Services.get(IInvoiceDAO.class);<NEW_LINE>final CurrencyId currencyId = CurrencyId.<MASK><NEW_LINE>final ImmutableMap<ProductId, Money> pricesByProductId = invoicesRepo.retrieveLines(invoice)....
ofRepoId(invoice.getC_Currency_ID());
1,058,638
final UpdateAccessResult executeUpdateAccess(UpdateAccessRequest updateAccessRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAccessRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<UpdateAccessRequest> ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
680,633
private void parseRawString(InputStream rawxml) {<NEW_LINE>if (rawxml == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>XmlPullParser parser = null;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>parser = HighFunction.stringTree(rawxml, HighFunction.getErrorHandler(this, "decompiler results for function at " <MASK><NEW_LINE>hfun...
+ function.getEntryPoint()));
26,201
private static boolean implVerify(byte[] sig, int sigOff, byte[] pk, int pkOff, byte[] ctx, byte phflag, byte[] m, int mOff, int mLen) {<NEW_LINE>if (!checkContextVar(ctx)) {<NEW_LINE>throw new IllegalArgumentException("ctx");<NEW_LINE>}<NEW_LINE>byte[] R = copy(sig, sigOff, POINT_BYTES);<NEW_LINE>byte[] S = copy(sig, ...
] check = new byte[POINT_BYTES];
1,734,328
public com.amazonaws.services.datapipeline.model.TaskNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.datapipeline.model.TaskNotFoundException taskNotFoundException = new com.amazonaws.services.datapipeline.model.TaskNotFoundException(null);<NEW...
String currentParentElement = context.getCurrentParentElement();
51,257
// Create a Flajolet-Martin bitstring. The maximum number of nodes is currently 4 billion.<NEW_LINE>public static int create_random_bm(int number_node, int size_bitmask) {<NEW_LINE>int j;<NEW_LINE>// cur_random is between 0 and 1.<NEW_LINE>double cur_random = Math.random();<NEW_LINE>double threshold = 0;<NEW_LINE>for (...
= small_bitmask << (32 - size_bitmask);
387,821
public IStatus run(IProgressMonitor monitor) {<NEW_LINE>SubMonitor sub = <MASK><NEW_LINE>if (sub.isCanceled()) {<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LINE>}<NEW_LINE>Index index = getIndex();<NEW_LINE>if (index == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>IdeLog.// $NON-NLS-1$<NEW_LINE>logError(// $NON-NLS-1$<NEW_L...
SubMonitor.convert(monitor, 1000);
830,190
public void openInEditor() {<NEW_LINE>PositionBounds bounds = getPosition();<NEW_LINE>if (bounds == null)<NEW_LINE>return;<NEW_LINE>PositionRef beginPos = bounds.getBegin();<NEW_LINE><MASK><NEW_LINE>editSupp.edit();<NEW_LINE>JEditorPane[] panes = editSupp.getOpenedPanes();<NEW_LINE>if (panes != null) {<NEW_LINE>JumpLis...
CloneableEditorSupport editSupp = beginPos.getCloneableEditorSupport();
864,059
private void addStaticRegexResultProperties() {<NEW_LINE>if (context.isOptionRegexpStaticResultInContextInit()) {<NEW_LINE>if (context.isOptionNashornCompatibilityMode()) {<NEW_LINE>putRegExpStaticPropertyAccessor(null, Strings.INPUT);<NEW_LINE>putRegExpStaticPropertyAccessor(BuiltinFunctionKey.RegExpMultiLine, Strings...
BuiltinFunctionKey.RegExp$7, Strings.$_7);
811,545
/*<NEW_LINE>* called when the app detects that the user has permanently denied a permission, shows a dialog<NEW_LINE>* alerting them to this fact and enabling them to visit the app settings to edit permissions<NEW_LINE>*/<NEW_LINE>public static void showPermissionAlwaysDeniedDialog(@NonNull final Activity activity, @No...
, getPermissionName(activity, permission));
552,189
public org.python.Object __next__(java.util.List<org.python.Object> args, java.util.Map<java.lang.String, org.python.Object> kwargs, java.util.List<org.python.Object> default_args, java.util.Map<java.lang.String, org.python.Object> default_kwargs) {<NEW_LINE>if (kwargs != null && kwargs.size() != 0) {<NEW_LINE>throw ne...
return this.iterator.previous();
125,272
private static void createReprInDocument(XTextDocument doc, String refMarkName, XTextCursor position, boolean insertSpaceAfter, boolean withoutBrackets) throws CreationException {<NEW_LINE>// The cursor we received: we push it before us.<NEW_LINE>position.collapseToEnd();<NEW_LINE>XTextCursor cursor = safeInsertSpacesB...
position.getEnd(), 2);
753,576
protected HttpResponse httpCall(Input input) throws Exception {<NEW_LINE>RestTemplate restTemplate = restTemplateProvider.getRestTemplate(input);<NEW_LINE>HttpHeaders headers = new HttpHeaders();<NEW_LINE>headers.setContentType(MediaType.valueOf(input.getContentType()));<NEW_LINE>headers.setAccept(Collections.singleton...
.getStatusCode().getReasonPhrase();
1,296,782
final GetReadinessCheckResult executeGetReadinessCheck(GetReadinessCheckRequest getReadinessCheckRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getReadinessCheckRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
false), new GetReadinessCheckResultJsonUnmarshaller());
945,007
private void completeApplication(FrameworkStatus frameworkStatus, int exitCode, String exitDiagnostics, String triggerMessage, String triggerTaskRoleName, Integer triggerTaskIndex) throws Exception {<NEW_LINE>String frameworkName = frameworkStatus.getFrameworkName();<NEW_LINE><MASK><NEW_LINE>LOGGER.logSplittedLines(Lev...
String applicationId = frameworkStatus.getApplicationId();
52,455
private void addHtmlHeaders(MultivaluedMap<String, Object> headers) {<NEW_LINE>for (BrowserSecurityHeaders header : BrowserSecurityHeaders.values()) {<NEW_LINE>addHeader(header, headers);<NEW_LINE>}<NEW_LINE>// TODO This will be refactored as part of introducing a more strict CSP header<NEW_LINE>if (options != null) {<...
BrowserSecurityHeaders.X_FRAME_OPTIONS.getHeaderName());
949,383
protected void horizontal() {<NEW_LINE>short[] dataX = derivX.data;<NEW_LINE>short[] dataY = derivY.data;<NEW_LINE>int[] hXX = horizXX.data;<NEW_LINE>int[] hXY = horizXY.data;<NEW_LINE>int[] hYY = horizYY.data;<NEW_LINE>final int imgHeight = derivX.getHeight();<NEW_LINE>final int imgWidth = derivX.getWidth();<NEW_LINE>...
.startIndex + row * derivY.stride;
1,433,635
public boolean splitStockMoveLines(StockMove stockMove, List<StockMoveLine> stockMoveLines, BigDecimal splitQty) {<NEW_LINE>boolean selected = false;<NEW_LINE>for (StockMoveLine moveLine : stockMoveLines) {<NEW_LINE>if (moveLine.isSelected()) {<NEW_LINE>selected = true;<NEW_LINE>StockMoveLine line = stockMoveLineRepo.<...
find(moveLine.getId());
286,149
public void applyForm(final ForgottenPasswordStateMachine forgottenPasswordStateMachine, final Map<String, String> formValues) throws PwmUnrecoverableException {<NEW_LINE>final List<TokenDestinationItem> tokenDestinationItems = ForgottenPasswordUtil.figureAvailableTokenDestinations(forgottenPasswordStateMachine.getRequ...
setTokenDestination(selectedItem.get());
1,386,664
public InternalTopMetrics reduce(List<InternalAggregation> aggregations, AggregationReduceContext reduceContext) {<NEW_LINE>if (false == isMapped()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>List<TopMetric> merged = new ArrayList<>(size);<NEW_LINE>PriorityQueue<ReduceState> queue = new PriorityQueue<ReduceState>(aggr...
rhs.sortValue()) < 0;
1,855,146
protected void runPlainPath(AlluxioURI path, CommandLine cl) throws AlluxioException, IOException {<NEW_LINE>String[] args = cl.getArgs();<NEW_LINE>// args[0] is the path, args[1] to args[end] is the list of possible media to pin<NEW_LINE>List<String> pinnedMediumTypes = Arrays.asList(Arrays.copyOfRange(args, 1, args.l...
mFileSystem, path, true, pinnedMediumTypes);
125,826
private void drawMask(Bitmap image, Mask mask) {<NEW_LINE>float r = RandomUtils.nextFloat();<NEW_LINE>float g = RandomUtils.nextFloat();<NEW_LINE>float b = RandomUtils.nextFloat();<NEW_LINE>int imageWidth = image.getWidth();<NEW_LINE>int imageHeight = image.getHeight();<NEW_LINE>int x = (int) (<MASK><NEW_LINE>int y = (...
mask.getX() * imageWidth);
1,449,234
/*package*/<NEW_LINE>void applySlideItem(RecyclerView.ViewHolder holder, int itemPosition, float prevAmount, float amount, boolean proportionalAmount, boolean horizontal, boolean shouldAnimate, boolean isSwiping) {<NEW_LINE>final SwipeableItemViewHolder holder2 = (SwipeableItemViewHolder) holder;<NEW_LINE>final View co...
reqBackgroundType = determineBackgroundType(amount, horizontal);
537,097
public VpcConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VpcConfiguration vpcConfiguration = new VpcConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
)).unmarshall(context));
848,339
private void readOutParamsAsMap(CallableStatement cStmt) throws SQLException {<NEW_LINE>// Read OUT parameter as Map<Integer, Object>.<NEW_LINE>final Array outParam = cStmt.getArray(2);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final Map<Integer, String> outParamMap = (Map<Integer, String>) ((<MASK><NEW_LINE>Sys...
OracleArray) outParam).getJavaMap();
1,457,064
protected TypeBinding internalResolveType(Scope scope, int location) {<NEW_LINE>// handle the error here<NEW_LINE>this.constant = Constant.NotAConstant;<NEW_LINE>checkYieldUsage(scope);<NEW_LINE>if (this.resolvedType != null) {<NEW_LINE>// is a shared type reference which was already resolved<NEW_LINE>if (this.resolved...
this.resolvedType = getTypeBinding(scope);
1,008,647
private void createExpandItem() {<NEW_LINE>if (!(parent instanceof SWTSkinObjectExpandBar)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final SWTSkinObjectExpandBar soExpandBar = (SWTSkinObjectExpandBar) parent;<NEW_LINE>int style = SWT.NONE;<NEW_LINE>if (properties.getIntValue(sConfigID + ".border", 0) == 1) {<NEW_LINE>sty...
.values().iterator();
1,832,228
private Set<String> findModifiedPaths() throws MojoExecutionException {<NEW_LINE>try {<NEW_LINE>final ScmRepository repository = this.manager.makeScmRepository(getSCMConnection());<NEW_LINE>final File scmRoot = scmRoot();<NEW_LINE>this.getLog(<MASK><NEW_LINE>final Set<ScmFileStatus> statusToInclude = makeStatusSet();<N...
).info("Scm root dir is " + scmRoot);
496,708
public void marshall(RestoreTableRequest restoreTableRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (restoreTableRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(restoreTableRequest.getSour...
restoreTableRequest.getPointInTimeRecoveryOverride(), POINTINTIMERECOVERYOVERRIDE_BINDING);
917,635
void promptNameAndSave(final InputStream in, final String attachmentFileName) {<NEW_LINE>TextInputDialogUtils.textInput(this, R.string.title_file_received, attachmentFileName, R.string.action_file_received_edit, text -> {<NEW_LINE>File outFile = saveStreamWithName(in, text);<NEW_LINE>if (outFile == null)<NEW_LINE>retur...
{ outFile.getAbsolutePath() });
317,892
public static DescribeDataCountsResponse unmarshall(DescribeDataCountsResponse describeDataCountsResponse, UnmarshallerContext context) {<NEW_LINE>describeDataCountsResponse.setRequestId(context.stringValue("DescribeDataCountsResponse.RequestId"));<NEW_LINE>List<DataCount> dataCountList = new ArrayList<DataCount>();<NE...
("DescribeDataCountsResponse.DataCountList[" + i + "].Instance.Count"));
1,601,084
public void applyOptions() {<NEW_LINE>bottomTabs.perform(bottomTabs -> {<NEW_LINE>for (int i = 0; i < tabs.size(); i++) {<NEW_LINE>BottomTabOptions tab = tabs.get(i).resolveCurrentOptions(defaultOptions).bottomTabOptions;<NEW_LINE>bottomTabs.setIconWidth(i, tab.iconWidth.get(null));<NEW_LINE>bottomTabs.setIconHeight(i,...
.getTypeface(typefaceLoader, defaultTypeface));
1,634,027
public static QueryIntentionPriceResponse unmarshall(QueryIntentionPriceResponse queryIntentionPriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryIntentionPriceResponse.setRequestId(_ctx.stringValue("QueryIntentionPriceResponse.RequestId"));<NEW_LINE>queryIntentionPriceResponse.setTotalItemNum(_ctx.integerValue("...
+ "].ThirdClassification[" + j + "].ClassificationCode"));
779,185
public V put(int key, V value) {<NEW_LINE>// Makes sure the key is not already in the hashtable.<NEW_LINE>Entry<V>[] tab = table;<NEW_LINE>int hash = key;<NEW_LINE>int index = (hash & 0x7FFFFFFF) % tab.length;<NEW_LINE>for (Entry<V> e = tab[index]; e != null; e = e.next) {<NEW_LINE>if (e.hash == hash) {<NEW_LINE>V old ...
hash & 0x7FFFFFFF) % tab.length;
1,057,354
private MiniMRPProduct addProductToProcess(MReplenish replenish, Map<Integer, MiniMRPProduct> miniMrpProducts, Set<Integer> productIds) {<NEW_LINE>MProduct product = MProduct.get(getCtx(), replenish.getM_Product_ID());<NEW_LINE>// Get current vendor<NEW_LINE>MProductPO[] productPO = MProductPO.getOfProduct(getCtx(), pr...
add(product.getM_Product_ID());
787,781
public static int compareVersions(String left, String right, boolean isStrict, boolean handleHyphen) {<NEW_LINE>if (left == null) {<NEW_LINE>left = StringUtil.EMPTY;<NEW_LINE>}<NEW_LINE>if (right == null) {<NEW_LINE>right = StringUtil.EMPTY;<NEW_LINE>}<NEW_LINE>int result;<NEW_LINE>String[] lparts = VERSION_DOT_PATTERN...
ArrayUtil.flatten(rparts, moreParts);
547,697
public static GrayU8 median(GrayU8 input, @Nullable GrayU8 output, int radiusX, int radiusY, @Nullable GrowArray<DogArray_I32> work) {<NEW_LINE>if (radiusX <= 0 || radiusY <= 0)<NEW_LINE>throw new IllegalArgumentException("Radius must be > 0");<NEW_LINE>boolean processed = BOverrideBlurImageOps.invokeNativeMedian(input...
output, radiusX, radiusY, work);
118,597
public void write(DataOutput out) throws IOException {<NEW_LINE>super.write(out);<NEW_LINE>Text.writeString(out, backupTimestamp);<NEW_LINE>jobInfo.write(out);<NEW_LINE>out.writeBoolean(allowLoad);<NEW_LINE>Text.writeString(out, state.name());<NEW_LINE>if (backupMeta != null) {<NEW_LINE>out.writeBoolean(true);<NEW_LINE...
writeInt(restoredTbls.size());
273,503
final DeleteApiResult executeDeleteApi(DeleteApiRequest deleteApiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
145,832
public void run() {<NEW_LINE>File[] folders;<NEW_LINE>synchronized (foldersToCheck) {<NEW_LINE>folders = foldersToCheck.toArray(new File[foldersToCheck.size()]);<NEW_LINE>foldersToCheck.clear();<NEW_LINE>loggingTask = null;<NEW_LINE>}<NEW_LINE>for (File f : folders) {<NEW_LINE>if (!checkFolderLogged(f, false)) {<NEW_LI...
name.toString(), url);
1,144,446
final AddFacetToObjectResult executeAddFacetToObject(AddFacetToObjectRequest addFacetToObjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addFacetToObjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
invoke(request, responseHandler, executionContext);
806,446
public File downloadLibraryFile(Library.Version version, int fileIndex) throws IOException {<NEW_LINE>String libraryName = version.getLibrary().getName();<NEW_LINE>String versionName = version.getName();<NEW_LINE>String[] fileNames = version.getFiles();<NEW_LINE>String fileName = fileNames[fileIndex];<NEW_LINE>String u...
index = fileName.lastIndexOf('.');
111,512
protected Object doInBackground(Object... params) {<NEW_LINE>// Get accounts<NEW_LINE>mListAccount <MASK><NEW_LINE>AccountManager accountManager = AccountManager.get(ActivityApp.this);<NEW_LINE>mAccounts = accountManager.getAccounts();<NEW_LINE>mSelection = new boolean[mAccounts.length];<NEW_LINE>for (int i = 0; i < mA...
= new ArrayList<CharSequence>();
811,731
private void updateUserDefinedVariableDefaultsMap() {<NEW_LINE>HashMap<String, String> userDefinedVariables = new HashMap<String, String>();<NEW_LINE>for (Map.Entry<String, LibertyVariable> entry : configVariables.entrySet()) {<NEW_LINE>LibertyVariable var = entry.getValue();<NEW_LINE>if (var.getDefaultValue() != null)...
userDefinedVariableDefaultsMap = Collections.unmodifiableMap(userDefinedVariables);
198,870
protected void attachVolume(final AttachVolumeToVmOnHypervisorMsg msg, final NoErrorCompletion completion) {<NEW_LINE>checkStateAndStatus();<NEW_LINE>KVMHostInventory host = (KVMHostInventory) getSelfInventory();<NEW_LINE>final VolumeInventory vol = msg.getInventory();<NEW_LINE>final VmInstanceInventory vm = msg.getVmI...
getVmInventory().getUuid());
143,399
public static void createKerberosUserEntries() throws Exception {<NEW_LINE>Log.info(c, "startAllServers", "Creating KDC user entries");<NEW_LINE>session = kdcServer.getDirectoryService().getAdminSession();<NEW_LINE>Entry entry = new DefaultEntry(session.getDirectoryService().getSchemaManager());<NEW_LINE>entry.setDn(kr...
entry.add("krb5KeyVersionNumber", "0");
845,905
@Interceptors(AnnotationInjectionInterceptor2.class)<NEW_LINE>public void onMessage(Message arg0) {<NEW_LINE>svLogger.info("onMessage: " + arg0);<NEW_LINE>try {<NEW_LINE>InitialContext ic = new InitialContext();<NEW_LINE>String jndiName = "java:comp/env/AnnotationInjectionInterceptor2/jms/WSTestQCF";<NEW_LINE>Object <M...
obj = ic.lookup(jndiName);
1,035,660
private void processRemovedFolds(FoldHierarchyTransaction transaction) {<NEW_LINE>if (removedFoldList != null) {<NEW_LINE>for (int i = removedFoldList.size() - 1; i >= 0; i--) {<NEW_LINE>Fold removedFold = (Fold) removedFoldList.get(i);<NEW_LINE>FoldMarkInfo startMark = (FoldMarkInfo) getOperation().getExtraInfo(remove...
FoldMarkInfo endMark = startMark.getPairMark();
1,211,888
public static void consolidate(Properties ctx) {<NEW_LINE>String sql = "SELECT * FROM M_MatchPO po " + "WHERE EXISTS (SELECT 1 FROM M_MatchPO x " + "WHERE po.C_OrderLine_ID=x.C_OrderLine_ID AND po.Qty=x.Qty " + "GROUP BY C_OrderLine_ID, Qty " + "HAVING COUNT(*) = 2) " + " AND AD_Client_ID=?" + "ORDER BY C_OrderLine_ID,...
DB.executeUpdate(s1, null);
21,505
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>try {<NEW_LINE>PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();<N...
getPMap().get("password");
201,718
static <T> Supplier<Either<Exception, T>> decorateEitherSupplier(CircuitBreaker circuitBreaker, Supplier<Either<? extends Exception, T>> supplier) {<NEW_LINE>return () -> {<NEW_LINE>if (circuitBreaker.tryAcquirePermission()) {<NEW_LINE>final long start = circuitBreaker.getCurrentTimestamp();<NEW_LINE>Either<? extends E...
> result = supplier.get();
1,495,648
// NOTE: Always allow deactivating an PMM_Product even if it has a running contract.<NEW_LINE>// See: https://github.com/metasfresh/metasfresh/issues/1817<NEW_LINE>// @ModelChange(timings = { ModelValidator.TYPE_BEFORE_CHANGE }, ifColumnsChanged = { I_PMM_Product.COLUMNNAME_IsActive })<NEW_LINE>// public void preventDe...
.class).update(pmmProduct);
802,364
protected void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>removeUserFromChatOnExit = !ChatSDK.config().publicChatAutoSubscriptionEnabled;<NEW_LINE>if (thread.typeIs(ThreadType.Public)) {<NEW_LINE>User currentUser = ChatSDK.currentUser();<NEW_LINE>ChatSDK.thread().addUsersToThread(thread, currentUser).subscribe();...
setText(thread.getDraft());
1,275,036
protected void remove(Node node) {<NEW_LINE>if (node == null)<NEW_LINE>return;<NEW_LINE>// No longer a white node (leaf)<NEW_LINE>node.type = BLACK;<NEW_LINE>Node parent = node.parent;<NEW_LINE>if (node.getChildrenSize() == 0) {<NEW_LINE>// Remove the node if it has no children<NEW_LINE>if (parent != null)<NEW_LINE>par...
builder.append(node.string);
511,828
public void createPartControl(Composite parent) {<NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidth = 5;<NEW_LINE>parent.setLayout(layout);<NEW_LINE>parent.setBackground(ColorUtil.getInstance().getColor(SWT.COLOR_WHITE));<NEW_LINE>parent.setBackgroundMod...
xyGraph.primaryXAxis.setShowMajorGrid(false);
1,369,332
protected ExecutableDdlJob doCreate() {<NEW_LINE>Long initWait = executionContext.getParamManager().getLong(ConnectionParams.PREEMPTIVE_MDL_INITWAIT);<NEW_LINE>Long interval = executionContext.getParamManager().getLong(ConnectionParams.PREEMPTIVE_MDL_INTERVAL);<NEW_LINE>Map<String, Long> tablesVersion = new TreeMap<>(S...
, changeMetaTask, syncTask, reloadTableGroup));
1,072,653
private MenuManager createRefTablesMenu(@Nullable DBRProgressMonitor monitor, boolean openInNewWindow) {<NEW_LINE>DBSEntity singleSource = model.getSingleSource();<NEW_LINE>if (singleSource == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String menuName = ActionUtils.findCommandName(ResultSetHandlerMain.CMD_REFERE...
MenuManager(menuName, null, "ref-tables");
1,752,033
public boolean replaceEvent(GameEvent event, Ability source, Game game) {<NEW_LINE>DamageEvent damageEvent = (DamageEvent) event;<NEW_LINE>Permanent sourcePermanent = game.<MASK><NEW_LINE>if (sourcePermanent != null) {<NEW_LINE>Permanent creature = game.getPermanent(sourcePermanent.getAttachedTo());<NEW_LINE>if (creatu...
getPermanent(source.getSourceId());
1,549,394
public void onMessage(CharSequence pattern, CharSequence channel, String body) {<NEW_LINE>if (deletedTopic.getPatternNames().contains(pattern.toString())) {<NEW_LINE>if (!body.contains(SESSION_PREFIX + "notification:")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String id = body.split(SESSION_PREFIX + "notification:")[1];<...
publishEvent(new SessionDeletedEvent(v));
720,935
private void calculateDistancesFromJob2Job() {<NEW_LINE>logger.debug("pre-process distances between locations ...");<NEW_LINE>StopWatch stopWatch = new StopWatch();<NEW_LINE>stopWatch.start();<NEW_LINE>for (Job job_i : vrp.getJobsInclusiveInitialJobsInRoutes().values()) {<NEW_LINE>if (job_i.getActivities().get(0).getLo...
= new ReferencedJob(job_j, distance);
682,389
public void visitNewObj(ENewObj userNewObjectNode, ScriptScope scriptScope) {<NEW_LINE>Class<?> valueType = scriptScope.getDecoration(userNewObjectNode, ValueType.class).valueType();<NEW_LINE>PainlessConstructor painlessConstructor = scriptScope.getDecoration(userNewObjectNode, StandardPainlessConstructor.class).standa...
irNewObjectNode.attachCondition(IRCRead.class);
52,360
public static void mainHmmVoiceConversion() throws IOException {<NEW_LINE>String baseInputFolder = "D:/Oytun/DFKI/voices/hmmVoiceConversionTest2/output/final/";<NEW_LINE>String baseOutputFolder = "D:/Oytun/DFKI/voices/hmmVoiceConversionTest2/objective_test/";<NEW_LINE>boolean isBark = true;<NEW_LINE>String method1, met...
folder2, referenceFolder, outputFile, isBark);
236,694
public Iterator<I_M_Material_Tracking_Ref> retrieveMaterialTrackingRefsForMaterialTracking(final I_M_Material_Tracking materialTracking) {<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE><MASK><NEW_LINE>final IQueryBuilder<I_M_Material_Tracking_Ref> queryBuilder = queryBL.createQueryBuilder(I_M...
Check.assumeNotNull(materialTracking, "materialTracking not null");
1,595,258
public List<NamespaceVH> fetchNamespaceDetails(SubscriptionVH subscription) throws Exception {<NEW_LINE>List<NamespaceVH> namespaceList = new ArrayList<NamespaceVH>();<NEW_LINE>String accessToken = azureCredentialProvider.<MASK><NEW_LINE>String url = String.format(apiUrlTemplate, URLEncoder.encode(subscription.getSubsc...
getToken(subscription.getTenant());
1,297,373
public void run() {<NEW_LINE>Server newDefault = null;<NEW_LINE>if (ServerManager.getInstance().getDefaultServer().getId() == serverId) {<NEW_LINE>Set<Integer> serverIdSet = ServerManager.getInstance().getOpenServerList();<NEW_LINE>Integer[] serverIds = serverIdSet.toArray(new Integer[serverIdSet.size()]);<NEW_LINE>for...
newDefault.getName() + "\'");
811,836
private synchronized void checkSecondaryStorageResourceLimit(TemplateOrVolumePostUploadCommand cmd, int contentLengthInGB) {<NEW_LINE>String rootDir = this.getRootDir(cmd.getDataTo(), cmd.getNfsVersion()) + File.separator;<NEW_LINE>long accountId = cmd.getAccountId();<NEW_LINE>long accountTemplateDirSize = 0;<NEW_LINE>...
cmd.getEntityUUID(), errorMessage);
678,105
void addRect(float a, float b, float c, float d, float tl, float tr, float br, float bl, boolean stroke) {<NEW_LINE>if (nonZero(tr)) {<NEW_LINE>addVertex(c - tr, b, VERTEX, true);<NEW_LINE>addQuadraticVertex(c, b, 0, c, b + tr, 0, false);<NEW_LINE>} else {<NEW_LINE>addVertex(c, b, VERTEX, true);<NEW_LINE>}<NEW_LINE>if ...
b + tl, VERTEX, false);
552,728
public static DescribeDomainBasicConfigsResponse unmarshall(DescribeDomainBasicConfigsResponse describeDomainBasicConfigsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainBasicConfigsResponse.setRequestId<MASK><NEW_LINE>describeDomainBasicConfigsResponse.setTotalCount(_ctx.integerValue("DescribeDomainBasicCo...
(_ctx.stringValue("DescribeDomainBasicConfigsResponse.RequestId"));
991,011
private Set<String> foreignKeyDiff(final String[] outliers, final String[] inliers, double minRatioThreshold) {<NEW_LINE>final Map<String, Integer> outlierCounts = new HashMap<>();<NEW_LINE>log.info("Starting outliers");<NEW_LINE>// noinspection Duplicates<NEW_LINE>for (final String outlier : outliers) {<NEW_LINE>outli...
inlierCounts = new HashMap<>();
138,816
public void export(LunchVoucherMgt lunchVoucherMgt) throws IOException {<NEW_LINE>MetaFile metaFile = new MetaFile();<NEW_LINE>metaFile.setFileName(I18n.get("LunchVoucherCommand") + " - " + appBaseService.getTodayDate(lunchVoucherMgt.getCompany()).format(DateTimeFormatter.ISO_DATE) + ".csv");<NEW_LINE>Path tempFile = M...
header = new ArrayList<>();