text:
class WallsController < ApplicationController
  before_action :set_wall, only: [:show, :edit, :update, :destroy]

  # GET /walls
  # GET /walls.json
  def index
    @walls = Wall.all
  end

  # GET /walls/1
  # GET /walls/1.json
  def show
  end

  # GET /walls/new
  def new
    @wall = Wall.new
  end

  # GET /walls/1/edit
  def edit
  end

  # POST /walls
  # POST /walls.json
  def create
    @wall = Wall.new(wall_params)

    respond_to do |format|
      if @wall.save
        format.html { redirect_to @wall, notice: 'Wall was successfully created.' }
        format.json { render :show, status: :created, location: @wall }
      else
        format.html { render :new }
        format.json { render json: @wall.errors, status: :unprocessable_entity }
      end
    end
  end

  # PATCH/PUT /walls/1
  # PATCH/PUT /walls/1.json
  def update
    respond_to do |format|
      if @wall.update(wall_params)
        format.html { redirect_to @wall, notice: 'Wall was successfully updated.' }
        format.json { render :show, status: :ok, location: @wall }
      else
        format.html { render :edit }
        format.json { render json: @wall.errors, status: :unprocessable_entity }
      end
    end
  end

  # DELETE /walls/1
  # DELETE /walls/1.json
  def destroy
    @wall.destroy
    respond_to do |format|
      format.html { redirect_to walls_url, notice: 'Wall was successfully destroyed.' }
      format.json { head :no_content }
    end
  end

  private
    # Use callbacks to share common setup or constraints between actions.
    def set_wall
      @wall = Wall.find(params[:id])
    end

    # Never trust parameters from the scary internet, only allow the white list through.
    def wall_params
      params[:wall]
    end
end


text:
module FactoryBot
  class Callback
    attr_reader :name

    def initialize(name, block)
      @name = name.to_sym
      @block = block
    end

    def run(instance, evaluator)
      case block.arity
      when 1, -1, -2 then syntax_runner.instance_exec(instance, &block)
      when 2 then syntax_runner.instance_exec(instance, evaluator, &block)
      else syntax_runner.instance_exec(&block)
      end
    end

    def ==(other)
      name == other.name &&
        block == other.block
    end

    protected

    attr_reader :block

    private

    def syntax_runner
      @syntax_runner ||= SyntaxRunner.new
    end
  end
end

redpajama_set_name: RedPajamaGithub


text:
if ( typeof exports === 'object' && typeof exports.nodeName !== 'string' && typeof define !== 'function' ) {
    var define = function( factory ) {
        factory( require, exports, module );
    };
}

define( function( require, exports, module ) {
    var widgets = [
        require( '../widget/note/notewidget' ),
        require( '../widget/select-desktop/selectpicker' ),
        require( '../widget/select-mobile/selectpicker' ),
        require( '../widget/select-autocomplete/autocomplete' ),
        //require( '../widget/geo-esri/geopicker' ),
        require( '../widget/geo/geopicker' ),
        require( '../widget/textarea/textarea' ),
        require( '../widget/table/tablewidget' ),
        require( '../widget/radio/radiopicker' ),
        require( '../widget/date/datepicker-extended' ),
        require( '../widget/time/timepicker-extended' ),
        require( '../widget/datetime/datetimepicker-extended' ),
        require( '../widget/compact/compactpicker' ),
        require( '../widget/file/filepicker' ),
        require( '../widget/select-likert/likertitem' ),
        require( '../widget/distress/distresspicker' ),
        require( '../widget/horizontal-choices/horizontalchoices' ),
        require( '../widget/analog-scale/analog-scalepicker' ),
        require( '../widget/big-image/image-viewer' ),
        require( '../widget/comment/commentwidget' ),
    ];

    module.exports = widgets;
} );


text:
<!DOCTYPE html>

<meta charset="utf-8">

<title>Invoice</title>
<meta name="description" content="Flatter - Flat Admin Theme">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="image/touch/apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="image/touch/apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="image/touch/apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="image/touch/apple-touch-icon-57x57-precomposed.png">
<link rel="shortcut icon" href="image/touch/apple-touch-icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="lib/offlinejs/themes/offline-theme-dark.css">
<link rel="stylesheet" href="css/bootstrap-override.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/style.css">

                    flatter

					<form class="navbar-form navbar-left margintop" role="search">

				          <input type="text" class="form-control search" placeholder="Search">

			        </form>

			          Settings

Fixed sidebar

Fixed Navbar

Notification

John sent you friend request

Sam sent important mail

You have pending job

Received $1826 from client

			          John

 Notification  5

 Profile

 Settings

 Logout

Home

						            Dashboard
						            5

						            Elements

Elements

General

Typography

Buttons

Widgets

Slider

Panels

Alerts

Tabs & Accordions

Modals & Popover

						            Components

Components

Grids

Calendar

Gallery

Draggable Portlet

Font Awesome

						            Forms

Forms

Form Elements

Form Validation

Form Wizards

Advance Components

File Upload

						            Mail

Mail

Inbox

Compose

View

						            Tables

Tables

Basic Tables

Data Tables

Editable Tables

						            Charts

Charts

C3 Charts

Morris Charts

Flot Charts

Chartsjs

						            Maps

Maps

Google Maps

Vector Maps

						            Pages

Pages

Login

Register

404 error

500 error

Lockscreen

Pricing Table

Timeline

Invoice

MailApp Inbox

MailApp Compose

MailApp View

Blank Page

Users

						            Users
						            5

Email

						            Inbox
						            10

						            Compose

						            View

Invoice

PAID

INVOICE-1234578

									14 April 2014

From : Dynofy

350 Rhode Island Street

Suite 240, San Francisco

California, 94103

Phone: 415-767-3600

Email: [email protected]

To : John Doe

425 Market Street

Suite 2200, San Francisco

California, 94105

Phone: 415-676-3600

Email: [email protected]

Payment details

Date: 14 April 2014

VAT: DK888-777

Total Amount: $1019

Account Name: Flatter

						          #
						          Item
						          Quantity
						          Unit Price
						          Total Price

						          1
						          Flatter Theme
						          10
						          $18
						          $180

						          2
						          Flat Icons
						          6
						          $59
						          $254

						          3
						          Wordpress version
						          4
						          $95
						          $285

						          4
						          Server Deployment
						          1
						          $300
						          $300

THANK YOU!

							<button class="btn btn-success" id="invoice-print"> Print Invoice</button>
							<button class="btn btn-danger"> Mail Invoice</button>

Subtotal : $1019

Discount (10%) : $101

VAT (8%) : $73

Total : $991


text:
package de.espend.idea.laravel.stub;

import com.intellij.psi.PsiFile;
import com.intellij.util.indexing.*;
import com.intellij.util.io.DataExternalizer;
import com.intellij.util.io.EnumeratorStringDescriptor;
import com.intellij.util.io.KeyDescriptor;
import com.intellij.util.io.VoidDataExternalizer;
import com.jetbrains.php.blade.BladeFileType;
import com.jetbrains.php.blade.psi.BladeFileImpl;
import de.espend.idea.laravel.blade.util.BladePsiUtil;
import gnu.trove.THashMap;
import org.jetbrains.annotations.NotNull;

import java.util.Map;

/**
 * @author Daniel Espendiller <daniel@espendiller.net>
 */
public class BladeIncludeStubIndex extends FileBasedIndexExtension<String, Void> {

    public static final ID<String, Void> KEY = ID.create("de.espend.idea.laravel.blade.include");
    private final KeyDescriptor<String> myKeyDescriptor = new EnumeratorStringDescriptor();

    @NotNull
    @Override
    public ID<String, Void> getName() {
        return KEY;
    }

    @NotNull
    @Override
    public DataIndexer<String, Void, FileContent> getIndexer() {
        return fileContent -> {
            Map<String, Void> map = new THashMap<>();
            PsiFile psiFile = fileContent.getPsiFile();

            if(!(psiFile instanceof BladeFileImpl)) {
                return map;
            }

            BladePsiUtil.visitIncludes(psiFile, pair ->
                map.put(pair.getFirst(), null)
            );

            return map;
        };
    }

    @NotNull
    @Override
    public KeyDescriptor<String> getKeyDescriptor() {
        return this.myKeyDescriptor;
    }

    @NotNull
    @Override
    public DataExternalizer<Void> getValueExternalizer() {
        return VoidDataExternalizer.INSTANCE;
    }

    @NotNull
    @Override
    public FileBasedIndex.InputFilter getInputFilter() {
        return file -> file.getFileType() == BladeFileType.INSTANCE;
    }

    @Override
    public boolean dependsOnFileContent() {
        return true;
    }

    @Override
    public int getVersion() {
        return 1;
    }
}


text:
<?php

declare(strict_types=1);

namespace Sylius\Component\Promotion\Model;

use Sylius\Component\Resource\Model\ResourceInterface;

interface CatalogPromotionActionInterface extends ResourceInterface
{
    public const TYPE_PERCENTAGE_DISCOUNT = 'percentage_discount';

    public function setType(?string $type): void;

    public function setConfiguration(array $configuration): void;

    public function setCatalogPromotion(?CatalogPromotionInterface $catalogPromotion): void;

    public function getType(): ?string;

    public function getConfiguration(): array;

    public function getCatalogPromotion(): ?CatalogPromotionInterface;
}


text:
.class final Lo/Hx$ˊ;
.super Ljava/util/AbstractList;
.source ""

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

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x18
    name = "\u02ca"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/util/AbstractList<Ljava/lang/Character;>;"
    }
.end annotation

# instance fields
.field private final ˊ:Ljava/lang/CharSequence;

# direct methods
.method constructor <init>(Ljava/lang/CharSequence;)V
    .locals 0

    .line 760
    invoke-direct {p0}, Ljava/util/AbstractList;-><init>()V

    .line 761
    iput-object p1, p0, Lo/Hx$ˊ;->ˊ:Ljava/lang/CharSequence;

    .line 762
    return-void
.end method

# virtual methods
.method public synthetic get(I)Ljava/lang/Object;
    .locals 1

    .line 756
    invoke-virtual {p0, p1}, Lo/Hx$ˊ;->ˊ(I)Ljava/lang/Character;

    move-result-object v0

    return-object v0
.end method

.method public size()I
    .locals 1

    .line 770
    iget-object v0, p0, Lo/Hx$ˊ;->ˊ:Ljava/lang/CharSequence;

    invoke-interface {v0}, Ljava/lang/CharSequence;->length()I

    move-result v0

    return v0
.end method

.method public ˊ(I)Ljava/lang/Character;
    .locals 1

    .line 765
    invoke-virtual {p0}, Lo/Hx$ˊ;->size()I

    move-result v0

    invoke-static {p1, v0}, Lo/Bk;->ˊ(II)I

    .line 766
    iget-object v0, p0, Lo/Hx$ˊ;->ˊ:Ljava/lang/CharSequence;

    invoke-interface {v0, p1}, Ljava/lang/CharSequence;->charAt(I)C

    move-result v0

    invoke-static {v0}, Ljava/lang/Character;->valueOf(C)Ljava/lang/Character;

    move-result-object v0

    return-object v0
.end method


text:
<?php
/**
 * Created by PhpStorm.
 * User: yidashi
 * Date: 16/7/23
 * Time: 下午5:41
 */

namespace frontend\controllers;

use frontend\models\Tag;
use yii\web\Controller;

class TagController extends Controller
{
    public function actions()
    {
        return [
            'search' => 'common\\actions\\TagSearchAction'
        ];
    }

    public function actionIndex()
    {
        $hotModels = Tag::hot();
        $models = Tag::find()->all();
        return $this->render('index', [
            'models' => $models,
            'hotModels' => $hotModels
        ]);
    }
}


text:
using AcademyRPG.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcademyRPG
{
   public class ExtendedEngine :Engine
    {
        public override void ExecuteCreateObjectCommand(string[] commandWords)
        {
            switch (commandWords[1])
            {
                case "knight":
                    string name = commandWords[2];
                    Point position = Point.Parse(commandWords[3]);
                    int owner = int.Parse(commandWords[4]);
                    this.AddObject(new Knight(name, position, owner));
                    break;

                case "house":
                    Point pos = Point.Parse(commandWords[2]);
                    int ow = int.Parse(commandWords[3]);

                    this.AddObject(new House(pos, ow));
                    break;

                case "giant":
                    Point p = Point.Parse(commandWords[3]);
                    this.AddObject(new Giant(commandWords[2], p));
                    break;

                case "rock":
                    int hp = int.Parse(commandWords[2]);
                    Point poss = Point.Parse(commandWords[3]);
                    this.AddObject(new Rock(hp, poss));
                    break;

                case "ninja":
                    string nameofNinja = commandWords[2];
                    Point posOfNinja = Point.Parse(commandWords[3]);
                    int ninjaOwner = int.Parse(commandWords[4]);
                    this.AddObject(new Ninja(nameofNinja, posOfNinja, ninjaOwner));
                    break;
                default: base.ExecuteCreateObjectCommand(commandWords);
                    break;
            }
        }
    }
}


text:
<!DOCTYPE html>

	<meta charset="utf-8" />
	<link href="../stylesheets/stylesheet.css" rel="stylesheet" type="text/css" />
	<title>Relative, Absolute, and Fixed Positioning</title>

Week 2

		Home
		About Me
		Projects
		Blog
		Contact

Knowing the Difference between Relative, Absolute, and Fixed Positioning

CSS position has three useful inputs: relative, absolute, and fixed. Normally, an element has a static position that follows the basic rules and layout themselve on a webpage. However, it's usually not how we would like elements to line up. The position function in CSS is handy on defining where exactly we would like an item to be. What is a relative position? A relative position is relative to the original static position. It will use the original static position at an origin/ base to move away. An absolute position is is the position relates to the webpage (for example, top 20px would be moving the element 20px away from the top of the website page) and a fixed position relates to the browser view / viewport (for example, top 20px would be the element is always 20px away from the top edge of current view regardless of the webpage content).

		Top|
		GitHub|
		LinkedIn|
		Twitter|
		Something Else


text:
namespace aliyun {
struct RdsDescribePreCheckResultsRequestType {
  std::string owner_id;
  std::string resource_owner_account;
  std::string resource_owner_id;
  std::string client_token;
  std::string db_instance_id;
  std::string pre_check_id;
  std::string owner_account;
};
struct RdsDescribePreCheckResultsPreCheckResultType {
  std::string pre_check_name;
  std::string pre_check_result;
  std::string fail_reasion;
  std::string repair_method;
};
struct RdsDescribePreCheckResultsResponseType {
  std::vector<RdsDescribePreCheckResultsPreCheckResultType> items;
  std::string db_instance_id;
};
} // end namespace
#endif


text:
// Copyright Naked Objects Group Ltd, 45 Station Road, Henley on Thames, UK, RG9 1AT
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and limitations under the License.

namespace NakedObjects.Redirect {
    //Implemented by a 'stub' class that acts as a proxy for an object managed on another server
    public interface IRedirectedObject {
        //This should be a logical server name, translated to/from a physical address elsewhere.
        string ServerName { get; set; }

        //The Oid of the object on the other server
        string Oid { get; set; }
    }
}


text:
package com.jsmvc.packproject.make;

import java.io.File;

import com.jsmvc.packproject.Config;
import com.jsmvc.utils.FileUnit;

/**
 * @title: 打包HTML目录
 * @author zhujili
 * @contact 280000280@qq.com
 * @date 2015-12-30 上午12:50:44
 *
 */
public class HTML{
	private Config config;
	private Make make;
	private String dir;

	//递归把所有HTML打包进一个文件并进行压缩
	private void reduce(String path) throws Exception{
		File dirs = new File(path);
		if(!dirs.exists() || !dirs.isDirectory()){
			return;
		}
		File[] list = dirs.listFiles();
		for (int i = 0; i < list.length; i++) {
			File node = list[i];
			if (node.isDirectory()) {
				reduce(node.getPath());
			}else if(make.loadCheck(node.getPath())){
				String outFile = config.getTmpDir()+dir+"/"+config.getCompression()+".min.html";
				String[] u = node.getPath().substring(config.getInputDir().length()).split("\\.html")[0].replace("\\","/").split("/");
				String tplName = "";
				if(u.length>0){
					for(int j=0;j<u.length;j++){
						if(tplName.equals("")){
                            tplName = u[j];
                        }else{
                            tplName += "."+u[j];
                        }
					}
				}
				FileUnit.writeStringToFile("<jsmvc id=\""+tplName+"\">", outFile, true);
			    FileUnit.copyJSMinFile(node.getPath(), outFile, true);
			    FileUnit.writeStringToFile("</jsmvc>", outFile, true);
			}
		}
	}

	/**
	 * 打包主框架HTML
	 * @param path HTML目录
	 * @throws Exception
	 */
	public void pack() throws Exception{
		dir = config.getDirHtml();
		reduce(config.getInputDir()+dir);
	}

	/**
	 * 打包扩展模块HTML目录
	 * @param extName 扩展模块名称
	 * @throws Exception
	 */
	public void packExt(String extName) throws Exception{
		dir = config.getDirExt()+"/"+extName+"/"+config.getDirExtHtml();
		reduce(config.getInputDir()+dir);
	}

	public HTML(Config conf, Make mak){
		config = conf;
		make = mak;
	}
}


text:
'use strict';

/**
 * @ngdoc overview
 * @name angularjsApp
 * @description
 * # angularjsApp
 *
 * Main module of the application.
 */
angular
	.module('angularjsApp', [
		'ngAnimate',
		'ngCookies',
		'ngResource',
		'ngRoute',
		'ngSanitize',
		'ngTouch',
		'nWorkSheet'
	])
	.config(function ($routeProvider) {
		$routeProvider
			.when('/', {
				templateUrl: 'views/main.html',
				controller: 'MainCtrl'
			})
			.when('/about', {
				templateUrl: 'views/about.html',
				controller: 'AboutCtrl'
			})
			.otherwise({
				redirectTo: '/'
			});
	});