idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
38,782
public void init() {<NEW_LINE>if (initialized.compareAndSet(false, true)) {<NEW_LINE>if (StringUtils.isBlank(dbType)) {<NEW_LINE>throw new IllegalArgumentException("dbType must not be null or empty");<NEW_LINE>}<NEW_LINE>String upperDbType = dbType.toUpperCase();<NEW_LINE>if (!DBType.supportedDbTypes.containsKey(upperD...
jdbcUrl = DataSourceUtils.getJdbcUrl(dataSource);
1,450,434
public static ByteBuffer toStream(final WriteableWALRecord walRecord) {<NEW_LINE>final int contentSize = walRecord.serializedSize() + METADATA_SIZE;<NEW_LINE>final ByteBuffer content = ByteBuffer.allocate(contentSize).order(ByteOrder.nativeOrder());<NEW_LINE>final int recordId = walRecord.getId();<NEW_LINE>content.putS...
compressedContent.putInt(ORIGINAL_CONTENT_SIZE_OFFSET, contentSize);
1,455,683
public Object visit(Object context, IfStatement statement, boolean strict) {<NEW_LINE>LabelNode elseBranch = new LabelNode();<NEW_LINE>LabelNode noElseBranch = new LabelNode();<NEW_LINE>LabelNode end = new LabelNode();<NEW_LINE>statement.getTest().accept(context, this, strict);<NEW_LINE>// value<NEW_LINE>append(jsGetVa...
, sig(boolean.class));
1,398,672
final BatchEnableStandardsResult executeBatchEnableStandards(BatchEnableStandardsRequest batchEnableStandardsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchEnableStandardsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
455,547
public static void main(String[] args) throws Exception {<NEW_LINE>try (ZContext ctx = new ZContext()) {<NEW_LINE>Socket worker = ctx.createSocket(SocketType.REQ);<NEW_LINE>// Set random identity to make tracing easier<NEW_LINE>Random rand = new Random(System.nanoTime());<NEW_LINE>String identity = String.format("%04X-...
frame.send(worker, 0);
795,795
static boolean update(boolean addAllAvailable, Set<String> initialVehicleIds, VehicleFleetManager fleetManager, JobInsertionCostsCalculator insertionCostsCalculator, TreeSet<VersionedInsertionData> insertionDataSet, int updateRound, Job unassignedJob, Collection<VehicleRoute> routes) {<NEW_LINE>for (VehicleRoute route ...
double depTime = v.getEarliestDeparture();
1,801,227
public WebIntentBuilder build() {<NEW_LINE>if (webpage == null) {<NEW_LINE>throw new RuntimeException("URL cannot be null.");<NEW_LINE>}<NEW_LINE>if (forceExternal || shouldAlwaysForceExternal(webpage) || settings.browserSelection.equals("external")) {<NEW_LINE>// request the external browser<NEW_LINE>intent = new Inte...
.MAX_VALUE), shareIntent, 0);
1,413,200
private static MessageValues extractHeaders(byte[] payload, boolean copyRequestHeaders, MessageHeaders requestHeaders) throws Exception {<NEW_LINE>ByteBuffer <MASK><NEW_LINE>int headerCount = byteBuffer.get() & 0xff;<NEW_LINE>if (headerCount == 0xff) {<NEW_LINE>headerCount = byteBuffer.get() & 0xff;<NEW_LINE>Map<String...
byteBuffer = ByteBuffer.wrap(payload);
1,034,316
private void copy(VMInfo vm) {<NEW_LINE>List<JavaResource> libs = new ArrayList<>();<NEW_LINE>String path = vm.getProperties().get("java.class.path");<NEW_LINE>String javaHome = vm.getProperties().get("java.home");<NEW_LINE>String localDir = vm.getProperties().get("user.dir");<NEW_LINE>String separator = vm.getProperti...
filePath = Paths.get(item);
214,175
private void exportToC(GTree gTree, DataTypeManager programDataTypeMgr) {<NEW_LINE>List<Class<? extends AnnotationHandler>> classes = ClassSearcher.getClasses(AnnotationHandler.class);<NEW_LINE>List<AnnotationHandler> list = new ArrayList<>();<NEW_LINE>Class<?>[] constructorArgumentTypes = {};<NEW_LINE>for (Class<? ext...
> entrySet = managersToDataTypesMap.entrySet();
1,637,778
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int width = 0;<NEW_LINE>int height = 0;<NEW_LINE>int widthMode = MeasureSpec.getMode(widthMeasureSpec);<NEW_LINE>int <MASK><NEW_LINE>int widthAllowed = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int heightAllowed = MeasureSpec.getSize...
heightMode = MeasureSpec.getMode(heightMeasureSpec);
859,986
private static long parsePositiveLongAscii(final CharSequence cs, final int index, final int length, final int startIndex, final int end) {<NEW_LINE>int i = startIndex;<NEW_LINE>long tally = 0, octet;<NEW_LINE>while ((end - i) >= 8 && isEightDigitAsciiEncodedNumber(octet = readEightBytesLittleEndian(cs, i))) {<NEW_LINE...
10) + (digit - 0x30);
424,696
private void defaultHandlers() {<NEW_LINE>handlerMap.put(FridaInterruptEvent.class, this::processInterrupt);<NEW_LINE>handlerMap.put(FridaThreadCreatedEvent.class, this::processThreadCreated);<NEW_LINE>handlerMap.put(FridaThreadReplacedEvent.class, this::processThreadReplaced);<NEW_LINE>handlerMap.put(FridaThreadExited...
FridaRunningEvent.class, this::processDefault);
929,090
public static Geometry gridPoints(Geometry g, int nCells) {<NEW_LINE>Envelope env = FunctionsUtil.getEnvelopeOrDefault(g);<NEW_LINE>GeometryFactory geomFact = FunctionsUtil.getFactoryOrDefault(g);<NEW_LINE>int nCellsOnSideY = (int) Math.sqrt(nCells);<NEW_LINE>int nCellsOnSideX = nCells / nCellsOnSideY;<NEW_LINE>double ...
() / (nCellsOnSideY - 1);
166,132
public void marshall(EventIntegrationAssociation eventIntegrationAssociation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (eventIntegrationAssociation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(eve...
eventIntegrationAssociation.getClientId(), CLIENTID_BINDING);
1,062,334
public static String parseIpAddress(GeneralName generalName) {<NEW_LINE>byte[] ipAddressBytes = ((ASN1OctetString) generalName.<MASK><NEW_LINE>String ipAddressString = "";<NEW_LINE>if (ipAddressBytes.length == 4 || ipAddressBytes.length == 16) {<NEW_LINE>try {<NEW_LINE>ipAddressString = InetAddress.getByAddress(ipAddre...
getName()).getOctets();
468,595
public static ListAuthenticationLogsResponse unmarshall(ListAuthenticationLogsResponse listAuthenticationLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAuthenticationLogsResponse.setRequestId(_ctx.stringValue("ListAuthenticationLogsResponse.RequestId"));<NEW_LINE>listAuthenticationLogsResponse.setTotalCount(_ct...
("ListAuthenticationLogsResponse.AuthenticationLogContent[" + i + "].TenantId"));
25,930
public TriggerConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TriggerConfig triggerConfig = new TriggerConfig();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu...
int originalDepth = context.getCurrentDepth();
1,606,859
public void onClose(CachedOutputStream cos) {<NEW_LINE>LoggingMessage buffer = setupBuffer(message);<NEW_LINE>String ct = (String) message.get(Message.CONTENT_TYPE);<NEW_LINE>if (!isShowBinaryContent() && isBinaryContent(ct)) {<NEW_LINE>buffer.getMessage().append<MASK><NEW_LINE>log(logger, formatLoggingMessage(buffer))...
(BINARY_CONTENT_MESSAGE).append('\n');
406,100
private Map<String, Object> convertProperties(String type, Map<String, Object> properties, String keyPrefix) {<NEW_LINE>return properties.entrySet().stream().flatMap(e -> {<NEW_LINE>if (e.getValue() instanceof Map) {<NEW_LINE>Map<String, Object> map = (Map<String, Object>) e.getValue();<NEW_LINE>String classType = getC...
e.getKey(), coll);
1,385,309
public void doubleClick(DoubleClickEvent event) {<NEW_LINE>StructuredSelection sel = <MASK><NEW_LINE>Object o = sel.getFirstElement();<NEW_LINE>if (o instanceof DependencyElement) {<NEW_LINE>DependencyElement de = (DependencyElement) o;<NEW_LINE>switch(de.type) {<NEW_LINE>case SERVICE:<NEW_LINE>new OpenXLogProfileJob(X...
(StructuredSelection) event.getSelection();
921,622
protected List<String> scripts() {<NEW_LINE>List<String> bsUuids = CollectionUtils.transformToList(template.getBackupStorageRefs(), new Function<String, ImageBackupStorageRefVO>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String call(ImageBackupStorageRefVO arg) {<NEW_LINE>return ImageStatus.Deleted.equals(arg.get...
, template.getName()));
41,581
private String buildCommand() throws Exception {<NEW_LINE>// generate scripts<NEW_LINE>String fileName = String.format("%s/%s_node.%s", taskExecutionContext.getExecutePath(), taskExecutionContext.getTaskAppId(), OSUtils.isWindows() ? "bat" : "sh");<NEW_LINE>File file = new File(fileName);<NEW_LINE>Path path = file.toPa...
Files.createFile(path, attr);
962,211
final UpdateApplicationResult executeUpdateApplication(UpdateApplicationRequest updateApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,448,337
// entry of processing swap table<NEW_LINE>private void processSwap(Database db, OlapTable origTable, List<AlterClause> alterClauses) throws UserException {<NEW_LINE>if (!(alterClauses.get(0) instanceof SwapTableClause)) {<NEW_LINE>throw new DdlException("swap operation only support table");<NEW_LINE>}<NEW_LINE>// must...
checkState(db.isWriteLockHeldByCurrentThread());
619,582
protected ShardStats shardOperation(IndicesStatsRequest request, ShardRouting shardRouting) {<NEW_LINE>IndexService indexService = indicesService.indexServiceSafe(shardRouting.shardId().getIndex());<NEW_LINE>IndexShard indexShard = indexService.getShard(shardRouting.shardId().id());<NEW_LINE>// if we don't have the rou...
ShardNotFoundException(indexShard.shardId());
1,073,248
final UpdateInferenceSchedulerResult executeUpdateInferenceScheduler(UpdateInferenceSchedulerRequest updateInferenceSchedulerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateInferenceSchedulerRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
476,094
private void processAlertRecord(Record record, Connection connection, DTLSContext epochContext) {<NEW_LINE>AlertMessage alert = <MASK><NEW_LINE>Handshaker handshaker = connection.getOngoingHandshake();<NEW_LINE>HandshakeException error = null;<NEW_LINE>LOGGER.trace("Processing {} ALERT from [{}]: {}", alert.getLevel(),...
(AlertMessage) record.getFragment();
1,107,813
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("mae" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("m...
+ mm.getMessage("function.paramTypeError"));
1,235,249
private String issueReceipt() {<NEW_LINE>MInOut inOut = new MInOut(getCtx(), m_M_InOut_ID, null);<NEW_LINE>if (inOut.isSOTrx() || !inOut.isProcessed() || !(MInOut.DOCSTATUS_Completed.equals(inOut.getDocStatus()) || MInOut.DOCSTATUS_Closed.equals(inOut.getDocStatus())))<NEW_LINE>throw new IllegalArgumentException("Recei...
setDescription(inOutLine.getDescription());
1,345,897
private boolean handleJid(Invite invite) {<NEW_LINE>List<Contact> contacts = xmppConnectionService.findContacts(invite.getJid(), invite.account);<NEW_LINE>if (invite.isAction(XmppUri.ACTION_JOIN)) {<NEW_LINE>Conversation muc = xmppConnectionService.findFirstMuc(invite.getJid());<NEW_LINE>if (muc != null && !invite.forc...
asBareJid().toEscapedString());
565,671
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("to" <MASK><NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object o = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (o instanceof Number) {<NEW_LINE>int end = ((N...
+ mm.getMessage("function.missingParam"));
314,364
public boolean deployCertificate(final Host host, final Certificate certificate, final Boolean reconnect, final Map<String, String> sshAccessDetails) throws AgentUnavailableException, OperationTimedoutException {<NEW_LINE>final SetupCertificateCommand cmd = new SetupCertificateCommand(certificate);<NEW_LINE>if (sshAcce...
, host.getPublicIpAddress()));
738,938
public AmazonServiceException handle(HttpResponse errorResponse) throws IOException {<NEW_LINE>final InputStream is = errorResponse.getContent();<NEW_LINE>if (is == null) {<NEW_LINE>return newAmazonS3Exception(errorResponse.getStatusText(), errorResponse);<NEW_LINE>}<NEW_LINE>// Try to read the error response<NEW_LINE>...
.setErrorType(errorTypeOf(statusCode));
117,360
public void testSupplyAsyncWithPreContextualizedAction() throws Exception {<NEW_LINE>ManagedExecutor executor = ManagedExecutor.builder().propagated(TestContextTypes.CITY, TestContextTypes.STATE).build();<NEW_LINE>CurrentLocation.setLocation("Lake City", "Minnesota");<NEW_LINE>try {<NEW_LINE>Supplier<String> action = s...
"Wisconsin", CurrentLocation.getState());
532,244
private IfcModel realCheckout(Project project, Revision revision, DatabaseSession databaseSession, User user) throws BimserverLockConflictException, BimserverDatabaseException, UserException {<NEW_LINE>PluginConfiguration serializerPluginConfiguration = getDatabaseSession().get(StorePackage.eINSTANCE.getPluginConfigura...
), Deep.YES, highestStopId);
1,441,020
public ReadableEntityList<ReadableTaxRate> taxRates(MerchantStore store, Language language) {<NEW_LINE>Validate.notNull(store, "MerchantStore cannot be null");<NEW_LINE>Validate.notNull(store.getCode(), "MerchantStore code cannot be null");<NEW_LINE>try {<NEW_LINE>List<TaxRate> rates = taxRateService.listByStore(store,...
= new ReadableEntityList<ReadableTaxRate>();
735,896
public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {<NEW_LINE>final ImmutableMap.Builder<String, ImmutableMap<String, String>> servicesMapBuilder = ImmutableMap.builder();<NEW_LINE>if (jsonRpcConfiguration.isEnabled()) {<NEW_LINE>servicesMapBuilder.put("jsonrpc", createServiceDetailsMap(jsonRpc...
).get())));
1,732,011
public boolean unblock() {<NEW_LINE>final AtomicBuffer buffer = this.buffer;<NEW_LINE>final long headPosition = buffer.getLongVolatile(headPositionIndex);<NEW_LINE>final long tailPosition = buffer.getLongVolatile(tailPositionIndex);<NEW_LINE>if (headPosition == tailPosition) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE...
(int) (headPosition & mask);
132,914
protected void doExecute(ExecutionContext context) {<NEW_LINE>CommandConsole console = context.getCommandConsole();<NEW_LINE>boolean toSet = context.optionExists(INSTALL_LOCATION_TO_COMPARE_TO_OPTION);<NEW_LINE>boolean aparSet = context.optionExists(APAR_TO_COMPARE_OPTION);<NEW_LINE>if (!toSet && !aparSet) {<NEW_LINE>c...
("compare.invalid.ifixes.badversion", installedIFixes.inapplicableIFixes));
496,468
public static boolean fiscalCodeMatchesWithName(String firstName, String lastName, String fiscalCode) {<NEW_LINE>if (validateFiscalCode(fiscalCode)) {<NEW_LINE>if (length(fiscalCode) == COMPANY_TAX_ID_LENGTH) {<NEW_LINE>// if the fiscal code belongs to a company then there's no point in checking the name in it<NEW_LINE...
.consonants.size()));
287,305
private TreeNode createTraversingTree(String issuer) {<NEW_LINE>Node node = nodes.get(issuer);<NEW_LINE>List<List<Node>> paths = new ArrayList<>();<NEW_LINE>if (node.getEdges().isEmpty()) {<NEW_LINE>List<Node> resolved = new ArrayList<>();<NEW_LINE>resolved.add(node);<NEW_LINE>traverse(node, resolved, paths);<NEW_LINE>...
spath = new ArrayList<>();
637,197
final DeleteSqlInjectionMatchSetResult executeDeleteSqlInjectionMatchSet(DeleteSqlInjectionMatchSetRequest deleteSqlInjectionMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSqlInjectionMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
352,313
private FileInfo concreteFileInfo(String person, Document document, StorageMapping storage, String name, String site) throws Exception {<NEW_LINE>String fileName = UUID.randomUUID().toString();<NEW_LINE>String extension = FilenameUtils.getExtension(name);<NEW_LINE>FileInfo attachment = new FileInfo();<NEW_LINE>if (Stri...
.setCreateTime(new Date());
1,781,166
public synchronized EntityConfigSaveResult writeEntityWithLock(EntityConfigUpdateCommand updatingCommand, GoConfigHolder configHolder, Username currentUser) {<NEW_LINE>CruiseConfig modifiedConfig = cloner.deepClone(configHolder.configForEdit);<NEW_LINE>try {<NEW_LINE>updatingCommand.update(modifiedConfig);<NEW_LINE>} c...
> lastValidPartials = cachedGoPartials.lastValidPartials();
372,678
private static ST_boxf makeregularend_w_(final ST_boxf b, int side, double y) {<NEW_LINE>ENTERING("3wwhczhpkcnflwr1l9wcga7tq", "makeregularend");<NEW_LINE>try {<NEW_LINE>final ST_boxf newb = new ST_boxf();<NEW_LINE>switch(side) {<NEW_LINE>case (1 << 0):<NEW_LINE>newb.___(boxfof(b.LL.x, y, b.UR.x<MASK><NEW_LINE>break;<N...
, b.LL.y));
101,233
private void writeRow(Writer out, String type, String link, JCLStatus status, String name, Integer percent, Integer partialPercent) throws IOException {<NEW_LINE>out.write("<tr class=\"");<NEW_LINE>switch(status) {<NEW_LINE>case FOUND:<NEW_LINE>out.write("full");<NEW_LINE>break;<NEW_LINE>case MISSING:<NEW_LINE>out.writ...
write("<a href=\"" + link + "\">");
1,238,203
private int calcPopupHeight(List l) {<NEW_LINE>int y = getAbsoluteY();<NEW_LINE>int topMargin;<NEW_LINE>int popupHeight;<NEW_LINE>int items = l.getModel().getSize();<NEW_LINE>final Form f = getComponentForm();<NEW_LINE>if (f == null) {<NEW_LINE>// for some reason this happens in the GUI builder<NEW_LINE>return 10;<NEW_...
.max(0, topMargin));
893,494
public ExecuteBatchResult prepareAndExecuteBatch(final StatementHandle h, List<String> sqlCommands) throws NoSuchStatementException {<NEW_LINE>final CalciteConnectionImpl calciteConnection = getConnection();<NEW_LINE>final CalciteServerStatement statement = calciteConnection.server.getStatement(h);<NEW_LINE>final List<...
1L, -1, callback));
852,974
private static void buildResourceGraph(Project project, Message node, ResourceNode parentNode, Collection<String> visitedNodes) throws CompileExceptionError {<NEW_LINE>List<FieldDescriptor> fields = node.getDescriptorForType().getFields();<NEW_LINE>for (FieldDescriptor fieldDescriptor : fields) {<NEW_LINE>FieldOptions ...
= DdfExtensions.resource.getDescriptor();
342,375
public final void insertRangeAtAsync(int position, List<RenderInfo> renderInfos) {<NEW_LINE>assertSingleThreadForChangeSet();<NEW_LINE>assertNoInsertOperationIfCircular();<NEW_LINE>if (SectionsDebug.ENABLED) {<NEW_LINE>final String[] names = new String[renderInfos.size()];<NEW_LINE>for (int i = 0; i < renderInfos.size(...
position + i, operation.mHolder);
1,790,222
public void perform(UTTimerEvent event) {<NEW_LINE>if (suspended) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long now = SystemTime.getMonotonousTime();<NEW_LINE>try {<NEW_LINE>server_mon.enter();<NEW_LINE>Iterator<BindingData> it = rendezvous_bindings.values().iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>BindingDat...
DHTTransportContact ct = DHTNATPuncherImpl.this.current_target;
1,012,877
public void mergeDocument(final long scopeKey, final long processDefinitionKey, final long processInstanceKey, final DirectBuffer bpmnProcessId, final DirectBuffer document) {<NEW_LINE>indexedDocument.index(document);<NEW_LINE>if (indexedDocument.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long currentScope = sco...
currentScope, entry.getName());
1,199,796
final void cmdRemoveExpiring(final long lockId, final PersistentTransaction transaction) throws ProtocolException, TransactionException, SevereMessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "cmdRemoveExpiring", new Object[] { "Item Link: ...
lockId), "Transaction: " + transaction });
859,111
public boolean addCassandraHost(CassandraHost cassandraHost) {<NEW_LINE>Properties props = KunderaMetadataManager.getPersistenceUnitMetadata(kunderaMetadata, <MASK><NEW_LINE>String keyspace = null;<NEW_LINE>if (externalProperties != null) {<NEW_LINE>keyspace = (String) externalProperties.get(PersistenceProperties.KUNDE...
getPersistenceUnit()).getProperties();
56,748
public Content update(@NonNull final Content content, @Nonnull String url, boolean updateImages) {<NEW_LINE>content.setSite(TSUMINO);<NEW_LINE>String theUrl = galleryUrl.isEmpty() ? url : galleryUrl;<NEW_LINE>if (theUrl.isEmpty())<NEW_LINE>return new Content().setStatus(StatusContent.IGNORED);<NEW_LINE>content.setUrl(t...
SERIE, series, false, TSUMINO);
500,484
public List<Long> doInTransaction(final TransactionStatus status) {<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.debug("Update db status for job-" + jobId);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>job.setStatus(jobStatus);<NEW_LINE>job.setResultCode(resultCode);<NEW_LINE>if (resultObject != null) {<NEW_LINE>...
job.setCompleteMsid(getMsid());
783,010
public static ListSSLCertResponse unmarshall(ListSSLCertResponse listSSLCertResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSSLCertResponse.setRequestId(_ctx.stringValue("ListSSLCertResponse.RequestId"));<NEW_LINE>listSSLCertResponse.setHttpStatusCode(_ctx.integerValue("ListSSLCertResponse.HttpStatusCode"));<NEW_LIN...
("ListSSLCertResponse.Data[" + i + "].Algorithm"));
1,402,328
static final // In C: again-two-registers.c hhb_get_composite_estimate L1489<NEW_LINE>double hllCompositeEstimate(final AbstractHllArray absHllArr) {<NEW_LINE>final int lgConfigK = absHllArr.getLgConfigK();<NEW_LINE>final double rawEst = getHllRawEstimate(lgConfigK, absHllArr.getKxQ0() + absHllArr.getKxQ1());<NEW_LINE>...
CompositeInterpolationXTable.yStrides[lgConfigK - MIN_LOG_K];
751,485
public ConfigApplicationContainer load(ConfigContainer container, DeploymentContext deploymentContext) {<NEW_LINE>// Perform annotation scanning to see if CDI extension is required here<NEW_LINE>// This is performed here so that the ApplicationContainer executes regardless of CDI extension state<NEW_LINE>final Types ty...
WeldDeployer.SNIFFER_EXTENSIONS, Collection.class);
114,229
final DescribeLoadBalancerAttributesResult executeDescribeLoadBalancerAttributes(DescribeLoadBalancerAttributesRequest describeLoadBalancerAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoadBalancerAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
465,769
public CreateMapResult createMap(CreateMapRequest createMapRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createMapRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMet...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1,334,117
private void processCodeItem(DexHeader header, ClassDefItem item, EncodedMethod method, MethodIDItem methodID) throws DuplicateNameException, IOException, Exception {<NEW_LINE>if (method.getCodeOffset() > 0) {<NEW_LINE>Address codeAddress = baseAddress.add(DexUtil.adjustOffset(method.getCodeOffset(), header));<NEW_LINE...
.getOutgoingSize()) + "\n");
1,408,388
public static DescribeUserInfoInChannelResponse unmarshall(DescribeUserInfoInChannelResponse describeUserInfoInChannelResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUserInfoInChannelResponse.setRequestId(_ctx.stringValue("DescribeUserInfoInChannelResponse.RequestId"));<NEW_LINE>describeUserInfoInChannelResponse...
("DescribeUserInfoInChannelResponse.Property[" + i + "].Role"));
136,656
public Object interpret(ExecutionContext context, boolean debug) {<NEW_LINE>Object r = getRootExpr().interpret(context, debug);<NEW_LINE>Object lref = getRootExpr().getLhs().interpret(context, debug);<NEW_LINE>if (lref instanceof Reference) {<NEW_LINE>if (((Reference) lref).isStrictReference()) {<NEW_LINE>if (((Referen...
).putValue(context, r);
706,653
public static BigDecimal convert(int C_UOM_From_ID, int C_UOM_To_ID, BigDecimal qty, boolean StdPrecision) {<NEW_LINE>// Nothing to do<NEW_LINE>if (qty == null || qty.compareTo(Env.ZERO) == 0 || C_UOM_From_ID == C_UOM_To_ID)<NEW_LINE>return qty;<NEW_LINE>//<NEW_LINE>BigDecimal retValue = null;<NEW_LINE>int precision = ...
+ " INNER JOIN C_UOM uomTo ON (c.C_UOM_TO_ID=uomTo.C_UOM_ID) " + "WHERE c.IsActive='Y' AND c.C_UOM_ID=? AND c.C_UOM_TO_ID=? " + " AND c.M_Product_ID IS NULL" + " ORDER BY c.AD_Client_ID DESC, c.AD_Org_ID DESC";
788,964
static ImmutableSortedMap<String, SourcePath> convertToFlatCxxHeaders(BuildTarget buildTarget, Path headerPathPrefix, Function<SourcePath, Path> sourcePathResolver, Set<SourcePath> headerPaths) {<NEW_LINE>Set<String> includeToFile = new HashSet<String>(headerPaths.size());<NEW_LINE>ImmutableSortedMap.Builder<String, So...
apply(headerPath).getFileName();
116,818
public V put(K key, V value) {<NEW_LINE>checkState(!closed, destroyedMessage);<NEW_LINE>checkNotNull(key, ERROR_NULL_KEY);<NEW_LINE>checkNotNull(value, ERROR_NULL_VALUE);<NEW_LINE>String encodedKey = encodeKey(key);<NEW_LINE>byte[] encodedValue = encodeValue(value);<NEW_LINE>MapValue newValue = new MapValue(encodedValu...
oldValue = new AtomicReference<>();
1,820,808
private static Map<String, Type> collectTypeVariableLookup(Type type) {<NEW_LINE>HashMap<String, Type> vars = new HashMap<String, Type>();<NEW_LINE>if (null == type) {<NEW_LINE>return vars;<NEW_LINE>}<NEW_LINE>if (type instanceof ParameterizedType) {<NEW_LINE>ParameterizedType pType = (ParameterizedType) type;<NEW_LINE...
(clazz.getGenericSuperclass()));
1,084,234
public boolean isValid() {<NEW_LINE>switch(htmlTag) {<NEW_LINE>case A:<NEW_LINE>return (hasAttr(HtmlAttr.NAME) || (hasAttr(HtmlAttr.HREF) && hasContent()));<NEW_LINE>case BR:<NEW_LINE>return (!hasContent() && (!hasAttrs() || hasAttr(HtmlAttr.CLEAR)));<NEW_LINE>case FRAME:<NEW_LINE>return (hasAttr(HtmlAttr.SRC) && !hasC...
TYPE) && hasContent()));
1,477,208
public static ListVehicleDetailsResponse unmarshall(ListVehicleDetailsResponse listVehicleDetailsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listVehicleDetailsResponse.setRequestId(_ctx.stringValue("ListVehicleDetailsResponse.RequestId"));<NEW_LINE>listVehicleDetailsResponse.setCode(_ctx.stringValue("ListVehicleDeta...
("ListVehicleDetailsResponse.Data[" + i + "].VehicleClass"));
400,978
public void propagate(InstanceState state) {<NEW_LINE>final var bits = state.getAttributeValue(ATTR_WIDTH);<NEW_LINE>int dx;<NEW_LINE>int dy;<NEW_LINE>State s = (State) state.getData();<NEW_LINE>if (s == null) {<NEW_LINE>dx = 0;<NEW_LINE>dy = 0;<NEW_LINE>} else {<NEW_LINE>dx = s.xPos;<NEW_LINE>dy = s.yPos;<NEW_LINE>}<N...
14) * steps / 29 + 1;
1,623,325
public static String convertConsumerToUrl(ConsumerConfig consumerConfig) {<NEW_LINE>StringBuilder sb = new StringBuilder(200);<NEW_LINE><MASK><NEW_LINE>// noinspection unchecked<NEW_LINE>sb.append(consumerConfig.getProtocol()).append("://").append(host).append("?version=1.0").append(getKeyPairs(RpcConstants.CONFIG_KEY_...
String host = SystemInfo.getLocalHost();
267,945
public MappeableContainer or(MappeableRunContainer x) {<NEW_LINE>if (isFull() || x.isFull()) {<NEW_LINE>// cheap case that can save a lot of computation<NEW_LINE>return full();<NEW_LINE>}<NEW_LINE>// we really ought to optimize the rest of the code for the frequent case where there is a<NEW_LINE>// single run<NEW_LINE>...
rlepos), getLength(rlepos));
1,183,751
public JPanel buildOverviewPanel(WsdlProject project) {<NEW_LINE>JPropertiesTable<WsdlProject> table = new JPropertiesTable<WsdlProject>("Project Properties", project);<NEW_LINE>if (project.isOpen()) {<NEW_LINE>table.addProperty("Name", "name", true);<NEW_LINE>table.addProperty("Description", "description", true);<NEW_...
"defaultScriptLanguage", SoapUIScriptEngineRegistry.getAvailableEngineIds());
401,471
public static String formatDate8(long millis, TimeZone timeZone) {<NEW_LINE>Calendar cale = timeZone == null ? Calendar.getInstance() : Calendar.getInstance(timeZone);<NEW_LINE>cale.setTimeInMillis(millis);<NEW_LINE>int year = cale.get(Calendar.YEAR);<NEW_LINE>int month = cale.get(Calendar.MONTH) + 1;<NEW_LINE>int dayO...
) (dayOfMonth / 10 + '0');
538,559
byte[] toBytes() {<NEW_LINE>// create a byte array to hold the headerVersion + userMetadataVersion + userMetadataSize + blobRecordVersion +<NEW_LINE>// blobType + blobRecordSize + storeKey.<NEW_LINE>byte[] bytes = new byte[Version_Field_Size_In_Bytes + Version_Field_Size_In_Bytes + Integer.SIZE / 8 + Version_Field_Size...
8 + storeKey.sizeInBytes()];
1,752,205
public // implement RelOptRule<NEW_LINE>void onMatch(RelOptRuleCall call) {<NEW_LINE>Project origProj;<NEW_LINE>Filter filter;<NEW_LINE>if (call.rels.length >= 2) {<NEW_LINE>origProj = call.rel(0);<NEW_LINE>filter = call.rel(1);<NEW_LINE>} else {<NEW_LINE>origProj = null;<NEW_LINE>filter = call.rel(0);<NEW_LINE>}<NEW_L...
topProject = pushProjector.convertProject(null);
1,794,175
protected PreparedStatement prepareStatement(String sql, Object[] params) throws SQLException {<NEW_LINE>PreparedStatement statement = connection.prepareStatement(sql);<NEW_LINE>// Spanner requires specific types for NULL according to the column.<NEW_LINE>// This is unlike other databases which have a single "null type...
[i].toString());
1,509,877
public PCollection<KV<K, V>> expand(PBegin input) {<NEW_LINE>validateTransform();<NEW_LINE>// Get the key and value coders based on the key and value classes.<NEW_LINE>CoderRegistry coderRegistry = input.getPipeline().getCoderRegistry();<NEW_LINE>Coder<K> keyCoder = getKeyCoder();<NEW_LINE>if (keyCoder == null) {<NEW_L...
getDefaultCoder(getKeyTypeDescriptor(), coderRegistry);
525,813
private HeadInter selectBestHead(SlurInter slur, AbstractChordInter chord, Point2D end, Point2D target, Point2D bisUnit, Area area) {<NEW_LINE>final boolean horizontal = isHorizontal(slur);<NEW_LINE>final boolean above = slur.isAbove();<NEW_LINE>double bestDist = Double.MAX_VALUE;<NEW_LINE>HeadInter bestHead = null;<NE...
dist = center.distanceSq(target);
642,694
public static GetOutbounNumListResponse unmarshall(GetOutbounNumListResponse getOutbounNumListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getOutbounNumListResponse.setRequestId(_ctx.stringValue("GetOutbounNumListResponse.RequestId"));<NEW_LINE>getOutbounNumListResponse.setMessage(_ctx.stringValue("GetOutbounNumListR...
("GetOutbounNumListResponse.Data.Num[" + i + "].Description"));
158,324
public int removeDataSourceMetadataOlderThan(long timestamp, @NotNull Set<String> excludeDatasources) {<NEW_LINE>DateTime dateTime = DateTimes.utc(timestamp);<NEW_LINE>List<String> datasourcesToDelete = connector.getDBI().withHandle(handle -> handle.createQuery(StringUtils.format("SELECT dataSource FROM %1$s WHERE crea...
of(result).sum();
75,482
public ThreadLevelInfo display(ProblemReport report) {<NEW_LINE>Machine machine = report.getMachines().<MASK><NEW_LINE>if (machine == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Collection<Entity> entities = machine.getEntities().values();<NEW_LINE>for (Entity temp : entities) {<NEW_LINE>Map<String, JavaThread> t...
get(m_model.getIpAddress());
910,231
public static void resolve(ICompilationUnit[] compilationUnits, String[] bindingKeys, ASTRequestor requestor, int apiLevel, Map options, IJavaProject javaProject, WorkingCopyOwner owner, int flags, IProgressMonitor monitor) {<NEW_LINE>CancelableNameEnvironment environment = null;<NEW_LINE>CancelableProblemFactory probl...
flags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0;
1,794,859
private void markSessionConnected(Channel activeChannel) {<NEW_LINE>VolatileFields newCache = new VolatileFields();<NEW_LINE>newCache.state = ConnState.CONNECTED;<NEW_LINE>newCache.nettyChannel = activeChannel;<NEW_LINE>interceptorManager.onConnected(this);<NEW_LINE>synchronized (pendingSend) {<NEW_LINE>if (fields.stat...
RequestEntry e = pendingSend.poll();
1,795,620
public void sendNotificationMsgToEdgeService(TenantId tenantId, EdgeId edgeId, EntityId entityId, String body, EdgeEventType type, EdgeEventActionType action) {<NEW_LINE>if (!edgesEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (type == null) {<NEW_LINE>if (entityId != null) {<NEW_LINE>type = EdgeUtils.getEdgeEventT...
getId().getMostSignificantBits());
1,552,350
public Status check() {<NEW_LINE>List<ProtocolServer> servers = DubboProtocol.getDubboProtocol().getServers();<NEW_LINE>if (servers == null || servers.isEmpty()) {<NEW_LINE>return new Status(Status.Level.UNKNOWN);<NEW_LINE>}<NEW_LINE>Status.Level level = Status.Level.OK;<NEW_LINE>StringBuilder buf = new StringBuilder()...
RemotingServer server = protocolServer.getRemotingServer();
1,660,795
protected IResource[] collectResourcesOfInterest(IPackageFragment source) throws CoreException {<NEW_LINE>IJavaElement[] children = source.getChildren();<NEW_LINE>int childOfInterest = IJavaElement.COMPILATION_UNIT;<NEW_LINE>if (source.getKind() == IPackageFragmentRoot.K_BINARY) {<NEW_LINE>childOfInterest = IJavaElemen...
add(child.getResource());
825,749
/* Checks to make sure that the domain is running, currently used during<NEW_LINE>* cluster creation as create-cluster requires the domain to be up.<NEW_LINE>* @param domainName, name of the domain to check.<NEW_LINE>* @return true if the domain is running, false if the domain is not running<NEW_LINE>* or there are oth...
FINEST, e.getMessage());
1,109,624
public void checkScopeExists(ScopeInfo request, StreamObserver<Controller.ExistsResponse> responseObserver) {<NEW_LINE>RequestTag requestTag = requestTracker.initializeAndTrackRequestTag(controllerService.nextRequestId(), CHECK_SCOPE_EXISTS, request.getScope());<NEW_LINE><MASK><NEW_LINE>log.info(requestTag.getRequestId...
String scope = request.getScope();
1,057,354
private MiniMRPProduct addProductToProcess(MReplenish replenish, Map<Integer, MiniMRPProduct> miniMrpProducts, Set<Integer> productIds) {<NEW_LINE>MProduct product = MProduct.get(getCtx(), replenish.getM_Product_ID());<NEW_LINE>// Get current vendor<NEW_LINE>MProductPO[] productPO = MProductPO.getOfProduct(getCtx(), pr...
product.getM_Product_ID(), availableInventory);
1,041,429
private static void tryAssertionTimeWinUnique(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "theString" };<NEW_LINE>env.advanceTime(1000);<NEW_LINE>sendEvent(env, "E1", 1);<NEW_LINE>env.assertPropsPerRowIteratorAnyOrder("s0", fields, toArr("E1"));<NEW_LINE>env.assertPropsNew("s0", fields, new O...
, fields, toArr("E5"));
1,724,160
protected void initChannel(SocketChannel ch) throws Exception {<NEW_LINE><MASK><NEW_LINE>pipeline.addLast("decoder", new NettyDecoder(codec, NettyClient.this, maxContentLength));<NEW_LINE>pipeline.addLast("encoder", new NettyEncoder());<NEW_LINE>pipeline.addLast("handler", new NettyChannelHandler(NettyClient.this, new ...
ChannelPipeline pipeline = ch.pipeline();
457,359
public void visit(NodeTraversal t, Node n, Node parent) {<NEW_LINE>if (n.isStringLit() && !parent.isRegExp()) {<NEW_LINE>String str = n.getString();<NEW_LINE>// "undefined" is special-cased, since it needs to be used when JS code<NEW_LINE>// is unloading and therefore variable references aren't available.<NEW_LINE>// T...
.siblingToInsertVarDeclBefore = varParent.getFirstChild();
869,116
// @formatter:on<NEW_LINE>public static JwtDecoder jwtDecoder(JWKSource<SecurityContext> jwkSource) {<NEW_LINE>Set<JWSAlgorithm> jwsAlgs = new HashSet<>();<NEW_LINE>jwsAlgs.addAll(JWSAlgorithm.Family.RSA);<NEW_LINE>jwsAlgs.<MASK><NEW_LINE>jwsAlgs.addAll(JWSAlgorithm.Family.HMAC_SHA);<NEW_LINE>ConfigurableJWTProcessor<S...
addAll(JWSAlgorithm.Family.EC);
1,186,701
public static void actionZoom(Lookup lookup, Object value) {<NEW_LINE>if (lookup == null)<NEW_LINE>return;<NEW_LINE>//<NEW_LINE>MQuery zoomQuery = lookup.getZoomQuery();<NEW_LINE>// If not already exist or exact value<NEW_LINE>if (zoomQuery == null || value != null) {<NEW_LINE>// ColumnName might be changed in MTab.val...
p = column.indexOf(".");
831,628
public CompositeModelProperty unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CompositeModelProperty compositeModelProperty = new CompositeModelProperty();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
790,175
private void init() {<NEW_LINE>inflate(getContext(), R.layout.contact_friend_profile_layout, this);<NEW_LINE>mHeadImageView = findViewById(R.id.friend_icon);<NEW_LINE>mNickNameView = findViewById(R.id.friend_nick_name);<NEW_LINE>mIDView = findViewById(R.id.friend_account);<NEW_LINE>mRemarkView = findViewById(R.id.remar...
findViewById(R.id.friend_application_verify_area);
773,376
protected void init(Context context, AttributeSet attributeSet) {<NEW_LINE>mColorNormal = getColor(android.R.color.holo_blue_dark);<NEW_LINE>mColorPressed = getColor(<MASK><NEW_LINE>mIcon = 0;<NEW_LINE>mSize = SIZE_NORMAL;<NEW_LINE>if (attributeSet != null) {<NEW_LINE>initAttributes(context, attributeSet);<NEW_LINE>}<N...
android.R.color.holo_blue_light);