text:
#ifndef COIN_SOUNKNOWNNODE_H
#define COIN_SOUNKNOWNNODE_H

#ifndef COIN_INTERNAL
#error this is a private header file
#endif /* !CoiN_INTERNAL */

#include <Inventor/nodes/SoSubNode.h>

class SoUnknownNodeP;

/*
  This class is internal, but since the incorrect COIN_DLL_API tag wasn't
  discovered before the 2.0.0 release, it has to stay for the 2.x branch.
*/

class SoUnknownNode : public SoNode {
  typedef SoNode inherited;

  // The following definitions are used instead of SO_NODE_HEADER() to
  // let SoUnknownNodes have dynamic handling of SoFieldData objects.

  PRIVATE_NODE_TYPESYSTEM_HEADER();
protected:
  virtual const SoFieldData * getFieldData(void) const;
private:
  SoFieldData * classfielddata;
  static void * createInstance(void);
  static void atexit_cleanup(void);

  // Node definition starts "proper".

public:
  static void initClass(void);
  SoUnknownNode(void);

  void setNodeClassName(const SbName & name);
  virtual SoChildList * getChildren(void) const;

  virtual void GLRender(SoGLRenderAction * action);
  virtual void getBoundingBox(SoGetBoundingBoxAction * action);
  virtual void pick(SoPickAction * action);
  virtual void search(SoSearchAction * action);
  virtual void write(SoWriteAction * action);

protected:
  virtual ~SoUnknownNode();

  virtual SbBool readInstance(SoInput * in, unsigned short flags);
  virtual const char * getFileFormatName(void) const;
  virtual SoNode * addToCopyDict(void) const;
  virtual void copyContents(const SoFieldContainer * from,
                            SbBool copyconnections);

private:

  SoUnknownNodeP * pimpl;
};

#endif // !COIN_SOUNKNOWNNODE_H


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="apps.stisser.karissa.feelgood" >
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".FeelGood"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".CountrySelection" android:screenOrientation="portrait" />
        <activity android:name=".DiscussionActivity" android:screenOrientation="portrait" />
        <activity android:name=".AskExpert" android:screenOrientation="portrait" />
        <activity android:name=".ExpertResponse" android:screenOrientation="portrait" />
    </application>

</manifest>

redpajama_set_name: RedPajamaGithub


text:
"""

This plugin module can define user-created services for the Portal to start.

To use, copy this module up one level to game/gamesrc/conf/ and set
settings.PORTAL_SERVICES_PLUGIN_MODULE to point to this module.

This module must handle all imports and setups required to start a twisted
service (see examples in src/server/server.py). It must also contain a
function start_plugin_services(application). Evennia will call this function
with the main Portal application (so your services can be added to it). The
function should not return anything. Plugin services are started last in
the Portal startup process.

"""

def start_plugin_services(portal):
    """
    This hook is called by Evennia, last in the Portal startup process.

    portal - a reference to the main portal application.
    """
    pass


text:
package org.au9ustine.puzzles.leetcode.P20120330_0;

import org.au9ustine.puzzles.leetcode.commons.ListNode;

/**
 * Created by shaotch on 12/15/2014.
 */
public interface Solution {
    ListNode mergeTwoLists(ListNode l1, ListNode l2);
}


text:
require "spec_helper"

describe Notifier do
  pending "add some examples to (or delete) #{__FILE__}"
end


text:
#ifndef _SIBASEAPPLICATION_H_
#define _SIBASEAPPLICATION_H_

#include <SIBCUtil.h>
#include <SIBCNode.h>
#include <Scene.h>
#include <Camera.h>
#include "SIRTProcess.h"
#include "SIDisplayDriver.h"
#include "SIBCNetworkLayer.h"
#include <SIBCPixMap.h>

/**
* realtime shader runtime info
*/
typedef struct tagSI_ShaderRuntimeInfo
{
	CSIBCString				ProgID;	/*!< Shader ProgID. See the SOFTIMAGE|XSI SDK Documentation on Realtime Shaders*/
	Shader_Init				Init;	/*!< Shader Initialization callback*/
	Shader_Eval				Eval;	/*!< Shader Evaluation callback*/
	Shader_Exit				Exit;	/*!< Shader Shutdown callback*/
	Shader_Requirement		Requirement;	/*!< Shader Requirement callback*/
	void *					m_pHandle;		/*!< The handle to the DSO containing this shader (Linux) */
} SI_ShaderRuntimeInfo;

/**
* Standard Game pad information
*/
typedef struct tagSI_GamePadInfo
{
	SI_Float	leftX;	/*!< left analog stick X value */
	SI_Float	leftY;	/*!< left analog stick Y value */

	SI_Float	rightX; /*!< right analog stick X value */
	SI_Float	rightY; /*!< right analog stick Y value */

	// D-PAD
	SI_Float	dpadX; /*!< D-PAD X value */
	SI_Float	dpadY; /*!< D-PAD Y value */

	// Front buttons
	SI_Float	front_right_1; /*!<  Front right button 1*/
	SI_Float	front_right_2; /*!<  Front right button 2*/

	SI_Float	front_left_1; /*!< Front left button 1*/
	SI_Float	front_left_2; /*!< Front left button 2*/

	SI_Float	buttons[8];	/*!< Array of top button states*/

	SI_Float	start;		/*!< start button*/
	SI_Float	select;		/*!< select button*/

} SI_GamePadInfo;

/**
* Warning structure
*/
typedef struct tagSI_Warning
{
	CSIBCString				m_szWarning;	/*!< Error string */
	SI_Int					m_iLevel;		/*!< Error level ( SI_ERROR or SI_WARNING ) */

} SI_Warning;

class XSIEXPORT CSI_ImageClip : public CSIBCPixMap
{
public:

	CSI_ImageClip();
	virtual ~CSI_ImageClip();

	SI_Long	AddRef();
	SI_Long Release();

	void		SetRefName ( SI_Char* in_szName ) { m_szRefName = in_szName; };
	SI_Char*	GetRefName ();

private:

	SI_Long			m_lRefCount;
	CSIBCString		m_szRefName;
};

class SI_Time;

/**
* Base Application base class
* The BaseApplication class is used as base class for all applications that use the Runtime Engine.
*
* It is the provider or container for several features:
*
* <B> Acts as the Scene Container </B>
*
* It contains 3 types of scene objects (CSLScene).
* - 3D Scenes
*	- 3D data gets evaluated and drawn with a perspective projection. All 3D objects rendered by the viewer should be in one (or more) 3D scene.
* - 2D Scenes
*	- The overlay scenes (or 2D scenes) are processes that are evaluated when the engine is using an orthognal projection matrix. This is used when overlays such as HUDs or text need to be rendered on top of the scene
* - A single Master Scene
*	- The MasterScene contains Application specific processes such as mouse, joystick and network controllers.
*
* <B> Acts as the Image/Texture Manager </B>
*
* The BaseApplication class also contains the image list (image cache) used for textures.
* \sa CSIBaseApplication::GetImageList
* \sa CSIBaseApplication::FindImage
* \sa CSIBaseApplication::AddImage
*
* <B> Provides message logging services </B>
*
* Several functions may be used to log messages to the user
* \sa CSIBaseApplication::Warning
* \sa CSIBaseApplication::GetNbWarnings
* \sa CSIBaseApplication::GetWarning
*
* <B> Acts as a Runtime Process Factory </B>
*
* Using FindRegisteredProcess and GetRegisteredProcessList, the application is able to create Runtime Process (like CSIRTP_FCurve processes etc.) on-the-fly.
* \sa CSIBaseApplication::FindRegisteredProcess
* \sa CSIBaseApplication::GetRegisteredProcessList
*/

class XSIEXPORT CSIBaseApplication : public CSIBCNode
{
public:

	//! constructor for the CSIBaseApplication class
	/*!
	\return A pointer to the new CSIBaseApplication
	*/
	CSIBaseApplication();

	//! destructor for the CSIBaseApplication class
	/*!
	\return Nothing
	*/
	virtual ~CSIBaseApplication();

	//! GetMasterScene	returns the master scene object
	/*!
	\return CSLScene *
	*/
	virtual CSLScene*	GetMasterScene() { return &m_pMasterScene; };

	//! Create3DScene creates a new scene and adds it to the list of 3D scenes
	/*!
	\return CSLScene *
	*/
	virtual CSLScene*	Create3DScene();

	//! GetNb3DScenes returns the number of scenes in the list of 3D scenes
	/*!
	\return SI_Int	The number of scenes
	*/
	virtual SI_Int		GetNb3DScenes();

	//! Get3DScene returns the 3D scene specified by the 0-based index passed in
	/*!
	\param	SI_Int		The 0-based index in the scene list
	\return CSLScene*	the scene or NULL if index was out of range
	*/
	virtual CSLScene*	Get3DScene( SI_Int in_iIndex);

	/*! Removes the last scene created with CSIBaseApplication::Create3DScene.
		This call is made when a scene is created to load a file, but an error
		occurs on loading, and the scene needs to be removed.
	*/
	virtual SI_Void	RemoveLast3DScene( );

	/*! Removes the specified 3D scene in the from the list.
	*/
	virtual SI_Void	Remove3DScene( CSLScene* in_pScene );

	//! RemoveAll3DScenes removes all 3D scenes in the list and frees the memory it occupies
	/*!
	\return Nothing
	*/
	virtual SI_Void		RemoveAll3DScenes();

	//! Create2DScene creates a new scene and adds it to the list of 2D scenes
	/*!
	\return CSLScene *
	*/
	virtual CSLScene*	Create2DScene();

	//! GetNb2DScenes returns the number of scenes in the list of 2D scenes
	/*!
	\return SI_Int	The number of scenes
	*/
	virtual SI_Int		GetNb2DScenes();

	//! Get2DScene returns the 2D scene specified by the 0-based index passed in
	/*!
	\param	SI_Int		The 0-based index in the scene list
	\return CSLScene*	the scene or NULL if index was out of range
	*/
	virtual CSLScene*	Get2DScene( SI_Int in_iIndex);

	/*! Removes the last scene created with CSIBaseApplication::Create2DScene.
		This call is made when a scene is created to load a file, but an error
		occurs on loading, and the scene needs to be removed.
	*/
	virtual SI_Void	RemoveLast2DScene( );

	//! RemoveAll2DScenes removes all 2D scenes in the list and frees the memory it occupies
	/*!
	\return Nothing
	*/
	virtual SI_Void		RemoveAll2DScenes();

	//! AddRegisteredProcess Adds a new registered process to the list
	/*!
	\param	CSIRTProcess*	A pointer to the process
	\return SI_Error		error code
	*/
	virtual SI_Error AddRegisteredProcess ( CSIRTProcess* in_pNewProcess );

	//! GetRegisteredProcessList get the list of registered processes for runtime linkage
	/*!
	\return CSIBCArray<CSIRTProcess*>* the list of registered processes
	*/
	virtual CSIBCArray <CSIRTProcess *> *GetRegisteredProcessList();

	//! FindRegisteredProcess finds a registered process by name
	/*!
	\SI_Char* describing the name of the process to find
	\return CSIRTProcess* NULL if not found, or a pointer to the CSIRTProcess
	*/
	virtual CSIRTProcess				*FindRegisteredProcess(SI_Char	*in_pName);

	//! CreateRegisteredProcess create an instance of a registered process by name
	/*!
	\param	SI_Char*			describing the name of the process to create
	\param	CSIRTProcess**		Will hold a pointer to the newly created process
	\return CSIRTProcess* NULL if not found, or a pointer to the CSIRTProcess
	*/
	virtual SI_Error					CreateRegisteredProcess(SI_Char	*in_pName, CSIRTProcess **out_pProcess);

	//! RemoveAllRegisteredProcesses removes and clean the list of registered processes
	/*!
	\return success or failure code
	*/
	virtual SI_Error					RemoveAllRegisteredProcesses();

	//! get the display driver handle
	/*!
	\return A pointer to the display driver handle
	*/
	virtual CSIDisplayDriver	*GetDisplayDriver();

	//! get the network handle
	/*!
	\return A pointer to the network layer handle
	*/
	virtual SIBCNetworkLayer	*GetNetworkDriver();

	//! set the display driver handle
	/*!
	\param	in_pDisplayDriver being a pointer to a display driver instance
	\return A pointer to the new CSIViewerApplication
	*/
	virtual SI_Void				SetDisplayDriver(CSIDisplayDriver *in_pDisplayDriver);

	// Shortcuts
	//! get the camera
	/*!
	\return A pointer to the camera
	*/
	virtual CSLCamera	*GetCamera();

	//! get the camera manipulator
	/*!
	\return A pointer to the camera manipulator
	*/
	virtual CSIRTProcess *GetCameraManipulator();

	//! get the game pad info
	/*!
	\return A pointer to the game pad info
	*/
	virtual SI_GamePadInfo *GetGamePadInfo();

	//! get the time info
	/*!
	\return A pointer to the time info
	*/
	virtual SI_Time *GetTimeInfo();

	//! get the shaders runtime info
	/*!
	\return A pointer to the shaders runtime info list
	*/
	virtual CSIBCArray <SI_ShaderRuntimeInfo> *GetShaderRuntimeInfo();

	//! finds the shaders runtime info
	/*!
	\return A pointer to the shaders runtime info
	*/
	virtual SI_ShaderRuntimeInfo *FindShaderRuntimeInfo(SI_Char *in_pProgID);

	//! get the image clip list
	/*!
	\return A pointer to the image clip list
	*/
	virtual CSIBCArray <CSI_ImageClip*> *GetImageList();

	//! finds the image clip
	/*!
	\return A pointer to the image clip
	*/
	virtual CSI_ImageClip *FindImage(SI_Char *in_pImagePath);

	//! adds the image clip
	/*!
	\return A pointer to the image clip
	*/
	virtual CSI_ImageClip *AddImage(SI_Char *in_pImagePath);

	//! adds the image clip with a reference name
	/*!
	\param	SI_Char*	The reference name
	\param	SI_Char*	The path to the image
	\return A pointer to the image clip
	*/
	virtual CSI_ImageClip *AddImage(SI_Char* in_szRefName, SI_Char *in_pImagePath);

	//! get the application ID
	/*!
	\return the application ID
	*/
	virtual SI_Int	GetApplicationID();

	//! set the application ID
	/*!
	\int describing the application ID to set
	\return nothing
	*/
	virtual SI_Void	SetApplicationID(SI_Int in_lAppID);

	//! set wether the application shows warnings generated by the various parts of the application
	/*!
	\SI_Bool SI_TRUE to show the warnings
	\return nothing
	*/
	virtual SI_Void	SetShowWarnings(SI_Bool	in_bWarnings);

	//! gets the flag that indicates if the application should show warnings
	/*!
	\return SI_Bool
	*/
	virtual SI_Bool	GetShowWarnings();

	//! gets the HWND of the main window
	/*!
	\return SI_Void*
	*/
	virtual SI_Void*	GetMainHwnd() { return NULL;}

	//! Generate a new warning
	/*!
	\SI_Char*	the warning
	\SI_Int*	the warning level ( SI_MESSAGE, SI_WARNING, SI_ERROR )
	\return nothing
	*/
	static SI_Void	Warning( SI_Char* in_szWarning, SI_Int in_iLevel );

	//! Gets the number of warning in the list
	/*!
	\return Number of warnings
	*/
	SI_Int	GetNbWarnings();

	//! Gets a warning from the list
	/*!
	\param	SI_Warning& the warning
	\return SI_Warning*	A pointer to the warning, or null if index is invalid
	*/
	SI_Warning*	GetWarning( SI_Int in_iIndex );
	SI_Void		ClearWarning( );

	//! Get Global Dirty Flag
	/*!
	\return SI_UInt	The global dirty flag
	*/
	SI_UInt		GetGlobalDirtyState() { return m_uiGlobalDirtyState; };

	//! Set Global Dirty Flag
	/*!
	\param	SI_UInt	The new dirty state
	\return nothing
	*/
	SI_Void		SetGlobalDirtyState( SI_UInt in_uiNewState ) { m_uiGlobalDirtyState = in_uiNewState; };

	bool        IsOtherInstanceRunning() { return m_bOtherInstanceRunning; }

protected:

	CSIDisplayDriver					*m_pDisplayDriver;
	SIBCNetworkLayer					*m_pNetwork;

	// Shortcuts
	CSLCamera							*m_pCamera;
	CSIRTProcess						*m_pCameraManipulator;
	SI_GamePadInfo						m_GamePadInfo;
	SI_Time								*m_Time;						// constructed by platform specific code
	CSIBCArray <SI_ShaderRuntimeInfo>	m_ShaderRuntimeInfo;
	SI_ShaderRuntimeInfo				m_DefaultShaderRuntimeInfo;
	SI_UInt								m_uiGlobalDirtyState;			// Global dirty flag

private:

	CSLScene							m_pMasterScene;
	CSIBCArray <CSLScene *>				m_p3DSceneList;
	CSIBCArray <CSLScene *>				m_p2DSceneList;
	CSIBCArray <CSIRTProcess *>			m_pProcessList;
	CSIBCArray <CSI_ImageClip *>		m_pImagePool;
	SI_Int								m_lApplicationID;

	static SI_Bool						m_bShowWarnings;
	static CSIBCArray <SI_Warning>		m_pWarnings;

	SI_Void*							m_pUnused;

    bool                                m_bOtherInstanceRunning;
};

#endif


text:
#ifndef GeolocationServiceBridge_h
#define GeolocationServiceBridge_h

#include "JNIUtility.h"
#include <wtf/PassRefPtr.h>

namespace WebCore {

class Frame;
class GeolocationServiceAndroid;
class Geoposition;

// GeolocationServiceBridge is the bridge to the Java implementation. It manages
// the lifetime of the Java object. It is an implementation detail of
// GeolocationServiceAndroid.
class GeolocationServiceBridge {
public:
    typedef GeolocationServiceAndroid ListenerInterface;
    GeolocationServiceBridge(ListenerInterface* listener, Frame* frame);
    ~GeolocationServiceBridge();

    bool start();
    void stop();
    void setEnableGps(bool enable);

    // Static wrapper functions to hide JNI nastiness.
    static void newLocationAvailable(JNIEnv *env, jclass, jlong nativeObject, jobject location);
    static void newErrorAvailable(JNIEnv *env, jclass, jlong nativeObject, jstring message);
    static PassRefPtr<Geoposition> toGeoposition(JNIEnv *env, const jobject &location);

private:
    void startJavaImplementation(Frame* frame);
    void stopJavaImplementation();

    ListenerInterface* m_listener;
    jobject m_javaGeolocationServiceObject;
};

} // namespace WebCore

#endif // GeolocationServiceBridge_h


text:
let configureFixes = configureSemistandardFixes;
export default configureFixes;

export function applyFix(line, fix, error) {
  if (fix.exec) {
    line = fix.exec(line, error);
  } else {
    line = line.replace(fix.search, fix.replace);
  }
  return line;
}
// To create a new rule, give it either an `exec` function or a `search/replace` pair of Regex's
// If a rule has `exec`, that will be executed instead of `search/replace`
// Signature of `exec` is `function(line, errorInfo)` and it returns a
// transformed line that applies the fix.
// If a rule can be fixed with just regex, use `search/replace` to find
// and replace on a line to apply a fix.

function configureSemistandardFixes() {
  return {
    // Place semicolon at end of line
    semi: {
      search: /$/,
      replace: ';'
    },
    spaceBeforeFunctionParen: {
      search: /^(.*)\((.*)\) {/,
      replace: function(match, $1, $2, offset, original) {
        return `${$1} (${$2}) {`;
      }
    },
    // This one could be dangerous if there are nested escaped quotes
    quotes: {
      search: /"/g,
      replace: '\''
    },
    noTrailingSpaces: {
      search: /^(.*?)\s+$/,
      replace: '$1'
    },
    spacedComment: {
      search: /^(.*)(\/{2,}|\/\*)(.*)$/,
      replace: '$1$2 $3'
    },
    noFloatingDecimal: {
      search: /^(.*)(\.\d+)(.*)$/,
      replace: function(match, $1, $2, $3) {
        return $1 + '0' + $2 + $3;
      }
    },
    commaDangle: {
      search: /^(.*),(.*)$/,
      replace: '$1$2'
    }
/*  indent: {
      exec: function indentLine(line, error) {
        let { errorMessage } = error;
        let foundIndent = errorMessage.match(/\d+/)[0];
        let expectedIndent = errorMessage.match(/(.*)(\d+)/)[2];
        let indentDelta = foundIndent - expectedIndent;

        let lineArr = line.split('');
        if (indentDelta > 0) {
          // found > expected, so remove whitespace
          lineArr.splice(0,indentDelta);
        } else {
          // found < expected, add whitespace
          lineArr = Array(Math.abs(indentDelta)).fill(' ').concat(lineArr);
        }

        console.log(`Found: ${foundIndent}, Expected: ${expectedIndent}`);
        console.log(`Old Line: ${line}`);
        line = lineArr.join('');
        console.log(`New Line: ${line}`);
        return line;
      }
    }*/
  }
}


text:
<!DOCTYPE HTML>

    <title>Home</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content=" " />

    <link href="<?php echo base_url(); ?>skin/admin/css/bootstrap.min.css" rel='stylesheet' type='text/css' />

    <link href="<?php echo base_url(); ?>skin/admin/css/style.css" rel='stylesheet' type='text/css' />

    <link href="<?php echo base_url(); ?>skin/admin/css/lines.css" rel='stylesheet' type='text/css' />
    <link href="<?php echo base_url(); ?>skin/admin/css/font-awesome.css" rel="stylesheet">

    <link href='http://fonts.useso.com/css?family=Roboto:400,100,300,500,700,900' rel='stylesheet' type='text/css'>

    <link href="<?php echo base_url(); ?>skin/admin/css/custom.css" rel="stylesheet">

                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    Toggle navigation

                </button>
                YSD_keven

            <form class="navbar-form navbar-right">
                <input type="text" class="form-control" value="Search..." onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Search...';}">
            </form>

                            控制面板

                            <a href="<?php echo base_url();?>admin/timeorder">未处理订单

                            <a href="<?php echo base_url();?>admin/allorder">所有订单

                            <a href="<?php echo base_url();?>admin/menuclass">菜单分类

                            <a href="<?php echo base_url();?>admin/menulist">所有菜品

                            <a href="<?php echo base_url();?>admin/menuadd.">添加菜品

所有订单

                                #ID
                                台号
                                点菜数量
                                总价
                                时间
                                操作

                           <?php foreach($fdata as $key) : ?>

                                <?php echo $key['oID'];?>
                                <?php echo $key['oTableNumber']?>
                                <?php echo $key['oMenuNumber'];?>
                                <?php echo $key['oMoney'];?>
                                <?php echo $key['oAddTime'];?>

                                <button id="om_<?php echo $key['oID'];?>"
                                type="button" class="btn btn-info btn-sm" oid="<?php echo $key['oID'];?>">详情</button>

                            <?php endforeach; ?>

                        <?php echo $plink; ?>

Copyright © 2016.Company name All rights reserved. YSD - Collect from YSD_keven

                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

台号:

                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button onclick="orderPrint()" type="button" class="btn btn-primary">打印</button>


text:
<?xml version="1.0" encoding="UTF-8"?>
<csd:careServicesFunction xmlns:ev="http://www.w3.org/2001/xml-events"
  xmlns:xforms="http://www.w3.org/2002/xforms"
  xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xi="http://www.w3.org/2001/XInclude"
  xmlns:csd="urn:ihe:iti:csd:2013"
  urn="urn:openhie.org:openinfoman-rapidpro:select_facility" content-type="application/json">
  <csd:description>
    Creates selection menu of all the CSD organizations and faciltiies with a specified parent.  Designed as part of heierarchical facility selection menus in RapidPro webhooks.
  </csd:description>
  <csd:definition ><xi:include parse='text' href='select_facility.xq'/></csd:definition>
  <xforms:instance>
    <csd:careServicesRequest>
      <event/>
      <relayer/>
      <relayer_phone/>
      <phone/>
      <flow/>
      <step/>
      <values/>
      <query/>
    </csd:careServicesRequest>
  </xforms:instance>
  <csd:extension type='rapidpro' urn='urn:openhie.org:openinfoman:adapter'/>
  <csd:extension type='GET' urn='urn:openhie.org:openinfoman:adapter:rapidpro:action'/>
</csd:careServicesFunction>


text:
FROM ubuntu:16.04
ADD . /dist
WORKDIR /dist
RUN bash install.sh
RUN yarn install --unsafe-perm


text:
<?php namespace zgldh\LaravelQueryFilter;

/**
 * 筛选器字段类。定义该字段的对应关系和筛选策略
 * Class Column
 * @package zgldh/laravel-query-filter
 * @author  zgldh
 */
class Column
{
    const LIKE = 'Like';
    const EQUAL = 'Equal';
    const NOT_EQUAL = 'NotEqual';
    const GREATER_THAN = 'GreaterThan';
    const LESS_THAN = 'LessThan';
    const BETWEEN = 'Between';
    const CALLBACK = 'Callback';

    private $keyName = null;
    private $columnName = null;
    private $operator = null;
    private $callback = null;
    private $force = false;
    private $defaultValue = null;

    /**
     * Column constructor.
     * @param $keyName         参数字段名
     * @param null $columnName 数据库字段名
     * @param string $operator 筛选策略|操作符|回调函数
     * @param bool $force      true 必定触发, false 按需触发
     */
    function __construct($keyName, $columnName = null, $operator = self::EQUAL, $force = false)
    {
        $this->keyName = $keyName;
        $this->columnName = $columnName ?: $keyName;

        if (is_callable($operator)) {
            $this->operator = self::CALLBACK;
            $this->callback = $operator;
        } else {
            $this->operator = $operator ?: self::EQUAL;
        }

        $this->force = $force;
    }

    /**
     * 构建Column
     * @param $keyName
     * @param null $columnName
     * @param string $operator
     * @param bool $force
     * @return Column
     */
    public static function build($keyName, $columnName = null, $operator = self::EQUAL, $force = false)
    {
        $column = new self($keyName, $columnName, $operator, $force);
        return $column;
    }

    /**
     * 设置本列默认值
     * @param $defaultValue
     * @return $this
     */
    public function setDefaultValue($defaultValue)
    {
        if (is_callable($defaultValue)) {
            $defaultValue = $defaultValue();
        }
        $this->defaultValue = $defaultValue;
        return $this;
    }

    /**
     * 过滤默认值
     * @return null
     */
    public function getDefaultValue()
    {
        return $this->defaultValue;
    }

    /**
     * 应用该字段筛选策略到一个Eloquent|Query builder上
     * @param $builder
     * @param array $parameters
     * @return mixed
     * @throws \Exception
     */
    public function appendQuery($builder, $parameters = [])
    {
        if (!isset($parameters[$this->keyName]) && $this->defaultValue !== null) {
            $parameters[$this->keyName] = $this->defaultValue;
        }

        if (!isset($parameters[$this->keyName]) && $this->force == false) {
            return $builder;
        }
        $columnValue = isset($parameters[$this->keyName]) ? $parameters[$this->keyName] : null;
        $columnValue = $this->normalizeColumnValue($columnValue);

        $methodName = 'query' . $this->operator;
        if (!method_exists($this, $methodName)) {
            throw new \Exception("Bad operator: " . $this->operator);
        }

        $builder = $this->$methodName($builder, $columnValue);

        return $builder;
    }

    /**
     * 规范化字段数值
     * @param $value
     * @return array
     */
    private function normalizeColumnValue($value)
    {
        if ($this->operator == self::BETWEEN) {
            if (isset($value['start']) || isset($value['end'])) {
                $value = [$value];
            }
        } elseif ($this->operator != self::CALLBACK) {
            if (!is_array($value)) {
                $value = [$value];
            }
        }
        return $value;
    }

    /**
     * @return null|参数字段名
     */
    public function getKeyName()
    {
        return $this->keyName;
    }

    /**
     * @param null|参数字段名 $keyName
     */
    public function setKeyName($keyName)
    {
        $this->keyName = $keyName;
    }

    /**
     * @return null|参数字段名
     */
    public function getColumnName()
    {
        return $this->columnName;
    }

    /**
     * @param null|参数字段名 $columnName
     */
    public function setColumnName($columnName)
    {
        $this->columnName = $columnName;
    }

    /**
     * @return null|string
     */
    public function getOperator()
    {
        return $this->operator;
    }

    /**
     * @param null|string $operator
     */
    public function setOperator($operator)
    {
        $this->operator = $operator;
    }

    /**
     * @return boolean
     */
    public function isForce()
    {
        return $this->force;
    }

    /**
     * @param boolean $force
     */
    public function setForce($force)
    {
        $this->force = $force;
    }

    /**
     * 执行Like筛选
     * @param $builder
     * @param $columnValues
     * @return mixed
     */
    private function queryLike($builder, $columnValues)
    {
        if (count($columnValues) == 1) {
            $builder = $builder->where($this->columnName, 'like', '%' . $columnValues[0] . '%');
        } else {
            $me = $this;
            $builder = $builder->where(function ($q) use ($me, $columnValues) {
                foreach ($columnValues as $value) {
                    $q->orWhere($me->columnName, 'like', '%' . $value . '%');
                }
            });
        }
        return $builder;
    }

    /**
     * 执行Equal筛选
     * @param $builder
     * @param $columnValues
     * @return mixed
     */
    private function queryEqual($builder, $columnValues)
    {
        if (count($columnValues) == 1) {
            $builder = $builder->where($this->columnName, $columnValues[0]);
        } else {
            $me = $this;
            $builder = $builder->where(function ($q) use ($me, $columnValues) {
                foreach ($columnValues as $value) {
                    $q->orWhere($me->columnName, $value);
                }
            });
        }
        return $builder;
    }

    /**
     * 执行Not Equal筛选
     * @param $builder
     * @param $columnValues
     * @return mixed
     */
    private function queryNotEqual($builder, $columnValues)
    {
        if (count($columnValues) == 1) {
            $builder->where($this->columnName, '<>', $columnValues[0]);
        } else {
            $me = $this;
            $builder = $builder->where(function ($q) use ($me, $columnValues) {
                foreach ($columnValues as $value) {
                    $q->where($me->columnName, '<>', $value);
                }
            });
        }
        return $builder;
    }

    /**
     * 执行大于筛选
     * @param $builder
     * @param $columnValues
     * @return mixed
     */
    private function queryGreaterThan($builder, $columnValues)
    {
        if (count($columnValues) == 1) {
            $builder->where($this->columnName, '>', $columnValues[0]);
        } else {
            $me = $this;
            $builder = $builder->where(function ($q) use ($me, $columnValues) {
                foreach ($columnValues as $value) {
                    $q->where($me->columnName, '>', $value);
                }
            });
        }
        return $builder;
    }

    /**
     * 执行小于筛选
     * @param $builder
     * @param $columnValues
     * @return mixed
     */
    private function queryLessThan($builder, $columnValues)
    {
        if (count($columnValues) == 1) {
            $builder->where($this->columnName, '<', $columnValues[0]);
        } else {
            $me = $this;
            $builder = $builder->where(function ($q) use ($me, $columnValues) {
                foreach ($columnValues as $value) {
                    $q->where($me->columnName, '<', $value);
                }
            });
        }
        return $builder;
    }

    /**
     * 执行between筛选
     * @param $builder
     * @param $columnValues
     * @return mixed
     */
    private function queryBetween($builder, $columnValues)
    {
        if (count($columnValues) == 1) {
            (!isset($columnValues[0]['start']) || $columnValues[0]['start'] == '') ?: $builder->where($this->columnName,
                '>=', $columnValues[0]['start']);
            (!isset($columnValues[0]['end']) || $columnValues[0]['end'] == '') ?: $builder->where($this->columnName,
                '<=', $columnValues[0]['end']);
        } else {
            $me = $this;
            $builder = $builder->where(function ($query) use ($me, $columnValues) {
                foreach ($columnValues as $value) {
                    $query->orWhere(function ($q) use ($me, $value) {
                        (!isset($value['start']) || $value['start'] == '') ?: $q->where($me->columnName, '>=',
                            $value['start']);
                        (!isset($value['end']) || $value['end'] == '') ?: $q->where($me->columnName, '<=',
                            $value['end']);
                    });
                }
            });
        }
        return $builder;
    }

    private function queryCallback($builder, $columnValues)
    {
        $callback = $this->callback;
        $builder = call_user_func($callback, $builder, $this, $columnValues);
        return $builder;
    }
}


text:
class AddIndexes < ActiveRecord::Migration
  def self.up
    add_index :songs,   :title
    add_index :songs,   :album_id
    add_index :songs,   :artist_id
    add_index :artists, :name
    add_index :albums,  :name
    add_index :votes,   :song_id
    add_index :votes,   :user_id
    add_index :votes,   :artist_id
  end

  def self.down
    remove_index :songs,   :title
    remove_index :songs,   :album_id
    remove_index :songs,   :artist_id
    remove_index :artists, :name
    remove_index :albums,  :name
    remove_index :votes,   :song_id
    remove_index :votes,   :user_id
    remove_index :votes,   :artist_id
  end
end


text:
"use strict";
//# sourceMappingURL=ICommListener.js.map


text:
from mock import call
from nose.tools import istest

from provy.more.debian import AptitudeRole, IPTablesRole
from tests.unit.tools.helpers import ProvyTestCase

class IPTablesRoleTest(ProvyTestCase):
    def setUp(self):
        super(IPTablesRoleTest, self).setUp()
        self.role = IPTablesRole(prov=None, context={'cleanup': []})

    @istest
    def installs_necessary_packages_to_provision(self):
        with self.using_stub(AptitudeRole) as aptitude, self.execute_mock():
            self.role.provision()

            aptitude.ensure_package_installed.assert_any_call('iptables')

    @istest
    def allows_ssh_connection_during_provisioning(self):
        with self.using_stub(AptitudeRole), self.execute_mock() as execute:
            self.role.provision()

            execute.assert_any_call('iptables -A INPUT -j ACCEPT -p tcp --dport ssh', stdout=False, sudo=True)

    @istest
    def lists_all_available_chains_and_rules(self):
        with self.execute_mock() as execute:
            execute.return_value = "some rules"

            result = self.role.list_rules()

            execute.assert_called_with('iptables -L', stdout=True, sudo=True)
            self.assertEqual(result, "some rules")

    @istest
    def lists_all_available_chains_and_rules_with_commands(self):
        with self.execute_mock() as execute:
            execute.return_value = "some rules"

            result = self.role.list_rules_with_commands()

            execute.assert_called_with('iptables-save', stdout=True, sudo=True)
            self.assertEqual(result, "some rules")

    @istest
    def saves_configurations_when_finishing_provisioning(self):
        with self.execute_mock() as execute:
            self.role.schedule_cleanup()

            execute.assert_any_call("iptables-save > /etc/iptables.rules", stdout=False, sudo=True)

    @istest
    def blocks_all_other_ports_when_finishing_provisioning(self):
        with self.execute_mock() as execute:
            self.role.schedule_cleanup()

            execute.assert_any_call("iptables -A INPUT -j REJECT -p all", stdout=False, sudo=True)

    @istest
    def leaves_others_unblocked_when_finishing_provisioning_if_desired(self):
        with self.execute_mock() as execute:
            self.role.block_on_finish = False
            self.role.schedule_cleanup()

            call_to_avoid = call("iptables -A INPUT -j REJECT -p all", stdout=False, sudo=True)
            self.assertNotIn(call_to_avoid, execute.mock_calls)

    @istest
    def allows_incoming_tcp_in_all_ports(self):
        with self.execute_mock() as execute:
            self.role.allow()

            execute.assert_called_with('iptables -A INPUT -j ACCEPT -p tcp', stdout=False, sudo=True)

    @istest
    def allows_incoming_tcp_in_a_specific_port(self):
        with self.execute_mock() as execute:
            self.role.allow(port=80)

            execute.assert_called_with('iptables -A INPUT -j ACCEPT -p tcp --dport 80', stdout=False, sudo=True)

    @istest
    def allows_incoming_tcp_in_a_specific_port_by_name(self):
        with self.execute_mock() as execute:
            self.role.allow(port='ssh')

            execute.assert_called_with('iptables -A INPUT -j ACCEPT -p tcp --dport ssh', stdout=False, sudo=True)

    @istest
    def allows_incoming_tcp_in_a_specific_interface(self):
        with self.execute_mock() as execute:
            self.role.allow(interface='eth0')

            execute.assert_called_with('iptables -A INPUT -j ACCEPT -p tcp -i eth0', stdout=False, sudo=True)

    @istest
    def allows_outgoing_tcp_in_all_ports(self):
        with self.execute_mock() as execute:
            self.role.allow(direction="out")

            execute.assert_called_with('iptables -A OUTPUT -j ACCEPT -p tcp', stdout=False, sudo=True)

    @istest
    def allows_forward_tcp_in_all_ports(self):
        with self.execute_mock() as execute:
            self.role.allow(direction="forward")

            execute.assert_called_with('iptables -A FORWARD -j ACCEPT -p tcp', stdout=False, sudo=True)

    @istest
    def allows_incoming_udp_in_all_ports(self):
        with self.execute_mock() as execute:
            self.role.allow(protocol="udp")

            execute.assert_called_with('iptables -A INPUT -j ACCEPT -p udp', stdout=False, sudo=True)

    @istest
    def allows_incoming_tcp_in_all_ports_with_a_match_filter(self):
        with self.execute_mock() as execute:
            self.role.allow(match="state", state="ESTABLISHED,RELATED")

            execute.assert_called_with('iptables -A INPUT -j ACCEPT -p tcp -m state --state ESTABLISHED,RELATED', stdout=False, sudo=True)

    @istest
    def rejects_incoming_connections_in_all_ports_and_protocols(self):
        with self.execute_mock() as execute:
            self.role.reject()

            execute.assert_called_with('iptables -A INPUT -j REJECT -p all', stdout=False, sudo=True)

    @istest
    def rejects_tcp_connections_in_all_ports(self):
        with self.execute_mock() as execute:
            self.role.reject(protocol="tcp")

            execute.assert_called_with('iptables -A INPUT -j REJECT -p tcp', stdout=False, sudo=True)

    @istest
    def rejects_tcp_connections_in_a_specific_port(self):
        with self.execute_mock() as execute:
            self.role.reject(port=80, protocol="tcp")

            execute.assert_called_with('iptables -A INPUT -j REJECT -p tcp --dport 80', stdout=False, sudo=True)

    @istest
    def rejects_outgoing_connections(self):
        with self.execute_mock() as execute:
            self.role.reject(direction="out")

            execute.assert_called_with('iptables -A OUTPUT -j REJECT -p all', stdout=False, sudo=True)

    @istest
    def rejects_incoming_connections_in_all_ports_with_a_match_filter(self):
        with self.execute_mock() as execute:
            self.role.reject(match="state", state="ESTABLISHED,RELATED")

            execute.assert_called_with('iptables -A INPUT -j REJECT -p all -m state --state ESTABLISHED,RELATED', stdout=False, sudo=True)

    @istest
    def drops_incoming_connections_in_all_ports_and_protocols(self):
        with self.execute_mock() as execute:
            self.role.drop()

            execute.assert_called_with('iptables -A INPUT -j DROP -p all', stdout=False, sudo=True)

    @istest
    def drops_tcp_connections_in_a_specific_port(self):
        with self.execute_mock() as execute:
            self.role.drop(port=80, protocol="tcp")

            execute.assert_called_with('iptables -A INPUT -j DROP -p tcp --dport 80', stdout=False, sudo=True)


text:
"""LCM type definitions
This file automatically generated by lcm.
DO NOT MODIFY BY HAND!!!!
"""

try:
    import cStringIO.StringIO as BytesIO
except ImportError:
    from io import BytesIO
import struct

class sample_data(object):
    __slots__ = ["state"]

    __typenames__ = ["double"]

    __dimensions__ = [[2]]

    def __init__(self):
        self.state = [ 0.0 for dim0 in range(2) ]

    def encode(self):
        buf = BytesIO()
        buf.write(sample_data._get_packed_fingerprint())
        self._encode_one(buf)
        return buf.getvalue()

    def _encode_one(self, buf):
        buf.write(struct.pack('>2d', *self.state[:2]))

    def decode(data):
        if hasattr(data, 'read'):
            buf = data
        else:
            buf = BytesIO(data)
        if buf.read(8) != sample_data._get_packed_fingerprint():
            raise ValueError("Decode error")
        return sample_data._decode_one(buf)
    decode = staticmethod(decode)

    def _decode_one(buf):
        self = sample_data()
        self.state = struct.unpack('>2d', buf.read(16))
        return self
    _decode_one = staticmethod(_decode_one)

    _hash = None
    def _get_hash_recursive(parents):
        if sample_data in parents: return 0
        tmphash = (0x5c4b2f699a665926) & 0xffffffffffffffff
        tmphash  = (((tmphash<<1)&0xffffffffffffffff) + (tmphash>>63)) & 0xffffffffffffffff
        return tmphash
    _get_hash_recursive = staticmethod(_get_hash_recursive)
    _packed_fingerprint = None

    def _get_packed_fingerprint():
        if sample_data._packed_fingerprint is None:
            sample_data._packed_fingerprint = struct.pack(">Q", sample_data._get_hash_recursive([]))
        return sample_data._packed_fingerprint
    _get_packed_fingerprint = staticmethod(_get_packed_fingerprint)


text:
=head1 LICENSE

Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Copyright [2016-2022] EMBL-European Bioinformatics Institute

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.

=cut

=head1 CONTACT

  Please email comments or questions to the public Ensembl
  developers list at <http://lists.ensembl.org/mailman/listinfo/dev>.

  Questions may also be sent to the Ensembl help desk at
  <http://www.ensembl.org/Help/Contact>.

=cut

package Bio::EnsEMBL::DBSQL::Driver::Sybase;

use warnings;
use strict;

use Bio::EnsEMBL::Utils::Exception qw(warning);

use base 'Bio::EnsEMBL::DBSQL::Driver';

sub new {
    my ($self, @args) = @_;
    warning(__PACKAGE__ . ' is untested and is being used only to collect Sybase-specific code');
    return $self->SUPER::new(@args);
}

sub connect_params {
    my ($self, $conn) = @_;

    my $dbname = $conn->dbname();

    my $dbparam = ($dbname) ? ";database=${dbname}" : q{};
    my $dsn = sprintf( "DBI:Sybase:server=%s%s;tdsLevel=CS_TDS_495",
                       $conn->host(), $dbparam );

    return {
        dsn        => $dsn,
        username   => $conn->username(),
        password   => $conn->password(),
        attributes => {
            'LongTruncOk' => 1,
            'RaiseError'  => 1,
            'PrintError'  => 0,
        },
    };
}

1;


text:
import { Oid } from './oid';
import { Buf } from './buf';
import { Reference } from './reference';
import { Odb } from './odb';
import { Object } from './object';
import { Index } from './index_';
import { Commit } from './commit';
import { Blob } from './blob';
import { Tree } from './tree';
import { Signature } from './signature';
import { AnnotatedCommit } from './annotated-commit';
import { FetchOptions } from './fetch-options';
import { CheckoutOptions } from './checkout-options';
import { Remote } from './remote';
import { Tag } from './tag';
import { Config } from './config';
import { Merge } from './merge';
import { MergeOptions } from './merge-options';
import { Refdb } from './ref-db';
import { Revwalk } from './rev-walk';
import { StatusFile } from './status-file';
import { StatusOptions } from './status-options';
import { DiffLine } from './diff-line';
import { Treebuilder } from './tree-builder';

export interface RepositoryInitOptions {
    description: string;
    flags: number;
    initialHead: string;
    mode: number;
    originUrl: string;
    templatePath: string;
    version: number;
    workdirPath: string;
}

export class Repository {
    /**
     * Creates a branch with the passed in name pointing to the commit
     */
    static discover(startPath: string, acrossFs: number, ceilingDirs: string): Promise<Buf>;
    static init(path: string, isBare: number): Promise<Repository>;
    static initExt(repoPath: string, options?: RepositoryInitOptions): Promise<Repository>;
    static open(path: string): Promise<Repository>;
    static openBare(barePath: string): Promise<Repository>;
    static openExt(path: string, flags?: number, ceilingDirs?: string): Promise<Repository>;
    static wrapOdb(odb: Odb): Promise<Repository>;

    cleanup(): void;
    config(): Promise<Config>;
    configSnapshot(): Promise<Config>;
    detachHead(): number;
    fetchheadForeach(callback?: Function): Promise<any>;

    free(): void;
    getNamespace(): string;
    head(): Promise<Reference>;
    headDetached(): number;
    headUnborn(): number;
    index(): Promise<Index>;
    isBare(): number;
    isEmpty(): number;
    isShallow(): number;
    mergeheadForeach(callback?: Function): Promise<any>;
    messageRemove(): number;
    odb(): Promise<Odb>;
    path(): string;
    refdb(): Promise<Refdb>;
    setHead(refname: string): Promise<number>;
    setHeadDetached(commitish: Oid): number;
    setHeadDetachedFromAnnotated(commitish: AnnotatedCommit): number;
    setIdent(name: string, email: string): number;
    setNamespace(nmspace: string): number;
    setWorkdir(workdir: string, updateGitLink: number): number;
    state(): number;
    stateCleanup(): number;
    workdir(): string;
    /**
     * Creates a branch with the passed in name pointing to the commit
     */
    createBranch(name: string, commit: Commit | string | Oid, force?: boolean): Promise<Reference>;
    /**
     * Look up a refs's commit.
     */
    getReferenceCommit(name: string | Reference): Promise<Commit>;
    /**
     * Look up a branch. Alias for getReference
     */
    getBranch(name: string | Reference): Promise<Reference>;
    /**
     * Look up a branch's most recent commit. Alias to getReferenceCommit
     */
    getBranchCommit(name: string | Reference): Promise<Commit>;
    /**
     * Gets the branch that HEAD currently points to Is an alias to head()
     */
    getCurrentBranch(): Promise<Reference>;
    /**
     * Lookup the reference with the given name.
     */
    getReference(name: string | Reference): Promise<Reference>;
    /**
     * Lookup references for a repository.
     */
    getReferences(type: Reference.TYPE): Promise<Reference[]>;
    /**
     * Lookup reference names for a repository.
     */
    getReferenceNames(type: Reference.TYPE): Promise<string[]>;
    getCommit(string: string | Commit| Oid): Promise<Commit>;
    /**
     * Retrieve the blob represented by the oid.
     */
    getBlob(string: string | Oid): Promise<Blob>;
    /**
     * Retrieve the tree represented by the oid.
     */
    getTree(string: string | Oid): Promise<Tree>;
    createTag(string: string | Oid, name: string, message: string): Promise<Tag>;
    /**
     * Creates a new lightweight tag
     */
    createLightweightTag(string: string | Oid, name: string): Promise<Reference>;
    /**
     * Retrieve the tag represented by the oid.
     */
    getTag(string: string | Oid): Promise<Tag>;
    /**
     * Retrieve the tag represented by the tag name.
     */
    getTagByName(Short: string): Promise<Tag>;
    /**
     * Deletes a tag from a repository by the tag name.
     */
    deleteTagByName(Short: string): Promise<number>;
    /**
     * Instantiate a new revision walker for browsing the Repository"s history. See also Commit.prototype.history()
     */
    createRevWalk(): Revwalk;
    /**
     * Retrieve the master branch commit.
     */
    getMasterCommit(): Promise<Commit>;
    /**
     * Retrieve the commit that HEAD is currently pointing to
     */
    getHeadCommit(): Promise<Commit>;
    createCommit(updateRef: string, author: Signature, committer: Signature, message: string, Tree: Tree | Oid | string, parents: Array<string | Commit | Oid>, callback?: Function): Promise<Oid>;
    /**
     * Creates a new commit on HEAD from the list of passed in files
     */
    createCommitOnHead(filesToAdd: string[], author: Signature, committer: Signature, message: string): Promise<Oid>;
    /**
     * Create a blob from a buffer
     */
    createBlobFromBuffer(buffer: Buffer): Promise<Oid>;
    treeBuilder(tree: Tree): Promise<Treebuilder>;
    /**
     * Gets the default signature for the default user and now timestamp
     */
    defaultSignature(): Signature;
    /**
     * Lists out the remotes in the given repository.
     */
    getRemotes(callback?: Function): Promise<string[]>;
    /**
     * Gets a remote from the repo
     */
    getRemote(remote: string | Remote, callback?: Function): Promise<Remote>;
    /**
     * Fetches from a remote
     */
    fetch(remote: string | Remote, fetchOptions?: FetchOptions): Promise<void>;
    /**
     * Fetches from all remotes. This is done in series due to deadlocking issues with fetching from many remotes that can happen.
     */
    fetchAll(fetchOptions?: FetchOptions, callback?: Function): Promise<void>;
    mergeBranches(to: string | Reference, from: string | Reference, signature?: Signature, mergePreference?: Merge.PREFERENCE, mergeOptions?: MergeOptions): Promise<Oid>;
    /**
     * Rebases a branch onto another branch
     */
    rebaseBranches(branch: string, upstream: string, onto: string, signature: Signature, beforeNextFn: Function): Promise<Oid>;
    continueRebase(signature: Signature, beforeNextFn: Function): Promise<Oid>;
    /**
     * Get the status of a repo to it's working directory
     */
    getStatus(opts?: StatusOptions): Promise<StatusFile[]>;
    /**
     * Get extended statuses of a repo to it's working directory. Status entries have status, headToIndex delta, and indexToWorkdir deltas
     */
    getStatusExt(opts?: StatusOptions): Promise<StatusFile[]>;
    /**
     * Get the names of the submodules in the repository.
     */
    getSubmoduleNames(): Promise<string[]>;
    /**
     * This will set the HEAD to point to the reference and then attempt to update the index and working tree to match the content of the latest commit on that reference
     */
    checkoutRef(reference: Reference, opts?: CheckoutOptions): Promise<Reference>;
    /**
     * This will set the HEAD to point to the local branch and then attempt to update the index and working tree to match the content of the latest commit on that branch
     */
    checkoutBranch(branch: string | Reference, opts?: CheckoutOptions): Promise<Reference>;
    /**
     * Stages or unstages line selection of a specified file
     */
    stageFilemode(filePath: string | string[], stageNew: boolean): Promise<number>;
    /**
     * Stages or unstages line selection of a specified file
     */
    stageLines(filePath: string, newLines: DiffLine[], isStaged: boolean): Promise<number>;
    /**
     * Returns true if the repository is in the default NONE state.
     */
    isDefaultState(): boolean;
    /**
     * Returns true if the repository is in the APPLY_MAILBOX or APPLY_MAILBOX_OR_REBASE state.
     */
    isApplyingMailbox(): boolean;
    /**
     * Returns true if the repository is in the BISECT state.
     */
    isBisecting(): boolean;
    /**
     * Returns true if the repository is in the CHERRYPICK state.
     */
    isCherrypicking(): boolean;
    /**
     * Returns true if the repository is in the MERGE state.
     */
    isMerging(): boolean;
    /**
     * Returns true if the repository is in the REBASE, REBASE_INTERACTIVE, or REBASE_MERGE state.
     */
    isRebasing(): boolean;
    /**
     * Returns true if the repository is in the REVERT state.
     */
    isReverting(): boolean;
    /**
     * Discard line selection of a specified file. Assumes selected lines are unstaged.
     */
    discardLines(filePath: string, selectedLines: DiffLine[]): Promise<number>;
    /**
     * Grabs a fresh copy of the index from the repository. Invalidates all previously grabbed indexes
     */
    refreshIndex(): Promise<Index>;
}