text:
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
STARTING_DIR=`pwd`
cd $DIR
cd ../sql

# load parameters
. ../config/hive_params
echo "@getallcode.sql" | sqlplus $ORACLE_USER'/'$ORACLE_PASSWORD'@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST='$ORACLE_HOST')(PORT='$ORACLE_PORT'))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME='$ORACLE_SID')))'
rm xtmpx.sql

# return to the original location
cd $STARTING_DIR


text:
define([
	'app/modules/header/controllers/headerController',
	'app/modules/header/directives/headerDirective'
	], function(Controller, Directive){

});

redpajama_set_name: RedPajamaGithub


text:
package gx.realtime.serialize;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
import gx.realtime.BaseModelEvent;
import gx.realtime.CompoundOperation;
import gx.realtime.RevertableEvent;

import java.io.IOException;
import java.util.List;

/**
 *
 */
public class CompoundOperationSerializer extends StdSerializer<CompoundOperation>
{
    public CompoundOperationSerializer()
    {
        super(CompoundOperation.class);
    }

    @Override
    public void serialize(CompoundOperation event, JsonGenerator jgen, SerializerProvider provider) throws IOException
    {
        List<BaseModelEvent> events = event.getEvents();

        // [4,[0,[operations]]]]
        // Print the outer wrapper (compound operation)
        jgen.writeStartArray();
        jgen.writeNumber(4);

        // print 0-wrapper
        jgen.writeStartArray();
        jgen.writeNumber(0);

        // print contained events
        for (BaseModelEvent e : events) {
            jgen.writeObject(e);
        }

        // close the outer wrapper
        jgen.writeEndArray();

        if(event.getName() != null) {
            jgen.writeString(event.getName());
        }

        // close the outer wrapper
        jgen.writeEndArray();
    }
}


text:
declare module "fs-extra" {
  declare interface fsExtra {
    emptyDirSync: (from: string, to: string) => void;
    copySync: (from: string, to: string) => void;
    copy: (from: string, to: string, callback: (err: Error) => void) => void;
  }
  declare module.exports: fsExtra;
}


text:
using System;
using System.Threading.Tasks;
using System.Collections;
using Sunny.Core.Domain;
using System.Collections.Generic;

namespace Sunny.Core.Services.Interfaces
{
    public interface IMissionService
    {
        Task<IList<Domain.Mission>> GetMissions();
        Task InitPush(int missionId);
    }
}


text:
module.exports = (function(connect) {

    // Connect's Store
    var ConnectStore = connect.session.Store;

    function RedisStore(options) {
        var self = this;

        options = options || { };
        ConnectStore.call(this, options);
        this.namespace = (options.namespace ? 'user:session:' : options.namespace);

        this.client = options.client || new require('redis').createClient(options.port || options.socket, options.host, options);

        if (options.pass) {
            this.client.auth(options.pass, function(err){
                if (err) throw err;
            });
        }

        this.ttl = options.ttl || (24 * 60 * 60);

        if (options.db) {
            this.client.select(options.db);
            this.client.on("connect", function() {
                self.client.send_anyways = true;
                self.client.select(options.db);
                self.client.send_anyways = false;
            });
        }

        this.client.on('error', function () { self.emit('disconnect'); });
        this.client.on('connect', function () { self.emit('connect'); });

        return this;
    }

    RedisStore.prototype = ConnectStore.prototype;

    RedisStore.prototype.get = function(sid, fn) {
        sid = this.namespace + sid;

        this.client.get(sid, function(err, data){
            if (err) return fn(err);
            if (!data) return fn();

            fn(null, JSON.parse(data));
        });
    };

    RedisStore.prototype.set = function(sid, sess, fn){
        sid = this.namespace + sid;
        this.client.setex(sid, this.ttl, JSON.stringify(sess), function(err) {
            if(err || !fn) return;
            fn.apply(this, arguments);
        });
    };

    RedisStore.prototype.destroy = function(sid, fn){
        sid = this.namespace + sid;
        this.client.del(sid, fn);
    };

    return RedisStore;
});


text:
using System;

namespace JetBrains.ReSharper.Koans.Refactoring
{
    // Convert Abstract Class to Interface
    //
    // No keyboard shortcut. Invoke via Refactor This menu
    // Ctrl+Shift+R

    // Convert Interface to Abstract Class
    //
    // No keyboard shortcut. Invoke via Refactor This menu
    // Ctrl+Shift+R

    // 1. Convert abstract class to interface
    //    Place text caret on class definition
    //    Invoke Refactor This → Convert Abstract Class to Interface
    public abstract class AbstractClass
    {
        public abstract string Name { get; protected set; }
    }

    public class DerivedClass : AbstractClass
    {
        private string name;

        public DerivedClass()
        {
            name = "Phil";
        }

        public override string Name
        {
            get { return name; }
            protected set { name = value; }
        }
    }

    // 2. Convert abstract class to interface, when abstract class has implementations
    //    Place text caret on class definition
    //    Invoke Refactor This → Convert Abstract Class to Interface
    //    ReSharper warns abstract class has implementation methods
    //    Cancel, or continue to convert to interface and remove the body of the implementation
    //      (Derived class will not compile)
    public abstract class AbstractClassWithImplementation
    {
        public abstract string Name { get; protected set; }

        public string SayHello()
        {
            Console.WriteLine("Hello " + Name);
        }
    }

    public class DerivedClass2 : AbstractClassWithImplementation
    {
        private string name;

        public DerivedClass2()
        {
            name = "Phil";
        }

        public override string Name
        {
            get { return name; }
            protected set { name = value; }
        }
    }

    // 3. Convert interface to abstract class
    //    Place text caret on class definition
    //    Invoke Refactor This → Convert Abstract Class to Interface
    //    ReSharper creates abstract class with no implementations
    //      and makes implementing methods "override" in derived class
    public interface IPerson
    {
        string Name { get; }
        void SayHello();
    }

    public class Person : IPerson
    {
        private readonly string name;

        public Person(string name)
        {
            this.name = name;
        }

        public string Name { get { return name; } }

        public void SayHello()
        {
            Console.WriteLine("Hello " + Name);
        }
    }
}


text:
/* this file has been autogenerated by vtkNodeJsWrap */
/* editing this might proof futile */

#define VTK_WRAPPING_CXX
#define VTK_STREAMS_FWD_ONLY
#include <nan.h>

#include "vtkImageAlgorithmWrap.h"
#include "vtkShepardMethodWrap.h"
#include "vtkObjectWrap.h"
#include "../../plus/plus.h"

using namespace v8;

extern Nan::Persistent<v8::Object> vtkNodeJsNoWrap;
Nan::Persistent<v8::FunctionTemplate> VtkShepardMethodWrap::ptpl;

VtkShepardMethodWrap::VtkShepardMethodWrap()
{ }

VtkShepardMethodWrap::VtkShepardMethodWrap(vtkSmartPointer<vtkShepardMethod> _native)
{ native = _native; }

VtkShepardMethodWrap::~VtkShepardMethodWrap()
{ }

void VtkShepardMethodWrap::Init(v8::Local<v8::Object> exports)
{
	Nan::SetAccessor(exports, Nan::New("vtkShepardMethod").ToLocalChecked(), ConstructorGetter);
	Nan::SetAccessor(exports, Nan::New("ShepardMethod").ToLocalChecked(), ConstructorGetter);
}

void VtkShepardMethodWrap::ConstructorGetter(
	v8::Local<v8::String> property,
	const Nan::PropertyCallbackInfo<v8::Value>& info)
{
	InitPtpl();
	info.GetReturnValue().Set(Nan::New(ptpl)->GetFunction());
}

void VtkShepardMethodWrap::InitPtpl()
{
	if (!ptpl.IsEmpty()) return;
	v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
	VtkImageAlgorithmWrap::InitPtpl( );
	tpl->Inherit(Nan::New<FunctionTemplate>(VtkImageAlgorithmWrap::ptpl));
	tpl->SetClassName(Nan::New("VtkShepardMethodWrap").ToLocalChecked());
	tpl->InstanceTemplate()->SetInternalFieldCount(1);

	Nan::SetPrototypeMethod(tpl, "ComputeModelBounds", ComputeModelBounds);
	Nan::SetPrototypeMethod(tpl, "computeModelBounds", ComputeModelBounds);

	Nan::SetPrototypeMethod(tpl, "GetClassName", GetClassName);
	Nan::SetPrototypeMethod(tpl, "getClassName", GetClassName);

	Nan::SetPrototypeMethod(tpl, "GetMaximumDistance", GetMaximumDistance);
	Nan::SetPrototypeMethod(tpl, "getMaximumDistance", GetMaximumDistance);

	Nan::SetPrototypeMethod(tpl, "GetMaximumDistanceMaxValue", GetMaximumDistanceMaxValue);
	Nan::SetPrototypeMethod(tpl, "getMaximumDistanceMaxValue", GetMaximumDistanceMaxValue);

	Nan::SetPrototypeMethod(tpl, "GetMaximumDistanceMinValue", GetMaximumDistanceMinValue);
	Nan::SetPrototypeMethod(tpl, "getMaximumDistanceMinValue", GetMaximumDistanceMinValue);

	Nan::SetPrototypeMethod(tpl, "GetModelBounds", GetModelBounds);
	Nan::SetPrototypeMethod(tpl, "getModelBounds", GetModelBounds);

	Nan::SetPrototypeMethod(tpl, "GetNullValue", GetNullValue);
	Nan::SetPrototypeMethod(tpl, "getNullValue", GetNullValue);

	Nan::SetPrototypeMethod(tpl, "GetSampleDimensions", GetSampleDimensions);
	Nan::SetPrototypeMethod(tpl, "getSampleDimensions", GetSampleDimensions);

	Nan::SetPrototypeMethod(tpl, "IsA", IsA);
	Nan::SetPrototypeMethod(tpl, "isA", IsA);

	Nan::SetPrototypeMethod(tpl, "NewInstance", NewInstance);
	Nan::SetPrototypeMethod(tpl, "newInstance", NewInstance);

	Nan::SetPrototypeMethod(tpl, "SafeDownCast", SafeDownCast);
	Nan::SetPrototypeMethod(tpl, "safeDownCast", SafeDownCast);

	Nan::SetPrototypeMethod(tpl, "SetMaximumDistance", SetMaximumDistance);
	Nan::SetPrototypeMethod(tpl, "setMaximumDistance", SetMaximumDistance);

	Nan::SetPrototypeMethod(tpl, "SetModelBounds", SetModelBounds);
	Nan::SetPrototypeMethod(tpl, "setModelBounds", SetModelBounds);

	Nan::SetPrototypeMethod(tpl, "SetNullValue", SetNullValue);
	Nan::SetPrototypeMethod(tpl, "setNullValue", SetNullValue);

	Nan::SetPrototypeMethod(tpl, "SetSampleDimensions", SetSampleDimensions);
	Nan::SetPrototypeMethod(tpl, "setSampleDimensions", SetSampleDimensions);

#ifdef VTK_NODE_PLUS_VTKSHEPARDMETHODWRAP_INITPTPL
	VTK_NODE_PLUS_VTKSHEPARDMETHODWRAP_INITPTPL
#endif
	ptpl.Reset( tpl );
}

void VtkShepardMethodWrap::New(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	if(!info.IsConstructCall())
	{
		Nan::ThrowError("Constructor not called in a construct call.");
		return;
	}

	if(info.Length() == 0)
	{
		vtkSmartPointer<vtkShepardMethod> native = vtkSmartPointer<vtkShepardMethod>::New();
		VtkShepardMethodWrap* obj = new VtkShepardMethodWrap(native);
		obj->Wrap(info.This());
	}
	else
	{
		if(info[0]->ToObject() != vtkNodeJsNoWrap )
		{
			Nan::ThrowError("Parameter Error");
			return;
		}
	}

	info.GetReturnValue().Set(info.This());
}

void VtkShepardMethodWrap::ComputeModelBounds(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	size_t i;
	if(info.Length() > 0 && info[0]->IsFloat64Array())
	{
		v8::Local<v8::Float64Array>a0(v8::Local<v8::Float64Array>::Cast(info[0]->ToObject()));
		if( a0->Length() < 3 )
		{
			Nan::ThrowError("Array too short.");
			return;
		}

		if(info.Length() > 1 && info[1]->IsFloat64Array())
		{
			v8::Local<v8::Float64Array>a1(v8::Local<v8::Float64Array>::Cast(info[1]->ToObject()));
			if( a1->Length() < 3 )
			{
				Nan::ThrowError("Array too short.");
				return;
			}

			double r;
			if(info.Length() != 2)
			{
				Nan::ThrowError("Too many parameters.");
				return;
			}
			r = native->ComputeModelBounds(
				(double *)(a0->Buffer()->GetContents().Data()),
				(double *)(a1->Buffer()->GetContents().Data())
			);
			info.GetReturnValue().Set(Nan::New(r));
			return;
		}
		else if(info.Length() > 1 && info[1]->IsArray())
		{
			v8::Local<v8::Array>a1(v8::Local<v8::Array>::Cast(info[1]->ToObject()));
			double b1[3];
			if( a1->Length() < 3 )
			{
				Nan::ThrowError("Array too short.");
				return;
			}

			for( i = 0; i < 3; i++ )
			{
				if( !a1->Get(i)->IsNumber() )
				{
					Nan::ThrowError("Array contents invalid.");
					return;
				}
				b1[i] = a1->Get(i)->NumberValue();
			}
			double r;
			if(info.Length() != 2)
			{
				Nan::ThrowError("Too many parameters.");
				return;
			}
			r = native->ComputeModelBounds(
				(double *)(a0->Buffer()->GetContents().Data()),
				b1
			);
			info.GetReturnValue().Set(Nan::New(r));
			return;
		}
	}
	else if(info.Length() > 0 && info[0]->IsArray())
	{
		v8::Local<v8::Array>a0(v8::Local<v8::Array>::Cast(info[0]->ToObject()));
		double b0[3];
		if( a0->Length() < 3 )
		{
			Nan::ThrowError("Array too short.");
			return;
		}

		for( i = 0; i < 3; i++ )
		{
			if( !a0->Get(i)->IsNumber() )
			{
				Nan::ThrowError("Array contents invalid.");
				return;
			}
			b0[i] = a0->Get(i)->NumberValue();
		}
		if(info.Length() > 1 && info[1]->IsArray())
		{
			v8::Local<v8::Array>a1(v8::Local<v8::Array>::Cast(info[1]->ToObject()));
			double b1[3];
			if( a1->Length() < 3 )
			{
				Nan::ThrowError("Array too short.");
				return;
			}

			for( i = 0; i < 3; i++ )
			{
				if( !a1->Get(i)->IsNumber() )
				{
					Nan::ThrowError("Array contents invalid.");
					return;
				}
				b1[i] = a1->Get(i)->NumberValue();
			}
			double r;
			if(info.Length() != 2)
			{
				Nan::ThrowError("Too many parameters.");
				return;
			}
			r = native->ComputeModelBounds(
				b0,
				b1
			);
			info.GetReturnValue().Set(Nan::New(r));
			return;
		}
		else if(info.Length() > 1 && info[1]->IsFloat64Array())
		{
			v8::Local<v8::Float64Array>a1(v8::Local<v8::Float64Array>::Cast(info[1]->ToObject()));
			if( a1->Length() < 3 )
			{
				Nan::ThrowError("Array too short.");
				return;
			}

			double r;
			if(info.Length() != 2)
			{
				Nan::ThrowError("Too many parameters.");
				return;
			}
			r = native->ComputeModelBounds(
				b0,
				(double *)(a1->Buffer()->GetContents().Data())
			);
			info.GetReturnValue().Set(Nan::New(r));
			return;
		}
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkShepardMethodWrap::GetClassName(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	char const * r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetClassName();
	info.GetReturnValue().Set(Nan::New(r).ToLocalChecked());
}

void VtkShepardMethodWrap::GetMaximumDistance(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	double r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetMaximumDistance();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkShepardMethodWrap::GetMaximumDistanceMaxValue(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	double r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetMaximumDistanceMaxValue();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkShepardMethodWrap::GetMaximumDistanceMinValue(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	double r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetMaximumDistanceMinValue();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkShepardMethodWrap::GetModelBounds(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	double const * r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetModelBounds();
	Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New(v8::Isolate::GetCurrent(), 6 * sizeof(double));
	Local<v8::Float64Array> at = v8::Float64Array::New(ab, 0, 6);
	memcpy(ab->GetContents().Data(), r, 6 * sizeof(double));
	info.GetReturnValue().Set(at);
}

void VtkShepardMethodWrap::GetNullValue(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	double r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetNullValue();
	info.GetReturnValue().Set(Nan::New(r));
}

void VtkShepardMethodWrap::GetSampleDimensions(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	int const * r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->GetSampleDimensions();
	Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New(v8::Isolate::GetCurrent(), 3 * sizeof(int));
	Local<v8::Int32Array> at = v8::Int32Array::New(ab, 0, 3);
	memcpy(ab->GetContents().Data(), r, 3 * sizeof(int));
	info.GetReturnValue().Set(at);
}

void VtkShepardMethodWrap::IsA(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsString())
	{
		Nan::Utf8String a0(info[0]);
		int r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->IsA(
			*a0
		);
		info.GetReturnValue().Set(Nan::New(r));
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkShepardMethodWrap::NewInstance(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	vtkShepardMethod * r;
	if(info.Length() != 0)
	{
		Nan::ThrowError("Too many parameters.");
		return;
	}
	r = native->NewInstance();
	VtkShepardMethodWrap::InitPtpl();
	v8::Local<v8::Value> argv[1] =
		{ Nan::New(vtkNodeJsNoWrap) };
	v8::Local<v8::Function> cons =
		Nan::New<v8::FunctionTemplate>(VtkShepardMethodWrap::ptpl)->GetFunction();
	v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
	VtkShepardMethodWrap *w = new VtkShepardMethodWrap();
	w->native = r;
	w->Wrap(wo);
	info.GetReturnValue().Set(wo);
}

void VtkShepardMethodWrap::SafeDownCast(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsObject() && (Nan::New(VtkObjectWrap::ptpl))->HasInstance(info[0]))
	{
		VtkObjectWrap *a0 = ObjectWrap::Unwrap<VtkObjectWrap>(info[0]->ToObject());
		vtkShepardMethod * r;
		if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		r = native->SafeDownCast(
			(vtkObject *) a0->native.GetPointer()
		);
		VtkShepardMethodWrap::InitPtpl();
		v8::Local<v8::Value> argv[1] =
			{ Nan::New(vtkNodeJsNoWrap) };
		v8::Local<v8::Function> cons =
			Nan::New<v8::FunctionTemplate>(VtkShepardMethodWrap::ptpl)->GetFunction();
		v8::Local<v8::Object> wo = cons->NewInstance(1, argv);
		VtkShepardMethodWrap *w = new VtkShepardMethodWrap();
		w->native = r;
		w->Wrap(wo);
		info.GetReturnValue().Set(wo);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkShepardMethodWrap::SetMaximumDistance(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsNumber())
	{
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetMaximumDistance(
			info[0]->NumberValue()
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkShepardMethodWrap::SetModelBounds(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	size_t i;
	if(info.Length() > 0 && info[0]->IsFloat64Array())
	{
		v8::Local<v8::Float64Array>a0(v8::Local<v8::Float64Array>::Cast(info[0]->ToObject()));
		if( a0->Length() < 6 )
		{
			Nan::ThrowError("Array too short.");
			return;
		}

				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetModelBounds(
			(double *)(a0->Buffer()->GetContents().Data())
		);
		return;
	}
	else if(info.Length() > 0 && info[0]->IsArray())
	{
		v8::Local<v8::Array>a0(v8::Local<v8::Array>::Cast(info[0]->ToObject()));
		double b0[6];
		if( a0->Length() < 6 )
		{
			Nan::ThrowError("Array too short.");
			return;
		}

		for( i = 0; i < 6; i++ )
		{
			if( !a0->Get(i)->IsNumber() )
			{
				Nan::ThrowError("Array contents invalid.");
				return;
			}
			b0[i] = a0->Get(i)->NumberValue();
		}
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetModelBounds(
			b0
		);
		return;
	}
	else if(info.Length() > 0 && info[0]->IsNumber())
	{
		if(info.Length() > 1 && info[1]->IsNumber())
		{
			if(info.Length() > 2 && info[2]->IsNumber())
			{
				if(info.Length() > 3 && info[3]->IsNumber())
				{
					if(info.Length() > 4 && info[4]->IsNumber())
					{
						if(info.Length() > 5 && info[5]->IsNumber())
						{
														if(info.Length() != 6)
							{
								Nan::ThrowError("Too many parameters.");
								return;
							}
							native->SetModelBounds(
								info[0]->NumberValue(),
								info[1]->NumberValue(),
								info[2]->NumberValue(),
								info[3]->NumberValue(),
								info[4]->NumberValue(),
								info[5]->NumberValue()
							);
							return;
						}
					}
				}
			}
		}
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkShepardMethodWrap::SetNullValue(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	if(info.Length() > 0 && info[0]->IsNumber())
	{
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetNullValue(
			info[0]->NumberValue()
		);
		return;
	}
	Nan::ThrowError("Parameter mismatch");
}

void VtkShepardMethodWrap::SetSampleDimensions(const Nan::FunctionCallbackInfo<v8::Value>& info)
{
	VtkShepardMethodWrap *wrapper = ObjectWrap::Unwrap<VtkShepardMethodWrap>(info.Holder());
	vtkShepardMethod *native = (vtkShepardMethod *)wrapper->native.GetPointer();
	size_t i;
	if(info.Length() > 0 && info[0]->IsInt32Array())
	{
		v8::Local<v8::Int32Array>a0(v8::Local<v8::Int32Array>::Cast(info[0]->ToObject()));
		if( a0->Length() < 3 )
		{
			Nan::ThrowError("Array too short.");
			return;
		}

				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetSampleDimensions(
			(int *)(a0->Buffer()->GetContents().Data())
		);
		return;
	}
	else if(info.Length() > 0 && info[0]->IsArray())
	{
		v8::Local<v8::Array>a0(v8::Local<v8::Array>::Cast(info[0]->ToObject()));
		int b0[3];
		if( a0->Length() < 3 )
		{
			Nan::ThrowError("Array too short.");
			return;
		}

		for( i = 0; i < 3; i++ )
		{
			if( !a0->Get(i)->IsInt32() )
			{
				Nan::ThrowError("Array contents invalid.");
				return;
			}
			b0[i] = a0->Get(i)->Int32Value();
		}
				if(info.Length() != 1)
		{
			Nan::ThrowError("Too many parameters.");
			return;
		}
		native->SetSampleDimensions(
			b0
		);
		return;
	}
	else if(info.Length() > 0 && info[0]->IsInt32())
	{
		if(info.Length() > 1 && info[1]->IsInt32())
		{
			if(info.Length() > 2 && info[2]->IsInt32())
			{
								if(info.Length() != 3)
				{
					Nan::ThrowError("Too many parameters.");
					return;
				}
				native->SetSampleDimensions(
					info[0]->Int32Value(),
					info[1]->Int32Value(),
					info[2]->Int32Value()
				);
				return;
			}
		}
	}
	Nan::ThrowError("Parameter mismatch");
}


text:
package com.intellij.testFramework.fixtures;

import com.intellij.psi.PsiFile;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

import java.io.IOException;

/**
 * Creates new application for each test.
 */
public interface HeavyIdeaTestFixture extends IdeaProjectTestFixture {
  PsiFile addFileToProject(@NonNls @NotNull String rootPath, @NonNls @NotNull String relativePath, @NonNls @NotNull String fileText) throws IOException;
}


text:
<?php

namespace App\Http\Controllers;

use App;
use Auth;
use App\Page;
use App\Template;
use App\PageTranslation;
use Illuminate\Http\Request;
use App\Http\Requests\PageRequest;
use Mcamara\LaravelLocalization\Facades\LaravelLocalization;

class PagesController extends Controller
{
    use Traits;

    private $locale;

    public function __construct()
    {
        $this->middleware('auth', ['except' => ['show', 'index']]);
        $this->locale = LaravelLocalization::getCurrentLocale();
    }

    /**
     * Display main index resource
     * If logged in redirect to iframe calling @edit
     * route: /.
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $page = Page::findOrFail(1);
        if (Auth::check()) {
            $src = '/'.$this->locale.'/admin/page/'.$page->slug.'/edit';

            return $this->loadiFrame($src);
        }

        return view('index', compact('page'));
    }

    /**
     * Display a specified resource
     * If logged in redirect to iframe calling @edit
     * route: resource/{slug}.
     * @param  string $slug,  $translations
     * @return \Illuminate\Http\Response
     */
    public function show($slug, PageTranslation $translations)
    {
        $translation = $translations->getBySlug($slug);
        if (! $translation) {
            return App::abort(404);
        }
        $page = $translation->page;
        if (Auth::check()) {
            $src = '/'.$this->locale.'/admin/page/'.$page->slug.'/edit';

            return $this->loadiFrame($src);
        }

        return view($page->template->path.'.show', compact('page'));
    }

    /**
     * Display a specified resource from linked menu.
     * If logged in redirect to iframe calling @admin.edit
     * route: menu {slug}.
     * @param  int $pageid, string $menuslug
     * @return \Illuminate\Http\Response
     */
    public function showID($id, $slug)
    {
        $page = Page::find($id);
        if (Auth::check()) {
            $src = '/'.$this->locale.'/admin/page/'.$page->slug.'/edit';
            if ($this->locale != config('app.fallback_locale')) {
                $slug = $this->locale.'/'.$slug;
            }

            return $this->loadiFrame($src, $slug);
        }

        return view($page->template->path.'.show', compact('page'));
    }

    /**
     * iframe content to edit resource.
     * @param  $request, $slug, $translations
     * @return \Illuminate\Http\Response
     */
    public function edit(Request $request, $slug, PageTranslation $translations)
    {
        $translation = $translations->getBySlug($slug);
        $page = $translation->page;
        if ($page->template->id == 1) {
            return view('index', compact('page'));
        }

        return view($page->template->path.'.show', compact('page'));
    }

    /**
     * Update content areas of specified resource
     * ajax route: @admin updateContent.
     * @param  int $resourceid, string $menuslug
     * @return \Illuminate\Http\Response
     */
    public function updateContent(Request $request, $slug, PageTranslation $translations)
    {
        if ($request->ajax()) {
            $translation = $translations->getBySlug($slug);
            if (! $translation) {
                return App::abort(404);
            }
            $page = $translation->page;
            if (! $page->hasTranslation($this->locale)) {
                $page->title = $page->translateOrDefault($this->locale)->title;
                $page->slug = $slug;
            }
            $page->save();

            if ($request->dummies) {
                ElementsController::store($request->dummies);
            }
            if ($request->updates) {
                ElementsController::update($request->updates);
            }
            if ($request->deletes) {
                ElementsController::destroy($request->deletes);
            }

            return $page;
        }
    }

    /**
     * Editor functions.
     */

    /**
     * Load editor create form
     * ajax route.
     * @param  $request
     * @return \Illuminate\Http\Response
     */
    public function create(Request $request)
    {
        if ($request->ajax()) {
            $templates = Template::where('active', 1)->pluck('name', 'id');
            $page = new Page;
            $page->template = Template::findOrFail(2);

            return view('admin.page.create', compact('templates', 'page'));
        }
    }

    /**
     * Editor store new resource
     * ajax route.
     * @param  $request
     * @return \Illuminate\Http\Response
     */
    public function store(PageRequest $request)
    {
        if ($request->ajax()) {
            $page = Page::create($request->all());

            return $page;
        }
    }

    /**
     * Load editor settings form
     * ajax route.
     * @param  $request
     * @return \Illuminate\Http\Response
     */
    public function settings(Request $request, $id)
    {
        if ($request->ajax()) {
            //App::setLocale($editorLocale);
            $page = Page::findOrFail($id);
            $templates = Template::where('active', 1)->pluck('name', 'id');

            return view('admin.page.settings', compact('page', 'templates'));
        }
    }

    /**
     * Store settings
     * ajax route.
     * @param  $request
     * @return \Illuminate\Http\Response
     */
    public function update(PageRequest $request, $id)
    {
        if ($request->ajax()) {
            $page = Page::findOrFail($id);
            if (! $page->hasTranslation($this->locale)) {
                $page->title = $page->translateOrDefault($this->locale)->title;
                $page->slug = $page->translateOrDefault($this->locale)->slug;
            }
            $page->fill($request->all())->save();

            return $page;
        }
    }

    /**
     * Duplicate the specified resource.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function duplicate(Request $request)
    {
        if ($request->ajax()) {
            $page = Page::findOrFail($request->id);
            $clone = $page->replicate();
            $clone->push();
            foreach ($clone->translations as $translation) {
                $clonetranslation = $translation->replicate();
                $clonetranslation->page_id = $clone->id;
                $clonetranslation->title = $clonetranslation->title.' copy';
                $clonetranslation->slug = $clonetranslation->slug.'-copy';
                $clonetranslation->push();
            }

            return $clone;
        }
    }

    /**
     * Remove the specified resource from storage.
     *
     * @param  int  $id
     * @return \Illuminate\Http\Response
     */
    public function destroy(Request $request, $id)
    {
        if ($request->ajax()) {
            $page = Page::findOrFail($id);
            $page->regions()->delete();
            $page->delete();

            return ['success' => true, 'message' => 'Item deleted!'];
        }
    }

    /**
     * Editor list all Pages.
     *
     * @param Request $request
     */
    public function editorList($editorLocale)
    {
        App::setLocale($editorLocale);
        $html = '';
        //$pages = Page::join('page_translations as t', 't.page_id', '=', 'pages.id')->where('locale', $editorLocale)->orderBy('t.title', 'asc')->get();
        foreach (Page::all() as $page) {
            //foreach ($pages as $page) {
            $html .= renderEditorPages($page, $editorLocale);
        }

        return $html;
    }
}


text:
package org.elasticsearch.xpack.core.ml.dataframe.stats.classification;

import org.elasticsearch.Version;
import org.elasticsearch.common.io.stream.Writeable;
import org.elasticsearch.xcontent.ToXContent;
import org.elasticsearch.xcontent.XContentParser;
import org.elasticsearch.xpack.core.ml.AbstractBWCSerializationTestCase;
import org.elasticsearch.xpack.core.ml.utils.ToXContentParams;
import org.junit.Before;

import java.io.IOException;
import java.time.Instant;
import java.util.Collections;

public class ClassificationStatsTests extends AbstractBWCSerializationTestCase<ClassificationStats> {

    private boolean lenient;

    @Before
    public void chooseLenient() {
        lenient = randomBoolean();
    }

    @Override
    protected boolean supportsUnknownFields() {
        return lenient;
    }

    @Override
    protected ClassificationStats mutateInstanceForVersion(ClassificationStats instance, Version version) {
        return instance;
    }

    @Override
    protected ClassificationStats doParseInstance(XContentParser parser) throws IOException {
        return lenient ? ClassificationStats.LENIENT_PARSER.apply(parser, null) : ClassificationStats.STRICT_PARSER.apply(parser, null);
    }

    @Override
    protected ToXContent.Params getToXContentParams() {
        return new ToXContent.MapParams(Collections.singletonMap(ToXContentParams.FOR_INTERNAL_STORAGE, "true"));
    }

    @Override
    protected Writeable.Reader<ClassificationStats> instanceReader() {
        return ClassificationStats::new;
    }

    @Override
    protected ClassificationStats createTestInstance() {
        return createRandom();
    }

    public static ClassificationStats createRandom() {
        return new ClassificationStats(
            randomAlphaOfLength(10),
            Instant.now(),
            randomIntBetween(1, Integer.MAX_VALUE),
            HyperparametersTests.createRandom(),
            TimingStatsTests.createRandom(),
            ValidationLossTests.createRandom()
        );
    }
}


text:
<?php

use Ac\Async\Stream;

$readable = Stream::openReadable('http://google.com');

$unbind = Stream::read($readable, function($data) {
  if($data === null) {
    // no more data, $stream will be closed.
    echo "No more data, closing...\n";
    return;
  }
  echo 'Got '.strlen($data)." bytes.\n";
});

echo "Reading data...\n"; // will be printed first


text:
#ifndef PAGMO_PROBLEM_MGA_TARGET_EVENT_H
#define PAGMO_PROBLEM_MGA_TARGET_EVENT_H

#include <string>
#include <keplerian_toolbox/epoch.h>
#include <keplerian_toolbox/planet/base.h>
#include <keplerian_toolbox/planet/jpl_low_precision.h>

#include "../config.h"
#include "../serialization.h"
#include "../types.h"
#include "base.h"

namespace pagmo{ namespace problem {

/// Used in GTOC 7
/**
 *
 * A PyGMO global optimization problem (box-bounded, continuous)
 * representing the problem of targeting a given event in the
 * overall mission timeline. An event is defined by a pagmo::planet
 * and an epoch.

 * Decision vector:
 *      [T,tw,Vinf,u,v,eta] in [days, n/a, m/s, n/a, n/a, n/a]
 *
 * where T is the total time of flight
 *
 * @author Dario Izzo (dario.izzo@esa.int)
 */
class __PAGMO_VISIBLE mga_target_event: public base
{
	public:
	mga_target_event(const kep_toolbox::planet::planet_ptr start = kep_toolbox::planet::jpl_lp("earth").clone(),
						 const kep_toolbox::planet::planet_ptr end = kep_toolbox::planet::jpl_lp("mars").clone(),
						 const kep_toolbox::epoch t_end = kep_toolbox::epoch(0.0),
						 double T_max = 700.0,
						 bool discount_launcher = true
						 );

		mga_target_event(const mga_target_event&);
		base_ptr clone() const;

		std::string get_name() const;
	protected:
		void objfun_impl(fitness_vector &, const decision_vector &) const;
		std::string human_readable_extra() const;

	private:
		friend class boost::serialization::access;
		template <class Archive>
		void serialize(Archive &ar, const unsigned int)
		{
			ar & boost::serialization::base_object<base>(*this);
			ar & m_start;
			ar & m_end;
			ar & m_t_end;
			ar & m_T_max;
			ar & m_discount_launcher;
		}
	kep_toolbox::planet::planet_ptr m_start;
	kep_toolbox::planet::planet_ptr m_end;
	kep_toolbox::epoch m_t_end;
	double m_T_max;
	bool m_discount_launcher;
};

}} // namespaces

BOOST_CLASS_EXPORT_KEY(pagmo::problem::mga_target_event)

#endif // PAGMO_PROBLEM_MGA_TARGET_EVENT_H


text:
module Cases
  class IcoFoiController < IcoController
    # this class needs to exist because of autogenerated routes
    # for correspondence_type_resources - see routes.rb#55 etc
  end
end


text:
<!doctype html>

    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Release notes: Open GEE 5.3.0 — Google Earth Enterprise 5.3.8 documentation</title>
    <link rel="stylesheet" href="../../static/bizstyle.css" type="text/css" />
    <link rel="stylesheet" href="../../static/pygments.css" type="text/css" />

    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="search" title="Search" href="../../search.html" />
    <link rel="next" title="Release notes: Open GEE 5.2.5" href="relNotesGEE5_2_5.html" />
    <link rel="prev" title="Release notes: Open GEE 5.3.1" href="relNotesGEE5_3_1.html" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0">

Navigation

          index

          next |

          previous |

Google Earth Enterprise 5.3.8 documentation »

Release notes »

Previous topic

Release notes: Open GEE 5.3.1

Next topic

Release notes: Open GEE 5.2.5

Quick search

    <form class="search" action="../../search.html" method="get">
      <input type="text" name="q" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>

Release notes: Open GEE 5.3.0¶

New Features

Added the ability to control the XML cache size. The size can
be modified by configuring the INIT_HEAP_SIZE,
MAX_HEAP_SIZE, and BLOCK_SIZE settings in
/etc/opt/google/XMLparams. This file must be created manually.
View the Configure Fusion performance
document for more details.

Users can now force the XML cache to purge periodically. This
can be done by configuring the PURGE and PURGE_LEVEL
settings in /etc/opt/google/XMLparams. This file must be
created manually. View the Configure Fusion performance document for more details.

Added a ``long_version`` parameter to the SCons build. This
will allow the user to override the long version string.

Added options to the Server install script. The server install
script now checks the size of the publish root and allows the user
to set custom user and group names.

Improved system manager performance and memory consumption for
large builds. This release eliminates some duplicate processing
and storage in system manager, which reduces the amount of time
and memory it takes to run operations on large builds.

Upgraded to OpenJPEG 2000 2.3.1. This upgrade brings bugs
fixes and improvements.

Supported Platforms

The Open GEE 5.3.0 release is supported on 64-bit versions of the
following operating systems:

Red Hat Enterprise Linux version 6.x and 7.x, including the
most recent security patches

CentOS 6.x and 7.x

Ubuntu 14.04 LTS and 16.04 LTS

Google Earth Enterprise 5.3.0 is compatible with Google Earth
Enterprise Client (EC) version 7.1.5 and above.

To upgrade from Open GEE 5.2.0, do NOT uninstall it. We recommend
that you upgrade Open GEE 5.2.0 by simply installing Open GEE
5.3.0. Installing Open GEE 5.3.0 on top of Open GEE 5.2.0 will
ensure that your PostgreSQL databases are backed up and upgraded
correctly to the new PostgreSQL version used by Open GEE 5.3.0.

Resolved Issues

<colgroup>
<col width="25%" />
<col width="25%" />
<col width="50%" />
</colgroup>

Number
Description
Resolution

127
Incorrect error messages from Fusion installer.
Stop incorrect error from showing when re-installing with-uflag.

200
stage_install fails on the tutorial files when /home and /tmp are on different file systems.
Files are linked in /tmp using symbolic links back to original locations.

279
Server upgrade resets the Admin Console password.
When the GEE server is upgraded, either through the install_server.sh
script or the RPMs, the Admin Console password will be preserved if the
password file is found at the expected location.

799
The GEE Portable Server does not return valid JSON when queried with http://<server>/<map>/query?request=Json.
Added a v parameter to the query; when its value is 2, the GEE Portable Server will
return proper JSON. Currently, it defaults to 1 if not specified.

1093
The geselectpublishroot server command line tool offers no help, and appears to take
some action when the --help flag is specified.
Help has been added through the --help option, or if any invalid parameter is given.

1098
TravisCI can pass when compilation fails.
Add logic to cause compilation failures to be detected and reported.

1104
CentOS 7 (and maybe others) fails to build Open GEE. Build seems to fail when
building third party parts of Qt. This appears to be an issue with libpng.
Fixed by including libpng12 in the build script.

1122
Check for PIL (Python Imaging Library) returns an error.
Change how PIL is included.

1158
geeServerDefs are not returned by Portable Server after being requested,
once the globe has been viewed by a client. It is not possible to request
geeServerDefs for globes other than the current selectedGlobe.
geeServerDefs are returned correctly and can be requested for any valid globe at any time.

1166
Imagery resources can be created with invalid dates.
Added a validity check that ensures a valid date is entered.
A date of 0000-00-00 can also be entered as a default value. The user will not
be allowed to save with an invalid date entered. This applies only to the GUI.

1169
Cutting a globe with historical imagery embeds a link to the original
Google Earth Server that served the historical imagery.
There is an advanced option to include historical imagery links or not. The default
option will be to NOT include links to historical imagery, and the links will be stripped from the
cut globe. When the historical imagery links are enabled, the existing behavior will be preserved.

1187
RPM upgrades change owner and permissions on symlinked portable globe directories.
Symlinked portable globe directories are not modified during geserver upgrades.

1190
Some 32-bit platforms are unable to open files of size >2GB.
Use POSIX file API to support large files on some 32-bit platforms.

1192
There appears to be a regression issue in OpenJPEG 2000 lib version 2.3.0
(that Fusion uses), causing an error when fusing jp2 files.
We have upgraded to OpenJPEG 2.3.1 fixing this issue.

1194
Sockets build up during large project builds.
gesystemmanager now has a timeout when trying to respond to a request for status.
This prevents a backlog of requests that could build up while it is busy handling
a long-running request. The timeout is configurable.

1201
Fusion uses incorrect or no date if using .kip files as source.
Fusion now uses acquisition data correctly.

1210
Fix Xerces-related memory leaks.
Added an experimental option that fixes several memory leaks related to our usage of the Xerces library.

1228
Assemble button is not fully visible, making it difficult to use the GLC assembly tool.
Added a scroll-bar to glc_assemble webpage to allow scrolling to 'Assemble' button.

1251
Build number was incorrectly being appended to the version in RPM packaging.
RPM packaging should put the build number in the release field of the
RPM properties and not append it to the version number in the version field.
This was preventing point releases from properly upgrading.

1275
Search results from KML layers do not display properly in Earth Client.
Updated KML rendering libraries with new versions provided by Google.

1276
System manager purges the asset and asset version caches unnecessarily during builds.
For large builds this can evict most of the items from the cache.
Remove the calls to these purge functions.

1270
Fusion uninstaller uses incorrect username " ——"
Fixed XML parsing in common.sh that could return incorrect values.

Known Issues

<colgroup>
<col width="25%" />
<col width="25%" />
<col width="50%" />
</colgroup>

Number
Description
Workaround

4
Google basemap fails to load in 2D Mercator Maps
Obtain a valid Google Maps API key and include it in /opt/google/gehttpd/htdocs/maps/maps_google.html.

8
Ensure GEE Portable Cutter job completes
No current work around.

9
Improve FileUnpacker handling of invalid files
No current work around.

20
Simplify build process for portable builds on MacOS
Building and running Portable Server on MacOS should be possible with minimal changes.

34
SCons build creates temporary directories named "0"
No current work around.

126
The Fusion installer creates a backup on the first run
The created backup can be deleted.

190
Hostname mismatch check in installers doesn't work as expected
No current work around.

193
Updated docs are not copied if the /tmp/fusion_os_install directory already exists
Delete /tmp/fusion_os_install at the beginning of the stage_install build process.

201
Some tiles are displayed incorrectly in the Enterprise Client when terrain is enabled
No current work around.

202
Icons are not displayed on vector layers in the Enterprise Client
No current work around. It is not clear if this is an error in GEE or in the Enterprise Client.

203
Some vector layer options are not saved
No current work around.

221
The asset manager may display that a job is "Queued" when in fact the job is "Blocked"
No current work around.

234
Geserver raises error executing apache_logs.pyc
No current work around.

254
Automasking fails for images stored with UTM projection
Use GDAL to convert the images to a different projection before ingesting them into Fusion.

269
gevectorimport doesn't crop features
Use GDAL/OGR to crop vector dataset before importing them using Fusion.

295
Fix buffer overflows and leaks in unit tests
No current work around.

309
Check for the FusionConnection before new asset is populated
Make sure that gefusion service is started.

320
The Portable Server web page uses obsolete REST calls
Do not use the buttons on the Portable Server web interface for adding
remote servers or broadcasting to remote servers as these features are no longer supported.

326
Libraries may be loaded from the wrong directory
Delete any library versions that should not be loaded or use LD_LIBRARY_PATH to
load libraries from /opt/google/lib.

340
GE Fusion Terrain is black
No current work around.

342
Fusion crashes when opening an unsupported file type
Re-open Fusion and avoid opening unsupported file types.

380
Provider field in resource-view is blank
Open the individual resource to see the provider.

401
GEE commands are not in the path for sudo.
Specify the full path when running commands or add /opt/google/bin
to the path for all users, including the super user.

402
Provider manager window locked to main window.
No current work around.

403
Missing Close button on system manager window in RHEL 7
Right-click the title bar and select Close.

404
Opaque polygons in preview.
No current work around.

405
Vector layer preview not cleared in some situations
Reset the preview window to the correct state by either clicking on it or previewing another vector layer.

407
Corrupt data warning when starting Fusion
No current work around but Fusion loads and runs correctly.

419
Fix Fusion graphics acceleration in Ubuntu 14 Docker container hosted on Ubuntu 16
No current work around.

437
Rebooting VM while it is building resources results in a corrupted XML
No current work around.

439
Uninstalling Fusion without stopping it results in unexpected error message
Ignore that error message.

440
Fuzzy imagery in historical imagery tests.
No current work around.

442
Multiple database pushes after upgrade don't report a warning
No current work around.

444
Fusion installer does not upgrade the asset root on RHEL 7
Upgrade the asset root manually by running the command that is printed when you try to start the Fusion service.

445
Path to tutorial source volume in gee_test instructions is different from path used in installers
Use /opt/google/share/tutorials.

448
Out of Memory issues
Use a system that has more than 4GB RAM.

453
Improve `check_server_processes_running` detection for uninstall
No current work around.

456
Inconsistent behavior of vector layers after upgrade
No current work around.

460
Possibility of seg fault in QDateWrapper
No current work around.

474
Running gee_check on some supported platforms reports that the platform is not supported
You can ignore the failed test if using a supported platform
(Ubuntu 14.04, Ubuntu 16.04, RHEL 6 and 7, and CentOS 6 and 7).

477
'service geserver stop/start/restart' doesn't work on Ubuntu 16.04 without a reboot
Reboot and try again.

487
gdal - python utilities do not recognize osgeo module
Install python-gdal.

507
Volume host is reported unavailable if `hostname` doesn't match volume host
Set the host values in /gevol/assets/.config/volumes.xml to the FQDN and restart the Fusion service.

557
WMS service problem with 'width' & 'height' & 'bbox'
No current work around.

569
geserver service installation and uninstallation issues
Before uninstalling geserver verify if it's running or not.

590
Maps API JavaScript Files Not Found
No current work around.

594
Save errors only reported for the first image
Close the form in question and try again.

640
Save button disabled in 'Map Layer' creation dialog when an error encountered
Close the resource form and open it again to make the save option available again.

651
Release executables and libraries depend on gtest
Follow current build instructions that requires gtest to be installed.

669
Missing repo in RHEL 7 build instructions
Enable rhel-7-server-optional-rpms and rhel-7-server-optional-source-rpms repos.

686
SCons fails to detect libpng library on CentOS 6
Ensure that a default g++ compiler is installed.

700
Add EL6/EL7 check to RPMs
Make sure that RPMS are installed on same EL version that they were produced for.

788
Search fails after transferring and publishing a database using disconnected send from the command line
Re-publish the database from the web interface.

825
Geserver fails to start up fully due to conflicting protobuf library
Run pip uninstall protobuf to uninstall the protobuf library installed by pip.

1202
Can't select .kip, .ktp, or .kvp as source for resource using Fusion UI.
Add the resource from the command line.

1257
Fusion CLI allows users to enter an invalid date/time for Imagery Resources.
Ensure you use a valid date when creating resources from the command line.

Navigation

          index

          next |

          previous |

Google Earth Enterprise 5.3.8 documentation »

Release notes »

        © Copyright 2021, Open GEE Contributors.
      Created using Sphinx 1.7.5.


text:
package non_hyphenated

import (
	fmt "fmt"
	stream "go.uber.org/thriftrw/protocol/stream"
	thriftreflect "go.uber.org/thriftrw/thriftreflect"
	wire "go.uber.org/thriftrw/wire"
	zapcore "go.uber.org/zap/zapcore"
	strings "strings"
)

type First struct {
}

// ToWire translates a First struct into a Thrift-level intermediate
// representation. This intermediate representation may be serialized
// into bytes using a ThriftRW protocol implementation.
//
// An error is returned if the struct or any of its fields failed to
// validate.
//
//   x, err := v.ToWire()
//   if err != nil {
//     return err
//   }
//
//   if err := binaryProtocol.Encode(x, writer); err != nil {
//     return err
//   }
func (v *First) ToWire() (wire.Value, error) {
	var (
		fields [0]wire.Field
		i      int = 0
	)

	return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil
}

// FromWire deserializes a First struct from its Thrift-level
// representation. The Thrift-level representation may be obtained
// from a ThriftRW protocol implementation.
//
// An error is returned if we were unable to build a First struct
// from the provided intermediate representation.
//
//   x, err := binaryProtocol.Decode(reader, wire.TStruct)
//   if err != nil {
//     return nil, err
//   }
//
//   var v First
//   if err := v.FromWire(x); err != nil {
//     return nil, err
//   }
//   return &v, nil
func (v *First) FromWire(w wire.Value) error {

	for _, field := range w.GetStruct().Fields {
		switch field.ID {
		}
	}

	return nil
}

// Encode serializes a First struct directly into bytes, without going
// through an intermediary type.
//
// An error is returned if a First struct could not be encoded.
func (v *First) Encode(sw stream.Writer) error {
	if err := sw.WriteStructBegin(); err != nil {
		return err
	}

	return sw.WriteStructEnd()
}

// Decode deserializes a First struct directly from its Thrift-level
// representation, without going through an intemediary type.
//
// An error is returned if a First struct could not be generated from the wire
// representation.
func (v *First) Decode(sr stream.Reader) error {

	if err := sr.ReadStructBegin(); err != nil {
		return err
	}

	fh, ok, err := sr.ReadFieldBegin()
	if err != nil {
		return err
	}

	for ok {
		switch {
		default:
			if err := sr.Skip(fh.Type); err != nil {
				return err
			}
		}

		if err := sr.ReadFieldEnd(); err != nil {
			return err
		}

		if fh, ok, err = sr.ReadFieldBegin(); err != nil {
			return err
		}
	}

	if err := sr.ReadStructEnd(); err != nil {
		return err
	}

	return nil
}

// String returns a readable string representation of a First
// struct.
func (v *First) String() string {
	if v == nil {
		return "<nil>"
	}

	var fields [0]string
	i := 0

	return fmt.Sprintf("First{%v}", strings.Join(fields[:i], ", "))
}

// Equals returns true if all the fields of this First match the
// provided First.
//
// This function performs a deep comparison.
func (v *First) Equals(rhs *First) bool {
	if v == nil {
		return rhs == nil
	} else if rhs == nil {
		return false
	}

	return true
}

// MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of First.
func (v *First) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	return err
}

type Second struct {
}

// ToWire translates a Second struct into a Thrift-level intermediate
// representation. This intermediate representation may be serialized
// into bytes using a ThriftRW protocol implementation.
//
// An error is returned if the struct or any of its fields failed to
// validate.
//
//   x, err := v.ToWire()
//   if err != nil {
//     return err
//   }
//
//   if err := binaryProtocol.Encode(x, writer); err != nil {
//     return err
//   }
func (v *Second) ToWire() (wire.Value, error) {
	var (
		fields [0]wire.Field
		i      int = 0
	)

	return wire.NewValueStruct(wire.Struct{Fields: fields[:i]}), nil
}

// FromWire deserializes a Second struct from its Thrift-level
// representation. The Thrift-level representation may be obtained
// from a ThriftRW protocol implementation.
//
// An error is returned if we were unable to build a Second struct
// from the provided intermediate representation.
//
//   x, err := binaryProtocol.Decode(reader, wire.TStruct)
//   if err != nil {
//     return nil, err
//   }
//
//   var v Second
//   if err := v.FromWire(x); err != nil {
//     return nil, err
//   }
//   return &v, nil
func (v *Second) FromWire(w wire.Value) error {

	for _, field := range w.GetStruct().Fields {
		switch field.ID {
		}
	}

	return nil
}

// Encode serializes a Second struct directly into bytes, without going
// through an intermediary type.
//
// An error is returned if a Second struct could not be encoded.
func (v *Second) Encode(sw stream.Writer) error {
	if err := sw.WriteStructBegin(); err != nil {
		return err
	}

	return sw.WriteStructEnd()
}

// Decode deserializes a Second struct directly from its Thrift-level
// representation, without going through an intemediary type.
//
// An error is returned if a Second struct could not be generated from the wire
// representation.
func (v *Second) Decode(sr stream.Reader) error {

	if err := sr.ReadStructBegin(); err != nil {
		return err
	}

	fh, ok, err := sr.ReadFieldBegin()
	if err != nil {
		return err
	}

	for ok {
		switch {
		default:
			if err := sr.Skip(fh.Type); err != nil {
				return err
			}
		}

		if err := sr.ReadFieldEnd(); err != nil {
			return err
		}

		if fh, ok, err = sr.ReadFieldBegin(); err != nil {
			return err
		}
	}

	if err := sr.ReadStructEnd(); err != nil {
		return err
	}

	return nil
}

// String returns a readable string representation of a Second
// struct.
func (v *Second) String() string {
	if v == nil {
		return "<nil>"
	}

	var fields [0]string
	i := 0

	return fmt.Sprintf("Second{%v}", strings.Join(fields[:i], ", "))
}

// Equals returns true if all the fields of this Second match the
// provided Second.
//
// This function performs a deep comparison.
func (v *Second) Equals(rhs *Second) bool {
	if v == nil {
		return rhs == nil
	} else if rhs == nil {
		return false
	}

	return true
}

// MarshalLogObject implements zapcore.ObjectMarshaler, enabling
// fast logging of Second.
func (v *Second) MarshalLogObject(enc zapcore.ObjectEncoder) (err error) {
	if v == nil {
		return nil
	}
	return err
}

// ThriftModule represents the IDL file used to generate this package.
var ThriftModule = &thriftreflect.ThriftModule{
	Name:     "non_hyphenated",
	Package:  "go.uber.org/thriftrw/gen/internal/tests/non_hyphenated",
	FilePath: "non_hyphenated.thrift",
	SHA1:     "5cbe76400805b1c5a248631c4ad87e3dfe6f183e",
	Raw:      rawIDL,
}

const rawIDL = "struct First {}\n\nstruct Second {}"


text:
package org.gradle.internal.resource.transport.file;

import org.gradle.api.internal.artifacts.ivyservice.ArtifactCacheLockingManager;
import org.gradle.api.internal.artifacts.ivyservice.resolutionstrategy.DefaultExternalResourceCachePolicy;
import org.gradle.api.internal.artifacts.ivyservice.resolutionstrategy.ExternalResourceCachePolicy;
import org.gradle.api.internal.file.temp.TemporaryFileProvider;
import org.gradle.cache.internal.ProducerGuard;
import org.gradle.internal.hash.ChecksumService;
import org.gradle.internal.resource.ExternalResourceName;
import org.gradle.internal.resource.ExternalResourceRepository;
import org.gradle.internal.resource.cached.CachedExternalResourceIndex;
import org.gradle.internal.resource.local.FileResourceListener;
import org.gradle.internal.resource.local.FileResourceRepository;
import org.gradle.internal.resource.local.LocallyAvailableExternalResource;
import org.gradle.internal.resource.local.LocallyAvailableResourceCandidates;
import org.gradle.internal.resource.transfer.CacheAwareExternalResourceAccessor;
import org.gradle.internal.resource.transfer.DefaultCacheAwareExternalResourceAccessor;
import org.gradle.internal.resource.transport.AbstractRepositoryTransport;
import org.gradle.util.internal.BuildCommencedTimeProvider;

import javax.annotation.Nullable;
import java.io.IOException;

public class FileTransport extends AbstractRepositoryTransport {
    private final FileResourceRepository repository;
    private final FileCacheAwareExternalResourceAccessor resourceAccessor;

    public FileTransport(String name, FileResourceRepository repository, CachedExternalResourceIndex<String> cachedExternalResourceIndex, TemporaryFileProvider temporaryFileProvider, BuildCommencedTimeProvider timeProvider, ArtifactCacheLockingManager artifactCacheLockingManager, ProducerGuard<ExternalResourceName> producerGuard, ChecksumService checksumService, FileResourceListener listener) {
        super(name);
        this.repository = repository;
        ExternalResourceCachePolicy cachePolicy = new DefaultExternalResourceCachePolicy();
        resourceAccessor = new FileCacheAwareExternalResourceAccessor(new DefaultCacheAwareExternalResourceAccessor(repository, cachedExternalResourceIndex, timeProvider, temporaryFileProvider, artifactCacheLockingManager, cachePolicy, producerGuard, repository, checksumService), listener);
    }

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

    @Override
    public ExternalResourceRepository getRepository() {
        return repository;
    }

    @Override
    public CacheAwareExternalResourceAccessor getResourceAccessor() {
        return resourceAccessor;
    }

    private class FileCacheAwareExternalResourceAccessor implements CacheAwareExternalResourceAccessor {
        private final CacheAwareExternalResourceAccessor delegate;
        private final FileResourceListener listener;

        FileCacheAwareExternalResourceAccessor(CacheAwareExternalResourceAccessor delegate, FileResourceListener listener) {
            this.delegate = delegate;
            this.listener = listener;
        }

        @Nullable
        @Override
        public LocallyAvailableExternalResource getResource(ExternalResourceName source, @Nullable String baseName, ResourceFileStore fileStore, @Nullable LocallyAvailableResourceCandidates additionalCandidates) throws IOException {
            LocallyAvailableExternalResource resource = repository.resource(source);
            listener.fileObserved(resource.getFile());
            if (!resource.getFile().exists()) {
                return null;
            }
            if (baseName == null || resource.getFile().getName().equals(baseName)) {
                // Use the origin file when it can satisfy the basename requirements
                return resource;
            }

            // Use the file from the cache when it does not
            return delegate.getResource(source, baseName, fileStore, additionalCandidates);
        }
    }
}


text:
typedef unsigned long size_t;
typedef long ptrdiff_t;
typedef unsigned int wchar_t;
typedef long double max_align_t;

#define offsetof(type, member) ((size_t)&(((type *)0)->member))

#endif


text:
package com.univ.helsinki.app.core;

public class DeviceFeed {

	private String osVersion = System.getProperty("os.version");
	private String osRelease = android.os.Build.VERSION.RELEASE;
	private String device = android.os.Build.DEVICE;
	private String model = android.os.Build.MODEL;
	private String product = android.os.Build.PRODUCT;
	private String brand = android.os.Build.BRAND;
//	private String display = android.os.Build.DISPLAY;
	private String id = android.os.Build.ID;
	private String manufacturer = android.os.Build.MANUFACTURER;
//	private String serial = android.os.Build.SERIAL;

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return "OS Version :" + osVersion
				+ "\nOS Release :" + osRelease
				+ "\nDevice :" + device
				+ "\nModel :" + model
				+ "\nProduct :" + product;
	}
}


text:
FROM alpine:3.6

LABEL maintainer="developers@graze.com" \
    license="MIT" \
    org.label-schema.schema-version="1.0" \
    org.label-schema.vendor="graze" \
    org.label-schema.name="composer" \
    org.label-schema.description="alpine composer image" \
    org.label-schema.vcs-url="https://github.com/graze/docker-composer"

RUN apk add --no-cache \
    ca-certificates \
    git \
    mercurial \
    openssh-client \
    subversion \
    php5-bz2 \
    php5-cli \
    php5-ctype \
    php5-curl \
    php5-iconv \
    php5-json \
    php5-openssl \
    php5-phar \
    php5-posix \
    php5-zlib

RUN ln -s /usr/bin/php5 /usr/bin/php

ARG COMPOSER_VER
ENV COMPOSER_VER ${COMPOSER_VER:-1.5.1}

RUN php -r "readfile('https://getcomposer.org/installer');" | \
    php -- --install-dir /usr/local/bin --filename composer --version ${COMPOSER_VER} && \
    mkdir -p /home/composer/.composer && \
    ln -s /root/.ssh /home/composer/.ssh

LABEL org.label-schema.version="${COMPOSER_VER}-php5.6"

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME /home/composer/.composer

ARG BUILD_DATE
ARG VCS_REF

LABEL org.label-schema.vcs-ref=$VCS_REF \
    org.label-schema.build-date=$BUILD_DATE \
    org.label-schema.docker.cmd="docker run --rm -it -v $(pwd):/usr/src/app -v ~/.composer:/home/composer/.composer -v ~/.ssh/id_rsa:/home/composer/.ssh/id_rsa:ro graze/composer:${COMPOSER_VER}-php5.6"

WORKDIR /usr/src/app

VOLUME ["/home/composer/.composer"]

ENTRYPOINT ["/usr/bin/php", "/usr/local/bin/composer"]


text:
package com.simulator.controller.er.producer;

import com.simulator.model.messages.MsgExecutionReport;
import com.simulator.model.state.Order;
import com.simulator.model.tags.ExecType;

/**
 * 根据出入的订单,生成对应的执行报告
 *
 * @author sunquan
 *
 */
public class ExecuteOrderImp implements ExecReportProducerInterf {

	private final Order order;
	private final double lastPx;
	private final double lastQty;

	public ExecuteOrderImp(Order inOrder, double lastPx, double lastQty) {
		this.order = inOrder;
		this.lastPx = lastPx;
		this.lastQty = lastQty;

		// update order
		double newLeavesQty = order.getLeavesQty() - lastQty;
		order.setLeavesQty(newLeavesQty);
		ExecType ordStatus; // should be same as execType
		if (newLeavesQty > 0) {
			ordStatus = ExecType.PARTIALLY_FILLED;
		} else {
			ordStatus = ExecType.FILLED;
		}
		order.setOrdStatus(ordStatus);
		// calculate average price
		if (noFillsYet()) {
			order.setAvgPx(lastPx);
		} else if (needsAvgPxCalculation()) {
			// AvgPx = [(AvgPx * CumQty) + (LastShares * LastPx)] / (LastShares
			// + CumQty)
			double newAvgPx = ((order.getAvgPx() * order.getCumQty()) + (lastQty * lastPx))
					/ (lastQty + order.getCumQty());
			order.setAvgPx(newAvgPx);
		}
		order.setCumQty(order.getCumQty() + lastQty);
	}

	private boolean needsAvgPxCalculation() {
		return Double.compare(order.getAvgPx(), lastPx) != 0;
	}
    //判断剩余订单数量是否为0
	private boolean noFillsYet() {
		return Double.compare(order.getCumQty(), 0D) == 0;
	}

	@Override
	public MsgExecutionReport getExecutionReport() {
		MsgExecutionReport.Builder builder = new MsgExecutionReport.Builder(order);
		builder.lastPx(lastPx).lastQty(lastQty);
		return builder.build();
	}

}


text:
module RuboCop
  module Cop
    module Rails
      # This cop enforces that 'exit' calls are not used within a rails app.
      # Valid options are instead to raise an error, break, return or some
      # other form of stopping execution of current request.
      #
      # There are two obvious cases where 'exit' is particularly harmful:
      #
      # - Usage in library code for your application. Even though rails will
      # rescue from a SystemExit and continue on, unit testing that library
      # code will result in specs exiting (potentially silently if exit(0)
      # is used.)
      # - Usage in application code outside of the web process could result in
      # the program exiting, which could result in the code failing to run and
      # do its job.
      class Exit < Cop
        include ConfigurableEnforcedStyle

        MSG = 'Do not use `exit` in Rails applications.'.freeze
        TARGET_METHODS = %i[exit exit!].freeze
        EXPLICIT_RECEIVERS = %i[Kernel Process].freeze

        def on_send(node)
          add_offense(node, :selector) if offending_node?(node)
        end

        private

        def offending_node?(node)
          right_method_name?(node.method_name) &&
            right_argument_count?(node.arguments) &&
            right_receiver?(node.receiver)
        end

        def right_method_name?(method_name)
          TARGET_METHODS.include?(method_name)
        end

        # More than 1 argument likely means it is a different
        # `exit` implementation than the one we are preventing.
        def right_argument_count?(arg_nodes)
          arg_nodes.size <= 1
        end

        # Only register if exit is being called explicitly on
        # Kernel or Process or if receiver node is nil for plain
        # `exit` calls.
        def right_receiver?(receiver_node)
          return true unless receiver_node

          _a, receiver_node_class, _c = *receiver_node

          EXPLICIT_RECEIVERS.include?(receiver_node_class)
        end
      end
    end
  end
end