idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,267,653
private static void stopTabletServer(final ClientContext context, List<String> servers, final boolean force) throws AccumuloException, AccumuloSecurityException {<NEW_LINE>if (context.getManagerLocations().isEmpty()) {<NEW_LINE>log.info("No managers running. Not attempting safe unload of tserver.");<NEW_LINE>return;<NE...
ZooCache zc = context.getZooCache();
703,860
public Route.Handler apply(@Nonnull Route.Handler next) {<NEW_LINE>long timestamp = System.currentTimeMillis();<NEW_LINE>return ctx -> {<NEW_LINE>// Take remote address here (less chances of loosing it on interrupted requests).<NEW_LINE>String remoteAddr = ctx.getRemoteAddress();<NEW_LINE>ctx.onComplete(context -> {<NE...
timestamp)).append(BR);
835,297
protected int[] createClusters(ODatabaseDocumentInternal database, String className, int minimumClusters) {<NEW_LINE>className = className.toLowerCase(Locale.ENGLISH);<NEW_LINE>int[] clusterIds;<NEW_LINE>if (internalClasses.contains(className.toLowerCase(Locale.ENGLISH))) {<NEW_LINE>// INTERNAL CLASS, SET TO 1<NEW_LINE...
.get(clusterIds[0]);
1,721,423
// GEN-LAST:event_moveUpHandler<NEW_LINE>private void moveDownHandler(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_moveDownHandler<NEW_LINE>int selectedRow = getSelectedRow();<NEW_LINE>if (selectedRow == -1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Integer type = (Integer) handlerTableModel.getValueAt(se...
).setSelectionInterval(newSelectedRow, newSelectedRow);
1,670,192
private void changeRole(PrimaryTerm term) {<NEW_LINE>threadContext.execute(() -> {<NEW_LINE>if (term.term() > currentTerm) {<NEW_LINE>log.debug("Term changed: {}", term);<NEW_LINE>currentTerm = term.term();<NEW_LINE>primary = term.primary() != null ? term.primary().memberId() : null;<NEW_LINE>backups = term.backups(des...
collect(Collectors.toList());
255,644
ClusterState reassignTasks(final ClusterState currentState) {<NEW_LINE>ClusterState clusterState = currentState;<NEW_LINE>final PersistentTasksCustomMetadata tasks = currentState.getMetadata().custom(PersistentTasksCustomMetadata.TYPE);<NEW_LINE>if (tasks != null) {<NEW_LINE>logger.trace("reassigning {} persistent task...
tasks().size());
1,086,709
public void initSubAllocator() {<NEW_LINE>int i, k;<NEW_LINE>Arrays.fill(heap, freeListPos, freeListPos + sizeOfFreeList(), (byte) 0);<NEW_LINE>pText = heapStart;<NEW_LINE>int size2 = FIXED_UNIT_SIZE * (subAllocatorSize / 8 / FIXED_UNIT_SIZE * 7);<NEW_LINE>int realSize2 = size2 / FIXED_UNIT_SIZE * UNIT_SIZE;<NEW_LINE>i...
/ FIXED_UNIT_SIZE * UNIT_SIZE + size1 % FIXED_UNIT_SIZE;
680,827
final GetPortfolioPreferencesResult executeGetPortfolioPreferences(GetPortfolioPreferencesRequest getPortfolioPreferencesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPortfolioPreferencesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,689,746
public void addUnion(AbstractQueryBuilder<?> subQuery) {<NEW_LINE>ElementUnion union = null;<NEW_LINE>ElementGroup clause = getClause();<NEW_LINE>// if the last element is a union make sure we add to it.<NEW_LINE>if (!clause.isEmpty()) {<NEW_LINE>Element lastElement = clause.getElements().get(clause.getElements().size(...
getWhereHandler().getClause());
223,410
public void renderForeground(PoseStack matrix, int mouseX, int mouseY) {<NEW_LINE>super.renderForeground(matrix, mouseX, mouseY);<NEW_LINE>int xAxis = mouseX - getGuiLeft()<MASK><NEW_LINE>int slotX = (xAxis - relativeX) / 18, slotY = (yAxis - relativeY) / 18;<NEW_LINE>if (slotX >= 0 && slotY >= 0 && slotX < xSlots && s...
, yAxis = mouseY - getGuiTop();
302,851
public void marshall(GetMergeConflictsRequest getMergeConflictsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getMergeConflictsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(getMergeConf...
getMergeConflictsRequest.getConflictResolutionStrategy(), CONFLICTRESOLUTIONSTRATEGY_BINDING);
1,392,641
public void assignLabels(LingoProcessingContext context, DoubleMatrix2D stemCos, IntIntHashMap filteredRowToStemIndex, DoubleMatrix2D phraseCos) {<NEW_LINE>final PreprocessingContext preprocessingContext = context.preprocessingContext;<NEW_LINE>final <MASK><NEW_LINE>final int[] labelsFeatureIndex = preprocessingContext...
int firstPhraseIndex = preprocessingContext.allLabels.firstPhraseIndex;
1,205,749
private List<Source> buildEventSources(AlarmMessage msg) {<NEW_LINE>final List<Source> sources = new ArrayList<>(2);<NEW_LINE>final Source.SourceBuilder sourcePrototype = Source.builder();<NEW_LINE>switch(msg.getScopeId()) {<NEW_LINE>case DefaultScopeDefine.SERVICE_RELATION:<NEW_LINE>final IDManager.ServiceID.ServiceID...
(endpointServiceName).build());
525,305
public static void addEngineLoggingData(String type, String message, String engineType, ObjectMapper objectMapper) {<NEW_LINE>ObjectNode loggingNode = objectMapper.createObjectNode();<NEW_LINE>loggingNode.put("message", message);<NEW_LINE>loggingNode.put("engineType", engineType);<NEW_LINE>LoggingSession loggingSession...
("scopeDefinitionId").asText());
1,241,870
public static DescribeForwardTableEntriesResponse unmarshall(DescribeForwardTableEntriesResponse describeForwardTableEntriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeForwardTableEntriesResponse.setRequestId(_ctx.stringValue("DescribeForwardTableEntriesResponse.RequestId"));<NEW_LINE>describeForwardTableEnt...
("DescribeForwardTableEntriesResponse.ForwardTableEntries[" + i + "].IpProtocol"));
776,937
public Facet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Facet facet = new Facet();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
class).unmarshall(context));
88,450
public static Schema infer(List<Writable> record) {<NEW_LINE>Schema.Builder builder = new Schema.Builder();<NEW_LINE>for (int i = 0; i < record.size(); i++) {<NEW_LINE>if (record.get(i) instanceof DoubleWritable)<NEW_LINE>builder.addColumnDouble(String.valueOf(i));<NEW_LINE>else if (record.get(i) instanceof IntWritable...
(String.valueOf(i));
180,579
public com.amazonaws.services.fis.model.ServiceQuotaExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.fis.model.ServiceQuotaExceededException serviceQuotaExceededException = new com.amazonaws.services.fis.model.ServiceQuotaExceededException(null)...
JsonToken token = context.getCurrentToken();
147,741
public static void main(String[] args) throws Exception {<NEW_LINE>Args searchSolrArgs = new Args();<NEW_LINE>CmdLineParser parser = new CmdLineParser(searchSolrArgs, ParserProperties.defaults().withUsageWidth(90));<NEW_LINE>try {<NEW_LINE>parser.parseArgument(args);<NEW_LINE>} catch (CmdLineException e) {<NEW_LINE>Sys...
parser.printUsage(System.err);
1,437,819
public Future<?> submitTask() {<NEW_LINE>return executor.submit(new Callable<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void call() throws Exception {<NEW_LINE>// Commented out lines below are only possible from an EJB.<NEW_LINE>// They are not possible for a task that was submitted from an EJB.<NEW_LINE>In...
"Unexpected resource ref result " + executor1 + " for " + executor);
371,194
final ListTagsResult executeListTags(ListTagsRequest listTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,756,466
private Answer execute(ListTemplateCommand cmd) {<NEW_LINE>if (!_inSystemVM) {<NEW_LINE>return new ListTemplateAnswer(null, null);<NEW_LINE>}<NEW_LINE>DataStoreTO store = cmd.getDataStore();<NEW_LINE>if (store instanceof NfsTO) {<NEW_LINE>NfsTO nfs = (NfsTO) store;<NEW_LINE>String secUrl = nfs.getUrl();<NEW_LINE>String...
secUrl, cmd.getNfsVersion());
604,914
// computes all subtractions in input string: had to be called twice in gunnercal<NEW_LINE>public static String subtraction(String input) {<NEW_LINE>double num1 = 0, num2 = 0, ans = 0;<NEW_LINE>int b = 0, t1 = 0, t2 = 0;<NEW_LINE>String anstring = "";<NEW_LINE>String temp = "";<NEW_LINE>int count = 0;<NEW_LINE>while (b...
input.substring(t2 + 1);
252,108
public MediaConfigurePayload location(Location loc) {<NEW_LINE>Location payloadLoc = new Location();<NEW_LINE>payloadLoc.setExternal_id(loc.getExternal_id());<NEW_LINE>payloadLoc.setName(loc.getName());<NEW_LINE>payloadLoc.setAddress(loc.getAddress());<NEW_LINE>payloadLoc.setLat(loc.getLat());<NEW_LINE>payloadLoc.<MASK...
setLng(loc.getLng());
277,366
protected ActivityBehavior createCamelActivityBehavior(TaskWithFieldExtensions task, List<FieldExtension> fieldExtensions) {<NEW_LINE>try {<NEW_LINE>Class<?> theClass = null;<NEW_LINE>FieldExtension behaviorExtension = null;<NEW_LINE>for (FieldExtension fieldExtension : fieldExtensions) {<NEW_LINE>if ("camelBehaviorCla...
theClass = Class.forName("org.activiti.camel.impl.CamelBehaviorDefaultImpl");
1,207,883
private void emitRequiredSequence(TypeSpec.Builder intentBuilderTypeBuilder, List<ExtraInjection> requiredInjections) {<NEW_LINE>if (!target.hasRequiredFields) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final TypeName generic = getInitialStateGeneric(false);<NEW_LINE>TypeSpec.Builder requiredSequenceBuilder = TypeSpec.clas...
addMethod(constructorBuilder.build());
1,351,622
public Mono<Response<Void>> generalizeWithResponseAsync(String resourceGroupName, String vmName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter resourceGroupName is re...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,421,031
protected void doLogin() {<NEW_LINE>String login = loginField.getValue();<NEW_LINE>String password = passwordField.getValue() != null ? passwordField.getValue() : "";<NEW_LINE>Map<String, Object> params = new HashMap<>(urlRouting.getState().getParams());<NEW_LINE>if (StringUtils.isEmpty(login) || StringUtils.isEmpty(pa...
Locale selectedLocale = localesSelect.getValue();
1,340,611
private void logTask(long startTimeNanos, long duration, ProfilerTask type, String description) {<NEW_LINE>Preconditions.checkNotNull(description);<NEW_LINE>Preconditions.checkState(!"".equals(description), "No description -> not helpful");<NEW_LINE>if (duration < 0) {<NEW_LINE>// See note in Clock#nanoTime, which is u...
tasksHistograms[type.ordinal()];
1,378,126
public void eliminateSharedStreams() {<NEW_LINE>if (!sharedStreams)<NEW_LINE>return;<NEW_LINE>sharedStreams = false;<NEW_LINE>if (pageRefs.size() == 1)<NEW_LINE>return;<NEW_LINE>List<PdfObject> newRefs = new ArrayList<>();<NEW_LINE>List<PdfObject> newStreams = new ArrayList<>();<NEW_LINE>IntHashtable visited = new IntH...
ref.getNumber(), 1);
197,831
public DigestSupport digest(OciVaultDigestConfig providerConfig) {<NEW_LINE>DigestFunction digestFunction = (data, preHashed) -> {<NEW_LINE>Sign.Request request = providerConfig.signRequest().message(Base64Value.create(data)).messageType(preHashed ? Sign.Request.MESSAGE_TYPE_DIGEST : Sign.Request.MESSAGE_TYPE_RAW);<NEW...
map(Verify.Response::isValid);
1,138,415
private void drawPoints(float[] verArray, byte[] colorArray) {<NEW_LINE>if (colorArray != null) {<NEW_LINE>ByteBuffer tex = ByteBuffer.allocateDirect(colorArray.length);<NEW_LINE>tex.order(ByteOrder.nativeOrder());<NEW_LINE>tex.put(colorArray);<NEW_LINE>tex.position(0);<NEW_LINE><MASK><NEW_LINE>GLES10.glColorPointer(4,...
GLES10.glEnableClientState(GLES10.GL_COLOR_ARRAY);
1,625,980
private String replaceOrAddFontFamilyInStyle(String style, String fontFamily) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int fontFamilyStart = style.indexOf(SVG_ATTRIBUTE_fontFamily + ":");<NEW_LINE>if (fontFamilyStart >= 0) {<NEW_LINE>fontFamilyStart = fontFamilyStart + SVG_ATTRIBUTE_fontFamily.length...
style.indexOf(";", fontFamilyStart);
764,515
private void addLabelAndReference(Program program, Instruction switchInstruction, Address target, String label) {<NEW_LINE>program.getReferenceManager().addMemoryReference(switchInstruction.getMinAddress(), target, RefType.COMPUTED_JUMP, SourceType.ANALYSIS, CodeUnit.MNEMONIC);<NEW_LINE>// put switch table cases into n...
this, e1.getMessage());
1,203,456
public Void call(final OBaseWorkLoadContext context) {<NEW_LINE>final OWorkLoadContext graphContext = ((OWorkLoadContext) context);<NEW_LINE>final OrientBaseGraph graph = graphContext.graph;<NEW_LINE>for (int i = 0; i < startingVertices.size(); ++i) {<NEW_LINE>final Iterable<OrientVertex> commandResult = graph.command(...
addAndGet(depth.size());
799,623
public JSType buildRecordTypeFromObject(ObjectType objType) {<NEW_LINE>RecordType recType = objType.toMaybeRecordType();<NEW_LINE>// If it can be casted to a record type then return<NEW_LINE>if (recType != null) {<NEW_LINE>return recType;<NEW_LINE>}<NEW_LINE>// TODO(lpino): Handle inherited properties<NEW_LINE>Set<Stri...
new ImmutableMap.Builder<>();
521,769
public OptionValues parse(String[] args) {<NEW_LINE>List<String> remainingArgs = new ArrayList<>();<NEW_LINE>Set<String> errors = new HashSet<>();<NEW_LINE>for (String arg : args) {<NEW_LINE>boolean isAnalysisOption = false;<NEW_LINE>isAnalysisOption |= parseOption(CommonOptionParser.HOSTED_OPTION_PREFIX, allAnalysisOp...
String[0]))));
382,188
private void gwFieldValueBooleanV(MethodWriterContext mwc, FieldWriter fieldWriter, int OBJECT, int i, boolean jsonb) {<NEW_LINE>MethodWriter mw = mwc.mw;<NEW_LINE>String classNameType = mwc.classNameType;<NEW_LINE>int FIELD_VALUE = mwc.var(boolean.class);<NEW_LINE>int WRITE_DEFAULT_VALUE = mwc.var(NOT_WRITE_DEFAULT_VA...
genGetObject(mwc, fieldWriter, OBJECT);
442,658
public Node create3dContent() {<NEW_LINE>Cube c = new Cube(50, Color.RED, 1);<NEW_LINE>c.rx.setAngle(45);<NEW_LINE>c.ry.setAngle(45);<NEW_LINE>Cube c2 = new Cube(<MASK><NEW_LINE>c2.setTranslateX(100);<NEW_LINE>c2.rx.setAngle(45);<NEW_LINE>c2.ry.setAngle(45);<NEW_LINE>Cube c3 = new Cube(50, Color.ORANGE, 1);<NEW_LINE>c3...
50, Color.GREEN, 1);
1,084,314
public boolean apply(Game game, Ability source) {<NEW_LINE>Player you = game.getPlayer(source.getControllerId());<NEW_LINE>if (you != null) {<NEW_LINE>Spell spell = game.getStack().getSpell(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (spell != null) {<NEW_LINE>ObjectColor color1 = new ObjectColor((Stri...
.getSourceId() + "_color1"));
571,035
private byte[] processRequest(byte[] request, int offset, int length) {<NEW_LINE>try {<NEW_LINE>byte[] decrypted;<NEW_LINE>{<NEW_LINE>byte[] IV = new byte[16];<NEW_LINE>System.arraycopy(request, offset, IV, 0, IV.length);<NEW_LINE>Cipher decipher = Cipher.getInstance("AES/CBC/PKCS5Padding");<NEW_LINE>decipher.init(Ciph...
handleRequest(originator, endpoint_url, decrypted);
86,047
private void dispatchOnSameActivity(PvmExecutionImpl targetScope, PvmExecutionImpl replacedBy, Map<PvmExecutionImpl, String> activityIds, Map<PvmExecutionImpl, String> activityInstanceIds, DelayedVariableEvent delayedVariableEvent) {<NEW_LINE>// check if the target scope has the same activity id and activity instance i...
String currentActivityId = targetScope.getActivityId();
1,440,969
public void gotData(String k, int flags, byte[] data) {<NEW_LINE>if (isWrongKeyReturned(key, k))<NEW_LINE>return;<NEW_LINE>if (log.isDebugEnabled() && client.getPool().getEVCacheClientPoolManager().shouldLog(appName))<NEW_LINE>log.debug("Read data : key " + key + "; flags : " + flags + "; data : " + data);<NEW_LINE>if ...
Transcoder<T>) getTranscoder();
342,161
private void validateType(TypeElement type) {<NEW_LINE>ElementKind kind = type.getKind();<NEW_LINE>boolean kindOk = kind.equals(ElementKind.CLASS) || (appliesToInterfaces && kind.equals(ElementKind.INTERFACE));<NEW_LINE>if (!kindOk) {<NEW_LINE><MASK><NEW_LINE>errorReporter.abortWithError(type, "[%sWrongType] @%s only a...
String appliesTo = appliesToInterfaces ? "classes and interfaces" : "classes";
955,888
public void keyTyped(KeyEvent evt) {<NEW_LINE><MASK><NEW_LINE>if (isCharForSearch(evt)) {<NEW_LINE>if (paths == null) {<NEW_LINE>paths = getVisiblePaths();<NEW_LINE>}<NEW_LINE>searchBuf.append(keyChar);<NEW_LINE>resetBufferTimer.restart();<NEW_LINE>TreePath activePath = tree.getSelectionPath();<NEW_LINE>for (int i = 0;...
char keyChar = evt.getKeyChar();
591,281
private Map<String, float[]> deprecatedGetFeatureMap() {<NEW_LINE>status = Common.<MASK><NEW_LINE>if (status == FLClientStatus.FAILED) {<NEW_LINE>retCode = ResponseCode.RequestError;<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>Map<String, float[]> map = new HashMap<String, float[]>();<NEW_LINE>if...
initSession(flParameter.getTrainModelPath());
150,685
void onMouseMoveDragging(Point dragStart, int diffX, int diffY, GridElement draggedGridElement, boolean isShiftKeyDown, boolean isCtrlKeyDown, boolean firstDrag, boolean isMiddleMouseButton) {<NEW_LINE>if (diffX != 0 || diffY != 0) {<NEW_LINE>cursorWasMovedDuringDrag = true;<NEW_LINE>}<NEW_LINE>if (firstDrag && dragged...
, new ArrayList<>());
116,969
private void verifyParamsForKubernetesUpgrade(Universe universe) {<NEW_LINE>if (rootCA == null) {<NEW_LINE>throw new PlatformServiceException(Status.BAD_REQUEST, "rootCA is null. Cannot perform any upgrade.");<NEW_LINE>}<NEW_LINE>if (clientRootCA != null) {<NEW_LINE>throw new PlatformServiceException(Status.BAD_REQUEST...
= universe.getUniverseDetails().rootCA;
1,814,634
public synchronized void doOverrideIfNecessary() {<NEW_LINE>final Invoker<?> invoker;<NEW_LINE>if (originInvoker instanceof InvokerDelegate) {<NEW_LINE>invoker = ((InvokerDelegate<?>) originInvoker).getInvoker();<NEW_LINE>} else {<NEW_LINE>invoker = originInvoker;<NEW_LINE>}<NEW_LINE>// The origin invoker<NEW_LINE>URL ...
).getConfigurators(), newUrl);
1,373,675
public void start(@Nonnull TemplateImpl template, @Nullable final PairProcessor<String, String> processor, @Nullable Map<String, String> predefinedVarValues) {<NEW_LINE>LOG.assertTrue(!myStarted, "Already started");<NEW_LINE>myStarted = true;<NEW_LINE>final PsiFile file = getPsiFile();<NEW_LINE>myTemplate = template;<N...
getInstance(myProject).hideActiveLookup();
224,599
public AudioInputStream synthesizeUsingImposedF0(int sourceIndex, int targetIndex, AudioFileFormat aft) throws SynthesisException {<NEW_LINE>if (!f0ContourImposeSupport) {<NEW_LINE>throw new SynthesisException("Mary configuration of this voice doesn't support intonation contour imposition");<NEW_LINE>}<NEW_LINE>int num...
this.vIntonationReader.getIntonationCoeffs(targetIndex);
833,581
public RuntimeConfigurationProducer createProducer(final Location location, final ConfigurationContext context) {<NEW_LINE>final RuntimeConfigurationProducer result = clone();<NEW_LINE>result.myConfiguration = location != null ? result.createConfigurationByElement(location, context) : null;<NEW_LINE>if (result.myConfig...
.getName(), currentNames));
1,659,611
public void updateTaskStatus(CommandEntity command) {<NEW_LINE>Integer taskId = command.getTaskId();<NEW_LINE>StreamSourceEntity current = sourceMapper.selectByIdForUpdate(taskId);<NEW_LINE>if (current == null) {<NEW_LINE>LOGGER.warn("stream source not found by id={}, just return", taskId);<NEW_LINE>return;<NEW_LINE>}<...
int previousStatus = current.getStatus();
194,743
private synchronized void unstageFiles(final Collection<ChangedFile> files) {<NEW_LINE>// TODO Add a listener to the repo on creation and have toggleStageStatus get invoked with diff!<NEW_LINE>// Temporarily disable the tables<NEW_LINE>stagedTable.setEnabled(false);<NEW_LINE>unstagedTable.setEnabled(false);<NEW_LINE>//...
new ArrayList<ChangedFile>(files);
1,641,135
private ArrayList<PointOfInterest> withinSphereChunkSectionSorted(Predicate<PointOfInterestType> predicate, BlockPos origin, int radius, PointOfInterestStorage.OccupationStatus status) {<NEW_LINE>double radiusSq = radius * radius;<NEW_LINE>int minChunkX = origin.getX(<MASK><NEW_LINE>int minChunkZ = origin.getZ() - radi...
) - radius - 1 >> 4;
1,450,135
private void initializeTable() {<NEW_LINE>this.table = dynamoDB.getTable(this.tableName);<NEW_LINE>if (table == null) {<NEW_LINE>throw new RuntimeException("Couldn't create a state repository using the table name provided");<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>log.info("Creating DynamoDBStateRepos...
TableDescription tableDescription = table.describe();
845,397
public void hook(ExtensionHook extensionHook) {<NEW_LINE>super.hook(extensionHook);<NEW_LINE>extensionHook.addOptionsParamSet(getOptionsParam());<NEW_LINE>extensionHook.addProxyListener(getProxyListenerBreak());<NEW_LINE>extensionHook.addSessionListener(this);<NEW_LINE>extensionHook.addOptionsChangedListener(this);<NEW...
getBreakpointsModel().getBreakpointsEnabledList());
311,350
void addParallelWithSequence(LayoutInterval interval, LayoutInterval seq, int startIndex, int endIndex, int dimension) {<NEW_LINE>LayoutInterval group;<NEW_LINE>if (startIndex > 0 || endIndex < seq.getSubIntervalCount() - 1) {<NEW_LINE>group = new LayoutInterval(PARALLEL);<NEW_LINE>if (interval.getAlignment() != DEFAUL...
(endIndex), dimension, TRAILING);
365,337
protected Coordinate[] convertLocations(List<List<Double>> locations, int numberOfRoutes) throws ParameterValueException, ServerLimitExceededException {<NEW_LINE>if (locations == null || locations.size() < 2)<NEW_LINE>throw new ParameterValueException(MatrixErrorCodes.INVALID_PARAMETER_VALUE, MatrixRequest.PARAM_LOCATI...
[locations.size()]);
1,090,997
public static DescribePodLogResponse unmarshall(DescribePodLogResponse describePodLogResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePodLogResponse.setRequestId(_ctx.stringValue("DescribePodLogResponse.RequestId"));<NEW_LINE>describePodLogResponse.setCode(_ctx.integerValue("DescribePodLogResponse.Code"));<NEW_LI...
(_ctx.stringValue("DescribePodLogResponse.Result.DeployOrderName"));
1,181,451
private IndexConstraintRelationshipInfo relationshipInfoFromIndexDescription(IndexDescriptor indexDescriptor, TokenNameLookup tokens, SchemaRead schemaRead) {<NEW_LINE>int[] relIds = indexDescriptor.schema().getEntityTokenIds();<NEW_LINE>int length = relIds.length;<NEW_LINE>// to handle LOOKUP indexes<NEW_LINE>final Ob...
), relName, properties, "NOT_FOUND");
1,680,254
private static String stackTraceStr(String prefix, StackTraceElement[] st, int strip, int numFrames, boolean printWarning) {<NEW_LINE>strip = strip > 0 ? strip + THRD_DUMP_FRAMES : 0;<NEW_LINE>numFrames = numFrames > 0 ? numFrames : st.length - strip;<NEW_LINE>int limit = strip + numFrames;<NEW_LINE>limit = Math.min(li...
.append(st[i]);
1,527,430
Collection<InferenceVariable> inputVariables(final InferenceContext18 context) {<NEW_LINE>// from 18.5.2.<NEW_LINE>if (this.left instanceof LambdaExpression) {<NEW_LINE>if (this.right instanceof InferenceVariable) {<NEW_LINE>return Collections.singletonList((InferenceVariable) this.right);<NEW_LINE>}<NEW_LINE>if (this....
lambda = (LambdaExpression) this.left;
1,679,285
public final static Comparator<NodeModel> comparator() {<NEW_LINE>return new Comparator<NodeModel>() {<NEW_LINE><NEW_LINE>private final HashMap<NodeModel, NodeAbsolutePath> paths = new HashMap<>();<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(NodeModel o1, NodeModel o2) {<NEW_LINE>if (o1 == o2)<NEW_LINE>ret...
path = paths.get(node);
239,936
public DeclarationLocation run(final EditorFeatureContext context) {<NEW_LINE>final AtomicReference<DeclarationLocation> result = new AtomicReference<>();<NEW_LINE>context.getDocument().render(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>final TokenSequence<CssTokenId> ts = LexerU...
valueText = WebUtils.unquotedValue(valueText);
60,625
void dump(Collection<BugPatternInstance> patterns, Writer w, Target target, Set<String> enabledChecks) throws IOException {<NEW_LINE>// (Default, Severity) -> [Pattern...]<NEW_LINE>SortedSetMultimap<IndexEntry, MiniDescription> sorted = TreeMultimap.create(comparing(IndexEntry::onByDefault, trueFirst()).thenComparing(I...
).collect(toImmutableList());
1,298,095
private void decodeBin() {<NEW_LINE>int opcode = RV32imSupport.getOpcode(instruction);<NEW_LINE>switch(opcode) {<NEW_LINE>case LUI:<NEW_LINE>case AUIPC:<NEW_LINE>valid = true;<NEW_LINE>destination = RV32imSupport.getDestinationRegisterIndex(instruction);<NEW_LINE>immediate = RV32imSupport.getImmediateValue(instruction,...
funct7 = RV32imSupport.getFunct7(instruction);
1,067,306
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Get Session attributes<NEW_LINE>MobileSessionCtx wsc = MobileSessionCtx.get(request);<NEW_LINE>// Modified by Rob Klein 4/29/07<NEW_LINE>WWindowStatus ws = WWindowStatus.get(request);<NEW_LINE>...
0, 0, null, null);
1,000,332
public static void onModification(final Image thisImage, final SecurityContext securityContext, final ErrorBuffer errorBuffer, final ModificationQueue modificationQueue) throws FrameworkException {<NEW_LINE>if (!thisImage.isThumbnail() && !thisImage.isTemplate()) {<NEW_LINE>if (modificationQueue.isPropertyModified(this...
setProperty(AbstractNode.name, expectedThumbnailName);
1,718,256
public ProcessStatus restWriteSetting(final PwmRequest pwmRequest) throws PwmUnrecoverableException, IOException {<NEW_LINE>final String profileID = "default";<NEW_LINE>final String settingKey = pwmRequest.readParameterAsString("key");<NEW_LINE>final String bodyString = pwmRequest.readRequestBodyAsString();<NEW_LINE>fi...
throw new IllegalStateException(errorMsg, e);
1,280,835
public BatchUpdateResult<ComplexResourceKey<TwoPartKey, TwoPartKey>, Message> batchUpdate(BatchPatchRequest<ComplexResourceKey<TwoPartKey, TwoPartKey>, Message> patches) {<NEW_LINE>final Map<ComplexResourceKey<TwoPartKey, TwoPartKey>, UpdateResponse> results = new HashMap<>();<NEW_LINE>for (Map.Entry<ComplexResourceKey...
), patch.getValue());
532,856
static Command chooseCommand(@NotNull final Project project) {<NEW_LINE>if (!usesFlutter(project)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String androidHome = IntelliJAndroidSdk.chooseAndroidHome(project, false);<NEW_LINE>// See if the Bazel workspace provides a script.<NEW_LINE>final Workspace workspace = W...
sdk = FlutterSdk.getFlutterSdk(project);
139,516
public void apply(ParameterContext context) {<NEW_LINE>ResolvedMethodParameter methodParameter = context.resolvedMethodParameter();<NEW_LINE>ResolvedType parameterType = methodParameter.getParameterType();<NEW_LINE>parameterType = context.alternateFor(parameterType);<NEW_LINE>springfox.documentation.schema.ModelReferen...
scalarModel(ScalarType.STRING)));
682,772
protected void onPostExecute(Map<String, Object> result) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>super.onPostExecute(result);<NEW_LINE>isShowPopupWindows = true;<NEW_LINE>mBasePageAdapter.Clear();<NEW_LINE>mViewPager.removeAllViews();<NEW_LINE>if (!result.isEmpty()) {<NEW_LINE>mBasePageAdapter.addFragmen...
loadLayout.setVisibility(View.GONE);
645,129
public void checkActivity() {<NEW_LINE>// Graceful time before the first afk check call.<NEW_LINE>if (System.currentTimeMillis() - lastActivity <= 10000) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final long autoafkkick = ess<MASK><NEW_LINE>if (autoafkkick > 0 && lastActivity > 0 && (lastActivity + (autoafkkick * 1000)) < ...
.getSettings().getAutoAfkKick();
1,592,605
private void discoverShards() {<NEW_LINE>log.info("Discovering shards that need compaction...");<NEW_LINE>Set<ShardMetadata> allShards = shardManager.getNodeShards(currentNodeIdentifier);<NEW_LINE>ListMultimap<Long, ShardMetadata> tableShards = Multimaps.<MASK><NEW_LINE>for (Entry<Long, List<ShardMetadata>> entry : Mul...
index(allShards, ShardMetadata::getTableId);
992,443
public Flux<CommandResponse<GroupCommand, String>> xGroup(Publisher<GroupCommand> commands) {<NEW_LINE>return connection.execute(cmd -> Flux.from(commands).concatMap(command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notNull(<MASK><NEW_LINE>if (command.getAction().equals(Gr...
command.getGroupName(), "GroupName must not be null!");
674,341
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>System.out.println("JAX-RS Type Injection Jersey Example App");<NEW_LINE>final HttpServer server = GrizzlyHttpServerFactory.createHttpServer(BASE_URI, create(), false);<NEW_LINE>Runtime.getRuntime().addShutdownHook(new Thread(new Runnable() {<NEW_LINE><NE...
, BASE_URI, ROOT_PATH_ANNOTATED_METHOD, "?q1=<value_1>&q2=<value_2>&q2=<value_3>"));
1,176,030
public static Throwable onOperatorError(@Nullable Subscription subscription, Throwable error, @Nullable Object dataSignal, Context context) {<NEW_LINE>Exceptions.throwIfFatal(error);<NEW_LINE>if (subscription != null) {<NEW_LINE>subscription.cancel();<NEW_LINE>}<NEW_LINE>Throwable <MASK><NEW_LINE>BiFunction<? super Thr...
t = Exceptions.unwrap(error);
1,468,667
public void fireActionEvent(ActionEvent ev) {<NEW_LINE>if (listeners == null || listeners.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// minor optimization for a common use case to avoid allocation costs<NEW_LINE>boolean isEdt = Display.getInstance().isEdt();<NEW_LINE>if (isEdt && listeners.size() == 1) {<NEW_L...
= new CallbackClass(array, ev);
367,177
// Newly added to allow the EcoService to be added<NEW_LINE>public void init(Echo6Service echo6Service) {<NEW_LINE>_service = echo6Service;<NEW_LINE>_proxy = null;<NEW_LINE>_dispatch = null;<NEW_LINE>if (_service == null) {<NEW_LINE>try {<NEW_LINE>InitialContext ctx = new InitialContext();<NEW_LINE>_service = (com.ibm....
"JNDI lookup failure: javax.naming.NamingException: " + e.getMessage());
1,466,008
private void andNextIntoBits() {<NEW_LINE>int type = buffer.get(position);<NEW_LINE>position++;<NEW_LINE>int size = buffer.getChar(position) & 0xFFFF;<NEW_LINE>position += Character.BYTES;<NEW_LINE>switch(type) {<NEW_LINE>case ARRAY:<NEW_LINE>{<NEW_LINE>int skip = size << 1;<NEW_LINE>CharBuffer cb = (CharBuffer) ((Byte...
asLongBuffer().limit(1024);
1,296,215
private SecureStoreConfig handleJavaKeyStore(Node keyStoreRoot) {<NEW_LINE>File path = null;<NEW_LINE>String password = null;<NEW_LINE>String type = null;<NEW_LINE>String currentKeyAlias = null;<NEW_LINE>int pollingInterval = JavaKeyStoreSecureStoreConfig.DEFAULT_POLLING_INTERVAL;<NEW_LINE>for (Node n : childElements(k...
(n)).getAbsoluteFile();
1,617,673
public String generateFlameGraph(FlameGraph flameGraph) throws IOException {<NEW_LINE>List<FlameGraph> flameGraphList = this.baseMapper.getFlameGraph(flameGraph.getAppId(), flameGraph.getStart(<MASK><NEW_LINE>if (CommonUtils.notEmpty(flameGraphList)) {<NEW_LINE>StringBuffer jsonBuffer = new StringBuffer();<NEW_LINE>fla...
), flameGraph.getEnd());
1,776,341
private String stripSource(String source) {<NEW_LINE>nodesToStrip.addAll(unusedImports.values());<NEW_LINE>nodesToStrip.<MASK><NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int currentIdx = 0;<NEW_LINE>for (Tree node : nodesToStrip) {<NEW_LINE>int startPos = startPosition(node);<NEW_LINE>if (startPos < curr...
addAll(unusedStaticImports.values());
1,507,102
protected Statement tryStatement(AST tryStatementNode) {<NEW_LINE>AST tryNode = tryStatementNode.getFirstChild();<NEW_LINE>Statement tryStatement = statement(tryNode);<NEW_LINE>Statement finallyStatement = EmptyStatement.INSTANCE;<NEW_LINE>AST node = tryNode.getNextSibling();<NEW_LINE>// let's do the catch nodes<NEW_LI...
catches = new ArrayList<>();
1,714,858
public void resolveLink(String link, Promise promise) {<NEW_LINE>try {<NEW_LINE>FirebaseDynamicLinks.getInstance().getDynamicLink(Uri.parse(link)).addOnCompleteListener(task -> {<NEW_LINE>if (task.isSuccessful()) {<NEW_LINE>PendingDynamicLinkData linkData = task.getResult();<NEW_LINE>// Note: link == null if link inval...
getException().getMessage());
1,818,876
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {<NEW_LINE>final int topX = user.getLocation().getBlockX();<NEW_LINE>final int topZ = user.getLocation().getBlockZ();<NEW_LINE>final float pitch = user.getLocation().getPitch();<NEW_LINE>final float ya...
future = new CompletableFuture<>();
1,313,607
public String doGet(Model model) {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("transcodings", transcodingService.getAllTranscodings());<NEW_LINE>map.put("transcodeDirectory", SettingsService.getTranscodeDirectory());<NEW_LINE>map.put("downsampleCommand", settingsService.getDownsamplingCommand(...
"videoImageCommand", settingsService.getVideoImageCommand());
253,975
protected boolean estimatePose(int which, List<Point2D3D> points, Se3_F64 fiducialToCamera) {<NEW_LINE>if (!estimatePnP.process(points, initialEstimate)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>filtered.clear();<NEW_LINE>// Don't bother if there are hardly any points to work with<NEW_LINE>if (points.size() > 6) {<...
stdev += errors.get(i);
411,431
public com.amazonaws.services.codecommit.model.NumberOfRulesExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.NumberOfRulesExceededException numberOfRulesExceededException = new com.amazonaws.services.<MASK><NEW_LINE>int original...
codecommit.model.NumberOfRulesExceededException(null);
818,340
private void init(String pomPath) {<NEW_LINE>String[] classpath = null;<NEW_LINE>if (pomPath != null) {<NEW_LINE>File srcPom = new File(pomPath);<NEW_LINE>if (!srcPom.exists() || !srcPom.isFile()) {<NEW_LINE>throw new SpoonException("Pom " + srcPom.getPath() + " not found.");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>pom = ne...
SOURCE_TYPE.APP_SOURCE, LOGGER, false);
1,392,828
public void shouldAddPipelineToTheTopOfConfigFile() throws Exception {<NEW_LINE>goConfigDao.load();<NEW_LINE>PipelineConfig pipelineConfig = PipelineMother.<MASK><NEW_LINE>PipelineConfig pipelineConfig2 = PipelineMother.twoBuildPlansWithResourcesAndSvnMaterialsAtUrl("addedSecond", "ut", "www.spring.com");<NEW_LINE>goCo...
twoBuildPlansWithResourcesAndSvnMaterialsAtUrl("addedFirst", "ut", "www.spring.com");
60,284
public void run(MessageReply reply) {<NEW_LINE>if (!reply.isSuccess()) {<NEW_LINE>completion.fail(reply.getError());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CreateTemplateFromVolumeRsp rsp = ((KVMHostAsyncHttpCallReply) reply).toResponse(CreateTemplateFromVolumeRsp.class);<NEW_LINE>if (!rsp.isSuccess()) {<NEW_LINE>String ...
, rsp.getActualSize()));
1,055,037
protected // lots of keys - however, for a small DHT we need to be careful<NEW_LINE>void add(DHTDBValueImpl new_value) {<NEW_LINE>// don't replace a closer cache value with a further away one. in particular<NEW_LINE>// we have to avoid the case where the original publisher of a key happens to<NEW_LINE>// be close to it...
DHTTransportContact originator = new_value.getOriginator();
709,983
protected void processFiltered(File file, FileText fileText) throws CheckstyleException {<NEW_LINE>// check if already checked and passed the file<NEW_LINE>if (!ordinaryChecks.isEmpty() || !commentChecks.isEmpty()) {<NEW_LINE>final FileContents contents = getFileContents();<NEW_LINE>final DetailAST rootAST = JavaParser...
astWithComments = JavaParser.appendHiddenCommentNodes(rootAST);
1,371,215
// JDBC operations. These are all blocking<NEW_LINE>private Void jdbcConnect(com.oracle.adbaoverjdbc.Operation<Void> op) {<NEW_LINE>try {<NEW_LINE>Properties info = (Properties) properties.get(JdbcConnectionProperties.JDBC_CONNECTION_PROPERTIES);<NEW_LINE>info = (Properties) (info == null ? JdbcConnectionProperties.JDB...
DriverManager.getConnection(url, info);
627,479
private void BZ2File___init__(PyString inFileName, String mode, int buffering, int compresslevel) {<NEW_LINE>try {<NEW_LINE>fileName = inFileName.asString();<NEW_LINE>this.buffering = buffering;<NEW_LINE>// check universal newline mode<NEW_LINE>if (mode.contains("U")) {<NEW_LINE>inUniversalNewlineMode = true;<NEW_LINE>...
File f = new File(fileName);
1,476,266
protected void onDraw(Canvas canvas) {<NEW_LINE>final int height = getHeight();<NEW_LINE>final int childCount = getChildCount();<NEW_LINE>final SlidingTabLayout.TabColorizer tabColorizer = tabColorizerCustom != null ? tabColorizerCustom : tabColorizerDefault;<NEW_LINE>if (displayUnderline) {<NEW_LINE>// Colored underli...
int left = selectedTitle.getLeft();
557,101
public boolean init(final PriorityElectionNodeOptions opts) {<NEW_LINE>if (this.started) {<NEW_LINE>LOG.info(<MASK><NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// node options<NEW_LINE>NodeOptions nodeOpts = opts.getNodeOptions();<NEW_LINE>if (nodeOpts == null) {<NEW_LINE>nodeOpts = new NodeOptions();<NEW_LINE>}<NEW_LINE...
"[PriorityElectionNode: {}] already started.", opts.getServerAddress());