idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,023,207
protected void handleJavaScriptException(ScriptException scriptException, boolean triggerOnError) {<NEW_LINE>// XXX(tbroyer): copied from JavaScriptEngine to call below triggerOnError<NEW_LINE>// instead of Window's triggerOnError.<NEW_LINE>// Trigger window.onerror, if it has been set.<NEW_LINE>final InteractivePage p...
javaScriptErrorListener.scriptException(page, scriptException);
64,133
private ReuseSet generateReuseSet(ReuseKey key) {<NEW_LINE>long start = System.nanoTime();<NEW_LINE>ReuseSet reuseSet = new ReuseSet();<NEW_LINE>try (DatabaseSession databaseSession = bimServer.getDatabase().createSession(OperationType.READ_ONLY)) {<NEW_LINE>// Assuming all given roids are of projects that all have the...
) geometry.get("primitiveCount"));
737,834
protected StockMove _createToProduceStockMove(ManufOrder manufOrder, Company company) throws AxelorException {<NEW_LINE>StockConfigProductionService stockConfigService = Beans.get(StockConfigProductionService.class);<NEW_LINE>StockConfig stockConfig = stockConfigService.getStockConfig(company);<NEW_LINE>StockLocation v...
.getProdProcess().getProducedProductStockLocation();
901,438
private static Op[] createOps(int encFlags1) {<NEW_LINE>int op0 = (encFlags1 >>> EncFlags1.EVEX_OP0_SHIFT) & EncFlags1.EVEX_OP_MASK;<NEW_LINE>int op1 = (encFlags1 >>> EncFlags1.EVEX_OP1_SHIFT) & EncFlags1.EVEX_OP_MASK;<NEW_LINE>int op2 = (encFlags1 >>> EncFlags1.EVEX_OP2_SHIFT) & EncFlags1.EVEX_OP_MASK;<NEW_LINE>int op...
.evexOps[op0 - 1] };
1,563,583
public AnomalyReportedTimeRange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AnomalyReportedTimeRange anomalyReportedTimeRange = new AnomalyReportedTimeRange();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
"unixTimestamp").unmarshall(context));
1,318,192
private static void addPathSetMapToBundle(Map<String, Map<String, String>> pathSetMap, Map<String, Object> bundle) {<NEW_LINE>// We previously built a mapping from path to path ID and regular<NEW_LINE>// expression - see fromOperation for details. Sort it and add an<NEW_LINE>// index, and then add it to the objects th...
bundle.put("pathSet", pathSet);
111,201
final ListAssessmentFrameworksResult executeListAssessmentFrameworks(ListAssessmentFrameworksRequest listAssessmentFrameworksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssessmentFrameworksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,269,807
private JSONObject stdPeopleMessage(String actionType, Object properties) throws JSONException {<NEW_LINE>final JSONObject dataObj = new JSONObject();<NEW_LINE>// TODO ensure getDistinctId is thread safe<NEW_LINE>final String distinctId = getDistinctId();<NEW_LINE>final String anonymousId = getAnonymousId();<NEW_LINE>d...
dataObj.put("$token", mToken);
1,010,560
void pruneNearlyIdenticalAngles() {<NEW_LINE>for (int i = 0; i < listInfo.size(); i++) {<NEW_LINE>NodeInfo infoN = listInfo.get(i);<NEW_LINE>for (int j = 0; j < infoN.edges.size(); ) {<NEW_LINE>int k = (j + 1) % infoN.edges.size;<NEW_LINE>double angularDiff = UtilAngle.dist(infoN.edges.get(j).angle, infoN.edges.get(k)....
distance(infoJ.ellipse.center);
640,223
private Map<String, FileResource> makeCustomFileBundle(final SessionLabel sessionLabel, final DomainConfig domainConfig) {<NEW_LINE>final Map<String, FileResource> customFileBundle = new HashMap<>();<NEW_LINE>final Map<FileValue.FileInformation, FileValue.FileContent> files = domainConfig.readSettingAsFile(PwmSetting.D...
.getContents().copyOf();
1,372,915
public void addJvmMData(MNode mNode, List<MData> mDatas) {<NEW_LINE><MASK><NEW_LINE>List<JVMGCDataPo> jvmGCDataPos = new ArrayList<JVMGCDataPo>(size);<NEW_LINE>List<JVMMemoryDataPo> jvmMemoryDataPos = new ArrayList<JVMMemoryDataPo>(size);<NEW_LINE>List<JVMThreadDataPo> jvmThreadDataPos = new ArrayList<JVMThreadDataPo>(...
int size = mDatas.size();
1,088,725
void saveStateOnApplicationClose(TreeViewer viewer, IMemento memento) {<NEW_LINE>Hashtable<File, String> map = new Hashtable<File, String>();<NEW_LINE>IMemento expandedMem = memento.createChild(MEMENTO_EXPANDED);<NEW_LINE>for (Object element : viewer.getVisibleExpandedElements()) {<NEW_LINE>if (element instanceof IIden...
IIdentifier) element).getId();
116,721
private TaskInfo createTaskInfo(TaskHolder taskHolder) {<NEW_LINE>TaskStats taskStats = getTaskStats(taskHolder);<NEW_LINE>Set<<MASK><NEW_LINE>TaskStatus taskStatus = createTaskStatus(taskHolder, isMPPMetricEnabled ? Optional.of(taskStats) : Optional.empty());<NEW_LINE>if (isMPPMetricEnabled) {<NEW_LINE>return new Task...
Integer> noMoreSplits = getNoMoreSplits(taskHolder);
658,460
private boolean isMetaFileOlderThenMMappedFiles(String sessionId) {<NEW_LINE>if (sessionId == null)<NEW_LINE>// valid case, no session is ok<NEW_LINE>return false;<NEW_LINE>// one extra check is to verify that the session directory that contains the actual buffers<NEW_LINE>// was not modified after the file was saved<N...
long metaFileModTime = _file.lastModified();
301,025
public BulkWriteResult writeMapBulk(final String indexName, final List<BulkWriteEntry> jsonMapList) {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>ListenableActionFuture<BulkResponse> future = writeMapBulkInternal(indexName, jsonMapList);<NEW_LINE>BulkResponse bulkResponse = future.actionGet();<NEW_LINE>B...
) + ", " + ops + " objects/second");
1,646,655
public void deploy(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String loadPath = OSGIUtil.getInstance().getFelixDeployPath();<NEW_LINE>String undeployedPath = OSGIUtil.getInstance().getFelixUndeployPath();<NEW_LINE>String jar = request.getParameter("jar");<N...
OSGIAJAX.class, "Error Loading OSGI Bundle " + jar);
53,571
public void build(BuildProducer<ReflectiveClassBuildItem> reflectiveClass) {<NEW_LINE>for (AnnotationInstance i : combinedIndexBuildItem.getIndex().getAnnotations(DotName.createSimple(RegisterForReflection.class.getName()))) {<NEW_LINE>boolean methods = getBooleanValue(i, "methods");<NEW_LINE>boolean fields = getBoolea...
fields, ignoreNested, serialization, reflectiveClass);
1,151,756
public int runInteractive(String[] scriptArgs) {<NEW_LINE>fillSysArgv(null, scriptArgs);<NEW_LINE>String[] args = null;<NEW_LINE>String[] iargs = { /*"-i", "-c",*/<NEW_LINE>"require 'irb'\n" + "ScriptRunner.runningInteractive();\n" + "print \"Hello, this is your interactive Sikuli (rules for interactive Ruby apply)\\n"...
scriptArgs.length + iargs.length];
1,472,107
public static Map<String, ?> toServiceConfig(String serviceName, RetryPolicy retryPolicy) {<NEW_LINE>List<Double> retryableStatusCodes = RetryUtil.retryableGrpcStatusCodes().stream().map(Double::parseDouble).collect(toList());<NEW_LINE>Map<String, Object> retryConfig = new HashMap<>();<NEW_LINE>retryConfig.put("retryab...
double) retryPolicy.getMaxAttempts());
458,479
public okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{n...
HashMap<String, Object>();
1,724,642
public Pair<Gradient, INDArray> backpropGradient(INDArray epsilon, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(true);<NEW_LINE>boolean ncdhw = layerConf().getDataFormat() == org.deeplearning4j.nn.conf.layers.Convolution3D.DataFormat.NCDHW;<NEW_LINE>// Assumes NCDHW order<NEW_LINE>long miniBatch = input.si...
inW = input.size(4);
1,821,726
public void printHorizontal() {<NEW_LINE>String typeCast = imageOut.getTypeCastFromSum();<NEW_LINE>String sumType = imageIn.getSumType();<NEW_LINE><MASK><NEW_LINE>out.print("\tpublic static void horizontal( " + imageIn.getSingleBandName() + " input , " + imageOut.getSingleBandName() + " output , int radius ) {\n" + "\t...
String bitWise = imageIn.getBitWise();
254,285
public void run(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>completion.fail(reply.getError());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>KVMHostAsyncHttpCallReply ar = reply.castReply();<NEW_LINE>AgentRsp rsp = <MASK><NEW_LINE>if (!rsp.success) {<NEW_LINE>completion.fail(operr("operation error, because...
ar.toResponse(AgentRsp.class);
355,616
final ListChannelModeratorsResult executeListChannelModerators(ListChannelModeratorsRequest listChannelModeratorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listChannelModeratorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
invoke(request, responseHandler, executionContext);
527,329
public void testBasicBlockExampleCode() {<NEW_LINE>env.showTool();<NEW_LINE>removeField(BytesFieldFactory.FIELD_NAME);<NEW_LINE>removeField(EolCommentFieldFactory.FIELD_NAME);<NEW_LINE>removeField(XRefFieldFactory.FIELD_NAME);<NEW_LINE>removeField(XRefHeaderFieldFactory.XREF_FIELD_NAME);<NEW_LINE>removeFlowArrows();<NE...
drawBlockLines(16, 18, "Block 4");
437,529
public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException {<NEW_LINE>getPrev().ifPresent(x -> x.syncPull(ctx, nRecords));<NEW_LINE>return new OResultSet() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean hasNext() {<NEW_LINE>return !executed;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NE...
System.nanoTime() - begin);
909,194
public com.amazonaws.services.acmpca.model.InvalidArnException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.acmpca.model.InvalidArnException invalidArnException = new com.amazonaws.services.acmpca.model.InvalidArnException(null);<NEW_LINE>int originalDepth = ...
String currentParentElement = context.getCurrentParentElement();
1,661,682
public static void onReceive(TermuxApiReceiver apiReceiver, final Context context, Intent intent) {<NEW_LINE>Logger.logDebug(LOG_TAG, "onReceive");<NEW_LINE>final String[] filePaths = intent.getStringArrayExtra("paths");<NEW_LINE>final boolean recursive = intent.getBooleanExtra("recursive", false);<NEW_LINE>final Integ...
context, filePaths, totalScanned, verbose);
402,375
public static void main(final String[] args) {<NEW_LINE>final PluginServices plugins = PluginServices.makeForContextLoader();<NEW_LINE>final OptionsParser parser = new OptionsParser(new PluginFilter(plugins));<NEW_LINE>final ParseResult pr = parser.parse(args);<NEW_LINE>if (!pr.isOk()) {<NEW_LINE>parser.printHelp();<NE...
ReportOptions data = pr.getOptions();
1,240,128
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext context) {<NEW_LINE>describeRegionsResponse.setRequestId(context.stringValue("DescribeRegionsResponse.RequestId"));<NEW_LINE>List<Region> regions = new ArrayList<Region>();<NEW_LINE>for (int i = 0; i < ...
("DescribeRegionsResponse.Regions[" + i + "].RegionEndpoint"));
123,180
public void insertHyperlink() {<NEW_LINE>// retrieve caret position<NEW_LINE>int caret = jTextAreaEntry.getCaretPosition();<NEW_LINE>// the button for editing the spellchecking-words was pressed,<NEW_LINE>// so open the window for edting them...<NEW_LINE>if (null == hyperlinkEditDlg) {<NEW_LINE>// get parent und init w...
getApplication().show(hyperlinkEditDlg);
1,272,608
private void startlientStreaming(HttpServletRequest req, HttpServletResponse resp) throws Exception {<NEW_LINE>String m = "startlientStreaming";<NEW_LINE>// before coming here, code in ProducerGrpcServiceClient will have made the GRPC calls<NEW_LINE>// to ManagedChannelBuilder.forAddress and newStub to setup the RPC co...
isValidResponse = result.contains("success");
292,890
public DescribeSubnetGroupsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeSubnetGroupsResult describeSubnetGroupsResult = new DescribeSubnetGroupsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
1,423,292
public static boolean showOn(@NonNull FragmentActivity activity, @Nullable BaseNewsFragment.NewsDialogListener doneListener) {<NEW_LINE>final FragmentManager fm = activity.getSupportFragmentManager();<NEW_LINE>if (fm.isDestroyed())<NEW_LINE>return false;<NEW_LINE>final UpdateInfo info = MapManager.nativeGetUpdateInfo(C...
final UpdaterDialogFragment fragment = new UpdaterDialogFragment();
887,025
public void createDragImage(com.google.gwt.user.client.Element element, boolean alignImageToEvent) {<NEW_LINE>Element cloneNode = (Element) element.cloneNode(true);<NEW_LINE>// Set size explicitly for cloned node to avoid stretching #14617.<NEW_LINE>cloneNode.getStyle().setWidth(element.getOffsetWidth(), Unit.PX);<NEW_...
int absoluteLeft = element.getAbsoluteLeft();
1,324,869
public void printExpectations(Expectations expectations, String[] actions) throws Exception {<NEW_LINE>String thisMethod = "printExpectations";<NEW_LINE>if (actions != null) {<NEW_LINE>Log.info(thisClass, thisMethod, "Actions: " + Arrays.toString(actions));<NEW_LINE>}<NEW_LINE>if (expectations == null) {<NEW_LINE>Log.i...
expected.getAction() + " (expect 200 response)");
1,131,927
public void cellHover(TableCell cell) {<NEW_LINE>super.cellHover(cell);<NEW_LINE>long lConnectedPeers = 0;<NEW_LINE>DownloadManager dm = (DownloadManager) cell.getDataSource();<NEW_LINE>if (dm != null) {<NEW_LINE>lConnectedPeers = dm.getNbPeers();<NEW_LINE>String sToolTip = lConnectedPeers + " " + <MASK><NEW_LINE>if (l...
MessageText.getString("GeneralView.label.connected") + "\n";
772,273
private String _getRenderFlashMapTokenFromPreviousRequest(FacesContext facesContext) {<NEW_LINE>ExternalContext externalContext = facesContext.getExternalContext();<NEW_LINE>String tokenValue = null;<NEW_LINE>ClientWindow clientWindow = externalContext.getClientWindow();<NEW_LINE>if (clientWindow != null) {<NEW_LINE>if...
httpResponse = ExternalContextUtils.getHttpServletResponse(externalContext);
249,962
protected TransitionInstanceImpl createTransitionInstance(PvmExecutionImpl execution, Map<String, List<Incident>> incidentsByExecution) {<NEW_LINE>TransitionInstanceImpl transitionInstance = new TransitionInstanceImpl();<NEW_LINE>// can use execution id as persistent ID for transition as an execution<NEW_LINE>// can ex...
) activity.getProperty("type"));
1,276,451
public void listen(ConnectionLostEvent connectionLostEvent) {<NEW_LINE>ButtonType reconnect = new ButtonType(Localization.lang("Reconnect"), ButtonData.YES);<NEW_LINE>ButtonType workOffline = new ButtonType(Localization.lang("Work offline"), ButtonData.NO);<NEW_LINE>ButtonType closeLibrary = new ButtonType(Localization...
(Localization.lang("Working offline."));
1,403,628
private void initBasicScreens() {<NEW_LINE>// TODO read this from settings!!<NEW_LINE>screens.clear();<NEW_LINE>screenSizes.clear();<NEW_LINE>{<NEW_LINE>ArrayList<Pair<Pair<Scope, Dimension>, Formatter.Format>> screen = new ArrayList<>();<NEW_LINE>screen.add(new Pair<>(new Pair<>(Scope.ACTIVITY, Dimension.TIME), Format...
, Formatter.Format.TXT_SHORT));
729,175
public void onClick(View v) {<NEW_LINE>new QMUIDialog.CheckableDialogBuilder(mContext).setCheckedIndex(PixivSearchParamUtil.getSortTypeIndex(Shaft.sSettings.getSearchDefaultSortType())).setSkinManager(QMUISkinManager.defaultInstance(mContext)).addItems(PixivSearchParamUtil.SORT_TYPE_NAME, new DialogInterface.OnClickLis...
(PixivSearchParamUtil.SORT_TYPE_NAME[which]);
1,328,634
public void handleRequest(final HttpServerExchange exchange) throws Exception {<NEW_LINE>HeaderValues serviceUrlHeader = exchange.getRequestHeaders().get(HttpStringConstants.SERVICE_URL);<NEW_LINE>String serviceUrl = serviceUrlHeader != null ? serviceUrlHeader.peekFirst() : null;<NEW_LINE>if (serviceUrl == null) {<NEW_...
).get(HttpStringConstants.SERVICE_ID);
329,382
public List<PanelShareDto> queryTree(BaseGridRequest request) {<NEW_LINE>CurrentUserDto user = AuthUtils.getUser();<NEW_LINE><MASK><NEW_LINE>Long deptId = user.getDeptId();<NEW_LINE>List<Long> roleIds = user.getRoles().stream().map(CurrentRoleDto::getId).collect(Collectors.toList());<NEW_LINE>Map<String, Object> param ...
Long userId = user.getUserId();
1,723,144
public void applyNewConfig(RuntimeConfig oldConfig) {<NEW_LINE>LOG.info("Applying runtime client config");<NEW_LINE>if (null == oldConfig || !getContainer().equals(oldConfig.getContainer())) {<NEW_LINE>getContainer().applyNewConfig(null != oldConfig ? oldConfig.getContainer() : null);<NEW_LINE>}<NEW_LINE>if (getCheckpo...
oldConfig.getCheckpointPersistence() : null);
1,667,822
protected void formBackingObject(Model model) {<NEW_LINE>GeneralSettingsCommand command = new GeneralSettingsCommand();<NEW_LINE>command.setCoverArtFileTypes(settingsService.getCoverArtFileTypes());<NEW_LINE>command.setCoverArtSource(settingsService.getCoverArtSource());<NEW_LINE>command.setCoverArtConcurrency(settings...
setIndex(settingsService.getIndexString());
780,829
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>mSurfaceView = new VRSurfaceView(this);<NEW_LINE>addContentView(mSurfaceView, new ActionBar.LayoutParams<MASK><NEW_LINE>int uiFlags = // hide nav bar<NEW_LINE>View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_L...
(ViewGroup.LayoutParams.MATCH_PARENT));
1,723,417
public CompletableFuture<Boolean> prepare(TransactionLog<MapUpdate<K, byte[]>> transactionLog) {<NEW_LINE>Map<PartitionId, List<MapUpdate<K, byte[]>>> updatesGroupedByMap = Maps.newIdentityHashMap();<NEW_LINE>transactionLog.records().forEach(update -> {<NEW_LINE>updatesGroupedByMap.computeIfAbsent(getPartition(update.k...
.version(), list));
477,773
static // / @brief Print the solution.<NEW_LINE>void printSolution(DataModel data, RoutingModel routing, RoutingIndexManager manager, Assignment solution) {<NEW_LINE>// Solution cost.<NEW_LINE>logger.info("Objective: " + solution.objectiveValue());<NEW_LINE>// Inspect solution.<NEW_LINE>long totalDistance = 0;<NEW_LINE...
+= nodeIndex + " Load(" + routeLoad + ") -> ";
738,712
private static int run(com.zeroc.Ice.Communicator communicator, java.util.List<String> argSeq) {<NEW_LINE>final String prefix = "IceBox.Service.";<NEW_LINE>com.zeroc.Ice.Properties properties = communicator.getProperties();<NEW_LINE>java.util.Map<String, String> <MASK><NEW_LINE>java.util.List<String> iceBoxArgs = new j...
services = properties.getPropertiesForPrefix(prefix);
617,567
public final InputStream openNonAsset(int cookie, String fileName, int accessMode) throws IOException {<NEW_LINE>final ResName resName = qualifyFromNonAssetFileName(fileName);<NEW_LINE>final FileTypedResource typedResource = (FileTypedResource) getResourceTable(<MASK><NEW_LINE>if (typedResource == null) {<NEW_LINE>thro...
).getValue(resName, config);
578,012
public void chooseBackgroundColor() {<NEW_LINE>// first, show an color-chooser-dialog and let the user choose the color<NEW_LINE>Color color = JColorChooser.showDialog(this, resourceMap.getString("chooseColorMsg"), getBackgroundColor());<NEW_LINE>// if the user chose a color, proceed<NEW_LINE>if (color != null) {<NEW_L...
, color.getBlue()));
841,523
public static long clCreateImage2D(@NativeType("cl_context") long context, @NativeType("cl_mem_flags") long flags, @NativeType("cl_image_format const *") CLImageFormat image_format, @NativeType("size_t") long image_width, @NativeType("size_t") long image_height, @NativeType("size_t") long image_row_pitch, @Nullable @Na...
image_row_pitch, host_ptr, errcode_ret, __functionAddress);
1,718,224
public void writePSMeta(ParameterServerManager psManager) throws IOException {<NEW_LINE>try {<NEW_LINE>psMetaLock.lock();<NEW_LINE>// generate a temporary file<NEW_LINE>String psMetaFile = getPsMetaFile();<NEW_LINE>String tmpFile = getPSMetaTmpeFile(psMetaFile);<NEW_LINE>Path tmpPath = new Path(writeDir, tmpFile);<NEW_...
fs.delete(lastPsMetaFilePath, false);
856,019
private BLangXMLElementFilter createXMLElementFilter(Node node) {<NEW_LINE>String ns = "";<NEW_LINE>String elementName = "*";<NEW_LINE>Location nsPos = null;<NEW_LINE>Location elemNamePos = null;<NEW_LINE>SyntaxKind kind = node.kind();<NEW_LINE>switch(kind) {<NEW_LINE>case SIMPLE_NAME_REFERENCE:<NEW_LINE>SimpleNameRefe...
.name().text();
849,770
protected ClientProxyImpl createClientProxy(ClassResourceInfo cri, boolean isRoot, ClientState actualState, Object[] varValues) {<NEW_LINE>// Liberty change start<NEW_LINE>MicroProfileClientProxyImpl clientProxy;<NEW_LINE>CDIInterceptorWrapper interceptorWrapper = CDIInterceptorWrapper.createWrapper(getServiceClass());...
configuration, interceptorWrapper, secConfig, varValues);
451,893
public static PDPageXYZDestination createBoxDestination(RenderingContext c, PDDocument writer, PdfBoxFastOutputDevice od, float dotsPerPoint, Box root, Box box) {<NEW_LINE>List<PageBox> pages = root.getLayer().getPages();<NEW_LINE>Rectangle bounds = PagedBoxCollector.findAdjustedBoundsForBorderBox(c, box, pages);<NEW_L...
+ 1 + page.getBasePagePdfPageIndex();
749,011
private UpdatedState applyRenameActions(ClusterState state, SwapRelationsRequest swapRelationsRequest) {<NEW_LINE>HashSet<String> newIndexNames = new HashSet<>();<NEW_LINE>Metadata metadata = state.getMetadata();<NEW_LINE>Metadata.Builder updatedMetadata = Metadata.builder(state.getMetadata());<NEW_LINE>RoutingTable.Bu...
RelationName target = relationNameSwap.target();
592,919
protected void applyEnterTableKey(EventBean[] eventsPerStream, Object tableKey, ExprEvaluatorContext exprEvaluatorContext) {<NEW_LINE>ObjectArrayBackedEventBean bean = <MASK><NEW_LINE>currentAggregationRow = (AggregationRow) bean.getProperties()[0];<NEW_LINE>InstrumentationCommon instrumentationCommon = exprEvaluatorCo...
tableInstance.getCreateRowIntoTable(tableKey, exprEvaluatorContext);
680,710
public TraversalControl visitArgument(Argument argument, TraverserContext<Node> context) {<NEW_LINE>GraphQLArgument graphQLArgumentDefinition;<NEW_LINE>// An argument is either from a applied query directive or from a field<NEW_LINE>if (context.getVarFromParents(GraphQLDirective.class) != null) {<NEW_LINE>GraphQLDirect...
getArgument(argument.getName());
174,531
public List<List<Integer>> verticalTraversal(TreeNode root) {<NEW_LINE>List<int[]> list = new ArrayList<>();<NEW_LINE>dfs(root, 0, 0, list);<NEW_LINE>list.sort(new Comparator<int[]>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(int[] o1, int[] o2) {<NEW_LINE>if (o1[0] != o2[0])<NEW_LINE>return Integer.co...
(new ArrayList<>());
1,180,046
public Expression read(Decoder decoder) throws Exception {<NEW_LINE>byte tag = decoder.readByte();<NEW_LINE>if (tag == SIMPLE) {<NEW_LINE><MASK><NEW_LINE>IncludeType expressionType = enumSerializer.read(decoder);<NEW_LINE>return new SimpleExpression(expressionValue, expressionType);<NEW_LINE>} else if (tag == EMPTY_TOK...
String expressionValue = decoder.readNullableString();
1,415,522
public void paint(@NotNull final Graphics2D g2d, @NotNull final Rectangle bounds, @NotNull final C c, @NotNull final D d, @NotNull final Shape shape) {<NEW_LINE>final int width = getWidth();<NEW_LINE>final float opacity = getOpacity();<NEW_LINE>if (width > 0 && opacity > 0f) {<NEW_LINE>final ShadowType type = getType()...
b.height + width * 2);
1,769,362
private void prepareGui() {<NEW_LINE>setContentView(R.layout.programmer);<NEW_LINE>setTitle(R.string.programmer_title);<NEW_LINE>programmerStatusTextView_ = findViewById(R.id.programmerStatusTextView);<NEW_LINE>imageStatusTextView_ = findViewById(R.id.imageStatusTextView);<NEW_LINE>selectedImageTextView_ = findViewById...
setText(selectedBundleName_ + " / " + selectedBoardName_);
1,091,032
private FastBuildState updateBuild(BlazeContext context, Label label, FastBuildParameters buildParameters, @Nullable FastBuildState existingBuildState) {<NEW_LINE>context.output(FastBuildLogOutput.keyValue("label", label.toString()));<NEW_LINE>if (existingBuildState != null && !existingBuildState.newBuildOutput().isDon...
changedFilesManager.newBuild(label, newBuildOutput);
1,078,366
private JComponent createGainPanel() {<NEW_LINE>final JSlider gainSlider;<NEW_LINE>gainSlider = new JSlider(0, 200);<NEW_LINE>gainSlider.setValue(100);<NEW_LINE>gainSlider.setPaintLabels(true);<NEW_LINE>gainSlider.setPaintTicks(true);<NEW_LINE>final JLabel label = new JLabel("Gain: 100%");<NEW_LINE>gainSlider.addChange...
.getValue()) + "%");
1,259,466
private void updateDialogForCurrentKey() {<NEW_LINE>int flags = _currentKeyBean.getMetaFlags();<NEW_LINE>_checkAlt.setChecked(0 != (flags & (RemoteKeyboard.ALT_MASK | RemoteKeyboard.RALT_MASK)));<NEW_LINE>_checkShift.setChecked(0 != (flags & (RemoteKeyboard.SHIFT_MASK | RemoteKeyboard.RSHIFT_MASK)));<NEW_LINE>_checkCtr...
CTRL_MASK | RemoteKeyboard.RCTRL_MASK)));
715,785
public void initialize() throws IOException {<NEW_LINE>super.initialize();<NEW_LINE>boolean setDockIcon = true;<NEW_LINE>boolean setDockName = true;<NEW_LINE>for (String s : jvmArguments) {<NEW_LINE>if (s.contains(XDOCK_NAME_PROPERTY_NAME)) {<NEW_LINE>setDockName = false;<NEW_LINE>}<NEW_LINE>if (s.contains(XDOCK_ICON_P...
, ERROR_CANNOT_GET_ICON_KEY, uri), e);
1,425,206
public void processTokenRequest(OAuth20Provider provider, HttpServletRequest request, HttpServletResponse response) throws ServletException, OidcServerException {<NEW_LINE>String clientId = (String) request.getAttribute("authenticatedClient");<NEW_LINE>try {<NEW_LINE>// checking resource<NEW_LINE>OidcBaseClient client ...
OIDCConstants.ERROR_INVALID_CLIENT_METADATA, HttpServletResponse.SC_BAD_REQUEST);
1,764,831
public RecipeAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RecipeAction recipeAction = new RecipeAction();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurren...
int originalDepth = context.getCurrentDepth();
358,379
String generateFinderSelectorParamCheck(Method m, String[] parameterEjbNames) {<NEW_LINE>StringBuilder checkBody = new StringBuilder();<NEW_LINE>Class[] paramTypes = m.getParameterTypes();<NEW_LINE>int paramLength = paramTypes.length;<NEW_LINE>String paramClassName = null;<NEW_LINE>for (int i = 0; i < paramLength; i++)...
1] = CMP20TemplateFormatter.param_ + i;
1,345,952
public static DescribePriceResponse unmarshall(DescribePriceResponse describePriceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePriceResponse.setRequestId(_ctx.stringValue("DescribePriceResponse.RequestId"));<NEW_LINE>describePriceResponse.setTraceId(_ctx.stringValue("DescribePriceResponse.TraceId"));<NEW_LINE...
("DescribePriceResponse.Order.Coupons[" + i + "].Name"));
115,134
public AddPrefixListEntry unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>AddPrefixListEntry addPrefixListEntry = new AddPrefixListEntry();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>tar...
XMLEvent xmlEvent = context.nextEvent();
1,106,093
final DeleteBlueprintResult executeDeleteBlueprint(DeleteBlueprintRequest deleteBlueprintRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBlueprintRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
195,817
private CodecMeta toSampleEntry(GenericDescriptor d) {<NEW_LINE>if (track.isVideo()) {<NEW_LINE>GenericPictureEssenceDescriptor ped = (GenericPictureEssenceDescriptor) d;<NEW_LINE>Rational ar = ped.getAspectRatio();<NEW_LINE>VideoCodecMeta se = VideoCodecMeta.createVideoCodecMeta(MP4Util.getFourcc(track.getCodec().getC...
())), 1000));
894,000
public TemporaryCredential unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TemporaryCredential temporaryCredential = new TemporaryCredential();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
class).unmarshall(context));
900,145
public boolean compile() throws IOException {<NEW_LINE>if (getJaxbJarFile() != null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>FileObject jaxbBaseDir = getOrCreateJaxbFolder();<NEW_LINE>FileObject userBuildFile = SaasServicesModel.getWebServiceHome().getParent().<MASK><NEW_LINE>File jaxbBasePath = FileUtil.normalizeF...
getParent().getFileObject("build.properties");
1,159,567
public void updatePosition(PlaybackPositionEvent event) {<NEW_LINE>if (controller == null || txtvPosition == null || txtvLength == null || sbPosition == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TimeSpeedConverter converter = new TimeSpeedConverter(controller.getCurrentPlaybackSpeedMultiplier());<NEW_LINE>int curren...
convert(event.getPosition());
1,409,938
private void populateView() {<NEW_LINE>_grid = getActivity().findViewById(R.id.app_grid);<NEW_LINE>assert _grid != null;<NEW_LINE>_grid.setFastScrollEnabled(true);<NEW_LINE>_grid.setFastScrollAlwaysVisible(false);<NEW_LINE>_appInfoAdapter = new <MASK><NEW_LINE>_grid.setAdapter(_appInfoAdapter);<NEW_LINE>_grid.setOnItem...
HideAppsAdapter(getActivity(), _listActivitiesAll);
1,716,087
public void resizeStitchImage(int widthStitch, int heightStitch, IT newToOldStitch) {<NEW_LINE>// copy the old image into the new one<NEW_LINE>workImage.reshape(widthStitch, heightStitch);<NEW_LINE>GImageMiscOps.fill(workImage, 0);<NEW_LINE>if (newToOldStitch != null) {<NEW_LINE>PixelTransform<Point2D_F32> newToOld = c...
overlapWidth, overlapHeight, stitchedImage, workImage);
1,442,994
public Object doQuery(Object[] objs) {<NEW_LINE>int count = 1000;<NEW_LINE>if (objs.length >= 3 && objs[2] instanceof Integer) {<NEW_LINE>count = Integer.parseInt(objs[2].toString());<NEW_LINE>}<NEW_LINE>ScanOptions options = new ScanOptions.ScanOptionsBuilder().match(objs[1].toString()).count(count).build();<NEW_LINE>...
].toString(), options);
285,531
private Document ticketToDoc(TicketModel ticket) {<NEW_LINE>Document doc = new Document();<NEW_LINE>// repository and document ids for Lucene querying<NEW_LINE>toDocField(doc, Lucene.rid, StringUtils.getSHA1(ticket.repository));<NEW_LINE>toDocField(doc, Lucene.did, StringUtils.getSHA1(ticket.repository + ticket.number)...
Lucene.created, ticket.created);
239,503
private static void writeJson(DynamoDBEntry entry, JsonWriter writer) throws IOException {<NEW_LINE>if (entry instanceof Document) {<NEW_LINE>writer.beginObject();<NEW_LINE>final Document doc = (Document) entry;<NEW_LINE>for (final Entry<String, DynamoDBEntry> docEntry : doc.entrySet()) {<NEW_LINE>final String key = do...
throw new JsonParseException("unable to convert to json " + entry);
1,234,979
public CompletableFuture<InetSocketAddress> resolveAddr() {<NEW_LINE>if (resolvedAddrFuture.get() != null) {<NEW_LINE>return resolvedAddrFuture.get();<NEW_LINE>}<NEW_LINE>CompletableFuture<InetSocketAddress> promise = new CompletableFuture<>();<NEW_LINE>if (!resolvedAddrFuture.compareAndSet(null, promise)) {<NEW_LINE>r...
.getAddress().getAddress();
76,879
public MethodHandle unreflect(Method m) throws IllegalAccessException {<NEW_LINE>if (m.getDeclaringClass() == MethodHandle.class) {<NEW_LINE>MethodHandle mh = unreflectForMH(m);<NEW_LINE>if (mh != null)<NEW_LINE>return mh;<NEW_LINE>}<NEW_LINE>if (m.getDeclaringClass() == VarHandle.class) {<NEW_LINE>MethodHandle mh = un...
assert (method.isMethod());
114,906
private Mono<Response<ManagedEnvironmentStoragesCollectionInner>> listWithResponseAsync(String resourceGroupName, String envName) {<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>...
)).readOnly()));
57,701
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View root = inflater.inflate(R.layout.fragment_wallet, container, false);<NEW_LINE>loadingRecentContainer = root.findViewById(R.id.wallet_loading_recent_container);<NEW_LINE>layoutAccountRecommended = r...
findViewById(R.id.wallet_sign_up_button);
1,533,446
private void readGenValue(GeneratedValue gen, Id id, DeployBeanProperty prop) {<NEW_LINE>if (id == null) {<NEW_LINE>if (UUID.class.equals(prop.getPropertyType())) {<NEW_LINE>generatedPropFactory.setUuid(prop);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>descriptor.setIdGeneratedValue();<NEW_LINE>SequenceGenerator s...
), prop.getDbColumn());
1,518,392
private <T extends Node.Cookie> T lookupCookie(Class<T> clazz) {<NEW_LINE>Node.Cookie ret = null;<NEW_LINE><MASK><NEW_LINE>synchronized (this) {<NEW_LINE>R r = findR(clazz);<NEW_LINE>if (r == null) {<NEW_LINE>if (queryMode == null || ic == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>ret = r.cook...
Object queryMode = QUERY_MODE.get();
709,091
protected LibSVMModel<Regressor> createModel(ModelProvenance provenance, ImmutableFeatureMap featureIDMap, ImmutableOutputInfo<Regressor> outputIDInfo, List<svm_model> models) {<NEW_LINE>if (models.get(0) instanceof ModelWithMeanVar) {<NEW_LINE>// models have been standardized, unpick and use standardized constructor<N...
double[models.size()];
417,552
public synchronized void updateCurrentServingInstance() {<NEW_LINE>synchronized (_currentServingInstance) {<NEW_LINE>Map<String, InstanceTopicPartitionHolder> instanceMap = new HashMap<>();<NEW_LINE>Map<String, Set<TopicPartition>> instanceToTopicPartitionsMap = HelixUtils.getInstanceToTopicPartitionsMap(_helixZkManage...
liveInstances = HelixUtils.liveInstances(_helixZkManager);
365,739
private void restoreMemoryTags(String tagName, XmlPullParser parser, AddressSet addrSet) throws XmlParseException {<NEW_LINE>parser.start(tagName);<NEW_LINE>while (parser.peek().isStart()) {<NEW_LINE>XmlElement subel = parser.start();<NEW_LINE>String name = subel.getName();<NEW_LINE>if (name.equals("range") || name.equ...
"Unexpected <" + tagName + "> sub-tag: " + name);
180,542
private void initComponents() {<NEW_LINE>// GEN-BEGIN:initComponents<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = <MASK><NEW_LINE>jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>jPanel1 = new MainClassChooser(sourcesRoots, org.openide.util.NbBundle.getBundle(MainClassWarning.class)...
new javax.swing.JLabel();
911,508
private void copyColumns(Cursor cursor, MatrixCursor result, int count) {<NEW_LINE>try {<NEW_LINE>Object[] columns = new Object[count];<NEW_LINE>for (int i = 0; i < count; i++) switch(cursor.getType(i)) {<NEW_LINE>case Cursor.FIELD_TYPE_NULL:<NEW_LINE>columns[i] = null;<NEW_LINE>break;<NEW_LINE>case Cursor.FIELD_TYPE_I...
] = cursor.getBlob(i);
1,061,543
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) {<NEW_LINE>final BindResult<WebEndpointProperties> result = Binder.get(environment).bind(MANAGEMENT_ENDPOINTS_WEB, WebEndpointProperties.class);<NEW_LINE>if (result.isBound()) {<NEW_LINE>WebEndpointProperties webEndpointProperties = result....
newGroups = new ArrayList<>();
410,795
final ListIAMPolicyAssignmentsResult executeListIAMPolicyAssignments(ListIAMPolicyAssignmentsRequest listIAMPolicyAssignmentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIAMPolicyAssignmentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
invoke(request, responseHandler, executionContext);
1,311,988
private static List<KeyValuePair<String, Object>> flattenParamsValue(Object value, String keyPrefix) {<NEW_LINE>List<KeyValuePair<String, Object>> flatParams = null;<NEW_LINE>// I wish Java had pattern matching :(<NEW_LINE>if (value == null) {<NEW_LINE>flatParams = singleParam(keyPrefix, "");<NEW_LINE>} else if (value ...
<?>) value, keyPrefix);
146,292
public /*<NEW_LINE>* Most of this code copied from JList.java because there are<NEW_LINE>* some problems with scrolling on big completion lists, ex. full<NEW_LINE>* PHP completion list contains about 6000 elements. Scrolling<NEW_LINE>* just removed from code.<NEW_LINE>*/<NEW_LINE>Object clickOnItem(final String item, f...
throw (new NoSuchItemException(itemIndex));
1,471,704
public String showProposals(final boolean autoActivated) {<NEW_LINE>if (fKeyListener == null) {<NEW_LINE>fKeyListener = new ProposalSelectionListener();<NEW_LINE>}<NEW_LINE>final Control control = fContentAssistSubjectControlAdapter.getControl();<NEW_LINE>if (control != null && !control.isDisposed()) {<NEW_LINE>// add ...
null ? 0 : fComputedProposals.length);
1,080,474
protected void calcAsync() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>Map<Integer, UserAgentSummary> summaryMap = new HashMap<Integer, UserAgentSummary>();<NEW_LINE>Map<Integer, List<Integer>> loadTextMap = new HashMap<Integer, List<Integer>>();<NEW_LINE>LongEnumer longE...
get(d.p.userAgent);