idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,196,206
protected Iterator<Map.Entry<Cell, byte[]>> computeNext() {<NEW_LINE>try {<NEW_LINE>if (lastBatchReached) {<NEW_LINE>return endOfData();<NEW_LINE>}<NEW_LINE>BatchSizeIncreasingIterator.BatchResult<Map.Entry<Cell, Value>> batchResult = batchIterator.getBatch();<NEW_LINE>Map<Cell, Value> raw = ImmutableMap.copyOf(batchRe...
.entrySet().iterator();
1,503,194
private void recover(StartRecoveryRequest request, ActionListener<RecoveryResponse> listener) {<NEW_LINE>final IndexService indexService = indicesService.indexServiceSafe(request.shardId().getIndex());<NEW_LINE>final IndexShard shard = indexService.getShard(request.shardId().id());<NEW_LINE>final ShardRouting routingEn...
request.targetNode() + "]");
1,738,989
public List<FileSystemAction> determineFileSystemActions(MemoryDatabase winnersDatabase, boolean cleanupOccurred, List<PartialFileHistory> localFileHistoriesWithLastVersion) throws Exception {<NEW_LINE>this.assembler = new Assembler(config, localDatabase, winnersDatabase);<NEW_LINE>List<FileSystemAction> fileSystemActi...
log(Level.INFO, "- Loading current file tree...");
1,405,803
public static void cancelNotification(Context context, String channelId, String rootId, Integer notificationId, Boolean isCRTEnabled) {<NEW_LINE>if (!android.text.TextUtils.isEmpty(channelId)) {<NEW_LINE>final String notificationIdStr = notificationId.toString();<NEW_LINE>final Boolean isThreadNotification = isCRTEnabl...
] statusNotifications = notificationManager.getActiveNotifications();
1,806,499
public void createCopyOnStack(Game game, Ability source, UUID newControllerId, boolean chooseNewTargets, int amount, StackObjectCopyApplier applier) {<NEW_LINE>GameEvent gameEvent = new CopyStackObjectEvent(source, this, newControllerId, amount);<NEW_LINE>if (game.replaceEvent(gameEvent)) {<NEW_LINE>return;<NEW_LINE>}<...
gameEvent.getAmount(), applier);
1,553,892
public void associateSoftwareToken(final String sessionToken, final RegisterMfaHandler callback) {<NEW_LINE>if (callback == null) {<NEW_LINE>throw new CognitoParameterInvalidException("callback is null");<NEW_LINE>}<NEW_LINE>final CognitoUser user = this;<NEW_LINE>boolean useSessionToken;<NEW_LINE>try {<NEW_LINE>final ...
HashMap<String, String>();
267,044
private static void solve() {<NEW_LINE>int base = 10;<NEW_LINE>Solver solver = new Solver("SendMoreMoney");<NEW_LINE>IntVar s = solver.makeIntVar(0, base - 1, "s");<NEW_LINE>IntVar e = solver.makeIntVar(0, base - 1, "e");<NEW_LINE>IntVar n = solver.makeIntVar(<MASK><NEW_LINE>IntVar d = solver.makeIntVar(0, base - 1, "d...
0, base - 1, "n");
1,423,857
protected static OneResponse chmod(Client client, String method, int id, String octet) {<NEW_LINE>int owner_u = (Integer.parseInt(octet.substring(0, 1)) & 4) != 0 ? 1 : 0;<NEW_LINE>int owner_m = (Integer.parseInt(octet.substring(0, 1)) & 2) != 0 ? 1 : 0;<NEW_LINE>int owner_a = (Integer.parseInt(octet.substring(0, 1)) &...
1) != 0 ? 1 : 0;
803,064
private int generateModulePackagesAttribute(char[][] packageNames) {<NEW_LINE>int localContentsOffset = this.contentsOffset;<NEW_LINE>int maxSize = 6 + 2 * packageNames.length;<NEW_LINE>if (localContentsOffset + maxSize >= this.contents.length) {<NEW_LINE>resizeContents(maxSize);<NEW_LINE>}<NEW_LINE>int moduleAttribute...
byte) (packagesCount >> 8);
394,514
public synchronized void removeWorkersToMirrorMaker(InstanceTopicPartitionHolder controller, String pipeline, int routeId, int numWorkersToRemove) throws Exception {<NEW_LINE>LOGGER.info("Trying to remove {} workers in route: {}@{}", numWorkersToRemove, pipeline, routeId);<NEW_LINE>_lock.lock();<NEW_LINE>try {<NEW_LINE...
.getWorkerSet().iterator();
945,311
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String createEpl = "@public create window MyWindow#keepall as select * from SupportBean";<NEW_LINE>if (indexShare) {<NEW_LINE>createEpl = "@Hint('enable_window_subquery_indexshare') " + createEpl;<NEW_LINE>}<NEW_L...
, "A", 300, 312));
988,572
protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.street_view_panorama_options_demo);<NEW_LINE>streetNameCheckbox = findViewById(R.id.streetnames);<NEW_LINE>navigationCheckbox = findViewById(R.id.navigation);<NEW_LINE>zoomCheckbox = ...
setStreetNamesEnabled(streetNameCheckbox.isChecked());
810,687
protected void onPreExecute() {<NEW_LINE>super.onPreExecute();<NEW_LINE>mDrawerList = mainActivity.findViewById(R.id.drawer_nav_list);<NEW_LINE>LayoutInflater inflater = (LayoutInflater) mainActivity.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);<NEW_LINE>settingsView = mainActivity.findViewById(R.id.settings_view...
R.layout.drawer_category_list_footer, null);
873,637
public void onClick(View v) {<NEW_LINE>// All spinner have to be initialised already<NEW_LINE>if (serverSpinner.getSelectedItem() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (filterSpinner.getSelectedItem() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (sortSpinner.getSelectedItem() == null) {<NEW_LINE>retu...
AppWidgetManager.getInstance(ListWidgetConfigActivity.this);
322,660
private Section buildBasicProperties(OsAccount account) {<NEW_LINE>Section section = new Section(Bundle.OsAccountDataPanel_basic_title());<NEW_LINE>SectionData data = new SectionData();<NEW_LINE>Optional<String<MASK><NEW_LINE>data.addData(Bundle.OsAccountDataPanel_basic_login(), optional.isPresent() ? optional.get() : ...
> optional = account.getLoginName();
1,281,595
public boolean performOk() {<NEW_LINE>DBPPreferenceStore store = DBWorkbench.getPlatform().getPreferenceStore();<NEW_LINE>store.setValue(NavigatorPreferences.NAVIGATOR_EXPAND_ON_CONNECT, expandOnConnectCheck.getSelection());<NEW_LINE>store.setValue(NavigatorPreferences.NAVIGATOR_RESTORE_FILTER, restoreFilterCheck.getSe...
NAVIGATOR_SHOW_OBJECT_TIPS, showObjectTipsCheck.getSelection());
309,885
public StartDeploymentResponse startDeployment(@NonNull final StartDeploymentRequest request) throws ResourceNotFoundException, InternalServiceException {<NEW_LINE>try {<NEW_LINE>final EnvironmentId environmentId = apiModelMapper.toModelEnvironmentId(request.getEnvironmentId());<NEW_LINE>final Environment environment =...
e.getMessage(), e);
516,468
void execute(@Nonnull AnActionEvent e, @Nonnull ExecutionEnvironment environment) {<NEW_LINE>MyRunProfile profile = getRunProfile(environment);<NEW_LINE>if (profile == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ExecutionEnvironmentBuilder environmentBuilder = new ExecutionEnvironmentBuilder<MASK><NEW_LINE>final...
(environment).runProfile(profile);
726,837
private QueryProfileType extendOrCreateQueryProfileType(String name, QueryProfileTypeRegistry registry) {<NEW_LINE>QueryProfileType type = null;<NEW_LINE>FieldDescription fieldDescription = getField(name);<NEW_LINE>if (fieldDescription != null) {<NEW_LINE>if (!(fieldDescription.getType() instanceof QueryProfileFieldTyp...
(registry.createAnonymousId(name));
944,552
private void load() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>TcpProxy tcpProxy = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>MapPack pack = (MapPack) tcpProxy.getSingle(RequestC...
memLv = pack.getList("MEM");
920,070
public com.amazonaws.services.clouddirectory.model.DirectoryAlreadyExistsException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.clouddirectory.model.DirectoryAlreadyExistsException directoryAlreadyExistsException = new com.amazonaws.services.<MASK><NEW_LINE>i...
clouddirectory.model.DirectoryAlreadyExistsException(null);
737,776
public T await() {<NEW_LINE>final boolean[<MASK><NEW_LINE>final Object[] out = new Object[1];<NEW_LINE>final Throwable[] ex = new Throwable[1];<NEW_LINE>this.onSuccess(new SuccessCallback<T>() {<NEW_LINE><NEW_LINE>public void onSucess(T res) {<NEW_LINE>synchronized (complete) {<NEW_LINE>out[0] = res;<NEW_LINE>complete[...
] complete = new boolean[1];
298,209
private UpdateAspectResult ingestAspectToLocalDBNoTransaction(@Nonnull final Urn urn, @Nonnull final String aspectName, @Nonnull final Function<Optional<RecordTemplate>, RecordTemplate> updateLambda, @Nonnull final AuditStamp auditStamp, @Nonnull final SystemMetadata providedSystemMetadata, @Nullable final EbeanAspectV...
, toJsonAspect(providedSystemMetadata), nextVersion);
1,151,520
protected void layoutChildren(final double x, final double y, final double w, final double h) {<NEW_LINE>final double height = getSkinnable().getHeight();<NEW_LINE>final Node leadingGraphic = ((JFXTextField) getSkinnable()).getLeadingGraphic();<NEW_LINE>final Node trailingGraphic = ((JFXTextField) getSkinnable()).getTr...
), 0, leadingW, height);
657,290
protected void initInstallMethods(FrameOwner frameOwner, ScreenIntrospectionData screenIntrospectionData) {<NEW_LINE>List<AnnotatedMethod<Install>> installMethods = screenIntrospectionData.getInstallMethods();<NEW_LINE>for (AnnotatedMethod<Install> annotatedMethod : installMethods) {<NEW_LINE>Install annotation = annot...
RuntimeException("Unable to set declarative @Install handler for " + installMethod, e);
44,285
public static // ugh these *Api types do not help one bit<NEW_LINE>DataBindingV2Provider // ugh these *Api types do not help one bit<NEW_LINE>createProvider(// ugh these *Api types do not help one bit<NEW_LINE>Artifact setterStoreFile, // ugh these *Api types do not help one bit<NEW_LINE>Artifact classInfoFile, // ugh ...
addAll(provider.getLabelAndJavaPackages());
929,426
Description unwrapArguments(String formatString, MethodInvocationTree tree, List<? extends ExpressionTree> arguments, VisitorState state) {<NEW_LINE>SuggestedFix.<MASK><NEW_LINE>int start = 0;<NEW_LINE>java.util.regex.Matcher matcher = PRINTF_TERM_CAPTURE_PATTERN.matcher(formatString);<NEW_LINE>StringBuilder sb = new S...
Builder fix = SuggestedFix.builder();
1,397,111
public void run() {<NEW_LINE>mMotionLayout.setProgress(0);<NEW_LINE>updateItems();<NEW_LINE>mAdapter.onNewItem(mIndex);<NEW_LINE><MASK><NEW_LINE>if (mTouchUpMode == TOUCH_UP_CARRY_ON && velocity > mVelocityThreshold && mIndex < mAdapter.count() - 1) {<NEW_LINE>final float v = velocity * mDampening;<NEW_LINE>if (mIndex ...
float velocity = mMotionLayout.getVelocity();
168,078
private static ByteBuf serializeProtobuf(MessageLite msg, ByteBufAllocator allocator) {<NEW_LINE>int size = msg.getSerializedSize();<NEW_LINE>// Protobuf serialization is the last step of the netty pipeline. We used to allocate<NEW_LINE>// a heap buffer while serializing and pass it down to netty library.<NEW_LINE>// I...
allocator.directBuffer(size, size);
1,737,327
public void run(ApplicationArguments applicationArguments) throws Exception {<NEW_LINE>String[] templates = { "Up and running with %s", "%s Basics", "%s for Beginners", "%s for Neckbeards", "Under the hood: %s", "Discovering %s", "A short guide to %s", "%s with Baeldung" };<NEW_LINE>String[] buzzWords = { "Spring REST ...
format(blurbStart, middle, ending);
1,400,940
private void initOptions(DefaultCodeFormatterOptions defaultCodeFormatterOptions, Map<String, String> options) {<NEW_LINE>if (options != null) {<NEW_LINE>this.originalOptions = new DefaultCodeFormatterOptions(options);<NEW_LINE>this.workingOptions = new DefaultCodeFormatterOptions(options);<NEW_LINE>this.oldCommentForm...
.sourceLevel = CompilerOptions.getLatestVersion();
1,213,396
public ThirdPartyFirewallPolicy unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ThirdPartyFirewallPolicy thirdPartyFirewallPolicy = new ThirdPartyFirewallPolicy();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
134,188
public void initSubDevices() {<NEW_LINE>ModelFactory factory = ModelFactory.eINSTANCE;<NEW_LINE>ColorColor color = factory.createColorColor();<NEW_LINE>color.setUid(getUid());<NEW_LINE>String subIdColor = "color";<NEW_LINE>color.setSubId(subIdColor);<NEW_LINE>logger.debug("{} addSubDevice {}", LoggerConstants.TFINIT, s...
ColorIlluminance illuminance = factory.createColorIlluminance();
955,137
public boolean isResponseForUnauthorizedRequest(HttpMessage message) {<NEW_LINE>// NOTE: In case nothing is configured, we default to "not match" when composition is "OR"<NEW_LINE>// and<NEW_LINE>// "matches" when composition is "AND" so not configuring<NEW_LINE>boolean statusCodeMatch = message.getResponseHeader().get...
)).find() : false;
1,569,328
// Initialize the list of Artifacts<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>private void initArtifactTypes() {<NEW_LINE>// only try to load existing artifact types if we are displaying case<NEW_LINE>// specific data, otherwise there may not be a case open.<NEW_LINE>if (!useCaseSpecificData) {<NEW_LINE>return...
(BlackboardArtifact.ARTIFACT_TYPE.TSK_TL_EVENT));
1,804,450
protected void printBanner(boolean showResponderUrl) {<NEW_LINE>Set<String> uris <MASK><NEW_LINE>uris.add(caContainer.getAcmeDirectoryURI(false));<NEW_LINE>uris.add(caContainer.getAcmeDirectoryURI(true));<NEW_LINE>StringBuffer banner = new StringBuffer();<NEW_LINE>banner.append("\n\n\n");<NEW_LINE>banner.append("******...
= new HashSet<String>();
129,454
private Map<String, List<BlackboardArtifact>> buildMap() throws TskCoreException, SQLException {<NEW_LINE>Map<String, List<BlackboardArtifact>> acctMap = new HashMap<>();<NEW_LINE>List<BlackboardArtifact> contactList = Case.getCurrentCase().getSleuthkitCase().<MASK><NEW_LINE>for (BlackboardArtifact contactArtifact : co...
getBlackboardArtifacts(BlackboardArtifact.ARTIFACT_TYPE.TSK_CONTACT);
376,870
private int doRead(SegmentHandle handle, long offset, byte[] buffer, int bufferOffset, int length) throws IOException {<NEW_LINE>long traceId = LoggerHelpers.traceEnter(log, "read", handle.getSegmentName(), offset, bufferOffset, length);<NEW_LINE>Timer timer = new Timer();<NEW_LINE>Path path = getPath(handle.getSegment...
wrap(buffer, bufferOffset, length);
1,359,856
private boolean sendWithRetries(final byte[] buffer, final int length, final int eventCount, boolean withTimeout) {<NEW_LINE>long deadLineMillis = System.<MASK><NEW_LINE>try {<NEW_LINE>RetryUtils.retry(new RetryUtils.Task<Object>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void perform() throws Exception {<NEW_LIN...
currentTimeMillis() + computeTimeoutForSendRequestInMillis(lastBatchFillTimeMillis);
323,039
public int calculate(Game game, Ability sourceAbility, Effect effect) {<NEW_LINE>Player controller = game.getPlayer(sourceAbility.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>Collection<ExileZone> exileZones = game.getState().getExile().getExileZones();<NEW_LINE>Cards ca...
(controller.getId()));
163,994
private void loadWindow() throws IOException {<NEW_LINE>List<MWindow> windowList = new Query(getCtx(), I_AD_Window.Table_Name, null, get_TrxName()).setOnlyActiveRecords(true).setClient_ID().list();<NEW_LINE>// Get Result<NEW_LINE>if (windowList == null || windowList.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>S...
"Window", FunctionalDocsForProcess.FOLDER_NAME, 2);
1,628,311
private void initFunctionConsumerOrSupplierFromCatalog(Object targetContext) {<NEW_LINE>String name = resolveName(Function.class, targetContext);<NEW_LINE>this.function = this.catalog.<MASK><NEW_LINE>if (this.function != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>name = resolveName(Consumer.class, targetContext);<NEW...
lookup(Function.class, name);
658,886
private void loadWebInfMap(String webInfPath, List loadedLocations) {<NEW_LINE>// No need to search META-INF resources<NEW_LINE>if (ctxt != null) {<NEW_LINE>Set libSet = <MASK><NEW_LINE>if (libSet != null) {<NEW_LINE>Iterator it = libSet.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>String resourcePath = (String...
ctxt.getResourcePaths(webInfPath, false);
215,844
public Request<DeleteUserRequest> marshall(DeleteUserRequest deleteUserRequest) {<NEW_LINE>if (deleteUserRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DeleteUserRequest)");<NEW_LINE>}<NEW_LINE>Request<DeleteUserRequest> request = new DefaultRequest<MASK><NEW_LINE>Strin...
<DeleteUserRequest>(deleteUserRequest, "AmazonCognitoIdentityProvider");
188,371
public void testRollbackLocalTransaction_B(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>try {<NEW_LINE>JMSContext jmsContextQCFBindings = qcfBindings.createContext(Session.SESSION_TRANSACTED);<NEW_LINE>emptyQueue(qcfBindings, queue);<NEW_LINE...
(TextMessage) e1.nextElement();
1,380,316
// From Main Presentation Part<NEW_LINE>public static List<Style> generateWordStylesFromPresentationPart(CTTextListStyle textStyles, String suffix, FontScheme fontScheme) {<NEW_LINE>List<Style> styles = new ArrayList<Style>();<NEW_LINE>if (textStyles == null)<NEW_LINE>return styles;<NEW_LINE>styles.add(TextStyles.conve...
+ suffix, "DocDefaults", fontScheme));
237,299
private void promoteSystemProperties() throws TransactionFailure {<NEW_LINE>ConfigSupport.apply(new SingleConfigCode<JavaConfig>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Object run(JavaConfig param) throws PropertyVetoException, TransactionFailure {<NEW_LINE>final List<String> props = new ArrayList<String>(para...
> iterator = props.iterator();
1,377,202
public static ValidationResult validate(@Nullable MethodSymbol formatMethodSymbol, Collection<? extends ExpressionTree> arguments, VisitorState state) {<NEW_LINE>Preconditions.checkArgument(!arguments.<MASK><NEW_LINE>Deque<ExpressionTree> args = new ArrayDeque<>(arguments);<NEW_LINE>Stream<String> formatStrings = const...
isEmpty(), "A format method should have one or more arguments, but method (%s) has zero arguments.", formatMethodSymbol);
1,209,322
private static ErrorCode isCredentialProofValid(Map<String, String> proof) {<NEW_LINE>if (proof == null) {<NEW_LINE>return ErrorCode.ILLEGAL_INPUT;<NEW_LINE>}<NEW_LINE>String type = proof.get(ParamKeyConstant.PROOF_TYPE);<NEW_LINE>if (!isCredentialProofTypeValid(type)) {<NEW_LINE>return ErrorCode.CREDENTIAL_SIGNATURE_T...
proof.get(ParamKeyConstant.PROOF_CREATOR);
1,141,692
public void newStreamWithData() throws Exception {<NEW_LINE>HTTP2Client http2Client = new HTTP2Client();<NEW_LINE>http2Client.start();<NEW_LINE>// tag::newStreamWithData[]<NEW_LINE>SocketAddress serverAddress <MASK><NEW_LINE>CompletableFuture<Session> sessionCF = http2Client.connect(serverAddress, new Session.Listener....
= new InetSocketAddress("localhost", 8080);
368,516
private Polygon bufferConvexPath_(MultiPath src, int ipath) {<NEW_LINE>generateCircleTemplate_();<NEW_LINE>Polygon resultPolygon = new Polygon(src.getDescription());<NEW_LINE>MultiPathImpl result_mp = (MultiPathImpl) resultPolygon._getImpl();<NEW_LINE>// resultPolygon.reserve((m_circle_template.size() / 10 + 4) *<NEW_L...
(MultiPathImpl) src._getImpl();
1,015,308
public void closeElement(String element, HashMap<String, String> attributes, String content, WarningSet warnings) throws SAXException {<NEW_LINE>super.closeElement(element, attributes, content, warnings);<NEW_LINE>try {<NEW_LINE>if (RocksimCommonConstants.OD.equals(element)) {<NEW_LINE>bodyTube.setOuterRadius(Double.pa...
(content) / RocksimCommonConstants.ROCKSIM_TO_OPENROCKET_RADIUS);
291,057
protected <N extends Number> NumericRangeQuery<?> numericRange(Class<N> clazz, String field, @Nullable N min, @Nullable N max, boolean minInc, boolean maxInc) {<NEW_LINE>if (clazz.equals(Integer.class)) {<NEW_LINE>return NumericRangeQuery.newIntRange(field, (Integer) min, (Integer) max, minInc, maxInc);<NEW_LINE>} else...
) : null, minInc, maxInc);
98,963
public void run() {<NEW_LINE>try {<NEW_LINE>configureLogging(true);<NEW_LINE>// Set the goquorum compatibility mode based on the genesis file<NEW_LINE>if (genesisFile != null) {<NEW_LINE>genesisConfigOptions = readGenesisConfigOptions();<NEW_LINE>if (genesisConfigOptions.isQuorum()) {<NEW_LINE>enableGoQuorumCompatibili...
e.getMessage(), e);
1,560,693
public static boolean runSample(AzureResourceManager azureResourceManager) {<NEW_LINE>final Region region = Region.US_WEST_CENTRAL;<NEW_LINE>// =================================================================<NEW_LINE>// List all virtual machine extension image publishers and<NEW_LINE>// list all virtual machine exten...
System.out.print("\n\n");
948,756
protected void initChannel(Channel ch) {<NEW_LINE>ChannelPipeline pipeline = ch.pipeline();<NEW_LINE>pipeline.addLast(new LoggingHandler());<NEW_LINE>pipeline.addLast("http-client-codec", new HttpClientCodec());<NEW_LINE>if (gzipEnabled) {<NEW_LINE>pipeline.addLast(encoderEventLoopGroup, "gzip-encoder", new GzipEncoder...
"http-object-aggregator", new HttpObjectAggregator(httpChunkSize));
282,741
public static double squaredDistance(float[] x, float[] y) {<NEW_LINE>if (x.length != y.length) {<NEW_LINE>throw new IllegalArgumentException("Input vector sizes are different.");<NEW_LINE>}<NEW_LINE>switch(x.length) {<NEW_LINE>case 2:<NEW_LINE>{<NEW_LINE>double d0 = (double) x[0] - (double) y[0];<NEW_LINE>double d1 = ...
+ d2 * d2 + d3 * d3;
1,035,647
public final BitWiseExpressionContext bitWiseExpression() throws RecognitionException {<NEW_LINE>BitWiseExpressionContext _localctx = new BitWiseExpressionContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 310, RULE_bitWiseExpression);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LIN...
_errHandler.recover(this, re);
462,406
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select (select p10 from SupportBean_S1#length(100000) where id = s0.id) as value from SupportBean_S0 as s0";<NEW_LINE><MASK><NEW_LINE>// preload with 10k events<NEW_LINE>for (int i = 0; i < 10000; i++) {<NEW_LINE>env.sendEventBean(new ...
env.compileDeployAddListenerMileZero(stmtText, "s0");
905,555
public Producer buildProducerProperties() {<NEW_LINE>PropertyMapper propertyMapper = PropertyMapper.get().alwaysApplyingWhenNonNull();<NEW_LINE>Producer properties = new Producer();<NEW_LINE>AzurePropertiesUtils.mergeAzureCommonProperties(this, this.producer, properties);<NEW_LINE>propertyMapper.from(this.getDomainName...
).to(properties::setDomainName);
1,528,790
private void writeMetadata(final Contentlet contentlet, final StringWriter stringWriter, final Map<String, Object> mapLowered) throws IOException, DotDataException {<NEW_LINE>if (Config.getBooleanProperty(WRITE_METADATA_ON_REINDEX, true)) {<NEW_LINE>final ContentletMetadata metadata = fileMetadataAPI.generateContentlet...
mapLowered.put(compositeKey, value);
125,610
final SuggestResult executeSuggest(SuggestRequest suggestRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(suggestRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
invoke(request, responseHandler, executionContext);
1,755,107
public void postConfig() {<NEW_LINE>super.postConfig();<NEW_LINE>Locale locale;<NEW_LINE>if ((localeLanguage == null) && (localeCountry == null)) {<NEW_LINE>locale = Locale.getDefault(Locale.Category.FORMAT);<NEW_LINE>} else if (localeLanguage == null) {<NEW_LINE>throw new PropertyException("", "localeLanguage", "Must ...
DateTimeFormatter.ofPattern(dateTimeFormat, locale);
388,007
@DB<NEW_LINE>public Project activateProject(final long projectId) {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>// check that the project exists<NEW_LINE>final ProjectVO project = getProject(projectId);<NEW_LINE>if (project == null) {<NEW_LINE>InvalidParameterValueException ex = new In...
InvalidParameterValueException("Can't activate the project in " + currentState + " state");
1,836,735
public void run() {<NEW_LINE>DocumentUtilities.setTypingModification(doc, true);<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>Action cutAction;<NEW_LINE>if (actionMap != null && (cutAction = actionMap.get(DefaultEditorKit.cutAction)) != null) {<NEW_LINE>Caret caret = target.getCaret();<NEW_LINE>int caretOffset = caret.getDo...
ActionMap actionMap = target.getActionMap();
515,295
public static void editStoryForResult(Activity activity, SiteModel site, LocalId localPostId, int storyIndex, boolean allStorySlidesAreEditable, boolean launchedFromGutenberg, String storyBlockId) {<NEW_LINE>if (site == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Intent intent = new Intent(activity, StoryComposerActiv...
KEY_POST_LOCAL_ID, localPostId.getValue());
1,660,089
private void validateTargetSpec(TargetNodeSpec spec, String arg, Cell owningCell) {<NEW_LINE>CanonicalCellName cellName = spec.getBuildFileSpec().getCellRelativeBaseName().getCellName();<NEW_LINE>ForwardRelativePath basePath = spec.getBuildFileSpec().getCellRelativeBaseName().getPath();<NEW_LINE>Path basePathPath = bas...
HumanReadableException("%s references non-existent directory %s", arg, basePath);
1,844,747
private void initComponents() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>contentComponent = new javax.swing.JPanel(new BorderLayout());<NEW_LINE>// NOI18N<NEW_LINE>add(contentComponent, BorderLayout.CENTER);<NEW_LINE>JToolBar toolBar = new JToolBar(JToolBar.VERTICAL);<NEW_LINE>toolBar.setFloatable(false);<NEW_L...
.getColor("Separator.foreground"))));
1,450,994
protected void recalculate() {<NEW_LINE>if (this.list_scroll_pane != null) {<NEW_LINE>main_panel.remove(this.list_scroll_pane);<NEW_LINE>}<NEW_LINE>main_panel.remove(this.list_empty_message);<NEW_LINE>// Create display list<NEW_LINE>this.list_model = new javax.swing.DefaultListModel<>();<NEW_LINE>this.list = new javax....
, 10, 10, 10));
1,712,787
public boolean isThumbnailAvailable(FileMetadata fileMetadata) {<NEW_LINE>// new and optimized logic:<NEW_LINE>// - check download permission here (should be cached - so it's free!)<NEW_LINE>// - only then check if the thumbnail is available/exists.<NEW_LINE>// then cache the results!<NEW_LINE>Long dataFileId = fileMet...
datafileThumbnailsMap.put(dataFileId, "");
295,974
public Purchases deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException {<NEW_LINE>JsonObject object = json.getAsJsonObject();<NEW_LINE>RealmList<OwnedCustomization> customizations = new RealmList<>();<NEW_LINE>Purchases purchases = new Purchases();<NEW_LINE>for (Strin...
"plan"), SubscriptionPlan.class));
1,692,740
protected void addCompletions(@NotNull CompletionParameters completionParameters, ProcessingContext processingContext, @NotNull CompletionResultSet completionResultSet) {<NEW_LINE>PsiElement psiElement = completionParameters.getOriginalPosition();<NEW_LINE>if (!Symfony2ProjectComponent.isEnabled(psiElement)) {<NEW_LINE...
methodReference = PhpElementsUtil.findMethodReferenceOnClassConstant(psiElement);
1,509,946
public boolean onTouchEvent(MotionEvent event) {<NEW_LINE>assertMainThread();<NEW_LINE>boolean handled = false;<NEW_LINE>if (isEnabled()) {<NEW_LINE>// Iterate drawable from last to first to respect drawing order.<NEW_LINE>for (int i = ((mDrawableMountItems == null) ? 0 : mDrawableMountItems.size()) - 1; i >= 0; i--) {...
item = mDrawableMountItems.valueAt(i);
662,918
private boolean sendAckTuple(Tuple input) {<NEW_LINE>boolean ret = false;<NEW_LINE>Integer pendingCount;<NEW_LINE>synchronized (pendingTuples) {<NEW_LINE>pendingCount = pendingTuples.get(input);<NEW_LINE>}<NEW_LINE>if (pendingCount == null || pendingCount <= 0) {<NEW_LINE>long ack_val = 0L;<NEW_LINE>Object <MASK><NEW_L...
pend_val = pendingAcks.remove(input);
1,809,700
public void actionPerformed(AnActionEvent e) {<NEW_LINE>DataContext dataContext = e.getDataContext();<NEW_LINE>final Project project = dataContext.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project == null)<NEW_LINE>return;<NEW_LINE>PsiDocumentManager.getInstance(project).commitAllDocuments();<NEW_LINE>Editor editor...
dataContext.getData(PlatformDataKeys.EDITOR);
343,965
public static void main(String[] args) throws Exception {<NEW_LINE>String fileName = args[0];<NEW_LINE>boolean useJExtract = false;<NEW_LINE>if (args.length > 1) {<NEW_LINE>if (args[1].toLowerCase().trim().equals("jextract")) {<NEW_LINE>useJExtract = true;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>ImageFactory factory = null;<NEW...
getClass().getName());
1,546,252
private Mono<Response<Flux<ByteBuffer>>> batchUpdateWithResponseAsync(String resourceGroupName, String serverName, ConfigurationListForBatchUpdate parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint()...
error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
1,465,082
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.ibm.jbatch.container.services.impl.AbstractPersistenceManagerImpl<NEW_LINE>* #init(com.ibm.jbatch.container.IBatchConfig)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void init(IBatchConfig batchConfig) throws BatchContainerServiceException {<NEW_L...
log(INFO, "Error retrieving Request Tracing service " + "during initialisation of JBatchJDBCPersistenceManager - NullPointerException");
1,587,344
public static void drawChessboard(Graphics2D g2, WorldToCameraToPixel fiducialToPixel, int numRows, int numCols, double squareWidth) {<NEW_LINE>Point3D_F64 fidPt = new Point3D_F64();<NEW_LINE>Point2D_F64 pixel0 = new Point2D_F64();<NEW_LINE>Point2D_F64 pixel1 = new Point2D_F64();<NEW_LINE>Point2D_F64 pixel2 = new Point...
) (pixel3.y + 0.5);
1,233,938
protected void generateKeyStore(File keyStore, String keyStoreAlias, String keyStorePassword, String keyPassword, String distinguishedName) throws MojoExecutionException, MojoFailureException {<NEW_LINE>getLog().info("Generating keystore in: " + keyStore);<NEW_LINE>try {<NEW_LINE>// generated folder if it does not exis...
Process p = pb.start();
1,398,103
protected void extract(CrawlURI curi, CharSequence cs) {<NEW_LINE>Source source = new Source(cs);<NEW_LINE>List<Element> elements = <MASK><NEW_LINE>for (Element element : elements) {<NEW_LINE>String elementName = element.getName();<NEW_LINE>Attributes attributes;<NEW_LINE>if (elementName.equals(HTMLElementName.META)) {...
source.findAllElements(StartTagType.NORMAL);
725,627
private void createOtherMenuItem(final Menu menu) {<NEW_LINE>final IFileStore file = getFileResource();<NEW_LINE>if (file == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>new MenuItem(menu, SWT.SEPARATOR);<NEW_LINE>final MenuItem menuItem = new MenuItem(menu, SWT.PUSH);<NEW_LINE>menuItem.setText(IDEWorkbenchMessages.Ope...
IEditorDescriptor editor = dialog.getSelectedEditor();
1,497,548
private void checkReactionsInMessage(int positionInAdapter, ViewHolderMessageChat holder, long chatId, AndroidMegaChatMessage megaMessage) {<NEW_LINE>if (holder == null) {<NEW_LINE>holder = (ViewHolderMessageChat) listFragment.findViewHolderForAdapterPosition(positionInAdapter);<NEW_LINE>if (holder == null) {<NEW_LINE>...
getMessage().getMsgId());
1,850,665
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field("_index", index);<NEW_LINE>if (type != null) {<NEW_LINE>builder.field("_type", type);<NEW_LINE>}<NEW_LINE>if (id != null)<NEW_LINE>builder.field("_id", id);<NEW_LINE>if (...
"min_doc_freq", "max_doc_freq", "min_word_length", "max_word_length" };
988,656
private static void generateFieldMetaAttributeFunction(final StringBuilder sb, final Token token, final String containingStructName, final String outermostStruct) {<NEW_LINE>final Encoding encoding = token.encoding();<NEW_LINE>final String epoch = encoding.epoch() == null <MASK><NEW_LINE>final String timeUnit = encodin...
? "" : encoding.epoch();
992,416
public void readFields(DataInput in) throws IOException {<NEW_LINE>if (!isTypeRead) {<NEW_LINE>type = TableType.valueOf(Text.readString(in));<NEW_LINE>isTypeRead = true;<NEW_LINE>}<NEW_LINE>super.readFields(in);<NEW_LINE>this.id = in.readLong();<NEW_LINE>this.name = Text.readString(in);<NEW_LINE>List<Column> keys = Lis...
int columnCount = in.readInt();
371,093
public static List<String> uniquePathSubstrings(List<String> paths) {<NEW_LINE>List<Stack<String>> stackList = new ArrayList<>(paths.size());<NEW_LINE>// prepare data structures<NEW_LINE>for (String path : paths) {<NEW_LINE>List<String> directories = Arrays.asList(path.split(Pattern.<MASK><NEW_LINE>Stack<String> stack ...
quote(File.separator)));
1,369,658
public static Node fromObject(final Object obj) {<NEW_LINE>final Map<String, Object> mapObj = (Map<String, Object>) obj;<NEW_LINE>final String id = (String) mapObj.get("id");<NEW_LINE>final Node node = new Node(id);<NEW_LINE>final String jobSource = (String) mapObj.get("jobSource");<NEW_LINE>final String propSource = (...
String) mapObj.get("jobType");
753,715
ESeq info() {<NEW_LINE>ESeq rep = ERT.NIL;<NEW_LINE>ETable table = this;<NEW_LINE>rep = rep.cons(new ETuple2(Native.am_owner, table.owner_pid()));<NEW_LINE>rep = rep.cons(new ETuple2(Native.am_named_table, ERT.box(table.is_named)));<NEW_LINE>rep = rep.cons(new ETuple2(Native<MASK><NEW_LINE>if (table.heirPID != null)<NE...
.am_name, table.aname));
356,401
public Predicate<T> predicate(BinaryExpression expression) {<NEW_LINE>switch(expression.operator) {<NEW_LINE>case and:<NEW_LINE>return predicate(expression.left).and(predicate(expression.right));<NEW_LINE>case or:<NEW_LINE>return predicate(expression.left).or(predicate(expression.right));<NEW_LINE>case equalTo:<NEW_LIN...
<>(properties(expression));
217,875
protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, Reflect builtinEnum) {<NEW_LINE>assert context.getEcmaScriptVersion() >= 6;<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case apply:<NEW_LINE>return ReflectApplyNodeGen.create(context, builtin, args().fixedArgs(3).createA...
3).createArgumentNodes(context));
39,977
public void removeFavorite(Long nodeId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'nodeId' is set<NEW_LINE>if (nodeId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'nodeId' when calling removeFavorite"...
localVarAccept, localVarContentType, localVarAuthNames, null);
143,663
protected void doCommit(TableMetadata base, TableMetadata metadata) {<NEW_LINE>String newMetadataLocation = writeNewMetadata(metadata, currentVersion() + 1);<NEW_LINE>if (base == null) {<NEW_LINE>// create a new table, the metadataKey should be absent<NEW_LINE>if (!catalog.putNewProperties(tableObject, buildProperties(...
Preconditions.checkNotNull(cachedETag, "E-Tag must be not null when update table");
67,270
private ExecutorService buildExecutor(int numberOfTasks) {<NEW_LINE>int threadCount = Math.min(numberOfTasks, myThreadCount);<NEW_LINE>assert (threadCount > 0);<NEW_LINE>ourLog.info(myProcessName + " with {} threads", threadCount);<NEW_LINE>LinkedBlockingQueue<Runnable> executorQueue <MASK><NEW_LINE>BasicThreadFactory ...
= new LinkedBlockingQueue<>(MAX_POOL_SIZE);
1,679,405
private void preinitJavaInfrastructure() throws IOException {<NEW_LINE>if (needClassPathInit) {<NEW_LINE>try {<NEW_LINE>ClasspathInfo cpInfo = mappings.runReadActionWhenReady(new MetadataModelAction<EntityMappingsMetadata, ClasspathInfo>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ClasspathInfo run(EntityMappingsM...
getClassPath(PathKind.SOURCE) });
318,786
public PatchOperation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PatchOperation patchOperation = new PatchOperation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<...
String currentParentElement = context.getCurrentParentElement();
1,228,568
protected void encodeDefaultContent(FacesContext context, Chip chip) throws IOException {<NEW_LINE><MASK><NEW_LINE>if (chip.getImage() != null) {<NEW_LINE>writer.startElement("img", null);<NEW_LINE>writer.writeAttribute("src", chip.getImage(), null);<NEW_LINE>writer.endElement("img");<NEW_LINE>} else if (chip.getIcon()...
ResponseWriter writer = context.getResponseWriter();
1,677,501
protected int initialAssignToNearestCluster() {<NEW_LINE>assert k == means.length;<NEW_LINE>for (DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {<NEW_LINE>NumberVector fv = relation.get(it);<NEW_LINE>double[] us = usim.get(it);<NEW_LINE>// Check all (other) means:<NEW_LINE>double best = us[0] = similarit...
(maxIndex).add(it);
1,198,634
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndTypes(sources, 4, String.class, String.class, String.class, String.class, Map.class);<NEW_LINE>final Map<String, Object> <MASK><NEW_LINE>final String ur...
params = new LinkedHashMap<>();
1,229,677
private void browseButtonActionPerformed(ActionEvent evt) {<NEW_LINE>if (file == null) {<NEW_LINE>// Panel has not initialised fully yet.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ResourceHolder rh = i18nString.getSupport().getResourceHolder();<NEW_LINE>DataObject template;<NEW_LINE>try {<NEW_LINE>Class resourceClass = <MAS...
rh.getResourceClasses()[0];