text:
<!DOCTYPE html>

	    <meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="">
		<meta name="author" content="">

		<title>

		    Sprite images before uploading

		</title>

		<link href="../libs/bs/bootstrap.min.css" rel="stylesheet">

SPRITES TESTS(1) THREADS

					<button type="button" class="btn btn-primary btn-lg">选择文件</button>
					并发请求数:<input id="threadsInput" value="1"/>
					<input id="selector" type="file" style="visibility:hidden;" multiple/>


text:
Aria.tplScriptDefinition({
    $classpath : "test.aria.html.textarea.bind.BindableRobotTestCaseTplScript",
    $prototype : {
        typing : function (value) {
            if (!this.data.keystrokes) {
                this.data.keystrokes = [];
            }

            this.data.keystrokes.push(value);
        },

        somethingOnBlur : function () {
            this.data.wasBlurred = true;
        }
    }
});

redpajama_set_name: RedPajamaGithub


text:
from django import template
from django.utils.safestring import mark_safe
from django.utils import timezone
from django.templatetags import tz

register = template.Library()

from functools import partial
from datetime import datetime

import qutils.time
import qbase.time

def clear_cache():
    pass

@register.simple_tag
def qdebug(o):
    print(o)
    return ''

# 指定 get_value_handler 和 缓存有效期,生成 tag 模版函数
def make_duration_cache(tag_name, callback, duration=qutils.time.DURATION_HOUR, **kwargs):
    deadline = qutils.time.Deadline(value=callback, duration=duration, **kwargs)
    @register.simple_tag(name=tag_name)
    def wrapped(*args, **kwargs):
        return deadline.value
    return wrapped

def calc_queryset_count(queryset, time_field=None):
    ''' 指定 queryset,获取 count
    0) 默认所有
    1) 指定 time_field 计算当天新增的数量
    '''
    filters = {}
    if time_field is not None:
        if not time_field or not isinstance(time_field, str):
            time_field = 'create_time'
        filters[time_field+'__range'] = qbase.time.get_day_range(cross=False)
    return queryset.filter(**filters).count()

# 根据 queryset 生成计算 count 的`缓存`模版函数
def make_queryset_count(tag_name, *args, **kwargs):
    cache_kwargs = kwargs.pop('cache_kwargs', {})
    return make_duration_cache(tag_name,
        partial(calc_queryset_count, *args, **kwargs), **cache_kwargs)


text:
void genTestSignal(radar::cfloatIQ* input, float freq, float sampRate);

int main(){
//     radar::cfloatIQ* testSig = new radar::cfloatIQ(10000);
//     radar::cfloatIQ* testFFT = new radar::cfloatIQ(1024);
//     radar::floatIQ*  testAbs = new radar::floatIQ(1024);
//
//     genTestSignal(testSig,10000,100000);
//
//     //get fft
//     FFT* fftProc = new FFT(1024,10000);
//
//     fftProc->getFFT(testSig->iq,testFFT->iq);
//
//     std::ofstream fftTest    = std::ofstream("fftTest.bin",std::ios::binary);
//     std::ofstream absTest    = std::ofstream("absTest.bin",std::ios::binary);
//     std::ofstream sigGenTest = std::ofstream("sigGenTest.bin",std::ios::binary);
//
//     sigGenTest.write(reinterpret_cast<char*>(testSig->iq),2*10000*sizeof(float));
//     fftTest.write(reinterpret_cast<char*>(testFFT->iq),2*1024*sizeof(float));
//     absTest.write(reinterpret_cast<char*>(testAbs->iq),1024*sizeof(float));
//
//     sigGenTest.close();
//     fftTest.close();
//     absTest.close();
//
//     delete testAbs;
//     delete testSig;
//     delete testFFT;
}

void genTestSignal(radar::cfloatIQ* input, float freq, float sampRate){
    for(size_t i = 0;i<input->buffSize;++i){
        input->iq[i] = radar::complexFloat(cos(2*PI*i*freq/sampRate),sin(2*PI*i*freq/sampRate));
    }
};


text:
/* vim: set expandtab ts=4 sw=4: */

/*
 * Copyright 2017 The bin2llvm Authors
 *
 * 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.
 */
#ifndef __FUNCTIONRENAME_H___
#define __FUNCTIONRENAME_H___ 1

#include <llvm/Pass.h>
#include <llvm/Function.h>
#include <llvm/Module.h>
#include <llvm-c/Core.h>
#include <llvm/Transforms/Utils/ValueMapper.h>
#include <llvm/Constants.h>

struct FunctionRename: public llvm::FunctionPass {
    static char ID;

    FunctionRename() : llvm::FunctionPass(ID) {}

    virtual bool runOnFunction(llvm::Function &F);
};

#endif


text:
(function () {
    'use strict';

    function UserController($scope, $location, data, identity, notifier) {
        var vm = this;

        vm.request = {};

        vm.currentUser = identity.getCurrentUser();

        vm.changePassword = function (request) {
            data.post('api/Account/ChangePassword', request)
                .then(function (result) {
                    notifier.success('Password successfully changed.');
                }, function (err) {
                    notifier.danger('Password change has failed. Make sure that all the input fields are filled correctly.');
                });
        }
    }

    angular.module('myApp.controllers').controller('UserController', ['$scope', '$location', 'data', 'identity', 'notifier', UserController]);
}());


text:
/**
 * Created by alejandrobarreiro on 8/10/15.
 */
angular.module('sapoApp')
  .constant('REST_API', {
    BASE_URL: 'http://sapo-backendrs.rhcloud.com/openshiftproject/rest/',
    WEBSCRAP_URL: 'http://nodejs4tsi2-backendrs.rhcloud.com/',
    OCP_KEY: '9f86432ae415401db0383f63ce64c4fe',
    CLOUDINARY_URL: 'https://api.cloudinary.com/v1_1/sapo/image/upload',
    CLOUDINARY_API_KEY: '112152826636563'

  })
  .constant('CURRENT_LOGGED_IN_USER', 'currentLoggedInUser')
  .constant('AUTH_EVENTS', {
    notAuthenticated: 'auth-not-authenticated',
    notAuthorized: 'auth-not-authorized',
    signout: 'auth-signout'
  });