text:
<!doctype html>

<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1, user-scalable=no" name="viewport">
<title>Menu</title>

<link rel="stylesheet" type="text/css" href="../../../assets/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="../../typography/css/typography.css">
<link rel="stylesheet" type="text/css" href="../css/navbar.css">
<link rel="stylesheet" type="text/css" href="../../dropdown/css/dropdown.css">
<link rel="stylesheet" type="text/css" href="../../button/css/button.css">
<link rel="stylesheet" type="text/css" href="../../icons/css/google-icons.css">

          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            Toggle navigation

          </button>
          Brand

Link (current)

Link

              Dropdown

Action

Another action

Something else here

Separated link

One more separated link


text:
package org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair;

import org.apache.hadoop.security.GroupMappingServiceProvider;

import java.io.IOException;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;

/**
 * Group Mapping class used for test cases. Returns only primary group of the
 * given user
 */
public class PrimaryGroupMapping implements GroupMappingServiceProvider {

  @Override
  public List<String> getGroups(String user) {
    return Arrays.asList(user + "group");
  }

  @Override
  public void cacheGroupsRefresh() throws IOException {
    throw new UnsupportedOperationException();
  }

  @Override
  public void cacheGroupsAdd(List<String> groups) throws IOException {
    throw new UnsupportedOperationException();
  }

  @Override
  public Set<String> getGroupsSet(String user) throws IOException {
    return Collections.singleton(user + "group");
  }
}

redpajama_set_name: RedPajamaGithub


text:
<?xml version="1.0" encoding="UTF-8"?>
<Tokens version="1.0">
	<File path="Classes/SESGetSendStatisticsResponse.html">

		<Token>
			<TokenIdentifier>//apple_ref/occ/cl/SESGetSendStatisticsResponse</TokenIdentifier>
			<Abstract type="html">Get Send Statistics Result</Abstract>
			<DeclaredIn>SESGetSendStatisticsResponse.h</DeclaredIn>

			<NodeRef refid="1132"/>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/SESGetSendStatisticsResponse/setException:</TokenIdentifier>
			<Abstract type="html">If an exception was thrown, this will return the exception.</Abstract>
			<DeclaredIn>SESGetSendStatisticsResponse.h</DeclaredIn>

			<Declaration>- (void)setException:(AmazonServiceException *)theException</Declaration>

			<Anchor>//api/name/setException:</Anchor>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/SESGetSendStatisticsResponse/init</TokenIdentifier>
			<Abstract type="html">Default constructor for a new  object.  Callers should use the
property methods to initialize this object after creating it.</Abstract>
			<DeclaredIn>SESGetSendStatisticsResponse.h</DeclaredIn>

			<Declaration>- (id)init</Declaration>

			<Anchor>//api/name/init</Anchor>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/SESGetSendStatisticsResponse/setSendDataPoints:</TokenIdentifier>
			<Abstract type="html">A list of data points, each of which represents 15 minutes of
activity.</Abstract>
			<DeclaredIn>SESGetSendStatisticsResponse.h</DeclaredIn>

			<Declaration>@property (nonatomic, retain) NSMutableArray *sendDataPoints</Declaration>

			<Anchor>//api/name/sendDataPoints</Anchor>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instp/SESGetSendStatisticsResponse/sendDataPoints</TokenIdentifier>
			<Abstract type="html">A list of data points, each of which represents 15 minutes of
activity.</Abstract>
			<DeclaredIn>SESGetSendStatisticsResponse.h</DeclaredIn>

			<Declaration>@property (nonatomic, retain) NSMutableArray *sendDataPoints</Declaration>

			<Anchor>//api/name/sendDataPoints</Anchor>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/SESGetSendStatisticsResponse/sendDataPointsObjectAtIndex:</TokenIdentifier>
			<Abstract type="html">Returns a value from the sendDataPoints array for the specified index</Abstract>
			<DeclaredIn>SESGetSendStatisticsResponse.h</DeclaredIn>

			<Declaration>- (SESSendDataPoint *)sendDataPointsObjectAtIndex:(int)index</Declaration>

			<Anchor>//api/name/sendDataPointsObjectAtIndex:</Anchor>
		</Token>

		<Token>
			<TokenIdentifier>//apple_ref/occ/instm/SESGetSendStatisticsResponse/description</TokenIdentifier>
			<Abstract type="html">Returns a string representation of this object; useful for testing and
debugging.</Abstract>
			<DeclaredIn>SESGetSendStatisticsResponse.h</DeclaredIn>

			<Declaration>- (NSString *)description</Declaration>

			<ReturnValue><Abstract type="html">A string representation of this object.</Abstract></ReturnValue>
			<Anchor>//api/name/description</Anchor>
		</Token>

	</File>
</Tokens>


text:
ROOT_FOLDER="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPOSITORIES_FOLDER="$ROOT_FOLDER/repositories"

[ ! -e "$REPOSITORIES_FOLDER" ] && mkdir $REPOSITORIES_FOLDER

echo "Downloading missing repositories..."

pushd $REPOSITORIES_FOLDER &> /dev/null

if [ ! -e "$REPOSITORIES_FOLDER/OD4D" ]; then
  git clone https://github.com/W3CBrasil/OD4D.git
fi

if [ ! -e "$REPOSITORIES_FOLDER/od4d.org" ]; then
  git clone https://github.com/W3CBrasil/od4d.org.git
fi

if [ ! -e "$REPOSITORIES_FOLDER/rss-to-turtle" ]; then
  git clone https://github.com/W3CBrasil/od4d-rss-to-turtle.git rss-to-turtle
fi

if [ ! -e "$REPOSITORIES_FOLDER/semantic-repository" ]; then
  git clone https://github.com/W3CBrasil/od4d-semantic-repository.git semantic-repository
fi

if [ ! -e "$REPOSITORIES_FOLDER/rss-to-cms" ]; then
  git clone https://github.com/W3CBrasil/od4d-rss-to-cms.git rss-to-cms
fi

popd &> /dev/null

echo "Done dowloading repositories."

echo "Installing required vagrant plugins..."

vagrant plugin install vagrant-cachier
vagrant plugin install vagrant-hostmanager
vagrant plugin install copy_my_conf

echo "Vagrant plugins installed."

echo "Starting development environment..."

vagrant up

echo "Development environment ready."

echo "To start using the development environment use \"vagrant ssh\"."
echo "You will find all repositories under the \"/project\" directory."


text:
#region License Header

//

#endregion

namespace ProCenter.Domain.PatientModule
{
    #region Using Statements

    using System;

    using Pillar.Domain.Primitives;

    using ProCenter.Primitive;

    #endregion

    /// <summary>Class for creating patients.</summary>
    public class PatientFactory : IPatientFactory
    {
        #region Public Methods and Operators

        /// <summary>
        /// Creates the specified person name.
        /// </summary>
        /// <param name="organizationKey">Organization Key.</param>
        /// <param name="personName">Name of the person.</param>
        /// <param name="dateOfBirth">The date of birth.</param>
        /// <param name="gender">The gender.</param>
        /// <param name="email">The email.</param>
        /// <returns>
        /// A <see cref="Patient" />.
        /// </returns>
        public Patient Create ( Guid organizationKey, PersonName personName, DateTime? dateOfBirth, Gender gender, Email email = null )
        {
            var patient = new Patient ( organizationKey, personName, dateOfBirth, gender, email );
            return patient;
        }

        #endregion
    }
}


text:
package com.adsnative.sampleads;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.RelativeLayout;

import com.polymorph.ads.PMAdListener;
import com.polymorph.ads.PMAdViewBinder;
import com.polymorph.ads.PMBannerAdListener;
import com.polymorph.ads.PMBannerView;
import com.polymorph.ads.AdHelper;
import com.polymorph.ads.AdHelper.AdTypes;
import com.polymorph.ads.NativeAdUnit;
import com.polymorph.ads.PMUnifiedAd;
import com.polymorph.util.PMLog;

import java.net.URLEncoder;

public class BannerAdFragment extends Fragment {

    int width;
    int height;
    private PMUnifiedAd pmUnifiedAd;
    private String AD_UNIT_ID = "ydxcoGD-SPr_w7AItL5VRHVXwZle6TD2S6I4MKf7";

    public void setAdUnitId(String AD_UNIT_ID) {
        if (AD_UNIT_ID != null && !
                AD_UNIT_ID.isEmpty()) {
            PMLog.e("Placement id: " + AD_UNIT_ID);
            if (AD_UNIT_ID.contains(",")) {
                String a[] = AD_UNIT_ID.split(",");
                width = Integer.parseInt(a[0]);
                height = Integer.parseInt(a[1]);
            } else {
                this.AD_UNIT_ID = URLEncoder.encode(AD_UNIT_ID);
            }
        }
    }

    @Override
    public View onCreateView(final LayoutInflater inflater,
                             final ViewGroup container,
                             final Bundle savedInstanceState) {
        super.onCreateView(inflater, container, savedInstanceState);
        final View nativeView = inflater.inflate(R.layout.fragment_native_ad, container, false);
        final RelativeLayout nativeAdContainer = (RelativeLayout) nativeView.findViewById(R.id.native_ad);
        pmUnifiedAd = new PMUnifiedAd(getActivity(), AD_UNIT_ID, AdTypes.AD_TYPE_ALL);
        pmUnifiedAd.setBannerSize(AdHelper.AdSize.BANNER_300x250);
        final PMAdViewBinder anAdViewBinder = new PMAdViewBinder.Builder(R.layout.fan_native_layout)
                .bindAssetsWithDefaultKeys(getActivity())
                .bindAdChoices(R.id.an_ad_choices)
                .build();
        pmUnifiedAd.registerViewBinder(anAdViewBinder);
        pmUnifiedAd.setBannerAdListener(new PMBannerAdListener() {
            @Override
            public void onBannerAdLoaded(PMBannerView bannerView) {
                PMLog.e("onBannerAdLoaded");
                nativeAdContainer.removeAllViews();
                nativeAdContainer.addView(bannerView, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT, Gravity.CENTER));
            }

            @Override
            public void onBannerReceived(PMBannerView bannerView) {

            }

            @Override
            public void onBannerAdClicked(PMBannerView bannerView) {
                PMLog.e("onBannerAdClicked");
            }

            @Override
            public void onBannerAdFailed(String message) {
                PMLog.e(message);
            }

        });
        pmUnifiedAd.setNativeAdListener(new PMAdListener() {
            @Override
            public void onAdLoaded(NativeAdUnit nativeAdUnit) {
                PMLog.e("onNativeLoaded");
                nativeAdContainer.removeAllViews();
                nativeAdContainer.addView(pmUnifiedAd.renderAdView(nativeAdUnit));
            }

            @Override
            public void onAdFailed(String message) {

            }

            @Override
            public void onAdImpressionRecorded() {

            }

            @Override
            public boolean onAdClicked(NativeAdUnit nativeAdUnit) {
                return false;
            }
        });
        pmUnifiedAd.loadAd();

        return nativeView;

    }

    @Override
    public void onDestroyView() {
        // You must call this or the ad adapter may cause a memory leak.
        pmUnifiedAd.destroy();
        pmUnifiedAd.destroyBanner();
        super.onDestroyView();
    }

    @Override
    public void onResume() {
        // AdsNative recommends loading new ads when the user returns to your activity.
        // pmUnifiedAd.loadAd();
        super.onResume();
    }
}


text:
package org.encuestame.mvc.test.view;

import org.encuestame.mvc.page.DashBoardController;
import org.encuestame.mvc.page.PictureProfileFactoryController;
import org.encuestame.mvc.test.config.AbstractMvcUnitBeans;
import org.encuestame.persistence.domain.HashTag;
import org.encuestame.persistence.domain.security.UserAccount;
import org.encuestame.utils.categories.test.DefaultTest;
import org.encuestame.utils.enums.EnMePermission;
import org.encuestame.utils.enums.MethodJson;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.security.authentication.TestingAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.servlet.ModelAndView;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import static org.springframework.test.web.ModelAndViewAssert.assertViewName;

/**
 * Dashboard Controller TestCase.
 */
@Category(DefaultTest.class)
public class DashBoardControllerTestCase extends AbstractMvcUnitBeans{

    /**
     *
     */
    @Autowired
    private DashBoardController dashBoardController;

    UserAccount user;

    /**
     *
     */
    @Before
     public void initMVc() {
        this.user = createUserAccount("jota", createAccount());
     }

    /**
     *
     * @throws Exception
     */
    @Test
    public void testDashBoardController() throws Exception {
        this.quickLogin();
        logPrint(SecurityContextHolder.getContext().getAuthentication());
        request = new MockHttpServletRequest(MethodJson.GET.toString(), "/user/dashboard");
        final ModelAndView mav = handlerAdapter.handle(request, response, dashBoardController);
        assertViewName(mav, "dashboard");
        logPrint(mav.isEmpty());
        logPrint(mav.getModelMap().size());
        logPrint(mav.getModelMap().toString());
        Assert.assertNotNull(mav.getModelMap().get("userAccount"));
        Assert.assertNotNull(mav.getModelMap().get("i18n"));
        HashMap<String, String> i18n = (HashMap<String, String>) mav.getModelMap().get("i18n");
        Assert.assertNotNull(i18n.get("dashboard_title"));
    }

}


text:
class Solution:
    def rectCover(self, number):
        # write code here
        if number == 0: return 0
        if number == 1: return 1
        if number == 2: return 2
        array = [0, 1, 2]
        for i in range(3, number+1):
            array.append(array[i-1] + array[i-2])
        return array[-1]


text:
.class public interface abstract Lo/ag$if;
.super Ljava/lang/Object;

# interfaces
.implements Lo/ᓛ;
.implements Lo/ᔫ;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lo/ag;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x609
    name = "if"
.end annotation

# virtual methods
.method public abstract ˋ()Lo/ae;
.end method


text:
class PropertiesController < ApplicationController
  def index
    @agency = Agency.find(params[:agency_id])
    @properties = @agency.properties.paginate(:page => params[:page]).order("created_at DESC")
  end

  def show
    @property = Property.find(params[:id])
    console
  end
end


text:
/*************************************************************************/
/*  link_button.h                                                        */
/*************************************************************************/
/*                       This file is part of:                           */
/*                           GODOT ENGINE                                */
/*                      https://godotengine.org                          */
/*************************************************************************/
/* Copyright (c) 2007-2021 Juan Linietsky, Ariel Manzur.                 */
/* Copyright (c) 2014-2021 Godot Engine contributors (cf. AUTHORS.md).   */
/*                                                                       */
/* Permission is hereby granted, free of charge, to any person obtaining */
/* a copy of this software and associated documentation files (the       */
/* "Software"), to deal in the Software without restriction, including   */
/* without limitation the rights to use, copy, modify, merge, publish,   */
/* distribute, sublicense, and/or sell copies of the Software, and to    */
/* permit persons to whom the Software is furnished to do so, subject to */
/* the following conditions:                                             */
/*                                                                       */
/* The above copyright notice and this permission notice shall be        */
/* included in all copies or substantial portions of the Software.       */
/*                                                                       */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY  */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,  */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE     */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
/*************************************************************************/

#ifndef LINKBUTTON_H
#define LINKBUTTON_H

#include "scene/gui/base_button.h"
#include "scene/resources/bit_map.h"
#include "scene/resources/text_line.h"

class LinkButton : public BaseButton {
	GDCLASS(LinkButton, BaseButton);

public:
	enum UnderlineMode {
		UNDERLINE_MODE_ALWAYS,
		UNDERLINE_MODE_ON_HOVER,
		UNDERLINE_MODE_NEVER
	};

private:
	String text;
	String xl_text;
	Ref<TextLine> text_buf;
	UnderlineMode underline_mode = UNDERLINE_MODE_ALWAYS;

	Dictionary opentype_features;
	String language;
	TextDirection text_direction = TEXT_DIRECTION_AUTO;
	Control::StructuredTextParser st_parser = STRUCTURED_TEXT_DEFAULT;
	Array st_args;

	void _shape();

protected:
	virtual Size2 get_minimum_size() const override;
	void _notification(int p_what);
	static void _bind_methods();

	bool _set(const StringName &p_name, const Variant &p_value);
	bool _get(const StringName &p_name, Variant &r_ret) const;
	void _get_property_list(List<PropertyInfo> *p_list) const;

public:
	void set_text(const String &p_text);
	String get_text() const;

	void set_structured_text_bidi_override(Control::StructuredTextParser p_parser);
	Control::StructuredTextParser get_structured_text_bidi_override() const;

	void set_structured_text_bidi_override_options(Array p_args);
	Array get_structured_text_bidi_override_options() const;

	void set_text_direction(TextDirection p_text_direction);
	TextDirection get_text_direction() const;

	void set_opentype_feature(const String &p_name, int p_value);
	int get_opentype_feature(const String &p_name) const;
	void clear_opentype_features();

	void set_language(const String &p_language);
	String get_language() const;

	void set_underline_mode(UnderlineMode p_underline_mode);
	UnderlineMode get_underline_mode() const;

	LinkButton();
};

VARIANT_ENUM_CAST(LinkButton::UnderlineMode);

#endif // LINKBUTTON_H