idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
5,495
public ServiceEntity mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>ServiceEntity s = new ServiceEntity();<NEW_LINE>s.id = rs.getString("pk_service");<NEW_LINE>s.name = rs.getString("str_name");<NEW_LINE>s.minCores = rs.getInt("int_cores_min");<NEW_LINE>s.maxCores = rs.getInt("int_cores_max");<NEW_LINE...
minMemory = rs.getLong("int_mem_min");
1,086,509
public void paint(BigInteger xOffset, BigInteger yOffset, GC gc) {<NEW_LINE>if (model == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>gc.setFont(font);<NEW_LINE>Rectangle clip = gc.getClipping();<NEW_LINE>BigInteger startY = yOffset.add(BigInteger.valueOf(top(clip)));<NEW_LINE>long startRow = startY.divide(lineHeightBi...
setBackground(theme.memorySelectionHighlight());
1,096,683
public WARCRecordInfo buildRecord(CrawlURI curi, URI concurrentTo) throws IOException {<NEW_LINE>final String timestamp = ArchiveUtils.<MASK><NEW_LINE>WARCRecordInfo recordInfo = new WARCRecordInfo();<NEW_LINE>recordInfo.setRecordId(generateRecordID());<NEW_LINE>if (concurrentTo != null) {<NEW_LINE>recordInfo.addExtraH...
getLog14Date(curi.getFetchBeginTime());
1,486,458
private ImmutableList<Executable> kotlinConstructorsIn(AnnotationMirror metadata, TypeElement ofClass) {<NEW_LINE>ImmutableMap<String, AnnotationValue> annotationValues = AnnotationMirrors.getAnnotationValuesWithDefaults(metadata).entrySet().stream().map(e -> new SimpleEntry<>(e.getKey().getSimpleName().toString(), e.g...
> allBuilder = ImmutableSet.builder();
534,147
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.impetus.client.hbase.Writer#writeRelations(org.apache.hadoop.hbase<NEW_LINE>* .client.HTable, java.lang.Object, boolean, java.util.List)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void writeRelations(HTableInterface htable, Object rowKey, boolean...
(HBaseUtils.getBytes(rowKey));
1,468,328
protected void masterOperation(IndicesShardStoresRequest request, ClusterState state, ActionListener<IndicesShardStoresResponse> listener) {<NEW_LINE>final RoutingTable routingTables = state.routingTable();<NEW_LINE>final RoutingNodes routingNodes = state.getRoutingNodes();<NEW_LINE>final String[] concreteIndices = ind...
shardsToFetch = new HashSet<>();
1,279,155
public boolean commitIfNecessary(boolean localTx) throws IOException {<NEW_LINE>if (this.deliveryTags.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean isLocallyTransacted = localTx || (this.transactional && TransactionSynchronizationManager.getResource(this.connectionFactory) == null);<NEW_LINE>try {<NEW...
RabbitUtils.commitIfNecessary(this.channel);
975,475
public static void registerMBean(final PwmApplication pwmApplication) {<NEW_LINE>try {<NEW_LINE>final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();<NEW_LINE>final ObjectName name = figureMBeanName(pwmApplication);<NEW_LINE>final Map<PwmAboutProperty, String> aboutMap = PwmAboutProperty.makeInfoBean(pwmA...
AttributeList(aboutMap.size());
615,665
final BatchUnsuspendUserResult executeBatchUnsuspendUser(BatchUnsuspendUserRequest batchUnsuspendUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchUnsuspendUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchUnsuspendUser");
842,548
public static ExecuteScriptResponse unmarshall(ExecuteScriptResponse executeScriptResponse, UnmarshallerContext _ctx) {<NEW_LINE>executeScriptResponse.setRequestId(_ctx.stringValue("ExecuteScriptResponse.RequestId"));<NEW_LINE>executeScriptResponse.setErrorCode(_ctx.stringValue("ExecuteScriptResponse.ErrorCode"));<NEW_...
listMapValue("ExecuteScriptResponse.Results[" + i + "].Rows");
747,599
final CreateApplicationResult executeCreateApplication(CreateApplicationRequest createApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,016,345
private List<AnnotationProcessorDeclaration> detectProcessorsInJar(File jar) {<NEW_LINE>try {<NEW_LINE>ZipFile zipFile = new ZipFile(jar);<NEW_LINE>try {<NEW_LINE>List<<MASK><NEW_LINE>try {<NEW_LINE>Map<String, IncrementalAnnotationProcessorType> processorTypes = getProcessorTypes(zipFile);<NEW_LINE>return toProcessorD...
String> processorClassNames = getProcessorClassNames(zipFile);
1,118,496
public void redefineStyle(final NodeModel node, boolean copyToExternalTemplate) {<NEW_LINE>final IStyle style = LogicalStyleController.<MASK><NEW_LINE>MapModel map = node.getMap();<NEW_LINE>final MapStyleModel extension = MapStyleModel.getExtension(map);<NEW_LINE>final NodeModel styleNode = extension.getStyleNode(style...
getController().getFirstStyle(node);
781,823
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
String tmpVar4 = environment.getNextVariableString();
1,777,807
public CompletableFuture<Void> abortTransaction(final Stream stream, final UUID txId) {<NEW_LINE>Exceptions.checkNotClosed(closed.get(), this);<NEW_LINE>Preconditions.checkNotNull(stream, "stream");<NEW_LINE>Preconditions.checkNotNull(txId, "txId");<NEW_LINE>long traceId = LoggerHelpers.traceEnter(log, "abortTransactio...
).build(), callback);
1,336,707
protected void onCreate(Bundle savedInstance) {<NEW_LINE>super.onCreate(savedInstance);<NEW_LINE>// Set up the snackbar for when the user experience a no reply from twitch's servers<NEW_LINE>snackbar = setupSnackbar();<NEW_LINE>mSwipeRefreshLayout.setProgressViewOffset(true, (int) getResources().getDimension(R.dimen.sw...
(R.dimen.swipe_refresh_end_offset));
30,140
public final AbstractIntegrationMessageBuilder<File> doReceive(int maxFetchSize) {<NEW_LINE>AbstractIntegrationMessageBuilder<File> messageBuilder <MASK><NEW_LINE>if (messageBuilder == null) {<NEW_LINE>this.synchronizer.synchronizeToLocalDirectory(this.localDirectory, maxFetchSize);<NEW_LINE>messageBuilder = this.fileS...
= this.fileSource.doReceive();
576,068
protected Bitmap doInBackground(Object... params) {<NEW_LINE>Bitmap thumbnail = null;<NEW_LINE>try {<NEW_LINE>if (mAccount != null) {<NEW_LINE>OwnCloudAccount ocAccount = new OwnCloudAccount(mAccount, MainApp.Companion.getAppContext());<NEW_LINE>mClient = SingleSessionManager.getDefaultSingleton().getClientFor(ocAccoun...
t, "Generation of thumbnail for " + mFile + " failed");
1,512,308
public static GetCertifyResultResponse unmarshall(GetCertifyResultResponse getCertifyResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getCertifyResultResponse.setRequestId(_ctx.stringValue("GetCertifyResultResponse.RequestId"));<NEW_LINE>getCertifyResultResponse.setCode(_ctx.stringValue("GetCertifyResultResponse.Co...
("GetCertifyResultResponse.Data[" + i + "].IdentityInfo"));
1,811,635
private Maybe<Symbol> processYaml(Symbol yaml, Symbol symbolList) {<NEW_LINE>boolean addToPrevious = false;<NEW_LINE>String key = null, value = "";<NEW_LINE>for (Symbol symbol : symbolList.getChildren()) {<NEW_LINE>if (symbol.isType(SymbolType.Whitespace) && key == null) {<NEW_LINE>addToPrevious = true;<NEW_LINE>} else...
, value.trim()));
397,440
public void printExceptionCaught(Throwable e) {<NEW_LINE>if (e != null) {<NEW_LINE>if ((e instanceof IOException)) {<NEW_LINE>final long now = System.currentTimeMillis();<NEW_LINE>final long diffTime = now - lastLogTime.get();<NEW_LINE>final long curPrintCnt = totalPrintCount.incrementAndGet();<NEW_LINE>if (curPrintCnt...
0, sBuilder.length());
1,511,790
private Object produce(String configKey, Type type, String defaultValue) {<NEW_LINE>FieldTypes fieldTypes = FieldTypes.create(type);<NEW_LINE>org.eclipse.microprofile.config.Config config = ConfigProvider.getConfig();<NEW_LINE>try {<NEW_LINE>config = config.unwrap(Config.class);<NEW_LINE>} catch (Exception ignored) {<N...
configValue = config.getConfigValue(configKey);
1,382,872
public RegisterRobotResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RegisterRobotResult registerRobotResult = new RegisterRobotResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
class).unmarshall(context));
70,423
private void evaluateParseSingular(@NotNull final CommandSender sender, @NotNull @Unmodifiable final List<String> params, final boolean broadcast, final boolean command) {<NEW_LINE>if (params.size() < 2) {<NEW_LINE>Msg.msg(sender, "&cYou must supply a target, and a message: &b/papi " + (broadcast ? "bcparse" : "parse")...
+ params.get(0));
762,786
final DeleteLifecyclePolicyResult executeDeleteLifecyclePolicy(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteLifecyclePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new DeleteLifecyclePolicyResultJsonUnmarshaller());
684,357
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>if ((((decoder.state_zs_flags & StateFlags.Z) | decoder.state_vvvv_invalidCheck | decoder.state_aaa | decoder.state_extraRegisterBaseEVEX) & decoder.invalidCheckMask) != 0)<NEW_LINE>decoder.setInvalidInstruction();<NEW_LINE>if ((decoder.state_zs_flags & d...
decoder.state_zs_extraRegisterBase + Register.EAX);
976,925
protected String resolveRelativePath(URL sourceRoot) throws IOException {<NEW_LINE>// TODO C.P cache root + cnb -> relpath? dig into library wrappers?<NEW_LINE>File srPath = Utilities.toFile(URI.create(sourceRoot.toExternalForm()));<NEW_LINE>// NOI18N<NEW_LINE>File moduleSrc = new File(srPath, "src");<NEW_LINE>if (modu...
= new File(srPath, "nbproject/project.properties");
940,807
public boolean createTenantVDCPFRule(String tenantName, long ruleId, String policyIdentifier, String protocol, String publicIp, String startPort, String endPort) throws ExecutionException {<NEW_LINE>String xml = VnmcXml.CREATE_PF_RULE.getXml();<NEW_LINE>String service = VnmcXml.CREATE_PF_RULE.getService();<NEW_LINE>Str...
replaceXmlValue(xml, "endport", endPort);
371,545
public static void internStringsInElement(@Nonnull Element element, @Nonnull Interner<String> interner) {<NEW_LINE>element.setName(intern(interner, element.getName()));<NEW_LINE>for (Attribute attr : element.getAttributes()) {<NEW_LINE>attr.setName(intern(interner, attr.getName()));<NEW_LINE>attr.setValue(intern(intern...
, comment.getText()));
8,362
public Object increment(JRCalculable variable, Object expressionValue, AbstractValueProvider valueProvider) {<NEW_LINE>BigDecimal value = <MASK><NEW_LINE>BigDecimal newValue = JRBigDecimalIncrementerFactory.toBigDecimal(expressionValue);<NEW_LINE>if (newValue == null) {<NEW_LINE>if (variable.isInitialized()) {<NEW_LINE...
(BigDecimal) variable.getIncrementedValue();
1,117,321
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 entityStream) throws WebApplicationException {<NEW_LINE>final boolean oldJacksonProviderPresent = providers.get...
((Publisher) o, allocator);
318,285
public void update() {<NEW_LINE>// WARNING: run only server-side, see canUpdate()<NEW_LINE>super.update();<NEW_LINE>if (worldObj.isRemote) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (queuedNetworkUpdate) {<NEW_LINE>sendNetworkUpdate();<NEW_LINE>queuedNetworkUpdate = false;<NEW_LINE>}<NEW_LINE>if (currentRecipe == null) ...
crafted.copy(), true);
713,479
final ListCoreDefinitionVersionsResult executeListCoreDefinitionVersions(ListCoreDefinitionVersionsRequest listCoreDefinitionVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCoreDefinitionVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,652,833
public List<SubjectVersion> listVersionsForId(int id, String subject, boolean lookupDeleted) throws SchemaRegistryException {<NEW_LINE>SchemaValue schema = null;<NEW_LINE>try {<NEW_LINE>SchemaKey subjectVersionKey = getSchemaKeyUsingContexts(id, subject);<NEW_LINE>if (subjectVersionKey == null) {<NEW_LINE>return null;<...
SchemaValue) kafkaStore.get(subjectVersionKey);
1,831,698
public synchronized void performRequest(final K key, final TimestampBound timestampBound, final RequestResponseHandler<V, F> handler, final UpdatedVersionListener<K, V> updatedVersionListener) {<NEW_LINE>if (timestampBound != null) {<NEW_LINE>final CacheEntry existingEntry = cached.get(key);<NEW_LINE>if (existingEntry ...
handler.onRequestSuccess(result, timeCached);
808,912
public com.amazonaws.services.fsx.model.VolumeNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.fsx.model.VolumeNotFoundException volumeNotFoundException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<...
fsx.model.VolumeNotFoundException(null);
1,249,617
public Invoice generateAdvancePayment(SaleOrder saleOrder, BigDecimal amountToInvoice, boolean isPercent) throws AxelorException {<NEW_LINE>List<SaleOrderLineTax> taxLineList = saleOrder.getSaleOrderLineTaxList();<NEW_LINE>AccountConfigService accountConfigService = Beans.get(AccountConfigService.class);<NEW_LINE>BigDe...
getCompany()).getAdvancePaymentProduct();
470,270
public static void removeCode(Main main, String codeId) throws StorageQueryException, StorageTransactionLogicException {<NEW_LINE>PasswordlessSQLStorage passwordlessStorage = StorageLayer.getPasswordlessStorage(main);<NEW_LINE>PasswordlessCode code = passwordlessStorage.getCode(codeId);<NEW_LINE>if (code == null) {<NEW...
getDevice_Transaction(con, code.deviceIdHash);
7,361
/*<NEW_LINE>* @see<NEW_LINE>* com.ibm.wsspi.channelfw.ChannelFramework#updateAllChannelProperties(java<NEW_LINE>* .lang.String, java.util.Map)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public synchronized ChannelData updateAllChannelProperties(String channelName, Map<Object, Object> newProperties) throws ChannelException...
throw new InvalidChannelNameException("Unable to find input channel, " + channelName);
1,724,916
public LifecyclePolicyPreviewSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>LifecyclePolicyPreviewSummary lifecyclePolicyPreviewSummary = new LifecyclePolicyPreviewSummary();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
int originalDepth = context.getCurrentDepth();
1,718,040
public boolean matches(final IStorageRecord storageRecord) {<NEW_LINE>if (storageRecord == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// Check if Product matches<NEW_LINE>final Set<ProductId> queryProductIds = getProductIds();<NEW_LINE>if (!queryProductIds.isEmpty()) {<NEW_LINE>final ProductId recor...
int recordWarehouseId = recordLocator.getM_Warehouse_ID();
437,680
public void visitCode() {<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 1);<NEW_LINE>mv.visitMethodInsn(Opcodes.INVOKEVIRTUAL, "java/net/InetSocketAddress", "toString", "()Ljava/lang/String;", false);<NEW_LINE>mv.<MASK><NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 0);<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 1);<NEW_LINE>mv.visitM...
visitVarInsn(Opcodes.ASTORE, 3);
115,277
public Object validate(Object value, String location) throws Column.ValidationException {<NEW_LINE>value = <MASK><NEW_LINE>if (null != value) {<NEW_LINE>TupleValue tupleValue = (TupleValue) value;<NEW_LINE>for (int count = 0; count < parameters().size(); count++) {<NEW_LINE>Column.ColumnType type = parameters().get(cou...
super.validate(value, location);
1,321,996
public EigrpInternalRoute build() {<NEW_LINE>checkArgument(getNetwork() != null, "EIGRP route: missing %s", PROP_NETWORK);<NEW_LINE>checkArgument(_eigrpMetric != null, "EIGRP route: missing %s", PROP_EIGRP_METRIC);<NEW_LINE>checkArgument(_eigrpMetricVersion != null, "EIGRP route: missing %s", PROP_EIGRP_METRIC_VERSION)...
getNonForwarding(), getNonRouting());
551,131
public CompletableFuture<HttpResponseStatus> modelChanged(Model model) {<NEW_LINE>synchronized (model.getModelName()) {<NEW_LINE>CompletableFuture<HttpResponseStatus> <MASK><NEW_LINE>int minWorker = model.getMinWorkers();<NEW_LINE>int maxWorker = model.getMaxWorkers();<NEW_LINE>List<WorkerThread> threads;<NEW_LINE>if (...
future = new CompletableFuture<>();
494,332
public void UIInputReceiverClosed(UIInputReceiver receiver) {<NEW_LINE>if (!receiver.hasSubmittedInput()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String text = receiver.getSubmittedInput().trim();<NEW_LINE>int sr = 0;<NEW_LINE>if (text.length() > 0) {<NEW_LINE>try {<NEW_LINE>float f = <MASK><NEW_LINE>sr =...
DisplayFormatters.parseFloat(df, text);
36,382
private void writeProperties(ElasticsearchPersistentEntity<?> entity, PersistentPropertyAccessor<?> accessor, MapValueAccessor sink) {<NEW_LINE>for (ElasticsearchPersistentProperty property : entity) {<NEW_LINE>if (!property.isWritable()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Object value = accessor.getProperty(prop...
getPotentiallyConvertedSimpleWrite(value, Object.class);
1,313,428
public static HotspottyDataStreamHashAidxRowResult of(RowResult<byte[]> rowResult) {<NEW_LINE>HotspottyDataStreamHashAidxRow rowName = HotspottyDataStreamHashAidxRow.BYTES_HYDRATOR.<MASK><NEW_LINE>Set<HotspottyDataStreamHashAidxColumnValue> columnValues = Sets.newHashSetWithExpectedSize(rowResult.getColumns().size());<...
hydrateFromBytes(rowResult.getRowName());
226,311
public void actionPerformed(final AnActionEvent e) {<NEW_LINE>ApplicationManager.getApplication().invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>CommandProcessor.getInstance().executeCommand(myProject, new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void ru...
ProblemDescriptionNode) node).getElement();
544,634
public static String qualifyType(VisitorState state, SuggestedFix.Builder fix, Symbol sym) {<NEW_LINE>if (sym.getKind() == ElementKind.TYPE_PARAMETER) {<NEW_LINE>return sym.getSimpleName().toString();<NEW_LINE>}<NEW_LINE>if (sym.getKind() == ElementKind.CLASS) {<NEW_LINE>if (ASTHelpers.isLocal(sym)) {<NEW_LINE>if (!sym...
getQualifiedName().toString());
970,320
public void marshall(CreateLocationObjectStorageRequest createLocationObjectStorageRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createLocationObjectStorageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMa...
createLocationObjectStorageRequest.getAgentArns(), AGENTARNS_BINDING);
1,365,713
public com.amazonaws.services.budgets.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.budgets.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth()...
budgets.model.AccessDeniedException(null);
1,424,832
boolean matchDocId(int docId) throws IOException {<NEW_LINE>// We use the verifiedDocsBits to skip the expensive MemoryIndex verification.<NEW_LINE>// If docId also appears in the verifiedDocsBits then that means during indexing<NEW_LINE>// we were able to extract all query terms and for this candidate match<NEW_LINE>/...
query = percolatorQueries.apply(docId);
1,107,189
private void update(Circuit circ, String label, boolean useFirstLabel, ComponentFactory me) {<NEW_LINE>if (circ == null)<NEW_LINE>return;<NEW_LINE>if (label.isEmpty() || !SyntaxChecker.isVariableNameAcceptable(label, false)) {<NEW_LINE><MASK><NEW_LINE>currentIndex.put(circ, 0);<NEW_LINE>useLabelBaseOnly.put(circ, false...
labelBase.put(circ, "");
169,922
private static void applyClassMappingOptions(ClassMap classMap, MappingOptions mappingOptions) {<NEW_LINE>if (mappingOptions != null) {<NEW_LINE>classMap.setWildcard(mappingOptions.wildCard().toBoolean());<NEW_LINE>classMap.setWildcardCaseInsensitive(mappingOptions.wildCardCaseInsensitive().toBoolean());<NEW_LINE>class...
.mapNull().toBoolean();
908,360
public static SyncFileNotEnoughSpaceDialogFragment newInstance(OCFile file, long availableDeviceSpace) {<NEW_LINE>Bundle args = new Bundle();<NEW_LINE>SyncFileNotEnoughSpaceDialogFragment frag = new SyncFileNotEnoughSpaceDialogFragment();<NEW_LINE>String properFileSize = DisplayUtils.bytesToHumanReadable(file.getFileLe...
ARG_NEUTRAL_BTN_RES, R.string.common_cancel);
894,054
private static RangeHighlighter createOrReuseLineMarker(@Nonnull LineMarkerInfo<?> info, @Nonnull MarkupModelEx markupModel, @Nullable HighlightersRecycler toReuse) {<NEW_LINE>LineMarkerInfo.LineMarkerGutterIconRenderer<?> newRenderer = (LineMarkerInfo.LineMarkerGutterIconRenderer<?>) info.createGutterRenderer();<NEW_L...
markerEx.setLineSeparatorPlacement(info.separatorPlacement);
771,410
public Optional<ContentType> tryMatch(final String mimeType, final Host currentHost, final User user) throws DotSecurityException, DotDataException {<NEW_LINE>final List<ContentType> dotAssetContentTypes = APILocator.getContentTypeAPI(user).findByType(BaseContentType.DOTASSET);<NEW_LINE>if (UtilMethods.isSet(dotAssetCo...
] mimeTypeMappingArray = new Map[6];
998,876
static public boolean apply(@NotNull String methodName, @NotNull MethodReference reference, @NotNull ProblemsHolder holder, @NotNull PhpUnitVersion version) {<NEW_LINE>boolean result = false;<NEW_LINE>if (version.below(PhpUnitVersion.PHPUNIT90) && targetMapping.containsKey(methodName)) {<NEW_LINE>final PsiElement[] ass...
= (FunctionReference) assertionArguments[0];
758,533
protected RestChannelConsumer innerPrepareRequest(RestRequest request, NodeClient client) throws IOException {<NEW_LINE>try (XContentParser parser = request.contentParser()) {<NEW_LINE>final OpenIdConnectAuthenticateRequest authenticateRequest = PARSER.parse(parser, null);<NEW_LINE>logger.trace("OIDC Authenticate: " + ...
"access_token", response.getAccessTokenString());
183,984
public JettyServletWebServerFactory jettyServletWebServerFactory(@Value("${server.port:8080}") final String port, @Value("${jetty.threadPool.maxThreads:200}") final String maxThreads, @Value("${jetty.threadPool.minThreads:8}") final String minThreads, @Value("${jetty.threadPool.idleTimeout:60000}") final String idleTim...
setHandler(server.getHandler());
894,404
public static void loadImageOp(Context context, ImageView view, Uri url, int angle) {<NEW_LINE>LogUtility.d("Requested url glide: " + url);<NEW_LINE>if (Global.getDownloadPolicy() == Global.DataUsageType.NONE) {<NEW_LINE>loadLogo(view);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RequestManager <MASK><NEW_LINE>if (glide == nu...
glide = GlideX.with(context);
309,400
public ResponseEntity<String> create(@RequestBody EventCreationRequest request, Principal user) {<NEW_LINE>String imageRef = Optional.ofNullable(request.getImageUrl()).map(this::fetchImage).orElse(null);<NEW_LINE>Organization organization = userManager.findUserOrganizations(user.getName()).get(0);<NEW_LINE>AtomicRefere...
()).getValueAsIntOrDefault(4096);
1,287,283
final RemoveTagsFromResourceResult executeRemoveTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeTagsFromResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,367,519
boolean writeLists(List<KeywordList> lists) {<NEW_LINE>List<KeywordList> overwritten = new ArrayList<>();<NEW_LINE>List<KeywordList> newLists = new ArrayList<>();<NEW_LINE>for (KeywordList list : lists) {<NEW_LINE>if (this.listExists(list.getName())) {<NEW_LINE>overwritten.add(list);<NEW_LINE>} else {<NEW_LINE>newLists...
list.getName(), list);
1,402,893
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int amount = controller.rollDice(outcome, source, game, 6);<NEW_LINE>ContinuousEffect effect;<NEW_LINE>// 1 - -2/-2 until...
getInstance(), Duration.EndOfTurn);
142,563
public void encode(SerializationContext context, UaEncoder encoder, SubscriptionDiagnosticsDataType value) {<NEW_LINE>encoder.writeNodeId("SessionId", value.getSessionId());<NEW_LINE>encoder.writeUInt32("SubscriptionId", value.getSubscriptionId());<NEW_LINE>encoder.writeByte("Priority", value.getPriority());<NEW_LINE>e...
"EventNotificationsCount", value.getEventNotificationsCount());
1,805,900
public static Criterion toV4Criterion(final Set<String> tags) throws GeniePreconditionException {<NEW_LINE>final Criterion.Builder builder = new Criterion.Builder();<NEW_LINE>final Set<String> v4Tags = Sets.newHashSet();<NEW_LINE>for (final String tag : tags) {<NEW_LINE>if (tag.startsWith(GENIE_ID_PREFIX)) {<NEW_LINE>b...
e.getMessage(), e);
1,303,167
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>// discard hands<NEW_LINE>Map<UUID, Integer> cardsAmount = new HashMap<>();<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(controller.getI...
getPlayer(discardedHand.getKey());
1,404,280
public void sendAttention(AccountJid account, UserJid user) throws NetworkException {<NEW_LINE>AbstractChat chat = MessageManager.getInstance().getOrCreateChat(account, user);<NEW_LINE>if (!(chat instanceof RegularChat)) {<NEW_LINE>throw new NetworkException(R.string.ENTRY_IS_NOT_FOUND);<NEW_LINE>}<NEW_LINE>Jid to = ch...
.addExtension(new AttentionExtension());
432,916
private void buildUI() {<NEW_LINE>BorderLayout borderLayout = new BorderLayout();<NEW_LINE>setLayout(borderLayout);<NEW_LINE>ringChartPanel = new RingChartPanel(this);<NEW_LINE>toolbar = new Toolbar(this);<NEW_LINE>add(toolbar, BorderLayout.NORTH);<NEW_LINE>toolbar.addKeyListenerToTypingArea(this);<NEW_LINE>displayArea...
add(rightScrollPane, JSplitPane.RIGHT);
1,361,104
public void populateGlobalValues(String root, Map<DefDescriptor<? extends Definition>, Definition> defs) throws QuickFixException {<NEW_LINE>UsageMap<PropertyReference> refs = getReferenceUsageMap(root, defs);<NEW_LINE>Map<Throwable, Collection<Location>> errors = new LinkedHashMap<>();<NEW_LINE>AuraContext context = c...
CompositeValidationException("Unable to load values for " + root, errors);
724,690
public static DescribeDomainCertificateInfoResponse unmarshall(DescribeDomainCertificateInfoResponse describeDomainCertificateInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainCertificateInfoResponse.setRequestId<MASK><NEW_LINE>List<CertInfo> certInfos = new ArrayList<CertInfo>();<NEW_LINE>for (int i = 0...
(_ctx.stringValue("DescribeDomainCertificateInfoResponse.RequestId"));
137,686
public static IRubyObject switch_rb(ThreadContext context, IRubyObject self, Block block) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>int uid = checkErrno(runtime, runtime.getPosix().getuid());<NEW_LINE>int euid = checkErrno(runtime, runtime.<MASK><NEW_LINE>if (block.isGiven()) {<NEW_LINE>try {<NEW_LINE>checkEr...
getPosix().geteuid());
72,293
private void writePart(JRPart part) throws IOException {<NEW_LINE>ComponentKey componentKey = part.getComponentKey();<NEW_LINE>PartComponentXmlWriter componentXmlWriter = PartComponentsEnvironment.getInstance(jasperReportsContext).getManager(componentKey).getComponentXmlWriter(jasperReportsContext);<NEW_LINE>if (compon...
part.getPrintWhenExpression(), false);
56,147
final GetSessionResult executeGetSession(GetSessionRequest getSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
601,404
public void onReceive(Context context, Intent intent) {<NEW_LINE>if (intent.getAction().equals("com.klinker.android.talon.UPDATE_WIDGET")) {<NEW_LINE>Intent updateWidget = new Intent(context, CardWidgetService2.class);<NEW_LINE>context.startService(updateWidget);<NEW_LINE>} else if (intent.getAction().equals("OPEN_APP"...
.getLongExtra("tweetid", 0));
705,554
public void createBindings() {<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter(Configuration.get().getLengthDisplayFormat());<NEW_LINE>IntegerConverter integerConverter = new IntegerConverter();<NEW_LINE>addWrappedBinding(nozzleTip, "methodPartOn", methodPartOn, "selectedItem");<NEW_LINE>addWrappedBindin...
"vacuumDifferencePartOnReading", vacuumDifferencePartOnReading, "text", doubleConverter);
423,795
private void flushBatch() throws IOException, InterruptedException {<NEW_LINE>if (batch.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Group values KV<tableName, writeRequest> by tableName<NEW_LINE>// Note: The original order of arrival is lost reading the map entries.<NEW_LINE>Map<String, List<Wri...
BackOff resume = resumeBackoff.backoff();
1,286,724
public boolean accept(final NetworkTopologyVisitor visitor, final VirtualRouter router) throws ResourceUnavailableException {<NEW_LINE>_router = router;<NEW_LINE>_purpose = _rules.get(0).getPurpose();<NEW_LINE>if (_purpose == Purpose.LoadBalancing) {<NEW_LINE>LoadBalancerDao loadBalancerDao = visitor.getVirtualNetworkA...
sslCert, lb.getLbProtocol());
1,483,675
private void link(FibonacciHeapNode<E> y, FibonacciHeapNode<E> x) {<NEW_LINE>// 1 remove y from the root list of H<NEW_LINE>y.getLeft().setRight(y.getRight());<NEW_LINE>y.getRight().setLeft(y.getLeft());<NEW_LINE>y.setParent(x);<NEW_LINE>if (x.getChild() == null) {<NEW_LINE>// 2 make y a child of x, incrementing degree...
setLeft(x.getChild());
901,201
public void onWorkerEvent(WorkerEvent workerEvent) {<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("Entering JobClusterManagerActor:onWorkerEvent {}", workerEvent);<NEW_LINE>}<NEW_LINE>String clusterName = workerEvent.getWorkerId().getJobCluster();<NEW_LINE>Optional<JobClusterInfo> jobClusterInfo = jobC...
getWorkerId().getJobCluster());
1,127,404
public static StarlarkBazelModule create(AbridgedModule module, ModuleExtension extension, RepositoryMapping repoMapping, @Nullable ModuleExtensionUsage usage) throws ExternalDepsException {<NEW_LINE>LabelConverter labelConverter = new LabelConverter(createModuleRootLabel(module.getCanonicalRepoName()), repoMapping);<N...
typeCheckedTags = new HashMap<>();
886,197
public Request<PutDestinationPolicyRequest> marshall(PutDestinationPolicyRequest putDestinationPolicyRequest) {<NEW_LINE>if (putDestinationPolicyRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(PutDestinationPolicyRequest)");<NEW_LINE>}<NEW_LINE>Request<PutDestinationPoli...
.toString(content.length));
591,935
public boolean removeCookies(final CharSequence name) {<NEW_LINE><MASK><NEW_LINE>final int bucketIndex = index(keyHash);<NEW_LINE>final BucketHead<CharSequence, CharSequence> bucketHead = entries[bucketIndex];<NEW_LINE>if (bucketHead == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final int beforeSize = size();<N...
final int keyHash = hashCode(COOKIE);
541,271
private void updateAlertInDB(Alert alert) throws HttpMalformedHeaderException, DatabaseException {<NEW_LINE>TableAlert tableAlert = getModel().getDb().getTableAlert();<NEW_LINE>tableAlert.update(alert.getAlertId(), alert.getName(), alert.getRisk(), alert.getConfidence(), alert.getDescription(), alert.getUri(), alert.ge...
), e.getValue());
1,597,692
private void updateMemberRoles(MemberImpl member, List<Role> newRoles, long responseNumber) {<NEW_LINE>Set<Role> currentRoles = member.getRoleSet();<NEW_LINE>// Find the roles removed.<NEW_LINE>List<Role> removedRoles = new LinkedList<>();<NEW_LINE>each: for (Role role : currentRoles) {<NEW_LINE>for (Iterator<Role> it ...
Role r = it.next();
744,535
private long rdfMakeObj(Object box, String type, String lang) {<NEW_LINE>long ro_id = 0;<NEW_LINE>try {<NEW_LINE>VirtuosoPreparedStatement ps = (VirtuosoPreparedStatement) <MASK><NEW_LINE>ps.setObject(1, box);<NEW_LINE>ps.setString(2, type);<NEW_LINE>ps.setString(3, lang);<NEW_LINE>VirtuosoPreparedStatement ro = (Virtu...
this.connection.prepareStatement("DB.DBA.RDF_MAKE_OBJ_OF_TYPEDSQLVAL (?, ?, ?)");
1,384,543
public void cancel(CancelBackupStmt stmt) throws DdlException {<NEW_LINE>String dbName = stmt.getDbName();<NEW_LINE>Database db = env.getInternalCatalog().getDbOrDdlException(dbName);<NEW_LINE>AbstractJob job = getCurrentJob(db.getId());<NEW_LINE>if (job == null || (job instanceof BackupJob && stmt.isRestore()) || (job...
"Failed to cancel job: " + status.getErrMsg());
23,360
private ResponseSpec findPetsByTagsRequestCreation(Set<String> tags) throws WebClientResponseException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'tags' is set<NEW_LINE>if (tags == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'tags' when calling...
] localVarAccepts = { "application/xml", "application/json" };
104,696
public void start() {<NEW_LINE>tokenTimeoutChecker = new Thread(() -> {<NEW_LINE>while (!stopped.get() && !Thread.interrupted()) {<NEW_LINE>long ts = System.currentTimeMillis();<NEW_LINE>for (Map.Entry<Integer, ClientRunningContext> clientEntry : clientRPCCounters.entrySet()) {<NEW_LINE>int inflightRPCCounter = clientE...
.getValue().getLastUpdateTs();
356,968
final UpdateVocabularyResult executeUpdateVocabulary(UpdateVocabularyRequest updateVocabularyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVocabularyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(updateVocabularyRequest));
397,974
public static void main(String[] args) {<NEW_LINE>Logo.print(true);<NEW_LINE>System.out.println("Scouter Batch Agent Version " + Version.getServerFullVersion());<NEW_LINE>Logger.println("A01", "Scouter Batch Agent Version " + Version.getServerFullVersion());<NEW_LINE>try {<NEW_LINE>ReqestHandlingProxy.load(ReqestHandli...
long startTime = System.currentTimeMillis();
1,678,246
public void internalFrameActivated(InternalFrameEvent e) {<NEW_LINE>for (int i = 2; i < getMenuBar(e).getWindowMenu().getItemCount(); i++) {<NEW_LINE>final JMenuItem item = getMenuBar(e).getWindowMenu().getItem(i);<NEW_LINE>if (((WindowMenuItemAction) item.getAction()).getInternalFrame() == e.getInternalFrame()) {<NEW_...
()).setEnabled(true);
1,327,771
final ListPermissionsResult executeListPermissions(ListPermissionsRequest listPermissionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPermissionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
1,387,407
public void addTask(String qid, List<String> docIds, JsonNode jsonQuery) {<NEW_LINE>if (tasks.containsKey(qid))<NEW_LINE>throw new IllegalArgumentException("existed qid");<NEW_LINE>tasks.put(qid, pool.submit(() -> {<NEW_LINE>List<FeatureExtractor> localExtractors = new ArrayList<>();<NEW_LINE>for (FeatureExtractor e : ...
DataOutputStream dos = new DataOutputStream(baos);
1,234,857
public void handleResolvedAddresses(ResolvedAddresses resolvedAddresses) {<NEW_LINE>logger.log(XdsLogLevel.DEBUG, "Received resolution result: {0}", resolvedAddresses);<NEW_LINE>Object lbConfig = resolvedAddresses.getLoadBalancingPolicyConfig();<NEW_LINE>checkNotNull(lbConfig, "missing weighted_target lb config");<NEW_...
retainAll(targets.keySet());
942,298
public void applyStrategies() throws IllegalStateException {<NEW_LINE>ScriptEngine engine = SingleGremlinScriptEngineManager.get(this.language);<NEW_LINE>Bindings bindings = engine.createBindings();<NEW_LINE>bindings.putAll(this.bindings);<NEW_LINE>@SuppressWarnings("rawtypes")<NEW_LINE>TraversalStrategy[] strategies =...
entry.getKey(), value);
1,427,800
private void tryInitColumns(List<Integer> initializedDataTypeIndexes) {<NEW_LINE>for (int i : initializedDataTypeIndexes) {<NEW_LINE>switch(dataTypes[i]) {<NEW_LINE>case BOOLEAN:<NEW_LINE>columns[i] = new boolean[tabletRowLimit];<NEW_LINE>break;<NEW_LINE>case INT32:<NEW_LINE>columns[i] = new int[tabletRowLimit];<NEW_LI...
i] = new double[tabletRowLimit];
95,194
protected Result analyzeProxy(final Result previousResult, final TCPAccessLogEntry entry) {<NEW_LINE>final AccessLogCommon properties = entry.getCommonProperties();<NEW_LINE>if (properties == null) {<NEW_LINE>return previousResult;<NEW_LINE>}<NEW_LINE>final Address downstreamLocalAddress = properties.getDownstreamLocal...
log.debug("Transformed ingress inbound mesh metric {}", metric);