idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
238,646
public static ListSparkJobResponse unmarshall(ListSparkJobResponse listSparkJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSparkJobResponse.setRequestId(_ctx.stringValue("ListSparkJobResponse.RequestId"));<NEW_LINE>DataResult dataResult = new DataResult();<NEW_LINE>dataResult.setPageNumber(_ctx.stringValue("List...
= new ArrayList<Data>();
830,720
private void init(int namedGroup) {<NEW_LINE>this.ecCurve = null;<NEW_LINE>this.ecGenSpec = null;<NEW_LINE>this.ecParameterSpec = null;<NEW_LINE>if (!NamedGroup.refersToASpecificCurve(namedGroup)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String curveName = NamedGroup.getName(namedGroup);<NEW_LINE>if (curveName == null) {...
e.getMessage(), e);
740,037
protected boolean doTokensMatchPattern(List<Token> previousTokens, Token current, Pattern regex) {<NEW_LINE>if (regex == PLSQL_PACKAGE_DEFINITION_REGEX && previousTokens.stream().anyMatch(t -> t.getType() == TokenType.KEYWORD && t.getText().equalsIgnoreCase("ACCESSIBLE"))) {<NEW_LINE>ArrayList<String> tokenStrings = ne...
prevToken = previousTokens.get(i);
1,430,441
synchronized void update(TServerInstance tsi, List<TCompactionQueueSummary> summaries) {<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>Map<String, List<Short>> summariesToLog = new TreeMap<>();<NEW_LINE>summaries.forEach(summary -> summariesToLog.computeIfAbsent(summary.getQueue(), k -> new ArrayList<>()).add<MASK><NEW...
(summary.getPriority()));
1,296,685
/*<NEW_LINE>* Creates a nentry and adds it to currentGroup.<NEW_LINE>* PARAMETERS:<NEW_LINE>* c: the context (this)<NEW_LINE>* currentGroup: the group to add the menu<NEW_LINE>* address: the parameter address<NEW_LINE>* label: the name of the menu<NEW_LINE>* init: the default item of the menu<NEW_LINE>* min: the ...
parametersInfo.values[parameterNumber] = init;
831,084
protected // }<NEW_LINE>int addPoints2D(List<AssociatedPair> points, DMatrixRMaj A, int rows) {<NEW_LINE>Point2D_F64 f = new Point2D_F64();<NEW_LINE>Point2D_F64 s = new Point2D_F64();<NEW_LINE>for (int i = 0; i < points.size(); i++) {<NEW_LINE>AssociatedPair p = points.get(i);<NEW_LINE>adjustPoint(p, f, s);<NEW_LINE>A....
rows, 8, s.y);
102,617
public Builder mergeFrom(com.databricks.api.proto.databricks.Databricks.DatabricksRpcOptions other) {<NEW_LINE>if (other == com.databricks.api.proto.databricks.Databricks.DatabricksRpcOptions.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (endpointsBuilder_ == null) {<NEW_LINE>if (!other.endpoints_.isEmpty()) ...
endpointsBuilder_.addAllMessages(other.endpoints_);
346,681
public SparseArray<Barcode> detect(Frame frame) {<NEW_LINE>if (frame == null)<NEW_LINE>throw new IllegalArgumentException("No frame supplied.");<NEW_LINE>SparseArray<Barcode> <MASK><NEW_LINE>if (remote != null) {<NEW_LINE>FrameMetadataParcel metadataParcel = frame.getMetadata().createParcel();<NEW_LINE>Barcode[] barcod...
result = new SparseArray<>();
945,941
public void serialize(Node node, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException {<NEW_LINE>jgen.writeStartObject();<NEW_LINE>// jgen.writeStringField("id", node.getNodeName());serverInstanceList<NEW_LINE>// necessary for go.js<NEW_LINE>jgen.writeStringField("key", node.getN...
getServiceType().toString());
1,071,433
public void renderTo(Iterable<BlockDoc> blocks, Element parent) {<NEW_LINE>Document document = parent.getOwnerDocument();<NEW_LINE>// <thead><NEW_LINE>// <tr><NEW_LINE>// <td>Block</td><NEW_LINE>// <td>Description</td><NEW_LINE>// </tr><NEW_LINE>// </thead><NEW_LINE>Element thead = document.createElement("thead");<NEW_...
(document.createTextNode("Incubating"));
133,264
private void reportSocketStats(long channelId, InternalWithLogId socketLogId) {<NEW_LINE>final long socketId = socketLogId.getLogId().getId();<NEW_LINE>InternalInstrumented<InternalChannelz.SocketStats> iSocket = channelz.getSocket(socketId);<NEW_LINE>if (iSocket == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final St...
socketStat2StrHelper = MoreObjects.toStringHelper("");
426,404
public void handleResetSequence(final ResetSequenceRequest request, final RequestProcessClosure<BaseRequest, BaseResponse<?>> closure) {<NEW_LINE>final ResetSequenceResponse response = new ResetSequenceResponse();<NEW_LINE>response.setRegionId(getRegionId());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>KVParameterRequires....
response.setRegionEpoch(getRegionEpoch());
797,633
public void reset(final BaseActivity activity, final RedditCommentListItem comment, final boolean updateOnly) {<NEW_LINE>if (!updateOnly) {<NEW_LINE>if (!comment.isComment()) {<NEW_LINE>throw new RuntimeException("Not a comment");<NEW_LINE>}<NEW_LINE>if (mComment != comment) {<NEW_LINE>if (mComment != null) {<NEW_LINE>...
comment.asComment(), this);
1,377,116
private BlockLocation makeLocation(long code, long start, long len) {<NEW_LINE>long index = (start + len / 2) / blocksize / 4;<NEW_LINE>BlockLocation blockLocation;<NEW_LINE>String[] ns = new String[cacheReplica];<NEW_LINE>String[] hs = new String[cacheReplica];<NEW_LINE>String host = cachedHosts.getOrDefault(hash.get(...
, (Object) getStorageIds());
311,353
public Event save(Event entity) {<NEW_LINE>if (entity.getTypeSelect() == EventRepository.TYPE_MEETING) {<NEW_LINE>super.save(entity);<NEW_LINE>Beans.get(EventService.class).manageFollowers(entity);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (creator == null) {<NEW_LINE>creator = AuthUtils.getUser();<NEW_LINE>}<NEW_LINE>if ...
User creator = entity.getCreatedBy();
927,266
public Parent createContent() {<NEW_LINE>final Pane root = new Pane();<NEW_LINE>root.setPrefSize(400, 200);<NEW_LINE>root.setMinSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>root.setMaxSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>Rectangle rect = new Rectangle(-25, -25, 50, 50);<NEW_LINE>rect.setArcH...
parallel.setCycleCount(Timeline.INDEFINITE);
1,548,504
private PullSnapshotResp forwardPullSnapshot(PullSnapshotRequest request) throws TException {<NEW_LINE>// if this node has been set readOnly, then it must have been synchronized with the leader<NEW_LINE>// otherwise forward the request to the leader<NEW_LINE>if (dataGroupMember.getLeader() != null && !ClusterConstant.E...
name, dataGroupMember.getLeader());
408,288
public MaterializationKey defineMaterialization(final CalciteSchema schema, TileKey tileKey, String viewSql, List<String> viewSchemaPath, String suggestedTableName, TableFactory tableFactory, boolean create, boolean existing) {<NEW_LINE>final MaterializationActor.QueryKey queryKey = new MaterializationActor.QueryKey(vi...
put(materialization.key, materialization);
1,671,367
public void addReflectiveClass(Map<String, ReflectionInfo> reflectiveClasses, Set<String> forcedNonWeakClasses, boolean constructors, boolean method, boolean fields, boolean finalFieldsWritable, boolean weak, boolean serialization, String... className) {<NEW_LINE>for (String cl : className) {<NEW_LINE>ReflectionInfo ex...
cl) && weak, serialization));
87,279
final ListScramSecretsResult executeListScramSecrets(ListScramSecretsRequest listScramSecretsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listScramSecretsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,527,703
public void protocolSelectionChanged(final NSPopUpButton sender) {<NEW_LINE>if (null == sender.selectedItem().representedObject()) {<NEW_LINE>final PreferencesController controller = PreferencesControllerFactory.instance();<NEW_LINE>controller.window().makeKeyAndOrderFront(null);<NEW_LINE>controller.setSelectedPanel(Pr...
getPort(bookmark.getHostname());
582,651
public SignatureVerificationService create(BuildTreeDefinedKeys keyrings, List<URI> keyServers, boolean useKeyServers) {<NEW_LINE>boolean <MASK><NEW_LINE>ExternalResourceRepository repository = transportFactory.createTransport("https", "https", Collections.emptyList(), redirectLocations -> {<NEW_LINE>}).getRepository()...
refreshKeys = this.refreshKeys || !useKeyServers;
558,394
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Removes the username from the specified team.", response = UserPrincipal.class)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 304, message = "The user was not a member of the specified team"), @Ap...
entity("The team could not be found.").build();
1,818,054
protected SdtRun createSdtRun(RPr rPr, String key, String xpath, String prefixmappings) {<NEW_LINE>// create the content control<NEW_LINE>SdtRun sdtRun = Context.getWmlObjectFactory().createSdtRun();<NEW_LINE>// set SdtPr<NEW_LINE>SdtPr sdtPr = createSdtPr(key, xpath, prefixmappings, storeItemID, false);<NEW_LINE>sdtRu...
getContent().add(rnew);
747,016
private void apply() {<NEW_LINE><MASK><NEW_LINE>new Thread(() -> {<NEW_LINE>try (ReplayFile replayFile = ReplayMod.instance.files.open(inputPath)) {<NEW_LINE>replayFile.writeMarkers(markers);<NEW_LINE>replayFile.save();<NEW_LINE>} catch (IOException e) {<NEW_LINE>Utils.error(ReplayModEditor.LOGGER, this, CrashReport.cr...
ProgressPopup progressPopup = new ProgressPopup(this);
594,692
private static boolean applyMatchingTemplate(DocumentParserContext context, String name, DynamicTemplate.XContentFieldType matchType, DateFormatter dateFormatter) throws IOException {<NEW_LINE>DynamicTemplate dynamicTemplate = context.findDynamicTemplate(name, matchType);<NEW_LINE>if (dynamicTemplate == null) {<NEW_LIN...
mappingType + "] for [" + fullName + "]");
1,835,364
final InferSNOMEDCTResult executeInferSNOMEDCT(InferSNOMEDCTRequest inferSNOMEDCTRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(inferSNOMEDCTRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
false), new InferSNOMEDCTResultJsonUnmarshaller());
201,206
private void calculateDampingMoments(FlightConfiguration configuration, FlightConditions conditions, AerodynamicForces total) {<NEW_LINE>// Calculate pitch and yaw damping moments<NEW_LINE>double mul = getDampingMultiplier(configuration, conditions, conditions.getPitchCenter().x);<NEW_LINE>double pitchRate = conditions...
.sign(pitchRate) * pitchDampingMomentMagnitude);
1,131,680
private boolean isModified(ArtifactEntry entry, File file) {<NEW_LINE>long fileLastModified = FileUtils.fileLastModified(file);<NEW_LINE>long entryLastModified = entry.getLastModified();<NEW_LINE>// File 100K entry 10K delta 90k true (entry is much older than the file)<NEW_LINE>// File 10k entry 100k delta 90k...
(fileLastModified - entryLastModified) >= 1010L);
1,604,267
// Copied from NbClassPath:<NEW_LINE>private static void createBootClassPath(List<String> l) {<NEW_LINE>// boot<NEW_LINE>// NOI18N<NEW_LINE>String boot = System.getProperty("sun.boot.class.path");<NEW_LINE>if (boot != null) {<NEW_LINE>StringTokenizer tok = new StringTokenizer(boot, File.pathSeparator);<NEW_LINE>while (...
extensions = System.getProperty("java.ext.dirs");
310,962
public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(<MASK><NEW_LINE>final Triple<IOperandTree, IOperandTree, IOperandTree> operands = Operand...
environment, instruction, instructions, "andi");
379,107
// todo: add the https annotation<NEW_LINE>@GET<NEW_LINE>@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public final Response logout(@Context final HttpServletRequest request, @Context final HttpServletResponse response) {<NEW_LINE>Response res = null;<NEW...
this.log.debug("Doing the logout");
1,427,582
public void refresh(TableCell cell) {<NEW_LINE>Object ds = cell.getDataSource();<NEW_LINE>// needs to be long so we can shift it for sortVal<NEW_LINE>long percentDone = getPercentDone(ds);<NEW_LINE>long sortValue = 0;<NEW_LINE>if (ds instanceof DownloadManager) {<NEW_LINE>DownloadManager dm = <MASK><NEW_LINE>// close e...
(DownloadManager) cell.getDataSource();
1,134,961
public Boolean conditionResult() {<NEW_LINE>Boolean opResult;<NEW_LINE>List<? extends Expression> operands = children();<NEW_LINE>switch(op) {<NEW_LINE>case COMMA:<NEW_LINE>return operands.get(1).conditionResult();<NEW_LINE>case CONSTRUCTOR:<NEW_LINE>return true;<NEW_LINE>case FUNCTION_CALL:<NEW_LINE>return null;<NEW_L...
get(1).conditionResult();
811,100
private TargetGraphCreationResult enhanceTargetGraphIfNeeded(Supplier<DepsAwareExecutor<? super ComputeResult, ?>> depsAwareExecutorSupplier, TargetGraphCreationResult targetGraphCreationResult, boolean isWithTests, boolean isWithDependenciesTests) throws IOException, InterruptedException, BuildFileParseException, Vers...
buckEventBus, new Cells(cell));
1,433,685
public static String format(Text text, FormatToExpression format) {<NEW_LINE>if (text instanceof Simple) {<NEW_LINE>return ((Simple) text).getText();<NEW_LINE>} else if (text instanceof Blank) {<NEW_LINE>return " ";<NEW_LINE>} else if (text instanceof Character) {<NEW_LINE>return "" + ((Character) text).getChar();<NEW_...
(format(t, format));
1,692,551
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>MultiStatus errors = new MultiStatus(GitPlugin.PLUGIN_ID, 1, Messages.GitIndexRefreshJob_ErrorMsg, null);<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>monitor.beginTask("", IProgressMonitor.UNKNOWN);<NEW_LINE>while (true) {<NEW_LINE>if (monitor.isCanceled())...
new ArrayList<IPath>(fRequests);
622,474
public void generate(DdlWrite writer, CreateTable createTable) {<NEW_LINE>reset();<NEW_LINE>String tableName = createTable.getName();<NEW_LINE>List<Column> columns = createTable.getColumn();<NEW_LINE>List<Column> pk = determinePrimaryKeyColumns(columns);<NEW_LINE>DdlIdentity identity = DdlIdentity.NONE;<NEW_LINE>if ((p...
DdlBuffer apply = writer.apply();
1,477,915
public void marshall(CreateTriggerRequest createTriggerRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createTriggerRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createTriggerRequest.get...
createTriggerRequest.getSchedule(), SCHEDULE_BINDING);
1,392,358
private int visit(int node, int last, int source) throws ContradictionException {<NEW_LINE>if (node == -1) {<NEW_LINE>fails();<NEW_LINE>}<NEW_LINE>if (node == last) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>int next = -1;<NEW_LINE>ISetIterator succs = G_R.getSuccessorsOf(node).iterator();<NEW_LINE>while (succs.hasNext()...
mates[node].iterator();
1,505,226
void add(GridNode gridNode) {<NEW_LINE>// handle loading grid storages.<NEW_LINE>if (gridNode.getGridStorage() != null) {<NEW_LINE>final GridStorage gs = gridNode.getGridStorage();<NEW_LINE>final IGrid grid = gs.getGrid();<NEW_LINE>if (grid == null) {<NEW_LINE>this.myStorage = gs;<NEW_LINE>this.myStorage.setGrid(this);...
this.myStorage.setGrid(this);
580,676
public static void convert(GrayU8 input, GrayS32 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW_LINE>int indexSrc = input.getIndex(0, y);<NEW_LINE>int indexDst = output...
.data[i] & 0xFF);
900,506
public Stream<MapResult> parallel(@Name("fragment") String fragment, @Name("params") Map<String, Object> params, @Name("parallelizeOn") String key) {<NEW_LINE>if (params == null)<NEW_LINE>return Cypher.<MASK><NEW_LINE>if (key == null || !params.containsKey(key))<NEW_LINE>throw new RuntimeException("Can't parallelize on...
runCypherQuery(tx, fragment, params);
1,277,307
public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own additive inverse<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>ECFi...
boolean Z1IsOne = Z1.isOne();
1,424,796
protected PartitionInfo buildPartitionInfo() {<NEW_LINE>String tbName = null;<NEW_LINE>TableMeta tableMeta = null;<NEW_LINE>List<ColumnMeta> allColMetas = null;<NEW_LINE>List<ColumnMeta> pkColMetas = null;<NEW_LINE>String tableGroupName = preparedData.getTableGroupName() == null ? null : ((SqlIdentifier) preparedData.g...
, tblType.getTableTypeName()));
908,504
private void paintBits(Graphics2D g, int y) {<NEW_LINE>bitFieldAllocation.refresh(false);<NEW_LINE>Color curColor = g.getColor();<NEW_LINE>BitAttributes[] bitAttributes = bitFieldAllocation.bitAttributes;<NEW_LINE>int x = BYTE_SEPARATOR_THICKNESS;<NEW_LINE>if (bitAttributes[0] != null && bitAttributes[0].leftEndType ==...
dtc = attrs.getDataTypeComponent(false);
1,015,760
private static <T extends TokenId> void logModification(MutableTokenList<T> tokenList, TokenHierarchyEventInfo eventInfo, boolean updateJoined) {<NEW_LINE>int modOffset = eventInfo.modOffset();<NEW_LINE>int removedLength = eventInfo.removedLength();<NEW_LINE>int insertedLength = eventInfo.insertedLength();<NEW_LINE><MA...
CharSequence inputSourceText = tokenList.inputSourceText();
912,753
public Predicate buildPredicate(CriteriaBuilder builder, FieldPathBuilder fieldPathBuilder, From root, String ceilingEntity, String fullPropertyName, Path<Serializable> explicitPath, List<Serializable> directValues) {<NEW_LINE>Path<Serializable> path;<NEW_LINE>if (explicitPath != null) {<NEW_LINE>path = explicitPath;<N...
.equal(path, directValue));
455,437
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {<NEW_LINE>int count = 0;<NEW_LINE>String root = "/";<NEW_LINE>int style = 0;<NEW_LINE>prop.clear();<NEW_LINE>switchboard = (Switchboard) env;<NEW_LINE>isAdmin = switchboard.verifyAuthentication(header);<NE...
tagName = post.get("tag");
509,219
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.comms.CompHandshake#compRequest(com.ibm.ws.sib.comms.CommsConnection, int, int, byte[])<NEW_LINE>*<NEW_LINE>* This method will be invoked when data is received on a connection from a<NEW_LINE>* corresponding 'CommsConnection.requestMFPSchemata()' method. The data<NEW_LINE...
SibTr.debug(tc, "Invalid packetId");
809,956
private String describeQuorum(VotingConfiguration votingConfiguration) {<NEW_LINE>final Set<String> nodeIds = votingConfiguration.getNodeIds();<NEW_LINE>assert nodeIds.isEmpty() == false;<NEW_LINE>final int requiredNodes = nodeIds.size() / 2 + 1;<NEW_LINE>final Set<String> realNodeIds = new HashSet<>(nodeIds);<NEW_LINE...
realNodeIds.removeIf(ClusterBootstrapService::isBootstrapPlaceholder);
1,596,913
private // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void initPersistedTrades() {<NEW_LINE>Set<Trade> toRemove = new HashSet<>();<NEW_LINE>tradableList.forEach(tradeModel -> {<NEW_LINE>boolean valid = initPersistedTrade(tradeModel);<NEW_LINE>if (!valid) {<NEW_LIN...
>(closedTradableManager.getClosedTrades());
1,121,819
// --------//<NEW_LINE>// preAdd //<NEW_LINE>// --------//<NEW_LINE>@Override<NEW_LINE>public List<? extends UITask> preAdd(WrappedBoolean cancel) {<NEW_LINE>final List<UITask> tasks = new ArrayList<>();<NEW_LINE>if (model == null) {<NEW_LINE>model = buildModel();<NEW_LINE>}<NEW_LINE>if (model == null) {<NEW_LINE>cance...
= model.headBox.getBounds();
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...
StandardId.of(symbologyStr, tickerStr);
678,988
private Runnable createCopyWatchTask(final ImageWatcher watcher, final String assemblyName, final MojoParameters mojoParameters, final String containerBaseDir) throws MojoExecutionException {<NEW_LINE>final ImageConfiguration imageConfig = watcher.getImageConfiguration();<NEW_LINE>final AssemblyFiles files = archiveSer...
), e.getMessage());
1,186,414
private void drawDirectionArrows(Canvas canvas, RotatedTileBox tileBox, List<SelectedGpxFile> selectedGPXFiles) {<NEW_LINE>if (!tileBox.isZoomAnimated()) {<NEW_LINE>QuadRect correctedQuadRect = getCorrectedQuadRect(tileBox.getLatLonBounds());<NEW_LINE>for (SelectedGpxFile selectedGpxFile : selectedGPXFiles) {<NEW_LINE>...
trackWidth = getTrackWidth(width, defaultTrackWidth);
1,308,526
// end of Category<NEW_LINE>private static List<Category> loadCategories() {<NEW_LINE>FileObject[] categoryFOs = FileUtil.getConfigFile(SEARCH_PROVIDERS_FOLDER).getChildren();<NEW_LINE>// respect ordering defined in layers<NEW_LINE>List<FileObject> sortedCats = FileUtil.getOrder(Arrays.asList(categoryFOs), false);<NEW_...
, Collections.singleton(curFO));
1,294,893
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "g,ge,l,le".split(",");<NEW_LINE>String stmtText = "@name('s0') select " + "intPrimitive > all (select intPrimitive from SupportBean(theString like \"S%\")#keepall) as g, " + "intPrimitive >= all (select intPrimitive from SupportBean(theString like...
new SupportBean("E3", 3));
357,728
private static RewriteDescriptor findRewrite(ExprNode parent) {<NEW_LINE>List<ExprNodeWithParentPair> valueExpressions = findValueExpressionsDeepMayNull(parent);<NEW_LINE>if (valueExpressions == null) {<NEW_LINE>return new RewriteDescriptorNoValueExpr();<NEW_LINE>}<NEW_LINE>if (valueExpressions.size() == 1) {<NEW_LINE>...
pair = valueExpressions.get(0);
449,146
private void inflateTitleBar(ViewGroup view) {<NEW_LINE>ViewStub stub = (ViewStub) view.findViewById(R.id.com_facebook_picker_title_bar_stub);<NEW_LINE>if (stub != null) {<NEW_LINE><MASK><NEW_LINE>final RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.FILL_PARENT, R...
View titleBar = stub.inflate();
971,113
public boolean remove(K key) throws StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>XATransactionContext<K, V> currentContext = getCurrentContext();<NEW_LINE>if (currentContext.touched(key)) {<NEW_LINE>V oldValue = currentContext.oldValueOf(key);<NEW_LINE>V newValue = currentContext.newValueOf(key);<NEW_LINE>cu...
>> softLockValueHolder = getSoftLockValueHolderFromUnderlyingStore(key);
650,738
public static QuerySupplementInfoListResponse unmarshall(QuerySupplementInfoListResponse querySupplementInfoListResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySupplementInfoListResponse.setRequestId(_ctx.stringValue("QuerySupplementInfoListResponse.RequestId"));<NEW_LINE>querySupplementInfoListResponse.setSuccess(...
(_ctx.stringValue("QuerySupplementInfoListResponse.Message"));
376,040
boolean removeBlobStore(PartitionId id) {<NEW_LINE>rwLock.writeLock().lock();<NEW_LINE>boolean succeed = false;<NEW_LINE>try {<NEW_LINE>BlobStore <MASK><NEW_LINE>if (store == null) {<NEW_LINE>logger.error("Store {} is not found in disk manager", id);<NEW_LINE>} else if (!running || store.isStarted()) {<NEW_LINE>logger....
store = stores.get(id);
1,515,222
public void aggregate(final ByteBuffer buf, final int numRows, final int[] positions, @Nullable final int[] rows, final int positionOffset) {<NEW_LINE>final ReadableVectorMatch match0;<NEW_LINE>if (rows == null) {<NEW_LINE>match0 = VectorMatch.allTrue(numRows);<NEW_LINE>} else {<NEW_LINE>match0 = VectorMatch.wrap(rows)...
= positions[selection[i]];
1,702,338
private QueryResultMetaData createQueryResultMetaData() {<NEW_LINE>List<RawQueryResultColumnMetaData> <MASK><NEW_LINE>columns.add(new RawQueryResultColumnMetaData("", "Id", "Id", Types.VARCHAR, "VARCHAR", 20, 0));<NEW_LINE>columns.add(new RawQueryResultColumnMetaData("", "User", "User", Types.VARCHAR, "VARCHAR", 20, 0)...
columns = new ArrayList<>();
809,926
public void resolverModifyAndCreate(File file) {<NEW_LINE>String code = file.getName();<NEW_LINE>String eurekaProperties = file.getAbsolutePath() + File.separator + GlobalDesktopManager.EUREKA_PROPERTIES;<NEW_LINE>File eurekaFile = new File(eurekaProperties);<NEW_LINE>if (eurekaFile.exists()) {<NEW_LINE>Knife4jAggregat...
EurekaSetting eurekaSetting = knife4jAggregationProperties.getEureka();
307,590
public Parent createContent() {<NEW_LINE><MASK><NEW_LINE>root.setPrefSize(253, 100);<NEW_LINE>root.setMinSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>root.setMaxSize(Pane.USE_PREF_SIZE, Pane.USE_PREF_SIZE);<NEW_LINE>// create a circle<NEW_LINE>final Circle circle = new Circle(25, 25, 20, Color.web("1c89f4"));...
final Pane root = new Pane();
1,694,827
public ComponentPreset asComponentPreset(Boolean legacy, ComponentPreset.Type type, List<MaterialDTO> materials) throws InvalidComponentPresetException {<NEW_LINE>TypedPropertyMap props = new TypedPropertyMap();<NEW_LINE>props.put(ComponentPreset.LEGACY, legacy);<NEW_LINE>addProps(props, materials);<NEW_LINE>// TODO - ...
SIDES, this.getSides());
696,360
private void parseInclude(String element, String project, String fileElement) {<NEW_LINE>try {<NEW_LINE>var includeRoot = new File(element.replace("\"", ""));<NEW_LINE>var p = Paths.get(project);<NEW_LINE>if (!includeRoot.isAbsolute()) {<NEW_LINE>// handle path without drive information but represent absolute path<NEW_...
), includeRoot.getPath());
1,823,258
private <T> void deleteConnectorDefinitionAndAssociations(final ConfigSchema definitionType, final ConfigSchema connectorType, final Class<T> connectorClass, final Function<T, UUID> connectorIdGetter, final Function<T, UUID> connectorDefinitionIdGetter, final UUID definitionId) throws JsonValidationException, IOExcepti...
collect(Collectors.toSet());
1,507,622
private DependencyNode readDependencyTree(org.eclipse.aether.RepositorySystem repositorySystem, RepositorySystemSession repositorySession, MavenProject mavenProject, String scope) {<NEW_LINE>DefaultRepositorySystemSession session = new DefaultRepositorySystemSession(repositorySession);<NEW_LINE>ConflictResolver transfo...
.toDependency(dependency, stereotypes));
294,275
public static Parameter createInstance(AnnotationModel annotation, ApiContext context) {<NEW_LINE>ParameterImpl from = new ParameterImpl();<NEW_LINE>from.setName(annotation.getValue("name", String.class));<NEW_LINE>EnumModel inEnum = annotation.getValue("in", EnumModel.class);<NEW_LINE>if (inEnum != null) {<NEW_LINE>fr...
(inEnum.getValue()));
245,102
public void encode(DMatrixRMaj F, double[] param) {<NEW_LINE>// see which columns are to be used<NEW_LINE>selectColumns(F);<NEW_LINE>// set the largest element in the first two columns and normalize<NEW_LINE>// using that value<NEW_LINE>double[] v = new double[] { F.get(0, col0), F.get(1, col0), F.get(2, col0), F.get(0...
, v[i + 3]);
787,362
public List<MethodMetadata> parseAndValidateMetadata(Class<?> targetType) {<NEW_LINE>checkState(targetType.getTypeParameters().length == 0, "Parameterized types unsupported: %s", targetType.getSimpleName());<NEW_LINE>checkState(targetType.getInterfaces().length <= 1, "Only single inheritance supported: %s", targetType....
>(result.values());
472,372
public void initialize() throws IOException {<NEW_LINE>String port = networkListener.getPort();<NEW_LINE>portNumber = 8080;<NEW_LINE>if (port == null) {<NEW_LINE>logger.severe(KernelLoggerInfo.noPort);<NEW_LINE>throw new RuntimeException("Cannot find port information from domain configuration");<NEW_LINE>}<NEW_LINE>try...
grizzlyService.getHabitat(), networkListener);
254,245
public CreateRuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateRuleResult createRuleResult = new CreateRuleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
JsonToken token = context.getCurrentToken();
1,292,805
private void queryItems() {<NEW_LINE>// <QueryItems><NEW_LINE>// Set some common query options<NEW_LINE>int preferredPageSize = 10;<NEW_LINE>CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();<NEW_LINE>// queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4<NEW_LINE>// ...
" and request charge of " + cosmosItemPropertiesFeedResponse.getRequestCharge());
906,846
public Memory __construct(Environment env, TraceInfo traceInfo, String isoString, int options) {<NEW_LINE>String[] parts = Arrays.stream(isoString.split("/")).filter(s -> !s.isEmpty()).toArray(String[]::new);<NEW_LINE>Messages.Item badFormat = new Messages.Item("DatePeriod::__construct(): Unknown or bad format (%s)");<...
, badFormat.fetch(isoString));
1,276,748
public INDArray permute(int... rearrange) {<NEW_LINE>Preconditions.checkArgument(rearrange.length == rank(), "Incorrect number of arguments for permute function:" + " got arguments %s for rank %s array. Number of arguments must equal array rank", rearrange, rank());<NEW_LINE>Nd4j.getCompressor().autoDecompress(this);<N...
doPermuteSwap(shape(), rearrange);
1,501,338
public static List<TabletMigration> checkMigrationSanity(Set<TServerInstance> current, List<TabletMigration> migrations) {<NEW_LINE>List<TabletMigration> result = new ArrayList<>(migrations.size());<NEW_LINE>for (TabletMigration m : migrations) {<NEW_LINE>if (m.tablet == null) {<NEW_LINE>log.warn("Balancer gave back a ...
log.warn("Balancer wants to move a tablet to a server that is not current: {}", m);
1,209,058
protected int calculateRowHeadersSizes() {<NEW_LINE>int widthSum = 0;<NEW_LINE>for (int i = rowGroups.size() - 1, heightSum = 0; i >= 0; --i) {<NEW_LINE>JRDesignCrosstabRowGroup group = (JRDesignCrosstabRowGroup) rowGroups.get(i);<NEW_LINE>widthSum += group.getWidth();<NEW_LINE>JRDesignCrosstabCell cell = crossCells[i ...
][columnGroups.size()];
1,489,124
private void protectControls() {<NEW_LINE>Result result = getResult();<NEW_LINE>final boolean forClass = !forInterface;<NEW_LINE>fieldCheckBox.setEnabled(forClass);<NEW_LINE>returnCheckBox.setEnabled((result.mode == PropertyPattern.READ_WRITE || result.mode == PropertyPattern.READ_ONLY) && result.withField && forClass)...
) && result.niGetter && forClass);
836,571
final CreateDedicatedIpPoolResult executeCreateDedicatedIpPool(CreateDedicatedIpPoolRequest createDedicatedIpPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDedicatedIpPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,628,354
final SearchResult executeSearch(SearchRequest searchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Sea...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "Search");
1,688,803
public static String serializeToJson(CacheLine cacheLine) {<NEW_LINE>JSONObject cacheLineJson = new JSONObject();<NEW_LINE>cacheLineJson.put("rowCount", cacheLine.getOriginRowCount());<NEW_LINE>cacheLineJson.put("cardinalityMap", cacheLine.getCardinalityMap());<NEW_LINE>cacheLineJson.put("nullCountMap", cacheLine.getNu...
).get(columnName)));
391,043
private static String generateResponseFilterForSuspendedMethod(MethodInfo targetMethod, ClassOutput classOutput, Set<DotName> unwrappableTypes, Set<String> additionalBeanAnnotations) {<NEW_LINE>DotName returnDotName = determineReturnDotNameOfSuspendMethod(targetMethod);<NEW_LINE>if (!returnDotName.equals(VOID)) {<NEW_L...
toString(), ABSTRACT_SUSPENDED_RES_FILTER, additionalBeanAnnotations);
928,392
protected void onDraw(Canvas canvas) {<NEW_LINE>super.onDraw(canvas);<NEW_LINE>// set paint style, Style.FILL will fill the color, Style.STROKE will stroke the color<NEW_LINE>paint.setStyle(Paint.Style.FILL);<NEW_LINE>canvas.drawRect(getDimensionInPixel(0), getHeight() - (40 + random.nextInt((int) (getHeight() / 1.5f) ...
getHeight() - 15, paint);
1,518,753
public synchronized void process(JCas jcas) throws AnalysisEngineProcessException {<NEW_LINE>JCas questionView, passagesView, pickedPassagesView;<NEW_LINE>try {<NEW_LINE>questionView = jcas.getView("Question");<NEW_LINE>passagesView = jcas.getView("Passages");<NEW_LINE>pickedPassagesView = jcas.getView("PickedPassages"...
int n_picked = 0, n_gspicked = 0;
1,443,538
public static DescribesummaryResponse unmarshall(DescribesummaryResponse describesummaryResponse, UnmarshallerContext context) {<NEW_LINE>describesummaryResponse.setRequestId(context.stringValue("DescribesummaryResponse.RequestId"));<NEW_LINE>describesummaryResponse.setCount(context.integerValue("DescribesummaryRespons...
("DescribesummaryResponse.WarningSummarys[" + i + "].PendingCount"));
438,956
public static ConsoleLogger newLogger(Verbosity verbosity, HttpTraceLevel httpTraceLevel, ConsoleOutput consoleOutput, PrintWriter stdout, PrintWriter stderr, SingleThreadedExecutor executor) {<NEW_LINE>boolean enableRichProgress = isRichConsole(consoleOutput, httpTraceLevel) && verbosity.atLeast(Verbosity.lifecycle);<...
builder.info(stdout::println);
291,141
// GEN-LAST:event_testConnectionActionPerformed<NEW_LINE>private void removeConfigurationButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_removeConfigurationButtonActionPerformed<NEW_LINE>ConfigurationComboModel model = (ConfigurationComboModel) configurationCombo.getModel();<NEW_LINE...
"EdgeListPanel.alert.configuration_removed", item.toString());
942,052
private int conditionalCall(int from, int to) throws Exception {<NEW_LINE>int thisInstructionsSize = 5;<NEW_LINE>String fromString = "0x" + Integer.toHexString(from);<NEW_LINE>String toString = "0x" + Integer.toHexString(to);<NEW_LINE>String endString = "0x" + Integer.toHexString(from + thisInstructionsSize - 1);<NEW_L...
CONDITIONAL_CALL, SourceType.ANALYSIS, 0);
784,601
public void run(Configuration configuration) {<NEW_LINE>SupportExceptionHandlerFactory.getFactoryContexts().clear();<NEW_LINE>SupportExceptionHandlerFactory.getHandlers().clear();<NEW_LINE>configuration.getRuntime().getExceptionHandling().getHandlerFactories().clear();<NEW_LINE>configuration.getRuntime().getExceptionHa...
getHandlers().get(0);
1,047,192
static <T> RedBlackTree<T> merge(RedBlackTree<T> t1, RedBlackTree<T> t2) {<NEW_LINE>if (t1.isEmpty()) {<NEW_LINE>return t2;<NEW_LINE>} else if (t2.isEmpty()) {<NEW_LINE>return t1;<NEW_LINE>} else {<NEW_LINE>final Node<T> n1 = (Node<T>) t1;<NEW_LINE>final Node<T> n2 <MASK><NEW_LINE>final int comparison = n1.blackHeight ...
= (Node<T>) t2;
1,065,808
public static QueryRmsAlarmrecordsResponse unmarshall(QueryRmsAlarmrecordsResponse queryRmsAlarmrecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRmsAlarmrecordsResponse.setRequestId(_ctx.stringValue("QueryRmsAlarmrecordsResponse.RequestId"));<NEW_LINE>queryRmsAlarmrecordsResponse.setResultCode(_ctx.stringValu...
("QueryRmsAlarmrecordsResponse.Response.Entities[" + i + "].Entity.AppName"));
1,828,904
public AccessTokenResponse doTokenExchange(String realm, String token, String requestedIssuer, String clientId, String clientSecret) throws Exception {<NEW_LINE>try (CloseableHttpClient client = (CloseableHttpClient) new HttpClientBuilder().disableTrustManager().build()) {<NEW_LINE>String exchangeUrl = KeycloakUriBuild...
StringEntity(getPostDataString(parameters)));
660,627
public String updateAssetGroupDetails(final CreateUpdateAssetGroupDetails updateAssetGroupDetails, final String userId) throws PacManException {<NEW_LINE>AssetGroupDetails isAssetGroupExits = assetGroupRepository.findByGroupName(updateAssetGroupDetails.getGroupName());<NEW_LINE>if (isAssetGroupExits != null) {<NEW_LINE...
processUpdateAssetGroupDetails(updateAssetGroupDetails, assetGroupAlias, userId);
701,646
private void syncRegistrarContacts(Registrar registrar) {<NEW_LINE>String groupKey = "";<NEW_LINE>try {<NEW_LINE>Set<RegistrarContact> registrarContacts = registrar.getContacts();<NEW_LINE>long totalAdded = 0;<NEW_LINE>long totalRemoved = 0;<NEW_LINE>for (final RegistrarContact.Type type : RegistrarContact.Type.values(...
throw new RuntimeException(msg, e);
591,600
protected int executeCommand() throws CommandException {<NEW_LINE>CLICommand command = null;<NEW_LINE>if (domainDirParam != null && nodeDir != null) {<NEW_LINE>throw new CommandException(STRINGS.get("both.domaindir.nodedir.not.allowed"));<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (isDomain()) {<NEW_LINE>// is it domain<NEW...
[arguments.size()]);
858,517
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = ...
persist(script, CheckPersistType.all);