text:
var gulp = require('gulp');
var config = require('./gulpconfig');
var ssh2Client = require('ssh2').Client;
//var conn; //use in conjunction with execCallback if you need good ssh2 debug info

//set config defaults
var root;
config.startFile = config.startFile || 'app.js';
config.targetDevices.forEach(function (d) {
    d.sshPort = d.sshPort || 22;
    root = '/home/' + d.user + '/' + config.projectName;
});

// JS hint task
// this is just a nice library for making sure your JavaScript syntax is all good
gulp.task('jshint', function () {
    var jshint = require('gulp-jshint');
    gulp.src('./*.js')
    .pipe(jshint())
    .pipe(jshint.reporter('default'));
});

// deploy to the device
// NOTE: this will only deploy files at the root project level; it is not recursive
//TODO: consider converting to a ssh2 task to be consistent
gulp.task('deploy', function () {
    var scp = require('gulp-scp2');
    var g = gulp.src(['*.{js,json}', '!gulp*']);
    config.targetDevices.forEach(function (d) {
        console.log('Deploying to ' + d.devicename + '...');
        g.pipe(scp({
                host: d.hostname,
                username: d.user,
                password: d.password,
                dest: config.projectName
            }));
    })
    g.on('error', function (err) {
        console.log('ERR: ' + err);
    });
    return g;
});

//NOT WORKING
//run npm install on the remote machine to assure all packages
gulp.task('restorePackages', function () {
    config.targetDevices.forEach(function (d) {

        var conn = new ssh2Client();
        conn.on('ready', function () {
            var command = 'cd ' + root + '; ' +
                'npm install --production; ' + //restore node modules
                'cp -r /usr/lib/node_modules/mraa ' + root + '/node_modules; '; //we need the mraa library
            //console.log('Executing "' + command + '"');
            conn.exec(command, function (err, stream) { stream.on('close', function () { conn.end() }) });
        }).connect({ host: d.hostname, port: d.sshPort, username: d.user, password: d.password });
    });
});

//todo: consider killing arduino sketches

//create device config file task
gulp.task('createDeviceConfigFile', function () {
    config.targetDevices.forEach(function (d) {
        var configText =
            "module.exports = {" +
            "    deviceName: '" + d.devicename + "'" +
            "}";
        console.log(configText);
        var conn = new ssh2Client();
        conn.on('ready', function () {
            var command = 'echo "' + configText + '" > ' + root + '/config.js';
            console.log('Executing "' + command + '"');
            conn.exec(command, function (err, stream) { stream.on('close', function () { conn.end() }) });
        }).connect({ host: d.hostname, port: d.sshPort, username: d.user, password: d.password });
    });
});

//set startup
gulp.task('setStartup', function () {
    config.targetDevices.forEach(function (d) {
        console.log('Running setStartup task for ' + d.hostname);
        var serviceText =
 "[Unit]\n" +
            "    Description = Node startup app service for starting a node process\n" +
            "    After = mdns.service\n" +
            "[Service]\n" +
            "    ExecStart = /usr/bin/node " + root + "/" + config.startFile + "\n" +
            "    Restart = on-failure\n" +
            "    RestartSec = 2s\n" +
            "[Install]\n" +
            "    WantedBy=default.target\n";

        var conn = new ssh2Client();
        conn.on('ready', function () {
            var command = 'systemctl stop nodeup.service; echo "' + serviceText + '" > /etc/systemd/system/nodeup.service; systemctl daemon-reload; systemctl enable nodeup.service; systemctl start nodeup.service';
            //console.log('Executing "' + command + '"');
            conn.exec(command, function (err, stream) { stream.on('close', function () { conn.end() }) });
        }).connect({ host: d.hostname, port: d.sshPort, username: d.user, password: d.password });
    });
});

//DON'T USE YET
////execute
//gulp.task('execute', ['killProcesses'], function () {
//    conn = new ssh2Client();
//    conn.on('ready', function () {
//        conn.exec("node " + root + "/" + config.startFile, execCallback);
//    }).connect({ host: config.host, port: config.sshPort, username: config.user, password: config.password });
//});

//kill processes (because the 'execute' task starts new ones)
//gulp.task('killProcesses', function () {
//    var conn = new ssh2Client();
//    conn.on('ready', function () {
//        var command = 'kill -9 `ps | grep "edref/app.js" | grep -v grep | awk \' { print $1 }\'`';
//        //console.log('Executing "' + command + '"');
//        conn.exec(command, execCallback);
//    }).connect({ host: config.host, port: config.sshPort, username: config.user, password: config.password });
//});

//use for ssh2 conn.exec callback if you need good ssh2 debug info
function execCallback(err, stream) {
    if (err) throw err;
    stream
        .on('close', function (code, signal) { console.log('Stream closed with code ' + code + ' and signal ' + signal); conn.end() })
        .on('data', function (data) { console.log(data); })
        .stderr.on('data', function (err) { console.log('Error: ' + err); });
}


text:
set(CMAKE_DEPENDS_LANGUAGES
  "CXX"
  )
# The set of files for implicit dependencies of each language:
set(CMAKE_DEPENDS_CHECK_CXX
  "/Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Easy/FirstUniqueCharacterInAString/main.cpp" "/Users/brendanbusey/Desktop/Github/InterviewPreparation/LeetCode/Easy/FirstUniqueCharacterInAString/cmake-build-debug/CMakeFiles/FirstUniqueCharacterInAString.dir/main.cpp.o"
  )
set(CMAKE_CXX_COMPILER_ID "AppleClang")

# The include file search paths:
set(CMAKE_CXX_TARGET_INCLUDE_PATH
  )

# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
  )

# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")

redpajama_set_name: RedPajamaGithub


text:
* [Introduction](#1-introduction)
* [Usage](#2-usage)
* [Configuration provider](#3-configuration-provider)
* [Services](#4-services)
* [Directives](#5-directives)

##1. Introduction
This plugin provides letter avatars for list items and multiple list item selection similar to the Android gmail app.
It can be integrated into your ionic 1.x app using the `ion-item` directive. By default the item selection feature is disabled on iOS.
You can test the plugin via the [ionic view app](http://view.ionic.io/) with the ID **d5a27312**.

###1.1 Features
* letter avatars for ionic list items based on the `ion-item` directive
* multiple selection and deselection of list items by clicking on a letter avatar or long clicking on a list item
* retrieval of selected items
* two buttons for finishing a selection and deleting selected items

###1.2 Demo
#### [Ionic Playground](http://play.ionic.io/app/ceff331aea68)
#### ![animation](https://dl.dropbox.com/s/b0zopcqjssu65ko/demo.gif)

###1.3 License

[MIT](https://github.com/ivandroid/ionic-letter-avatar-selector/blob/master/LICENSE)

###1.4 Versions

[CHANGELOG](https://github.com/ivandroid/ionic-letter-avatar-selector/blob/master/CHANGELOG.md)

###1.5 Author
* E-Mail: ivan.weber@gmx.de
* Twitter: https://twitter.com/hybrid_app
* Github: https://github.com/ivandroid
* Ionic Market: https://market.ionic.io/user/6540
* Your support: If you find this project useful and want support its development you can press the button below or star the project. Thanks in advance!

[![](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ivan%2eweber%40gmx%2ede&lc=DE&item_name=GithubRepositories&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHostedGuest)

##2. Usage
1. Get the files from here or install from bower:

    ```
    bower install ionic-letter-avatar-selector
    ```

2. Include the javascript and css files or their minified versions in your `index.html` file.

    ```html
    <link href="style/css/ionic-letter-avatar-selector.min.css" rel="stylesheet">
    <script src="dist/ionic-letter-avatar-selector.min.js"></script>
    ```

3. Add the module `ionicLetterAvatarSelector` to your application dependencies:

    ```javascript
    angular.module('starter', ['ionic', 'ionicLetterAvatarSelector'])
    ```

4. Add the attribute `letters-of` to the `ion-item` directive for using **only** the letter avatar feature.
For using the item selection feature add the additional attribute `item` and pass an item identifier.

5. Add the default button directives `ilas-button-finish` and `ilas-button-delete` to your navigation bar.

#### Example *(based on the ionic starter tabs app)*

```html
<ion-view view-title="Chats">
    <ion-nav-buttons side="left">
        <ilas-button-finish></ilas-button-finish>
    </ion-nav-buttons>
    <ion-nav-buttons side="right">
        <ilas-button-delete ng-click="delete()"></ilas-button-delete>
    </ion-nav-buttons>
    <ion-content>
        <ion-list>
            <ion-item class="item-remove-animate"
                      letters-of="{{chat.name}}"
                      item="{{chat.id}}"
                      href="#/tab/chats/{{chat.id}}"
                      ng-repeat="chat in chats" >
                <h2>{{chat.name}}</h2>
                <p>{{chat.lastText}}</p>
                <i class="icon ion-chevron-right icon-accessory"></i>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-view>
```

```javascript
angular.module('starter.controllers', [])

// Inject the $ionicLetterAvatarSelector service
.controller('ChatsCtrl', function($ionicLetterAvatarSelector, $scope, Chats) {
    $scope.delete = function() {
        // Get selected item IDs
        var selectedItems = $ionicLetterAvatarSelector.getData();

        //Write your code to delete selected items

        // Finish selection
        $ionicLetterAvatarSelector.finish();
    };
});
```

##3. Configuration provider

In the angular configuration phase you can define global settings for this plugin. For that purpose there is a provider named `$ionicLetterAvatarSelectorConfigProvider`.
The following options can be set in the configuration phase:

option|description|type|accepted values|default value
---|---|---|---|---
background|Background color of letter avatars|string|css color names, hex color codes, ionic color names (e.g. *positive*) and *random* for random colors|*positive*
color|Foreground color of letter avatars (text color)|string|css color names, hex color codes and ionic color names|*light*
border|Border of letter avatars|string|css border values|none
finishOnStateChange|Enable / disable finishing selection on angular state change event|boolean|*true, false*|*false*
letterNumber|number of letters to show inside a letter avatar|integer|1-n|the default letter number is detected depending on the word number in a given string
selectionAndroid|Enable / disable selection on Android|boolean|*true, false*|*true*
selectionIos|Enable / disable selection on iOS|boolean|*true, false*|*false*
selectionColor|Color of avatars and navigation bar during selection|string|hex color codes|*#A8A8A8*

#### Example
##### Code

```javascript
angular.module('starter', ['ionic', 'ionicLetterAvatarSelector'])
.config(function($ionicLetterAvatarSelectorConfigProvider) {
    $ionicLetterAvatarSelectorConfigProvider.setBackground('calm');
    $ionicLetterAvatarSelectorConfigProvider.setColor('light');
    $ionicLetterAvatarSelectorConfigProvider.setBorder('1px solid black');
    $ionicLetterAvatarSelectorConfigProvider.setFinishOnStateChange(true);
    $ionicLetterAvatarSelectorConfigProvider.setLetterNumber(3);
    $ionicLetterAvatarSelectorConfigProvider.setSelectionAndroid(false);
    $ionicLetterAvatarSelectorConfigProvider.setSelectionIos(true);
    $ionicLetterAvatarSelectorConfigProvider.setSelectionColor('#86b0f9');
});
```

##### Result
![screenshot1](http://fs5.directupload.net/images/160223/r766ommj.png)

##4. Services

###4.1 Service `$ionicLetterAvatarSelector`

Using this service you have access to the following events and methods:

event|description|type|return-value
---|---|---|---
`started`|Selection started event|string|none
`finished`|Selection finished event|string|none
`stateChanged`|Selection state event|boolean|*true* if selection is active and *false* if selection is not active

method|description|return-value
---|---|---
`getData()`|Retrieval of selected items|array
`finish()`|Finishing selection|

##5. Directives
###5.1 Extended directive `ion-item`

Add the attribute `letters-of` and `item` to the `ion-item` directive of your list items:

attribute|description
---|---
`letters-of`|String value from which the first letter(s) will be used for building a letter avatar
`item`|Corresponding list item identifier which will be cached during selection. Leave the `item` attribute out, if you don't want to use the item selection feature.

The attributes `background`, `color`, `border` and `letters` are optional and can be also set globally in the configuration phase:

#### Example
##### Code

```html
<ion-list>
    <ion-item letters-of="{{chat.name}}"
              item="{{chat.id}}"
              background="random"
              border="none"
              color="white"
              letters="1"
              href="#/tab/chats/{{chat.id}}"
              ng-repeat="chat in chats">
        <h2>{{chat.name}}</h2>
        <p>{{chat.lastText}}</p>
        <i class="icon ion-chevron-right icon-accessory"></i>
    </ion-item>
</ion-list>
```
##### Result

![screenshot2](http://fs5.directupload.net/images/160222/z72w4mqz.png)

###5.2 Directive `ilas-button-finish`

You can use this directive to show / hide a button for finishing item selection. The default icons for iOS and Android are `ion-checkmark-empty` and `ion-android-arrow-back`.

#### Example

```html
<ion-nav-bar class="bar-positive">
    <ion-nav-back-button></ion-nav-back-button>
    <ion-nav-buttons side="left">
        <ilas-button-finish></ilas-button-finish>
    </ion-nav-buttons>
</ion-nav-bar>
```

###5.3 Directive `ilas-button-delete`

This directive shows / hides a button for deleting selected items. The default icons for iOS and Android are `ion-ios-trash` and `ion-android-delete`.
Using `ng-click` attribute you have to invoke your specific delete function considering the following actions:

2. In your delete function first get selected item identifiers invoking the `getData()` function of the `$ionicLetterAvatarSelector` service.
3. Write your code for deleting selected items.
4. Finish selection invoking the `finish()` method of the service.

#### Example

```html
<ion-view view-title="Chats">
    <ion-nav-buttons side="right">
        <ilas-button-delete ng-click="delete()"></ilas-button-delete>
    </ion-nav-buttons>
</ion-view>
```

```javascript
angular.module('starter.controllers', [])
.controller('ChatsCtrl', function($ionicLetterAvatarSelector, $scope, Chats) {
    $scope.delete = function() {
        var chats = Chats.all();

        //1. Getting selected items
        var selectedIDs = $ionicLetterAvatarSelector.getData();

        //2. Deleting items
        selectedIDs.forEach(function(id) {
            var chat = chats.filter(function(chat) {
                return chat.id === id;
            })[0];
            chats.splice(chats.indexOf(chat), 1);
        });

        //3. Finishing selection
        $ionicLetterAvatarSelector.finish();
    };
})
```

Instead of using this directives you can also add your own buttons and show / hide them depending on the selection state.

#### Example
##### Code

```html
<ion-view view-title="Chats">
    <ion-nav-buttons side="left">
        <button class="button button-icon icon ion-checkmark-circled"
                ng-show="selectionActive"
                ng-click="finish()">
        </button>
    </ion-nav-buttons>
    <ion-nav-buttons side="right">
        <button class="button button-icon icon ion-trash-b"
                ng-show="selectionActive"
                ng-click="delete()">
        </button>
    </ion-nav-buttons>
    <ion-content>
        <ion-list>
            <ion-item letters-of="{{chat.name}}"
                      item="{{chat.id}}"
                      href="#/tab/chats/{{chat.id}}"
                      ng-repeat="chat in chats" >
                <h2>{{chat.name}}</h2>
                <p>{{chat.lastText}}</p>
                <i class="icon ion-chevron-right icon-accessory"></i>
            </ion-item>
        </ion-list>
    </ion-content>
</ion-view>
```

```javascript
angular.module('starter.controllers', [])
.controller('ChatsCtrl',function($ionicLetterAvatarSelector, $scope, Chats) {
    $scope.$on($ionicLetterAvatarSelector.stateChanged, function($event, selectionActive) {
        $scope.selectionActive = selectionActive;
    });

    $scope.finish = $ionicLetterAvatarSelector.finish;

    $scope.delete = function() {
        var chats = Chats.all();
        var selectedIDs = $ionicLetterAvatarSelector.getData();
        selectedIDs.forEach(function(id) {
            var chat = chats.filter(function(chat) {
                return chat.id === id;
            })[0];
            chats.splice(chats.indexOf(chat), 1);
        });
        $scope.finish();
    };
});
```

##### Result

![screenshot3](http://fs5.directupload.net/images/160222/m5heu6xg.png)


text:
package smallchart.idtk.com.smallchartexample.fragment;

import android.graphics.Color;
import android.graphics.PointF;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.idtk.smallchart.chart.CombineChart;
import com.idtk.smallchart.data.BarData;
import com.idtk.smallchart.data.CurveData;
import com.idtk.smallchart.data.LineData;
import com.idtk.smallchart.interfaces.iData.IBarLineCurveData;

import java.util.ArrayList;

import smallchart.idtk.com.smallchartexample.R;

/**
 * Created by Idtk on 2016/6/26.
 * Blog : http://www.idtkm.com
 * GitHub : https://github.com/Idtk
 * 描述 :
 */
public class CombineChartFragment extends BaseFragment {

    private CurveData mCurveData = new CurveData();
    private ArrayList<PointF> mPointArrayList1 = new ArrayList<>();

    private LineData mLineData = new LineData();
    private ArrayList<PointF> mPointArrayList2 = new ArrayList<>();

    private BarData mBarData = new BarData();
    private ArrayList<PointF> mPointArrayList3 = new ArrayList<>();

    private ArrayList<IBarLineCurveData> mDataList = new ArrayList<>();

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.fragment_combinechart,container,false);
        initData();
        CombineChart combineChart = (CombineChart)view.findViewById(R.id.combineChart);
        combineChart.isAnimated = false;
        combineChart.setDataList(mDataList);
        return view;
    }

    private void initData() {
        for (int i = 0; i < 8; i++) {
            mPointArrayList3.add(new PointF(points[i][0], points[i][1]));
            mPointArrayList2.add(new PointF(points[i][0], points[i][1]-5));
            mPointArrayList1.add(new PointF(points[i][0], points[i][1]+10));
        }
        mBarData.setValue(mPointArrayList3);
        mBarData.setColor(Color.CYAN);
        mBarData.setPaintWidth(pxTodp(5));
        mBarData.setTextSize(pxTodp(10));
        mDataList.add(mBarData);

        mLineData.setValue(mPointArrayList2);
        mLineData.setColor(Color.MAGENTA);
        mLineData.setPaintWidth(pxTodp(3));
        mLineData.setTextSize(pxTodp(10));
        mDataList.add(mLineData);

        mCurveData.setValue(mPointArrayList1);
        mCurveData.setColor(Color.YELLOW);
        mCurveData.setPaintWidth(pxTodp(3));
        mCurveData.setTextSize(pxTodp(10));
        mDataList.add(mCurveData);

    }
}


text:
            Cotizaciones

Solicitadas

                                    <?php if (sizeof($cotizaciones_list) == 0){ ?>

Sin Resultados

                                    <?php }else {

                                        foreach ($cotizaciones_list as $row){ ?>
                                            <li id="<?php echo $row['idCotizacion'];?>"><?php echo "".ucfirst(strtolower($row['nombre'])).""; ?> ha solicitado una cotizacion.

                                        <?php }
                                    }?>

 <?php echo $links; ?>

Detalles de cotizacion

                                Seleccione una cotizacion en el menu izquierdo.


text:
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.aaron.runtracker"
          xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        <activity
            android:name=".MainActivity"
            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=".activities.RunActivity"
            android:label="@string/app_name">
        </activity>

        <!--<receiver-->
            <!--android:name=".receivers.LocationReceiver"-->
            <!--android:exported="false">-->
            <!--<intent-filter>-->
                <!--<action android:name="com.aaron.runtracker.ACTION_LOCATION"/>-->
            <!--</intent-filter>-->
        <!--</receiver>-->
    </application>

</manifest>


text:
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PholioVisualisation.DataConstruction;
using PholioVisualisation.PholioObjects;

namespace PholioVisualisation.DataConstructionTest
{
    [TestClass]
    public class TimePeriodTextListBuilderFactoryTest
    {
        [TestMethod]
        public void TestNewTrueReturnsTimePeriodTextListBuilder()
        {
            Assert.IsTrue(
                TimePeriodTextListBuilderFactory.New(true, new IndicatorMetadata())
                is TimePeriodTextListBuilder);
        }

        [TestMethod]
        public void TestNewFalseReturnsNullBuilder()
        {
            Assert.IsTrue(
                TimePeriodTextListBuilderFactory.New(false, new IndicatorMetadata())
                is NullTimePeriodTextListBuilder);
        }
    }
}


text:
from oslo.utils import importutils
from oslo_config import cfg

keymgr_opts = [
    cfg.StrOpt('api_class',
               default='cinder.keymgr.conf_key_mgr.ConfKeyManager',
               help='The full class name of the key manager API class'),
]

CONF = cfg.CONF
CONF.register_opts(keymgr_opts, group='keymgr')

def API():
    cls = importutils.import_class(CONF.keymgr.api_class)
    return cls()


text:
package com.sloydev.redbooth;

import android.app.Application;
import android.content.Context;

import com.facebook.stetho.Stetho;

import dagger.ObjectGraph;

public class RedboothApplication extends Application{

    private ObjectGraph objectGraph;

    @Override public void onCreate() {
        super.onCreate();
        buildObjectGraph();

        setupDebuging();
    }

    private void setupDebuging() {
        Stetho.initialize(
                Stetho.newInitializerBuilder(this)
                        .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
                        .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
                        .build());
    }

    private void buildObjectGraph() {
        objectGraph = ObjectGraph.create(Modules.list(this));
    }

    public static RedboothApplication get(Context context) {
        return (RedboothApplication) context.getApplicationContext();
    }

    public void inject(Object target) {
        objectGraph.inject(target);
    }
}


text:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Lighthouse: lapack/cpteqr.f File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>

<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css"/>

lapack

Functions/Subroutines

cpteqr.f File Reference

Functions/Subroutines

subroutine 	cpteqr (COMPZ, N, D, E, Z, LDZ, WORK, INFO)

 	CPTEQR  More...

Function/Subroutine Documentation

          subroutine cpteqr
          (
          character
          COMPZ,

          integer
          N,

          real, dimension( * )
          D,

          real, dimension( * )
          E,

          complex, dimension( ldz, * )
          Z,

          integer
          LDZ,

          real, dimension( * )
          WORK,

          integer
          INFO

          )

CPTEQR

 Download CPTEQR + dependencies

 [TGZ]

 [ZIP]

 [TXT]

Purpose:

 CPTEQR computes all eigenvalues and, optionally, eigenvectors of a
 symmetric positive definite tridiagonal matrix by first factoring the
 matrix using SPTTRF and then calling CBDSQR to compute the singular
 values of the bidiagonal factor.

 This routine computes the eigenvalues of the positive definite
 tridiagonal matrix to high relative accuracy.  This means that if the
 eigenvalues range over many orders of magnitude in size, then the
 small eigenvalues and corresponding eigenvectors will be computed
 more accurately than, for example, with the standard QR method.

 The eigenvectors of a full or band positive definite Hermitian matrix
 can also be found if CHETRD, CHPTRD, or CHBTRD has been used to
 reduce this matrix to tridiagonal form.  (The reduction to
 tridiagonal form, however, may preclude the possibility of obtaining
 high relative accuracy in the small eigenvalues of the original
 matrix, if these eigenvalues range over many orders of magnitude.)

Parameters

[in]	COMPZ
          COMPZ is CHARACTER*1
          = 'N':  Compute eigenvalues only.
          = 'V':  Compute eigenvectors of original Hermitian
                  matrix also.  Array Z contains the unitary matrix
                  used to reduce the original matrix to tridiagonal
                  form.
          = 'I':  Compute eigenvectors of tridiagonal matrix also.

[in]	N
          N is INTEGER
          The order of the matrix.  N >= 0.

[in,out]	D
          D is REAL array, dimension (N)
          On entry, the n diagonal elements of the tridiagonal matrix.
          On normal exit, D contains the eigenvalues, in descending
          order.

[in,out]	E
          E is REAL array, dimension (N-1)
          On entry, the (n-1) subdiagonal elements of the tridiagonal
          matrix.
          On exit, E has been destroyed.

[in,out]	Z
          Z is COMPLEX array, dimension (LDZ, N)
          On entry, if COMPZ = 'V', the unitary matrix used in the
          reduction to tridiagonal form.
          On exit, if COMPZ = 'V', the orthonormal eigenvectors of the
          original Hermitian matrix;
          if COMPZ = 'I', the orthonormal eigenvectors of the
          tridiagonal matrix.
          If INFO > 0 on exit, Z contains the eigenvectors associated
          with only the stored eigenvalues.
          If  COMPZ = 'N', then Z is not referenced.

[in]	LDZ
          LDZ is INTEGER
          The leading dimension of the array Z.  LDZ >= 1, and if
          COMPZ = 'V' or 'I', LDZ >= max(1,N).

[out]	WORK
          WORK is REAL array, dimension (4*N)

[out]	INFO
          INFO is INTEGER
          = 0:  successful exit.
          < 0:  if INFO = -i, the i-th argument had an illegal value.
          > 0:  if INFO = i, and i is:
                <= N  the Cholesky factorization of the matrix could
                      not be performed because the i-th principal minor
                      was not positive definite.
                > N   the SVD algorithm failed to converge;
                      if INFO = N+i, i off-diagonal elements of the
                      bidiagonal factor did not converge to zero.

Author

Univ. of Tennessee

Univ. of California Berkeley

Univ. of Colorado Denver

NAG Ltd.

Date

September 2012

<address class="footer">
Generated on Wed Apr 1 2015 16:27:43 for Lighthouse by

 1.8.9.1
</address>


text:
#include "changepassword.h"
#include "ui_changepassword.h"
#include "client_interfaces.h"
#include "QMessageBox"

ChangePassword::ChangePassword(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ChangePassword)
{
    ui->setupUi(this);
}

ChangePassword::~ChangePassword()
{
    delete ui;
}

void ChangePassword::on_pushButton_2_clicked()
{
    close();
}

void ChangePassword::on_pushButton_clicked()
{
    auto_iface<IClassFactoryClient> factory1;
    getClassFactory(&factory1);

    auto_iface<IAuthManager> iUser;
    factory1->getAuthManager(&iUser);

    QString passOld= ui->lineEdit->text();//依次读入新老密码
    QString passNew = ui->lineEdit_2->text();
    QString passNew2 = ui->lineEdit_3->text();
    std::string passOld1 = passOld.toStdString();
    std::string passNew1 = passNew.toStdString();
    std::string passNew12 = passNew2.toStdString();//重复输入老密码
    if(passNew1 == passNew12)//两次密码输入比对
    {
        if(iUser->changePassword(passOld1.c_str(),passNew1.c_str()))
        {
            QMessageBox::information(this,"Welcome",u8"密码修改成功");
            close();//成功更改密码之后自动退出
        }
        else{QMessageBox::information(this,"Warning",u8"修改密码失败");}
    }
    else{QMessageBox::information(this,"Warning",u8"两次密码输入不一致");}

}


text:
ACCEPTED

#### According to
International Plant Names Index

#### Published in
null

#### Original name
Ichnocarpus afzelii Roem. & Schult.

### Remarks
null


text:
title: react on props change
date: 2020-08-26
private: true
---
# react rerender on props change
用useEffect控制就好喽

    import React, { useEffect } from 'react';

    const SitesTableContainer = ({
      user,
      isManager,
      dispatch,
      sites,
    }) => {
      useEffect(() => {
        if(isManager) {
          dispatch(actions.fetchAllSites())
        } else {
          const currentUserId = user.get('id')
          dispatch(actions.fetchUsersSites(currentUserId))
        }
      }, [user]);

      return (
        return <SitesTable sites={sites}/>
      )

    }


text:
const string of_name{"10.exercise.02.output"};
constexpr size_t no_readings{50};
constexpr int min_hour{0};         // min hour in 24h format
constexpr int max_hour{23};        // max hour in 24h format
// Minimum and maximum temps to generate. There will be some extreme
// conditions out there.
constexpr double min_temp{-100};   // ~ -73C
constexpr double max_temp{150};    // ~ 65C

struct Reading {            // a temperature reading
    int hour;               // hour after midnight [0:23]
    double temperature;     // in Fahrenheit
};

ostream& operator<<(ostream& os, const Reading& rhs)
{
    os << rhs.hour << ' '
       << std::fixed << std::setprecision(2) << rhs.temperature;
    return os;
}

Reading random_reading(std::default_random_engine& engine)
{
    std::uniform_int_distribution<int> hour_dist(min_hour, max_hour);
    std::uniform_real_distribution<double> temp_dist(min_temp, max_temp);

    return Reading{hour_dist(engine), temp_dist(engine)};
}

void write_readings_file(const string& file)
{
    ofstream ost{file};
    if (!ost) error("Can't open output file ", file);

    std::default_random_engine engine(std::time(nullptr));

    for (size_t i = 0; i < no_readings; ++i)
        ost << random_reading(engine) << '\n';
}

int main()
try
{
    write_readings_file(of_name);
    cout << no_readings << " temperature readings written in file "
         << of_name << '\n';
    return 0;
}
catch (exception& e)
{
    cerr << e.what() << '\n';
    return 1;
}
catch (...)
{
    cerr << "Unknown exception!!\n";
    return 2;
}


text:
import React from 'react';
import createReactClass from 'create-react-class';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';

export default createReactClass({
  displayName: 'Layout',

  render: function() {
    return (

          Dialog: Create - Overlay

          Better form experience. Gives a visual indication when form is being saved, and displays a success
          or error message after server call completes.

          <Hook />

    );
  }
});


text:
require 'cgi'
require 'rubygems'
require 'rack'

require 'e-core/constants'
require 'e-core/utils'
require 'e-core/init'
require 'e-core/rewriter'

require 'e-core/controller/setup'
require 'e-core/controller/base'
require 'e-core/controller/actions'

require 'e-core/app/setup'
require 'e-core/app/base'

require 'e-core/instance/setup'
require 'e-core/instance/base'
require 'e-core/instance/cookies'
require 'e-core/instance/halt'
require 'e-core/instance/error_handler'
require 'e-core/instance/invoke'
require 'e-core/instance/redirect'
require 'e-core/instance/request'
require 'e-core/instance/send_file'
require 'e-core/instance/session'
require 'e-core/instance/stream'
require 'e-core/instance/helpers'


text:
package com.twitter.finagle

import com.twitter.finagle.client.{StackClient, StdStackClient, DefaultPool}
import com.twitter.finagle.mysql._
import com.twitter.finagle.mysql.transport.{Packet, TransportImpl}
import com.twitter.finagle.param.{Monitor => _, ResponseClassifier => _, ExceptionStatsHandler => _, Tracer => _, _}
import com.twitter.finagle.service.{ResponseClassifier, RetryBudget}
import com.twitter.finagle.stats.{NullStatsReceiver, ExceptionStatsHandler, StatsReceiver}
import com.twitter.finagle.tracing._
import com.twitter.finagle.transport.Transport
import com.twitter.util.{Duration, Monitor}

/**
 * Supplements a [[com.twitter.finagle.Client]] with convenient
 * builder methods for constructing a mysql client.
 */
trait MysqlRichClient { self: com.twitter.finagle.Client[Request, Result] =>

  def richClientStatsReceiver: StatsReceiver = NullStatsReceiver

  /**
   * Creates a new `RichClient` connected to the logical
   * destination described by `dest` with the assigned
   * `label`. The `label` is used to scope client stats.
   */
  def newRichClient(dest: Name, label: String): mysql.Client with mysql.Transactions with mysql.Cursors =
    mysql.Client(newClient(dest, label), richClientStatsReceiver)

  /**
   * Creates a new `RichClient` connected to the logical
   * destination described by `dest`.
   */
  def newRichClient(dest: String): mysql.Client with mysql.Transactions with mysql.Cursors =
    mysql.Client(newClient(dest), richClientStatsReceiver)
}

object MySqlClientTracingFilter {
  object Stackable extends Stack.Module1[param.Label, ServiceFactory[Request, Result]] {
    val role = ClientTracingFilter.role
    val description = "Add MySql client specific annotations to the trace"
    def make(_label: param.Label, next: ServiceFactory[Request, Result]) = {
      val param.Label(label) = _label
      // TODO(jeff): should be able to get this directly from ClientTracingFilter
      val annotations = new AnnotatingTracingFilter[Request, Result](
        label, Annotation.ClientSend(), Annotation.ClientRecv())
      annotations andThen TracingFilter andThen next
    }
  }

  object TracingFilter extends SimpleFilter[Request, Result] {
    def apply(request: Request, service: Service[Request, Result]) = {
      if (Trace.isActivelyTracing) {
        request match {
          case QueryRequest(sqlStatement) => Trace.recordBinary("mysql.query", sqlStatement)
          case PrepareRequest(sqlStatement) => Trace.recordBinary("mysql.prepare", sqlStatement)
          // TODO: save the prepared statement and put it in the executed request trace
          case ExecuteRequest(id, _, _, _) => Trace.recordBinary("mysql.execute", id)
          case _ => Trace.record("mysql." + request.getClass.getSimpleName.replace("$", ""))
        }
      }
      service(request)
    }
  }
}

/**
 * @example {{{
 * val client = Mysql.client
 *   .withCredentials("<username>", "<password>")
 *   .withDatabase("<db>")
 *   .newRichClient("inet!localhost:3306")
 * }}}
 */
object Mysql extends com.twitter.finagle.Client[Request, Result] with MysqlRichClient {

  object param {
    /**
     * A class eligible for configuring the maximum number of prepare
     * statements.  After creating `num` prepare statements, we'll start purging
     * old ones.
     */
    case class MaxConcurrentPrepareStatements(num: Int) {
      assert(num <= Int.MaxValue, s"$num is not <= Int.MaxValue bytes")
      assert(num > 0, s"$num must be positive")

      def mk(): (MaxConcurrentPrepareStatements, Stack.Param[MaxConcurrentPrepareStatements]) =
        (this, MaxConcurrentPrepareStatements.param)
    }

    object MaxConcurrentPrepareStatements {
      implicit val param = Stack.Param(MaxConcurrentPrepareStatements(20))
    }
  }

  /**
   * Implements a mysql client in terms of a
   * [[com.twitter.finagle.client.StackClient]]. The client inherits a wealth
   * of features from finagle including connection pooling and load
   * balancing.
   *
   * Additionally, this class provides methods for constructing a rich
   * client which exposes a rich mysql api.
   */
  case class Client(
      stack: Stack[ServiceFactory[Request, Result]] = StackClient.newStack
        .replace(ClientTracingFilter.role, MySqlClientTracingFilter.Stackable),
      params: Stack.Params = StackClient.defaultParams + DefaultPool.Param(
          low = 0, high = 1, bufferSize = 0,
          idleTime = Duration.Top,
          maxWaiters = Int.MaxValue) +
        ProtocolLibrary("mysql"))
    extends StdStackClient[Request, Result, Client]
    with WithSessionPool[Client]
    with WithDefaultLoadBalancer[Client]
    with MysqlRichClient {

    protected def copy1(
      stack: Stack[ServiceFactory[Request, Result]] = this.stack,
      params: Stack.Params = this.params
    ): Client = copy(stack, params)

    protected type In = Packet
    protected type Out = Packet
    protected def newTransporter() = params[TransportImpl].transporter(params)
    protected def newDispatcher(transport: Transport[Packet, Packet]):  Service[Request, Result] = {
      val param.MaxConcurrentPrepareStatements(num) = params[param.MaxConcurrentPrepareStatements]
      mysql.ClientDispatcher(transport, Handshake(params), num)
    }

    /**
     * The maximum number of concurrent prepare statements.
     */
    def withMaxConcurrentPrepareStatements(num: Int): Client =
      configured(param.MaxConcurrentPrepareStatements(num))

    /**
     * The credentials to use when authenticating a new session.
     */
    def withCredentials(u: String, p: String): Client =
      configured(Handshake.Credentials(Option(u), Option(p)))

    /**
     * Database to use when this client establishes a new session.
     */
    def withDatabase(db: String): Client =
      configured(Handshake.Database(Option(db)))

    /**
     * The default character set used when establishing a new session.
     */
    def withCharset(charset: Short): Client =
      configured(Handshake.Charset(charset))

    // Java-friendly forwarders
    // See https://issues.scala-lang.org/browse/SI-8905
    override val withSessionPool: SessionPoolingParams[Client] =
      new SessionPoolingParams(this)
    override val withLoadBalancer: DefaultLoadBalancingParams[Client] =
      new DefaultLoadBalancingParams(this)
    override val withTransport: ClientTransportParams[Client] =
      new ClientTransportParams(this)
    override val withSession: ClientSessionParams[Client] =
      new ClientSessionParams(this)
    override val withSessionQualifier: SessionQualificationParams[Client] =
      new SessionQualificationParams(this)
    override val withAdmissionControl: ClientAdmissionControlParams[Client] =
      new ClientAdmissionControlParams(this)

    override def withLabel(label: String): Client = super.withLabel(label)
    override def withStatsReceiver(statsReceiver: StatsReceiver): Client =
      super.withStatsReceiver(statsReceiver)
    override def withMonitor(monitor: Monitor): Client = super.withMonitor(monitor)
    override def withTracer(tracer: Tracer): Client = super.withTracer(tracer)
    override def withExceptionStatsHandler(exceptionStatsHandler: ExceptionStatsHandler): Client =
      super.withExceptionStatsHandler(exceptionStatsHandler)
    override def withRequestTimeout(timeout: Duration): Client =
      super.withRequestTimeout(timeout)
    override def withResponseClassifier(responseClassifier: ResponseClassifier): Client =
      super.withResponseClassifier(responseClassifier)
    override def withRetryBudget(budget: RetryBudget): Client = super.withRetryBudget(budget)
    override def withRetryBackoff(backoff: Stream[Duration]): Client = super.withRetryBackoff(backoff)

    override def configured[P](psp: (P, Stack.Param[P])): Client = super.configured(psp)
    override def filtered(filter: Filter[Request, Result, Request, Result]): Client =
      super.filtered(filter)

    override def richClientStatsReceiver: StatsReceiver = params[Stats].statsReceiver
  }

  val client = Client()

  def newClient(dest: Name, label: String): ServiceFactory[Request, Result] =
    client.newClient(dest, label)

  def newService(dest: Name, label: String): Service[Request, Result] =
    client.newService(dest, label)

  /**
   * The credentials to use when authenticating a new session.
   */
  @deprecated("Use client.withCredentials", "6.22.0")
  def withCredentials(u: String, p: String): Client =
    client.configured(Handshake.Credentials(Option(u), Option(p)))

  /**
   * Database to use when this client establishes a new session.
   */
  @deprecated("Use client.withDatabase", "6.22.0")
  def withDatabase(db: String): Client =
    client.configured(Handshake.Database(Option(db)))

  /**
   * The default character set used when establishing
   * a new session.
   */
  @deprecated("Use client.withCharset", "6.22.0")
  def withCharset(charset: Short): Client =
    client.configured(Handshake.Charset(charset))

  /**
   * A client configured with parameter p.
   */
  @deprecated("Use client.configured", "6.22.0")
  def configured[P: Stack.Param](p: P): Client =
    client.configured(p)
}


text:
package com.amazonaws.services.directconnect.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 *
 * @see AWS API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeleteDirectConnectGatewayAssociationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     *

     * The ID of the Direct Connect gateway association.
     *

     */
    private String associationId;
    /**
     *

     * The ID of the Direct Connect gateway.
     *

     */
    private String directConnectGatewayId;
    /**
     *

     * The ID of the virtual private gateway.
     *

     */
    private String virtualGatewayId;

    /**
     *

     * The ID of the Direct Connect gateway association.
     *

     *
     * @param associationId
     *        The ID of the Direct Connect gateway association.
     */

    public void setAssociationId(String associationId) {
        this.associationId = associationId;
    }

    /**
     *

     * The ID of the Direct Connect gateway association.
     *

     *
     * @return The ID of the Direct Connect gateway association.
     */

    public String getAssociationId() {
        return this.associationId;
    }

    /**
     *

     * The ID of the Direct Connect gateway association.
     *

     *
     * @param associationId
     *        The ID of the Direct Connect gateway association.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DeleteDirectConnectGatewayAssociationRequest withAssociationId(String associationId) {
        setAssociationId(associationId);
        return this;
    }

    /**
     *

     * The ID of the Direct Connect gateway.
     *

     *
     * @param directConnectGatewayId
     *        The ID of the Direct Connect gateway.
     */

    public void setDirectConnectGatewayId(String directConnectGatewayId) {
        this.directConnectGatewayId = directConnectGatewayId;
    }

    /**
     *

     * The ID of the Direct Connect gateway.
     *

     *
     * @return The ID of the Direct Connect gateway.
     */

    public String getDirectConnectGatewayId() {
        return this.directConnectGatewayId;
    }

    /**
     *

     * The ID of the Direct Connect gateway.
     *

     *
     * @param directConnectGatewayId
     *        The ID of the Direct Connect gateway.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DeleteDirectConnectGatewayAssociationRequest withDirectConnectGatewayId(String directConnectGatewayId) {
        setDirectConnectGatewayId(directConnectGatewayId);
        return this;
    }

    /**
     *

     * The ID of the virtual private gateway.
     *

     *
     * @param virtualGatewayId
     *        The ID of the virtual private gateway.
     */

    public void setVirtualGatewayId(String virtualGatewayId) {
        this.virtualGatewayId = virtualGatewayId;
    }

    /**
     *

     * The ID of the virtual private gateway.
     *

     *
     * @return The ID of the virtual private gateway.
     */

    public String getVirtualGatewayId() {
        return this.virtualGatewayId;
    }

    /**
     *

     * The ID of the virtual private gateway.
     *

     *
     * @param virtualGatewayId
     *        The ID of the virtual private gateway.
     * @return Returns a reference to this object so that method calls can be chained together.
     */

    public DeleteDirectConnectGatewayAssociationRequest withVirtualGatewayId(String virtualGatewayId) {
        setVirtualGatewayId(virtualGatewayId);
        return this;
    }

    /**
     * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
     * redacted from this string using a placeholder value.
     *
     * @return A string representation of this object.
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getAssociationId() != null)
            sb.append("AssociationId: ").append(getAssociationId()).append(",");
        if (getDirectConnectGatewayId() != null)
            sb.append("DirectConnectGatewayId: ").append(getDirectConnectGatewayId()).append(",");
        if (getVirtualGatewayId() != null)
            sb.append("VirtualGatewayId: ").append(getVirtualGatewayId());
        sb.append("}");
        return sb.toString();
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;

        if (obj instanceof DeleteDirectConnectGatewayAssociationRequest == false)
            return false;
        DeleteDirectConnectGatewayAssociationRequest other = (DeleteDirectConnectGatewayAssociationRequest) obj;
        if (other.getAssociationId() == null ^ this.getAssociationId() == null)
            return false;
        if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false)
            return false;
        if (other.getDirectConnectGatewayId() == null ^ this.getDirectConnectGatewayId() == null)
            return false;
        if (other.getDirectConnectGatewayId() != null && other.getDirectConnectGatewayId().equals(this.getDirectConnectGatewayId()) == false)
            return false;
        if (other.getVirtualGatewayId() == null ^ this.getVirtualGatewayId() == null)
            return false;
        if (other.getVirtualGatewayId() != null && other.getVirtualGatewayId().equals(this.getVirtualGatewayId()) == false)
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;

        hashCode = prime * hashCode + ((getAssociationId() == null) ? 0 : getAssociationId().hashCode());
        hashCode = prime * hashCode + ((getDirectConnectGatewayId() == null) ? 0 : getDirectConnectGatewayId().hashCode());
        hashCode = prime * hashCode + ((getVirtualGatewayId() == null) ? 0 : getVirtualGatewayId().hashCode());
        return hashCode;
    }

    @Override
    public DeleteDirectConnectGatewayAssociationRequest clone() {
        return (DeleteDirectConnectGatewayAssociationRequest) super.clone();
    }

}


text:
<!--
 Copyright 2005-2014 The Kuali Foundation

 Licensed under the Educational Community 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.osedu.org/licenses/ECL-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.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:p="http://www.springframework.org/schema/p"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
		http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

	<bean id="IacucProtocolApproveBean" parent="IacucProtocolApproveBean-parentBean" />
	<bean id="IacucProtocolApproveBean-parentBean" abstract="true" parent="IacucProtocolGenericActionBean">
		<property name="businessObjectClass" value="org.kuali.kra.iacuc.actions.approve.IacucProtocolApproveBean" />
		<property name="objectLabel" value="IACUC Protocol Approve Bean" />
		<property name="titleAttribute" value="IacucProtocolApproveBean-reason" />
		<property name="attributes" >
			<list>
			    <ref bean="IacucProtocolApproveBean-approvalDate" />
			    <ref bean="IacucProtocolApproveBean-expirationDate" />
			    <ref bean="IacucProtocolGenericActionBean-comments" />
				<ref bean="IacucProtocolGenericActionBean-actionDate" />
			</list>
		</property>
	</bean>

	<!-- Attribute Definitions -->

	<bean id="IacucProtocolApproveBean-approvalDate" parent="IacucProtocolApproveBean-approvalDate-parentBean"/>
	<bean id="IacucProtocolApproveBean-approvalDate-parentBean" abstract="true" parent="KraAttributeReferenceDummy-genericDate">
	    <property name="name" value="approvalDate"/>
	    <property name="label" value="Approval Date"/>
	    <property name="shortLabel" value="Approval Date"/>
	    <property name="required" value="true"/>
	    <property name="summary" value="Approval Date"/>
	    <property name="description" value="Approval Date"/>
	</bean>

	<bean id="IacucProtocolApproveBean-expirationDate" parent="IacucProtocolApproveBean-expirationDate-parentBean"/>
    <bean id="IacucProtocolApproveBean-expirationDate-parentBean" abstract="true" parent="KraAttributeReferenceDummy-genericDate">
        <property name="name" value="expirationDate"/>
        <property name="label" value="Expiration Date"/>
        <property name="shortLabel" value="Expiration Date"/>
        <property name="required" value="true"/>
        <property name="summary" value="Expiration Date"/>
        <property name="description" value="Expiration Date"/>
    </bean>

</beans>


text:
import pytest

import demistomock as demisto  # noqa: F401
from CommonServerPython import *  # noqa: F401
from PrintContext import print_context

CONTEXT_DATA = [{'data1': 1}]

@pytest.mark.parametrize('expected_content, fmt, ctx', [
    (CONTEXT_DATA, 'json', CONTEXT_DATA),
    ('Context empty.', 'table', [])
])
def test_print_context(mocker, expected_content, fmt, ctx):
    """
    Given:
        - The script args.
    When:
        - Running the print_context function.
    Then:
        - Validating the outputs as expected.
    """
    results_mock = mocker.patch.object(demisto, 'results')
    print_context(fmt, ctx)
    res = results_mock.call_args[0][0]
    assert expected_content == res

@pytest.mark.parametrize('expected_content, fmt, ctx', [
    ('**Context data**:\n```\n', 'markdown', CONTEXT_DATA),
])
def test_print_context_markdown(mocker, expected_content, fmt, ctx):
    """
    Given:
        - The script args.
    When:
        - Running the print_context function.
    Then:
        - Validating the outputs as expected.
    """
    results_mock = mocker.patch.object(demisto, 'results')
    print_context(fmt, ctx)
    res = results_mock.call_args[0][0]['Contents']
    assert expected_content in res


text:
var app = angular.module('Test', ['ngRoute', 'ui.bootstrap']);

	app.config(['$routeProvider',function($routeProvider){
		$routeProvider.when('/',
		{
			templateUrl:'/site/default',
			controller:'ListController'
		});

		$routeProvider.otherwise({
			redirectTo: '/'
		});
	}]);

		app.filter('pagination', function() {
		  return function(arr, start, end) {
			return arr.slice(start, end);
		  };
		});

		app.filter('start', function() {
		  return function(arr, start, end) {

			var startDate = new Date("2000-01-01");
			var endDate = new Date("2999-01-01");
			if(start !== undefined && start !== '')
			{
				var startDate = new Date(start);
			}

			if(end !== undefined && end !== '')
			{
				var endDate = new Date(end);
			}
			var result = [];
			angular.forEach(arr, function(val, key){
				value = new Date(val.date_start);

				if(startDate <= value && endDate >= value)
				{
					result.push(val);
				}
			});

			return result;
		  };
		});

		app.filter('end', function() {
		  return function(arr, start, end) {

			var startDate = new Date("2000-01-01");
			var endDate = new Date("2999-01-01");

			if(start !== undefined && start !== '')
			{
				var startDate = new Date(start);
			}

			if(end !== undefined && end !== '')
			{
				var endDate = new Date(end);
			}

			var result = [];
			angular.forEach(arr, function(val, key){
				value = new Date(val.date_start);

				if(startDate <= value && endDate >= value)
				{
					result.push(val);
				}
			});

			return result;
		  };
		});


text:
<?php

namespace Behat\Sf2DemoBundle\Features\Context;

use Symfony\Component\HttpKernel\KernelInterface;
use Behat\Symfony2Extension\Context\KernelAwareInterface;

use Behat\Behat\Context\BehatContext;

class FeatureContext extends BehatContext implements KernelAwareInterface
{
    private $kernel;
    private $parameters;
    private $containerParameters;
    private $parameterKey;

    /**
     * Initializes context with parameters from behat.yml.
     *
     * @param array $parameters
     */
    public function __construct(array $parameters)
    {
        $this->parameters = $parameters;
    }

    /**
     * Sets HttpKernel instance.
     * This method will be automatically called by Symfony2Extension ContextInitializer.
     *
     * @param KernelInterface $kernel
     */
    public function setKernel(KernelInterface $kernel)
    {
        $this->kernel = $kernel;
    }

    /**
     * @Given /^I have a kernel instance$/
     */
    public function iHaveAKernelInstance()
    {
        \PHPUnit_Framework_Assert::assertInstanceOf('Symfony\\Component\\HttpKernel\\KernelInterface', $this->kernel);
    }

    /**
     * @When /^I get container parameters from it$/
     */
    public function iGetContainerParametersFromIt()
    {
        $this->containerParameters = $this->kernel->getContainer()->getParameterBag()->all();
    }

    /**
     * @Then /^there should be "([^"]*)" parameter$/
     */
    public function thereShouldBeParameter($key)
    {
        \PHPUnit_Framework_Assert::assertArrayHasKey($key, $this->containerParameters);
        $this->parameterKey = $key;
    }

    /**
     * @Then /^there should not be "([^"]*)" parameter$/
     */
    public function thereShouldNotBeParameter($key)
    {
        \PHPUnit_Framework_Assert::assertArrayNotHasKey($key, $this->containerParameters);
    }

    /**
     * @Given /^it should be set to "([^"]*)" value$/
     */
    public function itShouldBeSetToValue($val)
    {
        \PHPUnit_Framework_Assert::assertSame($val, $this->containerParameters[$this->parameterKey]);
    }
}


text:
title: "profile"
description: >
  Get or list the current profiles (clusters)
---

## minikube profile

Get or list the current profiles (clusters)

### Synopsis

profile sets the current minikube profile, or gets the current profile if no arguments are provided.  This is used to run and manage multiple minikube instance.  You can return to the default minikube profile by running `minikube profile default`

```shell
minikube profile [MINIKUBE_PROFILE_NAME].  You can return to the default minikube profile by running `minikube profile default` [flags]
```

### Options inherited from parent commands

```
      --add_dir_header                   If true, adds the file directory to the header of the log messages
      --alsologtostderr                  log to standard error as well as files
  -b, --bootstrapper string              The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
  -h, --help
      --log_backtrace_at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --log_dir string                   If non-empty, write log files in this directory
      --log_file string                  If non-empty, use this log file
      --log_file_max_size uint           Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
      --logtostderr                      log to standard error instead of files
      --one_output                       If true, only write logs to their native severity level (vs also writing to each lower severity level)
  -p, --profile string                   The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
      --skip_headers                     If true, avoid header prefixes in the log messages
      --skip_log_headers                 If true, avoid headers when opening log files
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
      --user string                      Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
  -v, --v Level                          number for the log level verbosity
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging
```

## minikube profile help

Help about any command

### Synopsis

Help provides help for any command in the application.
Simply type profile help [path to command] for full details.

```shell
minikube profile help [command] [flags]
```

### Options inherited from parent commands

```
      --add_dir_header                   If true, adds the file directory to the header of the log messages
      --alsologtostderr                  log to standard error as well as files
  -b, --bootstrapper string              The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
  -h, --help
      --log_backtrace_at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --log_dir string                   If non-empty, write log files in this directory
      --log_file string                  If non-empty, use this log file
      --log_file_max_size uint           Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
      --logtostderr                      log to standard error instead of files
      --one_output                       If true, only write logs to their native severity level (vs also writing to each lower severity level)
  -p, --profile string                   The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
      --skip_headers                     If true, avoid header prefixes in the log messages
      --skip_log_headers                 If true, avoid headers when opening log files
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
      --user string                      Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
  -v, --v Level                          number for the log level verbosity
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging
```

## minikube profile list

Lists all minikube profiles.

### Synopsis

Lists all valid minikube profiles and detects all possible invalid profiles.

```shell
minikube profile list [flags]
```

### Options

```
  -l, --light           If true, returns list of profiles faster by skipping validating the status of the cluster.
  -o, --output string   The output format. One of 'json', 'table' (default "table")
```

### Options inherited from parent commands

```
      --add_dir_header                   If true, adds the file directory to the header of the log messages
      --alsologtostderr                  log to standard error as well as files
  -b, --bootstrapper string              The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
  -h, --help
      --log_backtrace_at traceLocation   when logging hits line file:N, emit a stack trace (default :0)
      --log_dir string                   If non-empty, write log files in this directory
      --log_file string                  If non-empty, use this log file
      --log_file_max_size uint           Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
      --logtostderr                      log to standard error instead of files
      --one_output                       If true, only write logs to their native severity level (vs also writing to each lower severity level)
  -p, --profile string                   The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
      --skip_headers                     If true, avoid header prefixes in the log messages
      --skip_log_headers                 If true, avoid headers when opening log files
      --stderrthreshold severity         logs at or above this threshold go to stderr (default 2)
      --user string                      Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
  -v, --v Level                          number for the log level verbosity
      --vmodule moduleSpec               comma-separated list of pattern=N settings for file-filtered logging
```


text:
/*
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#include "config.h"

#include "libavutil/common.h"
#include "libavutil/log.h"

#include "avcodec.h"
#include "bsf.h"

extern const AVBitStreamFilter ff_aac_adtstoasc_bsf;
extern const AVBitStreamFilter ff_chomp_bsf;
extern const AVBitStreamFilter ff_dump_extradata_bsf;
extern const AVBitStreamFilter ff_dca_core_bsf;
extern const AVBitStreamFilter ff_h264_mp4toannexb_bsf;
extern const AVBitStreamFilter ff_hevc_mp4toannexb_bsf;
extern const AVBitStreamFilter ff_imx_dump_header_bsf;
extern const AVBitStreamFilter ff_mjpeg2jpeg_bsf;
extern const AVBitStreamFilter ff_mjpega_dump_header_bsf;
extern const AVBitStreamFilter ff_mp3_header_decompress_bsf;
extern const AVBitStreamFilter ff_mpeg4_unpack_bframes_bsf;
extern const AVBitStreamFilter ff_mov2textsub_bsf;
extern const AVBitStreamFilter ff_noise_bsf;
extern const AVBitStreamFilter ff_remove_extradata_bsf;
extern const AVBitStreamFilter ff_text2movsub_bsf;
extern const AVBitStreamFilter ff_vp9_superframe_bsf;

#include "libavcodec/bsf_list.c"

const AVBitStreamFilter *av_bsf_next(void **opaque)
{
    uintptr_t i = (uintptr_t)*opaque;
    const AVBitStreamFilter *f = bitstream_filters[i];

    if (f)
        *opaque = (void*)(i + 1);

    return f;
}

const AVBitStreamFilter *av_bsf_get_by_name(const char *name)
{
    int i;

    for (i = 0; bitstream_filters[i]; i++) {
        const AVBitStreamFilter *f = bitstream_filters[i];
        if (!strcmp(f->name, name))
            return f;
    }

    return NULL;
}

const AVClass *ff_bsf_child_class_next(const AVClass *prev)
{
    int i;

    /* find the filter that corresponds to prev */
    for (i = 0; prev && bitstream_filters[i]; i++) {
        if (bitstream_filters[i]->priv_class == prev) {
            i++;
            break;
        }
    }

    /* find next filter with priv options */
    for (; bitstream_filters[i]; i++)
        if (bitstream_filters[i]->priv_class)
            return bitstream_filters[i]->priv_class;
    return NULL;
}


text:
package apoc.stats;

import apoc.Pools;
import apoc.path.RelationshipTypeAndDirections;
import apoc.util.Util;
import org.HdrHistogram.AtomicHistogram;
import org.neo4j.collection.primitive.PrimitiveLongIterator;
import org.neo4j.graphdb.Direction;
import org.neo4j.graphdb.RelationshipType;
import org.neo4j.helpers.collection.Pair;
import org.neo4j.kernel.api.ReadOperations;
import org.neo4j.kernel.api.exceptions.EntityNotFoundException;
import org.neo4j.kernel.internal.GraphDatabaseAPI;
import org.neo4j.procedure.Context;
import org.neo4j.procedure.Name;
import org.neo4j.procedure.Procedure;
import org.neo4j.storageengine.api.Token;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.Future;
import java.util.stream.Stream;

import static org.neo4j.kernel.api.ReadOperations.ANY_LABEL;
import static org.neo4j.kernel.api.ReadOperations.ANY_RELATIONSHIP_TYPE;

/**
 * @author mh
 * @since 07.08.17
 */
public class DegreeDistribution {

    public static class DegreeStats {
        public final String typeName;
        public final long total;
        private final int type;
        private final Direction direction;
        private transient AtomicHistogram histogram;

        public void computeDegree(ReadOperations ops, long id) {
            try {
                int degree = type == ANY_RELATIONSHIP_TYPE ?
                        ops.nodeGetDegree(id, direction) :
                        ops.nodeGetDegree(id, direction, type);
                record(degree);
            } catch (EntityNotFoundException e) {
                // ignore
            }
        }

        public static class Result {
            public String type;
            public String direction;
            public long total;
            public long p50, p75, p90, p95, p99, p999, max, min;
            public double mean;
        }

        public DegreeStats(String typeName, int type, Direction direction, long total) {
            this.typeName = typeName == null ? null : typeName;
            this.type = type;
            this.direction = direction;
            this.total = total;
            this.histogram = new AtomicHistogram(total,3);
        }
        public void record(long value) {
            histogram.recordValue(value);
        }
        public Result done() {
            Result result = new Result();
            result.type = typeName;
            result.direction = direction.name();
            result.total = total;
            result.max = histogram.getMaxValue();
            result.min = histogram.getMinValue();
            result.mean = histogram.getMean();
            result.p50 = histogram.getValueAtPercentile(50);
            result.p75 = histogram.getValueAtPercentile(75);
            result.p90 = histogram.getValueAtPercentile(90);
            result.p95 = histogram.getValueAtPercentile(95);
            result.p99 = histogram.getValueAtPercentile(99);
            result.p999 = histogram.getValueAtPercentile(99.9);
            this.histogram.reset();
            this.histogram = null;
            return result;
        }
    }

    @Context
    public GraphDatabaseAPI db;

    @Procedure
    public Stream<DegreeStats.Result> degrees(@Name(value = "types", defaultValue = "") String types) {
        return Util.withStatement(db, (st, ops) -> {
            List<DegreeStats> stats = prepareStats(types, ops);
            PrimitiveLongIterator it = ops.nodesGetAll();
            List<Future> futures = new ArrayList<>();
            do {
                long[] batch = Util.takeIds(it, 10000);
                futures.add(Util.inTxFuture(Pools.DEFAULT, db, (stmt, ro) -> computeDegree(ro, stats, batch)));
                Util.removeFinished(futures);
            } while (it.hasNext());
            Util.waitForFutures(futures);
            return stats.stream().map(DegreeStats::done);
        });
    }

    public int computeDegree(ReadOperations ops, List<DegreeStats> stats, long[] batch) {
        for (long id : batch) {
            stats.forEach((s) -> s.computeDegree(ops, id));
        }
        return batch.length;
    }

    public List<DegreeStats> prepareStats(@Name(value = "types", defaultValue = "") String types, ReadOperations ops) {
        List<DegreeStats> stats = new ArrayList<>();
        if ("*".equals(types)) {
            Iterator<Token> tokens = ops.relationshipTypesGetAllTokens();
            while (tokens.hasNext()) {
                Token token = tokens.next();
                long total = ops.countsForRelationship(ANY_LABEL, token.id(), ANY_LABEL);
                stats.add(new DegreeStats(token.name(), token.id(), Direction.OUTGOING, total));
                stats.add(new DegreeStats(token.name(), token.id(), Direction.INCOMING, total));
            }
            return stats;
        }
        List<Pair<RelationshipType, Direction>> pairs = RelationshipTypeAndDirections.parse(types);
        for (Pair<RelationshipType, Direction> pair : pairs) {
            String typeName = pair.first() == null ? null : pair.first().name();
            int type = typeName == null ? ANY_RELATIONSHIP_TYPE : ops.relationshipTypeGetForName(typeName);
            long total = ops.countsForRelationship(ANY_LABEL, type, ANY_LABEL);
            stats.add(new DegreeStats(typeName, type, pair.other(), total));
        }
        return stats;
    }
}


text:
package ns

type Nsrpcnode struct {
	Ipaddress    string `json:"ipaddress,omitempty"`
	Password     string `json:"password,omitempty"`
	Secure       string `json:"secure,omitempty"`
	Srcip        string `json:"srcip,omitempty"`
	Validatecert string `json:"validatecert,omitempty"`
}


text:
using Encog.ML.Data.Basic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyProject01.Controller
{
    interface IInputDataFormater
    {
        int InputDataLength { get; }
        int ResultDataLength { get; }
        BasicMLData Convert(double[] rateDataArray);
        IInputDataFormater Clone();
        string GetDecs();
    }
}


text:
package com.ngengs.android.cekinote.main;

import android.os.Bundle;
import android.support.annotation.NonNull;

import com.ngengs.android.cekinote.data.Tag;
import com.ngengs.android.cekinote.data.model.Game;
import com.ngengs.android.cekinote.data.model.GameDao;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by ngengs on 4/3/2017.
 */

class MainPresenter implements MainContract.Presenter {

    private final MainContract.View mView;

    private GameDao gameDao;
    private List<Game> gameData;
    private List<Integer> selectedGame;

    MainPresenter(@NonNull MainContract.View mView, @NonNull GameDao gameDao) {
        this.mView = mView;
        this.gameDao = gameDao;
        start();
    }

    @Override
    public void start() {
        gameData = new ArrayList<>();
        selectedGame = new ArrayList<>();
        mView.setPresenter(this);
        mView.changeHeaderTitle();
        mView.changeHeaderColor();
    }

    @Override
    public boolean menuEndGame() {
        Date now = new Date();
        List<Game> tempGame = new ArrayList<>();
        for (int position : selectedGame) {
            Game game = gameData.get(position);
            game.setDateFinish(now);
            tempGame.add(game);
            mView.updateData(game, position);
            mView.removeSelected(position);
        }
        gameDao.updateInTx(tempGame);
        selectedGame.clear();
        mView.changeHeaderTitle();
        mView.changeHeaderLook(false);

        return true;
    }

    @Override
    public int gameSize() {
        return gameData.size();
    }

    @Override
    public int selectedSize() {
        return selectedGame.size();
    }

    @Override
    public void updateDataGame() {
        gameData.clear();
        gameData.addAll(gameDao.queryBuilder().orderDesc(GameDao.Properties.DateStart).list());
        mView.updateData(gameData);
    }

    @Override
    @SuppressWarnings("unchecked")
    public void generateFromSavedInstanceState(@NonNull Bundle savedInstanceState) {
        Serializable temp = savedInstanceState.getSerializable(Tag.GAME_DATA);
        if (temp != null) {
            gameData.clear();
            gameData.addAll((List) temp);
            mView.updateData(gameData);
        } else {
            updateDataGame();
        }

        Serializable tempSelected = savedInstanceState.getSerializable(Tag.GAME_SELECTED);
        if (tempSelected != null) {
            selectedGame.addAll((List) tempSelected);
            if (!selectedGame.isEmpty()) {
                for (int i : selectedGame) {
                    mView.addSelected(i);
                }
                mView.changeHeaderTitle();
                mView.changeHeaderLook(true);
                mView.clearOptionMenu();
            }
        }
    }

    @Override
    public void refreshGameDao(@NonNull Integer position) {
        gameDao.refresh(gameData.get(position));
        mView.updateData(gameData.get(position), position);
    }

    @Override
    public void backPressed() {
        if (!selectedGame.isEmpty()) {
            for (int position : selectedGame) {
                mView.removeSelected(position);
            }
            selectedGame.clear();
            mView.changeHeaderTitle();
            mView.changeHeaderLook(false);
        }
    }

    @Override
    public void itemClick(@NonNull Integer position) {
        if (!selectedGame.isEmpty()) {
            if (gameData.get(position).getDateFinish() == null)
                longPressGameActivity(position);
        } else
            mView.startDetailGame(position);
    }

    @Override
    public List<Game> getGame() {
        return gameData;
    }

    @Override
    public List<Integer> getSelected() {
        return selectedGame;
    }

    @Override
    public boolean itemLongClick(@NonNull Integer position) {
        if (gameData.get(position).getDateFinish() == null && selectedGame.isEmpty()) {
            longPressGameActivity(position);
            return true;
        } else {
            return false;
        }
    }

    @Override
    public boolean isSelectedEmpty() {
        return selectedGame.isEmpty();
    }

    @Override
    public String getGameId(@NonNull Integer position) {
        return gameData.get(position).getId();
    }

    private void longPressGameActivity(@NonNull Integer position) {
        if (selectedGame.contains(position)) {
            selectedGame.remove(selectedGame.indexOf(position));
            mView.removeSelected(position);
        } else {
            selectedGame.add(position);
            mView.addSelected(position);
            mView.clearOptionMenu();
        }
        mView.changeHeaderTitle();
        mView.changeHeaderLook(false);
    }
}


text:
* [Introduction](README.md)
* [Usage](usage.md)
  * [Creating Roles](usage/creating-roles.md)
  * [Lonamic Roles](usage/lonamic-roles.md)
  * [Can User X Do Action Y?](usage/can-user-x-do-action-y.md)
  * [Editing Own Post](usage/editing-own-post.md)
  * [Filtering Requests](usage/filtering-requests.md)
* [API](api.md)
  * [core](api/core.md)
  * [can](api/can.md)
  * [filter](api/filter.md)
  * [inheritance](api/inheritance.md)


text:
<?php
$hostname = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "easy_cure";
/*
CREATE TABLE `easy_cure`.`Hospital` ( `h_id` INT(5) NOT NULL AUTO_INCREMENT , `h_name` VARCHAR(100) NOT NULL , `h_city` VARCHAR(15) NOT NULL , `h_address` VARCHAR(255) NOT NULL , `h_phone` INT(11) NOT NULL , `h_email` VARCHAR(30) NOT NULL , PRIMARY KEY (`h_id`), UNIQUE (`h_phone`), UNIQUE (`h_email`)) ENGINE = InnoDB;
*/
// Create connection
$conn = mysqli_connect($hostname, $dbuser, $dbpass, $dbname);
// Check connection
if (!$conn) {
    die("Connection failed: " . mysqli_connect_error());
}else{
	echo "connected Sucessfully";
}
$sql = "SELECT * FROM `doctor`";
$records =$sql;
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
						// output data of each row		$row[""]
	while($row = mysqli_fetch_assoc($result)) {
							//echo $row["h_name"];
         echo "
 ".$row["d_name"]."
";
						}
					}

		echo "
";
	mysqli_close($conn);
?>


text:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<title>DatastoreV3Impl</title>
<meta name="date" content="2019-04-08">
<link rel="stylesheet" type="text/css" href="../../../../../../dev_javadoc.css" title="Style">

JavaScript is disabled on your browser.

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method

com.google.appengine.api.datastore.dev

Class DatastoreV3Impl

java.lang.Object

com.google.appengine.api.datastore.dev.DatastoreV3Impl

All Implemented Interfaces:

DatastoreV3

public class DatastoreV3Impl
extends java.lang.Object
implements DatastoreV3

An implementation DatastoreV3 which wraps a LocalDatastoreService.

LocalDatastoreService should but cannot implement DatastoreV3 directly because
 the ApiProxy uses method-named based reflection to call stubs. It doesn't properly check the
 method signature so the single-parameter version may be called by ApiProxy instead of the
 expected two parameter version.

Constructor Summary

Constructors

Constructor and Description

DatastoreV3Impl(LocalDatastoreService delegate)

Method Summary

All Methods Instance Methods Concrete Methods

Modifier and Type
Method and Description

void
addActions(TaskQueueBulkAddRequest req)

AllocateIdsResponse
allocateIds(AllocateIdsRequest req)

Transaction
beginTransaction(BeginTransactionRequest req)

CommitResponse
commit(Transaction req)

long
createIndex(CompositeIndex req)

DeleteResponse
delete(DeleteRequest req)

void
deleteCursor(Cursor req)

void
deleteIndex(CompositeIndex req)

GetResponse
get(GetRequest req)

CompositeIndices
getIndices(java.lang.String appId)

QueryResult
next(NextRequest req)

PutResponse
put(PutRequest req)

void
rollback(Transaction req)

QueryResult
runQuery(Query req)

void
updateIndex(CompositeIndex req)

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

DatastoreV3Impl

public DatastoreV3Impl(LocalDatastoreService delegate)

Method Detail

addActions

public void addActions(TaskQueueBulkAddRequest req)

Specified by:

addActions in interface DatastoreV3

allocateIds

public AllocateIdsResponse allocateIds(AllocateIdsRequest req)

Specified by:

allocateIds in interface DatastoreV3

beginTransaction

public Transaction beginTransaction(BeginTransactionRequest req)

Specified by:

beginTransaction in interface DatastoreV3

commit

public CommitResponse commit(Transaction req)

Specified by:

commit in interface DatastoreV3

createIndex

public long createIndex(CompositeIndex req)

Specified by:

createIndex in interface DatastoreV3

delete

public DeleteResponse delete(DeleteRequest req)

Specified by:

delete in interface DatastoreV3

deleteCursor

public void deleteCursor(Cursor req)

Specified by:

deleteCursor in interface DatastoreV3

deleteIndex

public void deleteIndex(CompositeIndex req)

Specified by:

deleteIndex in interface DatastoreV3

get

public GetResponse get(GetRequest req)

Specified by:

get in interface DatastoreV3

getIndices

public CompositeIndices getIndices(java.lang.String appId)

Specified by:

getIndices in interface DatastoreV3

next

public QueryResult next(NextRequest req)

Specified by:

next in interface DatastoreV3

put

public PutResponse put(PutRequest req)

Specified by:

put in interface DatastoreV3

rollback

public void rollback(Transaction req)

Specified by:

rollback in interface DatastoreV3

runQuery

public QueryResult runQuery(Query req)

Specified by:

runQuery in interface DatastoreV3

updateIndex

public void updateIndex(CompositeIndex req)

Specified by:

updateIndex in interface DatastoreV3

Skip navigation links

Overview

Package

Class

Tree

Deprecated

Index

Help

Prev Class

Next Class

Frames

No Frames

All Classes

Summary:

Nested |

Field |

Constr |

Method

Detail:

Field |

Constr |

Method


text:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <title>RingCentral CTI Demo</title>
    <link href="./images/favicon.ico" type="image/vnd.microsoft.icon" rel="shortcut icon">
    <link href="./images/favicon.ico" type="image/vnd.microsoft.icon" rel="icon">

    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">

    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha256-k2/8zcNbxVIh5mnQ52A0r3a6jAgMGxFJFE2707UxGCk= sha512-ZV9KawG2Legkwp3nAlxLIVFudTauWuBpC10uEafMHYL0Sarrz5A7G79kXh5+5+woxQ5HM559XX2UZjMJ36Wplg==" crossorigin="anonymous">

    <link href="./css/highlight.css" rel="stylesheet">

    <link rel="stylesheet" href="./css/fontawesome-more.css">
    <link rel="stylesheet" href="./css/ctidemo.css">

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

          </button>
          CTI Demo

            <button type="button" class="btn btn-sm btn-default" data-toggle="modal" data-target="#rcDemoConfigModal" >  Configure</button>

 Home

 Note: you need to <button type="button" class="btn btn-sm btn-default" data-toggle="modal" data-target="#rcDemoConfigModal"> Configure</button> the demo and link your RingCentral account before you use integrated communications and data functionality. See  Instructions for more.

Contacts

              First Name	Last Name	URL	Phone

                John	Wang	http://github.com/grokify	<input id="telval1" class="telval" type="text" value="1 (650) 111-2222">

Demo Instructions

Ensure that you have Configured this demo app and authorized it to access your RingCentral account.

For RingUri (URI Scheme) and optionally for RingOut, ensure that you are dialed into the RingCentral for Desktop softphone application.

Edit the phone number in the text input field to be a live number.

Click any of the three action buttons, RingOut, RingUri or SMS

Developer Instructions

Install RingCentral softphone (optional)

Installation of the RingCentral softphone or mobile phone app is necessary if you wish to use the URI Scheme click-to-dial functionality described below. You can download these here:

RingCentral for Desktop softphone

RingCentral for Android

RingCentral for iPhone

Installing the RingCentral for Desktop softphone

Download and install the RingCentral for Desktop softphone

The navigate to the MacOS directory which may be /Applications/RingCentral for Mac.app/Contents/MacOS and add a config.ini file with the following contents:

HttpRegServer  = "http://agentconnect.devtest.ringcentral.com"
PlatformServer = "https://platform.devtest.ringcentral.com"

Click-to-Dial via URI Scheme

RingCentral for Desktop can support dialing out using the tel or rcmobile URI schemes as follows:

<!-- rcmobile is only used by RingCentral -->
<a href="rcmobile://call?number=16501112222">1-650-111-2222</a>
<!-- tel can be used by may be used by multiple apps -->
<a href="tel:1-650-111-2222">1-650-111-2222</a>
<a href="tel:16501112222">1-650-111-2222</a>

<button style="display:none" onclick="var w = (window.parent)?window.parent:window; w.location.assign('rcmobile://call?number=15551112222');">Call</button>

Additionally, for Google Chrome, it may be necessary to execute a JavaScript redirect as follows:

// Use the following for Google Chrome only
var w = (window.parent)?window.parent:window;
w.location.assign('rcmobile://call?number=16501112222');
// For more info, see http://stackoverflow.com/questions/2330545/

For more inforomation on Google Chrome, please see this Stack Overflow link.

Click-to-Dial via RingOut

function ringOutHelper(rcsdk) {
    var t=this;
    t.rcsdk = rcsdk;
    t.init = function() {
        t.platform = t.rcsdk.getPlatform();
        t.Ringout = t.rcsdk.getRingoutHelper(); // this is the helper
        t.Utils = rcsdk.getUtils();
        t.Log = rcsdk.getLog();
        t.timeout = null; // reference to timeout object
        t.ringout = {};
    }
    t.handleError = function(e) {
        t.Log.error(e);
        console.log(e.message);
    }
    t.create = function(unsavedRingout) {
        t.platform
            .apiCall(t.Ringout.saveRequest(unsavedRingout))
            .then(function(response) {

                t.Utils.extend(t.ringout, response.data);
                t.Log.info('First status:', t.ringout.status.callStatus);

            })
            .catch(t.handleError);
    }
    t.init();
}

var ringOutHelper = new ringOutHelper(rcsdk);
ringOutHelper.create({
    from: {phoneNumber: fromPhoneNumber},
    to: {phoneNumber: toPhoneNumber},
    //callerId: {phoneNumber: '18882222222'}, // optional,
    playPrompt: true // optional
});

SMS

platform.post('/account/~/extension/~/sms', {
    body: {
        from: {phoneNumber:from}, // Your sms-enabled phone number
        to: [
            {phoneNumber:to} // Second party's phone number
        ],
        text: text
    }
}).then(function(response) {
    console.log('SMS Success: ' + response.data.id);
}).catch(function(e) {
    console.log('SMS Error: ' + e.message);
});

Resources

Developer Portal

API Docs

API Explorer

SDKs

CTI Tutorial

Support

Developer Community

Stack Overflow

<form>

        <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

Make RingOut Call

        Caller ID:

        To:

        <input type="text" id="rcDemoRingOutTo" class="form-control" value="" placeholder="To" />

        <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="rcDemo.Call.createRingOutSimple($('#rcDemoRingOutFrom').val(),$('#rcDemoRingOutTo').val())">Call</button>

      </form>

<form>

        <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

Send SMS

        From:

        To:

        <input type="text" id="rcDemoSmsTo" class="form-control" value="" placeholder="To" />

        Message:

        <input type="text" id="rcDemoSmsText" class="form-control" value="" placeholder="Text" />

        <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="rcDemo.Sms.sendMessage($('#rcDemoSmsFrom').val(),$('#rcDemoSmsTo').val(),$('#rcDemoSmsText').val())">Send</button>

      </form>

<form>

        <button type="button" class="close" data-dismiss="modal" aria-label="Close">×</button>

RingCentral Demo Control Panel

App Information

Application Key:

        <input type="text" id="rcAppKey" class="form-control" value="" placeholder="Sandbox App Key" />

Application Secret:

        <input type="text" id="rcAppSecret" class="form-control" value="" placeholder="Sandbox App Secret" />

OAuth 2.0 Redirect URI:

        <input type="text" id="rcAppRedirectUri" class="form-control" value="" placeholder="Redirect URI, e.g. http://grokify.github.io/cti-demo/oauth.html" />

Authorization Information

          <input type="radio" name="rcAuth" id="rcAuth3L" disabled="checked" /> 3-legged OAuth
          <input type="radio" name="rcAuth" id="rcAuth2L" checked="disabled" /> 2-legged OAuth

2-legged OAuth: Default User Information (pre-filled in authorization form)

Username:

        <input type="text" id="rcUserUsername" class="form-control" value="AA" placeholder="Username" />

Extension:

        <input type="text" id="rcUserExtension" class="form-control" value="BB" placeholder="Extension" />

Password:

        <input type="password" id="rcUserPassword" class="form-control" value="" placeholder="Password" />

Debug

        <button type="button" class="btn btn-default" onclick="rcCallWin.toggle();return false;">Toggle Call Window</button>
        <button type="button" class="btn btn-default" onclick="rcDemo.Core.retrieveAndSetUserNumbers();return false;">Retrieve User Numbers</button>

        <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
        <button type="button" class="btn btn-danger" data-dismiss="modal" onclick="rcDemo.Auth.logoutAndClear()">Clear Demo</button>
        <button type="button" class="btn btn-primary" data-dismiss="modal" onclick="rcDemo.Core.setInfoFromDom()">Save</button>

      </form>

RingCentral  00:00

Call From

Call To

Name	John Wang

Company	RingCentral

Current Opportunity	Subscription Add-on

Temperature	Green


text:
package com.nicotinaestudio.forestamovil.dal;

import com.nicotinaestudio.forestamovil.R;
import com.nicotinaestudio.forestamovil.model.Usuario;

public class UsuariosDao {

	public static Usuario login(String username, String password){

		Usuario u = null;

		if(username.equals("ta") && password.equals("123456")){
			u = new Usuario();
			u.nombre = "Titular de Aprovechamiento";
			u.foto = R.drawable.user_1;
			u.uuid = "11111111-1111-1111-1111-111111111111";
			u.roll = "Titular de Aprovechamiento";

		}else if(username.equals("is") && password.equals("123456")){
			u = new Usuario();
			u.nombre = "Insperctor de seguridad";
			u.foto = R.drawable.user_1;
			u.uuid = "11111111-1111-1111-1111-111111111112";
			u.roll = "Inspector de Seguridad";

		}else if(username.equals("ca") && password.equals("123456")){
			u = new Usuario();
			u.nombre = "CAT";
			u.foto = R.drawable.user_1;
			u.uuid = "CAT";

		}

		return u;

	}

}


text:
<!doctype html>

	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>MergeInjector | @uirouter/angular</title>
	<meta name="description" content="Documentation for @uirouter/angular">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="../assets/css/main.css">

						Search
						<input id="tsd-search-field" type="text" />

Preparing search index...

The search index is not available

					@uirouter/angular

						Options

								All

Public

Public/Protected

All

							<input type="checkbox" id="tsd-filter-inherited" checked />
							Inherited
							<input type="checkbox" id="tsd-filter-externals" checked />
							Externals

					Menu

					@uirouter/angular

					"src/mergeInjector"

					MergeInjector

Class MergeInjector

Merge two injectors

This class implements the Injector ng2 interface but delegates
					to the Injectors provided in the constructor.

Hierarchy

						MergeInjector

Implements

Injector

Index

Constructors

constructor

Properties

NOT_<wbr>FOUND

Methods

get

Constructors

constructor

new <wbr>Merge<wbr>Injector(...injectors: Injector[]): MergeInjector

Defined in src/mergeInjector.ts:11

Parameters

Rest ...injectors: Injector[]

Returns MergeInjector

Properties

Static NOT_<wbr>FOUND

NOT_<wbr>FOUND: {}

Defined in src/mergeInjector.ts:10

Type declaration

Methods

get

get(token: any, notFoundValue?: any): any

Defined in src/mergeInjector.ts:28

Get the token from the first injector which contains it.

Delegates to the first Injector.get().
									If not found, then delegates to the second Injector (and so forth).
								If no Injector contains the token, return the notFoundValue, or throw.

Parameters

token: any

the DI token

Optional notFoundValue: any

the value to return if none of the Injectors contains the token.

Returns any

the DI value

						Services

						Interfaces

						Ng2<wbr>State<wbr>Declaration

						Ui<wbr>OnParams<wbr>Changed

						Ui<wbr>OnExit

						Components

						UIView

						UISref

						UISref<wbr>Active

						Other

						Merge<wbr>Injector

								constructor

								NOT_<wbr>FOUND

								get

Legend

Generated using TypeDoc


text:
from sys import stdin
from src.classes.sockets import Socket

__author__ = 'Aldo Roman Nurena'

def __main__():
    (host, port) = Socket.get_host_data('localhost', 1234)
    (host_m, port_m) = Socket.get_host_data('localhost', 4321, "mirror")
    server_socket((host, port), (host_m,port_m))

def server_socket((host, port), (host_m,port_m)):
    """
    Instances the main server.
    Receives data from client, forward the data to
    a mirror server and replies the client.
    :param host: host to bind socket
    :param port: port to listen to
    :return:
    """
    s = Socket.get_instance()
    s.bind((host, port))
    s.listen(2)

    print "Listening on %(host)s:%(port)s" % {"host":host, "port":port}

    while True:
        # accept connections from client
        conn, address = s.accept()
        print address, "Now connected"
        content = conn.recv(64)

        # connect to mirror socket
        m = Socket.get_instance()
        m.connect((host_m,port_m))

        # m.send(len(content))     # send content length
        # m.recv(1)               # receive OK or ERROR
        m.sendall(content)      # send actual data

        print m.recv(64)
        m.close()

        if content.strip() == "EOF":
            print "EOF"
            conn.send("Good bye!")
            conn.close()
            break

        # response to client
        print content
        conn.send("I'm server socket. Thank you for connecting.\n")
        conn.close()
        print ""

__main__()


text:
def square(n):
    """Return the square of a number n. """
    return n ** 2

def connect(host, port, user, password):
    """Connect to a database.

    :param host: host IP.
    :param port: port
    :param user: user name
    :param password: password
    :return: connection object.
    """