idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
72,329
private static void statReportGeneral() throws Exception {<NEW_LINE>// Prefix<NEW_LINE>String inputPrefix = "dspace-log-general-";<NEW_LINE>String outputPrefix = "report-general-";<NEW_LINE>String myFormat = "html";<NEW_LINE>String myMap = null;<NEW_LINE>StringBuilder myInput = new StringBuilder(outputLogDirectory);<NE...
.get(Calendar.YEAR));
1,329,276
public static ToolPredicate deserialize(JsonObject json) {<NEW_LINE>// item<NEW_LINE>Item item = null;<NEW_LINE>if (json.has("item")) {<NEW_LINE>item = RecipeHelper.deserializeItem(GsonHelper.getAsString(json, "item"), "item", Item.class);<NEW_LINE>}<NEW_LINE>// tag<NEW_LINE>Tag<Item> tag = null;<NEW_LINE>if (json.has(...
json, "stats", StatPredicate::deserialize);
1,671,663
public Object replaceChild(final Object newChildObject, final Object oldChildObject) {<NEW_LINE>Object removedChild = null;<NEW_LINE>if (newChildObject instanceof DocumentFragment) {<NEW_LINE>final DocumentFragment fragment = (DocumentFragment) newChildObject;<NEW_LINE>Node firstNode = null;<NEW_LINE>final Node refChil...
.getScriptableObject(), refChildObject });
770,640
private Map<String, Object> simpleTypeToAvro(FieldInfo fieldInfo, SimpleTypeInfo typeInfo) {<NEW_LINE>Map<String, Object> field = new HashMap<String, Object>();<NEW_LINE>// Field name<NEW_LINE>String name = SchemaUtils.toCamelCase(fieldInfo.getFieldName());<NEW_LINE>field.put("name", name);<NEW_LINE>// Field default va...
field.put("type", type);
1,685,646
private static int mkspline_w_(CArray<ST_pointf> inps, int inpn, CArray<ST_tna_t> tnas, final ST_pointf ev0, final ST_pointf ev1, ST_pointf sp0, ST_pointf sv0, ST_pointf sp1, ST_pointf sv1) {<NEW_LINE>ENTERING("29sok6jkfyobf83q130snkhmh", "mkspline");<NEW_LINE>try {<NEW_LINE>final ST_pointf tmp = new ST_pointf();<NEW_L...
i).a[1]);
1,341,192
public OGCStructure executeOGC(int import_flags, String wkt_string, ProgressTracker progress_tracker) {<NEW_LINE>ArrayList<OGCStructure> stack = new ArrayList<OGCStructure>(0);<NEW_LINE>WktParser wkt_parser = new WktParser(wkt_string);<NEW_LINE>OGCStructure root = new OGCStructure();<NEW_LINE>root.m_structures = new Ar...
int current_token = wkt_parser.currentToken();
1,493,500
public static DetailsHandle createDetailsArea(final String[] detailsItems, JComponent chartContainer) {<NEW_LINE>final HTMLTextArea detailsArea = new HTMLTextArea();<NEW_LINE>detailsArea.setBorder(BorderFactory.createEmptyBorder(8, 10, 0, 10));<NEW_LINE>detailsArea.setText(createDetailsString(detailsItems, null));<NEW_...
(BorderLayout) chartContainer.getLayout();
301,318
protected void filterFeeds() {<NEW_LINE>final String repository;<NEW_LINE>if (repositorySelector.getSelectedIndex() > -1) {<NEW_LINE>repository = repositorySelector.getSelectedItem().toString();<NEW_LINE>} else {<NEW_LINE>repository = ALL;<NEW_LINE>}<NEW_LINE>final String author;<NEW_LINE>if (authorSelector.getSelected...
.Columns.Author.ordinal();
352,630
public static Namespace createNamespace(Program program, Demangled typeNamespace, Namespace parentNamespace, boolean functionPermitted) {<NEW_LINE>Namespace namespace = parentNamespace;<NEW_LINE>if (namespace == null) {<NEW_LINE>namespace = program.getGlobalNamespace();<NEW_LINE>}<NEW_LINE>SymbolTable symbolTable = pro...
namespace, namespaceName, SourceType.IMPORTED);
1,573,108
protected void update(final ContextManager contextManager, final ImportSchemaConfigurationStatement sqlStatement) throws DistSQLException {<NEW_LINE>if (!sqlStatement.getFilePath().isPresent()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File yamlFile = new File(sqlStatement.getFilePath().get());<NEW_LINE>YamlProxySchemaCon...
unmarshal(yamlFile, YamlProxySchemaConfiguration.class);
739,594
private String consumeString() throws FilterSyntaxException {<NEW_LINE>// int l = 0;<NEW_LINE>cursor++;<NEW_LINE>StringBuilder str = new StringBuilder(original.length());<NEW_LINE>// setLength(result, length(original)); // can't be longer than that<NEW_LINE>while ((cursor <= original.length()) && (original.charAt(curso...
.format("Problem with string at %d cannot be empty", cursor));
216,703
public String performanceGraphJSON(ServerUUID serverUUID) {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>Database db = dbSystem.getDatabase();<NEW_LINE><MASK><NEW_LINE>long halfYearAgo = now - TimeUnit.DAYS.toMillis(180);<NEW_LINE>TPSMutator tpsMutator = new TPSMutator(db.query(TPSQueries.fetchTPSDataOfServ...
LineGraphFactory lineGraphs = graphs.line();
226,739
private JType createInterface(JsonNode node, JPackage _package) {<NEW_LINE>String fqn = node.<MASK><NEW_LINE>int index = fqn.lastIndexOf(".") + 1;<NEW_LINE>JDefinedClass newType;<NEW_LINE>try {<NEW_LINE>newType = _package._interface(fqn.substring(index));<NEW_LINE>} catch (JClassAlreadyExistsException ex) {<NEW_LINE>re...
path(INTERFACE_TYPE_PROPERTY).asText();
1,569,952
private static int buildConverters(List<TypeConverter> converters, Class<?>[] parameters, Class<?>[] arguments) {<NEW_LINE>int cost = 0;<NEW_LINE>int tempCost = -1;<NEW_LINE>int size = arguments.length;<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>if (arguments[i] == null) {<NEW_LINE>if (parameters[i].isPrimitive...
Math.abs(MAX_DISTANCE - distance);
155,997
public void associate() {<NEW_LINE>matchesAll.resize(listDst.size);<NEW_LINE>matchesAll.reset();<NEW_LINE>if (scoreRatioThreshold >= 1.0) {<NEW_LINE>// if score ratio is not turned on then just use the best match<NEW_LINE>for (int i = 0; i < listDst.size; i++) {<NEW_LINE>if (!search.findNearest(listDst.data[i], maxDist...
index, i, result.distance);
354,226
public void reconcileMoveLinesWithCacheManagement(List<MoveLine> moveLineList) {<NEW_LINE>List<MoveLine> reconciliableCreditMoveLineList = getReconciliableCreditMoveLines(moveLineList);<NEW_LINE>List<MoveLine> reconciliableDebitMoveLineList = getReconciliableDebitMoveLines(moveLineList);<NEW_LINE>Map<List<Object>, Pair...
Comparator.comparing(MoveLine::getDate);
1,134,920
public static GetPredictResultResponse unmarshall(GetPredictResultResponse getPredictResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPredictResultResponse.setRequestId(_ctx.stringValue("GetPredictResultResponse.RequestId"));<NEW_LINE>getPredictResultResponse.setProjectId(_ctx.stringValue("GetPredictResultRespon...
(_ctx.stringValue("GetPredictResultResponse.Trace"));
989,904
public StringBuilder notifyHook(String url, String id, String action, String streamName, String category, String vodName, String vodId, String metadata) {<NEW_LINE>StringBuilder response = null;<NEW_LINE>logger.info("Running notify hook url:{} stream id: {} action:{} vod name:{} vod id:{}", url, id, action, vodName, vo...
variables.put("category", category);
1,175,983
public static DescribeShardTaskListResponse unmarshall(DescribeShardTaskListResponse describeShardTaskListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeShardTaskListResponse.setRequestId(_ctx.stringValue("DescribeShardTaskListResponse.RequestId"));<NEW_LINE>describeShardTaskListResponse.setSuccess(_ctx.boolean...
("DescribeShardTaskListResponse.List[" + i + "].Stage"));
1,621,665
protected void applyGroup(Ruby runtime, RubyClass klass, XmlDocument doc, NodeIter iter) {<NEW_LINE>// LEFT branch<NEW_LINE>if (iter.isNull()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (left.isNil()) {<NEW_LINE>left = new XmlElementContent(<MASK><NEW_LINE>if (iter.isNull()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (is...
runtime, klass, doc, iter);
1,714,174
private void updateView(NeededMapsVH holder) {<NEW_LINE>boolean paidVersion = Version.isPaidVersion(app);<NEW_LINE>for (int i = 0; i < items.size(); i++) {<NEW_LINE>IndexItem item = items.get(i);<NEW_LINE>boolean downloading = downloadThread.isDownloading(item);<NEW_LINE>boolean currentDownloading = downloading && down...
buttonAction.setVisibility(View.GONE);
1,445,740
final UpdateDetectorVersionResult executeUpdateDetectorVersion(UpdateDetectorVersionRequest updateDetectorVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDetectorVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.SERVICE_ID, "FraudDetector");
169,708
private void generateServerErrorContext(Map<String, String> context, SofaRequest request, SofaTracerSpan serverSpan) {<NEW_LINE>// tags<NEW_LINE>Map<String, String<MASK><NEW_LINE>context.put("serviceName", tagsWithStr.get(RpcSpanTags.SERVICE));<NEW_LINE>context.put("methodName", tagsWithStr.get(RpcSpanTags.METHOD));<NE...
> tagsWithStr = serverSpan.getTagsWithStr();
505,488
private static boolean check_KHR_swapchain(FunctionProvider provider, long[] caps, Set<String> ext) {<NEW_LINE>if (!ext.contains("VK_KHR_swapchain")) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int flag0 = ext.contains(<MASK><NEW_LINE>return checkFunctions(provider, caps, new int[] { 361, 362, 363, 364, 365, flag0 + 3...
"Vulkan11") ? 0 : Integer.MIN_VALUE;
1,701,543
public AuthorizationConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AuthorizationConfig authorizationConfig = new AuthorizationConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
().unmarshall(context));
905,516
// What the new agent state should be, if this agent is not chosen to be deploy goal<NEW_LINE>AgentState proposeNewAgentState(PingReportBean report, AgentBean agent) {<NEW_LINE>AgentStatus status = report.getAgentStatus();<NEW_LINE>if (agent != null && agent.getState() == AgentState.STOP) {<NEW_LINE>// agent has been e...
"Report status is {}, propose new agent state as {} ", status, AgentState.PAUSED_BY_SYSTEM);
919,626
private void loadInfo(ResultSet dbResult) throws DBException {<NEW_LINE>setName(JDBCUtils.safeGetString(dbResult, "Field"));<NEW_LINE>String typeName = <MASK><NEW_LINE>assert typeName != null;<NEW_LINE>setTypeName(typeName);<NEW_LINE>setFullTypeName(typeName);<NEW_LINE>setValueType(MySQLUtils.typeNameToValueType(typeNa...
JDBCUtils.safeGetString(dbResult, "Type");
272,292
public void handleRequest(HttpServerExchange exchange) throws Exception {<NEW_LINE>var request = MongoRequest.of(exchange);<NEW_LINE>var response = MongoResponse.of(exchange);<NEW_LINE>if (request.isInError()) {<NEW_LINE>next(exchange);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (request.getDBName().isEmpty()) {<NEW_LINE>...
setInError(HttpStatus.SC_NOT_ACCEPTABLE, "data must be a json object");
1,165,037
public RexNode convertCall(SqlRexContext cx, SqlCall call) {<NEW_LINE>final RexBuilder rexBuilder = cx.getRexBuilder();<NEW_LINE>final List<RexNode> operands = convertExpressionList(cx, call.getOperandList(), SqlOperandTypeChecker.Consistency.NONE);<NEW_LINE>final RelDataType type = cx.getValidator().getValidatedNodeTy...
exprs = new ArrayList<>();
1,359,285
protected void printLine(UnifiedImageBuilder<?> imageBdr, List<MapNode> nodes, DefaultEntityViewInfo pInfo, boolean asArea, boolean asOneway, NameInfo textInfo) {<NEW_LINE>// count++;<NEW_LINE>int[] xPoints = new int[nodes.size()];<NEW_LINE>int[] yPoints = new int[nodes.size()];<NEW_LINE>int viewWidth = !asArea ? image...
wayDashed, pInfo.wayWidth * displayFactorSym);
1,506,707
public boolean execute(Object left, Object right) {<NEW_LINE>if (left == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (right instanceof Collection) {<NEW_LINE>if (left instanceof Collection) {<NEW_LINE>return ((Collection) right).containsAll((Collection) left);<NEW_LINE>}<NEW_LINE>if (left instanceof Iterable)...
Object next = iterator.next();
1,003,746
protected void add(Map<T, Integer> pointMap) {<NEW_LINE>for (Entry<T, Integer> point : pointMap.entrySet()) {<NEW_LINE>T t = point.getKey();<NEW_LINE>int points = point.getValue();<NEW_LINE>if (t == null) {<NEW_LINE>warn(_log, "tried to add a null value to consistent hash ring");<NEW_LINE>throw new NullPointerException...
hash = _md.digest(bytesToHash);
1,421,787
public boolean isEnabled(ComponentOperator componentOperator) {<NEW_LINE>componentOperator.makeComponentVisible();<NEW_LINE>componentOperator.getFocus();<NEW_LINE>if (systemActionClass != null) {<NEW_LINE>return SystemAction.get(systemActionClass).isEnabled();<NEW_LINE>} else if (popupPath != null) {<NEW_LINE>// Need t...
getComparator()).isEnabled();
60,626
private void redrawLine(@NonNull LatLng targetLatLng) {<NEW_LINE>mapboxMap.getStyle(new Style.OnStyleLoaded() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onStyleLoaded(@NonNull Style style) {<NEW_LINE>GeoJsonSource geoJsonSource = style.getSourceAs(DISTANCE_SOURCE_ID);<NEW_LINE>if (geoJsonSource != null) {<NEW_...
distance(deviceLocationPoint, targetPoint, UNIT_METERS);
1,302,177
/*<NEW_LINE>* extractMetadata:<NEW_LINE>* framework for extracting metadata from uploaded files. The results will<NEW_LINE>* be used to populate the metadata of the Dataset to which the file belongs.<NEW_LINE>*/<NEW_LINE>public boolean extractMetadata(String tempFileLocation, DataFile dataFile, DatasetVersion editVersi...
> sio = dataFile.getStorageIO();
1,213,250
public static void fhirResourceGet(String resourceName) throws IOException, URISyntaxException {<NEW_LINE>// String resourceName =<NEW_LINE>// String.format(<NEW_LINE>// FHIR_NAME, "project-id", "region-id", "dataset-id", "store-id", "resource-type",<NEW_LINE>// "resource-id");<NEW_LINE>// Initialize the client, which ...
setParameter("access_token", getAccessToken());
1,793,818
public void search(Model model) {<NEW_LINE>ExtendedIterator<RDFNode> nodeIter = model.listObjectsOfProperty(Geo.HAS_SERIALIZATION_PROP);<NEW_LINE>boolean isGeometryLiteralsFound = nodeIter.hasNext();<NEW_LINE>if (!isGeometryLiteralsFound) {<NEW_LINE>NodeIterator wktNodeIter = model.listObjectsOfProperty(Geo.AS_WKT_PROP...
nodeIter = wktNodeIter.andThen(gmlNodeIter);
1,494,308
public void readTuplesAndExecute(Communicator<Message> inQueue) {<NEW_LINE>// Read data from in Queues<NEW_LINE>long startOfCycle = System.nanoTime();<NEW_LINE><MASK><NEW_LINE>while (!inQueue.isEmpty() && !waitingForCheckpointSaved) {<NEW_LINE>Message msg = inQueue.poll();<NEW_LINE>if (msg instanceof CheckpointManager....
Duration spoutAckBatchTime = systemConfig.getInstanceAckBatchTime();
777,420
protected void prepare(@NonNull final BaseActivity context, @NonNull final LinearLayout items) {<NEW_LINE>final RedditPost post = getArguments().getParcelable("post");<NEW_LINE>items.addView(propView(context, R.string.props_title, StringEscapeUtils.unescapeHtml4(post.title.<MASK><NEW_LINE>items.addView(propView(context...
trim()), true));
1,552,041
private SingularityDeployResult enqueueLbRevertToActiveTasks(SingularityRequest request, SingularityPendingDeploy pendingDeploy, SingularityDeployProgress updatedProgress, Collection<SingularityTaskId> deployActiveTasks, Collection<SingularityTaskId> otherActiveTasks) {<NEW_LINE>Optional<String> activeDeployIdToRevertT...
return new SingularityDeployResult(DeployState.WAITING);
1,483,090
public static JsonObject toJson(final Vulnerability vulnerability) {<NEW_LINE>final JsonObjectBuilder vulnerabilityBuilder = Json.createObjectBuilder();<NEW_LINE>vulnerabilityBuilder.add("uuid", vulnerability.getUuid().toString());<NEW_LINE>JsonUtil.add(vulnerabilityBuilder, "vulnId", vulnerability.getVulnId());<NEW_LI...
"severity", vulnerability.getSeverity());
761,527
protected void emitCode(SPIRVCompilationResultBuilder crb, SPIRVAssembler asm) {<NEW_LINE>Logger.traceCodeGen(Logger.BACKEND.SPIRV, "emit SWITCH(" + key + ")");<NEW_LINE>SPIRVId valueKey = asm.lookUpLIRInstructions(key);<NEW_LINE>SPIRVKind spirvKind = (SPIRVKind) key.getPlatformKind();<NEW_LINE>SPIRVId typeKind = asm.p...
SPIRVMultipleOperands<>(cases)));
1,298,816
final PutPolicyResult executePutPolicy(PutPolicyRequest putPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutPolicy");
685,607
private void constructInsertTabletPlanGenerators() {<NEW_LINE>final Map<String, Integer> sourcePathToQueryDataSetIndex = queryPlan.getPathToIndex();<NEW_LINE>final List<String> sourcePaths = findSourcePaths();<NEW_LINE>Map<String, InsertTabletPlanGenerator> <MASK><NEW_LINE>for (int i = 0, intoPathsSize = intoPaths.size...
deviceToPlanGeneratorMap = new HashMap<>();
673,908
public void loadGeometry() throws QueryException, ServerException, UserException, PublicInterfaceNotFoundException, IOException, GeometryException, IfcModelInterfaceException {<NEW_LINE>if (includeGeometry) {<NEW_LINE>if (modelState == ModelState.FULLY_LOADED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Query query = new Qu...
long serializerOid = bimServerClient.getBinaryGeometryMessagingStreamingSerializerOid();
581,106
private static Query translateGqlQueryWithLimitCheck(String gql, Datastore datastore, String namespace) throws DatastoreException {<NEW_LINE>String gqlQueryWithZeroLimit = gql + " LIMIT 0";<NEW_LINE>try {<NEW_LINE>Query translatedQuery = translateGqlQuery(gqlQueryWithZeroLimit, datastore, namespace);<NEW_LINE>// Clear ...
.clearLimit().build();
1,714,033
public void paintComponent(Graphics screen) {<NEW_LINE>if (screen == null)<NEW_LINE>return;<NEW_LINE>Sketch sketch = editor.getSketch();<NEW_LINE>// possible?<NEW_LINE>if (sketch == null)<NEW_LINE>return;<NEW_LINE>Dimension size = getSize();<NEW_LINE>if ((size.width != sizeW) || (size.height != sizeH)) {<NEW_LINE>// co...
), imageW, imageH, this);
1,033,519
public void addBlockStates(List<Pair<IBlockState, ItemStack>> states, @Nonnull ItemStack parent, Block parentBlock) {<NEW_LINE>if (states == null || states.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BlockModelShapes modelShapes = Minecraft.getMinecraft()<MASK><NEW_LINE>for (Pair<IBlockState, ItemStack> pair : st...
.getBlockRendererDispatcher().getBlockModelShapes();
1,303,141
public boolean removedByPlayer(@Nonnull IBlockState bs, @Nonnull World world, @Nonnull BlockPos pos, @Nonnull EntityPlayer player, boolean willHarvest) {<NEW_LINE>IConduitBundle te = getTileEntity(world, pos);<NEW_LINE>if (te == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>boolean breakBlock = true;<NEW_LINE>NNLis...
doRayTraceAll(world, pos, player);
1,047,477
private void nOutReplaceBuild(int layerNum, int nOut, IWeightInit scheme, IWeightInit schemeNext) {<NEW_LINE>Preconditions.checkArgument(layerNum >= 0 && layerNum < editedConfs.size(), "Invalid layer index: must be 0 to " + "numLayers-1 = %s includive, got %s", editedConfs.size(), layerNum);<NEW_LINE>NeuralNetConfigura...
layerConf = editedConfs.get(layerNum);
33,134
private static FileObject findModuleAsFolder(final FileObject fromModule, final String module) {<NEW_LINE>FileObject parentFO = fromModule.isFolder() ? fromModule : fromModule.getParent();<NEW_LINE>if (parentFO == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FileObject <MASK><NEW_LINE>if (moduleFolderFO != null &&...
moduleFolderFO = parentFO.getFileObject(module);
651,622
private EqualityCondition mapRecordEquality(HollowTypeReadState fromState, HollowTypeReadState toState) {<NEW_LINE>final HollowMapTypeReadState fromMapState = (HollowMapTypeReadState) fromState;<NEW_LINE>final HollowMapTypeReadState toMapState = (HollowMapTypeReadState) toState;<NEW_LINE>return new EqualityCondition() ...
) | iter.getValue());
325,532
private void init(EJBEndpoint ejb, ClassLoader classLoader) throws CDIException {<NEW_LINE>try {<NEW_LINE>List<String> localInterfaceNames = ejb.getLocalBusinessInterfaceNames();<NEW_LINE>this.localBusinessInterfaces = new ArrayList<BusinessInterfaceDescriptor<?>>(localInterfaceNames.size() + 1);<NEW_LINE>for (String i...
.isMessageDriven = ejbType == EJBType.MESSAGE_DRIVEN;
189,558
public Answer copyVolumeFromPrimaryToSecondary(CopyCommand cmd) {<NEW_LINE>VolumeObjectTO srcVolume = (VolumeObjectTO) cmd.getSrcTO();<NEW_LINE>VolumeObjectTO destVolume = (VolumeObjectTO) cmd.getDestTO();<NEW_LINE>String vmName = srcVolume.getVmName();<NEW_LINE>VmwareContext context = hostService.getServiceContext(cmd...
.createLogMessageException(e, cmd));
1,422,598
public final void predefinedValue() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST predefinedValue_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case LITERAL_nil:<NEW_LINE>{<NEW_LINE>AST tmp274_AST = null;<NEW_LINE>tmp274_AST = as...
predefinedValue_AST = (AST) currentAST.root;
637,775
private Map<String, TField> computeFieldNameMap(Class<?> clazz) {<NEW_LINE>final Map<String, TField> <MASK><NEW_LINE>if (isTBase(clazz)) {<NEW_LINE>// Get the metaDataMap for this Thrift class<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final Map<? extends TFieldIdEnum, FieldMetaData> metaDataMap = FieldMetaData.g...
map = new HashMap<>();
658,101
public static int longestSubarrayWithDistinctEntries(List<Integer> A) {<NEW_LINE>// Records the most recent occurrences of each entry.<NEW_LINE>Map<Integer, Integer> mostRecentOccurrence = new HashMap<>();<NEW_LINE>int longestDupFreeSubarrayStartIdx = 0, result = 0;<NEW_LINE>for (int i = 0; i < A.size(); ++i) {<NEW_LIN...
.get(i), i);
704,352
public void highlight(Search search) {<NEW_LINE>if (lastHighlightedSearch != null && lastHighlightedSearch.getKeyword().equals(search.getKeyword()) && lastHighlightedSearch.isCaseSensitive() == search.isCaseSensitive()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>removeHighlighting();<NEW_LINE>if (search.isBackward()) {<NEW...
VrapperLog.error("while highlighting search", e);
61,709
private String makeAndSaveVmSystemSerialNumber(String vmUuid) {<NEW_LINE>String serialNumber;<NEW_LINE>String tag = VmSystemTags.VM_SYSTEM_SERIAL_NUMBER.getTag(vmUuid);<NEW_LINE>if (tag != null) {<NEW_LINE>serialNumber = VmSystemTags.VM_SYSTEM_SERIAL_NUMBER.getTokenByTag(tag, VmSystemTags.VM_SYSTEM_SERIAL_NUMBER_TOKEN)...
).toString())));
633,411
public void run() {<NEW_LINE>// stack copy<NEW_LINE>final JResponse _response = response;<NEW_LINE>final JResponsePayload _responsePayload = _response.payload();<NEW_LINE>byte s_code = _response.serializerCode();<NEW_LINE>Serializer serializer = SerializerFactory.getSerializer(s_code);<NEW_LINE>ResultWrapper wrapper;<N...
readObject(bytes, ResultWrapper.class);
1,016,166
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
944,653
public void put(FileReadRequest key, Slice data, CacheQuota cacheQuota) {<NEW_LINE>if (stats.getInMemoryRetainedBytes() + data.length() >= maxInflightBytes) {<NEW_LINE>// cannot accept more requests<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<Path> paths = cacheScopeFiles.computeIfAbsent(cacheQuota.getIdentifier(), k -> n...
add(key.getPath());
1,173,387
public void onJobKill(JobClusterProto.KillJobRequest req) {<NEW_LINE><MASK><NEW_LINE>ActorRef sender = getSender();<NEW_LINE>LOGGER.info("Shutting down job {} on request by {}", jobId, sender);<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>LOGGER.info("shutting down job with metadata {}", mantisJobMetaData);<NEW_LIN...
LOGGER.trace("Enter JobActor::onJobKill {}", jobId);
1,210,034
public PO copyRecord(@NonNull final CopyRecordRequest copyRecordRequest) {<NEW_LINE>final TableRecordReference fromRecordRef = copyRecordRequest.getTableRecordReference();<NEW_LINE>final Object fromModel = fromRecordRef.getModel(PlainContextAware.newWithThreadInheritedTrx());<NEW_LINE>final String tableName = Interface...
setAdWindowId(copyRecordRequest.getFromAdWindowId());
323,096
private ArrayList<Type<?>> sortTypes() {<NEW_LINE>// sort the types in table creation order to avoid referencing not created table via a<NEW_LINE>// reference (could also add constraints at the end but SQLite doesn't support that)<NEW_LINE>ArrayDeque<Type<?>> queue = new ArrayDeque<>(model.getTypes());<NEW_LINE>ArrayLi...
> type = queue.poll();
18,248
CodeBlock writeFieldInjection(Field injectionPoint, boolean required) {<NEW_LINE>CodeBlock.Builder code = CodeBlock.builder();<NEW_LINE>code.add("instanceContext.field($S, $T.class", injectionPoint.getName(), injectionPoint.getType());<NEW_LINE>code.add(")\n")<MASK><NEW_LINE>if (required) {<NEW_LINE>code.add(".invoke(b...
.indent().indent();
428,176
public void createBip44AccountContext(HDAccountContext context) {<NEW_LINE>_database.beginTransaction();<NEW_LINE>try {<NEW_LINE>// Create accountBacking tables<NEW_LINE>SqliteBtcAccountBacking backing = _backings.get(context.getId());<NEW_LINE>if (backing == null) {<NEW_LINE>createAccountBackingTables(context.getId(),...
context.getId(), backing);
1,103,439
private static <T> TransformEvaluator<SplittableParDo.PrimitiveBoundedRead<T>> readBounded() {<NEW_LINE>return new TransformEvaluator<SplittableParDo.PrimitiveBoundedRead<T>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void evaluate(SplittableParDo.PrimitiveBoundedRead<T> transform, EvaluationContext context) {<NE...
new BoundedDataset<>(input));
1,472,875
private void writeThemeValues() {<NEW_LINE>if (cmbThemes.getSelectedIndex() <= 0) {<NEW_LINE>// Default<NEW_LINE>writeDefaultTheme();<NEW_LINE>} else {<NEW_LINE>// Write the Theme<NEW_LINE>String themeName = (String) cmbThemes.getSelectedItem();<NEW_LINE>if (themeName == null || themeName.isEmpty()) {<NEW_LINE>writeDef...
getText().trim());
166,130
protected Rectangle calculateTextControlBounds() {<NEW_LINE>// Check Delegate first<NEW_LINE>if (getFigureDelegate() != null) {<NEW_LINE>Rectangle rect = getFigureDelegate().calculateTextControlBounds();<NEW_LINE>if (rect != null) {<NEW_LINE>return rect;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// We will adjust for any internal...
= getIconOffset() - getTextControlMarginWidth();
1,241,436
private void updateDisplay(boolean allowEmptyDisplay) {<NEW_LINE>if (!allowEmptyDisplay && mTypedTimes.isEmpty()) {<NEW_LINE>int hour = mTimePicker.getHours();<NEW_LINE>int minute = mTimePicker.getMinutes();<NEW_LINE>setHour(hour, true);<NEW_LINE>setMinute(minute);<NEW_LINE>if (!mIs24HourMode) {<NEW_LINE>updateAmPmDisp...
), true, true, true);
23,830
private static void fillBotAttrs(final Request request) {<NEW_LINE>final String userAgentStr = request.getHeader("User-Agent");<NEW_LINE>final UserAgent userAgent = UserAgent.parseUserAgentString(userAgentStr);<NEW_LINE>BrowserType browserType = userAgent<MASK><NEW_LINE>if (StringUtils.containsIgnoreCase(userAgentStr, ...
.getBrowser().getBrowserType();
666,259
public DeliveryOrder save(@NonNull final DeliveryOrder deliveryOrder) {<NEW_LINE>final I_DerKurier_DeliveryOrder headerRecord;<NEW_LINE>if (deliveryOrder.getId() == null) {<NEW_LINE>headerRecord = newInstance(I_DerKurier_DeliveryOrder.class);<NEW_LINE>} else {<NEW_LINE>headerRecord = loadAssumeRecordExists(deliveryOrde...
setDK_Consignee_Phone(deliveryContact.getPhoneAsStringOrNull());
473,645
private void processLastRanges() {<NEW_LINE>// nothing to do<NEW_LINE>if (myRanges.size() < 2)<NEW_LINE>return;<NEW_LINE>Range range1 = myRanges.get(myRanges.size() - 2);<NEW_LINE>Range range2 = myRanges.get(myRanges.size() - 1);<NEW_LINE>if (range1.end1 != range2.start1 && range1.end2 != range2.start2) {<NEW_LINE>// i...
= range2.end1 - range2.start1;
863,935
private static boolean areDataSchemaEqual(JsonNode actual, JsonNode expected) {<NEW_LINE>JsonNode actualColumnNames = actual.get(FIELD_RESULT_TABLE).get(FIELD_DATA_SCHEMA).get(FIELD_COLUMN_NAMES);<NEW_LINE>JsonNode expectedColumnNames = expected.get(FIELD_RESULT_TABLE).get(FIELD_DATA_SCHEMA).get(FIELD_COLUMN_NAMES);<NE...
(FIELD_DATA_SCHEMA).get(FIELD_COLUMN_DATA_TYPES);
925,865
public void installUI(JComponent c) {<NEW_LINE>// must get UI defaults here because installDefaults() is invoked after<NEW_LINE>// installComponents(), which uses these values to create popup button<NEW_LINE>padding = UIManager.getInsets("ComboBox.padding");<NEW_LINE>arrowType = UIManager.getString("Component.arrowType...
buttonHoverArrowColor = UIManager.getColor("ComboBox.buttonHoverArrowColor");
882,932
private ProcessInfoParameter createProcessInfoParameter(@NonNull final WFNodeParameter nPara) {<NEW_LINE>final String attributeName = nPara.getAttributeName();<NEW_LINE>final <MASK><NEW_LINE>log.debug("{} = {}", attributeName, attributeValue);<NEW_LINE>// Value - Constant/Variable<NEW_LINE>Object value = attributeValue...
String attributeValue = nPara.getAttributeValue();
575,973
public void onTextAvailable(ProcessEvent event, Key outputType) {<NEW_LINE>String text = StringUtil.notNullize(event.getText());<NEW_LINE>if (outputType == ProcessOutputTypes.STDERR) {<NEW_LINE>LOG.warn(text.trim());<NEW_LINE>} else {<NEW_LINE>LOG.info(text.trim());<NEW_LINE>}<NEW_LINE>RunningInfo result = null;<NEW_LI...
o = myProcMap.get(key);
448,331
public static BasicTokenFilter build(boolean isTokenizeCjkChars, boolean isStripAccents, List<String> neverSplit, TokenStream input) throws IOException {<NEW_LINE>Analyzer analyzer = new Analyzer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected TokenStreamComponents createComponents(String fieldName) {<NEW_LINE>Whit...
add(term.toString());
1,160,309
public void convertToJson(BpmnJsonConverterContext converterContext, BaseElement baseElement, ActivityProcessor processor, BpmnModel model, FlowElementsContainer container, ArrayNode shapesArrayNode, double subProcessX, double subProcessY) {<NEW_LINE>MessageFlow messageFlow = (MessageFlow) baseElement;<NEW_LINE>ObjectN...
).getWidth() / 2.0);
340,224
public WorkflowCopyResponseRef copyRef(WorkflowCopyRequestRef workflowCopyRequestRef) {<NEW_LINE>Long appId = workflowCopyRequestRef.getAppId();<NEW_LINE>Long orcVersionId = workflowCopyRequestRef.getOrcVersionId();<NEW_LINE>String userName = workflowCopyRequestRef.getUserName();<NEW_LINE>String workspaceName = workflo...
getDssFlow().getId());
1,071,795
public synchronized String summary() {<NEW_LINE>StringBuilder summary = new StringBuilder();<NEW_LINE>summary.append("\n\n");<NEW_LINE>summary.append("Consistency Fix Summary\n");<NEW_LINE>summary.append("-----------------------\n");<NEW_LINE>summary.append("Total bad keys processed: " + fixCount + "\n");<NEW_LINE>summ...
append("Total keys processed that were not corrected: " + failures + "\n");
1,436,492
private I_C_Order createSalesOrderHeader(@NonNull final SalesOrderCandidate salesOrderCandidate) {<NEW_LINE>final I_C_Order fromQuotation = salesOrderCandidate.getFromQuotation();<NEW_LINE>final I_C_Order newSalesOrder = InterfaceWrapperHelper.copy().setFrom(fromQuotation).setSkipCalculatedColumns(true).copyToNew(I_C_O...
setRef_Proposal_ID(fromQuotation.getC_Order_ID());
336,945
private int generateRenderingRule(RenderingRulesStorage storage, PrintStream out, String indent, String name, int ind, RenderingRule key) {<NEW_LINE>int cnt = 1;<NEW_LINE>String mp = "";<NEW_LINE>Iterator<Entry<String, String>> it = key.getAttributes().entrySet().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Ent...
name, ind + 1, k);
346,374
public static Map<String, List<InstanceInformation>> fetchSSMInfo(BasicSessionCredentials temporaryCredentials, String skipRegions, String accountId, String accountName) {<NEW_LINE>Map<String, List<InstanceInformation>> <MASK><NEW_LINE>AWSSimpleSystemsManagement ssmClient;<NEW_LINE>String expPrefix = InventoryConstants...
ssmInstanceList = new LinkedHashMap<>();
5,731
public void vetoableChange(PropertyChangeEvent e) throws PropertyVetoException {<NEW_LINE>String name = e.getPropertyName();<NEW_LINE>Object value = e.getNewValue();<NEW_LINE>log.fine("VOrderReceip.vetoableChange - " + name + "=" + value);<NEW_LINE>if (value == null)<NEW_LINE>return;<NEW_LINE>// PP_Order_ID<NEW_LINE>if...
setOrder_UOM_ID(pp_order.getC_UOM_ID());
1,728,937
private List<NameValueCountPair> listProcessPair(Business business, EffectivePerson effectivePerson, String applicationId) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(WorkCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq =...
setValue(process.getId());
1,142,686
void writeLockFileContents(final RandomAccessFile file) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>props.put("timestamp", StringUtil.toIsoDate(Instant.now()));<NEW_LINE>props.put("applicationPath", pwmEnvironment.getApplicationPath() == null ? "n/a" : pwmEnvironment.getApplicationPath().getAbsolutePath());<NEW_LINE>prop...
final Properties props = new Properties();
1,770,290
public RFuture<Map<StreamMessageId, Map<K, V>>> pendingRangeAsync(String groupName, StreamMessageId startId, StreamMessageId endId, int count) {<NEW_LINE>return commandExecutor.evalReadAsync(getRawName(), codec, EVAL_XRANGE, "local pendingData = redis.call('xpending', KEYS[1], ARGV[1], ARGV[2], ARGV[3], ARGV[4]);" + "l...
groupName, startId, endId, count);
1,343,501
private // TODO(ruibm): Add cache health information to the SuperConsole.<NEW_LINE>void backgroundThreadCallForHealthCheck() {<NEW_LINE>LOG.verbose("Starting pings. %s", toString());<NEW_LINE>List<ListenableFuture<LoadBalancerPingEvent.PerServerPingData>> futures = new ArrayList<>();<NEW_LINE>for (URI serverUri : serve...
verbose("all pings complete %s", toString());
1,180,886
private RubyString subBangCommon(ThreadContext context, final int beg, final int end, final RubyString repl, int tuFlags) {<NEW_LINE>// the sub replacement string<NEW_LINE>Encoding enc = StringSupport.areCompatible(this, repl);<NEW_LINE>if (enc == null)<NEW_LINE>enc = subBangVerifyEncoding(<MASK><NEW_LINE>final ByteLis...
context, repl, beg, end);
973,598
public void mergeChildOptions(Options options, ViewController<?> child) {<NEW_LINE>bottomTabs.perform(bottomTabs -> {<NEW_LINE>int index = bottomTabFinder.findByControllerId(child.getId());<NEW_LINE>if (index >= 0) {<NEW_LINE>BottomTabOptions tab = options.bottomTabOptions;<NEW_LINE>if (tab.iconWidth.hasValue())<NEW_LI...
.iconHeight.get(null));
1,329,268
protected TokenEntry processToken(Tokens tokenEntries, GenericToken currentToken, String fileName) {<NEW_LINE>String image = currentToken.getImage();<NEW_LINE>Token plsqlToken = (Token) currentToken;<NEW_LINE>if (ignoreIdentifiers && plsqlToken.kind == PLSQLParserConstants.IDENTIFIER) {<NEW_LINE>image = <MASK><NEW_LINE...
String.valueOf(plsqlToken.kind);
481,976
protected Element generateLinkElement(final Link link) {<NEW_LINE>final Namespace namespace = getFeedNamespace();<NEW_LINE>final Element linkElement = new Element("link", namespace);<NEW_LINE>final String rel = link.getRel();<NEW_LINE>if (rel != null) {<NEW_LINE>final Attribute relAttribute = new Attribute("rel", rel);...
= new Attribute("href", href);
983,412
private void populateFromPubKeyInfo(SubjectPublicKeyInfo info) {<NEW_LINE>X962Parameters params = X962Parameters.getInstance(info.getAlgorithm().getParameters());<NEW_LINE>ECCurve curve = EC5Util.getCurve(configuration, params);<NEW_LINE>ecSpec = EC5Util.convertToSpec(params, curve);<NEW_LINE>ASN1BitString bits = info....
.getDomainParameters(configuration, params));
1,405,057
void run() {<NEW_LINE>int MAX_N = 100010;<NEW_LINE>c = new int[MAX_N];<NEW_LINE>RA = new int[MAX_N];<NEW_LINE>tempRA = new int[MAX_N];<NEW_LINE>SA = new Integer[MAX_N];<NEW_LINE>tempSA = new Integer[MAX_N];<NEW_LINE>Phi = new int[MAX_N];<NEW_LINE>PLCP = new int[MAX_N];<NEW_LINE>LCP = new int[MAX_N];<NEW_LINE>// System....
), new String(T));
1,161,719
public synchronized void refresh() {<NEW_LINE>List<?> childs = getChildren();<NEW_LINE><MASK><NEW_LINE>for (int c = childCount - 1; c >= 0; c--) {<NEW_LINE>removeChild((Component) childs.get(c));<NEW_LINE>}<NEW_LINE>Object[] items = listItems.toArray();<NEW_LINE>int tabWidth = 100;<NEW_LINE>List<Button> btnList = new A...
int childCount = childs.size();
165,670
public DataFlowInfo createDataFlow(InlongGroupInfo groupInfo, SinkResponse sinkResponse) {<NEW_LINE>String groupId = sinkResponse.getInlongGroupId();<NEW_LINE>String streamId = sinkResponse.getInlongStreamId();<NEW_LINE>// TODO Support all source type, include AUTO_PUSH.<NEW_LINE>List<SourceResponse> sourceList = <MASK...
streamSourceService.listSource(groupId, streamId);
1,124,580
private ESResultSet convertResponse(boolean useLateral) throws SQLException {<NEW_LINE>if (esResponse.getHits().getHits().length == 0 && esResponse.getScrollId() != null) {<NEW_LINE>esResponse = client.prepareSearchScroll(esResponse.getScrollId()).setScroll(new TimeValue(Utils.getIntProp(props, Utils.PROP_SCROLL_TIMEOU...
Math.min(total, limit);
1,415,342
final PutDedicatedIpWarmupAttributesResult executePutDedicatedIpWarmupAttributes(PutDedicatedIpWarmupAttributesRequest putDedicatedIpWarmupAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putDedicatedIpWarmupAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);