idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
11,026
public void enqueueAsyncResave(VKey<?> entityKey, DateTime now, ImmutableSortedSet<DateTime> whenToResave) {<NEW_LINE><MASK><NEW_LINE>checkArgument(isBeforeOrAt(now, firstResave), "Can't enqueue a resave to run in the past");<NEW_LINE>Duration etaDuration = new Duration(now, firstResave);<NEW_LINE>if (etaDuration.isLon...
DateTime firstResave = whenToResave.first();
896,188
String computeCurPos() {<NEW_LINE>int chari = 0;<NEW_LINE>int chart = 0;<NEW_LINE>for (int i = 0; i < buffer.lines.size(); i++) {<NEW_LINE>int l = buffer.lines.get(i).length() + 1;<NEW_LINE>if (i < buffer.line) {<NEW_LINE>chari += l;<NEW_LINE>} else if (i == buffer.line) {<NEW_LINE>chari += buffer.offsetInLine + buffer...
buffer.line)))));
125,201
protected ObjectNode createAuthConfigWithService(UUID configUUID, ObjectNode config) {<NEW_LINE>// Skip creating a CMK for the KMS Configuration if the user inputted one<NEW_LINE>if (config.get("cmk_id") != null)<NEW_LINE>return config;<NEW_LINE>final String description = String.format("Yugabyte Master Key for KMS Conf...
LOG.error(errMsg, e);
166,967
private JobEventRdbSearch.Condition buildCondition(final Map<String, String> requestParams, final String[] params) throws ParseException {<NEW_LINE>int perPage = 10;<NEW_LINE>int page = 1;<NEW_LINE>if (!Strings.isNullOrEmpty(requestParams.get("per_page"))) {<NEW_LINE>perPage = Integer.parseInt(requestParams.get("per_pa...
(requestParams.get("endTime"));
997,574
public void configure(Map<String, ?> configs, boolean isKey) {<NEW_LINE>this.autoConfigs.putAll(configs);<NEW_LINE>this.forKeys = isKey;<NEW_LINE>String configKey = configKey();<NEW_LINE>Object value = configs.get(configKey);<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>} else if (value instanceof Map) {<NEW...
" map entries must be Serializers or class names, not " + value.getClass());
1,571,202
private static void initKafkaProducerMap(Long clusterId) {<NEW_LINE>ClusterDO clusterDO = PhysicalClusterMetadataManager.getClusterFromCache(clusterId);<NEW_LINE>if (clusterDO == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>KafkaProducer<String, String> kafkaProducer = KAFKA_PRODUCE...
properties = createProperties(clusterDO, true);
903,287
public R next() {<NEW_LINE><MASK><NEW_LINE>boolean b2 = it2.hasNext();<NEW_LINE>boolean b3 = it3.hasNext();<NEW_LINE>boolean b4 = it4.hasNext();<NEW_LINE>boolean b5 = it5.hasNext();<NEW_LINE>boolean b6 = it6.hasNext();<NEW_LINE>boolean b7 = it7.hasNext();<NEW_LINE>boolean b8 = it8.hasNext();<NEW_LINE>boolean b9 = it9.h...
boolean b1 = it1.hasNext();
444,651
private void unprotectAddReplica(OlapTable olapTable, ReplicaPersistInfo info) {<NEW_LINE>LOG.debug("replay add a replica {}", info);<NEW_LINE>Partition partition = olapTable.getPartition(info.getPartitionId());<NEW_LINE>MaterializedIndex materializedIndex = partition.<MASK><NEW_LINE>Tablet tablet = materializedIndex.g...
getIndex(info.getIndexId());
1,806,120
private JComponent createTopCombo(JFileChooser fc) {<NEW_LINE>JPanel panel = new JPanel();<NEW_LINE>if (fc.getAccessory() != null) {<NEW_LINE>panel.setBorder(BorderFactory.createEmptyBorder(4, 0, 8, 0));<NEW_LINE>} else {<NEW_LINE>panel.setBorder(BorderFactory.createEmptyBorder(6, 0, 10, 0));<NEW_LINE>}<NEW_LINE>panel<...
.setLayout(new BorderLayout());
1,386,361
public boolean handleRequest(MessageContext messageContext) {<NEW_LINE>if (!isSoapMessageContext(messageContext)) {<NEW_LINE>// cannot process this, as this is not a soap message context<NEW_LINE>throw new JAXRPCException(errMsg);<NEW_LINE>}<NEW_LINE>if (config_ == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// g...
WARNING, LogUtils.ERROR_REQUEST_SECURING, e);
82,856
private String _cleanLongFilename(String fname) {<NEW_LINE>int namemax = 136;<NEW_LINE>// 240 for windows<NEW_LINE>int pathmax = 1024;<NEW_LINE>// cap namemax based on absolute path<NEW_LINE>// ideally, name should be normalized. Without access to nio.Paths library, it's hard to do it really correctly. This is still a ...
that(namemax > 0, "The media directory is maximally long. There is no more length available for file name.");
650,400
public int compare(OptionSpec o1, OptionSpec o2) {<NEW_LINE>// options before params<NEW_LINE>if (o1 == null) {<NEW_LINE>return 1;<NEW_LINE>} else if (o2 == null) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>String[] names1 = ShortestFirst.sort(o1.names());<NEW_LINE>String[] names2 = ShortestFirst.sort(o2.names());<NEW_LI...
= stripPrefix(names2[0]);
902,204
public static BaseHttpClientInvocation createSearchInvocation(FhirContext theContext, String theResourceName, Map<String, List<String>> theParameters, IIdType theId, String theCompartmentName, SearchStyleEnum theSearchStyle) {<NEW_LINE>SearchStyleEnum searchStyle = theSearchStyle;<NEW_LINE>if (searchStyle == null) {<NE...
.code(1444) + msg);
317,507
protected Control createControl(Composite parent) {<NEW_LINE>DB2DDLFormat ddlFormat = DB2DDLFormat.getCurrentFormat(getSourceObject().getDataSource());<NEW_LINE>final Combo ddlFormatCombo = new Combo(parent, SWT.BORDER | <MASK><NEW_LINE>ddlFormatCombo.setToolTipText("DDL Format");<NEW_LINE>for (DB2DDLFormat format : DB...
SWT.READ_ONLY | SWT.DROP_DOWN);
552,824
public boolean equalsStructurally(IJsonType o) {<NEW_LINE>if (this == o) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (o == null || getClass() != o.getClass()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!super.equals(o)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>JsonStructureType that = (JsonStructureType) o...
_innerTypes.get(key)));
1,657,475
public ExecPlan plan(UpdateStmt updateStmt, ConnectContext session) {<NEW_LINE>QueryRelation query = updateStmt.getQueryStatement().getQueryRelation();<NEW_LINE>List<String> colNames = query.getColumnOutputNames();<NEW_LINE>ColumnRefFactory columnRefFactory = new ColumnRefFactory();<NEW_LINE>LogicalPlan logicalPlan = n...
(0).setSink(dataSink);
1,313,579
public TransitGatewayConnectRequestBgpOptions unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>TransitGatewayConnectRequestBgpOptions transitGatewayConnectRequestBgpOptions = new TransitGatewayConnectRequestBgpOptions();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetD...
().unmarshall(context));
1,692,757
private void reverseCorrectIt0() {<NEW_LINE>final MAllocationHdr reversal = new MAllocationHdr(getCtx(), 0, get_TrxName());<NEW_LINE>final boolean copyHonorIsCalculated = true;<NEW_LINE>copyValues(this, reversal, copyHonorIsCalculated);<NEW_LINE>//<NEW_LINE>// 07570: Keep AD_Org of original document<NEW_LINE>reversal.s...
DocStatus.Reversed.getCode());
1,101,258
public ResponseContainer showTableInformation(RequestContainer request, Templater templater) {<NEW_LINE>if (!(request instanceof JdbcRequestContainer)) {<NEW_LINE>throw new IllegalArgumentException("Unsupported request container: " + request.getType());<NEW_LINE>}<NEW_LINE>JdbcRequestContainer jdbcRequest = (JdbcReques...
).size())));
135,369
private void initFields() {<NEW_LINE>String address = instance.getProperty(PayaraModule.DEBUG_PORT);<NEW_LINE>SpinnerNumberModel addressModel = (SpinnerNumberModel) addressValue.getModel();<NEW_LINE>javaPlatforms = JavaUtils.findSupportedPlatforms(this.instance);<NEW_LINE>((JavaPlatformsComboBox) javaComboBox).updateMo...
setSelectedItem(instance.getJavaPlatform());
1,271,038
public void write(org.apache.thrift.protocol.TProtocol oprot, HavingFilterQueryMap struct) throws org.apache.thrift.TException {<NEW_LINE>struct.validate();<NEW_LINE>oprot.writeStructBegin(STRUCT_DESC);<NEW_LINE>if (struct.filterQueryMap != null) {<NEW_LINE>if (struct.isSetFilterQueryMap()) {<NEW_LINE>oprot.writeFieldB...
getValue().write(oprot);
269,875
private void analyzeHeadStems() {<NEW_LINE>logger.debug(<MASK><NEW_LINE>final List<Inter> heads = sig.inters(ShapeSet.StemHeads);<NEW_LINE>for (Inter hi : heads) {<NEW_LINE>HeadInter head = (HeadInter) hi;<NEW_LINE>// Retrieve connected stems into left and right sides<NEW_LINE>Map<HorizontalSide, Set<StemInter>> map = ...
"S#{} analyzeHeadStems", system.getId());
14,725
private void writeFieldSet(JField serializableField) {<NEW_LINE>JType fieldType = serializableField.getType();<NEW_LINE>String fieldTypeQualifiedSourceName = fieldType.getQualifiedSourceName();<NEW_LINE>String serializableClassQualifedName = serializableClass.getQualifiedSourceName();<NEW_LINE>String fieldName = serial...
serializableClassQualifedName + ".class, instance, \"" + fieldName + "\", value);");
1,788,825
public DiscoveryResult createResult(ServiceInfo service) {<NEW_LINE>final ThingUID uid = getThingUID(service);<NEW_LINE>if (uid == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<String, Object> properties = new HashMap<>(2);<NEW_LINE>String host = service.getHostAddresses()[0];<NEW_LINE>properties.put(CONF...
put(Thing.PROPERTY_VENDOR, "Nanoleaf");
444,146
public Builder mergeFrom(emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify other) {<NEW_LINE>if (other == emu.grasscutter.net.proto.PlayerStoreNotifyOuterClass.PlayerStoreNotify.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.storeType_ != 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if...
setStoreTypeValue(other.getStoreTypeValue());
751,216
private void initAssets() {<NEW_LINE>// cast lambdas explicitly to avoid inconsistent compiler behavior wrt. type inference<NEW_LINE>assetTypeManager.createAssetType(Prefab.class, PojoPrefab::new, "prefabs");<NEW_LINE>assetTypeManager.createAssetType(BlockShape.class, BlockShapeImpl::new, "shapes");<NEW_LINE>assetTypeM...
class, ByteBufferAsset::new, "mesh");
255,801
static Object executeNotEquals(final IExpressionContext context, final NotEqualsExpression expression, final StandardExpressionExecutionContext expContext) {<NEW_LINE>Object leftValue = expression.getLeft(<MASK><NEW_LINE>Object rightValue = expression.getRight().execute(context, expContext);<NEW_LINE>leftValue = Litera...
).execute(context, expContext);
520,498
public void onResponse(GetResponse getResponse) {<NEW_LINE>if (getResponse.isExists() == false) {<NEW_LINE>delegate.onFailure<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final long seqNo = getResponse.getSeqNo();<NEW_LINE>final long primaryTerm = getResponse.getPrimaryTerm();<NEW_LINE>BytesReference source = getResponse...
(ExceptionsHelper.missingDatafeedException(datafeedId));
931,979
public void paintComponent(Graphics g) {<NEW_LINE>// do the superclass behavior first<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>BufferedImage bgImage = ImageLoader.getImage(ImageLoader.MAIN_WINDOW_BACKGROUND);<NEW_LINE>// paint the image<NEW_LINE>if (bgImage != null) {<NEW_LINE...
ResourceManagementService r = GuiActivator.getResources();
1,416,115
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>if (StringUtils.isEmpty(System.getenv("C_POST_PROCESS_FILE"))) {<NEW_LINE>LOGGER.info("Environment variable C_POST_PROCESS_FILE not defined so the C code may not be properly formatted by uncrustify (0.66 or later) or other code formatter. To define it, ...
("list.c.mustache", "src", "list.c"));
1,456,378
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.date_picker_dialog, container, false);<NEW_LINE>Button doneButton = (Button) view.findViewById(R.id.done_button);<NEW_LINE>Button cancelButton = (Button) view.findViewById(R...
), mPicker.getDayOfMonth());
1,692,353
public void simpleInitApp() {<NEW_LINE>loadHintText();<NEW_LINE>setupKeys();<NEW_LINE>// WIREFRAME material<NEW_LINE>matWire = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");<NEW_LINE>matWire.getAdditionalRenderState().setWireframe(true);<NEW_LINE>matWire.setColor("Color", ColorRGBA.Green);<NEW_LINE>te...
= new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
116,375
public void addHUDStrings(List<Component> list, Player player, ItemStack stack, EquipmentSlot slotType) {<NEW_LINE>if (slotType == getSlot()) {<NEW_LINE>ItemScubaTank scubaTank = (ItemScubaTank) stack.getItem();<NEW_LINE>list.add(MekanismLang.SCUBA_TANK_MODE.translateColored(EnumColor.DARK_GRAY, OnOff.of(scubaTank.getF...
Capabilities.GAS_HANDLER_CAPABILITY).resolve();
1,536,450
final GetUserPolicyResult executeGetUserPolicy(GetUserPolicyRequest getUserPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getUserPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
GetUserPolicyResult>(new GetUserPolicyResultStaxUnmarshaller());
1,124,094
public void runAsSystemUser() throws SiteWhereException {<NEW_LINE>Period missingInterval;<NEW_LINE>try {<NEW_LINE>missingInterval = Period.parse(getPresenceMissingInterval(), ISOPeriodFormat.standard());<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>missingInterval = PERIOD_FORMATTER.parsePeriod(getPresence...
setDeviceId(deviceState.getDeviceId());
1,295,172
private void fingerprintNode(DiagnosingMessageDigestDecorator md, Node node, FingerprintingConfig config) {<NEW_LINE>switch(config.getStrategy()) {<NEW_LINE>case EAGER:<NEW_LINE>StreamSupport.stream(node.getLabels().spliterator(), false).map(Label::name).sorted().map(String::getBytes).forEach(md::update);<NEW_LINE>brea...
>(config.getAllNodesDisallowList());
1,826,428
public boolean storeSharedClass(String partition, Class<?> clazz, int foundAtIndex) {<NEW_LINE>if (!canStore) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (clazz == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>printVerboseError(Msg.getString("K05a7"));<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ClassLoader actualLoader ...
.readLock().unlock();
1,667,273
private PrintElement createStringElement(final String content, final int AD_PrintColor_ID, final int AD_PrintFont_ID, final int maxWidth, final int maxHeight, final boolean isHeightOneLine, final String FieldAlignmentType, final boolean isTranslated) {<NEW_LINE>if (content == null || content.length() == 0)<NEW_LINE>ret...
f = MPrintFont.get(AD_PrintFont_ID);
849,853
public void resultReceived(SearchInstance search, SearchResult result) {<NEW_LINE>if (min_seeds > 0) {<NEW_LINE>Number seeds = ((Number) result.getProperty(SearchResult.PR_SEED_COUNT));<NEW_LINE>if (seeds != null && seeds.intValue() < min_seeds) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (min_leechers > 0) {<...
result.getProperty(SearchResult.PR_PUB_DATE);
1,638,175
private void changeStatus(AnalyzerStatus newStatus) {<NEW_LINE>boolean resetAnalyzingStatus = analyzerStatus != null && analyzerStatus.isTextStatus() && analyzerStatus.getAnalyzingType() == AnalyzingType.COMPLETE;<NEW_LINE>analyzerStatus = newStatus;<NEW_LINE>// smallIconLabel.setIcon(analyzerStatus.getIcon());<NEW_LIN...
.getController().enableToolbar();
1,224,530
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select s1.intBoxed as v1, s2.longBoxed as v2, s3.doubleBoxed as v3 from " + "SupportBean(theString='A')#length(1000000) s1 " <MASK><NEW_LINE>env.compileDeployAddListenerMileZero(stmtText, "s0");<NEW_LINE>// preload<NEW_LINE>for (int i ...
+ " left outer join " + "SupportBean(theString='B')#length(1000000) s2 on s1.intBoxed=s2.longBoxed " + " left outer join " + "SupportBean(theString='C')#length(1000000) s3 on s1.intBoxed=s3.doubleBoxed";
1,695,957
private String checkAcs(AuthnRequest request, SamlServiceProvider sp, Map<String, Object> authnState) {<NEW_LINE>final String acs = request.getAssertionConsumerServiceURL();<NEW_LINE>if (Strings.hasText(acs) == false) {<NEW_LINE>final String message = request.getAssertionConsumerServiceIndex() == null ? "SAML authentic...
ElasticsearchSecurityException(message, RestStatus.BAD_REQUEST);
1,427,348
public Boolean delete(Integer id, String operator) {<NEW_LINE>LOGGER.info("begin to delete sink by id={}", id);<NEW_LINE>Preconditions.checkNotNull(id, ErrorCodeEnum.ID_IS_EMPTY.getMessage());<NEW_LINE>StreamSinkEntity entity = sinkMapper.selectByPrimaryKey(id);<NEW_LINE>Preconditions.checkNotNull(entity, ErrorCodeEnum...
.setModifyTime(new Date());
720,741
public void deserialize(DataInputStream input) throws IOException, ClassNotFoundException {<NEW_LINE>useNewAPI = input.readBoolean();<NEW_LINE>int size = input.readInt();<NEW_LINE>int locSize = input.readInt();<NEW_LINE>locations = new String[locSize];<NEW_LINE>for (int i = 0; i < locSize; i++) {<NEW_LINE>locations[i] ...
) Class.forName(splitClass));
460,595
private static Map<TokenRange, Long> describeSplits(CassandraSessionPool.Session session, String keyspace, String table, long splitPartitions, long splitSize, TokenRange tokenRange) {<NEW_LINE>String query = String.format("SELECT mean_partition_size, partitions_count FROM %s.%s " + "WHERE keyspace_name = ? AND table_na...
put(range, partitionsCount / splitCount);
629,157
static byte[] encodeRequest(String host, int port, String reqUri, String path) throws IOException {<NEW_LINE>ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();<NEW_LINE>try (DataOutputStream packet = new DataOutputStream(byteArrayOutputStream)) {<NEW_LINE>// prefix_code<NEW_LINE>packet.write(JK_...
encodeRequestAttributeAttribute(packet, "javax.servlet.include.servlet_path", "/");
1,371,699
public DenseVector predict(SGDVector example) {<NEW_LINE>// Linear part of the prediction<NEW_LINE>DenseVector pred = weightMatrix.leftMultiply(example);<NEW_LINE>// Add in the label biases<NEW_LINE>pred.intersectAndAddInPlace(biasVector);<NEW_LINE>// Compute the contribution of the feature factors<NEW_LINE>DenseVector...
double value = curWeight * v.value;
1,177,382
private Token includeFiltered() {<NEW_LINE>Matcher matcher = Pattern.compile("^include:([\\w\\-]+)([\\( ])").matcher(scanner.getInput());<NEW_LINE>if (matcher.find(0) && matcher.groupCount() > 1) {<NEW_LINE>this.consume(matcher.end() - 1);<NEW_LINE>String filter = matcher.group(1);<NEW_LINE>Token attrs = matcher.group(...
? this.attrs() : null;
1,421,244
protected String toSvgString(QrCode qr, int border, String lightColor, String darkColor) {<NEW_LINE>Objects.requireNonNull(qr);<NEW_LINE>Objects.requireNonNull(lightColor);<NEW_LINE>Objects.requireNonNull(darkColor);<NEW_LINE>if (border < 0) {<NEW_LINE>throw new IllegalArgumentException("Border must be non-negative");<...
append("</svg>\n").toString();
1,000,948
protected AnnotationNode annotation(AST annotationNode) {<NEW_LINE>annotationBeingDef = true;<NEW_LINE>AST node = annotationNode.getFirstChild();<NEW_LINE>AnnotationNode annotatedNode = new AnnotationNode(makeType(annotationNode));<NEW_LINE>// GRECLIPSE end<NEW_LINE>configureAST(annotatedNode, annotationNode);<NEW_LINE...
.setLastLineNumber(row_col[0]);
772,626
private static HashMap<SwegonVentilationCommandType, Integer> parseMessage71(byte[] data) {<NEW_LINE>HashMap<SwegonVentilationCommandType, Integer> map = new HashMap<SwegonVentilationCommandType, Integer>();<NEW_LINE>int outdoorTemp = data[0];<NEW_LINE>int supplyTemp = data[1];<NEW_LINE>int extractTemp = data[2];<NEW_L...
put(SwegonVentilationCommandType.EFFICIENCY_EXTRACT, calcEfficiency);
1,271,591
public static void run(List<String> fileArgs, Options options) {<NEW_LINE>File preProcessorTempDir = null;<NEW_LINE>File strippedSourcesDir = null;<NEW_LINE>Parser parser = null;<NEW_LINE>try {<NEW_LINE>List<ProcessingContext> inputs = Lists.newArrayList();<NEW_LINE>GenerationBatch batch = new GenerationBatch(options);...
error(e.getMessage());
762,490
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View v = inflater.inflate(R.layout.layout_drawlines, null);<NEW_LINE>btnRotateLeft = v.<MASK><NEW_LINE>btnRotateRight = v.findViewById(R.id.btnRotateRight);<NEW_LINE>btnRotateRight.setOnClickListener(this);<NEW_...
findViewById(R.id.btnRotateLeft);
281,552
private void handleDuplicates() {<NEW_LINE>dumpDuplicates(context.duplicates);<NEW_LINE>List<Set<FullFunctionDeclaration>> newDuplicatesList = new ArrayList<Set<FullFunctionDeclaration>>();<NEW_LINE>for (Set<FullFunctionDeclaration> duplicates : context.duplicates) {<NEW_LINE>Set<FullFunctionDeclaration> newDuplicates ...
calculateNames(duplicates, Strategy.FULL);
816,582
public Void execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException {<NEW_LINE>User actingUser = getUserByUoid(authorization.getUoid());<NEW_LINE>final Revision revision = getRevisionByRoid(sRevision.getOid());<NEW_LINE>if (revision == null) {<NEW_LINE>throw new UserException("Revisio...
.setDate(new Date());
1,426,785
public void loadData() {<NEW_LINE>StringBuffer sql = new StringBuffer();<NEW_LINE>PreparedStatement pstm = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>sql.append(" SELECT b.C_BPartner_ID, b.Value, b.Name, b.Email, b.Phone, b.Postal, b.City").append(" FROM RV_BPartner AS b").append(" WHERE b.C_BPartner_I...
sql.toString(), null);
338,194
private void checkSnapshotCompatibility(Project project, FileCollection currentFiles, File previousDirectory, FileExtensionFilter filter, List<String> fileArgs) {<NEW_LINE>boolean isCheckRestSpecVsSnapshot = filter.getSuffix().equals(PegasusPlugin.IDL_FILE_SUFFIX);<NEW_LINE>for (File currentFile : currentFiles) {<NEW_L...
() + File.separatorChar + apiFilename;
1,681,512
private void handleActionUp(MotionEvent event) {<NEW_LINE>if (null != getParent()) {<NEW_LINE>getParent().requestDisallowInterceptTouchEvent(false);<NEW_LINE>}<NEW_LINE>if (isClick) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int yVelocity = 0;<NEW_LINE>if (null != tracker) {<NEW_LINE>tracker.addMovement(event);<NEW_LINE>tr...
0, 0, minFlingYCoordinate, maxFlingYCoordinate);
528,401
private void parseAnonymousIpConfig(final JsonNode jo) throws JsonUtilsException {<NEW_LINE>final String anonymousPollingUrl = "anonymousip.polling.url";<NEW_LINE>final String anonymousPollingInterval = "anonymousip.polling.interval";<NEW_LINE>final String anonymousPolicyConfiguration = "anonymousip.policy.configuratio...
.getCurrentConfig().enabled = true;
1,650,180
public static void main(String[] args) throws Exception {<NEW_LINE>ManagedChannel channel = NettyChannelBuilder.forAddress("localhost", ContinuousBackpressureDemoServer.PORT).usePlaintext().flowControlWindow(NettyChannelBuilder.DEFAULT_FLOW_CONTROL_WINDOW).build();<NEW_LINE>RxNumbersGrpc.RxNumbersStub <MASK><NEW_LINE>s...
stub = RxNumbersGrpc.newRxStub(channel);
812,075
public int stackRegionBlockUnits(Region region, BlockVector3 offset, int count, boolean copyEntities, boolean copyBiomes, Mask mask) throws MaxChangedBlocksException, RegionOperationException {<NEW_LINE>checkNotNull(region);<NEW_LINE>checkNotNull(offset);<NEW_LINE>checkArgument(count >= 1, "count >= 1 required");<NEW_L...
(TranslatableComponent.of("worldedit.stack.intersecting-region"));
1,420,559
public ReportEntry createEntry(final long initialBytesLost, final long timestampMs, final int sessionId, final int streamId, final String channel, final String source) {<NEW_LINE>ReportEntry reportEntry = null;<NEW_LINE>final int requiredCapacity = CHANNEL_OFFSET + BitUtil.align(SIZE_OF_INT + channel.length(), SIZE_OF_...
putLong(offset + LAST_OBSERVATION_OFFSET, timestampMs);
1,557,158
private StylableTable createPDFTable(XWPFTable table, float[] colWidths, IITextContainer pdfParentContainer) throws DocumentException {<NEW_LINE>// 2) Compute tableWith<NEW_LINE>TableWidth tableWidth = stylesDocument.getTableWidth(table);<NEW_LINE>StylableTable pdfPTable = pdfDocument.createTable(pdfParentContainer, co...
pdfPTable.setTotalWidth(tableWidth.width);
1,601,665
static Map<String, String> enhanceWithQualityParameter(final Map<String, String> parameters, final String qualityParamName, final int quality) {<NEW_LINE>if (quality == DEFAULT) {<NEW_LINE>// special handling<NEW_LINE>if (parameters == null || parameters.isEmpty() || !parameters.containsKey(qualityParamName)) {<NEW_LIN...
(qualityParamName, qualityValueToString(quality));
1,433,690
public static QueryTaskRulesResponse unmarshall(QueryTaskRulesResponse queryTaskRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTaskRulesResponse.setRequestId(_ctx.stringValue("QueryTaskRulesResponse.RequestId"));<NEW_LINE>queryTaskRulesResponse.setCode(_ctx.integerValue("QueryTaskRulesResponse.Code"));<NEW_LI...
("QueryTaskRulesResponse.Data[" + i + "].TaskId"));
1,193,571
/*<NEW_LINE><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><NEW_LINE><style><NEW_LINE><xsl:comment><NEW_LINE><NEW_LINE>/#paged media #/ div.header {display: none }<NEW_LINE>div.footer {display: none } /#@media print { #/<NEW_LINE><xsl:if<NEW_LINE>test="java:org.docx4j.convert.out.common.Xslt...
meta.setAttribute("content", "text/html; charset=utf-8");
1,325,179
final ModifyAuthenticationProfileResult executeModifyAuthenticationProfile(ModifyAuthenticationProfileRequest modifyAuthenticationProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(modifyAuthenticationProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
698,989
protected Solver.SolutionInfo solve(DataSet x) {<NEW_LINE>final int l = x.size();<NEW_LINE>byte[] y = new byte[l];<NEW_LINE>for (int i = 0; i < l; i++) {<NEW_LINE>y[i] = x.value(i) > 0 ? ONE : MONE;<NEW_LINE>}<NEW_LINE>double sum_pos = nu * l * .5, sum_neg = nu * l * .5;<NEW_LINE>double[] alpha = new double[l];<NEW_LIN...
] zeros = new double[l];
804,737
private void lsdSort(String[] bits, int initialDigit) {<NEW_LINE>// Binary digits<NEW_LINE>int alphabetSize = 2;<NEW_LINE>String[] auxArray = new String[bits.length];<NEW_LINE>for (int digit = initialDigit; digit >= 0; digit--) {<NEW_LINE>// Compute frequency counts<NEW_LINE>int[] count = new int[alphabetSize + 1];<NEW...
[i] = auxArray[i];
760,873
private static void decode22(DataInput in, long[] tmp, long[] longs) throws IOException {<NEW_LINE>readLELongs(in, tmp, 0, 44);<NEW_LINE>shiftLongs(tmp, 44, longs, 0, 10, MASK32_22);<NEW_LINE>for (int iter = 0, tmpIdx = 0, longsIdx = 44; iter < 4; ++iter, tmpIdx += 11, longsIdx += 5) {<NEW_LINE>long l0 = (tmp[tmpIdx + ...
+ 3] & MASK32_10) << 4;
1,847,267
public static DescribePdnsThreatStatisticResponse unmarshall(DescribePdnsThreatStatisticResponse describePdnsThreatStatisticResponse, UnmarshallerContext _ctx) {<NEW_LINE>describePdnsThreatStatisticResponse.setRequestId(_ctx.stringValue("DescribePdnsThreatStatisticResponse.RequestId"));<NEW_LINE>List<StatisticItem> dat...
("DescribePdnsThreatStatisticResponse.Data[" + i + "].UdpTotalCount"));
1,430,254
private static String encode_base64(byte[] d, int len) throws IllegalArgumentException {<NEW_LINE>int off = 0;<NEW_LINE>StringBuilder rs = new StringBuilder();<NEW_LINE>int c1, c2;<NEW_LINE>if (len <= 0 || len > d.length)<NEW_LINE>throw new IllegalArgumentException("Invalid len");<NEW_LINE>while (off < len) {<NEW_LINE>...
(base64_code[c1 & 0x3f]);
1,029,424
final ListGeneratedCodeJobsResult executeListGeneratedCodeJobs(ListGeneratedCodeJobsRequest listGeneratedCodeJobsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listGeneratedCodeJobsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,717,150
public static void main(String[] args) {<NEW_LINE>// Create a section file.<NEW_LINE>Logger rep = new Logger(Report.Verbose);<NEW_LINE>DuckContext duck = new DuckContext(rep);<NEW_LINE>SectionFile file = new SectionFile(duck);<NEW_LINE>// If command line arguments are provided, load the corresponding files.<NEW_LINE>fo...
rep.info("loading binary file " + name);
1,836,041
protected FontMatch fontMatchRun(String text, int startIndex, int endIndex, List<Face> fonts) {<NEW_LINE>LinkedList<Face> validFonts = new LinkedList<>(fonts);<NEW_LINE>Face lastValid = null;<NEW_LINE>int charIndex = startIndex;<NEW_LINE>int nextCharIndex = charIndex;<NEW_LINE>while (charIndex < endIndex) {<NEW_LINE>ch...
== null ? null : lastValid.fontInfo;
724,666
protected void plugDPDKInterface(InterfaceDef intf, String trafficLabel, Map<String, String> extraConfig, String vlanId, String guestOsType, NicTO nic, String nicAdapter) {<NEW_LINE>s_logger.debug("DPDK support enabled: configuring per traffic label " + trafficLabel);<NEW_LINE>String dpdkOvsPath = _libvirtComputingReso...
dpdKvHostUserMode = dpdkDriver.getDpdkvHostUserMode(extraConfig);
542,463
synchronized void tokenTextRemove(TokenItem token, int offset, int length) {<NEW_LINE>List<ExtTokenPosition> posList = getPosList(token);<NEW_LINE>int len = posList.size();<NEW_LINE>int newLen = token.getImage().length() - length;<NEW_LINE>List<ExtTokenPosition> nextList = getPosList(token.getNext());<NEW_LINE>for (int...
.token = token.getNext();
861,051
public void tick(Level world, BlockPos pos, FluidState state) {<NEW_LINE>hasFlownInTick = false;<NEW_LINE>super.tick(world, pos, state);<NEW_LINE>int timer = <MASK><NEW_LINE>int level = getLegacyLevel(state);<NEW_LINE>int quantaRemaining = 16 - level;<NEW_LINE>if (timer >= Math.min(14, quantaRemaining)) {<NEW_LINE>Bloc...
state.getValue(IEProperties.INT_16);
900,020
private static <T extends RepoIdAware> T extractIdOrNull(@NonNull final Throwable t, @NonNull final String name, @NonNull final IntFunction<T> mapper) {<NEW_LINE>if (t instanceof AdempiereException) {<NEW_LINE>final AdempiereException metasfreshException = (AdempiereException) t;<NEW_LINE>final String mdcValueStr = met...
valueInt = NumberUtils.asIntegerOrNull(mdcValueStr);
1,585,761
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, 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 null."));<NEW_LINE>...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
910,330
/*<NEW_LINE>* Register a IMetric instance. Storm will then call getValueAndReset on the metric every timeBucketSizeInSecs and the returned value is sent to all metrics<NEW_LINE>* consumers. You must call this during IBolt::prepare or ISpout::open.<NEW_LINE>*<NEW_LINE>* @return The IMetric argument unchanged.<NEW_LINE>*...
throw new IllegalArgumentException("TopologyContext.registerMetric can only be called with timeBucketSizeInSecs " + "greater than or equal to 1 second.");
369,841
public ListSAMLProviderTagsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListSAMLProviderTagsResult listSAMLProviderTagsResult = new ListSAMLProviderTagsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.i...
XMLEvent xmlEvent = context.nextEvent();
1,321,497
static public void apply(@NotNull String pattern, @NotNull StringLiteralExpression target, @NotNull ProblemsHolder holder) {<NEW_LINE>if (!pattern.isEmpty()) {<NEW_LINE>while (regexGroupsToSkip.matcher(normalizedPattern).find()) {<NEW_LINE>final Matcher matcher = regexGroupsToSkip.matcher(normalizedPattern);<NEW_LINE>i...
matcher = regexOuterGroup.matcher(normalizedPattern);
1,027,180
V putInternal(K key, V value, ExpirationPolicy expirationPolicy, long expirationNanos) {<NEW_LINE>writeLock.lock();<NEW_LINE>try {<NEW_LINE>ExpiringEntry<K, V> entry = entries.get(key);<NEW_LINE>V oldValue = null;<NEW_LINE>if (entry == null) {<NEW_LINE>entry = new ExpiringEntry<K, V>(key, value, variableExpiration ? ne...
entries.remove(expiredEntry.key);
1,479,148
private void createCircuit(boolean useJKff, boolean useLUTs, ExpressionModifier... modifier) {<NEW_LINE>try {<NEW_LINE>final ModelAnalyserInfo modelAnalyzerInfo = undoManager.getActual().getModelAnalyzerInfo();<NEW_LINE>CircuitBuilder circuitBuilder = new CircuitBuilder(shapeFactory, undoManager.getActual().getVars())....
(useLUTs).setModelAnalyzerInfo(modelAnalyzerInfo);
484,158
private RealmRepresentation createRealmRep() {<NEW_LINE>RealmRepresentation realm = new RealmRepresentation();<NEW_LINE>realm.setRealm(getDefaultRealmName());<NEW_LINE>realm.setEnabled(true);<NEW_LINE>realm.setUsers(new ArrayList<>());<NEW_LINE>realm.setClients(new ArrayList<>());<NEW_LINE>RolesRepresentation roles = n...
realmRoles = new ArrayList<>();
216,102
public SslKeyConfig buildKeyConfig(Path basePath) {<NEW_LINE>final String certificatePath = stringSetting(CERTIFICATE);<NEW_LINE>final String keyPath = stringSetting(KEY);<NEW_LINE>final String keyStorePath = stringSetting(KEYSTORE_PATH);<NEW_LINE>if (certificatePath != null && keyStorePath != null) {<NEW_LINE>throw ne...
storePassword = resolvePasswordSetting(KEYSTORE_SECURE_PASSWORD, KEYSTORE_LEGACY_PASSWORD);
1,138,612
boolean catchupPosition(final ExclusivePublication publication, final long leadershipTermId, final long logPosition, final int followerMemberId, final String catchupEndpoint) {<NEW_LINE>if (null == publication) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final int length = MessageHeaderEncoder.ENCODED_LENGTH + Catchup...
publication.tryClaim(length, bufferClaim);
1,329,716
public static void log(XHook hook, int priority, String msg) {<NEW_LINE>// Check if logging enabled<NEW_LINE>int uid = Process.myUid();<NEW_LINE>if (!mLogDetermined && uid > 0) {<NEW_LINE>mLogDetermined = true;<NEW_LINE>try {<NEW_LINE>mLog = PrivacyManager.getSettingBool(0, PrivacyManager.cSettingLog, false);<NEW_LINE>...
.getSimpleName()), msg);
1,189,536
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UntagResource");
1,541,386
public static void main(String[] args) {<NEW_LINE>var context = new ClassPathXmlApplicationContext("applicationContext.xml");<NEW_LINE>var repository = context.getBean(PersonRepository.class);<NEW_LINE>var peter = new <MASK><NEW_LINE>var nasta = new Person("Nasta", "Kuzminova", 25);<NEW_LINE>var john = new Person("John...
Person("Peter", "Sagan", 17);
90,058
public int compareTo(checkTableClass_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSuccess(<MASK><NEW_LINE>if (lastCompa...
), other.isSetSuccess());
1,728,875
public DataWord shiftRightSigned(DataWord arg) {<NEW_LINE>// Taken from Pantheon implementation<NEW_LINE>// https://github.com/PegaSysEng/pantheon/blob/master/ethereum/core/src/main/java/tech/pegasys/pantheon/ethereum/vm/operations/SarOperation.java<NEW_LINE>if (arg.compareTo(DataWord.valueOf(MAX_POW)) >= 0) {<NEW_LINE...
256 - arg.intValueSafe());
1,775,682
protected void parseCellDataElement(SOAPElement cellDataElement) throws SOAPException {<NEW_LINE>Name name = sf.createName("Cell", "", MDD_URI);<NEW_LINE>Iterator<?> itCells = cellDataElement.getChildElements(name);<NEW_LINE>while (itCells.hasNext()) {<NEW_LINE>SOAPElement cellElement = (SOAPElement) itCells.next();<NE...
cellOrdinal = cellElement.getAttributeValue(ordinalName);
292,113
public JsonNode evaluate(FunctionArgs args, EvaluationContext context) {<NEW_LINE>final String value = valueParam.required(args, context);<NEW_LINE>final String arrayHandler = arrayHandlerParam.required(args, context);<NEW_LINE>try {<NEW_LINE>switch(arrayHandler) {<NEW_LINE>case OPTION_IGNORE:<NEW_LINE>// ignore all to...
extractJson(value, objectMapper, FLAGS_IGNORE);
691,682
public static ListRolesResponse unmarshall(ListRolesResponse listRolesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRolesResponse.setRequestId(_ctx.stringValue("ListRolesResponse.RequestId"));<NEW_LINE>listRolesResponse.setPageSize(_ctx.integerValue("ListRolesResponse.PageSize"));<NEW_LINE>listRolesResponse.setTot...
+ "].Menus[" + j + "].Code"));
1,639,257
public Result syncBackups() throws Exception {<NEW_LINE>Http.MultipartFormData<Files.TemporaryFile> body = request().body().asMultipartFormData();<NEW_LINE>Map<String, String[]> reqParams = body.asFormUrlEncoded();<NEW_LINE>String[] leaders = reqParams.getOrDefault("leader", new String[0]);<NEW_LINE>String[] senders = ...
ApiResponse.error(BAD_REQUEST, "Could not find HA Config");
617,006
public OffsetMap fetchOffset(org.apache.kafka.clients.consumer.KafkaConsumer<?, ?> consumer, String topic) {<NEW_LINE>OffsetMap offsetMap = new OffsetMap();<NEW_LINE>List<TopicPartition> topicPartitions = new ArrayList<>();<NEW_LINE>consumer.subscribe(Collections.singleton(topic));<NEW_LINE>List<PartitionInfo> partitio...
endOffsets.get(item)));
1,542,295
protected void encode(ChannelHandlerContext ctx, ByteBuf in, ByteBuf out) throws Exception {<NEW_LINE>final int length = in.readableBytes();<NEW_LINE>final int idx = in.readerIndex();<NEW_LINE>final byte[] input;<NEW_LINE>final int inputPtr;<NEW_LINE>if (in.hasArray()) {<NEW_LINE>input = in.array();<NEW_LINE>inputPtr <...
= in.arrayOffset() + idx;
1,425,434
public void prepare(FilenameAndScaleHolder filenameAndScaleHolder) {<NEW_LINE>this.filenameAndScaleHolder = filenameAndScaleHolder;<NEW_LINE>setHeader("Export Diagram");<NEW_LINE>FlowPanel panel = new FlowPanel();<NEW_LINE>HTML w = new HTML("Optionally set a filename");<NEW_LINE>panel.add(w);<NEW_LINE>final TextBox tex...
setFilename(textBox.getText());