idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,325,267
public synchronized void handleEvent(final Event event) {<NEW_LINE>if (event.getType().isFlowEventType()) {<NEW_LINE>final FlowRunner flowRunner = (FlowRunner) event.getRunner();<NEW_LINE>final <MASK><NEW_LINE>if (event.getType() == EventType.FLOW_STARTED) {<NEW_LINE>// Estimate flow wait time duration including time t...
ExecutableFlow flow = flowRunner.getExecutableFlow();
753,428
public void transformJson(HistoryJobEntity job, ObjectNode historicalData, CommandContext commandContext) {<NEW_LINE>HistoricCaseInstanceEntityManager historicCaseInstanceEntityManager = cmmnEngineConfiguration.getHistoricCaseInstanceEntityManager();<NEW_LINE>String id = getStringFromJson(historicalData, "id");<NEW_LIN...
(historicalData, CmmnAsyncHistoryConstants.FIELD_NAME));
1,678,017
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@name('variables') @public create variable int varhour;\n" + "@public create variable int varmin;\n" + "@public create variable int varsec;\n" + "@public create variable int varmsec;\n";<NEW_LINE>env...
runtimeSetVariable("variables", "varmsec", 4);
1,337,502
public boolean eventOccurred(UISWTViewEvent event) {<NEW_LINE>switch(event.getType()) {<NEW_LINE>case UISWTViewEvent.TYPE_CREATE:<NEW_LINE>swtView = event.getView();<NEW_LINE>swtView.setTitle(MessageText.getString(getData()));<NEW_LINE>swtView.setToolBarListener(this);<NEW_LINE>break;<NEW_LINE>case UISWTViewEvent.TYPE_...
Messages.updateLanguageForControl(getComposite());
1,834,266
protected Event terminateInstance(InstanceGroup group, String inst, ChaosType chaosType) {<NEW_LINE>Validate.notNull(group);<NEW_LINE>Validate.notEmpty(inst);<NEW_LINE>String prop = NS + "leashed";<NEW_LINE>if (cfg.getBoolOrElse(prop, true)) {<NEW_LINE>LOGGER.info("leashed ChaosMonkey prevented from killing {} from gro...
EventTypes.CHAOS_TERMINATION_SKIPPED, group, inst);
1,321,012
public Template saveTemplate(final Template template, final Host host, final User user, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException {<NEW_LINE>if (Template.SYSTEM_TEMPLATE.equals(template.getIdentifier())) {<NEW_LINE>Logger.error(this, "System template can not be modified");<NEW_LI...
setOwner(user.getUserId());
1,078,566
protected void acceptTracked(final AirbyteMessage airbyteMessage) {<NEW_LINE>if (airbyteMessage.getType() == AirbyteMessage.Type.STATE) {<NEW_LINE>lastStateMessage = airbyteMessage;<NEW_LINE>} else if (airbyteMessage.getType() == AirbyteMessage.Type.RECORD) {<NEW_LINE>final AirbyteRecordMessage recordMessage = airbyteM...
"Unexpected message: " + airbyteMessage.getType());
1,735,325
public VoidResult abortMultipartUpload(AbortMultipartUploadRequest abortMultipartUploadRequest) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(abortMultipartUploadRequest, "abortMultipartUploadRequest");<NEW_LINE>String key = abortMultipartUploadRequest.getKey();<NEW_LINE>String bucketName = abo...
parameters.put(UPLOAD_ID, uploadId);
1,051,974
public synchronized void putAll(SemisparseByteArray from) {<NEW_LINE>byte[] temp = new byte[4096];<NEW_LINE>for (Range<UnsignedLong> range : from.defined.asRanges()) {<NEW_LINE>long length;<NEW_LINE>long lower = range.lowerEndpoint().longValue();<NEW_LINE>if (range.upperBoundType() == BoundType.CLOSED) {<NEW_LINE>asser...
i, temp, 0, l);
468,739
private boolean isFontChanged(String language, AttributeSet currentAS, AttributeSet savedAS) {<NEW_LINE>String name = (String) getValue(language, currentAS, StyleConstants.FontFamily);<NEW_LINE>assert (name != null);<NEW_LINE>Integer size = (Integer) getValue(language, currentAS, StyleConstants.FontSize);<NEW_LINE>asse...
language, savedAS, StyleConstants.Italic);
461,753
static List<RangeFieldMapper.Range> decodeRanges(BytesRef encodedRanges, RangeType rangeType, TriFunction<byte[], Integer, Integer, Object> decodeBytes) throws IOException {<NEW_LINE>RangeType.LengthType lengthType = rangeType.lengthType;<NEW_LINE>BytesStreamInput in = new BytesStreamInput(encodedRanges.bytes, encodedR...
lengthType.readLength(bytes, offset);
964,590
// Submit a group of tasks to timed invokeAny, where all tasks block and exceed the timeout.<NEW_LINE>// Verify that invokeAny raises TimeoutException.<NEW_LINE>@Test<NEW_LINE>public void testInvokeAnyTimedAllTimeout() throws Exception {<NEW_LINE>PolicyExecutor executor = provider.create("testInvokeAnyTimedAllTimeout")...
, blocker, TIMEOUT_NS * 2));
646,766
public static void initRemixer(Application app) {<NEW_LINE>if (initialized) {<NEW_LINE>// Guarantee that this is just called once.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>initialized = true;<NEW_LINE>if (app != null) {<NEW_LINE>app.registerActivityLifecycleCallbacks(RemixerActivityLifecycleCallbacks.getInstance());<NEW_LI...
Remixer.registerDataType(DataType.NUMBER);
1,374,912
public Set<ConfigOption<?>> optionalOptions() {<NEW_LINE>final Set<ConfigOption<?>> <MASK><NEW_LINE>options.add(FactoryUtil.FORMAT);<NEW_LINE>options.add(KEY_FORMAT);<NEW_LINE>options.add(KEY_FIELDS);<NEW_LINE>options.add(KEY_FIELDS_PREFIX);<NEW_LINE>options.add(VALUE_FORMAT);<NEW_LINE>options.add(VALUE_FIELDS_INCLUDE)...
options = new HashSet<>();
456,750
public String cleanup(@ShellOption(value = { "", "--id" }, help = "the task execution id", defaultValue = ShellOption.NULL) Long id, @ShellOption(help = "all task execution IDs", defaultValue = "false") boolean all, @ShellOption(help = "include non-completed task executions", defaultValue = "false") boolean includeNonC...
(completedOnly) ? "completed " : "");
1,532,333
private static Node serializeBuildInfo(PluginContext context) {<NEW_LINE>BuildInfo info = new BuildInfo();<NEW_LINE>info.setProjectionName(context.getProjectionName());<NEW_LINE>info.setProjection(context.getProjection().orElse(null));<NEW_LINE>info.setValidationEvents(context.getEvents());<NEW_LINE>info.setTraitNames(...
(Collectors.toList()));
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 ...
state.with(occupiedProp, false);
354,299
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String name) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client...
error(new IllegalArgumentException("Parameter name is required and cannot be null."));
283,149
public void process(Action action, Payload payload, Model model) {<NEW_LINE>switch(action) {<NEW_LINE>case TRANSACTION_RULE:<NEW_LINE>Map<String, Rule> ruleMap = m_configManager.getMonitorRules().getRules();<NEW_LINE>rulesAvailableBuild(ruleMap);<NEW_LINE>model.setRules(ruleMap.values());<NEW_LINE>break;<NEW_LINE>case ...
getRules().values());
649,110
private static Matrix apply(BlasFloatMatrix mat, float alpha, IntFloatVector v1, IntDummyVector v2) {<NEW_LINE>float[] data = mat.getData();<NEW_LINE>int m = mat.getNumRows(), n = mat.getNumCols();<NEW_LINE>assert (m == v1.getDim() && n == v2.getDim());<NEW_LINE>if (v1.isDense()) {<NEW_LINE>float[] v1Values = v1.getSto...
int i = entry.getIntKey();
272,827
public SuccessResponseEntity addContainer(@AuditParam("namespace") @PathVariable String namespace, AddContainerModel addContainerModel, HttpServletRequest request) throws SaturnJobConsoleException {<NEW_LINE>if (addContainerModel.getContainerToken() == null) {<NEW_LINE>throw new SaturnJobConsoleException("Please input ...
substring("https://".length());
1,804,128
protected List<DatabaseParamValue> convertDatabaseParamValue(Long dbId) {<NEW_LINE>DatabaseParamValue[] paramValues = new DatabaseParamValue[7];<NEW_LINE>for (int i = 0; i < paramValues.length; i++) {<NEW_LINE>paramValues[i] = new DatabaseParamValue(dbId);<NEW_LINE>}<NEW_LINE>paramValues[0].setParamKey("host").setParam...
setParamValue(prop.getDataBaseName());
323,834
private static Optional<IExpression<?>> buildExpression(final IExpressionFactory expressionFactory, final String expressionStr, final Class<?> fieldValueClass) {<NEW_LINE>// Hardcoded: NULL<NEW_LINE>if (HARDCODED_DEFAUL_EXPRESSION_STRING_NULL.equalsIgnoreCase(expressionStr)) {<NEW_LINE>return Optional.empty();<NEW_LINE...
compile(expressionStrNorm, BooleanStringExpression.class);
287,893
public void enqueue(TaskMessage message, Channel channel) {<NEW_LINE>// lots of messages may be lost when deserialize queue hasn't finished init operation<NEW_LINE>while (!bstartRec) {<NEW_LINE>LOG.info("check whether deserialize queues have already been created");<NEW_LINE>boolean isFinishInit = true;<NEW_LINE>for (In...
(message.message()));
1,210,737
public Object parse(String pathVal) throws Exception {<NEW_LINE>String parsed = pathVal;<NEW_LINE>if (!StringUtil.hasText(pathVal)) {<NEW_LINE>throw new IllegalArgumentException("Path requires a value staring with '/'");<NEW_LINE>} else {<NEW_LINE>URI uri = URI.create(pathVal);<NEW_LINE>if (uri.getScheme() != null) {<N...
"Path contains authority: " + uri.getAuthority());
24,694
public void marshall(NFSFileShareInfo nFSFileShareInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (nFSFileShareInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(nFSFileShareInfo.getNFSFileShareDefa...
nFSFileShareInfo.getRole(), ROLE_BINDING);
131,602
protected XFormDialog buildDialog(Interface modelItem) {<NEW_LINE>XFormDialogBuilder builder = XFormFactory.createDialogBuilder(messages.get("Dialog.Title"));<NEW_LINE>XForm mainForm = builder.createForm(messages.get("Dialog.Basic.Label"));<NEW_LINE>addWSDLFields(mainForm, modelItem);<NEW_LINE>mainForm.addTextField(OUT...
), XForm.FieldType.JAVA_CLASS);
611,662
public static void interleavedToBuffered(InterleavedF32 src, DataBufferInt buffer, WritableRaster dst) {<NEW_LINE>if (src.getNumBands() != dst.getNumBands())<NEW_LINE>throw new IllegalArgumentException("Unequal number of bands src = " + src.getNumBands() + " dst = " + dst.getNumBands());<NEW_LINE>final int[] dstData = ...
) src.data[indexSrc++];
1,462,659
private static HubIOStream makeHub2014Stream(String config) {<NEW_LINE>// Get rid of the /hub2/ part<NEW_LINE>config = config.substring(6);<NEW_LINE>String user = null;<NEW_LINE>String pass = null;<NEW_LINE>// poll time in milliseconds<NEW_LINE>int pollTime = 1000;<NEW_LINE>// split off options at the end<NEW_LINE>Stri...
[1].split(":");
1,852,362
private static PointDouble calcOtherCoordinate(PointDouble stickablePoint, StickLine oldLine, StickLine newLine, int diffX, int diffY) {<NEW_LINE>PointDouble stickablePointWithDiff = new PointDouble(stickablePoint.getX() + diffX, stickablePoint.getY() + diffY);<NEW_LINE>// if the line length has not changed, the point ...
) - stickablePoint.getY());
100,477
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>String permission = Manifest.permission.WRITE_EXTERNAL_STORAGE;<NEW_LINE>if (ActivityCompat.checkSelfPermission(MainActivity.this, permission) != PackageManager.PER...
findViewById(R.id.seek);
1,668,116
public FLClientStatus updateModel() {<NEW_LINE>String url = Common.generateUrl(flParameter.isUseElb(), flParameter.getServerNum(), flParameter.getDomainName());<NEW_LINE>UpdateModel updateModelBuf = UpdateModel.getInstance();<NEW_LINE>byte[] updateModelBuffer = updateModelBuf.getRequestUpdateFLJob(iteration, secureProt...
Common.endTime(start, "single updateModel");
1,053,132
public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>final XmlDBNode doc = (XmlDBNode) args[0];<NEW_LINE>final XmlNodeReadOnlyTrx rtx = doc.getTrx();<NEW_LINE>final XmlIndexController controller = rtx.getResourceManager().getRtxIndexController(rtx.getRevisionNumber());<NEW_LINE>if (...
]).stringValue()));
692,518
private EditorAdaptor activateOrOpenEditorForMark(EditorAdaptor editorAdaptor) throws CommandExecutionException {<NEW_LINE>final IWorkbench workbench = PlatformUI.getWorkbench();<NEW_LINE>final IWorkbenchPage page = workbench.getActiveWorkbenchWindow().getActivePage();<NEW_LINE>// Try to open the file from the marker r...
IResource markedResource = marker.getResource();
177,336
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.knowledgeId, convLabelName("Knowledge Id"));<NEW_LI...
ValidatorFactory.getInstance(Validator.REQUIRED);
1,297,322
private SlimAssertion callFunctionInRow(ScenarioTable scenario, String functionName, int row) throws SyntaxError {<NEW_LINE>int col = funcStore.getColumnNumber(functionName);<NEW_LINE>String <MASK><NEW_LINE>if (!scenario.getOutputs().contains(name)) {<NEW_LINE>throw new SyntaxError(String.format("The argument %s is not...
name = Disgracer.disgraceMethodName(functionName);
815,614
public final // JPA2.g:518:1: parameter_name : WORD ( '.' WORD )* ;<NEW_LINE>JPA2Parser.parameter_name_return parameter_name() throws RecognitionException {<NEW_LINE>JPA2Parser.parameter_name_return retval = new JPA2Parser.parameter_name_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_...
Object) adaptor.create(char_literal613);
413,715
final UpdateSlotResult executeUpdateSlot(UpdateSlotRequest updateSlotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSlotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
62,370
public void startLoadJob(JobReference jobRef, JobConfigurationLoad loadConfig) throws IOException {<NEW_LINE>synchronized (allJobs) {<NEW_LINE>verifyUniqueJobId(jobRef.getJobId());<NEW_LINE>Job job = new Job();<NEW_LINE>job.setJobReference(jobRef);<NEW_LINE>job.setConfiguration(new JobConfiguration().setLoad(loadConfig...
> loadFiles = ImmutableList.builder();
1,006,348
public static void cartPole() throws IOException {<NEW_LINE>// record the training data in rl4j-data in a new folder (save)<NEW_LINE>DataManager manager = new DataManager(true);<NEW_LINE>// define the mdp from gym (name, render)<NEW_LINE>GymEnv<Box, Integer, DiscreteSpace> mdp = null;<NEW_LINE>try {<NEW_LINE>mdp = new ...
mdp, CARTPOLE_NET, CARTPOLE_QL, manager);
1,180,858
private boolean saveSelection() {<NEW_LINE>MAttributeSet as = m_masi.getMAttributeSet();<NEW_LINE>if (as == null)<NEW_LINE>return true;<NEW_LINE>//<NEW_LINE>String mandatory = "";<NEW_LINE>log.debug(<MASK><NEW_LINE>String enteredSerNo = fieldSerNo.getText();<NEW_LINE>String oldSerNo = m_masi.getSerNo();<NEW_LINE>if (en...
"SerNo=" + fieldSerNo.getText());
1,557,400
public void render(ModelNode model, TextReportBuilder output) {<NEW_LINE>if (model.isHidden() && !showHidden) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StyledTextOutput styledTextoutput = output.getOutput();<NEW_LINE>if (!model.getPath().equals(ModelPath.ROOT)) {<NEW_LINE>printNodeName(model, styledTextoutput);<NEW_LINE>m...
links = new TreeMap<>();
1,057,688
private Hover createHoverWithContent(List<Tuple2<LiveRequestMapping, SpringProcessLiveData>> mappingMethods) throws Exception {<NEW_LINE>StringBuilder contentVal = new StringBuilder();<NEW_LINE>for (int i = 0; i < mappingMethods.size(); i++) {<NEW_LINE>Tuple2<LiveRequestMapping, SpringProcessLiveData> mappingMethod = m...
LiveHoverUtils.niceAppName(liveData)));
1,599,044
public Tenant updateTenantOnboarding(UUID tenantId, String onboardingStatus) {<NEW_LINE>long startTimeMillis = System.currentTimeMillis();<NEW_LINE>LOGGER.info("TenantServiceDAL::updateTenantOnboarding {} {}", tenantId.toString(), onboardingStatus);<NEW_LINE>Tenant updated = new Tenant();<NEW_LINE>updated.setId(tenantI...
).format(DateTimeFormatter.ISO_LOCAL_DATE_TIME);
517,283
public static void main(final String[] args) {<NEW_LINE>checkUsage(args);<NEW_LINE>final ToggleState toggleState = ToggleState.valueOf(args[0].toUpperCase());<NEW_LINE>final File cncFile = CommonContext.newDefaultCncFile();<NEW_LINE>System.out.println("Command `n Control file " + cncFile);<NEW_LINE>final CountersReader...
+ ToggleState.get(controlToggle));
839,741
public void marshall(UpdateMatchmakingConfigurationRequest updateMatchmakingConfigurationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateMatchmakingConfigurationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>p...
updateMatchmakingConfigurationRequest.getNotificationTarget(), NOTIFICATIONTARGET_BINDING);
1,668,151
public int[] findOrigin() throws BadLocationException, InterruptedException {<NEW_LINE>((AbstractDocument) context.getDocument()).readLock();<NEW_LINE>try {<NEW_LINE>int[] origin = BracesMatcherSupport.findChar(context.getDocument(), getSearchOffset(), context.getLimitOffset(), PAIRS);<NEW_LINE>if (origin != null) {<NE...
getDocument()).readUnlock();
1,065,292
protected static void extractEnumerations(CoreMap s, List<Mention> mentions, Set<IntPair> mentionSpanSet, Set<IntPair> namedEntitySpanSet) {<NEW_LINE>List<CoreLabel> sent = s.get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>Tree tree = s.get(TreeCoreAnnotations.TreeAnnotation.class);<NEW_LINE>SemanticGraph basicDe...
get(SemanticGraphCoreAnnotations.BasicDependenciesAnnotation.class);
1,334,447
private int computeRigidPoints(DMatrix leftPoint, DMatrix rightView, int observationIndex, int viewIndex, SceneStructureCommon.Camera camera, int cameraParamStartIndex) {<NEW_LINE>SceneObservations.View obsView = observations.viewsRigid.get(viewIndex);<NEW_LINE>SceneStructureMetric.View view = structure.views.data[view...
pointGradY, false, null, null);
984,731
RequestOptions buildRequestOptions() throws URISyntaxException, MalformedURLException {<NEW_LINE>int port;<NEW_LINE>String host;<NEW_LINE>String protocol;<NEW_LINE>Boolean ssl;<NEW_LINE>String uri;<NEW_LINE>if (absoluteUri != null) {<NEW_LINE>uri = absoluteUri.expandToString(templateParams(), client.options.getTemplate...
requestOptions.setHost(this.virtualHost);
1,425,196
public static String[] delimitedListToStringArray(String str, String delimiter, String charsToDelete) {<NEW_LINE>if (str == null) {<NEW_LINE>return EMPTY_ARRAY;<NEW_LINE>}<NEW_LINE>if (delimiter == null) {<NEW_LINE>return new String[] { str };<NEW_LINE>}<NEW_LINE>List<String> result = new ArrayList<>();<NEW_LINE>if (""...
substring(pos), charsToDelete));
965,262
public void onAttributeValueChanged(@NonNull final IAttributeValueContext attributeValueContext, @NonNull final IAttributeStorage storage, IAttributeValue attributeValue, Object valueOld) {<NEW_LINE>final AbstractHUAttributeStorage huAttributeStorage = AbstractHUAttributeStorage.castOrNull(storage);<NEW_LINE>final bool...
final int warnInterval = getMinimalWarnIntervalInDays(huAttributeStorage);
335,650
// generateNotification.<NEW_LINE>@WrapInTransaction<NEW_LINE>private void saveNotification(final NotificationDTO dto, final NotificationData data, final Visibility visibility, final String visibilityId, final NotificationLevel level, final String userId, final Locale locale) throws DotSecurityException, DotDataExcepti...
.getTimeSent(), locale));
1,186,153
public boolean visit(IfStatement node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE>// statement<NEW_LINE>int pos = rewriteRequiredNode(node, IfStatement.EXPRESSION_PROPERTY);<NEW_LINE>RewriteEvent thenEvent = getEvent(node, IfStatement.THEN_STATEMENT_P...
indent, this.formatter.ELSE_AFTER_STATEMENT);
1,452,455
public void registerMap() {<NEW_LINE>// Entity ID<NEW_LINE>map(Type.INT);<NEW_LINE>// Hardcore<NEW_LINE>map(Type.BOOLEAN);<NEW_LINE>// Gamemode<NEW_LINE>map(Type.UNSIGNED_BYTE);<NEW_LINE>// Previous Gamemode<NEW_LINE>map(Type.BYTE);<NEW_LINE>// World List<NEW_LINE>map(Type.STRING_ARRAY);<NEW_LINE>// Registry<NEW_LINE>m...
, 0).get("minecraft:dimension_type");
1,209,370
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_splash);<NEW_LINE>final PathView pathView = findViewById(R.id.pathView);<NEW_LINE>pathView.getPathAnimator().delay(1000).duration(1000).interpolator(new AccelerateDecelerateInterpo...
mSharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);
1,688,222
public GetPhoneNumberOrderResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetPhoneNumberOrderResult getPhoneNumberOrderResult = new GetPhoneNumberOrderResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
().unmarshall(context));
310,430
public PageResult<FieldVO> query(FieldQuery query) {<NEW_LINE>PageHelper.startPage(query.getPageNo(), query.getPageSize());<NEW_LINE>Example example = new Example(FieldPO.class);<NEW_LINE>Example.Criteria criteria = example.createCriteria();<NEW_LINE>criteria.andEqualTo("modelId", query.getModelId());<NEW_LINE>if (!Str...
page.getTotal(), listVO);
858,353
public void dumpMessageDroppingStatistic() {<NEW_LINE>messageDroppingLogTime.set(System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(MESSAGE_DROPPING_LOG_INTERVAL_MS));<NEW_LINE>TransmissionManipulation drops = this.forward;<NEW_LINE>if (drops != null) {<NEW_LINE>drops.dumpStatistic();<NEW_LINE>}<NEW_LINE>drops = this.ba...
"timed out NAT entries {} (overall {}).", current - lastTimedoutEntriesCounter, lastTimedoutEntriesCounter);
59,622
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<TagResourceRequest> request = null;<NEW_LINE>Respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,709,189
public static </*<NEW_LINE>public static <A, B> TreeMap<A, B> excludeConstructive(final TreeMap<A, B> map, final Set<A> set) {<NEW_LINE>if (map == null) return null;<NEW_LINE>if (set == null) return map;<NEW_LINE>if (map.isEmpty() || set.isEmpty()) return map;<NEW_LINE>assert !(set instanceof TreeSet) || map.comparator...
>(map.comparator());
395,636
protected void commonAssignmentCheck(AnnotatedTypeMirror varType, AnnotatedTypeMirror valueType, Tree valueTree, @CompilerMessageKey String errorKey, Object... extraArgs) {<NEW_LINE><MASK><NEW_LINE>AnnotatedTypeMirror widenedValueType = atypeFactory.getWidenedType(valueType, varType);<NEW_LINE>boolean success = atypeFa...
commonAssignmentCheckStartDiagnostic(varType, valueType, valueTree);
1,024,538
public static String listToJSON(final Collection<? extends OIdentifiable> iRecords, final String iFormat) {<NEW_LINE>try {<NEW_LINE>final StringWriter buffer = new StringWriter();<NEW_LINE>final OJSONWriter json = new OJSONWriter(buffer);<NEW_LINE>// WRITE RECORDS<NEW_LINE>json.beginCollection(0, false, null);<NEW_LINE...
json.endCollection(0, false);
1,159,186
final UpdateEnvironmentTemplateResult executeUpdateEnvironmentTemplate(UpdateEnvironmentTemplateRequest updateEnvironmentTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEnvironmentTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,675,750
public static Optional<String> showOldConfiguration(List<String> paths) {<NEW_LINE>Alert alert = new WindowModalAlert(AlertType.INFORMATION);<NEW_LINE>DialogPane dialogPane = alert.getDialogPane();<NEW_LINE>ListView listView = new ListView();<NEW_LINE>listView<MASK><NEW_LINE>ObservableList items = listView.getItems();<...
.getStyleClass().clear();
3,463
public <T> Set<ConstraintViolation<T>> validateParameters(@NonNull T object, @NonNull ExecutableMethod method, @NonNull Object[] parameterValues, @Nullable Class<?>... groups) {<NEW_LINE>ArgumentUtils.requireNonNull("parameterValues", parameterValues);<NEW_LINE>ArgumentUtils.requireNonNull("object", object);<NEW_LINE>A...
] arguments = method.getArguments();
1,282,626
public IBaseParameters triggerSubscription(List<IPrimitiveType<String>> theResourceIds, List<IPrimitiveType<String>> theSearchUrls, @IdParam IIdType theSubscriptionId) {<NEW_LINE>if (myDaoConfig.getSupportedSubscriptionTypes().isEmpty()) {<NEW_LINE>throw new PreconditionFailedException(Msg.code(22) + "Subscription proc...
setSubscriptionId(theSubscriptionId.getIdPart());
1,610,444
public static void main(String[] args) {<NEW_LINE>int size, iterations;<NEW_LINE>size = PB_N;<NEW_LINE>iterations = ITERATIONS;<NEW_LINE>if (args.length > 1) {<NEW_LINE>size = Integer.parseInt(args[0]);<NEW_LINE>iterations = Integer.parseInt(args[1]);<NEW_LINE>}<NEW_LINE>float[] a = initArrayA(size);<NEW_LINE>float[] a...
(end - start) + " ns \n");
1,813,601
public EvolutionStreamable<G, N> apply(final EvolutionResult<G, N> result) {<NEW_LINE>if (result == null || _engine == null) {<NEW_LINE>_engine = _builder.<MASK><NEW_LINE>_narrowing = false;<NEW_LINE>} else {<NEW_LINE>final DoubleMomentStatistics stat = new DoubleMomentStatistics();<NEW_LINE>result.population().forEach...
alterers(_enlarge).build();
1,320,995
public DiffRequest process(@Nonnull UserDataHolder context, @Nonnull ProgressIndicator indicator) throws DiffRequestProducerException, ProcessCanceledException {<NEW_LINE>if (!isNewFile && file.getFileType() == UnknownFileType.INSTANCE) {<NEW_LINE>return new UnknownFileTypeDiffRequest(file, getName());<NEW_LINE>}<NEW_L...
change = shelvedChange.getChange(project);
370,444
public Void process(String input, Context context) {<NEW_LINE>String publishTopic = (String) context.getUserConfigValueOrDefault("publish-topic", "publishtopic");<NEW_LINE>String output = String.format("%s!", input);<NEW_LINE>Map<String, String> properties = new HashMap<>();<NEW_LINE>properties.put("input_topic", conte...
getKey().get());
210,378
final ReleaseAddressResult executeReleaseAddress(ReleaseAddressRequest releaseAddressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(releaseAddressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
1,108,064
public SubTaskGroup createAccessKeySetupTask(String regionCode) {<NEW_LINE>SubTaskGroup subTaskGroup = getTaskExecutor().createSubTaskGroup("Create Access Key", executor);<NEW_LINE>CloudAccessKeySetup.Params params = new CloudAccessKeySetup.Params();<NEW_LINE>params.providerUUID = taskParams().providerUUID;<NEW_LINE>pa...
.showSetUpChrony = taskParams().showSetUpChrony;
1,718,022
protected GraphQLSchema generateSchema() {<NEW_LINE>final Set<GraphQLType> graphQLTypes = new HashSet<>();<NEW_LINE>for (GraphQLTypesProvider typesProvider : typesProviders) {<NEW_LINE>try {<NEW_LINE>graphQLTypes.addAll(typesProvider.getTypes());<NEW_LINE>} catch (DotDataException e) {<NEW_LINE>Logger.error("Unable to ...
additionalTypes(finalTypesSet).build();
1,300,365
public void deleteByIdWithResponse(String id, String ifMatch, 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 n...
dnsForwardingRulesetName, virtualNetworkLinkName, ifMatch, context);
95,228
public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) {<NEW_LINE>int transY;<NEW_LINE>Paint.FontMetricsInt fm = paint.getFontMetricsInt();<NEW_LINE>if (mGifMovie != null) {<NEW_LINE>int width = (mWidth == 0) <MASK><NEW_LINE>int height = (mHeight == 0) ?...
? mGifMovie.width() : mWidth;
1,317,523
public void reload() {<NEW_LINE>idRangesPolicies = ImmutableList.of();<NEW_LINE>OWLOntology activeOntology = modelManager.getActiveOntology();<NEW_LINE>URI activeOntologyLocation = modelManager.getOntologyPhysicalURI(activeOntology);<NEW_LINE>if (!isFileUri(activeOntologyLocation)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
"An error ocurred whilst listing the active ontology directory contents: {}", e.getMessage());
1,200,993
public void updateMultiblockAfterNeighborUpdate(ServerLevel level, BlockPos loc, BlockPos changedPos) {<NEW_LINE>boolean recheck;<NEW_LINE>TCluster cluster = target.getCluster();<NEW_LINE>if (cluster != null) {<NEW_LINE>if (isWithinBounds(changedPos, cluster.getBoundsMin(), cluster.getBoundsMax())) {<NEW_LINE>// If the...
), changedPos.getZ());
1,204,244
protected Map<String, String> parseHeaderParameters(HttpServletRequest request) {<NEW_LINE>String header = null;<NEW_LINE>Enumeration<String> headers = request.getHeaders("Authorization");<NEW_LINE>while (headers.hasMoreElements()) {<NEW_LINE>String value = headers.nextElement();<NEW_LINE>if ((value.toLowerCase().start...
parameters.put(key, value);
904,226
private boolean checkIfSubjectHasRequiredRole(Subject subject, String role, String rolePrincipalClasses) {<NEW_LINE>String[] roleArray = role.split(",");<NEW_LINE>String[] rolePrincipalClazzes = rolePrincipalClasses.split(",");<NEW_LINE>boolean found = false;<NEW_LINE>for (String clazz : rolePrincipalClazzes) {<NEW_LIN...
LOG.debug("Looking for rolePrincipalClass: {}", clazz);
1,323,093
private static Tuple<ClusterState, List<SnapshotDeletionsInProgress.Entry>> readyDeletions(ClusterState currentState) {<NEW_LINE>final SnapshotDeletionsInProgress deletions = currentState.custom(SnapshotDeletionsInProgress.TYPE, SnapshotDeletionsInProgress.EMPTY);<NEW_LINE>if (deletions.hasDeletionsInProgress() == fals...
build() : currentState, readyDeletions);
104,613
protected void pulsePhysics() {<NEW_LINE>// TODO: proper physics<NEW_LINE>if (this.boostedEntity == null) {<NEW_LINE>// Fireworks velocity is not affected by airdrag or gravity<NEW_LINE>// These values are static<NEW_LINE>velocity.setX(velocity.getX() * 1.15);<NEW_LINE>velocity.setY(<MASK><NEW_LINE>velocity.setZ(veloci...
velocity.getY() + 0.04);
989,992
public static DescribeTagResourcesResponse unmarshall(DescribeTagResourcesResponse describeTagResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTagResourcesResponse.setRequestId(_ctx.stringValue("DescribeTagResourcesResponse.RequestId"));<NEW_LINE>describeTagResourcesResponse.setNextToken(_ctx.stringValue...
("DescribeTagResourcesResponse.TagResources[" + i + "].TagValue"));
950,096
void findLargestAnglesForAllNodes() {<NEW_LINE>for (int i = 0; i < listInfo.size(); i++) {<NEW_LINE>NodeInfo info = listInfo.get(i);<NEW_LINE>if (info.edges.size < 2)<NEW_LINE>continue;<NEW_LINE>for (int k = 0, j = info.edges.size - 1; k < info.edges.size; j = k, k++) {<NEW_LINE>double angleA = info.<MASK><NEW_LINE>dou...
edges.get(j).angle;
1,038,285
private QueryResult prepareAndRun(SearchJob searchJob, Query query) {<NEW_LINE>final QueryBackend<? extends GeneratedQueryContext> backend = getQueryBackend(query);<NEW_LINE>LOG.debug("[{}] Using {} to generate query", query.id(), backend);<NEW_LINE>// with all the results done, we can execute the current query and eve...
query.id(), result);
1,531,120
public boolean visit(MethodDeclaration node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE>int pos = rewriteJavadoc(node, MethodDeclaration.JAVADOC_PROPERTY);<NEW_LINE>int apiLevel = node.getAST().apiLevel();<NEW_LINE>if (apiLevel == JLS2_INTERNAL) {<NEW...
pos = rewriteMethodReceiver(node, pos);
618,298
private Map<String, Object> createNumbersMap(List<TPS> tpsData) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long dayAgo = now - TimeUnit.DAYS.toMillis(1L);<NEW_LINE>long weekAgo = now - TimeUnit.DAYS.toMillis(7L);<NEW_LINE>Map<String, Object> numbers = new HashMap<>();<NEW_LINE>TPSMutator tpsDataMonth = ...
(tpsDataWeek.averageTPS()));
1,629,062
private String appendNode(MTreeNode thisNode) {<NEW_LINE>StringBuffer tempTree = new StringBuffer();<NEW_LINE>Integer ID = new Integer(thisNode.getNode_ID());<NEW_LINE>MContainer container = m_map.get(ID);<NEW_LINE>//<NEW_LINE>int size = thisNode.getChildCount();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>MTree...
container.get_ID() + "</CM_Container_ID>");
624,444
public void pause(String pipelineName, String pauseCause, Username pausedBy, LocalizedOperationResult result) {<NEW_LINE>String pauseByUserName = pausedBy == null ? "" : pausedBy.getUsername().toString();<NEW_LINE>if (pipelineDoesNotExist(pipelineName, result) || notAuthorized(pipelineName, pauseByUserName, result)) {<...
setMessage("Pipeline '" + pipelineName + "' paused successfully.");
647,480
protected void sendMessageToSubscribers(@Nullable String destination, Message<?> message) {<NEW_LINE>MultiValueMap<String, String> subscriptions = this.subscriptionRegistry.findSubscriptions(message);<NEW_LINE>if (!subscriptions.isEmpty() && logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Broadcasting to " + subscrip...
long now = System.currentTimeMillis();
1,820,273
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>return srcSequence.max();<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Expression exp = param.getLeafExpression();<NEW_LINE>return srcSequence.calc(<MASK><NEW_LINE>} else {<NEW_LINE>if (param.getSubSize() != 2) {<NEW_LINE>MessageManager mm ...
exp, ctx).max();
1,149,363
public void marshall(MetricDatum _metricDatum, Request<?> request, String _prefix) {<NEW_LINE>String prefix;<NEW_LINE>if (_metricDatum.getMetricName() != null) {<NEW_LINE>prefix = _prefix + "MetricName";<NEW_LINE>String metricName = _metricDatum.getMetricName();<NEW_LINE>request.addParameter(prefix, StringUtils.fromStr...
, StringUtils.fromDouble(value));
960,417
private void initializeResources() {<NEW_LINE>Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>passphraseAuthContainer = findViewById(R.id.password_auth_container);<NEW_LINE>passphraseLayout = findViewById(R.id.passphrase_layout);<NEW_LINE>passphraseInput = findViewById(R.id.passphrase_input);<NEW_LINE>okButton =...
length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE);
234,820
private void handleCacheEntryFound(final CacheEntry entry, final CacheRequest request) {<NEW_LINE>final File cacheFile = getExistingCacheFile(entry.id);<NEW_LINE>if (cacheFile == null) {<NEW_LINE>request.notifyFailure(CacheRequest.REQUEST_FAILURE_STORAGE, new RuntimeException(), null, "A cache entry was found in the da...
session, true, entry.mimetype);
107,923
public void addResourceHandlers(ResourceHandlerRegistry registry) {<NEW_LINE>boolean isLive = environment.acceptsProfiles(Profiles.of(Initializer.PROFILE_LIVE));<NEW_LINE>int cacheMinutes = isLive ? 15 : 0;<NEW_LINE>var defaultCacheControl = CacheControl.maxAge(Duration.ofDays(isLive ? 10 : 0)).mustRevalidate();<NEW_LI...
("/webjars/").setCacheControl(defaultCacheControl);
177,265
public void run(WorkingCopy workingCopy) throws IOException {<NEW_LINE>workingCopy.toPhase(Phase.RESOLVED);<NEW_LINE>TreeMaker make = workingCopy.getTreeMaker();<NEW_LINE>CompilationUnitTree compilationUnitTree = workingCopy.getCompilationUnit();<NEW_LINE>// change the package when file was move to different dir.<NEW_L...
workingCopy.rewrite(compilationUnitTree, cutCopy);
1,024,365
private CommandLine.Model.CommandSpec addSubcommandGroup(String[] groupName, CommandDefinition commandDefinition, CommandLine.Model.CommandSpec parent) {<NEW_LINE>final CommandLine.Model.CommandSpec groupSpec = CommandLine.Model.CommandSpec.wrapWithoutInspection(null, defaultFactory);<NEW_LINE>configureHelp(groupSpec, ...
(new String[0]));
822,050
public void renderTranslucent(PoseStack poseStack, float tickDelta, Camera camera, GameRenderer gameRenderer, WorldRenderingPipeline pipeline) {<NEW_LINE>if (!canRender(camera, gameRenderer) || !isAnyHandTranslucent() || !IrisApi.getInstance().isShaderPackInUse()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ACTIVE = true;<N...
pipeline.setPhase(WorldRenderingPhase.HAND_TRANSLUCENT);
1,374,140
private void fixAfterInsertion(RedBlackEntry<K, V> x) {<NEW_LINE>x.color = RED;<NEW_LINE>while (x != null && x != root && x.parent.color == RED) {<NEW_LINE>if (parentOf(x) == leftOf(parentOf(parentOf(x)))) {<NEW_LINE>RedBlackEntry<K, V> y = rightOf(parentOf(parentOf(x)));<NEW_LINE>if (colorOf(y) == RED) {<NEW_LINE>setC...
(parentOf(x), BLACK);
212,711
public <T> T createObject(Class<T> comInterface) {<NEW_LINE>assert COMUtils.comIsInitialized() : "COM not initialized";<NEW_LINE>ComObject comObectAnnotation = <MASK><NEW_LINE>if (null == comObectAnnotation) {<NEW_LINE>throw new COMException("createObject: Interface must define a value for either clsId or progId via th...
comInterface.getAnnotation(ComObject.class);