idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,451,228
public Collection<HmDevice> parse(Object[] message) throws IOException {<NEW_LINE>message = (Object[]) message[0];<NEW_LINE>Map<String, HmDevice> devices = new HashMap<>();<NEW_LINE>for (int i = 0; i < message.length; i++) {<NEW_LINE>Map<String, ?> data = (Map<String, ?>) message[i];<NEW_LINE>if (MiscUtils.isDevice(toS...
(data.get("PARENT"));
1,654,724
static boolean combineAnnotations(PathObjectHierarchy hierarchy, List<PathObject> pathObjects, RoiTools.CombineOp op) {<NEW_LINE>if (hierarchy == null || hierarchy.isEmpty() || pathObjects.isEmpty()) {<NEW_LINE>logger.warn("Combine annotations: Cannot combine - no annotations found");<NEW_LINE>return false;<NEW_LINE>}<...
.getROI().getImagePlane();
1,791,003
public void onClick(View v) {<NEW_LINE>new QMUIDialog.MessageDialogBuilder(getActivity()).setTitle(getString(R.string.string_143)).setMessage(getString(R.string.string_144)).setSkinManager(QMUISkinManager.defaultInstance(mContext)).addAction(getString(R.string.string_142), new QMUIDialogAction.ActionListener() {<NEW_LI...
.searchDao().deleteAllUnpinned();
980,875
protected void createRuntimeDataComponents() {<NEW_LINE>if (rDS != null && categoriesDs != null) {<NEW_LINE>Map<String, Object> params = new HashMap<>();<NEW_LINE>params.put("runtimeDs", rDS.getId());<NEW_LINE>params.put(<MASK><NEW_LINE>params.put("fieldWidth", themeConstants.get("cuba.gui.EntityInspectorEditor.field.w...
"categoriesDs", categoriesDs.getId());
161,336
List<ZeebePartition> constructPartitions(final RaftPartitionGroup partitionGroup, final List<PartitionListener> partitionListeners, final TopologyManager topologyManager) {<NEW_LINE>final var partitions = new ArrayList<ZeebePartition>();<NEW_LINE>final var communicationService = clusterServices.getCommunicationService(...
ZeebePartition(partitionStartupAndTransitionContext, newTransitionBehavior, STARTUP_STEPS);
628,940
private void populateArtifactEditor(ArtifactCondition artifactConditionToPopulateWith) {<NEW_LINE>cbAttributeType.setSelected(true);<NEW_LINE>comboBoxArtifactName.setSelectedItem(artifactConditionToPopulateWith.getArtifactTypeName());<NEW_LINE>comboBoxAttributeComparison.setSelectedItem(artifactConditionToPopulateWith....
TSK_BLACKBOARD_ATTRIBUTE_VALUE_TYPE valueType = artifactConditionToPopulateWith.getAttributeValueType();
1,681,339
public static QueryTrademarkMonitorResultsResponse unmarshall(QueryTrademarkMonitorResultsResponse queryTrademarkMonitorResultsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTrademarkMonitorResultsResponse.setRequestId<MASK><NEW_LINE>queryTrademarkMonitorResultsResponse.setTotalItemNum(_ctx.integerValue("QueryTrad...
(_ctx.stringValue("QueryTrademarkMonitorResultsResponse.RequestId"));
655,724
public Void visitBlock(BlockTree bt, Void p) {<NEW_LINE>List<CatchTree> catches = createCatches(info, make, thandles, statement);<NEW_LINE>// #89379: if inside a constructor, do not wrap the "super"/"this" call:<NEW_LINE>// please note that the "super" or "this" call is supposed to be always<NEW_LINE>// in the construc...
, make.Identifier("null"));
283,892
static void attachBaseContext() {<NEW_LINE>Log.i(Consts.TAG, "ARouter start attachBaseContext");<NEW_LINE>try {<NEW_LINE>Class<?> mMainThreadClass = Class.forName("android.app.ActivityThread");<NEW_LINE>// Get current main thread.<NEW_LINE>Method getMainThread = mMainThreadClass.getDeclaredMethod("currentActivityThread...
currentActivityThread = getMainThread.invoke(null);
7,419
public boolean sendPushRevocationPolicyRequest(RealmModel realm, ClientModel resource, int notBefore, String managementUrl) {<NEW_LINE>PushNotBeforeAction adminAction = new PushNotBeforeAction(TokenIdGenerator.generateId(), Time.currentTime() + 30, resource.getClientId(), notBefore);<NEW_LINE>String token = session.<MA...
tokens().encode(adminAction);
1,148,192
public void editorContextMenuAboutToShow(IMenuManager menu) {<NEW_LINE>menu.add(new GroupMarker(GROUP_SQL_ADDITIONS));<NEW_LINE>super.editorContextMenuAboutToShow(menu);<NEW_LINE>// menu.add(new Separator("content"));//$NON-NLS-1$<NEW_LINE>addAction(menu, GROUP_SQL_EXTRAS, SQLEditorContributor.ACTION_CONTENT_ASSIST_PRO...
(getSite(), "org.jkiss.dbeaver.ui.editors.sql.morph.delimited.list"));
1,528,950
static ClassInfo addScannedClass(final String className, final int classModifiers, final boolean isExternalClass, final Map<String, ClassInfo> classNameToClassInfo, final ClasspathElement classpathElement, final Resource classfileResource) {<NEW_LINE>ClassInfo <MASK><NEW_LINE>if (classInfo == null) {<NEW_LINE>// This i...
classInfo = classNameToClassInfo.get(className);
907,161
public void remove(int entryIndex) throws IOException {<NEW_LINE>int entryPosition = getIntValue(offset + POSITIONS_ARRAY_OFFSET + entryIndex * OIntegerSerializer.INT_SIZE);<NEW_LINE>int entrySize = <MASK><NEW_LINE>if (isLeaf) {<NEW_LINE>assert valueSerializer.isFixedLength();<NEW_LINE>entrySize += valueSerializer.getF...
getObjectSizeInDirectMemory(keySerializer, offset + entryPosition);
972,125
static public void inner4(GrayF32 intensity, GrayF32 derivX, GrayF32 derivY, GrayF32 output) {<NEW_LINE>final int w = intensity.width;<NEW_LINE>final int h = intensity.height - 1;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(1,h,y->{<NEW_LINE>for (int y = 1; y < h; y++) {<NEW_LINE>int indexI = intensity.startIn...
+ y * output.stride + 1;
1,216,121
public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<Default> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) {<NEW_LINE>TypeDescription proxyType = TypeLocator.ForType.of(annotatio...
resolve(Boolean.class)));
954,608
private UpdateRequest updateTopic(ChangeEvent event) throws IOException {<NEW_LINE>UpdateRequest updateRequest = new UpdateRequest(ElasticSearchIndexType.TOPIC_SEARCH_INDEX.indexName, event.getEntityId().toString());<NEW_LINE>TopicESIndex topicESIndex = null;<NEW_LINE>if (event.getEntity() != null && event.getEventType...
getEventType()).build();
220,645
public GetRepositoryEndpointResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetRepositoryEndpointResult getRepositoryEndpointResult = new GetRepositoryEndpointResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
int originalDepth = context.getCurrentDepth();
1,490,726
private OracleNoSQLQueryInterpreter translateQuery(Queue clauseQueue, EntityMetadata entityMetadata) {<NEW_LINE>OracleNoSQLQueryInterpreter interpreter = new OracleNoSQLQueryInterpreter(getColumns(getKunderaQuery().getResult(), entityMetadata));<NEW_LINE>interpreter.setClauseQueue(clauseQueue);<NEW_LINE>String operator...
().get(0));
1,640,523
private static Pair<NewVirtualFile, Iterable<String>> prepare(@Nonnull NewVirtualFileSystem vfs, @Nonnull String path) {<NEW_LINE>String normalizedPath = normalize(vfs, path);<NEW_LINE>if (StringUtil.isEmptyOrSpaces(normalizedPath)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String basePath = vfs.extractRootPath(norma...
).findRoot(basePath, vfs);
226,093
public void marshall(Nodegroup nodegroup, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (nodegroup == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.marshall(nodegroup.get...
nodegroup.getNodegroupName(), NODEGROUPNAME_BINDING);
1,464,092
protected JasperData processReport(File reportFile) {<NEW_LINE>log.info("reportFile.getAbsolutePath() = " + reportFile.getAbsolutePath());<NEW_LINE>JasperReport jasperReport = null;<NEW_LINE>String jasperName = reportFile.getName();<NEW_LINE>int pos = jasperName.indexOf('.');<NEW_LINE>if (pos != -1)<NEW_LINE>jasperName...
File reportDir = reportFile.getParentFile();
1,018,865
public ListConstraintsForPortfolioResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListConstraintsForPortfolioResult listConstraintsForPortfolioResult = new ListConstraintsForPortfolioResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
int originalDepth = context.getCurrentDepth();
1,501,920
public static String createJdbcXmlResultEx(Statement statement, boolean makeUpperCased) throws SQLException, ParserConfigurationException {<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = factory.newDocumentBuilder();<NEW_LINE>org.w3c.dom.Document xmlDo...
setFetchSize(statement.getFetchSize());
1,776,773
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>Uri.Builder urlBuilder = IntentUtils.createBaseUriForRepo(mRepoOwner, mRepoName).appendPath("blob").appendPath(mRef);<NEW_LINE>for (String element : mPath.split("\\/")) {<NEW_LINE>urlBuilder.appendPath(element);<NEW_LINE>}<NEW_LINE>Uri url = urlBuilder.buil...
, mRef, mPath, false));
1,735,394
private void waitingLoop() {<NEW_LINE>try {<NEW_LINE>while (true) {<NEW_LINE>// underlying work-queue is shutting down, quit the loop.<NEW_LINE>if (super.isShuttingDown()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// peek the first item from the delay queue<NEW_LINE>WaitForEntry<T> entry = delayQueue.peek();<NEW_LINE>// d...
toMillis(), TimeUnit.MILLISECONDS);
387,201
private void printStaticFieldFullDeclaration(VariableDeclarationFragment fragment) {<NEW_LINE>VariableElement var = fragment.getVariableElement();<NEW_LINE>boolean isVolatile = ElementUtil.isVolatile(var);<NEW_LINE>String objcType = nameTable.getObjCType(var.asType());<NEW_LINE>String objcTypePadded = objcType + (objcT...
, LiteralGenerator.generate(value));
1,732,325
private static Pair<String, String> preIndexedRRX(final long offset, final ITranslationEnvironment environment, final List<ReilInstruction> instructions, final String registerNodeValue1, final String registerNodeValue2) {<NEW_LINE>final String address = environment.getNextVariableString();<NEW_LINE>final String index =...
, address, dw, registerNodeValue1));
655,182
private boolean runReadyJob(final ExecutableNode node) throws IOException {<NEW_LINE>if (Status.isStatusFinished(node.getStatus()) || Status.isStatusRunning(node.getStatus())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final Status nextNodeStatus = getImpliedStatus(node);<NEW_LINE>if (nextNodeStatus == null) {<NEW_LI...
skipNode(System.currentTimeMillis());
1,122,684
public void generateTicketPdf(@PathVariable("eventName") String eventName, @PathVariable("ticketIdentifier") String ticketIdentifier, HttpServletResponse response) {<NEW_LINE>ticketReservationManager.fetchCompleteAndAssigned(eventName, ticketIdentifier).ifPresentOrElse(data -> {<NEW_LINE>Ticket ticket = data.getRight()...
getById(event.getOrganizationId());
1,471,465
protected static void collectData(int numberOfVotes, int numberOfSamples, int ratioMin, int ratioMax, String fileName) {<NEW_LINE>String testName = "insufficient_noise";<NEW_LINE>String algorithmType = "bounded_mean";<NEW_LINE>String expected = "0";<NEW_LINE>String numDatasets = "22";<NEW_LINE>String numSamples = Integ...
append("Results run on: " + timestamp + "\n");
1,051,363
public Tuple4<DataSet<Tuple2<Long, MT>>, DataSet<Tuple2<Long, DT>>, ApsContext, BatchOperator[]> persistentAll(DataSet<Tuple2<Long, MT>> model, DataSet<Tuple2<Long, DT>> data, ApsContext context, BatchOperator[] others, String prefix) {<NEW_LINE>if (available()) {<NEW_LINE>TypeInformation<DT> dtType = (null == data) ? ...
.deserilize(outOps[2]);
113,891
protected void paintComponent(Graphics g) {<NEW_LINE>final Insets i = getInsets();<NEW_LINE>final Rectangle r = getBounds();<NEW_LINE>final int width = r.width - i.left - i.right;<NEW_LINE>final int height = r.height - i.top - i.bottom;<NEW_LINE>g.setColor(Color.WHITE);<NEW_LINE>g.fillRect(i.left, <MASK><NEW_LINE>g.set...
i.top, width, height);
390,438
public void marshall(MitigationActionParams mitigationActionParams, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (mitigationActionParams.getUpdateDeviceCertificateParams() != null) {<NEW_LINE>UpdateDeviceCertificateParams updateDeviceCertificateParams = mitigationActionPar...
).marshall(publishFindingToSnsParams, jsonWriter);
90,845
private boolean testForExactMatch(final SplitHunk splitHunk, final SplitHunk originalHunk) {<NEW_LINE>final int offset = splitHunk.getContextBefore().size();<NEW_LINE>final List<BeforeAfter<List<String>>> steps = splitHunk.getPatchSteps();<NEW_LINE>if (splitHunk.isInsertion()) {<NEW_LINE>final boolean emptyFile = myLin...
().length() == 0;
729,955
void renderMarker(Canvas canvas, Paint paint, float opacity, RNSVGMarkerPosition position, float strokeWidth) {<NEW_LINE>int count = saveAndSetupCanvas(canvas, mCTM);<NEW_LINE>markerTransform.reset();<NEW_LINE>Point origin = position.origin;<NEW_LINE>markerTransform.setTranslate((float) origin.x * mScale, (float) origi...
vbRect, eRect, mAlign, mMeetOrSlice);
779,451
public SegmentRecord storage2Entity(final Convert2Entity converter) {<NEW_LINE>SegmentRecord record = new SegmentRecord();<NEW_LINE>record.setSegmentId((String) converter.get(SEGMENT_ID));<NEW_LINE>record.setTraceId((String) converter.get(TRACE_ID));<NEW_LINE>record.setServiceId((String) converter.get(SERVICE_ID));<NEW...
.ToEntity.Base64Decoder.INSTANCE));
1,624,843
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>String verifier = params[0].getString(PARAM_VERIFIER);<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>HttpsURLConnection httpsURLConnection = null;<NEW_LINE>try {<NEW_LINE>String tokenURLString = LINKEDIN_TOKEN + "&code=" + verifier + "&redirect_uri=" + mRed...
result.putString(RESULT_ACCESS_TOKEN, accessToken);
773,065
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>loadButton = getView().findViewById(R.id.adsizes_btn_loadad);<NEW_LINE>cb120x20 = getView().findViewById(R.id.adsizes_cb_120x20);<NEW_LINE>cb320x50 = getView().findViewById(R.id.adsizes_cb_320x50);<...
new AdSize(120, 20));
406,972
public boolean onDeadCallback() {<NEW_LINE>GameEvent event = new DeathEvent(this);<NEW_LINE>GameServer.INSTANCE.getEventDispatcher().dispatch(event);<NEW_LINE>reset();<NEW_LINE>// Teleport to spawn point<NEW_LINE>this.getWorld().removeObject(this);<NEW_LINE>this.getWorld().decUpdatable();<NEW_LINE>IServerConfiguration ...
, spawnY, true, dimension));
1,303,742
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {<NEW_LINE>if (!this.isEnabled()) {<NEW_LINE>sender.sendMessage("This plugin is Disabled!");<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>ArrayList<String> allArgs = new ArrayList<String>(Arrays.asList(args));<NEW_LINE>allA...
0, command.getName());
337,447
private static ByteSizeValue parse(final String initialInput, final String normalized, final String suffix, ByteSizeUnit unit, final String settingName) {<NEW_LINE>final String s = normalized.substring(0, normalized.length() - suffix.length()).trim();<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>return new ByteSizeValue(Long...
"fractional_byte_values", "Fractional bytes values are deprecated. Use non-fractional bytes values instead: [{}] found for setting [{}]", initialInput, settingName);
1,557,033
public UExpression visitIdentifier(IdentifierTree tree, Void v) {<NEW_LINE>Symbol sym = ASTHelpers.getSymbol(tree);<NEW_LINE>if (sym instanceof ClassSymbol) {<NEW_LINE>return UClassIdent.create((ClassSymbol) sym);<NEW_LINE>} else if (sym != null && sym.isStatic()) {<NEW_LINE>return staticMember(sym);<NEW_LINE>} else if...
create(tree.getName());
160,443
protected CompilationUnitDeclaration endParse(int act) {<NEW_LINE>this.lastAct = act;<NEW_LINE>if (this.statementRecoveryActivated) {<NEW_LINE>RecoveredElement recoveredElement = buildInitialRecoveryState();<NEW_LINE>if (recoveredElement != null) {<NEW_LINE>recoveredElement.topElement().updateParseTree();<NEW_LINE>}<NE...
out.println(this.compilationUnit);
651,824
public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, AndroidBuildConfigDescriptionArg args) {<NEW_LINE><MASK><NEW_LINE>if (JavaAbis.isClassAbiTarget(buildTarget)) {<NEW_LINE>BuildTarget configTarget = JavaAbis.getLibraryTarget(buildTarget);<N...
ActionGraphBuilder graphBuilder = context.getActionGraphBuilder();
1,496,638
private boolean isEntityExists(TenantId tenantId, EntityId entityId) throws ThingsboardException {<NEW_LINE>switch(entityId.getEntityType()) {<NEW_LINE>case DEVICE:<NEW_LINE>return deviceService.findDeviceById(tenantId, new DeviceId(entityId.getId())) != null;<NEW_LINE>case ASSET:<NEW_LINE>return assetService.findAsset...
.getId())) != null;
1,722,267
public Flux<MultiValueResponse<HGetCommand, ByteBuffer>> hMGet(Publisher<HGetCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notNull(<MASK><NEW_LINE>byte[] keyBuf = toByteArray(command.getKey());<NEW_LINE>List<Object...
command.getFields(), "Fields must not be null!");
1,271,625
public static <B extends Message.Builder> B fieldWiseCopy(MessageOrBuilder source, B target) {<NEW_LINE>Descriptor sourceDescriptor = source.getDescriptorForType();<NEW_LINE>Descriptor targetDescriptor = target.getDescriptorForType();<NEW_LINE>if (!AnnotationUtils.sameFhirType(sourceDescriptor, targetDescriptor)) {<NEW...
targetDescriptor.getFullName() + ". They are not the same FHIR types.");
1,543,152
protected OffsetsEnum createOffsetsEnumFromReader(LeafReader leafReader, int doc) throws IOException {<NEW_LINE>final Terms termsIndex = leafReader.terms(getField());<NEW_LINE>if (termsIndex == null) {<NEW_LINE>return OffsetsEnum.EMPTY;<NEW_LINE>}<NEW_LINE>final List<OffsetsEnum> offsetsEnums = new ArrayList<>();<NEW_L...
createOffsetsEnumsWeightMatcher(leafReader, doc, offsetsEnums);
1,852,988
public String findMessageDestinationName(String mdbName) throws ConfigurationException {<NEW_LINE>// validation<NEW_LINE>if (Utils.strEmpty(mdbName)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String destinationName = null;<NEW_LINE>try {<NEW_LINE>RootInterface sunDDRoot = getSunDDRoot(false);<NEW_LINE>if (sunDDRoot i...
getClass().getSimpleName());
22,378
protected StateChange waitShutDown() {<NEW_LINE>ShutdownStateListener listener = prepareShutdownMonitoring();<NEW_LINE>if (listener == null) {<NEW_LINE>return new StateChange(this, TaskState.FAILED, TaskEvent.ILLEGAL_STATE, "BasicTask.waitShutDown.listenerError", instanceName);<NEW_LINE>}<NEW_LINE>long start = System.c...
System.currentTimeMillis() - start);
1,510,610
public void start(Stage stage) {<NEW_LINE>stage.setTitle("Path Anti-Aliasing Test");<NEW_LINE>Scene scene = new Scene(new <MASK><NEW_LINE>scene.setCamera(new PerspectiveCamera());<NEW_LINE>scene.setFill(Color.BEIGE);<NEW_LINE>Path path = new Path();<NEW_LINE>path.setRotate(40.0F);<NEW_LINE>path.setRotationAxis(Rotate.Y...
Group(), 800.0f, 800.0f);
95,662
public OSelectStatement copy() {<NEW_LINE>OSelectStatement result = null;<NEW_LINE>try {<NEW_LINE>result = getClass().getConstructor(Integer.TYPE).newInstance(-1);<NEW_LINE>} catch (Exception e) {<NEW_LINE>throw new RuntimeException(e);<NEW_LINE>}<NEW_LINE>result.originalStatement = originalStatement;<NEW_LINE>result.t...
? null : skip.copy();
1,128,946
public static void migrateOptionalAuthenticationExecution(RealmModel realm, AuthenticationFlowModel parentFlow, AuthenticationExecutionModel optionalExecution, boolean updateOptionalExecution) {<NEW_LINE>LOG.debugf("Migrating optional execution '%s' of flow '%s' of realm '%s' to subflow", optionalExecution.getAuthentic...
setRequirement(AuthenticationExecutionModel.Requirement.REQUIRED);
259,176
public void checkFields() {<NEW_LINE>warnIncorrectParsingIfBlank(getGeocode(), "geo");<NEW_LINE>warnIncorrectParsingIfBlank(getName(), "name");<NEW_LINE><MASK><NEW_LINE>warnIncorrectParsingIf(getTerrain() == 0.0, "terrain");<NEW_LINE>warnIncorrectParsingIf(getDifficulty() == 0.0, "difficulty");<NEW_LINE>warnIncorrectPa...
warnIncorrectParsingIfBlank(getGuid(), "guid");
1,321,040
public void selected(MenuItem menu, Object target) {<NEW_LINE>SimpleTextEntryWindow entryWindow = new SimpleTextEntryWindow("sr_prog.window.title", "sr_prog.window.message");<NEW_LINE>DecimalFormat df = new DecimalFormat("0.000");<NEW_LINE>df.setGroupingUsed(false);<NEW_LINE>df.setMaximumFractionDigits(3);<NEW_LINE>ent...
.getSubmittedInput().trim();
988,303
public static void postValidateBrew(JReleaserContext context, Errors errors) {<NEW_LINE>Map<String, List<Distribution>> map = context.getModel().getActiveDistributions().stream().filter(d -> d.getBrew().isEnabled()).collect(groupingBy(d -> d.getBrew().getResolvedFormulaName(context)));<NEW_LINE>map.forEach((formulaName...
.joining(", "))));
1,287,887
private static void resolveInWorkspace(IClasspathEntry classpathEntry, Set<String> classPath, Set<IProject> projectOnCp) {<NEW_LINE>int entryKind = classpathEntry.getEntryKind();<NEW_LINE>switch(entryKind) {<NEW_LINE>case IClasspathEntry.CPE_PROJECT:<NEW_LINE>Set<String> cp = resolveProjectClassPath(<MASK><NEW_LINE>cla...
classpathEntry.getPath(), projectOnCp);
837,638
private void loadNode182() {<NEW_LINE>StateTypeNode node = new StateTypeNode(this.context, Identifiers.ProgramStateMachineType_Running, new QualifiedName(0, "Running"), new LocalizedText("en", "Running"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.valueOf(0));<NEW_LINE>node.addReference(n...
.expanded(), true));
957,597
public UpdateSecretResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateSecretResult updateSecretResult = new UpdateSecretResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
205,957
protected void checkSubProcess(Model model) {<NEW_LINE>String chldModel = model instanceof MetaJsonRecord ? ((MetaJsonRecord) model).getJsonModel() : model.getClass().getSimpleName();<NEW_LINE>List<WkfTaskConfig> taskConfigs = wkfTaskConfigRepository.all().filter("self.callModel = ?1 AND self.callLink IS NOT NULL", chl...
getProcessInstanceId(), modelCtx, ctxMap);
1,168,235
final GetWorkflowRunResult executeGetWorkflowRun(GetWorkflowRunRequest getWorkflowRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWorkflowRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetWorkflow...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
813,459
public final void sizeFnExpr() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST sizeFnExpr_AST = null;<NEW_LINE>AST tmp87_AST = null;<NEW_LINE>tmp87_AST = astFactory<MASK><NEW_LINE>astFactory.addASTChild(currentAST, tmp87_AST);<NEW_...
.create(LT(1));
331,577
public void refresh() {<NEW_LINE>if (table == null || table.isDisposed() || noChange)<NEW_LINE>return;<NEW_LINE>noChange = true;<NEW_LINE>TableItem[] items = table.getItems();<NEW_LINE>for (TableItem item : items) {<NEW_LINE>if (item == null || item.isDisposed()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>String tmp = it...
(IpRange) item.getData();
1,226,966
public ImageUploadResult modifyImage(String mediaId, ImageUrlPayload imageUrlPayload) throws APIConnectionException, APIRequestException {<NEW_LINE>Preconditions.checkArgument(StringUtils.isNotEmpty(mediaId), "mediaId should not be empty");<NEW_LINE>checkImageUrlPayload(imageUrlPayload);<NEW_LINE>NativeHttpClient clien...
.value() + "/" + mediaId;
1,592,713
private void loadNode297() {<NEW_LINE>TwoStateVariableTypeNode node = new TwoStateVariableTypeNode(this.context, Identifiers.AlarmConditionType_ActiveState, new QualifiedName(0, "ActiveState"), new LocalizedText("en", "ActiveState"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Vari...
.expanded(), false));
1,102,618
protected void paintChildren(Graphics g) {<NEW_LINE>super.paintChildren(g);<NEW_LINE>Component title = layout.getTitle();<NEW_LINE>if (title != null && layoutData.showActions != null && layoutData.showActions.compute()) {<NEW_LINE>int width = layoutData.configuration.allActionsOffset;<NEW_LINE>int x = getWidth() - widt...
g.setColor(layoutData.fillColor);
1,759,203
public void destroy() throws DatabaseException {<NEW_LINE>Database database = getDatabase();<NEW_LINE>try {<NEW_LINE>//<NEW_LINE>// This code now uses the ChangeGeneratorFactory to<NEW_LINE>// allow extension code to be called in order to<NEW_LINE>// delete the changelog table.<NEW_LINE>//<NEW_LINE>// To implement the ...
.execute(sqlStatement[0]);
1,318,104
protected void removeByCompanyId(String companyId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM User_ IN CLASS com.liferay.portal.ejb.UserHBM WHERE ");<NEW_LINE>query.append("compa...
("firstName ASC").append(", ");
1,208,679
public void exitNo_ip_route(No_ip_routeContext ctx) {<NEW_LINE>Vrf vrf = _configuration.getVrfs().get(AristaConfiguration.DEFAULT_VRF_NAME);<NEW_LINE>if (ctx.vrf != null) {<NEW_LINE>String vrfName = toString(ctx.vrf);<NEW_LINE>vrf = _configuration.getVrfs().get(vrfName);<NEW_LINE>if (vrf == null) {<NEW_LINE>warn(ctx.vr...
NextHop nextHop = maybeNextHop.get();
1,700,597
private boolean validateWhereClauseAndCheckTableScan() {<NEW_LINE>for (Expression disjunct : disjuncts) {<NEW_LINE>final Validator validator = new Validator();<NEW_LINE>validator.process(disjunct, null);<NEW_LINE>if (validator.requiresTableScan) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!validator.isKeyedQuery) {...
schema.key(), isWindowed);
1,361,289
public void beginConstruction() {<NEW_LINE>this.createFixedTextLabel("MinimizedWindow.all_transfers", false, true);<NEW_LINE>this.createGap(40);<NEW_LINE>// Download speed.<NEW_LINE>Label dlab = this.createFixedTextLabel("ConfigView.download.abbreviated", false, false);<NEW_LINE>this.down_speed = this.createSpeedLabel(...
createFixedTextLabel("TableColumn.header.eta_next", true, false);
1,402,765
// loads a single CSV file, filtering by date<NEW_LINE>private static void parseSingle(Predicate<LocalDate> datePredicate, CharSource resource, Map<LocalDate, ImmutableMap.Builder<QuoteId, Double>> mutableMap) {<NEW_LINE>try {<NEW_LINE>CsvFile csv = CsvFile.of(resource, true);<NEW_LINE>for (CsvRow row : csv.rows()) {<N...
symbologyStr = row.getField(SYMBOLOGY_FIELD);
1,383,074
public GraphPath createDirectGraphPath(NearbyStop egress, boolean arriveBy, int departureTime, ZonedDateTime startOfTime) {<NEW_LINE>List<MASK><NEW_LINE>Vertex flexToVertex = egress.state.getVertex();<NEW_LINE>if (!isRouteable(flexToVertex)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FlexTripEdge flexEdge = getFlexEdg...
<Edge> egressEdges = egress.edges;
1,313,238
public Object apply(ActionContext ctx, Object caller, Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>final User user = (User) sources[0];<NEW_LINE>int accessTokenTimeout = Settings.JWTExpirationTimeout.getValue();<NEW_LINE>int ref...
add(Calendar.MINUTE, accessTokenTimeout);
230,749
public static void placeSchematicBlock(Level world, BlockState state, BlockPos target, ItemStack stack, @Nullable CompoundTag data) {<NEW_LINE>// Piston<NEW_LINE>if (state.hasProperty(BlockStateProperties.EXTENDED))<NEW_LINE>state = state.setValue(BlockStateProperties.EXTENDED, Boolean.FALSE);<NEW_LINE>if (state.hasPro...
target, state, null, stack);
1,394,193
public static SipApplicationRouterInfo createSARInfoFactory(String infoString) {<NEW_LINE>SipApplicationRouterInfo sarInfo = null;<NEW_LINE>String appName = "";<NEW_LINE>String uriField = "";<NEW_LINE>String region = "";<NEW_LINE>String routeURI = "";<NEW_LINE>String routeType = "";<NEW_LINE>String stateInfo = "";<NEW_...
routeURI.length() - 1);
1,084,232
static public FModeController createModeController() {<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>modeController = new FModeController(controller);<NEW_LINE>final UserInputListenerFactory userInputListenerFactory = new UserInputListenerFactory(modeController);<NEW_LINE>modeContro...
.addAction(new OpenPathAction());
1,611,218
final AttrSet findOverride(AttrSet override) {<NEW_LINE>AttrSet attrSet = cachedOverride(override);<NEW_LINE>if (attrSet == null) {<NEW_LINE>Object[] oSharedPairs = override.sharedPairs();<NEW_LINE>Object[] oExtraPairs = override.extraPairs();<NEW_LINE>int osIndex = oSharedPairs.length;<NEW_LINE>int oeIndex = oExtraPai...
Object value = oExtraPairs[--oeIndex];
733,138
private void writeCompoundFile(IndexOutput entries, IndexOutput data, Directory dir, SegmentInfo si) throws IOException {<NEW_LINE>// write number of files<NEW_LINE>entries.writeVInt(si.<MASK><NEW_LINE>for (String file : si.files()) {<NEW_LINE>// align file start offset<NEW_LINE>long startOffset = data.alignFilePointer...
files().size());
1,041,955
public final ASTNode visitSimpleExpr(final SimpleExprContext ctx) {<NEW_LINE>int startIndex = ctx.getStart().getStartIndex();<NEW_LINE>int stopIndex = ctx.getStop().getStopIndex();<NEW_LINE>if (null != ctx.subquery()) {<NEW_LINE>return new SubquerySegment(startIndex, stopIndex, (OracleSelectStatement) visit(ctx.subquer...
visit(ctx.columnName());
840,896
public void pairDevice(BluetoothGatt bleServer, int connId, long deviceId, long setupPincode, @Nullable byte[] csrNonce, NetworkCredentials networkCredentials) {<NEW_LINE>if (connectionId == 0) {<NEW_LINE>connectionId = connId;<NEW_LINE>if (connectionId == 0) {<NEW_LINE><MASK><NEW_LINE>completionListener.onError(new Ex...
Log.e(TAG, "Failed to add Bluetooth connection.");
1,204,415
protected static // ------------------------------------------------------------------------------------<NEW_LINE>void printImages(EnumMap<measurements, Map<String, Double>> values) {<NEW_LINE>System.out.println();<NEW_LINE>for (measurements m : values.keySet()) {<NEW_LINE>Map<String, Double> <MASK><NEW_LINE>ArrayList<...
map = values.get(m);
72,024
public static void vertical3(Kernel1D_F32 kernel, GrayF32 src, GrayF32 dst) {<NEW_LINE>final float[] dataSrc = src.data;<NEW_LINE>final float[] dataDst = dst.data;<NEW_LINE>final float k1 = kernel.data[0];<NEW_LINE>final float k2 = kernel.data[1];<NEW_LINE>final float k3 = kernel.data[2];<NEW_LINE>final int radius = ke...
int imgHeight = dst.getHeight();
77,336
public void run() {<NEW_LINE>RSSReader rss = null;<NEW_LINE>try {<NEW_LINE>final Response response = this.sb.loader.load(this.sb.loader.request(this.urlf, true, false), CacheStrategy.NOCACHE, Integer.MAX_VALUE, <MASK><NEW_LINE>final byte[] resource = response == null ? null : response.getContent();<NEW_LINE>rss = resou...
BlacklistType.CRAWLER, this.agent);
1,555,335
protected void buildUI() {<NEW_LINE>JPanel innerPanel = new JPanel(new BorderLayout());<NEW_LINE>innerPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));<NEW_LINE>JPanel comboBoxPanel = createAuthorizationLabelAndComboBox();<NEW_LINE>innerPanel.add(comboBoxPanel, BorderLayout.PAGE_START);<NEW_LINE>cardPan...
add(cardPanel, BorderLayout.CENTER);
807,890
private List<SourceMethod> retrievePrototypeMethods(TypeElement mapperTypeElement, MapperOptions mapperAnnotation) {<NEW_LINE>if (!mapperAnnotation.hasMapperConfig()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>TypeElement typeElement = asTypeElement(mapperAnnotation.mapperConfigType());<NEW_LINE>Lis...
containsTargetTypeParameter = SourceMethod.containsTargetTypeParameter(parameters);
1,416,967
FixedKeyNode updateRecord(int index, DBRecord record) throws IOException {<NEW_LINE>int offset = getRecordDataOffset(index);<NEW_LINE>int oldLen = getRecordLength(index, offset);<NEW_LINE>int len = record.length();<NEW_LINE>// Check for use of indirect chained record node(s)<NEW_LINE>// min 4 records per node<NEW_LINE>...
record.length(), false);
1,219,188
public void update(Integer extendId, List<SysExtendField> entitys) {<NEW_LINE>if (CommonUtils.notEmpty(extendId)) {<NEW_LINE>Set<String> codeList = new HashSet<>();<NEW_LINE>if (CommonUtils.notEmpty(entitys)) {<NEW_LINE>for (SysExtendField entity : entitys) {<NEW_LINE>if (0 != entity.getId().getExtendId()) {<NEW_LINE>i...
getId().getCode());
267,704
public Container createContainer(EjbDescriptor ejbDescriptor, ClassLoader loader, DeploymentContext deployContext) throws Exception {<NEW_LINE>this.ejbDescriptor = ejbDescriptor;<NEW_LINE>// FIXME: Read from domain.xml iiop-service ip-addr<NEW_LINE>byte[<MASK><NEW_LINE>try {<NEW_LINE>ipAddress = InetAddress.getLocalHos...
] ipAddress = new byte[4];
1,244,745
public void run() {<NEW_LINE>logger.info("Starting server.");<NEW_LINE>InetAddress localAddr = MaryProperties.needInetAddress("socket.addr");<NEW_LINE>int localPort = MaryProperties.needInteger("socket.port");<NEW_LINE>HttpParams params = new BasicHttpParams();<NEW_LINE>// 0 means no timeout, any positive value means t...
.addInterceptor(new ResponseDate());
193,265
private void updateStoreTableSize() throws ConnectionUnavailableException {<NEW_LINE>if (cacheEnabled && !queryStoreWithoutCheckingCache.get()) {<NEW_LINE>readWriteLock.writeLock().lock();<NEW_LINE>try {<NEW_LINE>// check if we need to check the size of store<NEW_LINE>if (storeTableSize == -1 || (!cacheExpiryEnabled &&...
.writeLock().unlock();
1,683,450
public CreateVocabularyFilterResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateVocabularyFilterResult createVocabularyFilterResult = new CreateVocabularyFilterResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
JsonToken token = context.getCurrentToken();
971,975
public void openViewer(String title, FileInputStream input) {<NEW_LINE>boolean inUIThread <MASK><NEW_LINE>boolean desktopActivated = false;<NEW_LINE>Desktop desktop = null;<NEW_LINE>try {<NEW_LINE>if (!inUIThread) {<NEW_LINE>desktop = AEnv.getDesktop();<NEW_LINE>if (desktop == null) {<NEW_LINE>log.warning("desktop is n...
= Executions.getCurrent() != null;
1,467,549
public void onMatch(RelOptRuleCall call) {<NEW_LINE>LogicalTableFunctionScan scan = call.rel(0);<NEW_LINE>int wmIndex = orderingColumnFieldIndex(scan);<NEW_LINE>WatermarkLogicalRel wmRel = new WatermarkLogicalRel(scan.getCluster(), OptUtils.toLogicalConvention(scan.getTraitSet()), Iterables.getOnlyElement(Util.toList(s...
, toEventTimePolicyProvider(scan), wmIndex);
912,187
public void dump() {<NEW_LINE>try {<NEW_LINE>if (isEnabled()) {<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>if (receivedRequests.isUsed() || sentRequests.isUsed() || sendErrors.isUsed()) {<NEW_LINE>String eol = StringUtil.lineSeparator();<NEW_LINE>String head = " " + tag;<NEW_LINE>StringBuilder log = new StringB...
(duplicateRequests).append(eol);
1,563,298
public void shutdown() {<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("Shutdown sessions, invalidating = {}", isInvalidateOnShutdown());<NEW_LINE>// loop over all the sessions in memory (a few times if necessary to catch sessions that have been<NEW_LINE>// added while we're running<NEW_LINE>int loop = 100;<NEW...
LOG.trace("IGNORED", e);
734
private void populateLogRecordFields(int index, String fieldData, ParsedLogRecord parsedLogRecord) {<NEW_LINE>switch(index) {<NEW_LINE>case 0:<NEW_LINE>parsedLogRecord.setFieldValue(ParsedLogRecord.DATE_TIME, fieldData);<NEW_LINE>break;<NEW_LINE>case 1:<NEW_LINE>parsedLogRecord.setFieldValue(ParsedLogRecord.LOG_LEVEL_N...
name = FIELD_NAME_ALIASES.get(name);
875,822
public Future<Boolean> shutDownAsync(Runnable midHook) {<NEW_LINE>assertWritable();<NEW_LINE>Set<Module> unorderedModules = getEnabledModules();<NEW_LINE>Map<String, Set<Module>> providersMap = new HashMap<String, Set<Module>>();<NEW_LINE>for (Module m : unorderedModules) {<NEW_LINE>registerProviders(m, providersMap);<...
Utilities.topologicalSort(unorderedModules, deps);
1,321,137
protected void performRewrite(TransformationContext ctx) throws Exception {<NEW_LINE>WorkingCopy wc = ctx.getWorkingCopy();<NEW_LINE>TreePath path = ctx.getPath();<NEW_LINE>TypeMirror compType = ctype.resolve(wc);<NEW_LINE>if (compType == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TreeMaker mk = wc.getTreeMaker();<NE...
emptyList())), null);
1,332,066
private void partialUpdatePhoto(PrintWriter respWriter, long photoId) throws RemoteInvocationException {<NEW_LINE>final Request<Photo> getReq = _photoBuilders.get().id(photoId).build();<NEW_LINE>final ResponseFuture<Photo> getFuture = _restClient.sendRequest(getReq);<NEW_LINE>final Response<Photo<MASK><NEW_LINE>final P...
> getResp = getFuture.getResponse();