idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
428,338
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (request.getHeader("Origin") != null && (getBimServer().getServerInfo().getServerState() != ServerState.MIGRATION_REQUIRED && !getBimServer().getServerSettingsCache().isHostAllowed(request.ge...
(bytes), ObjectNode.class);
1,331,354
boolean dragged(MouseEvent e) {<NEW_LINE>if (wasReleased) {<NEW_LINE>if (moveOnDragging) {<NEW_LINE>if (!isLocked())<NEW_LINE>mouseMoveSelected.activate(corner1, corner2, getPosVector(e));<NEW_LINE>} else<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>corner2 = getPosVector(e);<NEW_LINE>if (mouse.isClickModifier(e))...
dif = corner2.sub(corner1);
1,785,807
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy(soda, "@public create context ByP0 as partition by theString from SupportBean terminated by SupportBean(intPrimitive<0)", path);<NEW_LINE>env.compileDeploy(soda, "@name('s0') context ByP0 select ...
1, env, "B", 0);
593,858
public final Object execute(Object[] args, @Cached ToWebAssemblyValueNode toWebAssemblyValueNode, @Cached ToJSValueNode toJSValueNode, @Cached(value = "createCall()", uncached = "getUncachedCall()") JSFunctionCallNode callNode, @Cached BranchProfile errorBranch, @CachedLibrary("this") InteropLibrary self) {<NEW_LINE>if...
= new Object[args.length];
62,215
public void show() {<NEW_LINE>@Nullable<NEW_LINE><MASK><NEW_LINE>Activity context = mDevSupportManager.getCurrentActivity();<NEW_LINE>if (context == null || context.isFinishing()) {<NEW_LINE>FLog.e(ReactConstants.TAG, "Unable to launch redbox because react activity " + "is not available, here is the error that redbox w...
String message = mDevSupportManager.getLastErrorTitle();
512,506
public void removeAllTopicAcls() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "removeAllTopicAcls");<NEW_LINE>ArrayList topicAclList = null;<NEW_LINE>try {<NEW_LINE>// Remove from the HashMap, with synch, there may be other accessors<NEW_LINE>synchronized (_target...
SibTr.exception(tc, e);
1,222,701
private void drawAllElses(UGraphic ug) {<NEW_LINE>final <MASK><NEW_LINE>final double totalHeight = getTotalHeight(stringBounder);<NEW_LINE>final List<Double> ys = new ArrayList<>();<NEW_LINE>for (Tile tile : tiles) {<NEW_LINE>if (tile instanceof ElseTile) {<NEW_LINE>final ElseTile elseTile = (ElseTile) tile;<NEW_LINE>y...
StringBounder stringBounder = ug.getStringBounder();
921,103
private RexNode convertJoinCondition(Blackboard bb, SqlValidatorNamespace leftNamespace, SqlValidatorNamespace rightNamespace, SqlNode condition, JoinConditionType conditionType, RelNode leftRel, RelNode rightRel) {<NEW_LINE>if (condition == null) {<NEW_LINE>return rexBuilder.makeLiteral(true);<NEW_LINE>}<NEW_LINE>bb.s...
String name = id.getSimple();
1,147,197
public static DescribeBackupSourceGroupsResponse unmarshall(DescribeBackupSourceGroupsResponse describeBackupSourceGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupSourceGroupsResponse.setRequestId(_ctx.stringValue("DescribeBackupSourceGroupsResponse.RequestId"));<NEW_LINE>describeBackupSourceGroupsRe...
(_ctx.stringValue("DescribeBackupSourceGroupsResponse.Message"));
388,987
public static DescribeClusterServiceResponse unmarshall(DescribeClusterServiceResponse describeClusterServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClusterServiceResponse.setRequestId(_ctx.stringValue("DescribeClusterServiceResponse.RequestId"));<NEW_LINE>ServiceInfo serviceInfo = new ServiceInfo();<NEW...
= new ArrayList<String>();
528,043
public static RealInterval odiv_wrt(RealInterval x, RealInterval y, RealInterval res) {<NEW_LINE>if (y.getLB() > 0.0 || y.getUB() < 0.0) {<NEW_LINE>// y != 0<NEW_LINE>return odiv(x, y);<NEW_LINE>} else {<NEW_LINE>double resl = res.getLB();<NEW_LINE>double resh = res.getUB();<NEW_LINE>if (x.getLB() >= 0.0) {<NEW_LINE>//...
) / y.getLB());
1,080,707
final SetLoadBalancerPoliciesForBackendServerResult executeSetLoadBalancerPoliciesForBackendServer(SetLoadBalancerPoliciesForBackendServerRequest setLoadBalancerPoliciesForBackendServerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setLoadBalancerPoliciesForBackendServerRequest);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,558,018
protected void process() {<NEW_LINE>String exportAll = "";<NEW_LINE>if (!hrBatch.getExportAlreadyExported()) {<NEW_LINE>exportAll = " AND self.exported = false ";<NEW_LINE>}<NEW_LINE>List<PayrollPreparation> payrollPreparationList = payrollPreparationRepository.all().filter("self.company = ?1 AND self.period = ?2 " + e...
getPeriod()).fetch();
1,570,886
@SaCheckPermission("wx.reply")<NEW_LINE>public Object data(@Param("wxid") String wxid, @Param("searchName") String searchName, @Param("searchKeyword") String searchKeyword, @Param("pageNumber") int pageNumber, @Param("pageSize") int pageSize, @Param("pageOrderName") String pageOrderName, @Param("pageOrderBy") String pa...
and("wxid", "=", wxid);
1,304,076
private void passThrough(HostMessage msg) {<NEW_LINE>HostVO vo = dbf.findByUuid(msg.getHostUuid(), HostVO.class);<NEW_LINE>if (vo == null && allowedMessageAfterSoftDeletion.contains(msg.getClass())) {<NEW_LINE>HostEO eo = dbf.findByUuid(msg.getHostUuid(), HostEO.class);<NEW_LINE>vo = ObjectUtils.newAndCopy(eo, HostVO.c...
.handleMessage((Message) msg);
1,526,556
public WebSocket write(AtmosphereResponse r, String data) throws IOException {<NEW_LINE>firstWrite.set(true);<NEW_LINE>if (data == null) {<NEW_LINE>logger.error("Cannot write null value for {}", resource());<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (!isOpen())<NEW_LINE>throw new IOException("Connection remotely clo...
), r.getCharacterEncoding());
1,708,037
private void createActions() {<NEW_LINE>searchAction = new NavigatableContextAction("Search Memory", getName(), false) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(NavigatableActionContext context) {<NEW_LINE><MASK><NEW_LINE>invokeSearchDialog(context);<NEW_LINE>}<NEW_LINE>};<NEW_LINE>searchActio...
setNavigatable(context.getNavigatable());
220,611
public void paintInternal(InstancePainter painter, int x, int y, int height, boolean up) {<NEW_LINE>super.paintBase(painter, false, false);<NEW_LINE>final var g = painter.getGraphics();<NEW_LINE>Drawgates.paintAnd(g, x + 123, y + 30, 10, 18, true);<NEW_LINE>g.drawLine(x + 70, y + AbstractTtlGate.PIN_HEIGHT, x + 70, y +...
x + 113, y + 35);
1,599,799
public int read(ByteBuffer destinationBuffer) throws IOException {<NEW_LINE>if (!isOpen()) {<NEW_LINE>throw new ClosedChannelException();<NEW_LINE>}<NEW_LINE>if (!destinationBuffer.hasRemaining()) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (position == contentLength) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>if (s3Obj...
bytesRead = s3ObjectContentChannel.read(destinationBuffer);
709,817
public OAuth2AccessToken enhance(OAuth2AccessToken accessToken, OAuth2Authentication authentication) {<NEW_LINE>DefaultOAuth2AccessToken result = new DefaultOAuth2AccessToken(accessToken);<NEW_LINE>Map<String, Object> info = new LinkedHashMap<String, Object>(accessToken.getAdditionalInformation());<NEW_LINE>String toke...
(encode(encodedRefreshToken, authentication));
723,439
public String toString0() {<NEW_LINE>switch(super.vt) {<NEW_LINE>case CHECK_CAST:<NEW_LINE>return "((" + Util.toShortClassName(<MASK><NEW_LINE>case INSTANCE_OF:<NEW_LINE>return "(" + op + " instanceof " + Util.toShortClassName(type) + ")";<NEW_LINE>case NEW_ARRAY:<NEW_LINE>if (type.charAt(0) == '[') {<NEW_LINE>int dime...
type) + ")" + op + ")";
1,314,826
final UpdateBatchPredictionResult executeUpdateBatchPrediction(UpdateBatchPredictionRequest updateBatchPredictionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateBatchPredictionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
179,502
void writeHeaderFooter(Writer w, CNode root) throws IOException {<NEW_LINE>String[] namespaceList = generateCppNameSpace(root);<NEW_LINE>String namespaceDefine = generateCppNameSpaceDefine(namespaceList);<NEW_LINE>String className = getTypeName(root, false);<NEW_LINE>String defineName = namespaceDefine + "_" + getDefin...
) + " " + className + "Config;\n");
1,769,393
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
961,016
public void execute() throws Exception {<NEW_LINE>File quickstartTmpDir = new File(_dataDir, String.valueOf(System.currentTimeMillis()));<NEW_LINE>File bootstrapTableDir = new File(quickstartTmpDir, "meetupRsvp");<NEW_LINE>File dataDir = new File(bootstrapTableDir, "data");<NEW_LINE>Preconditions.checkState(dataDir.mkd...
Color.CYAN, "Query : " + q1);
41,772
public ChangeInfo implement() {<NEW_LINE>CancellableTask<WorkingCopy> task = new CancellableTask<WorkingCopy>() {<NEW_LINE><NEW_LINE>public void cancel() {<NEW_LINE>}<NEW_LINE><NEW_LINE>public void run(WorkingCopy workingCopy) throws Exception {<NEW_LINE>workingCopy.toPhase(JavaSource.Phase.RESOLVED);<NEW_LINE>TypeElem...
javaSource = JavaSource.forFileObject(fileObject);
1,457,884
public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>int x1 = getX();<NEW_LINE>int x2 = x1 + getWidth();<NEW_LINE>int x3 = hasSettings ? x2 - 11 : x2;<NEW_LINE>int y1 = getY();<NEW_LINE>int y2 = y1 + getHeight();<NEW_LINE>boolean hovering = isHovering(mouseX, mouseY, x1, x2...
matrixStack, x3, y1, y2);
478,632
final DescribeExportResult executeDescribeExport(DescribeExportRequest describeExportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeExportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,759,615
private SpongeToForgeEventData post(SpongeToForgeEventData eventData) {<NEW_LINE>final Event spongeEvent = eventData.getSpongeEvent();<NEW_LINE>final boolean hasSpongeListeners = !eventData.getSpongeListenerCache()<MASK><NEW_LINE>if (hasSpongeListeners) {<NEW_LINE>// Fire event to plugins before modifications<NEW_LINE>...
.getListeners().isEmpty();
928,447
public ToolDefinitionData build() {<NEW_LINE>List<PartRequirement> parts = this.parts.build();<NEW_LINE>MultiplierNBT multipliers = this.multipliers.build();<NEW_LINE>List<ModifierEntry> traits = this.traits.build();<NEW_LINE>Set<ToolAction> actions = this.actions.build();<NEW_LINE>// null harvest if empty<NEW_LINE>Har...
IWeaponAttack.DEFAULT ? null : attack);
37,224
public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>int sliderPage = -1;<NEW_LINE>final <MASK><NEW_LINE>final SuraAyah startSuraAyah = AyahSelectionKt.startSuraAyah(currentSelection);<NEW_LINE>final SuraAyah endSuraAyah = AyahSelectionKt.endSuraAyah(currentSelection);<NEW_LINE>if (startSuraAyah == null || endSuraA...
AyahSelection currentSelection = readingEventPresenter.currentAyahSelection();
181,386
private DdlJob buildDropGsiJob(LogicalAlterTable logicalAlterTable, ExecutionContext executionContext) {<NEW_LINE>AlterTableWithGsiPreparedData alterTableWithGsiPreparedData = logicalAlterTable.getAlterTableWithGsiPreparedData();<NEW_LINE>DropIndexWithGsiPreparedData dropIndexWithGsiPreparedData = alterTableWithGsiPrep...
dropGlobalIndexPreparedData.getSchemaName(), tableVersions);
1,333,696
private void checkBelongsToTheTree(@Nonnull T interval, boolean assertInvalid) {<NEW_LINE>IntervalNode<T> root = lookupNode(interval);<NEW_LINE>if (root == null)<NEW_LINE>return;<NEW_LINE>// noinspection NumberEquality<NEW_LINE>assert root.getTree() == this : root.getTree() + "; this: " + this;<NEW_LINE>if (!VERIFY)<NE...
: root.intervals + "; " + interval;
1,844,479
void grabFromFunction(Function f, int overrideExtrapop, boolean doOverride) {<NEW_LINE>modelname = f.getCallingConventionName();<NEW_LINE><MASK><NEW_LINE>if (protoModel == null) {<NEW_LINE>protoModel = f.getProgram().getCompilerSpec().getDefaultCallingConvention();<NEW_LINE>}<NEW_LINE>hasThis = protoModel.hasThisPointe...
PrototypeModel protoModel = f.getCallingConvention();
1,079,815
public ListRobotsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListRobotsResult listRobotsResult = new ListRobotsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
)).unmarshall(context));
1,254,478
public static DescribeProjectNodesResponse unmarshall(DescribeProjectNodesResponse describeProjectNodesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeProjectNodesResponse.setRequestId(_ctx.stringValue("DescribeProjectNodesResponse.RequestId"));<NEW_LINE>describeProjectNodesResponse.setSuccess(_ctx.booleanValue(...
("DescribeProjectNodesResponse.Result[" + i + "].NodeStatus"));
729,380
private static List<RowResult<Value>> createRowResults(List<RawSqlRow> sqlRows, Map<Long, byte[]> overflowValues, int expectedNumRows) {<NEW_LINE>List<RowResult<Value>> rowResults = new ArrayList<>(expectedNumRows);<NEW_LINE>ImmutableSortedMap.Builder<byte[], Value> currentRowCells = null;<NEW_LINE>byte[] currentRowNam...
value = getValue(sqlRow, overflowValues);
831,831
public io.kubernetes.client.proto.V1beta2Apps.ReplicaSetCondition buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta2Apps.ReplicaSetCondition result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x000...
proto.V1beta2Apps.ReplicaSetCondition(this);
970,872
public void requestFirstTunerDisplay() {<NEW_LINE>SystemProperties properties = SystemProperties.getInstance();<NEW_LINE>boolean enabled = properties.<MASK><NEW_LINE>if (enabled && mTuners.size() > 0) {<NEW_LINE>// Hack: the airspy tuner would lockup aperiodically and refuse to produce<NEW_LINE>// transfer buffers ... ...
get(SpectralDisplayPanel.SPECTRAL_DISPLAY_ENABLED, true);
35,161
private void attachConnectionListener(Conversation conversation, SICoreConnection conn) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "attachConnectionListener", new Object[] { conversation, conn });<NEW_LINE>// The connection listener is saved in the link le...
".attachConnectionListener", CommsConstants.SERVERTRANSPORTRECEIVELISTENER_CONNGET_01, this);
1,592,460
public void send(Object message, boolean sent) throws RemotingException {<NEW_LINE>super.send(message, sent);<NEW_LINE>boolean success = true;<NEW_LINE>int timeout = 0;<NEW_LINE>try {<NEW_LINE>ChannelFuture future = channel.write(message);<NEW_LINE>if (sent) {<NEW_LINE>timeout = getUrl().getPositiveParameter(TIMEOUT_KE...
Throwable cause = future.getCause();
262,712
public GetFieldLevelEncryptionConfigResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>GetFieldLevelEncryptionConfigResult getFieldLevelEncryptionConfigResult = new GetFieldLevelEncryptionConfigResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = origi...
().unmarshall(context));
259,287
protected ProfilingPoint loadProfilingPoint(Lookup.Provider project, Properties properties, int index) {<NEW_LINE>// NOI18N<NEW_LINE>String name = properties.getProperty(index + "_" + ProfilingPoint.PROPERTY_NAME, null);<NEW_LINE>// NOI18N<NEW_LINE>String enabledStr = properties.getProperty(index + "_" + ProfilingPoint...
ERROR, e.getMessage());
1,718,511
public void testBMTNonXAOptionA() throws Exception {<NEW_LINE>String deliveryID = "MD_test6b";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("BMTJMS");<NEW_LINE>// Add a option A<NEW_LINE>message.add("BMTJMS", "message1");<NEW_LI...
println(message.toString());
786,315
public Expression rewriteExpression(Expression expression, SSAIdentifiers ssaIdentifiers, StatementContainer statementContainer, ExpressionRewriterFlags flags) {<NEW_LINE>expression = super.rewriteExpression(expression, ssaIdentifiers, statementContainer, flags);<NEW_LINE>if (expression instanceof ConstructorInvokation...
StructuredStatement stm = stmCont.getStatement();
1,458,283
public boolean onLongClick(View v) {<NEW_LINE>MyPopupMenu menu = new MyPopupMenu(textWord);<NEW_LINE>menu.getMenu().add(R.string.share).setIcon(R.drawable.glyphicons_basic_578_share).setOnMenuItemClickListener((it) -> {<NEW_LINE>final Intent intent = new Intent(Intent.ACTION_SEND);<NEW_LINE>intent.setType("text/plain")...
R.string.share)));
164,974
public void execute() throws BuildException {<NEW_LINE>if (xmldir == null)<NEW_LINE>throw new BuildException("Must set xmldir attribute", getLocation());<NEW_LINE>if (!xmldir.exists()) {<NEW_LINE>if (!xmldir.mkdirs())<NEW_LINE>throw new BuildException("Cannot create directory " + xmldir, getLocation());<NEW_LINE>}<NEW_...
log("Warning: <createmodulexml> with no modules listed", Project.MSG_WARN);
888,712
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>Spinner countrySpinner = view.findViewById(R.id.delete_account_fragment_country_spinner);<NEW_LINE>View confirm = view.findViewById(R.id.delete_account_fragment_delete);<NEW_LINE>bullets = view.findViewById(R.id.delete_account...
getViewLifecycleOwner(), this::setCountryDisplay);
1,183,496
public static QueryPushAnalysisTaskListResponse unmarshall(QueryPushAnalysisTaskListResponse queryPushAnalysisTaskListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPushAnalysisTaskListResponse.setRequestId(_ctx.stringValue("QueryPushAnalysisTaskListResponse.RequestId"));<NEW_LINE>queryPushAnalysisTaskListResponse...
= new ArrayList<ListItem>();
1,091,855
private void initComponents() {<NEW_LINE>// NOI18N<NEW_LINE>dialog = new JDialog(parentFrame, NbBundle.getMessage(AboutDialog.class, "LBL_About"), true);<NEW_LINE>dialog.addWindowListener(new WindowAdapter() {<NEW_LINE><NEW_LINE>public void windowClosed(WindowEvent e) {<NEW_LINE>cleanup();<NEW_LINE>}<NEW_LINE>});<NEW_L...
.VK_ESCAPE, 0), "CLOSE_ACTION");
406,979
public static void placementPoliciesCreateOrUpdate(com.azure.resourcemanager.avs.AvsManager manager) {<NEW_LINE>manager.placementPolicies().define("policy1").withExistingCluster("group1", "cloud1", "cluster1").withProperties(new VmHostPlacementPolicyProperties().withVmMembers(Arrays.asList("/subscriptions/{subscription...
.ANTI_AFFINITY)).create();
853,322
private static ScalarValue[] parseTRBLValue(String val) {<NEW_LINE>ScalarValue[] out = new ScalarValue[4];<NEW_LINE>String[] parts = Util.split(val, " ");<NEW_LINE>int len = parts.length;<NEW_LINE>switch(len) {<NEW_LINE>case 1:<NEW_LINE>ScalarValue v = parseSingleTRBLValue(parts[0]);<NEW_LINE>for (int i = 0; i < 4; i++...
out[Component.TOP] = v1;
506,839
static void encodeValue(ByteBuffer buffer, boolean huffman, String value) {<NEW_LINE>if (huffman) {<NEW_LINE>// huffman literal value<NEW_LINE>buffer.put((byte) 0x80);<NEW_LINE>int needed = Huffman.octetsNeeded(value);<NEW_LINE>if (needed >= 0) {<NEW_LINE>NBitInteger.encode(buffer, 7, needed);<NEW_LINE>Huffman.encode(b...
.put((byte) c);
337,028
private AuthOutcome globalLogout() {<NEW_LINE><MASK><NEW_LINE>if (account == null) {<NEW_LINE>return AuthOutcome.NOT_ATTEMPTED;<NEW_LINE>}<NEW_LINE>SAML2LogoutRequestBuilder logoutBuilder = new SAML2LogoutRequestBuilder().assertionExpiration(30).issuer(deployment.getEntityID()).sessionIndex(account.getSessionIndex()).n...
SamlSession account = sessionStore.getAccount();
958,873
public String decompile(String name) {<NEW_LINE>ITypeLoader loader = new ComposedTypeLoader(Arrays.asList(new RecafTypeLoader(getController()), new InputTypeLoader()));<NEW_LINE>Map<String, Boolean> options = getOptions();<NEW_LINE>DecompilerSettings settings = new DecompilerSettings();<NEW_LINE>settings.setFlattenSwit...
(options.get("show-debug-line-numbers"));
1,067,421
final ListRegionalBucketsResult executeListRegionalBuckets(ListRegionalBucketsRequest listRegionalBucketsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRegionalBucketsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
361,131
protected void onContentViewCreated(View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onContentViewCreated(view, savedInstanceState);<NEW_LINE>setTitle(R.string.auto_theme_title);<NEW_LINE>getNegativeButton().setOnClickListener(v -> dismiss());<NEW_LINE>getPositiveButton().setOnClickListener(v -> {<NEW_L...
getLightTheme().getValue());
150,463
protected void configureGraphicalViewer() {<NEW_LINE>super.configureGraphicalViewer();<NEW_LINE>DiagramEditorContextMenuProvider provider = new DiagramEditorContextMenuProvider(this, getDiagramGraphicalViewer());<NEW_LINE>getDiagramGraphicalViewer().setContextMenu(provider);<NEW_LINE>getSite().registerContextMenu(Actio...
ID, OpenDDSDiagramEditorPlugin.getInstance());
1,061,135
private AmountSourceAndAcct createPaymentFacts(final Fact fact, final DocLine_Allocation line) {<NEW_LINE>final AcctSchema as = fact.getAcctSchema();<NEW_LINE>final BigDecimal paymentAllocatedAmt = line.getAllocatedAmt();<NEW_LINE>if (paymentAllocatedAmt.signum() == 0) {<NEW_LINE>// no amount to be allocated on payment...
factLineBuilder.setAmtSource(paymentAllocatedAmt, null);
1,629,492
public Policy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Policy policy = new Policy();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c...
class).unmarshall(context));
1,575,234
protected void searchForMessages(String message_code, String message_type, AtomicInteger counter) {<NEW_LINE>final String method = "searchForMessages";<NEW_LINE>// Get a remote file whether it exists yet or not (thus don't use the LibertyFileManager API)<NEW_LINE>if (messageAbsPath == null) {<NEW_LINE>Log.info(c, metho...
int oldNumber = counter.getAndIncrement();
1,472,817
final DeleteForecastExportJobResult executeDeleteForecastExportJob(DeleteForecastExportJobRequest deleteForecastExportJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteForecastExportJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
200,889
protected AudioInputStream generateAudioStream(List<SelectedUnit> units) throws IOException {<NEW_LINE>// gather arguments for FDPSOLA processing:<NEW_LINE>// Datagram[][] datagrams = getDatagrams(units);<NEW_LINE>// Datagram[] rightContexts = getRightContexts(units);<NEW_LINE>// boolean[][] voicings = getVoicings(unit...
> realizedPhones = prosodyAnalyzer.getRealizedPhones();
1,632,065
private void tagFromXML() {<NEW_LINE>Reader reader = null;<NEW_LINE>Writer w = null;<NEW_LINE>try {<NEW_LINE>// todo [cdm dec 13]: change to use the IOUtils read-from-anywhere routines<NEW_LINE>reader = new BufferedReader(new InputStreamReader(new FileInputStream(config.getFile()), config.getEncoding()));<NEW_LINE><MAS...
String outFile = config.getOutputFile();
169,220
// snippet-start:[lex.java2.create_bot.main]<NEW_LINE>public static void createBot(LexModelBuildingClient lexClient, String botName, String intentName, String intentVersion) {<NEW_LINE>try {<NEW_LINE>// Create an Intent object for the bot.<NEW_LINE>Intent weatherIntent = Intent.builder().intentName(intentName).<MASK><N...
intentVersion(intentVersion).build();
1,732,571
public void sendPasswordResetEmail(String appName, final String email, ReadableMap actionCodeSettings, final Promise promise) {<NEW_LINE>Log.d(TAG, "sendPasswordResetEmail");<NEW_LINE>FirebaseApp firebaseApp = FirebaseApp.getInstance(appName);<NEW_LINE>FirebaseAuth firebaseAuth = FirebaseAuth.getInstance(firebaseApp);<...
Log.d(TAG, "sendPasswordResetEmail:onComplete:success");
1,679,192
private void createClassesGroup(Composite parent) {<NEW_LINE>Group group = createGroup(parent, "Class aliases", 2, true);<NEW_LINE>classAliasesTableViewer = new org.eclipse.swt.widgets.List(group, SWT.BORDER | SWT.SINGLE);<NEW_LINE>classAliasesTableViewer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 3)...
Button(group, SWT.PUSH);
420,700
private boolean showSegmentPrefix(Instruction instruction, InstrOpInfo opInfo) {<NEW_LINE>if ((opInfo.flags & (InstrOpInfoFlags.JCC_NOT_TAKEN | InstrOpInfoFlags.JCC_TAKEN)) != 0)<NEW_LINE>return true;<NEW_LINE>switch(instruction.getCode()) {<NEW_LINE>case Code.MONITORW:<NEW_LINE>case Code.MONITORD:<NEW_LINE>case Code.M...
Register.DS, instruction, options);
780,035
private static Object assembler(Object[] input, HandleInvalidMethod handleInvalid) {<NEW_LINE>if (null == input) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int pos = 0;<NEW_LINE>int size = input.length;<NEW_LINE>for (Object col : input) {<NEW_LINE>if (col instanceof DenseVector) {<NEW_LINE>size += ((DenseVector) col)....
appendVector(vec, map, pos);
655,634
private Info newStandardInfoWindow() {<NEW_LINE>final String tableName = getTableName();<NEW_LINE>final String keyColumn = getKeyColumn();<NEW_LINE>final Frame parentFrame = getParentFrame();<NEW_LINE>final boolean modal = isModal();<NEW_LINE>final int windowNo = getWindowNo();<NEW_LINE>final String value = getSearchVa...
m_PriceList_ID, value, multiSelection, whereClause);
878,510
public JSONObject toJSON(UserEntry user) {<NEW_LINE>JSONObject m = new JSONObject();<NEW_LINE>m.put(Field.authentication_latest.name(), utcFormatter.print(getAuthenticationLatest().getTime()));<NEW_LINE>m.put(Field.authentication_first.name(), utcFormatter.print(getAuthenticationFirst<MASK><NEW_LINE>m.put(Field.source_...
().getTime()));
1,461,177
public boolean contains(int ordinal, int value, int hashCode) {<NEW_LINE>HollowSetTypeDataElements currentData;<NEW_LINE>boolean foundData;<NEW_LINE>threadsafe: do {<NEW_LINE>long startBucket;<NEW_LINE>long endBucket;<NEW_LINE>do {<NEW_LINE>currentData = this.currentDataVolatile;<NEW_LINE>startBucket = getAbsoluteBucke...
hashCode = HashCodes.hashInt(hashCode);
299,436
private void enhanceQuantizationTable(final int[] qtab, final int[] table) {<NEW_LINE>for (int i = 0; i < 8; i++) {<NEW_LINE>qtab[table[i]] *= 90;<NEW_LINE>qtab[table[(4 * 8) + i]] *= 90;<NEW_LINE>qtab[table[(2 * 8) + i]] *= 118;<NEW_LINE>qtab[table[(6 * 8) + i]] *= 49;<NEW_LINE>qtab[table[(5 * 8) + i]] *= 71;<NEW_LINE...
8) + i]] *= 25;
752,867
public void readResults(final Configuration configuration, final ResultsVisitor visitor, final Path directory) {<NEW_LINE>final JacksonContext context = configuration.requireContext(JacksonContext.class);<NEW_LINE>final Path historyFile = directory.resolve(Constants.HISTORY_DIR).resolve(jsonFileName);<NEW_LINE>if (File...
jsonNode = mapper.readTree(is);
1,487,571
protected Void doConcat(SegmentHandle targetHandle, long offset, String sourceSegment) throws IOException {<NEW_LINE>long traceId = LoggerHelpers.traceEnter(log, "concat", targetHandle.getSegmentName(), offset, sourceSegment);<NEW_LINE>Path sourcePath = getPath(sourceSegment);<NEW_LINE>Path targetPath = <MASK><NEW_LINE...
getPath(targetHandle.getSegmentName());
907,901
public static // this is meant to catch things like accidental upload of ASCII text .vmdk descriptor<NEW_LINE>String checkTemplateFormat(String path, String uripath) {<NEW_LINE>// note 'path' was generated by us so it should be safe on the cmdline, be wary of 'url'<NEW_LINE>String command = "file ";<NEW_LINE>if (isComp...
"File at path " + path + " looks like an iso : " + output);
1,423,190
public TrialComponentSourceDetail unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TrialComponentSourceDetail trialComponentSourceDetail = new TrialComponentSourceDetail();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
class).unmarshall(context));
185,849
public void store(final Item item, final String alias) {<NEW_LINE>if (initialized) {<NEW_LINE>String newAlias = alias != null ? alias : item.getName();<NEW_LINE>Event event = new Event();<NEW_LINE>event.setSummary("[PresenceSimulation] " + newAlias);<NEW_LINE>event.setDescription(String.format(executeScript, item.getNa...
) + 3600000L * 24 * offset);
688,913
public void actionPerformed(ActionEvent e) {<NEW_LINE>SwingUtilities.invokeLater(() -> {<NEW_LINE>if (r.frame == null) {<NEW_LINE>JFrame top = (JFrame) SwingUtilities.getWindowAncestor((Component) PMS.get().getFrame());<NEW_LINE>// We're using JFrame instead of JDialog here so as to<NEW_LINE>// have a minimize button. ...
frame.setExtendedState(JFrame.NORMAL);
1,829,472
public com.amazonaws.services.greengrassv2.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.greengrassv2.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.greengrassv2.model.ResourceNotFoundExce...
JsonToken token = context.getCurrentToken();
442,990
private static Plugin resolvePluginInfo(Path pluginXml) throws MojoExecutionException {<NEW_LINE>if (!Files.exists(pluginXml)) {<NEW_LINE>throw new MojoExecutionException("Failed to locate " + pluginXml);<NEW_LINE>}<NEW_LINE>final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();<NEW_LINE>try {<NEW_LIN...
doc = db.parse(is);
1,044,372
// issue #69642<NEW_LINE>private void installNoOpActionMappings() {<NEW_LINE>InputMap im = getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);<NEW_LINE>// cut<NEW_LINE>KeyStroke[] keys = findEditorKeys(DefaultEditorKit.cutAction, KeyStroke.getKeyStroke(KeyEvent<MASK><NEW_LINE>for (int i = 0; i < keys.length; i+...
.VK_X, InputEvent.CTRL_MASK));
1,630,883
private static ScriptEngineManager createManager() {<NEW_LINE>Thread.currentThread().<MASK><NEW_LINE>ScriptEngineManager manager = new ScriptEngineManager(QuPathGUI.getExtensionClassLoader());<NEW_LINE>for (ScriptEngineFactory factory : manager.getEngineFactories()) {<NEW_LINE>boolean builtIn = false;<NEW_LINE>synchron...
setContextClassLoader(QuPathGUI.getExtensionClassLoader());
774,506
final GetAppliedSchemaVersionResult executeGetAppliedSchemaVersion(GetAppliedSchemaVersionRequest getAppliedSchemaVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAppliedSchemaVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAppliedSchemaVersion");
1,199,747
public void onLogout(IPentahoSession pentahoSession) {<NEW_LINE>System.out.println("processing pentaho logout");<NEW_LINE>UUID uuid = pah.startAudit("Saiku", "Logout", this.getClass().getName(), null, null, "Attempted Logout", getLogger());<NEW_LINE>if (SecurityContextHolder.getContext() != null && SecurityContextHolde...
.Entry) it.next();
1,445,726
public void postInitialize(Python3Core core) {<NEW_LINE>super.postInitialize(core);<NEW_LINE>PythonContext context = core.getContext();<NEW_LINE>PythonModule mod = core.lookupBuiltinModule(__GRAALPYTHON__);<NEW_LINE>PythonLanguage language = context.getLanguage();<NEW_LINE>if (!ImageInfo.inImageBuildtimeCode()) {<NEW_L...
lookup(llvmInfo, Toolchain.class);
1,433,088
private void awaitOnlineAfterRecovery(IndexProxy proxy) {<NEW_LINE>while (true) {<NEW_LINE>switch(proxy.getState()) {<NEW_LINE>case ONLINE:<NEW_LINE>return;<NEW_LINE>case FAILED:<NEW_LINE>String message = String.format("Index %s entered %s state while recovery waited for it to be fully populated.", proxy.getDescriptor(...
.appendCauseOfFailure(message, causeOfFailure));
494,402
protected void postToWASReqURL(HttpServletRequest req, HttpServletResponse resp, String requestUrl, String oidcClientId) throws IOException {<NEW_LINE>String access_token = req.getParameter(Constants.ACCESS_TOKEN);<NEW_LINE>String id_token = req.getParameter(Constants.ID_TOKEN);<NEW_LINE>if (TraceComponent.isAnyTracing...
debug(tc, "id_token:" + id_token);
339,132
public void validateSystemTag(String resourceUuid, Class resourceType, String systemTag) {<NEW_LINE>Map<String, String> tokens = LoadBalancerSystemTags.BALANCER_WEIGHT.getTokensByTag(systemTag);<NEW_LINE>String nicUuid = tokens.get(LoadBalancerSystemTags.BALANCER_NIC_TOKEN);<NEW_LINE>if (!dbf.isExist(nicUuid, VmNicVO.c...
("invalid balancer weight[%s], %s is not a number", systemTag, s));
1,044,990
public Boolean visit(ScopeBinding command) {<NEW_LINE>Scope scope = command.getScope();<NEW_LINE>Class<? extends Annotation> annotationType = command.getAnnotationType();<NEW_LINE>if (Annotations.isScopeAnnotation(annotationType) == false) {<NEW_LINE>errors.withSource(annotationType).missingScopeAnnotation();<NEW_LINE>...
.requireNonNull(scope, "scope"));
1,105,568
/*<NEW_LINE>* @see<NEW_LINE>* com.ibm.ws.http.channel.internal.HttpBaseMessageImpl#headerComplianceCheck<NEW_LINE>* ()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void headerComplianceCheck() throws MessageSentException {<NEW_LINE>final boolean bTrace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (bTrace &&...
Tr.debug(tc, "Creating a missing Date header");
1,749,666
public boolean removeTCRef(String tcRefName) {<NEW_LINE>synchronized (SAVING_LOCK) {<NEW_LINE>if (DEBUG)<NEW_LINE>Debug.log(WindowManagerParser.<MASK><NEW_LINE>ModeParser modeParser = findModeParser(tcRefName);<NEW_LINE>if (modeParser == null) {<NEW_LINE>// modeParser was already removed -> its local folder was cleaned...
class, "removeTCRef ENTER" + " tcRef:" + tcRefName);
716,801
private static int[] attributeValueToIntArray(final Object value, final String key, final Supplier<int[]> defaultResult, final int missingValue) {<NEW_LINE>Utils.nonNull(key);<NEW_LINE>final ToIntFunction<Object> intConverter = o -> {<NEW_LINE>if (o == null) {<NEW_LINE>return missingValue;<NEW_LINE>} else {<NEW_LINE>fi...
get(value, i)));
1,473,270
public Sink<T> build() {<NEW_LINE>String usernameLocal = username;<NEW_LINE>String passwordLocal = password;<NEW_LINE>checkNotNull(destinationName);<NEW_LINE>if (connectionFn == null) {<NEW_LINE>connectionFn = factory -> {<NEW_LINE>if (factory instanceof XAConnectionFactory) {<NEW_LINE>XAConnectionFactory xaFactory = (...
apply(factorySupplierLocal.get());
1,014,360
public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>String file = commandLine.getValue(Options.FILE_OPTION);<NEW_LINE>String projectName = commandLine.getValue(Options.PROJECT_OPTION);<NEW_LINE>// only refresh the file.<NEW_LINE>if (!commandLine.hasOption(Options.VALIDATE_OPTION)) {<NEW_LINE>// g...
offsetToLineColumn(problem.getSourceStart());
1,512,779
public static void parse(String text, JTextPane pane) {<NEW_LINE>try {<NEW_LINE>Matcher match = TEXT_PATTERN.matcher(text);<NEW_LINE>Document doc = pane.getDocument();<NEW_LINE>// Start of current text area<NEW_LINE>int textStart = 0;<NEW_LINE>// Style for next set of text<NEW_LINE>Style style = null;<NEW_LINE>while (m...
textStart, match.start());
1,733,504
public static synchronized String createChannelFor(@NonNull Context context, @NonNull String channelId, @NonNull String displayName, @Nullable Uri messageSound, boolean vibrationEnabled, @Nullable String shortcutId) {<NEW_LINE>if (!supported()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>NotificationChannel channel = n...
(getMessagesChannel(context), shortcutId);
1,332,147
protected Change save() throws Expression.ExpressionException, ArithmeticException, NumberFormatException {<NEW_LINE>double x = xField.<MASK><NEW_LINE>double y = yField.setPrecision(14).getDouble();<NEW_LINE>double z = zField.setPrecision(14).getDouble();<NEW_LINE>float yaw = yawField.setPrecision(11).getFloat();<NEW_L...
setPrecision(14).getDouble();
25,782
public void init(AgentConfig agentConfig) throws IOException {<NEW_LINE>this.agentConfig = agentConfig;<NEW_LINE>Set<String> systemDataCollector = new HashSet<>();<NEW_LINE>systemDataCollector.add(SYSTEM);<NEW_LINE>MonitorContext.getInstance().setDataCollectors(systemDataCollector);<NEW_LINE>int port = agentConfig.getM...
getInstance().addDefaultMXBean(mBeanServer);
1,691,053
public void resolve(BlockScope scope) {<NEW_LINE>if (containsPatternVariable()) {<NEW_LINE>this.condition.collectPatternVariablesToScope(null, scope);<NEW_LINE>LocalVariableBinding[] patternVariablesInFalseScope <MASK><NEW_LINE>TypeBinding type = this.condition.resolveTypeExpecting(scope, TypeBinding.BOOLEAN);<NEW_LINE...
= this.condition.getPatternVariablesWhenFalse();