idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
616,071
public static void histogram_U8(Planar<GrayU8> image, Histogram_F64 histogram) {<NEW_LINE>if (image.getNumBands() != histogram.getDimensions())<NEW_LINE>throw new IllegalArgumentException("Number of bands in the image and histogram must be the same");<NEW_LINE>if (!histogram.isRangeSet())<NEW_LINE>throw new IllegalArgu...
index = histogram.getIndex(coordinate);
665,422
public MultipleObjectsBundle filter(MultipleObjectsBundle objects) {<NEW_LINE>final int size = objects.dataLength();<NEW_LINE>if (size == 0) {<NEW_LINE>return objects;<NEW_LINE>}<NEW_LINE>MultipleObjectsBundle bundle = new MultipleObjectsBundle();<NEW_LINE>for (int r = 0; r < objects.metaLength(); r++) {<NEW_LINE>@Supp...
] u = svd.getU();
729,003
public boolean send(ProfileEvent profileEvent, Transaction tx) throws IOException {<NEW_LINE>String topic = profileEvent.getHeaders().get(Constants.TOPIC);<NEW_LINE>ProducerRecord<String, byte[]> record = handler.parse(sinkContext, profileEvent);<NEW_LINE>long sendTime = System.currentTimeMillis();<NEW_LINE>// check<NE...
.partition()), ex);
1,485,944
private void executeReceiveRequest(final TransportRequest transportRequest, final URI url, final HttpHeaders headers, final XhrClientSockJsSession session, final SettableListenableFuture<WebSocketSession> connectFuture) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("Starting XHR receive request for " ...
setPath(url.getPath());
1,621,670
private RexNode simplifyNot(RexCall call) {<NEW_LINE>final RexNode a = call.getOperands().get(0);<NEW_LINE>switch(a.getKind()) {<NEW_LINE>case NOT:<NEW_LINE>// NOT NOT x ==> x<NEW_LINE>return simplify(((RexCall) a).getOperands().get(0));<NEW_LINE>}<NEW_LINE>final SqlKind negateKind = a.getKind().negate();<NEW_LINE>if (...
newOperands = new ArrayList<>();
421,541
final PutAccessPointPolicyForObjectLambdaResult executePutAccessPointPolicyForObjectLambda(PutAccessPointPolicyForObjectLambdaRequest putAccessPointPolicyForObjectLambdaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putAccessPointPolicyForObjectLambdaRequest);<NEW_LINE>AWSRequestMetrics ...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
213,158
private String computeMethodAnchorPrefixEnd(BinaryMethod method) throws JavaModelException {<NEW_LINE>String typeQualifiedName = null;<NEW_LINE>if (this.type.isMember()) {<NEW_LINE>IType currentType = this.type;<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>while (currentType != null) {<NEW_LINE>buffer....
anchor.indexOf(')', index);
1,522,395
public io.kubernetes.client.proto.V1beta2Apps.DeploymentList buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta2Apps.DeploymentList result = new io.kubernetes.client.proto.V1beta2Apps.DeploymentList(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_...
util.Collections.unmodifiableList(items_);
657,319
private void mergeBrowse(MBrowse browse, MBrowseCustom customBrowse) {<NEW_LINE>// Name<NEW_LINE>if (!Util.isEmpty(customBrowse.getName())) {<NEW_LINE>browse.setName(customBrowse.getName());<NEW_LINE>}<NEW_LINE>// Description<NEW_LINE>if (!Util.isEmpty(customBrowse.getDescription())) {<NEW_LINE>browse.setDescription(cu...
get_Translation(I_AD_Browse.COLUMNNAME_Help, language);
446,086
private void updateColoredCursor() {<NEW_LINE>if (coloredCursor != null && !coloredCursor.isDisposed()) {<NEW_LINE>coloredCursor.dispose();<NEW_LINE>}<NEW_LINE>ImageData cursorImageData = IArchiImages.ImageFactory.getImageDescriptor(IArchiImages.ICON_FORMAT_PAINTER).getImageData(ImageFactory.getLogicalDeviceZoom());<NE...
getPixel(pf.getCursorColor());
1,739,068
public static Path downloadAndInstallEditor() {<NEW_LINE>// https://github.com/VSCodium/vscodium/releases/download/1.52.1/VSCodium-darwin-x64-1.52.1.zip<NEW_LINE>String version = getLatestVSCodiumVersion();<NEW_LINE>Util.infoMsg("Downloading VSCodium " + version + ". Be patient, this can take several minutes...(Ctrl+C ...
EXIT_UNEXPECTED_STATE, "Unable to download or install VSCodium version " + version, e);
1,828,730
private void generateSlashHyphenFeatures(String word, String fragSuffix, String wordSuffix, FeatureCollector out) {<NEW_LINE>String[] bits = splitSlashHyphenWordsPattern.split(word);<NEW_LINE>for (String bit : bits) {<NEW_LINE>if (flags.slashHyphenTreatment == SeqClassifierFlags.SlashHyphenEnum.WFRAG) {<NEW_LINE>out.bu...
append(wordSuffix).add();
1,198,784
public void filter() {<NEW_LINE>Predicate<S> oldPredicate = getPredicate();<NEW_LINE>final boolean filterExists = getVisibleLeafColumns().stream().filter(FilteredTableColumn.class::isInstance).map(FilteredTableColumn.class::cast).filter(FilteredTableColumn::isFilterable).noneMatch(f -> f.getPredicate() != null);<NEW_LI...
FilteredTableView.this, FilteredTableView.this);
1,655,286
private // SIB0115d.comms start<NEW_LINE>void processAsyncSessionStoppedCallback(CommsByteBuffer buffer, Conversation conversation) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "processAsyncSessionStoppedCallback", new Object[] { buffer, conversation });<NEW...
(ClientConversationState) conversation.getAttachment();
9,506
private Optional<List<Object[]>> onJdbc(String statement) {<NEW_LINE>String datasourceDs = null;<NEW_LINE>if (MetaClusterCurrent.exist(ReplicaSelectorManager.class)) {<NEW_LINE>ReplicaSelectorManager replicaSelectorManager = MetaClusterCurrent.wrapper(ReplicaSelectorManager.class);<NEW_LINE>datasourceDs = replicaSelect...
MetaClusterCurrent.wrapper(JdbcConnectionManager.class);
1,093,078
private static void runAssertionSingleRowFunc(RegressionEnvironment env, RegressionPath path, Object[] rowValues) {<NEW_LINE>// try join passing of params<NEW_LINE>String eplJoin = "@name('s0') select " + InfraTableSelect.class.getName() + ".myServiceEventBean(mt) as c0, " + InfraTableSelect.class.getName() + ".myServi...
sendEventBean(new SupportBean_S2(0));
56,283
static <Request extends AbstractBulkByScrollRequest<Request>> void initTaskState(BulkByScrollTask task, Request request, Client client, ActionListener<Void> listener) {<NEW_LINE><MASK><NEW_LINE>if (configuredSlices == AbstractBulkByScrollRequest.AUTO_SLICES) {<NEW_LINE>ClusterSearchShardsRequest shardsRequest = new Clu...
int configuredSlices = request.getSlices();
1,333,999
public <Req, Resp> BlockingStreamingClientCall<Req, Resp> newBlockingStreamingCall(final MethodDescriptor<Req, Resp> methodDescriptor, final BufferDecoderGroup decompressors) {<NEW_LINE>GrpcStreamingSerializer<Req> serializerIdentity = streamingSerializer(methodDescriptor);<NEW_LINE>GrpcStreamingDeserializer<Resp> dese...
serializerIdentity, metadata.requestCompressor());
234,370
public static QueryWorksByWorkspaceResponse unmarshall(QueryWorksByWorkspaceResponse queryWorksByWorkspaceResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryWorksByWorkspaceResponse.setRequestId(_ctx.stringValue("QueryWorksByWorkspaceResponse.RequestId"));<NEW_LINE>queryWorksByWorkspaceResponse.setSuccess(_ctx.boolean...
("QueryWorksByWorkspaceResponse.Result.Data[" + i + "].Directory.PathName"));
991,595
public void message(final ChatRoomIrcImpl chatroom, final String message) throws OperationFailedException {<NEW_LINE>if (!this.connectionState.isConnected()) {<NEW_LINE>throw new IllegalStateException("Not connected to an IRC server.");<NEW_LINE>}<NEW_LINE>final String target = chatroom.getIdentifier();<NEW_LINE>// mes...
e.getMessage(), e);
1,437,811
static boolean equalsImpl(List<?> thisList, @CheckForNull Object other) {<NEW_LINE>if (other == checkNotNull(thisList)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (!(other instanceof List)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<?> otherList <MASK><NEW_LINE>int size = thisList.size();<NEW_LINE>if (size !...
= (List<?>) other;
611,862
private static void startLdapServer() throws Exception {<NEW_LINE>DirectoryServiceFactory dsf = new DefaultDirectoryServiceFactory();<NEW_LINE>dsf.init(DIRECTORY_NAME);<NEW_LINE>directoryService = dsf.getDirectoryService();<NEW_LINE>// Required for Kerberos<NEW_LINE>directoryService.addLast(new KeyDerivationInterceptor...
ldapServerHostName, LDAP_PORT, 3, 5);
632,082
protected HttpResponse doSendRequest(final HttpRequest request, final HttpClientConnection conn, final HttpContext context) throws IOException, HttpException {<NEW_LINE>synchronized (listener) {<NEW_LINE>listener.log(TranscriptListener.Type.request, request.getRequestLine().toString());<NEW_LINE>for (Header header : re...
getValue())))));
1,842,992
private static String[] makeRuleNames() {<NEW_LINE>return new String[] { "NumericLiteral", "ExponentPart", "ExponentIndicator", "SignedInteger", "Digits", "Digit", "Sign", "BooleanLiteral", "NULL", "LBRACE", "RBRACE", "PLUS", "AND", "EQ", "LT", "COLON", "LBRACK", "LPAREN", "MINUS", "OR", "NEQ", "GT", "QUESTION", "RBRAC...
"TEMPLATE_INTERPOLATION_START", "QuotedString", "QuotedStringChar", "END_QUOTE" };
599,227
public InternalAggregation reduce(InternalAggregation aggregation, ReduceContext reduceContext) {<NEW_LINE>InternalMultiBucketAggregation<? extends InternalMultiBucketAggregation, ? extends InternalMultiBucketAggregation.InternalBucket> histo = (InternalMultiBucketAggregation<? extends InternalMultiBucketAggregation, ?...
), new InternalAggregations(aggs));
914,276
final DescribeJobResult executeDescribeJob(DescribeJobRequest describeJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
responseHandler, executionContext, null, endpointTraitHost);
1,512,449
public void commitNicForMigration(final VirtualMachineProfile src, final VirtualMachineProfile dst) {<NEW_LINE>for (final NicProfile nicSrc : src.getNics()) {<NEW_LINE>final NetworkVO network = _networksDao.findById(nicSrc.getNetworkId());<NEW_LINE>final NetworkGuru guru = AdapterBase.getAdapterByName(networkGurus, net...
setReservationId(nicDst.getReservationId());
294,226
public void draw(Graphics g, int trackPosition) {<NEW_LINE>// only draw spinners shortly before start time<NEW_LINE>int timeDiff = hitObject.getTime() - trackPosition;<NEW_LINE>final int fadeInTime = game.getFadeInTime();<NEW_LINE>if (timeDiff - fadeInTime > 0)<NEW_LINE>return;<NEW_LINE>boolean spinnerComplete = (rotat...
width / 2, height / 4);
414,405
public void execute() throws AnalysisException {<NEW_LINE>if (groupExpression.hasApplied(rule)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GroupExpressionMatching groupExpressionMatching = new GroupExpressionMatching(rule.getPattern(), groupExpression);<NEW_LINE>for (Plan plan : groupExpressionMatching) {<NEW_LINE>context....
new ExploreGroupExpressionJob(newGroupExpression, context));
956,267
public void updateUI() {<NEW_LINE>removeAllViews();<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(getContext());<NEW_LINE>// Inflate this data binding layout<NEW_LINE>mBinding = DataBindingUtil.inflate(inflater, R.layout.downloads, this, true);<NEW_LINE>mBinding.setLifecycleOwner((VRBrowserActivity) getContext...
downloadsList.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
1,558,168
private void parseAsrtBox(byte[] asrt, int pos) {<NEW_LINE>System.out.println("parsing asrt");<NEW_LINE>readByte<MASK><NEW_LINE>readInt24(asrt, pos + 1);<NEW_LINE>int qualityEntryCount = readByte(asrt, pos + 4);<NEW_LINE>segTable.clear();<NEW_LINE>pos += 5;<NEW_LINE>BufferPointer bPtr = new BufferPointer();<NEW_LINE>fo...
(asrt, (int) pos);
930,047
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {<NEW_LINE>if (in.readableBytes() < NUM_HEADER_BYTES) {<NEW_LINE>// Wait for more bytes<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int idx = in.readerIndex();<NEW_LINE>if (match(BINARY_PREFIX, in, idx) || match(TEXT_PREFIX, in, idx)) {<NEW_LINE>//...
msg.sourcePort())));
1,748,652
public final void add(long timestamp, EventBean bean) {<NEW_LINE>// Empty window<NEW_LINE>if (window.isEmpty()) {<NEW_LINE>TimeWindowPair pair = new TimeWindowPair(timestamp, bean);<NEW_LINE>window.add(pair);<NEW_LINE>if (reverseIndex != null) {<NEW_LINE>reverseIndex.put(bean, pair);<NEW_LINE>}<NEW_LINE>size = 1;<NEW_L...
reverseIndex.put(bean, pair);
1,842,463
protected void writeForInLoop(final ForStatement loop) {<NEW_LINE>controller.getAcg().onLineNumber(loop, "visitForLoop");<NEW_LINE>writeStatementLabel(loop);<NEW_LINE><MASK><NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>OperandStack operandStack = controller.getOperandStack();<NEW_LINE>compileStac...
CompileStack compileStack = controller.getCompileStack();
520,371
private static ArrayList<WizardPage<RSConnectPublishInput, RSConnectPublishResult>> createPages(RSConnectPublishInput input) {<NEW_LINE>ArrayList<WizardPage<RSConnectPublishInput, RSConnectPublishResult>> pages = new ArrayList<>();<NEW_LINE>String singleTitle = constants_.publishMultiplePagSingleTitle();<NEW_LINE>Strin...
getSourceRmd().getParentPathString());
1,564,139
public com.squareup.okhttp.Call instrumentGetActiveAsync(final ApiCallback<List<Instrument>> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequestListener progressRequestListener = null;<NEW_LINE>if (callback != null) {<NEW_L...
call = instrumentGetActiveValidateBeforeCall(progressListener, progressRequestListener);
1,841,534
private void addKeywordsForClassBody(Env env) {<NEW_LINE>String prefix = env.getPrefix();<NEW_LINE>for (String kw : CLASS_BODY_KEYWORDS) {<NEW_LINE>if (Utilities.startsWith(kw, prefix)) {<NEW_LINE>results.add(itemFactory.createKeywordItem(kw<MASK><NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (isSealedSupported(env)) {<NEW_LINE>if...
, SPACE, anchorOffset, false));
450,786
private void generatePrimitiveFieldMetaMethod(final StringBuilder sb, final String propertyName, final Token token, final String indent) {<NEW_LINE>final PrimitiveType primitiveType = token.encoding().primitiveType();<NEW_LINE>final String javaTypeName = javaTypeName(primitiveType);<NEW_LINE>final String formattedPrope...
javaTypeName, formattedPropertyName, "Min", minValue);
635,087
private void loadNode106() {<NEW_LINE>UaMethodNode node = new UaMethodNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultUserTokenGroup_TrustList_Read, new QualifiedName(0, "Read"), new LocalizedText("en", "Read"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), true, true);...
.expanded(), true));
1,356,666
private // / </remarks><NEW_LINE>BoolExpr commAxiom(Context ctx, FuncDecl f) throws Exception {<NEW_LINE>Sort t = f.getRange();<NEW_LINE>Sort[] dom = f.getDomain();<NEW_LINE>if (dom.length != 2 || !t.equals(dom[0]) || !t.equals(dom[1])) {<NEW_LINE>System.out.println(Integer.toString(dom.length) + " " + dom[0].toString(...
+ f.getName() + " y x))))";
1,554,058
// getC_SalesRegion_ID<NEW_LINE>@Override<NEW_LINE>protected boolean beforeSave(final boolean newRecord) {<NEW_LINE>if (newRecord) {<NEW_LINE>log.debug(toString());<NEW_LINE>//<NEW_LINE>getAD_Org_ID();<NEW_LINE>getC_SalesRegion_ID();<NEW_LINE>// Set Default Account Info<NEW_LINE>if (getM_Product_ID() == 0) {<NEW_LINE>s...
setUser2_ID(m_acct.getUser2_ID());
1,171,478
public String apply(String o) {<NEW_LINE>StringWriter taggedResults = new StringWriter();<NEW_LINE>List<List<HasWord>> sentences;<NEW_LINE>if (tokenize) {<NEW_LINE>sentences = tokenizeText(new StringReader(o), tokenizerFactory);<NEW_LINE>} else {<NEW_LINE>sentences = Generics.newArrayList();<NEW_LINE>sentences.add(Sent...
new SentenceTaggingProcessor(tagger, outputLemmas));
1,261,676
protected boolean load(ResultSet rs) {<NEW_LINE>int size = get_ColumnCount();<NEW_LINE>boolean success = true;<NEW_LINE>int index = 0;<NEW_LINE>log.finest("(rs)");<NEW_LINE>// load column values<NEW_LINE>for (index = 0; index < size; index++) {<NEW_LINE>String columnName = p_info.getColumnName(index);<NEW_LINE>Class<?>...
Level.FINER, "Virtual Column not loaded: " + columnName);
1,660,478
static Object shapeItemWithJson(JSONObject json, LottieComposition composition) {<NEW_LINE>String type = json.optString("ty");<NEW_LINE>switch(type) {<NEW_LINE>case "gr":<NEW_LINE>return ShapeGroup.Factory.newInstance(json, composition);<NEW_LINE>case "st":<NEW_LINE>return ShapeStroke.Factory.newInstance(json, composit...
Factory.newInstance(json, composition);
1,113,459
static Collection<EmbeddableDescription> findEmbeddables(ResourceResolver resourceResolver) {<NEW_LINE>String[] searchPaths = resourceResolver.getSearchPath();<NEW_LINE>for (int i = 0; i < searchPaths.length; i++) {<NEW_LINE>searchPaths[i] = searchPaths[i].substring(0, searchPaths[i].length() - 1);<NEW_LINE>}<NEW_LINE>...
.getName(), properties));
1,036,473
public static GetSlrConfigurationResponse unmarshall(GetSlrConfigurationResponse getSlrConfigurationResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSlrConfigurationResponse.setRequestId(_ctx.stringValue("GetSlrConfigurationResponse.RequestId"));<NEW_LINE>getSlrConfigurationResponse.setCode(_ctx.stringValue("GetSlrCon...
(_ctx.stringValue("GetSlrConfigurationResponse.Data.MqGroupId"));
277,697
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {<NEW_LINE>if (handler instanceof HandlerMethod) {<NEW_LINE>HandlerMethod method = ((HandlerMethod) handler);<NEW_LINE>TwoFactor factor = method.getMethodAnnotation(TwoFactor.class);<NEW_LINE>if (factor =...
getHeader(factor.parameter());
426,780
private void checkForOntologyIDChange(OWLOntologyChange change) {<NEW_LINE>if (!(change instanceof SetOntologyID)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SetOntologyID setID = (SetOntologyID) change;<NEW_LINE>OWLOntology existingOntology = ontologiesByID.get(setID.getNewOntologyID());<NEW_LINE>OWLOntology o = setID.get...
error(location + " existing:{}", existingOntology);
92,410
private EPStatement compileDeploy(String epl) {<NEW_LINE>try {<NEW_LINE>Configuration configuration = new Configuration();<NEW_LINE>// add sample import for compile-time use<NEW_LINE>configuration.getCommon().addImport(RuntimeConfigMain.class);<NEW_LINE>// add sample single-row median function provided by this class<NE...
).getStatements()[0];
1,433,440
public void marshall(ResultConfigurationUpdates resultConfigurationUpdates, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (resultConfigurationUpdates == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(result...
e.getMessage(), e);
1,680,842
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>labelPattern = new javax.swing.JLabel();<NEW_LINE>textField = new javax.swing.JTextField();<NEW_LINE>regexCheckbox = new ja...
0, 3, 0, 3);
480,591
public Optional<ProcessResult> execute(String command, String processInput) throws IOException {<NEW_LINE>ByteArrayOutputStream processErr = new ByteArrayOutputStream();<NEW_LINE>ByteArrayOutputStream processOut = new ByteArrayOutputStream();<NEW_LINE>DefaultExecutor executor = new DefaultExecutor();<NEW_LINE>executor....
(CommandLine.parse(command));
1,818,407
protected void partialFinish(ManufOrder manufOrder, int inOrOut) throws AxelorException {<NEW_LINE>if (inOrOut != PART_FINISH_IN && inOrOut != PART_FINISH_OUT) {<NEW_LINE>throw new IllegalArgumentException(I18n.get(IExceptionMessage.IN_OR_OUT_INVALID_ARG));<NEW_LINE>}<NEW_LINE>Company company = manufOrder.getCompany();...
getDefaultStockLocation(manufOrder, company, STOCK_LOCATION_OUT);
573,077
public PrimaryStorageCapacityVO call(PrimaryStorageCapacityVO cap) {<NEW_LINE>String beforeCapacity = String.format("[totalCapacity: %s, availableCapacity: %s, totalPhysicalCapacity: %s, " + "availablePhysicalCapacity: %s]", cap.getTotalCapacity(), cap.getAvailableCapacity(), cap.getTotalPhysicalCapacity(), cap.getAvai...
(), beforeCapacity, nowCapacity));
443,172
// Initializes all anomaly errors.<NEW_LINE>public HashMap<String, ArrayList<Float>> initAnomalyErrors(DataSequence observedSeries, DataSequence expectedSeries) {<NEW_LINE><MASK><NEW_LINE>// init MASE.<NEW_LINE>for (int i = 1; i < n; i++) {<NEW_LINE>maseDenom += Math.abs(observedSeries.get(i).value - observedSeries.get...
int n = observedSeries.size();
1,099,356
public boolean validateHeader(final BlockHeader header, final BlockHeader parent, final ProtocolContext protocolContext, final HeaderValidationMode mode) {<NEW_LINE>switch(mode) {<NEW_LINE>case NONE:<NEW_LINE>return true;<NEW_LINE>case LIGHT_DETACHED_ONLY:<NEW_LINE>return applyRules(header, parent, protocolContext, rul...
parent, protocolContext, Rule::includeInLightValidation);
1,516,760
private void askUserToFixPath(DefaultListModel<BasePathSupport.Item> includePathListModel, BasePathSupport.Item item) {<NEW_LINE>PhpProject currentProject = uiProps.getProject();<NEW_LINE>FileObject fileObject = item.getFileObject(currentProject.getProjectDirectory());<NEW_LINE>assert fileObject != null;<NEW_LINE>PhpPr...
, owningProjectDisplayName), NotifyDescriptor.YES_NO_OPTION);
915,476
public void renderWireFrame(PoseStack matrix, VertexConsumer vertexBuilder, double angle, float red, float green, float blue, float alpha) {<NEW_LINE>float baseRotation = getAbsoluteRotation(angle);<NEW_LINE>setRotation(blade1a, 0F, 0F, baseRotation);<NEW_LINE>setRotation(blade1b, 0F, 0F, 0.0349066F + baseRotation);<NE...
blade3a, 0F, 0F, blade3Rotation);
1,128,199
protected IBindingSet[] nextChunk() throws InterruptedException {<NEW_LINE>if (log.isDebugEnabled())<NEW_LINE>log.debug("joinOp=" + joinOp);<NEW_LINE>// while (!source.isExhausted()) {<NEW_LINE>//<NEW_LINE>// halted();<NEW_LINE>//<NEW_LINE>// // note: uses timeout to avoid blocking w/o testing [halt].<NEW_LINE>// if (s...
unitsIn.add(chunk.length);
245,988
public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>Bone bone = skeleton.bones.get(boneIndex);<NEW_LINE>if (!bone.active)<NEW_LINE>return;<NEW_LINE>float[] frames = this.frames;<NEW_LINE>if (time < frames[0]) {<NEW_L...
[i + ENTRIES] - before);
91,558
public static VariantContext swapAlleles(final VariantContext originalVc, final Allele oldAllele, final Allele newAllele) throws IllegalArgumentException {<NEW_LINE>if (!originalVc.getAlleles().contains(oldAllele))<NEW_LINE>throw new IllegalArgumentException("Couldn't find allele " + oldAllele + " in VariantContext " +...
getGenotypes().size());
354,742
private GridPane createEditor(TableRowExpanderColumn.TableRowDataFeatures<Customer> param) {<NEW_LINE>GridPane editor = new GridPane();<NEW_LINE>editor.setPadding(new Insets(10));<NEW_LINE>editor.setHgap(10);<NEW_LINE>editor.setVgap(5);<NEW_LINE>Customer customer = param.getValue();<NEW_LINE>TextField nameField = new T...
event -> param.toggleExpanded());
129,276
public ApiResponse<Void> permissionsPutWithHttpInfo(String id, UpdatePermissionRequest permissionRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = permissionRequest;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the require...
HashMap<String, String>();
1,684,400
public //<NEW_LINE>boolean updateTargetsWithPartiallyInferredType(final Equalities equalities, ConstraintMap constraintMap, AnnotatedTypeFactory typeFactory) {<NEW_LINE>boolean updated = false;<NEW_LINE>if (!equalities.types.isEmpty()) {<NEW_LINE>if (equalities.types.size() != 1) {<NEW_LINE>throw new BugInCF("Equalitie...
.iterator().next();
1,167,059
public static int romanToArabic(String input) {<NEW_LINE>String romanNumeral = input.toUpperCase();<NEW_LINE>int result = 0;<NEW_LINE>List<RomanNumeral> romanNumerals = RomanNumeral.getReverseSortedValues();<NEW_LINE>int i = 0;<NEW_LINE>while ((romanNumeral.length() > 0) && (i < romanNumerals.size())) {<NEW_LINE>RomanN...
symbol = romanNumerals.get(i);
1,805,008
void emailSpec11Reports(LocalDate date, SoyTemplateInfo soyTemplateInfo, String subject, ImmutableSet<RegistrarThreatMatches> registrarThreatMatchesSet) {<NEW_LINE>ImmutableMap.Builder<RegistrarThreatMatches, Throwable> failedMatchesBuilder = ImmutableMap.builder();<NEW_LINE>for (RegistrarThreatMatches registrarThreatM...
get(0).getValue();
1,784,272
public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {<NEW_LINE>List<ViewManager> managers = new ArrayList<>();<NEW_LINE>// components<NEW_LINE>managers.<MASK><NEW_LINE>managers.add(new RCTMGLAndroidTextureMapViewManager(reactApplicationContext));<NEW_LINE>managers.add(new RCTMGL...
add(new RCTMGLMapViewManager(reactApplicationContext));
63,421
public void generatesAtLeast(Object... expected) {<NEW_LINE>LinkedHashSet<Object> expectedSet = new LinkedHashSet<>();<NEW_LINE>Collections.addAll(expectedSet, expected);<NEW_LINE>LinkedHashSet<Object> missingSet = new LinkedHashSet<>(expectedSet);<NEW_LINE>LinkedHashSet<Object> <MASK><NEW_LINE>LinkedHashSet<Object> ex...
foundSet = new LinkedHashSet<>();
174,749
private void addEdge(DependencyEdge edge) {<NEW_LINE>edge.getSrc().addOutgoing(edge);<NEW_LINE>edge.getDst().addIncoming(edge);<NEW_LINE>PriorityQueue<Node> queue = new PriorityQueue<DependencyGraph.Node>(11, new Comparator<Node>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(Node o1, Node o2) {<NEW_LINE>...
(pastTasks, outEdge) + "\n\nLast dependency has been ignored");
1,805,811
private boolean packageAll(String exportPath) {<NEW_LINE>if (!exportPath.endsWith(".zip")) {<NEW_LINE>exportPath = exportPath + ".zip";<NEW_LINE>}<NEW_LINE>BufferedInputStream origin = null;<NEW_LINE>ZipOutputStream out;<NEW_LINE>boolean result = true;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>out = new ZipOutputStream(n...
FileOutputStream dest = new FileOutputStream(exportPath);
1,386,428
private void restoreState(Bundle b) {<NEW_LINE>mSavedState = b;<NEW_LINE>if (mSavedState == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Restore the internal state even if the WebView fails to restore.<NEW_LINE>// This will maintain the app id, original url and close-on-exit values.<NEW_LINE>mId = b.getLong(ID);<NEW...
mAppId = b.getString(APPID);
1,213,032
public static BlobItemProperties populateBlobItemProperties(BlobItemPropertiesInternal blobItemPropertiesInternal) {<NEW_LINE>BlobItemProperties blobItemProperties = new BlobItemProperties();<NEW_LINE>blobItemProperties.setCreationTime(blobItemPropertiesInternal.getCreationTime());<NEW_LINE>blobItemProperties.setLastMo...
setCopyStatus(blobItemPropertiesInternal.getCopyStatus());
1,618,420
public boolean enableBatchRead() {<NEW_LINE>if (readUsingBatch == null) {<NEW_LINE>boolean allParquetFileScanTasks = tasks().stream().allMatch(combinedScanTask -> !combinedScanTask.isDataTask() && combinedScanTask.files().stream().allMatch(fileScanTask -> fileScanTask.file().format().equals(FileFormat.PARQUET)));<NEW_L...
equals(FileFormat.ORC)));
1,499,641
public List<Component> showMenuBarMenu(final String menuName, final String... submenuNames) {<NEW_LINE>waitForSwing();<NEW_LINE>final List<Component> list = new ArrayList<>();<NEW_LINE>runSwing(() -> {<NEW_LINE>JMenuBar menuBar = tool<MASK><NEW_LINE>list.add(menuBar);<NEW_LINE>JMenuItem item = findMenu(menuBar, menuNam...
.getToolFrame().getJMenuBar();
658,966
public void parse(ParseContext context) throws IOException {<NEW_LINE>try {<NEW_LINE>Shape shape = context.parseExternalValue(Shape.class);<NEW_LINE>if (shape == null) {<NEW_LINE>ShapeBuilder shapeBuilder = ShapeParser.parse(<MASK><NEW_LINE>if (shapeBuilder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>shape = shapeB...
context.parser(), this);
994,800
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, String routeName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be ...
this.client.mergeContext(context);
763,919
private static void initializeServer() throws Exception {<NEW_LINE>URLClassLoader urlClassLoader = getSeleniumServerClassLoader();<NEW_LINE>// NOI18N<NEW_LINE>Class seleniumServer = urlClassLoader.loadClass("org.openqa.selenium.server.SeleniumServer");<NEW_LINE>Class remoteControlConfiguration = // NOI18N<NEW_LINE>urlC...
).get(USER_EXTENSION_FILE, "");
503,130
protected static int overflowDistanceSub(float op1, float op2) {<NEW_LINE>float result = op1 - op2;<NEW_LINE>if (op1 >= 0 && op2 <= 0) {<NEW_LINE>// result has to be < 0 for overflow<NEW_LINE>return result == Float.POSITIVE_INFINITY ? -1 : HALFWAY + 1 - scaleTo(result, HALFWAY);<NEW_LINE>} else if (op1 < 0 && op2 > 0) ...
(double) op2), HALFWAY);
281,842
final DeleteLensShareResult executeDeleteLensShare(DeleteLensShareRequest deleteLensShareRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLensShareRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
683,353
private Blob cipheredBlob(String container, Blob blob, InputStream payload, long contentLength, boolean addEncryptedMetadata) {<NEW_LINE>// make a copy of the blob with the new payload stream<NEW_LINE>BlobMetadata blobMeta = blob.getMetadata();<NEW_LINE>ContentMetadata contentMeta = blob<MASK><NEW_LINE>Map<String, Stri...
.getMetadata().getContentMetadata();
650,404
public ListJobExecutionsForThingResult listJobExecutionsForThing(ListJobExecutionsForThingRequest listJobExecutionsForThingRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listJobExecutionsForThingRequest);<NEW_LINE>AWSRequestMetrics aws...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,474,751
public void collapse() {<NEW_LINE>if (!_isShowing)<NEW_LINE>return;<NEW_LINE>if (_folderAnimator == null || _folderAnimator.isRunning())<NEW_LINE>return;<NEW_LINE>long animDuration = Setup.appSettings().getAnimationSpeed() * 10;<NEW_LINE>Tool.invisibleViews(animDuration, _cellContainer);<NEW_LINE>int startRadius = Tool...
), _popupCard.getHeight());
578,654
protected AddressSetView findLocations(Program program, AddressSetView set, Set<Address> locations, TaskMonitor monitor) throws CancelledException {<NEW_LINE>monitor.setMessage("Finding function locations...");<NEW_LINE>long total = set.getNumAddresses();<NEW_LINE>monitor.initialize(total);<NEW_LINE>// iterate over fun...
referenceManager.getReferenceDestinationIterator(set, true);
800,465
public void execute(DelegateExecution execution) throws Exception {<NEW_LINE>Date now = new Date();<NEW_LINE>List<String> serializable = new ArrayList<String>();<NEW_LINE>serializable.add("seven");<NEW_LINE>serializable.add("eight");<NEW_LINE>serializable.add("nine");<NEW_LINE>List<Date> dateList = new ArrayList<Date>(...
jaxBSerialized).serializationDataFormat("application/xml"));
749,654
public static ListQuotaReviewTasksResponse unmarshall(ListQuotaReviewTasksResponse listQuotaReviewTasksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQuotaReviewTasksResponse.setRequestId(_ctx.stringValue("ListQuotaReviewTasksResponse.requestId"));<NEW_LINE>listQuotaReviewTasksResponse.setTotalCount(_ctx.integerVal...
("ListQuotaReviewTasksResponse.result[" + i + "].gmtCreate"));
525,167
public final void findMaxSeparation(EdgeResults results, final PolygonShape poly1, final Transform xf1, final PolygonShape poly2, final Transform xf2) {<NEW_LINE>int count1 = poly1.m_count;<NEW_LINE>int count2 = poly2.m_count;<NEW_LINE>Vec2[] n1s = poly1.m_normals;<NEW_LINE><MASK><NEW_LINE>Vec2[] v2s = poly2.m_vertices...
Vec2[] v1s = poly1.m_vertices;
1,370,071
public void visit(BLangResourceFunction funcNode) {<NEW_LINE>boolean validAttachedFunc = validateFuncReceiver(funcNode);<NEW_LINE>if (PackageID.isLangLibPackageID(env.enclPkg.symbol.pkgID)) {<NEW_LINE>funcNode.flagSet.add(Flag.LANG_LIB);<NEW_LINE>}<NEW_LINE>BInvokableSymbol funcSymbol = Symbols.createFunctionSymbol(Fla...
markdownDocumentation = getMarkdownDocAttachment(funcNode.markdownDocumentationAttachment);
87,424
public Request<DescribeScalingActivitiesRequest> marshall(DescribeScalingActivitiesRequest describeScalingActivitiesRequest) {<NEW_LINE>if (describeScalingActivitiesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeScalingActivities...
<DescribeScalingActivitiesRequest>(describeScalingActivitiesRequest, "AmazonAutoScaling");
399,246
public <T extends JpaObject, W extends Object> List<T> listEqualAndInAndNotEqual(Class<T> cls, String firstAttribute, Object firstValue, String secondAttribute, Collection<W> secondValues, String thirdAttribute, Object thirdValue) throws Exception {<NEW_LINE>EntityManager em = this.get(cls);<NEW_LINE>CriteriaBuilder cb...
get(thirdAttribute), thirdValue));
1,446,045
public static final String[] generateSubsets(String inputString) {<NEW_LINE>final <MASK><NEW_LINE>final int size = (int) Math.pow(2, length);<NEW_LINE>final BitSet[] sets = new BitSet[size];<NEW_LINE>final String[] output = new String[size];<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>final BitSet set = new BitS...
int length = inputString.length();
500,219
public void available() {<NEW_LINE>// run initializers in a new thread<NEW_LINE>// we need to wait until apoc procs are registered<NEW_LINE>// unfortunately an AvailabilityListener is triggered before that<NEW_LINE>Util.newDaemonThread(() -> {<NEW_LINE>try {<NEW_LINE>final boolean isSystemDatabase = db.databaseName(<MA...
).equals(GraphDatabaseSettings.SYSTEM_DATABASE_NAME);
93,004
public static DescribeSecurityGroupAttributeResponse unmarshall(DescribeSecurityGroupAttributeResponse describeSecurityGroupAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSecurityGroupAttributeResponse.setRequestId(_ctx.stringValue("DescribeSecurityGroupAttributeResponse.RequestId"));<NEW_LINE>describe...
("DescribeSecurityGroupAttributeResponse.Permissions[" + i + "].SourceCidrIp"));
1,639,524
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {<NEW_LINE>Permanent permanent = affectedObjectList.get(0).getPermanent(game);<NEW_LINE>if (permanent != null) {<NEW_LINE>switch(layer) {<NEW_LINE>case TypeChangingEffects_4:<NEW_LINE>permanent.removeAllCardTypes(game);<NEW_LINE>permanent.<...
addCardType(game, CardType.CREATURE);
851,418
private static KafkaSourceRequest createKafkaSourceRequest(KafkaSource kafkaSource, InlongStreamInfo stream) {<NEW_LINE>KafkaSourceRequest sourceRequest = new KafkaSourceRequest();<NEW_LINE>sourceRequest.setSourceName(kafkaSource.getSourceName());<NEW_LINE>sourceRequest.setInlongGroupId(stream.getInlongGroupId());<NEW_...
setAgentIp(kafkaSource.getAgentIp());
853,558
static void addBasicStatistics(final SimpleImage img, final MeasurementList measurementList, final String name) {<NEW_LINE>RunningStatistics stats = StatisticsHelper.computeRunningStatistics(img);<NEW_LINE>measurementList.addMeasurement(name + <MASK><NEW_LINE>measurementList.addMeasurement(name + " Min", stats.getMin()...
" Mean", stats.getMean());
1,253,821
private static ImmutableList<Input> readInputs(JsonReader reader) throws IOException {<NEW_LINE>reader.beginArray();<NEW_LINE>ImmutableList.Builder<Input> inputsBuilder = ImmutableList.builder();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>String digest = null;<NEW_LINE>String path = null;<NEW_LINE>reader.beginObject(...
add(inputBuilder.build());
547,983
public static ClientMessage encodeRequest(java.lang.String name, long startSequence, int minSize, int maxSize, @Nullable com.hazelcast.internal.serialization.Data predicate, @Nullable com.hazelcast.internal.serialization.Data projection) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE...
initialFrame.content, REQUEST_MIN_SIZE_FIELD_OFFSET, minSize);
199,026
private RoutingAlgorithm createAlgo(GraphHopper hopper) {<NEW_LINE>Profile profile = hopper.getProfiles().iterator().next();<NEW_LINE>if (useCH) {<NEW_LINE>RoutingCHGraph chGraph = hopper.getCHGraphs().get(profile.getName());<NEW_LINE>logger.info(<MASK><NEW_LINE>QueryGraph qGraph = QueryGraph.create(hopper.getGraphHopp...
"CH algo, profile: " + profile.getName());
1,781,980
public EntityData.GlobalStore deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {<NEW_LINE>EntityData.GlobalStore.Builder world = EntityData.GlobalStore.newBuilder();<NEW_LINE>if (json.isJsonObject()) {<NEW_LINE>JsonObject jsonObject = json.getAsJsonObject();<NEW_...
prefabArray = jsonObject.getAsJsonArray("prefab");
202,609
protected void updateStats(PageHeader pageHeader, String op, long start, long time, long bytesin, long bytesout) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("ParquetTrace,{},{},{},{},{},{},{},{}", op, pageHeader.type == PageType.DICTIONARY_PAGE ? "Dictionary Page" : "Data Page", this.parentColumnRea...
.stats.numDataPageLoads.incrementAndGet();