idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
907,313
protected AtomicLong readLastLogId() {<NEW_LINE>String filePath = storagePath + File.separator + OPLOG_FILE.replace("$NUM$", "" + info.currentFileNum);<NEW_LINE>File f = new File(filePath);<NEW_LINE>try (RandomAccessFile file = new RandomAccessFile(filePath, "r")) {<NEW_LINE>if (!f.exists()) {<NEW_LINE>f.createNewFile(...
) - 24 - size - 20);
1,427,875
protected void mStep() {<NEW_LINE>// topicProbsSum.setAll(0.0);<NEW_LINE>// topicUserProbsSum.setAll(0.0);<NEW_LINE>// topicItemProbsSum.setAll(0.0);<NEW_LINE>topicProbsSum.assign((index, tempValue) -> 0);<NEW_LINE>topicUserProbsSum.assign((rowId, colId, tempValue) -> 0);<NEW_LINE>topicItemProbsSum.assign((rowId, colId...
int userIdx = trainMatrixEntry.row();
1,186,721
private final void write(int timestamp, IRTMPEvent msg) {<NEW_LINE>// get data type<NEW_LINE>byte dataType = msg.getDataType();<NEW_LINE>log.debug("Write - timestamp: {} type: {}", timestamp, dataType);<NEW_LINE>// get data bytes<NEW_LINE>IoBuffer data = ((IStreamData<?>) msg).getData();<NEW_LINE>if (data != null) {<NE...
dataType, timestamp, data, 0);
942,009
public Request<ListCollectionsRequest> marshall(ListCollectionsRequest listCollectionsRequest) {<NEW_LINE>if (listCollectionsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListCollectionsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListCollectionsRequest> request = new Defau...
String nextToken = listCollectionsRequest.getNextToken();
656,430
private short constructBitfield() {<NEW_LINE>short bits = 0;<NEW_LINE>// simplified shift of SET_BIT_MMOL<NEW_LINE>bits |= (Unitized.usingMgDl() ? 0 : 1);<NEW_LINE>bits |= (Pref.getBooleanDefaultFalse("bluejay_option_24_hour_clock") ? 1 : 0) << SET_BIT_24_HOUR_CLOCK;<NEW_LINE>bits |= (Pref.getBooleanDefaultFalse("bluej...
) ? 1 : 0) << SET_BIT_USE_PHONE_SLOT;
1,740,053
public I_PP_Order execute() {<NEW_LINE>final ProductPlanningId productPlanningId = request.getProductPlanningId();<NEW_LINE>final I_PP_Product_Planning productPlanning = productPlanningId != null ? productPlanningsRepo.getById(productPlanningId) : null;<NEW_LINE>//<NEW_LINE>// Create PP Order<NEW_LINE>final I_PP_Order ...
ppOrderRecord.setPriorityRule(X_PP_Order.PRIORITYRULE_Medium);
635,048
private boolean draw(GC gc) {<NEW_LINE>boolean above = source.y_pos > target.y_pos;<NEW_LINE>int x1 = source.x_pos + flag_width / 2;<NEW_LINE>int x2 = target.x_pos + flag_width / 2;<NEW_LINE>int y1;<NEW_LINE>int y2;<NEW_LINE>if (above) {<NEW_LINE>y1 = source.y_pos - text_height;<NEW_LINE>y2 = target.y_pos + flag_height...
Color old = gc.getForeground();
1,505,123
public void startArray(String block) {<NEW_LINE>if (block.equals("paging")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Vector items = new Vector();<NEW_LINE>Object node;<NEW_LINE>if (stack.size() == 1) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>if (stack.size() == 0) {<NEW_LINE>node = new Vector() {<NEW_LINE><NEW_LINE>p...
).put(block, items);
1,411,289
public IntellijIdeInfo.TargetIdeInfo toProto() {<NEW_LINE>IntellijIdeInfo.TargetIdeInfo.Builder builder = IntellijIdeInfo.TargetIdeInfo.newBuilder().setKey(key.toProto()).setKindString(kind.getKindString()).addAllDeps(ProtoWrapper.mapToProtos(dependencies)).addAllTags(tags);<NEW_LINE>ProtoWrapper.unwrapAndSetIfNotNull(...
unwrapAndSetIfNotNull(builder::setPyIdeInfo, pyIdeInfo);
187,764
public static DescribeDcdnIpaUserDomainsResponse unmarshall(DescribeDcdnIpaUserDomainsResponse describeDcdnIpaUserDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnIpaUserDomainsResponse.setRequestId(_ctx.stringValue("DescribeDcdnIpaUserDomainsResponse.RequestId"));<NEW_LINE>describeDcdnIpaUserDomainsRe...
= new ArrayList<PageData>();
794,303
public static CreateDefaultEventResponse unmarshall(CreateDefaultEventResponse createDefaultEventResponse, UnmarshallerContext _ctx) {<NEW_LINE>createDefaultEventResponse.setRequestId(_ctx.stringValue("CreateDefaultEventResponse.RequestId"));<NEW_LINE>createDefaultEventResponse.setErrorDesc(_ctx.stringValue("CreateDefa...
(_ctx.stringValue("CreateDefaultEventResponse.Data.WorkspaceId"));
1,653,196
public CreateConnectionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateConnectionResult createConnectionResult = new CreateConnectionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
"unixTimestamp").unmarshall(context));
400,876
default double[][] buildDifferenceMatrix(List<Solution> solutions) {<NEW_LINE>int n = solutions.size();<NEW_LINE>IntVar[] vars = solutions.get(0).retrieveIntVars(true).toArray(new IntVar[0]);<NEW_LINE>double[][] m = new double[n][n];<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>Solution soli = solutions.get(i);<NEW_...
k])) ? 0. : 1.;
1,310,973
protected void writeSkipData(int level, DataOutput skipBuffer) throws IOException {<NEW_LINE>int delta = curDoc - lastSkipDoc[level];<NEW_LINE>skipBuffer.writeVInt(delta);<NEW_LINE>lastSkipDoc[level] = curDoc;<NEW_LINE>skipBuffer.writeVLong(curDocPointer - lastSkipDocPointer[level]);<NEW_LINE>lastSkipDocPointer[level] ...
(curPayPointer - lastSkipPayPointer[level]);
1,627,071
private Map<NetworkServiceDnsBackend, List<DnsStruct>> workoutDns(VmInstanceSpec spec) {<NEW_LINE>Map<NetworkServiceDnsBackend, List<DnsStruct>> map = new HashMap<NetworkServiceDnsBackend, List<DnsStruct>>();<NEW_LINE>Map<NetworkServiceProviderType, List<L3NetworkInventory>> providerMap = getNetworkServiceProviderMap(N...
.getName(), lst));
667,392
public void updateNodes(Client client, Set<DiscoveryNode> nodes, RerouteService rerouteService) {<NEW_LINE>final List<AsyncNodeFetch> newFetches;<NEW_LINE>synchronized (mutex) {<NEW_LINE>// clean up nodes that left the cluster<NEW_LINE>nodeStates.keySet().removeIf(n -> nodes.contains(n) == false);<NEW_LINE>// skip node...
removeAll(nodeStates.keySet());
1,404,981
protected Shape createImage(int width, int height) {<NEW_LINE>GeneralPath path = new GeneralPath();<NEW_LINE>int arrowWidth = height / 3;<NEW_LINE>float x1 = isInput ? 0 : width;<NEW_LINE>float x2 = isInput ? 3 * width / 4f : width / 4f;<NEW_LINE>float gap = (width - arrowWidth) / 2f;<NEW_LINE>path.moveTo(x1, gap);<NEW...
x1, 3 * height / 4f);
759,773
public void init() {<NEW_LINE>model = new TimelineModel<>();<NEW_LINE>model.add(TimelineEvent.<String>builder().data("PrimeUI 1.1").startDate(LocalDate.of(2014, 6, 12)).build());<NEW_LINE>model.add(TimelineEvent.<String>builder().data("PrimeFaces 5.1.3").startDate(LocalDate.of(2014, 10, 11)).build());<NEW_LINE>model.ad...
14)).build());
1,696,132
public void editLeave(ActionRequest request, ActionResponse response) {<NEW_LINE>try {<NEW_LINE>User user = AuthUtils.getUser();<NEW_LINE>List<LeaveRequest> leaveList = Beans.get(LeaveRequestRepository.class).all().filter("self.user = ?1 AND self.company = ?2 AND self.statusSelect = 1", user, user.getActiveCompany()).f...
))).map());
816,883
public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@name('s0') select p0.n0 as a, p1[0].n0 as b, p1[1].n0 as c, p0 as d, p1 as e from MyMapWithAMap");<NEW_LINE>env.addListener("s0");<NEW_LINE>Map<String, Object> n0Bean1 = EventMapCore.makeMap(new Object[][] { { "n0", 1 } });<NEW_LINE>Map<String, O...
, eventType.getPropertyType("e"));
158,505
private Map<String, Artifact> collectBomExtensions(MavenArtifactResolver mvn, final DefaultArtifact platformBom) throws MojoExecutionException {<NEW_LINE>final List<Dependency> bomDeps;<NEW_LINE>try {<NEW_LINE>bomDeps = mvn.resolveDescriptor(platformBom).getManagedDependencies();<NEW_LINE>} catch (Exception e) {<NEW_LI...
).getArtifact(), bomExtensions);
1,639,687
public void reload() {<NEW_LINE>LOG.info("reload KafkaFederationSinkContext.");<NEW_LINE>try {<NEW_LINE>SortTaskConfig newSortTaskConfig = SortClusterConfigHolder.getTaskConfig(taskName);<NEW_LINE>if (newSortTaskConfig == null) {<NEW_LINE>LOG.error("newSortTaskConfig is null.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ...
newClusterConfigList = new ArrayList<>();
437,169
public void deleteSource(final SourceRead source) throws JsonValidationException, IOException, ConfigNotFoundException {<NEW_LINE>// "delete" all connections associated with source as well.<NEW_LINE>// Delete connections first in case it fails in the middle, source will still be visible<NEW_LINE>final WorkspaceIdReques...
deleteConnection(connectionRead.getConnectionId());
786,354
public static ListSecurityPoliciesResponse unmarshall(ListSecurityPoliciesResponse listSecurityPoliciesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSecurityPoliciesResponse.setRequestId(_ctx.stringValue("ListSecurityPoliciesResponse.RequestId"));<NEW_LINE>listSecurityPoliciesResponse.setMaxResults(_ctx.integerVal...
("ListSecurityPoliciesResponse.SecurityPolicies[" + i + "].ResourceGroupId"));
748,827
public static QueryCustomerLabelResponse unmarshall(QueryCustomerLabelResponse queryCustomerLabelResponse, UnmarshallerContext context) {<NEW_LINE>queryCustomerLabelResponse.setSuccess(context.booleanValue("QueryCustomerLabelResponse.Success"));<NEW_LINE>queryCustomerLabelResponse.setCode(context.stringValue("QueryCust...
= new ArrayList<CustomerLabel>();
1,349,203
final UpdateDeviceStatusResult executeUpdateDeviceStatus(UpdateDeviceStatusRequest updateDeviceStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDeviceStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,839,543
private Work arrivingMergeSameJob(AeiObjects aeiObjects, Manual manual, List<String> identities) throws Exception {<NEW_LINE>if (!BooleanUtils.isTrue(manual.getManualMergeSameJobActivity())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<String> exists = this.arrivingSameJobActivityExistIdentities(aeiObjects, manual)...
getUpdateWorks().add(other);
99,924
public Xml.Attribute visitAttribute(XMLParser.AttributeContext ctx) {<NEW_LINE>return convert(ctx, (c, prefix) -> {<NEW_LINE>Xml.Ident key = convert(c.Name(), (t, p) -> new Xml.Ident(randomId(), p, Markers.EMPTY, t.getText()));<NEW_LINE>String beforeEquals = convert(c.EQUALS(), <MASK><NEW_LINE>Xml.Attribute.Value value...
(e, p) -> p);
1,652,696
public static boolean validateGitea(JReleaserContext context, JReleaserContext.Mode mode, Gitea gitea, Errors errors) {<NEW_LINE>if (null == gitea)<NEW_LINE>return false;<NEW_LINE>context.getLogger().debug("release.gitea");<NEW_LINE>validateGitService(context, mode, gitea, errors);<NEW_LINE>if (isBlank(gitea.getApiEndp...
.$("validation_must_not_be_blank", "gitea.apiEndpoint"));
1,284,417
public RelDataType inferReturnType(SqlOperatorBinding opBinding) {<NEW_LINE>Preconditions.checkArgument(opBinding instanceof SqlCallBinding, "this method must be invoke during validating, rather than RexNode building.");<NEW_LINE>SqlCallBinding callBinding = (SqlCallBinding) opBinding;<NEW_LINE>SqlCall ifCall = callBin...
callBinding.getScope(), operand);
168,467
void mergeRealms(OsAccountRealm sourceRealm, OsAccountRealm destRealm, CaseDbTransaction trans) throws TskCoreException {<NEW_LINE>// Update accounts<NEW_LINE>db.getOsAccountManager().mergeOsAccountsForRealms(sourceRealm, destRealm, trans);<NEW_LINE>// Update the sourceRealm realm<NEW_LINE>CaseDbConnection connection =...
+ " WHERE id = " + sourceRealm.getRealmId();
1,626,840
// header structure for analyzer<NEW_LINE>public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>Structure structure = new StructureDataType("yaffs2Hdr", 0);<NEW_LINE>structure.add(DWORD, "objectType", null);<NEW_LINE>structure.add(DWORD, "parentObjectId", null);<NEW_LINE>structure.add(WORD,...
add(DWORD, "inbandIsShrink", null);
1,100,679
// The protobuf definition ChatMessage cannot be changed as it would break backward compatibility.<NEW_LINE>public static ChatMessage fromProto(protobuf.ChatMessage proto, int messageVersion) {<NEW_LINE>// If we get a msg from an old client type will be ordinal 0 which is the dispute entry and as we only added<NEW_LINE...
), proto.getWasDisplayed());
743,705
public static int indexOf(long v) {<NEW_LINE>if (v <= 0) {<NEW_LINE>return 0;<NEW_LINE>} else if (v <= 4) {<NEW_LINE>return (int) v;<NEW_LINE>} else {<NEW_LINE>int lz = Long.numberOfLeadingZeros(v);<NEW_LINE>int shift = 64 - lz - 1;<NEW_LINE>long prevPowerOf2 = (v >> shift) << shift;<NEW_LINE>long prevPowerOf4 = prevPo...
(v - base) / delta);
1,716,038
public void write(org.apache.thrift.protocol.TProtocol prot, reportTabletStatus_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struc...
oprot.writeBitSet(optionals, 5);
1,127,144
public FieldLevelEncryptionProfileList unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>FieldLevelEncryptionProfileList fieldLevelEncryptionProfileList = new FieldLevelEncryptionProfileList();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NE...
XMLEvent xmlEvent = context.nextEvent();
223,388
public List selectTriggerToAcquire(Connection conn, long noLaterThan, long noEarlierThan) throws SQLException {<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>List nextTriggers = new LinkedList();<NEW_LINE>try {<NEW_LINE>ps = conn.prepareStatement(rtp(SELECT_NEXT_TRIGGER_TO_ACQUIRE.toLower...
ps.setString(1, STATE_WAITING);
747,353
protected NodeSnapshotStatus nodeOperation(NodeRequest request) {<NEW_LINE>Map<Snapshot, Map<ShardId, SnapshotIndexShardStatus>> snapshotMapBuilder = new HashMap<>();<NEW_LINE>try {<NEW_LINE>final String nodeId = clusterService.localNode().getId();<NEW_LINE>for (Snapshot snapshot : request.snapshots) {<NEW_LINE>Map<Sha...
Stage stage = lastSnapshotStatus.getStage();
223,778
final CreateScheduledActionResult executeCreateScheduledAction(CreateScheduledActionRequest createScheduledActionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createScheduledActionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
618,370
private void mapReferences(@NonNull final EDICctopInvoicVType invoice, @NonNull final HEADERXrech headerXrech, @NonNull final String dateFormat, @NonNull final InvoicSettings settings) {<NEW_LINE>final HREFE1 buyerOrderRef = INVOIC_objectFactory.createHREFE1();<NEW_LINE>buyerOrderRef.setDOCUMENTID(headerXrech.getDOCUME...
HREFE1 sellerOrderRef = INVOIC_objectFactory.createHREFE1();
1,731,246
final ExecuteStatementResult executeExecuteStatement(ExecuteStatementRequest executeStatementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(executeStatementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.SERVICE_ID, "DynamoDB");
1,626,220
public void validate() {<NEW_LINE>super.validate();<NEW_LINE>if (ask() == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException("Missing required property ask in model ContentKeyPolicyFairPlayConfiguration"));<NEW_LINE>}<NEW_LINE>if (fairPlayPfxPassword() == null) {<NEW_LINE>throw LOGGER.logExc...
new IllegalArgumentException("Missing required property rentalAndLeaseKeyType in model" + " ContentKeyPolicyFairPlayConfiguration"));
222,785
static Transaction decodeFrontier(final RLPInput input, final boolean goQuorumCompatibilityMode) {<NEW_LINE>input.enterList();<NEW_LINE>final Transaction.Builder builder = Transaction.builder().type(TransactionType.FRONTIER).nonce(input.readLongScalar()).gasPrice(Wei.of(input.readUInt256Scalar())).gasLimit(input.readLo...
payload(input.readBytes());
139,212
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.wsspi.injectionengine.InjectionBinding#merge(java.lang.annotation.Annotation, java.lang.Class, java.lang.reflect.Member)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void merge(JMSDestinationDefinition annotation, Class<?> instanceClass, Member member) th...
xmlProperties, annotation.properties());
1,767,660
public void write(org.apache.thrift.protocol.TProtocol prot, TSummaryRequest struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.isSetT...
struct.summarizers.size());
864,997
public void fullRedraw() {<NEW_LINE>LOG.debug("Full redraw");<NEW_LINE>// Done that.<NEW_LINE>noIncrementalRedraw = false;<NEW_LINE>// initialize css (needs clusterSize!)<NEW_LINE>addCSSClasses(segments.getHighestClusterCount());<NEW_LINE>layer = svgp.svgElement(SVGConstants.SVG_G_TAG);<NEW_LINE>visLayer = svgp.svgElem...
SVGConstants.SVG_HEIGHT_ATTRIBUTE)), 11);
1,277,650
public GetPersonTrackingResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetPersonTrackingResult getPersonTrackingResult = new GetPersonTrackingResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>String ...
().unmarshall(context));
373,863
public boolean enter(DocumentType docType) {<NEW_LINE>if (canonical) {<NEW_LINE>c14nNodeList.add(docType);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String name = docType.getName();<NEW_LINE>String pubId = docType.getPublicId();<NEW_LINE>String sysId = docType.getSystemId();<NEW_LINE>String internalSubset = docType.get...
(pubId).append('"');
925,866
public static void assertPeriodCounts(Timeline timeline, int... expectedPeriodCounts) {<NEW_LINE>int windowCount = timeline.getWindowCount();<NEW_LINE>assertThat(windowCount<MASK><NEW_LINE>int[] accumulatedPeriodCounts = new int[windowCount + 1];<NEW_LINE>accumulatedPeriodCounts[0] = 0;<NEW_LINE>for (int i = 0; i < win...
).isEqualTo(expectedPeriodCounts.length);
1,004,440
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void testConnectionActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_testConnectionActionPerformed<NEW_LINE>if (!portTextField.getText().isEmpty()) {<NEW_LINE>try {<NEW_LINE>Integer.parseInt(portTextField.getText());<NEW_LINE>} catch...
Message(message, NotifyDescriptor.INFORMATION_MESSAGE);
45,300
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
RasterLayer imageRasterLayer = new RasterLayer(imageServiceRaster);
859,623
public void findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, AbstractAndroidBundleDescriptionArg constructorArg, ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder) {<NEW_LINE>javacFactory.addParseTimeDe...
targetGraphOnlyDepsBuilder, buildTarget.getTargetConfiguration());
727,184
public FinalHyperParameterTuningJobObjectiveMetric unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FinalHyperParameterTuningJobObjectiveMetric finalHyperParameterTuningJobObjectiveMetric = new FinalHyperParameterTuningJobObjectiveMetric();<NEW_LINE>int originalDepth = context.getCurrentDepth();<...
class).unmarshall(context));
1,817,388
private AuthConfig runCredentialProvider(String hostName, String helperOrStoreName) throws Exception {<NEW_LINE>if (isBlank(hostName)) {<NEW_LINE>log.debug("There is no point in locating AuthConfig for blank hostName. Returning NULL to allow fallback");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final String credentialP...
log.debug("Credential helper/store provided auth config for: {}", hostName);
529,355
private String createAppClientProfileData(ActionContext context, MonitorDataFrame mdf, String appid, String appurl, String appgroup, Map<String, Object> appProfile) {<NEW_LINE>List<Map> clients = mdf.getElemInstances(appid, "clients");<NEW_LINE>long checkTime = System.currentTimeMillis();<NEW_LINE>long expireTime = 600...
cVals.put("state", "0");
153,204
protected List findByCompanyId(String companyId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM UserTracker IN CLASS com.liferay.portal.ejb.UserTrackerHBM WHERE ");<NEW_LINE>query.ap...
.setString(queryPos++, companyId);
204,886
protected void parseCreateField(ParseContext context, List<IndexableField> fields) throws IOException {<NEW_LINE>final String value;<NEW_LINE>if (context.externalValueSet()) {<NEW_LINE>value = context<MASK><NEW_LINE>} else {<NEW_LINE>XContentParser parser = context.parser();<NEW_LINE>if (parser.currentToken() == XConte...
.externalValue().toString();
1,014,944
public static byte[] readFile2BytesByMap(final File file) {<NEW_LINE>if (!UtilsBridge.isFileExists(file))<NEW_LINE>return null;<NEW_LINE>FileChannel fc = null;<NEW_LINE>try {<NEW_LINE>fc = new RandomAccessFile(file, "r").getChannel();<NEW_LINE>if (fc == null) {<NEW_LINE><MASK><NEW_LINE>return new byte[0];<NEW_LINE>}<NE...
Log.e("FileIOUtils", "fc is null.");
211,348
private RdSetElem toRdSetElem(Rd_set_elemContext ctx) {<NEW_LINE>if (ctx.rd_set_elem_asdot() != null) {<NEW_LINE>@Nullable<NEW_LINE>Entry<Uint16RangeExpr, Uint16RangeExpr> as = toUint32HighLowExpr(ctx.rd_set_elem_asdot());<NEW_LINE>if (as == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>return new RdSetAsDot(as.get...
assert ctx.IOS_REGEX() != null;
878,084
public static String encodeObject(java.io.Serializable serializableObject, int options) throws java.io.IOException {<NEW_LINE>if (serializableObject == null) {<NEW_LINE>throw new NullPointerException("Cannot serialize a null object.");<NEW_LINE>}<NEW_LINE>// end if: null<NEW_LINE>// Streams<NEW_LINE>java.io.ByteArrayOu...
baos.toByteArray(), PREFERRED_ENCODING);
994,379
protected boolean save(Config config, Connection conn, String tableName, String primaryKey, Record record) throws SQLException {<NEW_LINE>String[] pKeys = primaryKey.split(",");<NEW_LINE>List<Object> paras = new ArrayList<Object>();<NEW_LINE>StringBuilder sql = new StringBuilder();<NEW_LINE>Dialect dialect = config.get...
getRecordGeneratedKey(pst, record, pKeys);
1,441,030
public void migrate(final PrintStream stream, final ArchiveMarkFile markFile, final Catalog catalog, final File archiveDir) {<NEW_LINE>try (FileChannel timestampFile = MigrationUtils.createMigrationTimestampFile(archiveDir, markFile.decoder().version(), minimumVersion())) {<NEW_LINE>assert null != timestampFile;<NEW_LI...
&& filename.endsWith(version1Suffix));
429,984
// Initialize the stack frame name while we're on the execution thread<NEW_LINE>private String initName() throws DebugException {<NEW_LINE>verifyValidState(false);<NEW_LINE>Node node;<NEW_LINE>if (currentFrame == null) {<NEW_LINE>node = getContext().getInstrumentedNode();<NEW_LINE>} else {<NEW_LINE>node = currentFrame....
node = InstrumentableNode.findInstrumentableParent(node);
1,507,381
public static <T, PT extends ObjectIntProcedure<? super T>> void forEachWithIndexInListOnExecutor(List<T> list, ObjectIntProcedureFactory<PT> procedureFactory, Combiner<PT> combiner, int minForkSize, int taskCount, ForkJoinPool executor) {<NEW_LINE>int size = list.size();<NEW_LINE>if (size < minForkSize || FJIterate.ex...
PT procedure = procedureFactory.create();
1,356,485
public void modifyTestElement(TestElement te) {<NEW_LINE>te.clear();<NEW_LINE>super.configureTestElement(te);<NEW_LINE>te.setProperty(SmtpSampler.SERVER, smtpPanel.getServer());<NEW_LINE>te.setProperty(SmtpSampler.SERVER_PORT, smtpPanel.getPort());<NEW_LINE>// $NON-NLS-1$<NEW_LINE>te.setProperty(SmtpSampler.SERVER_TIME...
RECEIVER_TO, smtpPanel.getReceiverTo());
543,138
public DiscoverInfo discoverInfoNonBlocking(Jid entityID) {<NEW_LINE>DiscoverInfo discoverInfo = capsManager.getDiscoverInfoByUser(entityID);<NEW_LINE>EntityCapsManager.NodeVerHash <MASK><NEW_LINE>boolean isInfoValid = false;<NEW_LINE>if (discoverInfo != null && caps != null) {<NEW_LINE>isInfoValid = EntityCapsManager....
caps = EntityCapsManager.getNodeVerHashByJid(entityID);
100,569
private JButton createScrollButton(int orientation) {<NEW_LINE>darkMode = scrollbar instanceof DarkScrollBar;<NEW_LINE>if (darkMode) {<NEW_LINE>return createZeroButton();<NEW_LINE>}<NEW_LINE>CustomButton btn = new CustomButton();<NEW_LINE>btn.setBackground(darkMode ? trackColor2 : trackColor1);<NEW_LINE>btn.setContentA...
XDMUtils.getScaledInt(15)));
1,707,961
public Loader<List<Recipient>> onCreateLoader(int id, Bundle args) {<NEW_LINE>switch(id) {<NEW_LINE>case LOADER_ID_FILTERING:<NEW_LINE>{<NEW_LINE>String query = args != null && args.containsKey(ARG_QUERY) ? args.getString(ARG_QUERY) : "";<NEW_LINE>adapter.setHighlight(query);<NEW_LINE>return new RecipientLoader(<MASK><...
getContext(), cryptoProvider, query);
1,719,691
List<TestSuite> createDerivedSuites(SortedMultisetTestSuiteBuilder<E> parentBuilder) {<NEW_LINE>List<TestSuite> derivedSuites = Lists.newArrayList();<NEW_LINE>if (!parentBuilder.getFeatures().contains(NoRecurse.DESCENDING)) {<NEW_LINE>derivedSuites.add(createDescendingSuite(parentBuilder));<NEW_LINE>}<NEW_LINE>if (pare...
.INCLUSIVE, Bound.INCLUSIVE));
415,223
public int compareTo(updateTopology_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 = Boolean.valueOf(is_set_e()).compareTo(other.is_set_e());<NEW_LINE>if ...
compareTo(other.is_set_ite());
1,775,988
private void reportMatch(TokenEntry mark1, TokenEntry mark2, int dupes) {<NEW_LINE>Map<Integer, Match> matches = matchTree.get(dupes);<NEW_LINE>if (matches == null) {<NEW_LINE>matches = new TreeMap<>();<NEW_LINE><MASK><NEW_LINE>addNewMatch(mark1, mark2, dupes, matches);<NEW_LINE>} else {<NEW_LINE>Match matchA = matchTr...
matchTree.put(dupes, matches);
316,474
/*<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>@Override<NEW_LINE>public JsonSerializer<?> createContextual(SerializerProvider serializers, BeanProperty property) throws JsonMappingException {<NEW_LINE>JsonSerializer<?> ser = null;<NEW_LINE>Boolean unwrapSingle = null;<NEW_LINE>if (property != null) {<NEW_LINE>fin...
findContentValueSerializer(String.class, property);
1,655,429
public ProcStatReader reset() throws ProcStatUtil.ParseException {<NEW_LINE>// Be optimistic<NEW_LINE>mIsValid = true;<NEW_LINE>// First, try to move the pointer if a file exists<NEW_LINE>if (mFile != null) {<NEW_LINE>try {<NEW_LINE>mFile.seek(0);<NEW_LINE>} catch (IOException ioe) {<NEW_LINE>close();<NEW_LINE>}<NEW_LI...
"RAF err: " + ioe.getMessage());
1,473,266
private void processPolymorphicChildren(OneToManyPolymorphicAssociation association) {<NEW_LINE>if (delegate.isEmpty()) {<NEW_LINE>// no need to process children if no models selected.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MetaModel childMetaModel = metaModelOf(association.getTargetClass());<NEW_LINE>Map<Object, List<Mo...
"parent_id")).add(child);
1,136,853
protected static void addObjectToBuilders(List<MetricsPacket.Builder> builders, JsonNode object) {<NEW_LINE>MetricsPacket.Builder builder = new MetricsPacket.Builder(ServiceId.toServiceId(object.get("application").textValue()));<NEW_LINE>builder.timestamp(object.get("timestamp").longValue());<NEW_LINE>if (object.has("s...
("status_msg").textValue());
978,596
private void fixedExpiration() {<NEW_LINE>context.constructor.addStatement("this.expiresAfterAccessNanos = builder.getExpiresAfterAccessNanos()");<NEW_LINE>context.cache.addField(FieldSpec.builder(long.class, "expiresAfterAccessNanos").addModifiers(Modifier.VOLATILE).build());<NEW_LINE>context.cache.addMethod(MethodSpe...
.class).build());
994,949
public Response processCitationPatentTXT(String text, int consolidate, boolean includeRawCitations) {<NEW_LINE>LOGGER.debug(methodLogIn());<NEW_LINE>Response response = null;<NEW_LINE>Engine engine = null;<NEW_LINE>try {<NEW_LINE>engine = Engine.getEngine(true);<NEW_LINE>List<PatentItem> patents = new ArrayList<PatentI...
Status.INTERNAL_SERVER_ERROR).build();
457,653
static final void writeACCoeffs(BitWriter bits, int[] qMat, int[] _in, int blocksPerSlice, int[] scan, int maxCoeff) {<NEW_LINE>int prevRun = 4;<NEW_LINE>int prevLevel = 2;<NEW_LINE>int run = 0;<NEW_LINE>for (int i = 1; i < maxCoeff; i++) {<NEW_LINE>int indp = scan[i];<NEW_LINE>for (int j = 0; j < blocksPerSlice; j++) ...
j << 6) + indp]);
1,833,961
public edu.stanford.nlp.pipeline.CoreNLPProtos.TokensRegexRequest buildPartial() {<NEW_LINE>edu.stanford.nlp.pipeline.CoreNLPProtos.TokensRegexRequest result = new edu.stanford.nlp.pipeline.CoreNLPProtos.TokensRegexRequest(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((...
bitField0_ = (bitField0_ & ~0x00000002);
1,587,413
final DeleteBackupVaultNotificationsResult executeDeleteBackupVaultNotifications(DeleteBackupVaultNotificationsRequest deleteBackupVaultNotificationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBackupVaultNotificationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,131,487
private RelOptCost hashJoinCumulativeCostLowerBound(Join join, RelMetadataQuery mq, VolcanoPlanner planner) {<NEW_LINE>final double leftRowCount = mq.getRowCount(join.getLeft());<NEW_LINE>final double rightRowCount = mq.getRowCount(join.getRight());<NEW_LINE>final RelDataType probeSideRowType;<NEW_LINE>final RelDataTyp...
= CostModelWeight.INSTANCE.getBuildWeight();
130,612
public LoggingInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LoggingInfo loggingInfo = new LoggingInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
JsonToken token = context.getCurrentToken();
24,267
public ThreeState deepEqual(@Nonnull final ASTNode oldNode, @Nonnull final LighterASTNode newNode) {<NEW_LINE>ProgressIndicatorProvider.checkCanceled();<NEW_LINE>boolean oldIsErrorElement = oldNode instanceof PsiErrorElement;<NEW_LINE>boolean newIsErrorElement = newNode.getTokenType() == TokenType.ERROR_ELEMENT;<NEW_LI...
fun(oldNode, newNode, myTreeStructure);
1,525,167
final StopSNOMEDCTInferenceJobResult executeStopSNOMEDCTInferenceJob(StopSNOMEDCTInferenceJobRequest stopSNOMEDCTInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopSNOMEDCTInferenceJobRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
944,647
private void processDirectory(@NonNull File directory, @NonNull MemoryItem... items) {<NEW_LINE>String directoryPath = directory.getAbsolutePath();<NEW_LINE>for (MemoryItem memoryItem : items) {<NEW_LINE>DirectoryItem[<MASK><NEW_LINE>if (targetDirectories != null) {<NEW_LINE>for (DirectoryItem dir : targetDirectories) ...
] targetDirectories = memoryItem.getDirectories();
1,033,984
public List<SitesVH> fetchSitesDetails(SubscriptionVH subscription) throws Exception {<NEW_LINE>List<SitesVH> sitesList = new ArrayList<SitesVH>();<NEW_LINE>String accessToken = azureCredentialProvider.getToken(subscription.getTenant());<NEW_LINE>String url = String.format(apiUrlTemplate, URLEncoder.encode(subscription...
toString(), HashMap.class);
16,760
static void computeTBNNormalized(Vec3f pa, Vec3f pb, Vec3f pc, Vec2f ta, Vec2f tb, Vec2f tc, Vec3f[] norm) {<NEW_LINE>MeshTempState instance = MeshTempState.getInstance();<NEW_LINE>Vec3f n = instance.vec3f1;<NEW_LINE>Vec3f v1 = instance.vec3f2;<NEW_LINE>Vec3f v2 = instance.vec3f3;<NEW_LINE>// compute Normal |(v1-v0)X(v...
-n.z / n.x;
474,413
// -------------------------------------- //<NEW_LINE>// Managing the life-cycle of the channel //<NEW_LINE>// -------------------------------------- //<NEW_LINE>@Override<NEW_LINE>public void channelConnected(final ChannelHandlerContext ctx, final ChannelStateEvent e) {<NEW_LINE>final Channel chan = e.getChannel();<NE...
this, chan.getRemoteAddress());
621,657
public static void injectThroughMethod(Object requestObject, Method method, Object parameterValue, Message inMessage) {<NEW_LINE>try {<NEW_LINE>Method methodToInvoke = checkProxy(method, requestObject);<NEW_LINE>methodToInvoke.invoke(requestObject, new Object[] { parameterValue });<NEW_LINE>} catch (IllegalAccessExcept...
"METHOD_INJECTION_FAILURE", method.getName());
1,083,260
public void populateItem(final Item<RepositoryCommit> commitItem) {<NEW_LINE>final RepositoryCommit commit = commitItem.getModelObject();<NEW_LINE>// author gravatar<NEW_LINE>commitItem.add(new AvatarImage("commitAuthor", commit.getAuthorIdent(), null, 16, false));<NEW_LINE>// merge icon<NEW_LINE>if (commit.getParentCo...
trimString(shortMessage, Constants.LEN_SHORTLOG);
538,428
protected TokenStreamComponents createComponents(String fieldName) {<NEW_LINE>Tokenizer source = new FeatureVectorsTokenizer();<NEW_LINE>TokenFilter truncate = new LexicalLshTruncateTokenFilter(source, decimals);<NEW_LINE>TokenFilter featurePos = new LexicalLshFeaturePositionTokenFilter(truncate);<NEW_LINE>TokenStream ...
ShingleFilter(featurePos, min, max);
788,251
private static int parseRectangle(SvgContainer container, char[] ca, int start, int end) {<NEW_LINE>end = findClosingTag(ca, start, end);<NEW_LINE>if (end != -1) {<NEW_LINE>int endAttrs = closer(ca, start, end);<NEW_LINE>SvgShape element = new SvgShape(container, getAttrValue(ca, start, endAttrs, ATTR_ID));<NEW_LINE>el...
, start, endAttrs, ATTR_HEIGHT));
1,851,817
public void destroySubcontext(String name) throws OperationNotSupportedException, EntityHasDescendantsException, EntityNotFoundException, WIMSystemException {<NEW_LINE>TimedDirContext ctx = getDirContext();<NEW_LINE>checkWritePermission(ctx);<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>ctx.destroySubcontext(new LdapName(nam...
WIMMessageKey.LDAP_ENTRY_NOT_FOUND, msg, e);
145,133
private void persistNow(@Nullable Runnable completeHandler, boolean force) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>// The serialisation is done on the user thread to avoid threading issue with potential mutations of the<NEW_LINE>// persistable object. Keeping it on the user thread we are in a synchronize model.<NEW_L...
long ts = System.currentTimeMillis();
1,066,483
public void writeTo(final Object o, final Class<?> type, final Type genericType, final Annotation[] annotations, final MediaType mediaType, final MultivaluedMap<String, Object> httpHeaders, final OutputStream os) throws IOException {<NEW_LINE>final PropertyFiltering annotation = findPropertyFiltering(annotations);<NEW_...
Context context = timer.time();
623,579
public static void attestOpenEnclaveAsync1() {<NEW_LINE>BinaryData runtimeData = BinaryData.<MASK><NEW_LINE>BinaryData inittimeData = null;<NEW_LINE>BinaryData openEnclaveReport = BinaryData.fromBytes(SampleCollateral.getOpenEnclaveReport());<NEW_LINE>BinaryData sgxQuote = BinaryData.fromBytes(SampleCollateral.getSgxEn...
fromBytes(SampleCollateral.getRunTimeData());
1,219,141
public static Key create(Snippet snip) {<NEW_LINE>switch(snip.kind()) {<NEW_LINE>case IMPORT:<NEW_LINE>ImportSnippet <MASK><NEW_LINE>return new Key("I_" + imp.fullname() + (imp.isStatic() ? "*" : ""));<NEW_LINE>case TYPE_DECL:<NEW_LINE>TypeDeclSnippet tdecl = ((TypeDeclSnippet) snip);<NEW_LINE>return new Key("T_" + tde...
imp = ((ImportSnippet) snip);
1,316,046
public static DescribeDevicesResponse unmarshall(DescribeDevicesResponse describeDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDevicesResponse.setRequestId(_ctx.stringValue("DescribeDevicesResponse.RequestId"));<NEW_LINE>describeDevicesResponse.setMessage(_ctx.stringValue("DescribeDevicesResponse.Messag...
= new ArrayList<Record>();
1,521,882
// Example usage of how to compute the diameter of a graph<NEW_LINE>public static void main(String[] args) {<NEW_LINE>Map<Integer, List<Edge>> graph = createGraph(5);<NEW_LINE>addUndirectedEdge(graph, 4, 2);<NEW_LINE>addUndirectedEdge(graph, 2, 0);<NEW_LINE>addUndirectedEdge(graph, 0, 1);<NEW_LINE>addUndirectedEdge(gra...
addUndirectedEdge(graph, 0, 5);
1,297,427
public com.amazonaws.services.simplesystemsmanagement.model.UnsupportedCalendarException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.UnsupportedCalendarException unsupportedCalendarException = new com.amazonaws.services.simplesy...
int originalDepth = context.getCurrentDepth();