idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
845,120
protected void onSaveInstanceState(@NonNull Bundle outState) {<NEW_LINE>super.onSaveInstanceState(outState);<NEW_LINE>outState.putParcelable(SELECTED_ACCOUNT_STATE, selectedAccount);<NEW_LINE>outState.putString(SUBREDDIT_NAME_STATE, subredditName);<NEW_LINE>outState.putString(SUBREDDIT_ICON_STATE, iconUrl);<NEW_LINE>ou...
outState.putBoolean(LOAD_SUBREDDIT_ICON_STATE, loadSubredditIconSuccessful);
1,587,299
public static File extractFile(Activity a, String fileName, File file, boolean single) {<NEW_LINE>try {<NEW_LINE>CacheZipUtils.CACHE_RECENT.mkdirs();<NEW_LINE>if (!CacheZipUtils.CACHE_RECENT.isDirectory()) {<NEW_LINE>Toast.makeText(a, R.string.msg_unexpected_error, Toast.LENGTH_LONG).show();<NEW_LINE>return null;<NEW_L...
outFileName = ExtUtils.getFileName(fileName);
816,574
protected void startWithPermCheck(boolean startRecord) {<NEW_LINE>int audioPerm = ActivityCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO);<NEW_LINE>if (audioPerm != PackageManager.PERMISSION_GRANTED) {<NEW_LINE>if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {<NEW_LINE><MASK><NEW_LINE>Toast.makeTe...
Log.e(TAG, "No AudioRecord permission, please check");
1,756,312
private void logEnd() {<NEW_LINE>val elapsed = timer.getElapsed();<NEW_LINE>SLTS_WRITE_LATENCY.reportSuccessEvent(elapsed);<NEW_LINE>SLTS_WRITE_BYTES.add(length);<NEW_LINE>SLTS_NUM_CHUNKS_ADDED.reportSuccessValue(chunksAddedCount.get());<NEW_LINE>if (segmentMetadata.isStorageSystemSegment()) {<NEW_LINE>SLTS_SYSTEM_WRIT...
"write", traceId, handle, offset);
992,378
Optional<XmlOutput> executeWithParameters(PluginParameters pluginParameters, MavenParameters mavenParameters) throws MojoFailureException, MojoExecutionException {<NEW_LINE>if (pluginParameters.getSkipParam()) {<NEW_LINE>getLog().info("Skipping execution because parameter 'skip' was set to true.");<NEW_LINE>return Opti...
setUpClassPath(comparatorOptions, pluginParameters, mavenParameters);
173,523
private void runLocalMsbfs(int totalNodeCount, SourceNodes sourceNodes, long[] visitSet, long[] nextSet, long[] seenSet) {<NEW_LINE>int depth = 0;<NEW_LINE>while (true) {<NEW_LINE>for (int i = 0; i < totalNodeCount; ++i) {<NEW_LINE>if (visitSet[i] != 0L) {<NEW_LINE>prepareNextVisit(visitSet[i], i, nextSet);<NEW_LINE>}<...
0, visitSet, 0, totalNodeCount);
537,443
public DiffSectionSpecModel createWithPsi(Project project, PsiClass psiClass, @Nullable DependencyInjectionHelper dependencyInjectionHelper) {<NEW_LINE>final DiffSectionSpec diffSectionSpecAnnotation = PsiAnnotationProxyUtils.<MASK><NEW_LINE>if (diffSectionSpecAnnotation == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_...
findAnnotationInHierarchy(psiClass, DiffSectionSpec.class);
1,663,966
private static void tryAssertionCrontab(RegressionEnvironment env, int days) {<NEW_LINE>String[] fields = "symbol".split(",");<NEW_LINE>sendEvent(env, "S1", 0);<NEW_LINE>env.assertListenerNotInvoked("s0");<NEW_LINE>sendTimeEvent(env, days, 17, 14, 59, 0);<NEW_LINE>sendEvent(env, "S2", 0);<NEW_LINE>env.assertListenerNot...
sendEvent(env, "S5", 0);
834,452
protected void addMessageComponents(Container container, GridBagConstraints cons, Object msg, int maxll, boolean internallyCreated) {<NEW_LINE>// set message padding<NEW_LINE>if (messagePadding > 0)<NEW_LINE>cons.insets.bottom = UIScale.scale(messagePadding);<NEW_LINE>// disable line wrapping for HTML<NEW_LINE>if (msg ...
) c).setAlignmentX(alignX);
633,854
public <R, P> R accept(AnnotationValueVisitor<R, P> v, P p) {<NEW_LINE>if (value instanceof AnnotationMirror) {<NEW_LINE>return v.visitAnnotation((AnnotationMirror) value, p);<NEW_LINE>} else if (value instanceof List) {<NEW_LINE>return v.visitArray((List<? extends AnnotationValue>) value, p);<NEW_LINE>} else if (value...
((Short) value, p);
649,954
private void actionAcctSchema() {<NEW_LINE>KeyNamePair keyNamePair = (KeyNamePair) selAcctSchema.getSelectedItem();<NEW_LINE>if (keyNamePair == null)<NEW_LINE>return;<NEW_LINE>accountViewerData.C_AcctSchema_ID = keyNamePair.getKey();<NEW_LINE>accountViewerData.ASchema = MAcctSchema.get(Env.getCtx(), accountViewerData.C...
selectionIndex++].setVisible(false);
1,315,671
public boolean putIfAbsent(final LocalDB.DB db, final String key, final String value) throws LocalDBException {<NEW_LINE>preCheck(true);<NEW_LINE>final String selectSql = "SELECT * FROM " + db.toString() + " WHERE " + KEY_COLUMN + " = ?";<NEW_LINE>PreparedStatement selectStatement = null;<NEW_LINE>ResultSet resultSet =...
+ KEY_COLUMN + ", " + VALUE_COLUMN + ") VALUES(?,?)";
1,734,059
public String createCorpusPath(final String adapterPath) {<NEW_LINE>if (!StringUtils.isNullOrEmpty(adapterPath)) {<NEW_LINE>int startIndex = "https://".length();<NEW_LINE>int endIndex = adapterPath.<MASK><NEW_LINE>String hostname = "";<NEW_LINE>try {<NEW_LINE>hostname = this.formatHostname(adapterPath.substring(startIn...
indexOf('/', startIndex + 1);
1,503,241
public boolean shouldPull(DockerImageName imageName) {<NEW_LINE>Logger logger = DockerLoggerFactory.getLogger(imageName.asCanonicalNameString());<NEW_LINE>// Does our cache already know the image?<NEW_LINE>ImageData cachedImageData = LOCAL_IMAGES_CACHE.get(imageName);<NEW_LINE>if (cachedImageData != null) {<NEW_LINE>lo...
log.debug("Not available locally, should pull image: {}", imageName);
1,825,858
protected synchronized void processNodeData(NodeDataMessage msg) {<NEW_LINE>if (requestedNodes == null) {<NEW_LINE>logger.debug("Received NodeDataMessage when requestedNodes == null. Dropping peer " + channel);<NEW_LINE>dropConnection();<NEW_LINE>}<NEW_LINE>List<Pair<byte[], byte[]>> <MASK><NEW_LINE>if (msg.getDataList...
ret = new ArrayList<>();
1,048,859
public FileObject createFolder(String name) throws IOException {<NEW_LINE>if (name.contains("/") || name.contains("\\")) {<NEW_LINE>throw new FSException(NbBundle.getMessage(AbstractFileObject.class, "EXC_SlashNotAllowed", name));<NEW_LINE>}<NEW_LINE>AbstractFileObject fo;<NEW_LINE>try {<NEW_LINE>getFileSystem().beginA...
getPath() + PATH_SEP + name);
812,816
final GetPipelineStateResult executeGetPipelineState(GetPipelineStateRequest getPipelineStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPipelineStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
536,566
public GetAssociatedResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAssociatedResourceResult getAssociatedResourceResult = new GetAssociatedResourceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE...
String currentParentElement = context.getCurrentParentElement();
1,732,739
protected Widget createMainWidget() {<NEW_LINE>SimplePanel wrapper = new SimplePanel();<NEW_LINE>wrapper.setStyleName(RES.styles().wrapper());<NEW_LINE>LayoutGrid connGrid = new LayoutGrid(initialConfig_.size(), 2);<NEW_LINE>connGrid.addStyleName(RES.styles().grid());<NEW_LINE>for (int idxParams = 0; idxParams < initia...
setWidget(idxParams, 0, label);
878,392
protected <T> Exporter<T> createExporter(Provider<T> provider, URL url) {<NEW_LINE>String ipPort = url.getServerPortStr();<NEW_LINE>GrpcServer server = serverMap.get(ipPort);<NEW_LINE>if (server == null) {<NEW_LINE>boolean shareChannel = url.getBooleanParameter(URLParamType.shareChannel.getName(), URLParamType.shareCha...
serverMap.putIfAbsent(ipPort, server);
807,113
public void init(final ServletConfig config) throws ServletException {<NEW_LINE>this.application = SERVICE_PROVIDER.getInstance(AzkabanWebServer.class);<NEW_LINE>if (this.application == null) {<NEW_LINE>throw new IllegalStateException("No batch application is defined in the servlet context!");<NEW_LINE>}<NEW_LINE>final...
props.getString("azkaban.color", "#FF0000");
1,755,072
private OrderResponsePackage fromJAXB(final BestellungAntwortAuftrag soap, final OrderCreateRequestPackage requestOrder) {<NEW_LINE>final OrderResponsePackageBuilder builder = OrderResponsePackage.builder().id(Id.of(soap.getId())).orderType(OrderType.fromV1SoapCode(soap.getAuftragsart())).orderIdentification(soap.getAu...
(fromJAXB(responseItem, requestItem));
1,770,858
public static ListCompliancePackTemplatesResponse unmarshall(ListCompliancePackTemplatesResponse listCompliancePackTemplatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCompliancePackTemplatesResponse.setRequestId(_ctx.stringValue("ListCompliancePackTemplatesResponse.RequestId"));<NEW_LINE>CompliancePackTemplates...
+ "].ConfigRuleParameters[" + k + "].ParameterValue"));
1,728,708
private void concretePassword(List<PersonItem> people) throws Exception {<NEW_LINE>Pattern pattern = Pattern.compile(com.x.base.core.<MASK><NEW_LINE>Matcher matcher = pattern.matcher(Config.person().getPassword());<NEW_LINE>if (matcher.matches()) {<NEW_LINE>CompiledScript cs = ScriptingFactory.functionalizationCompile(...
project.config.Person.REGULAREXPRESSION_SCRIPT);
881,646
public void marshall(GitHubCodeDestination gitHubCodeDestination, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (gitHubCodeDestination == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(gitHubCodeDestination...
gitHubCodeDestination.getType(), TYPE_BINDING);
1,460,742
public void whenEventAuthSelectorUpdatedThenOK() throws Exception {<NEW_LINE>final EventType eventType = buildDefaultEventType();<NEW_LINE>eventType.setEventOwnerSelector(null);<NEW_LINE>given().body(MAPPER.writer().writeValueAsString(eventType)).header("accept", "application/json").contentType(JSON).post(ENDPOINT).the...
.PATH, "x", "y"));
254,431
protected void run(Result result) throws Throwable {<NEW_LINE>final VirtualFile vFile;<NEW_LINE>if (myTempDirFixture instanceof LightTempDirTestFixtureImpl) {<NEW_LINE>final VirtualFile root = LightPlatformTestCase.getSourceRoot();<NEW_LINE>root.refresh(false, false);<NEW_LINE>vFile = <MASK><NEW_LINE>} else if (myTempD...
root.findOrCreateChildData(this, fileName);
302,713
private static void generateTbTransHashListPage(Integer pageIndex, Integer pageSize, ListPage<TbTransHash> tbTransHashListPage, List<TbTransHash> tbTransHashes, BcosBlock bcosBlock) throws BrokerException {<NEW_LINE>BcosBlock.Block block = bcosBlock.getBlock();<NEW_LINE>if (block == null || CollectionUtils.isEmpty(bloc...
throw new BrokerException(ErrorCode.WEB3SDK_RPC_ERROR);
457,102
public void marshall(IntentSummary intentSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (intentSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(intentSummary.getIntentId(), INTENTID_BINDING...
intentSummary.getOutputContexts(), OUTPUTCONTEXTS_BINDING);
1,436,446
public J visitUnary(J.Unary unary, P p) {<NEW_LINE>J j = super.visitUnary(unary, p);<NEW_LINE>J.Unary asUnary = (J.Unary) j;<NEW_LINE>if (asUnary.getOperator() == J.Unary.Type.Not) {<NEW_LINE>if (isLiteralTrue(asUnary.getExpression())) {<NEW_LINE>maybeUnwrapParentheses();<NEW_LINE>j = ((J.Literal) asUnary.getExpression...
(true).withValueSource("true");
1,474,217
public Result render(Context ctx, Throwable cause, StatusCode code) {<NEW_LINE>try {<NEW_LINE>List<Frame> frames = Frame.toFrames(locator, cause);<NEW_LINE>if (frames.isEmpty()) {<NEW_LINE>return Result.skip();<NEW_LINE>}<NEW_LINE>StringWriter stacktrace = new StringWriter();<NEW_LINE>cause.printStackTrace(new PrintWri...
).split("\\.")));
1,716,805
public void registerProgressHandler(Long topicId, Long endPointId) throws UserException {<NEW_LINE>if (endPointId == null) {<NEW_LINE>throw new UserException("No EndpointId given", DefaultErrorCode.ENDPOINT_NOT_FOUND);<NEW_LINE>}<NEW_LINE>EndPoint endPoint = getEndPoint(endPointId);<NEW_LINE>if (endPoint == null) {<NEW...
getNotificationsManager().getProgressTopic(topicId);
3,338
private List<List<Object>> explodeRow(Heading head, List<Object> row) throws SQLException {<NEW_LINE>List<List<Object>> rows = new ArrayList<List<Object>>();<NEW_LINE>rows.add(row);<NEW_LINE>for (int ri = 0; ri < head.getColumnCount(); ri++) {<NEW_LINE>if (!head.getColumn(ri).isVisible())<NEW_LINE>continue;<NEW_LINE>Ob...
destinationCol = head.getColumnByLabel(nestedColName);
1,787,248
private static boolean proxySet(JSDynamicObject thisObj, Object key, Object value, Object receiver, boolean isStrict, Node encapsulatingNode) {<NEW_LINE>assert JSRuntime.isPropertyKey(key);<NEW_LINE>JSDynamicObject handler = getHandlerChecked(thisObj);<NEW_LINE>Object target = getTarget(thisObj);<NEW_LINE>Object trap =...
writeMember(target, key, value);
1,503,054
public void write(Media media, XMLFormat.OutputElement xml) throws XMLStreamException {<NEW_LINE>xml.setAttribute(FULL_FIELD_NAME_URI, media.uri);<NEW_LINE>xml.setAttribute(FULL_FIELD_NAME_TITLE, media.title);<NEW_LINE>xml.setAttribute(FULL_FIELD_NAME_WIDTH, media.width);<NEW_LINE>xml.setAttribute(FULL_FIELD_NAME_HEIGH...
setAttribute(FULL_FIELD_NAME_SIZE, media.size);
73,067
public static GetHealthMonitorLogsResponse unmarshall(GetHealthMonitorLogsResponse getHealthMonitorLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>getHealthMonitorLogsResponse.setRequestId<MASK><NEW_LINE>List<Logs> logInfo = new ArrayList<Logs>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("GetHealthMonitorLogsRe...
(_ctx.stringValue("GetHealthMonitorLogsResponse.RequestId"));
46,596
private String removeNonWords(String sentence) {<NEW_LINE>List<Token> docTokens = TurkishTokenizer.DEFAULT.tokenize(sentence);<NEW_LINE>List<String> reduced = new ArrayList<>(docTokens.size());<NEW_LINE>for (Token token : docTokens) {<NEW_LINE>if (!token.getText().equals("?") && (token.getType() == Type.PercentNumeral ...
String.join(" ", reduced);
1,458,233
public static InternalAggregations reduce(List<InternalAggregations> aggregationsList, List<SiblingPipelineAggregator> topLevelPipelineAggregators, ReduceContext context) {<NEW_LINE>if (aggregationsList.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// first we collect all aggregations of the same type and list...
return new InternalAggregations(reducedAggregations, topLevelPipelineAggregators);
260,294
public static ListRecordingByContactIdResponse unmarshall(ListRecordingByContactIdResponse listRecordingByContactIdResponse, UnmarshallerContext context) {<NEW_LINE>listRecordingByContactIdResponse.setRequestId(context.stringValue("ListRecordingByContactIdResponse.RequestId"));<NEW_LINE>listRecordingByContactIdResponse...
(context.booleanValue("ListRecordingByContactIdResponse.Success"));
312,495
public void optimize(RegularMethodNode method, Program program, boolean friendlyToDebugger) {<NEW_LINE>ReadWriteStatsBuilder stats = new ReadWriteStatsBuilder(method.getVariables().size());<NEW_LINE>stats.analyze(program);<NEW_LINE>applyParametersToWriteStats(stats, method.getReference());<NEW_LINE>boolean[] preservedV...
paramCount, method.getVariables());
100,655
protected Pattern predefinedToPattern(YamlContract.PredefinedRegex predefinedRegex) {<NEW_LINE>switch(predefinedRegex) {<NEW_LINE>case only_alpha_unicode:<NEW_LINE>return RegexPatterns.onlyAlphaUnicode().getPattern();<NEW_LINE>case number:<NEW_LINE>return RegexPatterns.number().getPattern();<NEW_LINE>case any_double:<N...
.nonEmpty().getPattern();
1,670,417
public SchemaInfo parse(InputSource in) {<NEW_LINE>// NOI18N<NEW_LINE>Util.THIS.debug("SchemaParser started.");<NEW_LINE>try {<NEW_LINE>depth = 0;<NEW_LINE>XMLReader parser = XMLUtil.createXMLReader(false, true);<NEW_LINE>parser.setContentHandler(this);<NEW_LINE>parser.setErrorHandler(this);<NEW_LINE>UserCatalog catalo...
THIS.debug("Ignoring ex. thrown while looking for Schema roots:", ex);
1,769,921
private Date convertFromString(String valueStr, @NonNull final ExpressionContext options) {<NEW_LINE>if (valueStr == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>valueStr = valueStr.trim();<NEW_LINE>//<NEW_LINE>// Use the given date format<NEW_LINE>try {<NEW_LINE>final DateFormat dateFormat = (DateFormat) options....
warn("Using Env.parseTimestamp to convert '{}' to Date", valueStr, ex1);
1,277,735
public void createMenuItems(Bundle savedInstanceState) {<NEW_LINE>app = requiredMyApplication();<NEW_LINE>settings = app.getSettings();<NEW_LINE>Context context = requireContext();<NEW_LINE>LayoutInflater inflater = UiUtilities.getInflater(context, nightMode);<NEW_LINE>View itemView = inflater.inflate(R.layout.trip_rec...
findViewById(R.id.show_track_on_map);
984,547
private static boolean isVariableInOperatorExpr(DetailAST operator, DetailAST variable) {<NEW_LINE>boolean isVarInOperatorDeclaration = false;<NEW_LINE>final DetailAST openingBracket = operator.findFirstToken(TokenTypes.LPAREN);<NEW_LINE>// Get EXPR between brackets<NEW_LINE>DetailAST exprBetweenBrackets = openingBrack...
isVarInOperatorDeclaration = isVariableInOperatorExpr(firstNodeInsideElseBlock, variable);
721,911
private static void bindErrorPoint(BoundStatement boundStatement, String agentRollupId, String agentId, String traceId, Trace.Header header, int adjustedTTL, boolean overall) throws IOException {<NEW_LINE>int i = bind(boundStatement, agentRollupId, agentId, traceId, header, overall, false);<NEW_LINE>boundStatement.setL...
(header.getUser()));
1,770,596
public void invoke(Connection connection, int maxBatchSqlSize) throws SQLException {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("execute sql batch. sql by key size: {}", prepareRequests.size());<NEW_LINE>}<NEW_LINE>if (prepareRequests.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sql = prepare...
get(0).toString();
1,641,617
final CreateRegexMatchSetResult executeCreateRegexMatchSet(CreateRegexMatchSetRequest createRegexMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRegexMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,334,875
private void initHorCompSide(ComponentSide side, GridBagConstraints cons, Dimension minSize, Dimension prefSize, ParentInfo info) {<NEW_LINE>MixedConstraints mixCons = info.consTable.get(cons);<NEW_LINE>side.gridStart = mixCons.mapped.getX();<NEW_LINE>side.gridLength = mixCons.mapped.getSize().getWidth();<NEW_LINE>side...
.end_inset = cons.insets.right;
309,904
final DeleteDocumentationVersionResult executeDeleteDocumentationVersion(DeleteDocumentationVersionRequest deleteDocumentationVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDocumentationVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
177,306
public static PyTorchJobSpec parsePyTorchJobSpec(ExperimentSpec experimentSpec) throws InvalidSpecException {<NEW_LINE>PyTorchJobSpec pyTorchJobSpec = new PyTorchJobSpec();<NEW_LINE>Map<PyTorchJobReplicaType, MLJobReplicaSpec> replicaSpecMap = new HashMap<>();<NEW_LINE>for (Map.Entry<String, ExperimentTaskSpec> entry :...
.names()) + " for PyTorch experiment.");
384,620
public void run(RegressionEnvironment env) {<NEW_LINE>Module module = new Module();<NEW_LINE>module.getItems().add(new ModuleItem("select * from NoSuchEvent"));<NEW_LINE>try {<NEW_LINE>env.getCompiler().syntaxValidate(module, null);<NEW_LINE>} catch (EPCompileException e) {<NEW_LINE>throw new RuntimeException(e);<NEW_L...
add(new ModuleItem(model));
1,143,100
final DeletePlatformVersionResult executeDeletePlatformVersion(DeletePlatformVersionRequest deletePlatformVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePlatformVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
437,800
private void addShortcut(Feed feed, Bitmap bitmap) {<NEW_LINE>Intent intent = new Intent(this, MainActivity.class);<NEW_LINE>intent.setAction(Intent.ACTION_MAIN);<NEW_LINE>intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);<NEW_LINE>intent.putExtra(EXTRA_FEED_ID, feed.getId());<NEW_LINE>St...
setIcon(icon).build();
801,850
private <T> CompletableFuture<AsyncIterator<IteratorItem<T>>> newIterator(@NonNull DirectSegmentAccess segment, @NonNull IteratorArgs args, @NonNull GetBucketReader<T> createBucketReader) {<NEW_LINE>Preconditions.checkArgument(args.getFrom() == null && args.getTo() == null, "Range Iterators not supported for HashTableS...
.serialize(), result));
923,152
public void extendsOrmLiteDao(Element element, ElementValidation valid, OrmLiteHelper ormLiteHelper) {<NEW_LINE>if (!valid.isValid()) {<NEW_LINE>// we now that the element is invalid. early exit as the reason<NEW_LINE>// could be missing ormlite classes<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TypeMirror elementTypeMirror ...
Types typeUtils = annotationHelper.getTypeUtils();
494,090
private int consumeAndValidateMessage(final LogSegment segment, final ByteBuffer buffer) {<NEW_LINE>final int magic = buffer.getInt();<NEW_LINE>if (!MagicCodeSupport.isValidMessageLogMagicCode(magic)) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>final byte attributes = buffer.get();<NEW_LINE>buffer.getLong();<NEW_LINE>if ...
] payload = new byte[payloadSize];
1,081,265
private int findPLV(int M_PriceList_ID) {<NEW_LINE>Timestamp priceDate = null;<NEW_LINE>// Sales Order Date - This window - all tabs<NEW_LINE>String dateStr = Env.getContext(Env.getCtx(), p_WindowNo, "DateOrdered");<NEW_LINE>if (dateStr != null && dateStr.length() > 0)<NEW_LINE>priceDate = Env.getContextAsDate(Env.get...
plDate = rs.getTimestamp(2);
384,820
private static void exportAll() {<NEW_LINE>final Shell shell = Utils.findAnyShell();<NEW_LINE>shell.getDisplay().asyncExec(new AERunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSupport() {<NEW_LINE>FileDialog dialog = new FileDialog(shell, SWT.SYSTEM_MODAL | SWT.SAVE);<NEW_LINE>dialog.setFilterPath(To...
path = VuzeFileHandler.getVuzeFileName(path);
582,225
public void deleteById(String id) {<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 valid. Missing path segment 'resourceGroup...
Utils.getValueFromIdByName(id, "streamingEndpoints");
824,383
public Request<SearchTransitGatewayRoutesRequest> marshall(SearchTransitGatewayRoutesRequest searchTransitGatewayRoutesRequest) {<NEW_LINE>if (searchTransitGatewayRoutesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<SearchTransitGatewayR...
, StringUtils.fromString(filterValuesListValue));
162,252
final GetMonitoringSubscriptionResult executeGetMonitoringSubscription(GetMonitoringSubscriptionRequest getMonitoringSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMonitoringSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
(super.beforeMarshalling(getMonitoringSubscriptionRequest));
664,121
private FixedSizeMap<K, V> filter(Predicate2<? super K, ? super V> predicate) {<NEW_LINE>int result = 0;<NEW_LINE>if (predicate.accept(this.key1, this.value1)) {<NEW_LINE>result |= 1;<NEW_LINE>}<NEW_LINE>if (predicate.accept(this.key2, this.value2)) {<NEW_LINE>result |= 2;<NEW_LINE>}<NEW_LINE>if (predicate.accept(this....
this.key3, this.value3);
1,581,391
public Result create(UUID customerUUID) throws IOException {<NEW_LINE>JsonNode requestBody = request()<MASK><NEW_LINE>Provider reqProvider = formFactory.getFormDataOrBadRequest(requestBody, Provider.class);<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>reqProvider.customerUUID = customer...
.body().asJson();
129,019
public void testDeliveryMultipleMsgsTopicClassicApi(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>TopicConnection con = jmsTCFBindings.createTopicConnection();<NEW_LINE>con.start();<NEW_LINE>TopicSession sessionSender = con.createTopicSession(...
(TextMessage) sub.receiveNoWait();
1,217,538
private PCode readCode() {<NEW_LINE>String fileName = readString().intern();<NEW_LINE>int flags = readInt();<NEW_LINE>int codeLen = readSize();<NEW_LINE>byte[] codeString = new byte[codeLen + Long.BYTES];<NEW_LINE>try {<NEW_LINE>in.<MASK><NEW_LINE>} catch (IOException e) {<NEW_LINE>throw CompilerDirectives.shouldNotRea...
read(codeString, 0, codeLen);
224,854
private void readPoiNameIndexDataAtom(TIntLongHashMap offsets, SearchRequest<Amenity> req) throws IOException {<NEW_LINE>int x = 0;<NEW_LINE>int y = 0;<NEW_LINE>int zoom = 15;<NEW_LINE>while (true) {<NEW_LINE>int t = codedIS.readTag();<NEW_LINE>int tag = WireFormat.getTagFieldNumber(t);<NEW_LINE>switch(tag) {<NEW_LINE>...
abs(req.y - y31);
1,722,481
public static void main(String[] args) throws Exception {<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>// Set rate limit to 1000 bytes per second (since parallelism is set to 2,<NEW_LINE>builder.setSpout("word", new TestWordSpout(), 2).// each instance is rate limited as 500 bps).<NEW_LINE>addConf...
, ByteAmount.fromMegabytes(512));
939,237
private void parsePrices(final Element e, final Metadata md) {<NEW_LINE>final List<Element> priceElements = e.getChildren("price", getNS());<NEW_LINE>final Price[] prices = new Price[priceElements.size()];<NEW_LINE>for (int i = 0; i < priceElements.size(); i++) {<NEW_LINE>final Element priceElement = priceElements.get(...
price = priceElement.getAttributeValue("price");
357,706
public static void addItem(BaseMDI mdi, BaseMdiEntry entry) {<NEW_LINE>Utils.execSWTThread(() -> {<NEW_LINE>if (toolBar == null || skinObject == null || skinObject.isDisposed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String id = entry.getViewID();<NEW_LINE>String titleID = entry.getTitleID();<NEW_LINE>if (titleID == nu...
ds_map = DataSourceResolver.exportDataSource(ds);
934,146
public static void storeSettingsToPom(FileObject projectFile, final String name, final String value) {<NEW_LINE>final ModelOperation<POMModel> operation = new ModelOperation<POMModel>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void performOperation(POMModel model) {<NEW_LINE>Properties props = model.getProject()....
pom = projectFile.getFileObject("pom.xml");
1,020,376
public Info findSplit(Relation<? extends NumberVector> relation, int dims, ArrayModifiableDBIDs sorted, DBIDArrayMIter iter, int left, int right, SortDBIDsBySingleDimension comp) {<NEW_LINE>double[] minmax = Util.minmaxRange(dims, relation, iter, left, right);<NEW_LINE>final int dim = Util.argmaxdiff(minmax);<NEW_LINE>...
r)).doubleValue(dim);
132,581
public DescribeReplicationTaskIndividualAssessmentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeReplicationTaskIndividualAssessmentsResult describeReplicationTaskIndividualAssessmentsResult = new DescribeReplicationTaskIndividualAssessmentsResult();<NEW_LINE>int originalDepth =...
)).unmarshall(context));
1,017,767
private static void addCustomDefs(Project project) throws BuildException, IOException {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>if (AntBridge.getInterface().isAnt16()) {<NEW_LINE>Map<String, ClassLoader> antlibLoaders = AntBridge.getCustomDefClassLoaders();<NEW_LINE>for (Map.Entry<String, ClassLoader...
ClassLoader l = entry.getValue();
1,508,908
@Path("backfill-secrets/{cursor_start}/{max_rows}")<NEW_LINE>@POST<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>@Produces(APPLICATION_JSON)<NEW_LINE>public void backfillSecretsRowHmac(@PathParam("cursor_start") Long cursorStart, @PathParam("max_rows") Long maxRows) {<NEW_LINE>logger.info("backfill-secrets: processing ...
(1000).fetchInto(SECRETS);
691,062
public void onQuotedTweet(User source, User target, Status status) {<NEW_LINE>if (!thisInstanceOn || isUserBlocked(source.getId())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!source.getScreenName().equals(settings.myScreenName) && target.getScreenName().equals(settings.myScreenName)) {<NEW_LINE>AppSettings settings = ...
sharedPreferences.getInt("new_quotes", 0);
381,777
private I_EDI_DesadvLine_Pack generateDesadvLineSSCC(final I_EDI_DesadvLine desadvLine, final LUQtys luQtys) {<NEW_LINE>//<NEW_LINE>// Generate the actual SSCC18 number and update the SSCC record<NEW_LINE>final SSCC18 sscc18 = sscc18CodeBL.generate(OrgId.ofRepoId(desadvLine.getAD_Org_ID()));<NEW_LINE>// humanReadable=f...
setMovementQty(luQtys.getQtyCUsPerLU());
1,366,577
public void executeOnPooledThread(final AnActionEvent e) {<NEW_LINE>Project project = e.getProject();<NEW_LINE>BuckBuildManager buildManager = BuckBuildManager.getInstance(project);<NEW_LINE>String target = buildManager.getCurrentSavedTarget(project);<NEW_LINE>BuckModule buckModule = project.getComponent(BuckModule.cla...
command().addParameter(target);
1,696,732
public Object call(PropertyExpansionContext context, String command, Object... arguments) throws ClientStatusException, ServerStatusException {<NEW_LINE>this.context = context;<NEW_LINE>if (!connected) {<NEW_LINE>String message = "AMF connection is not connected";<NEW_LINE>ClientStatusException cse = new ClientStatusEx...
= new ActionMessage(getObjectEncoding());
1,287,570
private void check(APIRecoverVmInstanceMsg msg, Map<String, Quota.QuotaPair> pairs) {<NEW_LINE>String currentAccountUuid = msg.getSession().getAccountUuid();<NEW_LINE>String resourceTargetOwnerAccountUuid = msg<MASK><NEW_LINE>long totalVmNumQuota = pairs.get(VmQuotaConstant.VM_TOTAL_NUM).getValue();<NEW_LINE>VmQuotaUti...
.getSession().getAccountUuid();
825,149
public void alterColumn(DdlWrite writer, AlterColumn alter) {<NEW_LINE>String tableName = alter.getTableName();<NEW_LINE><MASK><NEW_LINE>if (alter.getType() == null && alter.isNotnull() == null) {<NEW_LINE>// No type change or notNull change -> handle default value change<NEW_LINE>if (hasValue(alter.getDefaultValue()))...
String columnName = alter.getColumnName();
937,455
boolean handledWithCookie(IExtendedRequest req, SsoRequest samlRequest) {<NEW_LINE>if (RequestUtil.isUnprocessedAcsCookiePresent(respSsoSamlServiceRef, req, samlRequest)) {<NEW_LINE>// Let check the if the acs cookie is in our cache<NEW_LINE>String spProviderId = samlRequest.getProviderName();<NEW_LINE>Cache cache = Re...
RequestUtil.getAcsCookieValueFromRequest(req, spProviderId);
430,961
private Optional<StyleInfo> determineStyle() {<NEW_LINE>if (declaringType().isPresent()) {<NEW_LINE>DeclaringType type = declaringType().get();<NEW_LINE>Optional<DeclaringType> enclosing = type.enclosingOf();<NEW_LINE>if (enclosing.isPresent()) {<NEW_LINE>Optional<StyleInfo> enclosingStyle = enclosing.get().style();<NE...
> style = type.style();
857,618
/* Would we want this? Seems redundant, as all uses of the imported<NEW_LINE>* package should already be reported.<NEW_LINE>* Also, how do we get an element for the import?<NEW_LINE>public Void visitImport(ImportTree node, Void p) {<NEW_LINE>checkReportUse(node, elem);<NEW_LINE>}<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE...
, ElementUtils.getQualifiedName(sup));
1,661,545
public PropertyFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PropertyFilter propertyFilter = new PropertyFilter();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g...
int originalDepth = context.getCurrentDepth();
478,103
public double findHeightToViewBounds(final Mbr mbr, final Point2d pos) {<NEW_LINE>// We'll experiment on a copy of the map view<NEW_LINE>final GlobeView newGlobeView = globeView.clone();<NEW_LINE>newGlobeView.setLoc(new Point3d(pos.getX(), pos<MASK><NEW_LINE>double minHeight = newGlobeView.minHeightAboveSurface();<NEW_...
.getY(), 2.0));
936,443
private static void recourseFonts(PdfDictionary page, IntHashtable hits, ArrayList<Object[]> fonts, int level) {<NEW_LINE>++level;<NEW_LINE>if (level > 50) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PdfDictionary resources = page.getAsDict(PdfName.RESOURCES);<NEW_LINE>if (resources == null) {<NEW_LINE>return;<NEW_LINE>}<NE...
PRIndirectReference) ft, hits, fonts);
604,776
public static DescribeStorageCapacityUnitsResponse unmarshall(DescribeStorageCapacityUnitsResponse describeStorageCapacityUnitsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeStorageCapacityUnitsResponse.setRequestId(_ctx.stringValue("DescribeStorageCapacityUnitsResponse.RequestId"));<NEW_LINE>describeStorageCap...
= new ArrayList<Tag>();
445,598
public void paintComponent(Graphics g) {<NEW_LINE>if (g == null)<NEW_LINE>return;<NEW_LINE>Sketch sketch = editor.getSketch();<NEW_LINE>// possible?<NEW_LINE>if (sketch == null)<NEW_LINE>return;<NEW_LINE>// need to set this each time through<NEW_LINE>g.setFont(font);<NEW_LINE>if (fontAscent == 0) {<NEW_LINE>fontAscent ...
g2 = Toolkit.prepareGraphics(g);
1,411,980
protected JComponent createMainComponent(Disposable uiDisposable) {<NEW_LINE>JPanel panel = <MASK><NEW_LINE>GridBag gb = new GridBag().setDefaultInsets(JBUI.insets(0, 0, DEFAULT_VGAP, DEFAULT_HGAP)).setDefaultWeightX(1).setDefaultFill(GridBagConstraints.HORIZONTAL);<NEW_LINE>panel.add(createMappingsTable(), gb.nextLine...
new JPanel(new GridBagLayout());
272,209
private void cleanProjects(Session session) {<NEW_LINE>LOGGER.trace("Project cleaning");<NEW_LINE>var alias = "pr";<NEW_LINE>var deleteProjectsQueryString = new StringBuilder("FROM ").append(ProjectEntity.class.getSimpleName()).append(" ").append(alias).append(" WHERE ").append(alias).append(".").append(ModelDBConstant...
var transaction = session.beginTransaction();
151,513
private void onSolution(Solver solver, MPSParser parser) {<NEW_LINE>if (solver.getObjectiveManager().isOptimization()) {<NEW_LINE>if (level.is(Level.RESANA))<NEW_LINE>solver.log().printf(java.util.Locale.US, "o %d %.1f\n", solver.getObjectiveManager().getBestSolutionValue().intValue(), solver.getTimeCount());<NEW_LINE>...
append(parser.printSolution());
432,953
protected void prepare() {<NEW_LINE>ProcessInfoParameter[] para = getParameter();<NEW_LINE>for (int i = 0; i < para.length; i++) {<NEW_LINE>String name = para[i].getParameterName();<NEW_LINE>if (para[i].getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals("AD_Org_ID"))<NEW_LINE>p_AD_Org_ID = ((BigDecimal) p...
getParameter()).intValue();
313,654
protected void openInt(UsbDeviceConnection connection) throws IOException {<NEW_LINE>if (!connection.claimInterface(mDevice.getInterface(mPortNumber), true)) {<NEW_LINE>throw new IOException("Could not claim interface " + mPortNumber);<NEW_LINE>}<NEW_LINE>if (mDevice.getInterface(mPortNumber).getEndpointCount() < 2) {<...
|| mDevice.getInterfaceCount() > 1;
1,319,351
private void printErr(Throwable source) {<NEW_LINE>Throwable cause = withoutReflection(source);<NEW_LINE>StackTraceElement[] stackTrace = cause.getStackTrace();<NEW_LINE>int truncateAt = stackTrace.length;<NEW_LINE>for (int i = 0; i < stackTrace.length; i++) {<NEW_LINE>StackTraceElement it = stackTrace[i];<NEW_LINE>if ...
0, cleanstack, 0, truncateAt);
803,722
public static List<String> extractGivenNames(FhirContext theFhirContext, IBase theBase) {<NEW_LINE>switch(theFhirContext.getVersion().getVersion()) {<NEW_LINE>case R4:<NEW_LINE>HumanName humanNameR4 = (HumanName) theBase;<NEW_LINE>return humanNameR4.getGiven().stream().map(PrimitiveType::getValueAsString).filter(s -> !...
collect(Collectors.toList());
1,773,752
protected void calculateOffsets() {<NEW_LINE>float visibleWidth = getWidth();<NEW_LINE>Drawable background = getBackgroundDrawable();<NEW_LINE>if (background != null)<NEW_LINE>visibleWidth -= background.getLeftWidth() + background.getRightWidth();<NEW_LINE>int glyphCount = glyphPositions.size;<NEW_LINE>float[] glyphPos...
glyphCount - 1, cursor + 1);
454,097
public void tighten() {<NEW_LINE>RealInterval res;<NEW_LINE>switch(op) {<NEW_LINE>case ADD:<NEW_LINE>res = RealUtils.add(e1, e2);<NEW_LINE>break;<NEW_LINE>case SUB:<NEW_LINE>res = RealUtils.sub(e1, e2);<NEW_LINE>break;<NEW_LINE>case MUL:<NEW_LINE>res = RealUtils.mul(e1, e2);<NEW_LINE>break;<NEW_LINE>case DIV:<NEW_LINE>...
set(res.getUB());
326,347
public List<SearchFacetRange> readSearchFacetRangesForSearchFacet(SearchFacet searchFacet) {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<SearchFacetRange> criteria = builder.createQuery(SearchFacetRange.class);<NEW_LINE>Root<SearchFacetRangeImpl> ranges = criteria.from(SearchFacet...
.get("searchFacet"), searchFacet);
218,648
public String downDescription() {<NEW_LINE>StringBuilder description = new StringBuilder();<NEW_LINE>Set<HostName> suspended = servicesNotInGroup.stream().map(ServiceInstance::hostName).filter(hostName -> hostStatus(hostName).isSuspended()).collect(Collectors.toSet());<NEW_LINE>if (suspended.size() > 0) {<NEW_LINE>desc...
= downElsewhere.size() + missingServices;