idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
452,740
static String canUseFileName(FileObject targetFolder, String folderName, String newObjectName, String extension) {<NEW_LINE>String newObjectNameToDisplay = newObjectName;<NEW_LINE>if (newObjectName != null) {<NEW_LINE>// NOI18N<NEW_LINE>newObjectName = newObjectName.replace('.', '/');<NEW_LINE>}<NEW_LINE>if (extension ...
FXMLTemplateWizardIterator.class, "MSG_file_already_exist", newObjectNameToDisplay);
1,052,242
private void calcPositionAndShow(Project project, JBPopup balloon) {<NEW_LINE>Point savedLocation = WindowStateService.getInstance(myProject).getLocation(LOCATION_SETTINGS_KEY);<NEW_LINE>// for first show and short mode popup should be shifted to the top screen half<NEW_LINE>if (savedLocation == null && mySearchEverywh...
4 - balloonSize.height / 2);
608,816
public static Node query(Node base, String path, boolean caseInsensitive) {<NEW_LINE>StringTokenizer st = new StringTokenizer(path, "/");<NEW_LINE>Node found = base;<NEW_LINE>while (st.hasMoreTokens()) {<NEW_LINE><MASK><NEW_LINE>int indexDelim = token.indexOf('|');<NEW_LINE>String nodeName = indexDelim >= 0 ? token.sub...
String token = st.nextToken();
611,736
private void showRecents() {<NEW_LINE>OsmandApplication app = getApp();<NEW_LINE>ItemList.Builder itemList = new ItemList.Builder();<NEW_LINE>itemList.setNoItemsMessage(getCarContext().getString(R.string.search_nothing_found));<NEW_LINE>if (Algorithms.isEmpty(recentResults)) {<NEW_LINE>this.itemList = itemList.build();...
QuickSearchListItem.getName(app, r);
254,646
public Container add(final char x) {<NEW_LINE>if (cardinality == 0 || (cardinality > 0 && (x) > (content[cardinality - 1]))) {<NEW_LINE>if (cardinality >= DEFAULT_MAX_SIZE) {<NEW_LINE>return toBitmapContainer().add(x);<NEW_LINE>}<NEW_LINE>if (cardinality >= this.content.length) {<NEW_LINE>increaseCapacity();<NEW_LINE>}...
toBitmapContainer().add(x);
633,196
public static DynamicConfigAddDurableExecutorConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator...
name = StringCodec.decode(iterator);
1,449,677
public void process(AccessLogRecordData recordData) {<NEW_LINE>// The logFormat, as a string: e.g. "%a %b %C"<NEW_LINE>String formatString = ((AccessLogRecordDataExt) recordData).getFormatString();<NEW_LINE>// A parsed version of the logFormat<NEW_LINE>FormatSegment[] parsedFormat = ((<MASK><NEW_LINE>jsonAccessLogField...
AccessLogRecordDataExt) recordData).getParsedFormat();
1,501,413
public void serialize(StringBody stringBody, JsonGenerator jgen, SerializerProvider provider) throws IOException {<NEW_LINE>boolean notFieldSetAndNotDefault = stringBody.getNot() != null && stringBody.getNot();<NEW_LINE>boolean optionalFieldSetAndNotDefault = stringBody.getOptional() != null && stringBody.getOptional()...
jgen.writeBooleanField("optional", true);
1,131,589
public Set<Header> renderEventMessageHeaders(TemplateEngine engine, Set<io.github.microcks.domain.Header> headers) {<NEW_LINE>if (headers != null && !headers.isEmpty()) {<NEW_LINE>Set<Header> renderedHeaders = new HashSet<>(headers.size());<NEW_LINE>for (io.github.microcks.domain.Header header : headers) {<NEW_LINE>// ...
firstValue).getBytes()));
1,210,566
private Menu createMenu() {<NEW_LINE>if (!isMenuEnabled()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Menu menu = new Menu(shell, SWT.POP_UP);<NEW_LINE>cTable.addListener(SWT.MenuDetect, new Listener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleEvent(Event event) {<NEW_LINE>Composite cHeaderArea =...
oIsHeader).booleanValue() : false;
828,373
private void updateTaskCleanupTimeout(Set<String> topologies) {<NEW_LINE>Map topologyConf = null;<NEW_LINE>Map<String, Integer> taskCleanupTimeouts = new HashMap<>();<NEW_LINE>for (String topologyId : topologies) {<NEW_LINE>try {<NEW_LINE>topologyConf = StormConfig.read_supervisor_topology_conf(conf, topologyId);<NEW_L...
localState.get(Common.LS_TASK_CLEANUP_TIMEOUT);
1,148,788
private void addMovesForIncompatRegs(Insn curInsn, InstructionIterator insns, List<Register> regs, BitSet incompatRegs) {<NEW_LINE>Register newRegister = null;<NEW_LINE>final Register resultReg = regs.get(0);<NEW_LINE>final boolean hasResultReg = curInsn.getOpcode().setsRegister() || curInsn.getOpcode().setsWideRegiste...
StmtVisitor.buildMoveInsn(source, destination);
1,202,545
public DescribeJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeJobResult describeJobResult = new DescribeJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
JsonToken token = context.getCurrentToken();
782,157
public static void mergeNixStore(@NotNull Map<Version, String> homePathByVersion, @NotNull Pattern nixPattern, @NotNull Function<File, File> versionPathToHomePath) {<NEW_LINE>if (NIX_STORE.isDirectory()) {<NEW_LINE>// noinspection ResultOfMethodCallIgnored<NEW_LINE>NIX_STORE.listFiles((dir, name) -> {<NEW_LINE>Matcher ...
Version(major, minor, bugfix);
983,457
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val...
format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id)));
991,002
public void generatePostIncrement(BlockScope currentScope, CodeStream codeStream, CompoundAssignment postIncrement, boolean valueRequired) {<NEW_LINE>FieldBinding lastFieldBinding = generateReadSequence(currentScope, codeStream);<NEW_LINE>// check if this post increment is the only usage of a private field<NEW_LINE>rep...
0 : this.otherBindings.length);
862,729
// Test the code path where untimed invokeAll is interrupted while it is running a task on the current thread<NEW_LINE>// because the queue has reached capacity. Once interrupted, invokeAll must immediately cancel all of<NEW_LINE>// its tasks which have not already completed and return.<NEW_LINE>@Test<NEW_LINE>public v...
CountDownLatch unused = new CountDownLatch(0);
517,704
private boolean isDhcpEnabledOnVirtualRouter(String l3Uuid, String vrUuid) {<NEW_LINE>// TODO: ui will call APICreateVpcVRouterMsg at same time, we need a lock here<NEW_LINE>GLock lock = new GLock(String.format("set-vpc-uuid-for-vyos-dhcp-%s", l3Uuid), TimeUnit.MINUTES.toSeconds(30));<NEW_LINE>lock.lock();<NEW_LINE>Def...
getTokenByResourceUuid(l3Uuid, L3NetworkSystemTags.PUBLIC_NETWORK_DHCP_SERVER_UUID_TOKEN);
872,175
public List<Artifact> findAdditionalInputs(CppCompileAction action, ActionExecutionContext actionExecutionContext, IncludeScanningHeaderData includeScanningHeaderData) throws ExecException, InterruptedException {<NEW_LINE><MASK><NEW_LINE>Set<Artifact> includes = Sets.newConcurrentHashSet();<NEW_LINE>includes.addAll(act...
Preconditions.checkNotNull(includeScannerSupplier, action);
1,602,349
public StringBuilder buildQueryString(final StringBuilder builder) {<NEW_LINE>builder.append("SELECT ");<NEW_LINE>if (isDistinct) {<NEW_LINE>if (columns.size() > 1) {<NEW_LINE>throw new IllegalStateException("DISTINCT function can only be used with one column");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (columns == null || col...
(ordering.get()));
357,600
public Response testSubscription(@PathParam("checkId") String checkId, @PathParam("subscriptionId") final String subscriptionId) {<NEW_LINE>Check check = checksStore.getCheck(checkId);<NEW_LINE>if (check == null) {<NEW_LINE>return Response.status(Response.Status.NOT_FOUND).build();<NEW_LINE>}<NEW_LINE>Collection<Subscr...
.noContent().build();
1,039,743
public DeviceUnderTest unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeviceUnderTest deviceUnderTest = new DeviceUnderTest();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken...
String currentParentElement = context.getCurrentParentElement();
1,218,597
private boolean process(MouseEvent mouseEvent, EventTarget target) {<NEW_LINE>boolean continueProcessing = true;<NEW_LINE>if (!PLATFORM_DRAG_GESTURE_INITIATION) {<NEW_LINE>if (dragDetected != DragDetectedState.DONE && (mouseEvent.getEventType() == MouseEvent.MOUSE_PRESSED || mouseEvent.getEventType() == MouseEvent.MOUS...
), target, MouseEvent.DRAG_DETECTED);
347,994
private Snap findByStopId(GHStationLocation station, int indexForErrorMessage) {<NEW_LINE>for (Map.Entry<String, GTFSFeed> entry : gtfsStorage.getGtfsFeeds().entrySet()) {<NEW_LINE>final Integer node = gtfsStorage.getStationNodes().get(new GtfsStorage.FeedIdWithStopId(entry.getKey(), station.stop_id));<NEW_LINE>if (nod...
"Cannot find station: " + station.stop_id, indexForErrorMessage);
1,142,172
private void enterRoom() {<NEW_LINE>mTRTCCloud = TRTCCloud.sharedInstance(getApplicationContext());<NEW_LINE>mTRTCCloud.setListener(new TRTCCloudImplListener(VideoCallingActivity.this));<NEW_LINE>mTXDeviceManager = mTRTCCloud.getDeviceManager();<NEW_LINE>TRTCCloudDef.TRTCParams trtcParams = new TRTCCloudDef.TRTCParams(...
enterRoom(trtcParams, TRTCCloudDef.TRTC_APP_SCENE_VIDEOCALL);
838,471
public ANode visitFunction(FunctionContext ctx) {<NEW_LINE>String rtnType = ctx.decltype().getText();<NEW_LINE>String name = ctx.ID().getText();<NEW_LINE>List<String> <MASK><NEW_LINE>List<String> paramNames = new ArrayList<>();<NEW_LINE>List<AStatement> statements = new ArrayList<>();<NEW_LINE>for (DecltypeContext decl...
paramTypes = new ArrayList<>();
168,249
public void testOAuthResourceOwnerCreds() throws Exception {<NEW_LINE>final String thisMethod = "testOAuthResourceOwnerCreds";<NEW_LINE>try {<NEW_LINE>sslSetup();<NEW_LINE>Log.info(thisClass, thisMethod, "Begin");<NEW_LINE>firstClientUrl = httpStart + "/" + Constants.OAUTHCLIENT_APP + "/resourceowner.jsp";<NEW_LINE>cli...
thisClass, thisMethod, "First client URL: " + firstClientUrl);
1,042,627
public static RecognizeCharacterResponse unmarshall(RecognizeCharacterResponse recognizeCharacterResponse, UnmarshallerContext _ctx) {<NEW_LINE>recognizeCharacterResponse.setRequestId(_ctx.stringValue("RecognizeCharacterResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<Result> results = new ArrayLis...
("RecognizeCharacterResponse.Data.Results[" + i + "].TextRectangles.Height"));
1,501,520
private DerivedFile derivedFile(ResultSet rs, CaseDbConnection connection, long parentId) throws SQLException {<NEW_LINE>// NON-NLS<NEW_LINE>boolean hasLocalPath = rs.getBoolean("has_path");<NEW_LINE>// NON-NLS<NEW_LINE>long objId = rs.getLong("obj_id");<NEW_LINE>String localPath = null;<NEW_LINE>TskData.EncodingType e...
osAccountObjId = rs.getLong("os_account_obj_id");
734,513
public void call(FullAccessIntArrPointer dst, int stride, ReadOnlyIntArrPointer above, ReadOnlyIntArrPointer left) {<NEW_LINE>PositionableIntArrPointer pLeft = PositionableIntArrPointer.makePositionable(left);<NEW_LINE>PositionableIntArrPointer pAbove = PositionableIntArrPointer.makePositionable(above);<NEW_LINE>final ...
short C = pAbove.getAndInc();
480,529
public void addFormForAddAccount() {<NEW_LINE>accountNrInputTextFieldEdited = false;<NEW_LINE>gridRowFrom = gridRow + 1;<NEW_LINE>Tuple2<ComboBox<TradeCurrency>, Integer> tuple = GUIUtil.addRegionCountryTradeCurrencyComboBoxes(gridPane, gridRow, this::onCountrySelected, this::onTradeCurrencySelected);<NEW_LINE>currency...
(gridPane, ++gridRow, "");
1,365,818
public static void throwException(Throwable exception) {<NEW_LINE>thrownException = exception;<NEW_LINE>RuntimeObject exceptionPtr = Address.<MASK><NEW_LINE>RuntimeClass exceptionClass = RuntimeClass.getClass(exceptionPtr);<NEW_LINE>Address stackFrame = ShadowStack.getStackTop();<NEW_LINE>int handlerId = 0;<NEW_LINE>st...
ofObject(exception).toStructure();
581,768
// private CPanel chart = new CPanel();<NEW_LINE>private void jbInit() throws Exception {<NEW_LINE>if (m_frame != null) {<NEW_LINE>m_frame.setIconImage(Images.getImage2<MASK><NEW_LINE>}<NEW_LINE>northPanel.setLayout(new java.awt.GridBagLayout());<NEW_LINE>resourceLabel.setText(Msg.translate(Env.getCtx(), "S_Resource_ID...
(InfoBuilder.ACTION_InfoCRP + "16"));
663,541
public void renameRenamableDirectoryTest() throws IOException {<NEW_LINE>String testDirSrc = PathUtils.concatPath(mTopLevelTestDirectory, "renameRenamableDirectorySrc");<NEW_LINE>String testDirSrcChild = PathUtils.concatPath(testDirSrc, "testFile");<NEW_LINE>String testDirSrcNested = PathUtils.concatPath(testDirSrc, "t...
mConfiguration).setCreateParent(false));
24,436
protected static int lookupResource(String prefix, String path, String[] classAndFieldNames) throws ResourceNotFoundException {<NEW_LINE>if (prefix != null && path != null && prefix.startsWith("android.R") && path.startsWith("drawable.")) {<NEW_LINE>String message = "Using android.R.drawable is not recommended since th...
.getApplicationInfo().packageName + ".R$";
679,853
protected void run() {<NEW_LINE>@SuppressWarnings({ "unchecked", "rawtypes" })<NEW_LINE>List<LayoutNode>[<MASK><NEW_LINE>layers = layersTmp;<NEW_LINE>for (int i = 0; i < layerCount; i++) {<NEW_LINE>layers[i] = new ArrayList<LayoutNode>();<NEW_LINE>}<NEW_LINE>// Generate initial ordering<NEW_LINE>HashSet<LayoutNode> vis...
] layersTmp = new List[layerCount];
1,652,343
protected void processSubElement(XMLEventReader xmlEventReader, T target, SAMLMetadataQNames element, StartElement elementDetail) throws ParsingException {<NEW_LINE>switch(element) {<NEW_LINE>case ARTIFACT_RESOLUTION_SERVICE:<NEW_LINE>target.addArtifactResolutionService(SAMLArtifactResolutionServiceParser.getInstance()...
(StaxParserUtil.getElementText(xmlEventReader));
1,491,580
public void run() {<NEW_LINE>final Notification notification;<NEW_LINE>if (myNotificationListener != null && myNotificationListener.length > 0) {<NEW_LINE>final NotificationType type = myMessageType.toNotificationType();<NEW_LINE>final StringBuilder sb = new StringBuilder(myMessage);<NEW_LINE>for (NamedRunnable runnabl...
myNotificationListener[0].run();
1,057,057
public static String join(Path path1, Path path2) {<NEW_LINE>if (path2.toString().isEmpty()) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>if (!path1.isAbsolute()) {<NEW_LINE>var root = path1.getRoot();<NEW_LINE>if (root != null && !root.toString().endsWith(File.separator)) {<NEW_LINE>// special case drive letter only, e.g...
resolve(path2).normalize();
380,514
final DescribeLocalGatewayVirtualInterfaceGroupsResult executeDescribeLocalGatewayVirtualInterfaceGroups(DescribeLocalGatewayVirtualInterfaceGroupsRequest describeLocalGatewayVirtualInterfaceGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLocalGatewayVirtualInterfaceGroupsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
1,469,924
protected void handleRefreshAuthCache() throws SaturnJobConsoleException {<NEW_LINE>if (!isAuthorizationEnabled()) {<NEW_LINE>rolesCache.clear();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<Role> roles = roleRepository.selectAll();<NEW_LINE>if (roles == null || roles.isEmpty()) {<NEW_LINE>rolesCache.clear();<NEW_LINE>ret...
rolesMap = new ConcurrentHashMap<>();
1,364,440
Expression implementSafe(final RexToLixTranslator translator, final RexCall call, final List<Expression> argValueList) {<NEW_LINE>final SqlOperator op = call.getOperator();<NEW_LINE>final Expression root = translator.getRoot();<NEW_LINE>if (op == CURRENT_USER || op == SESSION_USER || op == USER) {<NEW_LINE>return Expre...
BuiltInMethod.CURRENT_TIMESTAMP.method, root);
149,497
public boolean handlePush(ClientExchange originalRequest, final ClientExchange pushedRequest) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Sending push request {} received from {} to target {} for exchange {}", pushedRequest.getRequest(), request, remoteHost, exchange);<NEW_LINE>}<NEW_LINE>final <MA...
ClientRequest request = pushedRequest.getRequest();
1,251,093
public static void sqlMap(String methodName, String sqlname) {<NEW_LINE>if (Configure.getInstance().profile_sqlmap_name_enabled == false)<NEW_LINE>return;<NEW_LINE>TraceContext ctx = TraceContextManager.getContext();<NEW_LINE>if (ctx == null)<NEW_LINE>return;<NEW_LINE>HashedMessageStep p = new HashedMessageStep();<NEW_...
ctx.profile.add(p);
399,355
public List<GenericTrigger> loadTriggers(DBRProgressMonitor monitor, @NotNull GenericStructContainer container, @Nullable GenericTableBase table) throws DBException {<NEW_LINE>if (table == null) {<NEW_LINE>throw new DBException("Database level triggers aren't supported for HSQLDB");<NEW_LINE>}<NEW_LINE>try (JDBCSession...
result = new ArrayList<>();
623,755
public Request<CopySnapshotRequest> marshall(CopySnapshotRequest copySnapshotRequest) {<NEW_LINE>if (copySnapshotRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CopySnapshotRequest> request = new DefaultRequest<CopySnapshotRequest>(cop...
(copySnapshotRequest.getKmsKeyId()));
1,327,915
private void saveGroups(JMeterVariables vars, String basename, java.util.regex.MatchResult match) {<NEW_LINE>StringBuilder buf = new StringBuilder();<NEW_LINE>buf.append(basename);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>buf.append("_g");<NEW_LINE>int pfxlen = buf.length();<NEW_LINE>String prevString = vars.get(buf.toString()...
= match.groupCount() + 1;
828,173
protected Object doExecute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>final GitRepository repo = getSelectedRepository();<NEW_LINE>if (repo == null) {<NEW_LINE>throw new ExecutionException(Messages.CreatePullRequestHandler_NoRepoErr);<NEW_LINE>}<NEW_LINE>IGithubRepository ghRepo = getGithubRepo();<NEW_L...
QuickMenuDialog(getShell(), "Merge Pull Request");
471,282
private IStatus performOperation(ProfileChangeOperation operation, IProgressMonitor monitor) {<NEW_LINE>IStatus status = operation.resolveModal(monitor);<NEW_LINE>if (status.isOK()) {<NEW_LINE>ProvisioningJob provisioningJob = operation.getProvisioningJob(monitor);<NEW_LINE>if (provisioningJob == null) {<NEW_LINE>// $N...
System.err.println("Trying to install from the Eclipse IDE? This won't work!");
366,838
private void doDispatchStartTransaction(FragmentManager fm, ISupportFragment from, ISupportFragment to, int requestCode, int launchMode, int type) {<NEW_LINE>checkNotNull(to, "toFragment == null");<NEW_LINE>if ((type == TYPE_ADD_RESULT || type == TYPE_ADD_RESULT_WITHOUT_HIDE) && from != null) {<NEW_LINE>if (!((Fragment...
getSupportDelegate().mContainerId, to);
267,689
public static void load(FileObject fo, StorageReader handler, boolean validate) {<NEW_LINE>// NOI18N<NEW_LINE>assert fo != null : "Settings file must not be null";<NEW_LINE>// NOI18N<NEW_LINE>assert handler != null : "StorageReader can't be null";<NEW_LINE>try {<NEW_LINE>XMLReader <MASK><NEW_LINE>reader.setEntityResolv...
reader = XMLUtil.createXMLReader(validate);
1,612,051
public boolean updateLowerBound(int value, ICause cause) throws ContradictionException {<NEW_LINE>assert cause != null;<NEW_LINE><MASK><NEW_LINE>if (old < value) {<NEW_LINE>model.getSolver().getEventObserver().updateLowerBound(this, value, old, cause);<NEW_LINE>int oub = this.getUB();<NEW_LINE>if (oub < value) {<NEW_LI...
int old = this.getLB();
751,859
public boolean notInCache(URL url, File file) {<NEW_LINE>try {<NEW_LINE>// valid for up to four hours.<NEW_LINE>final long validEpoch = Instant.now().toEpochMilli() - 14400000;<NEW_LINE>final File tmp = new File(url.getPath());<NEW_LINE>final <MASK><NEW_LINE>final File cache = new File(settings.getDataDirectory(), "nvd...
String filename = tmp.getName();
628,129
public static EnableApplicationScalingRuleResponse unmarshall(EnableApplicationScalingRuleResponse enableApplicationScalingRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>enableApplicationScalingRuleResponse.setRequestId(_ctx.stringValue("EnableApplicationScalingRuleResponse.RequestId"));<NEW_LINE>enableApplicationS...
(_ctx.integerValue("EnableApplicationScalingRuleResponse.AppScalingRule.Metric.MaxReplicas"));
1,417,932
private void loadNode845() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.AuditHistoryEventDeleteEventType_EventIds, new QualifiedName(0, "EventIds"), new LocalizedText("en", "EventIds"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VA...
(1), 0.0, false);
1,014,304
final DisassociateMemberAccountResult executeDisassociateMemberAccount(DisassociateMemberAccountRequest disassociateMemberAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateMemberAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,013,069
public Violations check(Environment env, Mutation m) {<NEW_LINE>if (!tabletContains(env.getTablet(), new ComparableBytes(m.getRow()))) {<NEW_LINE>Violations violations = new Violations();<NEW_LINE>ConstraintViolationSummary cvs = new ConstraintViolationSummary(SystemConstraint.class.getName(), (short) -1, "Mutation out...
getViolationDescription(vcode), 1));
868,848
private URL exportRemote(URL url, List<URL> registryURLs) {<NEW_LINE>if (CollectionUtils.isNotEmpty(registryURLs)) {<NEW_LINE>for (URL registryURL : registryURLs) {<NEW_LINE>if (SERVICE_REGISTRY_PROTOCOL.equals(registryURL.getProtocol())) {<NEW_LINE>url = url.addParameterIfAbsent(SERVICE_NAME_MAPPING_KEY, "true");<NEW_...
url.putAttribute(MONITOR_KEY, monitorUrl);
662,439
/*<NEW_LINE>* Bit of tidying - scala contains loads of serialVersionUid and ScalaSignatures - which don't add anything<NEW_LINE>* and just make things harder to read.<NEW_LINE>*<NEW_LINE>* Ideally this would live elsewhere - but most scala functions are implemented as anonymous inners,<NEW_LINE>* and that's not caught ...
annotations.hide(TypeConstants.SCALA_SIGNATURE);
1,525,062
public static IRubyObject pack_sockaddr_un(ThreadContext context, String unixpath) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>ByteBuffer buf = ByteBuffer.allocate(SOCKADDR_UN_SIZE);<NEW_LINE>byte[] path = unixpath.getBytes();<NEW_LINE>if (path.length > SOCKADDR_UN_PATH) {<NEW_LINE>String errorMsg = "too ...
runtime, buf.array());
1,575,731
public static LibraryImplementation3 createJavaLibraryImplementation(@NonNull final String name, @NonNull final URL[] classPath, @NonNull final URL[] sources, @NonNull final URL[] javadoc, @NonNull final String[] mavendeps, @NonNull final String[] mavenrepos) {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("name", nam...
Parameters.notNull("classPath", classPath);
1,831,648
public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JsonTray apiKeys = DAO.apiKeys;<NEW_LINE>String type = call.get("type", "public");<NEW_LINE>JSONObject configKeys = new JSONObject();<NEW_LINE>JSONOb...
result.put("accepted", true);
1,808,648
private void initMetrics(UUID serverId) {<NEW_LINE>Metrics metrics = new Metrics("DragonProxy", serverId.toString(), 2094);<NEW_LINE>metrics.addCustomChart(new Metrics.SingleLineChart("servers", () -> 1));<NEW_LINE>metrics.addCustomChart(new Metrics.SimplePie("bedrock_versions", DragonProxy.BEDROCK_CODEC::getMinecraftV...
) + authType.substring(1);
1,123,662
protected void drawIcon(Graphics graphics) {<NEW_LINE>if (!isIconVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>graphics.pushState();<NEW_LINE>graphics.setForegroundColor(isEnabled() ? ColorConstants.black : ColorConstants.gray);<NEW_LINE>graphics.setLineWidthFloat(1.5f);<NEW_LINE>Point pt = getIconOrigin();<NEW_LIN...
11, pt.y + 5);
399,081
private void mtuPostlex(Document doc) throws DOMException {<NEW_LINE>TreeWalker tw = ((DocumentTraversal) doc).createTreeWalker(doc, NodeFilter.SHOW_ELEMENT, new NameNodeFilter(MaryXML.MTU), false);<NEW_LINE>Element m = null;<NEW_LINE>while ((m = (Element) tw.nextNode()) != null) {<NEW_LINE>if (// not highest-level<NEW...
c = MaryDomUtils.getLastChildElement(c);
1,048,753
public CalculateRouteTruckModeOptions unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CalculateRouteTruckModeOptions calculateRouteTruckModeOptions = new CalculateRouteTruckModeOptions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
JsonToken token = context.getCurrentToken();
306,901
final CreateFrameworkResult executeCreateFramework(CreateFrameworkRequest createFrameworkRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFrameworkRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
invoke(request, responseHandler, executionContext);
470,342
public static Element svgCircleSegment(SVGPlot svgp, double centerx, double centery, double angleStart, double angleDelta, double innerRadius, double outerRadius) {<NEW_LINE>// To return cosine<NEW_LINE>final DoubleWrapper tmp = new DoubleWrapper();<NEW_LINE>double sin1st = FastMath.sinAndCos(angleStart, tmp);<NEW_LINE...
= centerx + (innerRadius * sin2nd);
1,458,593
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.<MASK><NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl();<NEW_LINE>Card lastCard = null;<NEW_LINE>for (Card card : player.getLibrary().getCards(game)) {<NEW_LINE>if (card != null) {<NEW_...
getPlayer(source.getControllerId());
85,438
public void showSnackbar(final ChatVO deletedItem, final int deletedIndex) {<NEW_LINE>if (snackbar != null)<NEW_LINE>snackbar.dismiss();<NEW_LINE>final boolean archived <MASK><NEW_LINE>snackbar = Snackbar.make(coordinatorLayout, archived ? R.string.chat_was_unarchived : R.string.chat_was_archived, Snackbar.LENGTH_LONG)...
= (deletedItem).isArchived();
213,120
public void enterSs_service_group(A10Parser.Ss_service_groupContext ctx) {<NEW_LINE>Optional<String> maybeName = toString(ctx, ctx.service_group_name());<NEW_LINE>ServerPort.Type type = ctx.tcp_or_udp() == null ? null : toType(ctx.tcp_or_udp());<NEW_LINE>if (!maybeName.isPresent()) {<NEW_LINE>// dummy<NEW_LINE>_current...
maybeName.get(), ctx);
374,334
public static DescribeInvocationsResponse unmarshall(DescribeInvocationsResponse describeInvocationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInvocationsResponse.setRequestId(_ctx.stringValue("DescribeInvocationsResponse.RequestId"));<NEW_LINE>describeInvocationsResponse.setNextToken(_ctx.stringValue("Desc...
+ "].InvokeDesktops[" + j + "].FinishTime"));
1,438,298
public static void yuv420_to_PlRgb_U8(Picture input, Planar<GrayU8> output) {<NEW_LINE>byte[] <MASK><NEW_LINE>byte[] U = input.getPlaneData(1);<NEW_LINE>byte[] V = input.getPlaneData(2);<NEW_LINE>GrayU8 R = output.getBand(0);<NEW_LINE>GrayU8 G = output.getBand(1);<NEW_LINE>GrayU8 B = output.getBand(2);<NEW_LINE>final i...
Y = input.getPlaneData(0);
1,558,412
public void selfCheck() {<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>if (sBeginDate == null || "".equals(sBeginDate)) {<NEW_LINE>sb.append("sBeginDate can not be null\n");<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>new SimpleDateFormat(dateFormat).parse(sBeginDate).getTime();<NEW_LINE>} catch (Exception e) ...
RuntimeException(sb.toString());
1,592,900
private void findClasses(List<Class<?>> classList, String packageName, String path, boolean recursive) {<NEW_LINE>File[] files = new File(path).listFiles(classFileOrDirectoryFilter);<NEW_LINE>if (files != null) {<NEW_LINE>for (File file : files) {<NEW_LINE>try {<NEW_LINE>String fileName = file.getName();<NEW_LINE>// fi...
t.getMessage(), t);
281,370
public static void vertical(GrayU16 input, GrayI16 output, int radius, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final int kernelWidth = ...
int backStep = kernelWidth * input.stride;
890,179
public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>if (getParentFragment() != null && getParentFragment().getParentFragment() != null) {<NEW_LINE>// Added a check because, not necessarily, the parent fragment will have a parent fragment, say<NEW_LINE>// in the case when MediaDetailPagerFragment is directly st...
media = detailProvider.getMediaAtPosition(index);
1,323,877
public StartStageDeploymentResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartStageDeploymentResult startStageDeploymentResult = new StartStageDeploymentResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LI...
String currentParentElement = context.getCurrentParentElement();
112,002
protected void onBindDialogView(View view) {<NEW_LINE>Settings settings = new Settings(getContext());<NEW_LINE>TextInputLayout passwordLayout = view.findViewById(R.id.passwordLayout);<NEW_LINE>passwordInput = view.findViewById(R.id.passwordEdit);<NEW_LINE>passwordConfirm = view.findViewById(R.id.passwordConfirm);<NEW_L...
InputType.TYPE_CLASS_TEXT | InputType.TYPE_TEXT_VARIATION_PASSWORD);
887,923
public void run(FlowTrigger trigger, Map data) {<NEW_LINE>ReinitImageCmd cmd = new ReinitImageCmd();<NEW_LINE>if (msg.getVolume().getRootImageUuid() == null) {<NEW_LINE>completion.fail(operr("root image has been deleted, cannot reimage now"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!dbf.isExist(msg.getVolume().getRoo...
makeRootVolumeInstallUrl(msg.getVolume());
356,696
private JsonResponseUpsertItemBuilder syncJsonLocation(@NonNull final JsonRequestLocationUpsertItem locationUpsertItem, @NonNull final SyncAdvise parentSyncAdvise, @NonNull final ShortTermLocationIndex shortTermIndex) {<NEW_LINE>final IdentifierString locationIdentifier = IdentifierString.of(locationUpsertItem.getLocat...
getLocation(), location, parentSyncAdvise);
1,148,506
void updateTable(String tableName, String columnName) {<NEW_LINE>if (docMonthOffset == 0 || tableName.isEmpty() || columnName.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sql = "UPDATE " + tableName + " SET " + columnName + " = trunc((" + " CASE WHEN add_months(" + columnName + ", " + docMonthOffset + ") >...
pstm.setTimestamp(2, maxPeriodDate);
309,873
private Map<String, Object> createInsightsMap(ServerUUID serverUUID) {<NEW_LINE>Database db = dbSystem.getDatabase();<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long monthAgo = now - TimeUnit.DAYS.toMillis(30L);<NEW_LINE>List<TPS> tpsData = db.query(TPSQueries.fetchTPSDataOfServer(monthAgo, now, serverUUI...
(monthAgo, now, serverUUID));
523,613
public Slop toObject(byte[] bytes) {<NEW_LINE>DataInputStream input = new DataInputStream(new ByteArrayInputStream(bytes));<NEW_LINE>try {<NEW_LINE>VSlopProto.Slop proto = ProtoUtils.readToBuilder(input, VSlopProto.Slop.<MASK><NEW_LINE>String storeName = proto.getStore();<NEW_LINE>Slop.Operation op = Slop.Operation.val...
newBuilder()).build();
560,552
private void checkTimeouts() {<NEW_LINE>long now = SystemTime.getMonotonousTime();<NEW_LINE>List<Object[]> timeouts = null;<NEW_LINE>synchronized (tid_map) {<NEW_LINE>Iterator<byte[]> it = tid_map.keys().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>byte[] key = it.next();<NEW_LINE>Object[] value = tid_map.get(k...
timeouts = new ArrayList<>();
1,607,114
public void read() throws IOException {<NEW_LINE>readFileId();<NEW_LINE>in.resetCRC();<NEW_LINE>long startcode = in.readStartCode();<NEW_LINE>while (true) {<NEW_LINE>// Start parsing main and stream information<NEW_LINE>header = new MainHeaderPacket();<NEW_LINE>if (!Startcode.MAIN.equalsCode(startcode)) {<NEW_LINE>thro...
streamHeader.read(in, startcode);
1,137,697
IQueryBuilder<I_AD_User_Record_Access> query(@NonNull final RecordAccessQuery query) {<NEW_LINE>final IQueryBuilder<I_AD_User_Record_Access> queryBuilder = queryBL.createQueryBuilder(I_AD_User_Record_Access.class);<NEW_LINE>//<NEW_LINE>// Records<NEW_LINE>final ImmutableSet<TableRecordReference> recordRefs = query.getR...
.addCompositeQueryFilter().setJoinOr();
1,491,932
final DescribeConformancePackComplianceResult executeDescribeConformancePackCompliance(DescribeConformancePackComplianceRequest describeConformancePackComplianceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeConformancePackComplianceRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
invoke(request, responseHandler, executionContext);
168,438
final DeleteProjectResult executeDeleteProject(DeleteProjectRequest deleteProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,639,390
static DirectCompactDoublesSketch createFromUpdateSketch(final UpdateDoublesSketch sketch, final WritableMemory dstMem) {<NEW_LINE>final <MASK><NEW_LINE>final int k = sketch.getK();<NEW_LINE>final long n = sketch.getN();<NEW_LINE>checkDirectMemCapacity(k, n, memCap);<NEW_LINE>// initialize dstMem<NEW_LINE>// clear pre0...
long memCap = dstMem.getCapacity();
1,589,127
public void reduce(final IntWritable key, final Iterator<Text> values, OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>int i;<NEW_LINE>float vector_val = 0;<NEW_LINE>ArrayList<Integer> to_nodes_list = new ArrayList<Integer>();<NEW_LINE>ArrayList<Float> to_val_list = new...
line = line_text.split("\t");
896,245
private DefaultMutableTreeNode createCertificateNodes(X509Certificate[] certs) {<NEW_LINE>DefaultMutableTreeNode certsNode = new DefaultMutableTreeNode();<NEW_LINE>Set<X509Certificate> originalSet = new TreeSet<>(new X509CertificateComparator());<NEW_LINE>Collections.addAll(originalSet, certs);<NEW_LINE>Set<X509Certifi...
(new DefaultMutableTreeNode(cert)));
1,602,806
private Composite createSyncedSection(Composite parent) {<NEW_LINE>Composite main = new Composite(parent, SWT.NONE);<NEW_LINE>main.setLayout(new GridLayout(2, false));<NEW_LINE>main.setBackgroundMode(SWT.INHERIT_DEFAULT);<NEW_LINE>// main.setBackground(parent.getDisplay().getSystemColor(SWT.COLOR_LIST_BACKGROUND));<NEW...
.CENTER, false, false));
647,550
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {<NEW_LINE>super.onLayout(changed, left, top, right, bottom);<NEW_LINE>if (changed) {<NEW_LINE>width = getMeasuredWidth();<NEW_LINE>height = getMeasuredHeight();<NEW_LINE>lineContentWidth = width - 3 * padding;<NEW_LINE>lineStrokeWidth =...
* rate + (width - lineContentWidth);
955,107
private void drawShapes() {<NEW_LINE>g2.setColor(bgColor);<NEW_LINE>g2.setComposite(composites[1]);<NEW_LINE>for (StyleShape s : shapes) {<NEW_LINE>specialBgColor = !s.getBgColor().equals(bgColor);<NEW_LINE>if (specialBgColor) {<NEW_LINE>g2.setColor(s.getBgColor());<NEW_LINE>g2.setComposite(AlphaComposite.getInstance(A...
.setComposite(composites[0]);
1,443,473
default List<Item> extract(List<InputFile> file, List<Exception> errors) {<NEW_LINE>// keep the method signature stable to avoid changing *all* test cases.<NEW_LINE>// one could move the Client away from the constructor and into the<NEW_LINE>// extract method. Maybe even remove all state from the extractors by<NEW_LINE...
(this, postProcessing(result));
248,905
public <B extends BlockStateHolder<B>> BlockStateHolder<?> updateNBT(B block, Map<String, Tag> values) {<NEW_LINE>Tag typeTag = values.get("color");<NEW_LINE>if (typeTag instanceof IntTag) {<NEW_LINE>String bedType = convertBedType(((IntTag) typeTag).getValue());<NEW_LINE>if (bedType != null) {<NEW_LINE>BlockType type ...
BlockState state = type.getDefaultState();
603,478
public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, P p) {<NEW_LINE>J.ClassDeclaration c = super.visitClassDeclaration(classDecl, p);<NEW_LINE>if (!c.getLeadingAnnotations().isEmpty()) {<NEW_LINE>c = concatenatePrefix(c, Space.firstPrefix(c.getLeadingAnnotations()));<NEW_LINE>c = c.withLeading...
.withBefore(Space.EMPTY));
387,274
public static void main(String[] args) throws IOException, DocumentException {<NEW_LINE>FindBugs.setNoAnalysis();<NEW_LINE>DetectorFactoryCollection.instance();<NEW_LINE>if (args.length < 1 || args.length > 2) {<NEW_LINE>System.out.println(USAGE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BugCollection origCollection;<NEW_L...
SourceLineAnnotation s = b.getPrimarySourceLineAnnotation();
861,362
final CreateSnapshotScheduleResult executeCreateSnapshotSchedule(CreateSnapshotScheduleRequest createSnapshotScheduleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSnapshotScheduleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Redshift");