idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,107,994
public void process(LArrayAccessor<TupleDesc_U8> points, DogArray_I32 assignments, FastAccess<TupleDesc_U8> clusters) {<NEW_LINE>// see if it should run the single thread version instead<NEW_LINE>if (points.size() < minimumForConcurrent) {<NEW_LINE>super.process(points, assignments, clusters);<NEW_LINE>return;<NEW_LINE...
byte[] point = tuple.data;
937,104
public Operand buildOpAsgnConstDeclNode(OpAsgnConstDeclNode node) {<NEW_LINE>if (node.isOr()) {<NEW_LINE>Variable result = createTemporaryVariable();<NEW_LINE>Label falseCheck = getNewLabel();<NEW_LINE>Label done = getNewLabel();<NEW_LINE>Label assign = getNewLabel();<NEW_LINE>Operand module = buildColon2ForConstAsgnDe...
addInstr(new LabelInstr(falseCheck));
1,428,892
public void customize(MavenBuild mavenBuild) {<NEW_LINE>Version platformVersion <MASK><NEW_LINE>String sccPluginVersion = this.projectsVersionResolver.resolveVersion(platformVersion, "org.springframework.cloud:spring-cloud-contract-verifier");<NEW_LINE>if (sccPluginVersion == null) {<NEW_LINE>logger.warn("Spring Cloud ...
= this.description.getPlatformVersion();
247,827
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));<NEW_LINE>if (controller != null) {<NEW_LINE>if (permanent != null) {<NEW_LINE>int counterCount = 0;<NEW_LI...
new FilterControlledArtifactPermanent("an artifact you control"), true);
326,611
protected void registerDefaultAnnotationBinders(Map<Class<? extends Annotation>, RequestArgumentBinder> byAnnotation) {<NEW_LINE>DefaultBodyAnnotationBinder bodyBinder = new DefaultBodyAnnotationBinder(conversionService);<NEW_LINE>byAnnotation.put(Body.class, bodyBinder);<NEW_LINE>CookieAnnotationBinder<Object> cookieA...
= new RequestAttributeAnnotationBinder<>(conversionService);
1,779,981
public <T> List<T> publish(Query<T> query, Transaction transaction) {<NEW_LINE>Class<T> beanType = query.getBeanType();<NEW_LINE>BeanDescriptor<T> desc = server.descriptor(beanType);<NEW_LINE>DraftHandler<T> draftHandler = new DraftHandler<>(desc, transaction);<NEW_LINE>List<T> draftBeans = draftHandler.fetchSourceBean...
liveBean = draftHandler.publishToDestinationBean(draftBean);
511,530
public static List<VolumeResponse> createVolumeResponse(ResponseView view, VolumeJoinVO... volumes) {<NEW_LINE>Hashtable<Long, VolumeResponse> vrDataList = new Hashtable<Long, VolumeResponse>();<NEW_LINE><MASK><NEW_LINE>for (VolumeJoinVO vr : volumes) {<NEW_LINE>VolumeResponse vrData = vrDataList.get(vr.getId());<NEW_L...
DecimalFormat df = new DecimalFormat("0.0%");
1,326,886
private I_MKTG_ContactPerson createOrUpdateRecordDontSave(@NonNull final ContactPerson contactPerson) {<NEW_LINE>final I_MKTG_ContactPerson contactPersonRecord = loadRecordIfPossible(contactPerson).orElse(newInstance(I_MKTG_ContactPerson.class));<NEW_LINE>contactPersonRecord.setAD_User_ID(UserId.toRepoIdOr(contactPerso...
::getValue).orElse(null);
976,659
private void genServiceInterfaceToProtocolBuffers(PrintWriter out, String sourceName, String targetName, SClass parameterType) {<NEW_LINE>for (SField field : parameterType.getAllFields()) {<NEW_LINE>SClass fieldType = field.getType();<NEW_LINE>SClass fieldClass = fieldType;<NEW_LINE>if (fieldClass.isList()) {<NEW_LINE>...
field.getName() + "()));");
1,408,810
private void imageCell(Image image) throws SAXException {<NEW_LINE>this.emitter.startElementWithClass("td", "img");<NEW_LINE>String src = image.getSrc();<NEW_LINE>if (src == null) {<NEW_LINE>this.emitter.startElement("i");<NEW_LINE>this.emitter.characters(NOT_RESOLVABLE);<NEW_LINE>this.emitter.endElement("i");<NEW_LINE...
this.emitter.endElement("td");
1,595,727
public void testStartLTend() {<NEW_LINE>ScheduleExpression se = new ScheduleExpression();<NEW_LINE>se.year(9996);<NEW_LINE>// 587889<NEW_LINE>se.month(12);<NEW_LINE>se.dayOfMonth("Last");<NEW_LINE>se.start(new Date(stringToMillis("9996-04-15")));<NEW_LINE>se.end(new Date(stringToMillis("9997-05-16")));<NEW_LINE>String ...
.getSchedule().getStart();
76,882
public Object visit(Path.Field path, Object parent) {<NEW_LINE>if (parent instanceof Path.State) {<NEW_LINE>return path.toBuilder().setState((Path.State) parent).build();<NEW_LINE>} else if (parent instanceof Path.GlobalState) {<NEW_LINE>return path.toBuilder().setGlobalState((Path.GlobalState) parent).build();<NEW_LIN...
ArrayIndex) parent).build();
1,262,469
public Object executeCommand(String commandId, List<Object> arguments, IProgressMonitor monitor) throws Exception {<NEW_LINE>Map<String, Object> obj = (Map<String, Object>) arguments.get(0);<NEW_LINE>String uri = (<MASK><NEW_LINE>URI projectUri = URI.create(uri);<NEW_LINE>String bindingKey = (String) obj.get("bindingKe...
String) obj.get("projectUri");
1,853
private OptimizerStats execImpl(OptimizerContext optimizerCtx) {<NEW_LINE>OptimizerStats stats = new OptimizerStats(NAME);<NEW_LINE>FindStaticDispatchSitesVisitor finder = new FindStaticDispatchSitesVisitor();<NEW_LINE>Set<JMethod> modifiedMethods = optimizerCtx.getModifiedMethodsSince(optimizerCtx.getLastStepFor(NAME)...
(0).getType());
430,974
public static CdmTypeAttributeDefinition fromData(final CdmCorpusContext ctx, final JsonNode obj, final String entityName) {<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final CdmTypeAttributeDefinition typeAttribute = ctx.getCorpus().makeObject(CdmObjectType.TypeAttributeDef, obj.has("name") ?...
obj.get("projection")));
1,714,860
public boolean visit(TypeReference typeReference, BlockScope scope) {<NEW_LINE>if (this.continueSearch) {<NEW_LINE>inspectArrayDimensions(typeReference.getAnnotationsOnDimensions(), typeReference.dimensions());<NEW_LINE>if (this.continueSearch) {<NEW_LINE>int[] nestingDepths = computeNestingDepth(typeReference);<NEW_LI...
int levels = typeReference.getAnnotatableLevels();
982,174
static void exportAttributes(final ODTExporter thisNode, final String uuid, final SecurityContext securityContext) throws FrameworkException {<NEW_LINE>final File output = thisNode.getResultDocument();<NEW_LINE>final VirtualType transformation = thisNode.getTransformationProvider();<NEW_LINE>try {<NEW_LINE>final App ap...
securityContext, AbstractNode.class, result);
1,265,996
public String extractContent(String language, Path file) {<NEW_LINE>String content = null;<NEW_LINE>try (InputStream inputStream = Files.newInputStream(file);<NEW_LINE>PDDocument pdfDocument = PDDocument.load(inputStream)) {<NEW_LINE>content = new PDFTextStripper().getText(pdfDocument);<NEW_LINE>} catch (Exception e) {...
pdfDocument.getNumberOfPages() + " of PDF file containing only images");
121,703
private static DegraderTrackerClient createDegraderTrackerClient(URI uri, UriProperties uriProperties, ServiceProperties serviceProperties, String loadBalancerStrategyName, TransportClient transportClient, Clock clock, boolean doNotSlowStart) {<NEW_LINE>DegraderImpl.Config config = null;<NEW_LINE>if (serviceProperties....
CLOCK, clock, Clock.class);
1,619,979
public ResourceCreationResponseEntries resourceResourceIdChildrenPost(String resourceId, List<ResourceCreationRepresentationArrayInner> body, String cookie, String ifMatch, String conflictResolution, String lockToken, OptionsQueryParam option) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// v...
String[] localVarContentTypes = { "application/json" };
674,287
public static int parseChunkSize(ByteBuffer buffer, int start, int end) throws IOException {<NEW_LINE>byte[] bufa = buffer.array();<NEW_LINE>int size = 0;<NEW_LINE>for (int i = start; i < end; i++) {<NEW_LINE>byte b = bufa[i];<NEW_LINE>if (b >= b0 && b <= b9) {<NEW_LINE>size = size * 16 + (b - b0);<NEW_LINE>} else if (...
(b - bA) + 10);
1,043,372
public void scroll(Coordinates where, int xOffset, int yOffset) {<NEW_LINE>long downTime = SystemClock.uptimeMillis();<NEW_LINE>List<MotionEvent> motionEvents = new ArrayList<MotionEvent>();<NEW_LINE>Point origin = where.getLocationOnScreen();<NEW_LINE>Point destination = new Point(origin.x + xOffset, origin.y + yOffse...
Scroll(origin, destination, downTime);
1,504,968
public void checkAndLoad(JSONObject rawRules) {<NEW_LINE>Long upperDuration = null;<NEW_LINE>if (rawRules.containsKey(FailureLevel.P0.name())) {<NEW_LINE>FailureLevelWithBoundary p0 = new FailureLevelWithBoundary(FailureLevel.P0);<NEW_LINE>p0.setLowerBoundary(TimeUtils.parseDuration(rawRules.getString(FailureLevel.P0.n...
P4.name())));
1,050,030
public static app.freerouting.geometry.planar.Area transform_area_to_board(Collection<Shape> p_area, CoordinateTransform p_coordinate_transform) {<NEW_LINE>int hole_count = p_area.size() - 1;<NEW_LINE>if (hole_count <= -1) {<NEW_LINE>FRLogger.warn("Shape.transform_area_to_board: p_area.size() > 0 expected");<NEW_LINE>r...
> it = p_area.iterator();
1,517,909
private static void parsePokerSellStraight(List<PokerSell> pokerSells, SellType sellType) {<NEW_LINE>int minLength = -1;<NEW_LINE>int width = -1;<NEW_LINE>SellType targetSellType = null;<NEW_LINE>if (sellType == SellType.SINGLE) {<NEW_LINE>minLength = 5;<NEW_LINE>width = 1;<NEW_LINE>targetSellType = SellType.SINGLE_STR...
sell = pokerSells.get(index);
651,391
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.websphere.cache.CacheAdminMBean#invalidateCacheIDs(java.lang.String, java.lang.String, boolean)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public String[] invalidateCacheIDs(String cacheInstance, String pattern, boolean waitOnInvalidation) throws javax.managem...
Tr.debug(tc, "invalidateCacheIDs: Exiting. Cleared memory and disk cache since input pattern is *");
695,955
private void jbInit() throws Exception {<NEW_LINE>CompiereColor.setBackground(panel);<NEW_LINE>newBorder = new TitledBorder("");<NEW_LINE>accountBorder = new TitledBorder("");<NEW_LINE>mainPanel.setLayout(mainLayout);<NEW_LINE>newPanel.setBorder(newBorder);<NEW_LINE>newPanel.setLayout(newLayout);<NEW_LINE>newBorder.set...
.getCtx(), "Value"));
330,473
protected Delete buildDelete(CassandraBackendEntry.Row entry) {<NEW_LINE>List<HugeKeys> idNames = this.idColumnName();<NEW_LINE>Delete delete = QueryBuilder.delete().<MASK><NEW_LINE>if (entry.columns().isEmpty()) {<NEW_LINE>// Delete just by id<NEW_LINE>List<Long> idValues = this.idColumnValue(entry);<NEW_LINE>assert i...
from(this.table());
1,219,694
public SQLStatement parseRollback() {<NEW_LINE>acceptIdentifier("ROLLBACK");<NEW_LINE>// DRDS async DDL.<NEW_LINE>if (isEnabled(SQLParserFeature.DRDSAsyncDDL) && lexer.identifierEquals("DDL")) {<NEW_LINE>// ROLLBACK DDL <job_id> [, <job_id>] ...<NEW_LINE>lexer.nextToken();<NEW_LINE>DrdsRollbackDDLJob stmt = new DrdsRol...
stmt.setChain(Boolean.FALSE);
1,187,574
private boolean probeReferenceLocalDependencies(AttributeDefRef facet, Set<DefDescriptor<?>> processed) throws QuickFixException {<NEW_LINE>Object v = facet.getValue();<NEW_LINE>if (v instanceof ArrayList) {<NEW_LINE>for (Object fl : ((ArrayList<?>) v)) {<NEW_LINE>if (fl instanceof DefinitionReference) {<NEW_LINE>Defin...
DefType defType = descriptor.getDefType();
1,333,961
private Optional<Submission> loadBaseCode(Set<File> rootDirectories, Map<File, Submission> foundSubmissions) throws ExitException {<NEW_LINE>// Extract the basecode submission if necessary.<NEW_LINE>Optional<Submission> baseCodeSubmission = Optional.empty();<NEW_LINE>if (options.hasBaseCode()) {<NEW_LINE>String baseCod...
remove(baseCode.getRoot());
1,138,337
public short[] readShortArray(String name, short[] defVal) throws IOException {<NEW_LINE>try {<NEW_LINE>Element tmpEl;<NEW_LINE>if (name != null) {<NEW_LINE>tmpEl = findChildElement(currentElem, name);<NEW_LINE>} else {<NEW_LINE>tmpEl = currentElem;<NEW_LINE>}<NEW_LINE>if (tmpEl == null) {<NEW_LINE>return defVal;<NEW_L...
sizeString = tmpEl.getAttribute("size");
688,309
/*<NEW_LINE>* localOrder<NEW_LINE>*/<NEW_LINE>void imposeLocalOrder(Comparator<BibEntry> entryComparator) {<NEW_LINE>// For JabRef52 the single pageInfo is always in the last-in-localorder citation.<NEW_LINE>// We adjust here accordingly by taking it out and adding it back after sorting.<NEW_LINE>final int last = this....
getCitationsInLocalOrder().get(last);
1,754,091
private void check(APIRecoverImageMsg msg, Map<String, Quota.QuotaPair> pairs) {<NEW_LINE>String currentAccountUuid = msg.getSession().getAccountUuid();<NEW_LINE>String resourceTargetOwnerAccountUuid = new QuotaUtil().getResourceOwnerAccountUuid(msg.getImageUuid());<NEW_LINE>long imageNumQuota = pairs.get(ImageQuotaCon...
ImageQuotaConstant.IMAGE_SIZE).getValue();
1,056,285
protected void persistCommit(BatchTracker committingBatch) {<NEW_LINE>TopoMasterCtrlEvent event = new TopoMasterCtrlEvent(EventType.transactionCommit);<NEW_LINE>event.addEventValue(committingBatch.getBatchId());<NEW_LINE>byte[] persistData = (byte[]) committingBatch.getState().getUserCheckpoint();<NEW_LINE>Object persi...
fail(committingBatch.getBatchId());
1,855,539
private // The derivatives are [0] spot, [1] strike, [2] rate, [3] cost-of-carry, [4] volatility, [5] timeToExpiry, [6] spot twice<NEW_LINE>ValueDerivatives priceDerivatives(ResolvedFxSingleBarrierOption option, RatesProvider ratesProvider, BlackFxOptionVolatilities volatilities) {<NEW_LINE>validate(option, ratesProvid...
Currency ccyCounter = currencyPair.getCounter();
1,407,887
public synchronized void updateFromTrackParameters(TrackParameters track) {<NEW_LINE>parameters.clear();<NEW_LINE>for (TrackedParameter p : track.getAllParameters()) {<NEW_LINE>Parameter<?> option = p.getParameter();<NEW_LINE>String value = null;<NEW_LINE>if (option.isDefined()) {<NEW_LINE>if (option.tookDefaultValue()...
pos = track.getParent(option);
1,180,582
public static Notebook buildNotebookResponse(NotebookCR notebookCR) {<NEW_LINE>Notebook notebook = new Notebook();<NEW_LINE>notebook.setUid(notebookCR.getMetadata().getUid());<NEW_LINE>notebook.setName(notebookCR.getMetadata().getName());<NEW_LINE>if (notebookCR.getMetadata().getCreationTimestamp() != null) {<NEW_LINE>...
).getName() + "/lab");
1,250,766
private static void createRestorerInstance() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createRestorerInstance");<NEW_LINE>try {<NEW_LINE>Class <MASK><NEW_LINE>instance = (SIMessageHandleRestorer) cls.newInstance();<NEW_LINE>} catch (Exception e) {<NEW_LINE>FFD...
cls = Class.forName(SI_MESSAGE_HANDLE_RESTORER_CLASS);
1,448,738
public void updateFilters() {<NEW_LINE>updateList(R.id.domainlist, SettingValues.<MASK><NEW_LINE>updateList(R.id.subredditlist, SettingValues.subredditFilters, SettingValues.subredditFilters::remove);<NEW_LINE>updateList(R.id.userlist, SettingValues.userFilters, SettingValues.userFilters::remove);<NEW_LINE>updateList(R...
domainFilters, SettingValues.domainFilters::remove);
1,402,990
private GeoRelation relateTriangle(int aX, int aY, boolean ab, int bX, int bY, boolean bc, int cX, int cY, boolean ca) {<NEW_LINE>// compute bounding box of triangle<NEW_LINE>int tMinX = StrictMath.min(StrictMath.min(aX, bX), cX);<NEW_LINE>int tMaxX = StrictMath.max(StrictMath.max(aX, bX), cX);<NEW_LINE>int tMinY = Str...
(aY, bY), cY);
1,008,448
static <T> Sampler<T> of(String specification) {<NEW_LINE>requireNonNull(specification, "specification");<NEW_LINE>switch(specification.trim()) {<NEW_LINE>case "always":<NEW_LINE>return Sampler.always();<NEW_LINE>case "never":<NEW_LINE>return Sampler.never();<NEW_LINE>}<NEW_LINE>final List<String> components = KEY_VALU...
key = components.get(0);
1,812,480
private static void addGroupForPhoneCode1() {<NEW_LINE>HashMap<String, String> nameCodeToAreaCodes = new HashMap<>();<NEW_LINE>// ANTIGUA_AND_BARBUDA_AREA_CODES<NEW_LINE>nameCodeToAreaCodes.put("ag", "268");<NEW_LINE>// ANGUILLA_AREA_CODES<NEW_LINE>nameCodeToAreaCodes.put("ai", "264");<NEW_LINE>// American Samoa<NEW_LI...
nameCodeToAreaCodes.put("ky", "345");
1,846,994
final ListMediaCapturePipelinesResult executeListMediaCapturePipelines(ListMediaCapturePipelinesRequest listMediaCapturePipelinesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMediaCapturePipelinesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
endClientExecution(awsRequestMetrics, request, response);
26,583
protected void drawStretchEdgeEffect(Canvas canvas) {<NEW_LINE>if (mAllowOverScroll && (!mEdgeGlowRight.isFinished() || !mEdgeGlowLeft.isFinished())) {<NEW_LINE>final int width = getWidth();<NEW_LINE>final int height = getHeight();<NEW_LINE>if (!mEdgeGlowLeft.isFinished() && mEdgeGlowLeft instanceof StretchEdgeEffect) ...
mEdgeGlowRight.setSize(width, height);
91,643
// apply joint hierarchy to joint pose frames<NEW_LINE>private void buildSkeleton(BlockHeader blockHeader, long skelAddr) throws ParsingException {<NEW_LINE>SkeletonJoint[] joints = lookupSkeleton(blockHeader, skelAddr);<NEW_LINE>SkeletalAnimationSequence[] skelAnims = new SkeletalAnimationSequence[mAnimSet.length];<NE...
[i].getMatrix());
890,190
protected void executeCommand(Database database) throws Exception {<NEW_LINE>ByteArrayOutputStream errorStream = new ByteArrayOutputStream();<NEW_LINE>ByteArrayOutputStream inputStream = new ByteArrayOutputStream();<NEW_LINE>ProcessBuilder pb = createProcessBuilder(database);<NEW_LINE><MASK><NEW_LINE>int returnCode = 0...
Process p = pb.start();
637,978
public boolean reset(final long nextLogIndex) {<NEW_LINE>if (nextLogIndex <= 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid next log index.");<NEW_LINE>}<NEW_LINE>this.writeLock.lock();<NEW_LINE>try (final Options opt = new Options()) {<NEW_LINE>LogEntry entry = getEntry(nextLogIndex);<NEW_LINE>closeDB();<NE...
LOG.error("Fail to reset next log index.", e);
1,675,697
private void standardize(IBaseResource theResource, Map<String, String> theRules, IFhirPath theFhirPath) {<NEW_LINE>for (Map.Entry<String, String> rule : theRules.entrySet()) {<NEW_LINE>IStandardizer std = getStandardizer(rule);<NEW_LINE>List<IBase> values;<NEW_LINE>try {<NEW_LINE>values = theFhirPath.evaluate(theResou...
rule.getKey(), theResource);
766,568
public CreateThesaurusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateThesaurusResult createThesaurusResult = new CreateThesaurusResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
int originalDepth = context.getCurrentDepth();
1,717,628
// clamp timerange to case<NEW_LINE>@SuppressWarnings("AssignmentToMethodParameter")<NEW_LINE>synchronized public void pushTimeAndType(Interval timeRange, TimelineEventType.HierarchyLevel typeZoom) throws TskCoreException {<NEW_LINE>Interval overlappingTimeRange = this.filteredEvents.getSpanningInterval().overlap(timeR...
(currentZoom.withTypeZoomLevel(typeZoom));
89,148
private Result serializerFor(DefaultSerdeDiscoveryState discovery, Type type, BuildProducer<GeneratedClassBuildItem> generatedClass, BuildProducer<ReflectiveClassBuildItem> reflection, Map<String, String> alreadyGeneratedSerializers) {<NEW_LINE>Result result = serializerDeserializerFor(discovery, type, true);<NEW_LINE>...
JacksonSerdeGenerator.generateSerializer(generatedClass, type);
1,346,112
void processBasicInfo() {<NEW_LINE>prj.name = (String) info.get("project_name");<NEW_LINE>prj.path = (String) info.get("project_path");<NEW_LINE>prj.status = (String) info.get("project_status");<NEW_LINE>prj.parentName = (String) info.get("project_parent_name");<NEW_LINE>prj.displayName = (String) info.get("project_dis...
String) info.get("project_group");
884,372
public // to workaround an issue with references<NEW_LINE>SqlCommand sanitizeForQuery() {<NEW_LINE>if (rawArguments.size() == 0) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>StringBuilder sanitizeSqlSb = new StringBuilder();<NEW_LINE>List<Object> sanitizeArguments = new ArrayList<>();<NEW_LINE>int count = 0;<NEW_LINE>in...
sanitizeSqlSb.toString(), sanitizeArguments);
380,360
private boolean snapEqualToParallelSnap(LayoutInterval snapped, boolean parallel, int alignment, LayoutInterval otherSnapped) {<NEW_LINE>if (snapped.getParent() == null) {<NEW_LINE>// snapped to root<NEW_LINE>LayoutInterval group = otherSnapped.isGroup() ? otherSnapped : otherSnapped.getParent();<NEW_LINE>while (group ...
group, null, dimension, alignment);
840,961
public void checkin(long poid, String comment) throws ServerException, UserException, PublicInterfaceNotFoundException {<NEW_LINE>this.fixOids(new OidProvider() {<NEW_LINE><NEW_LINE>private long c = 1;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public long newOid(EClass eClass) {<NEW_LINE>return c++;<NEW_LINE>}<NEW_LINE>});...
.newInstance(new PluginConfiguration());
26,795
public void commandStarted(CommandStartedEvent event) {<NEW_LINE>String databaseName = event.getDatabaseName();<NEW_LINE>// don't trace commands like "endSessions"<NEW_LINE>if ("admin".equals(databaseName))<NEW_LINE>return;<NEW_LINE>Span span = threadLocalSpan.next();<NEW_LINE>if (span == null || span.isNoop())<NEW_LIN...
).tag("mongodb.command", commandName);
58,341
protected ScatterData generateScatterData(int dataSets, float range, int count) {<NEW_LINE>ArrayList<IScatterDataSet> sets = new ArrayList<>();<NEW_LINE>ScatterChart.ScatterShape[] shapes = ScatterChart.ScatterShape.getAllDefaultShapes();<NEW_LINE>for (int i = 0; i < dataSets; i++) {<NEW_LINE>ArrayList<Entry> entries =...
range) + range / 4));
1,696,202
public void serializeWithType(final JanusGraphP value, final JsonGenerator jgen, final SerializerProvider serializerProvider, final TypeSerializer typeSerializer) throws IOException {<NEW_LINE>String predicateName = value.getBiPredicate().toString();<NEW_LINE>Object arg = value.getValue();<NEW_LINE>jgen.writeStartObjec...
arg, jgen, serializerProvider, typeSerializer);
873,899
public static long Extend(long fp, int x) {<NEW_LINE>final long[] mod = ByteModTable_7;<NEW_LINE>byte b = (byte) (x & 0xFF);<NEW_LINE>fp = ((fp >>> 8) ^ (mod[(b ^ ((int) fp)) & 0xFF]));<NEW_LINE>x = x >>> 8;<NEW_LINE>b = (byte) (x & 0xFF);<NEW_LINE>fp = ((fp >>> 8) ^ (mod[(b ^ ((int) <MASK><NEW_LINE>x = x >>> 8;<NEW_LI...
fp)) & 0xFF]));
800,865
private Map<String, Supplier<ReferenceBinding>> initializeCommonTypeBindings() {<NEW_LINE>if (this.commonTypeBindings != null)<NEW_LINE>return this.commonTypeBindings;<NEW_LINE>Map<String, Supplier<ReferenceBinding>> t = new HashMap<>();<NEW_LINE>t.put(new String(ConstantPool.JavaLangAssertionErrorConstantPoolName), th...
.JavaLangCharacterConstantPoolName), this::getJavaLangCharacter);
184,133
public void marshall(CreateLicenseVersionRequest createLicenseVersionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLicenseVersionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre...
createLicenseVersionRequest.getLicenseName(), LICENSENAME_BINDING);
377,513
private void processData(final LayerLightEngine<?, ?> lightProvider, final boolean doSkylight, final boolean skipEdgeLightPropagation, final CallbackInfo ci) {<NEW_LINE>// Process light removal<NEW_LINE>for (final long cPos : this.removedChunks) {<NEW_LINE>for (int y = -1; y < 17; ++y) {<NEW_LINE>final long sectionPos ...
, SectionPos.z(cPos));
571,420
private void lookupAddressForMyLocationPoint() {<NEW_LINE>if (myLocationToStart != null && myLocationToStart.isSearchingAddress(ctx) && (myLocationPointRequest == null || !myLocationPointRequest.getLatLon().equals(myLocationToStart.point))) {<NEW_LINE>cancelMyLocationPointAddressRequest();<NEW_LINE>myLocationPointReque...
getGeocodingLookupService().lookupAddress(myLocationPointRequest);
1,541,358
public int encodingLengthBytes() {<NEW_LINE>// TODO store byte[]s so we don't end up calculating again in encode<NEW_LINE>// SBE buffer is composed of:<NEW_LINE>// (a) Header: 8 bytes (4x uint16 = 8 bytes)<NEW_LINE>// (b) timestamp: fixed length long value (8 bytes)<NEW_LINE>// (b) 5 variable length fields. 4 bytes hea...
= 8 + 8 + 20 + 4;
1,113,813
public synchronized Collection<ProjectProblem> doIDEConfigChecks() {<NEW_LINE>Collection<ProjectProblem> toRet = new ArrayList<ProjectProblem>();<NEW_LINE>NbMavenProject nbproject = project.getLookup().lookup(NbMavenProject.class);<NEW_LINE><MASK><NEW_LINE>if (packagings.contains(packaging)) {<NEW_LINE>// TODO check on...
String packaging = nbproject.getPackagingType();
1,359,410
public JwtResponse dynamicBuilderSpecific(@RequestBody Map<String, Object> claims) throws UnsupportedEncodingException {<NEW_LINE>JwtBuilder builder = Jwts.builder();<NEW_LINE>claims.forEach((key, value) -> {<NEW_LINE>switch(key) {<NEW_LINE>case "iss":<NEW_LINE>ensureType(key, value, String.class);<NEW_LINE>builder.set...
.setSubject((String) value);
1,045,579
public void saveDetails(HttpResponse method, HTTPSampleResult res) {<NEW_LINE>final String varyHeader = getHeader(method, HTTPConstants.VARY);<NEW_LINE>if (isCacheable(res, varyHeader)) {<NEW_LINE>String lastModified = getHeader(method, HTTPConstants.LAST_MODIFIED);<NEW_LINE>String expires = getHeader(method, HTTPConst...
res.getRequestHeaders())));
206,456
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final Project project = e.getDataContext().getData(CommonDataKeys.PROJECT);<NEW_LINE>String m = "Started loading content";<NEW_LINE>LOG.info(m);<NEW_LINE>System.out.println(m);<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>count.set(0);<NEW_LINE>total...
}, "Loading", false, project);
647,896
public static void validateDownloaded(File f, RepositoryResource installResource) throws InstallException {<NEW_LINE>if (f == null || !f.exists() || installResource == null)<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>logger.log(Level.FINEST, "Resource SHA256: " + rSHA256);<NEW_LINE>if (rSHA256 != null) {<NEW_LINE>String...
String rSHA256 = installResource.getMainAttachmentSHA256();
1,424,509
public static <T extends ImageBase<T>> ImageDistort<T, T> rectifyImage(CameraPinholeBrown param, FMatrixRMaj rectify, BorderType borderType, ImageType<T> imageType) {<NEW_LINE><MASK><NEW_LINE>if (skip) {<NEW_LINE>borderType = BorderType.EXTENDED;<NEW_LINE>}<NEW_LINE>InterpolatePixel<T> interp = FactoryInterpolation.cre...
boolean skip = borderType == BorderType.SKIP;
125,040
public void marshall(LoRaWANGetServiceProfileInfo loRaWANGetServiceProfileInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (loRaWANGetServiceProfileInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(...
e.getMessage(), e);
1,040,190
public void onPostCreate(int mode) {<NEW_LINE>if (mode != Fragmentation.BUBBLE)<NEW_LINE>return;<NEW_LINE>View root = mActivity.findViewById(android.R.id.content);<NEW_LINE>if (root instanceof FrameLayout) {<NEW_LINE>FrameLayout content = (FrameLayout) root;<NEW_LINE>final ImageView stackView = new ImageView(mActivity)...
setImageResource(R.drawable.fragmentation_ic_stack);
44,572
public static ColumnVector stringConcatenate(Scalar separator, Scalar narep, ColumnView[] columns, boolean separateNulls) {<NEW_LINE>assert columns != null : "input columns should not be null";<NEW_LINE>assert columns.length > 0 : "input columns should not be empty";<NEW_LINE>assert separator != null : "separator scala...
equals(DType.STRING) : "narep scalar must be a string scalar";
1,372,618
final DescribeAccountLimitsResult executeDescribeAccountLimits(DescribeAccountLimitsRequest describeAccountLimitsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAccountLimitsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,403,732
public static FileSystemManager generateVfs() throws FileSystemException {<NEW_LINE>DefaultFileSystemManager vfs = new DefaultFileSystemManager();<NEW_LINE>vfs.addProvider("res", new org.apache.commons.vfs2.provider.res.ResourceFileProvider());<NEW_LINE>vfs.addProvider("zip", new org.apache.commons.vfs2.provider.zip.Zi...
provider.jar.JarFileProvider());
145,850
public ListWorldGenerationJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListWorldGenerationJobsResult listWorldGenerationJobsResult = new ListWorldGenerationJobsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
int originalDepth = context.getCurrentDepth();
1,546,949
public void validateFormalIdentifier(ByteList identifier) {<NEW_LINE>char <MASK><NEW_LINE>if (Character.isUpperCase(first)) {<NEW_LINE>compile_error("formal argument cannot be a constant");<NEW_LINE>}<NEW_LINE>switch(first) {<NEW_LINE>case '@':<NEW_LINE>if (identifier.charAt(1) == '@') {<NEW_LINE>compile_error("formal ...
first = identifier.charAt(0);
665,247
public void preloadScene(Spatial scene) {<NEW_LINE>if (scene instanceof Node) {<NEW_LINE>// recurse for all children<NEW_LINE>Node n = (Node) scene;<NEW_LINE>List<Spatial> children = n.getChildren();<NEW_LINE>for (int i = 0; i < children.size(); i++) {<NEW_LINE>preloadScene(children.get(i));<NEW_LINE>}<NEW_LINE>} else ...
).preload(this, gm);
618,391
private void afterRestoreStarted(Client clientWithHeaders, PutFollowAction.Request request, ActionListener<PutFollowAction.Response> originalListener, RestoreService.RestoreCompletionResponse response) {<NEW_LINE>final ActionListener<PutFollowAction.Response> listener;<NEW_LINE>if (ActiveShardCount.NONE.equals(request....
initiateFollowing(clientWithHeaders, request, delegatedListener);
1,395,919
void process(Parser.Result r) {<NEW_LINE>if (!(r instanceof GroovyParserResult)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>groovyResult = (GroovyParserResult) r;<NEW_LINE>// CSL context for completion<NEW_LINE>cslContext = new CompletionRequestContext(offset, queryType, groovyResult, true);<NEW_LINE>proposals.addAll(impl(...
(cslContext).getProposals());
1,527,665
private ProcessStatus outputVerificationResponseBean(final PwmRequest pwmRequest, final boolean passed, final HelpdeskVerificationStateBean verificationStateBean) throws IOException, PwmUnrecoverableException {<NEW_LINE>// add a delay to prevent continuous checks<NEW_LINE>final long delayMs = JavaHelper.silentParseLong...
(pwmRequest.getPwmDomain()));
1,041,319
private boolean checkController(JavaClass cls) {<NEW_LINE>if (cls.isAnnotation() || cls.isEnum()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>JavaClass superClass = cls.getSuperJavaClass();<NEW_LINE>List<JavaAnnotation> classAnnotations = new ArrayList<>();<NEW_LINE>if (Objects.nonNull(superClass)) {<NEW_LINE>classAnn...
String value = docletTag.getName();
216,708
public void addMergeFromValue(SourceBuilder code, String value) {<NEW_LINE>Excerpt defaults = Declarations.freshBuilder(code, datatype).orElse(null);<NEW_LINE>if (defaults != null) {<NEW_LINE>code.add("if (");<NEW_LINE>if (!hasDefault) {<NEW_LINE>code.add("%s.contains(%s.%s) || ", UNSET_PROPERTIES.on(defaults), datatyp...
value, property.getGetterName());
1,007,733
private void initImpl(LoadedSnapshot ls) {<NEW_LINE>this.snapshot = ls;<NEW_LINE>updateSaveState();<NEW_LINE>setOpaque(false);<NEW_LINE>setFocusable(true);<NEW_LINE>setRequestFocusEnabled(true);<NEW_LINE>refreshTabName();<NEW_LINE>switch(snapshot.getType()) {<NEW_LINE>case LoadedSnapshot.SNAPSHOT_TYPE_CPU:<NEW_LINE>set...
).lookup(SnapshotListener.class);
1,574,881
void registerInterceptorBindings(@Observes BeforeBeanDiscovery discovery, BeanManager bm) {<NEW_LINE>// Check if fault tolerance and its metrics are enabled<NEW_LINE>final Config config = ConfigProvider.getConfig();<NEW_LINE>isFaultToleranceEnabled = // default is enabled<NEW_LINE>config.getOptionalValue(MP_FT_NON_FALL...
JerseyRequestScopeAsCdiBean.class.getName());
1,315,215
public IReplRequestHandlerResult handleRequest(final PO po, IReplRequestHandlerCtx ctx) {<NEW_LINE>final Properties ctxToUse = ctx.getEnvCtxToUse();<NEW_LINE>if (!Util.same(po.getCtx(), ctxToUse)) {<NEW_LINE>// this shall not happen, it's an internal error<NEW_LINE>throw new ReplicationException("PO does not have same ...
role = Env.getUserRolePermissions(ctxToUse);
1,852,705
public void execute(DiagramHandler handler) {<NEW_LINE>super.execute(handler);<NEW_LINE>if (entities == null) {<NEW_LINE>entities = new Vector<GridElement>();<NEW_LINE>for (GridElement e : ClipBoard.getInstance().paste()) {<NEW_LINE>GridElement clone = ElementFactorySwing.createCopy(e, handler);<NEW_LINE>entities.add(c...
getRectangle().x, minX);
1,070,140
public void doLayout() {<NEW_LINE>clear();<NEW_LINE>GwtToolWindowStripe topLayout = myStripes.get(DockLayoutState.Constraint.TOP);<NEW_LINE>if (topLayout != null && topLayout.canShow()) {<NEW_LINE>add(topLayout);<NEW_LINE>setAnywhereSize(this, <MASK><NEW_LINE>}<NEW_LINE>HorizontalPanel centerBlock = new HorizontalPanel...
topLayout, "22px", "100%", "Bottom");
684,049
public void execute(String commandName, ConsoleInput ci, CommandLine commandLine) {<NEW_LINE>String userName = commandLine.getOptionValue('u');<NEW_LINE>if (userName == null) {<NEW_LINE>ci.out.println("> ModifyUser: (u)sername option not specified");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>UserProfile profile = getUserMan...
userType = commandLine.getOptionValue('t');
37,916
private static List<Pair<ArgumentMarshaller>> marshallers() {<NEW_LINE>final List<Pair<ArgumentMarshaller>> list = new ArrayList<MASK><NEW_LINE>// Use the new V2 boolean marshallers.<NEW_LINE>addStandardDateMarshallers(list);<NEW_LINE>addV2BooleanMarshallers(list);<NEW_LINE>addStandardNumberMarshallers(list);<NEW_LINE>...
<Pair<ArgumentMarshaller>>();
1,687,176
boolean writeClass(DataOutputStream dd) {<NEW_LINE>// outputs the .class file from the loaded one<NEW_LINE>try {<NEW_LINE>// first write magic number<NEW_LINE>dd.writeInt((int) magic);<NEW_LINE>dd.writeShort(minor_version);<NEW_LINE>dd.writeShort(major_version);<NEW_LINE>dd.writeShort(constant_pool_count);<NEW_LINE>if ...
writeAttributes(dd, attributes_count, attributes);
1,044,013
/*<NEW_LINE>* Compute an 8-byte hash of a byte array of length greater than 64 bytes.<NEW_LINE>*/<NEW_LINE>private static long fullFingerprint(byte[] bytes, int offset, int length) {<NEW_LINE>// For lengths over 64 bytes we hash the end first, and then as we<NEW_LINE>// loop we keep 56 bytes of state: v, w, x, y, and z...
] v = new long[2];
795,395
public char[][] create(int n, int m) {<NEW_LINE>char[][] matrix = new char[n][m];<NEW_LINE>int r = 0;<NEW_LINE>char ch = 'X';<NEW_LINE>int high = Math.min(n, m);<NEW_LINE>// high is min of n and m. If high is odd then high is ceiling of high/2<NEW_LINE>// else high is high/2. e.g high is 5 then high becomes 3 if high i...
- 1][i] = ch;
995,187
protected void populateBuiltInTypes() {<NEW_LINE>int id = super.startTransaction("Populate");<NEW_LINE>try {<NEW_LINE>List<DataType> list = new ArrayList<>();<NEW_LINE>ClassFilter filter = new BuiltInDataTypeClassExclusionFilter();<NEW_LINE>List<BuiltInDataType> datatypes = ClassSearcher.getInstances(BuiltInDataType.cl...
datatype.getName() + "'");
284,948
public void run() throws IOException {<NEW_LINE>SignalHandler prevWinchHandler = terminal.handle(Signal.WINCH, this::resize);<NEW_LINE>SignalHandler prevIntHandler = terminal.handle(Signal.INT, this::interrupt);<NEW_LINE>SignalHandler prevSuspHandler = terminal.handle(Signal.TSTP, this::suspend);<NEW_LINE>Attributes at...
handle(Signal.TSTP, prevSuspHandler);
1,594,631
private static void writeObject(final Writer writer, final Object object) throws IOException {<NEW_LINE>try {<NEW_LINE>final PropertyDescriptor[] descriptors = Introspector.getBeanInfo(object.getClass()).getPropertyDescriptors();<NEW_LINE>final Map<String, Object> properties = new LinkedHashMap<String, Object>(descript...
).getName(), e);
1,734,187
public void saveGraph() {<NEW_LINE>compassActivity.csvLogger.prepareLogFile();<NEW_LINE>compassActivity.csvLogger.writeMetaData(getResources().getString(R.string.compass));<NEW_LINE>compassActivity.csvLogger.writeCSVFile(CSV_HEADER);<NEW_LINE>for (CompassData compassData : compassActivity.recordedCompassData) {<NEW_LIN...
Bitmap b = view.getDrawingCache();
190,996
private Map<String, Integer> assignAttrIds(int attrTypeId) {<NEW_LINE>// Attrs are special, since they can be defined within a declare-styleable. Those are sorted<NEW_LINE>// after top-level definitions.<NEW_LINE>if (!innerClasses.containsKey(ResourceType.ATTR)) {<NEW_LINE>return ImmutableMap.of();<NEW_LINE>}<NEW_LINE>...
(getInitialIdForTypeId(attrTypeId), assignedIds);
991,999
private void doRemoveCachePages(int internalFileId) {<NEW_LINE>final Iterator<Map.Entry<PageKey, OCachePointer>> entryIterator = writeCachePages<MASK><NEW_LINE>while (entryIterator.hasNext()) {<NEW_LINE>final Map.Entry<PageKey, OCachePointer> entry = entryIterator.next();<NEW_LINE>final PageKey pageKey = entry.getKey()...
.entrySet().iterator();