identifier
stringlengths 42
383
| collection
stringclasses 1
value | open_type
stringclasses 1
value | license
stringlengths 0
1.81k
| date
float64 1.99k
2.02k
⌀ | title
stringlengths 0
100
| creator
stringlengths 1
39
| language
stringclasses 157
values | language_type
stringclasses 2
values | word_count
int64 1
20k
| token_count
int64 4
1.32M
| text
stringlengths 5
1.53M
| __index_level_0__
int64 0
57.5k
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/warleys14/the-messenger/blob/master/src/components/ButtonFooter.vue
|
Github Open Source
|
Open Source
|
MIT
| null |
the-messenger
|
warleys14
|
Vue
|
Code
| 133
| 524
|
<template>
<div class="footer-container">
<button type="button" @click="firstButtonFunction">
{{ firstButtonLabel }}
</button>
<router-link :to="lastButtonRouter">
<button class="router-button" type="button">
{{ lastButtonLabel }}
</button>
</router-link>
</div>
</template>
<script>
export default{
name: "ButtonFooter",
props:{
firstButtonLabel: {
type: String,
required: true
},
lastButtonLabel: {
type: String,
required: true
},
firstButtonFunction: {
type: Function,
required: true
},
lastButtonRouter: {
type: String,
required: true
}
}
}
</script>
<style lang="scss" scoped>
@import "../styles/_variables.scss";
@import "../styles/_base.scss";
.footer-container{
@include flexbox(row);
align-items: center;
justify-content: center;
gap: 2rem;
margin: 1rem;
:first-child{
background-color: transparent;
color: #fff;
border: $primary-color solid 2px;
border-radius: 10px;
height: 2.5rem;
width: 25%;
font-weight: bolder;
cursor: pointer;
&:hover{
background-color: #f88373;
}
@media (max-width: 700px){
width: 40%;
}
}
.router-button{
border: none;
background-color: $primary-color;
color: #fff;
font-weight: bolder;
border-radius: 10px;
height: 2.5rem;
width: 25vw;
cursor: pointer;
@media (max-width: 700px){
width: 40vw;
}
}
}
</style>
| 20,478
|
https://github.com/tejpratapsingh/coinbasepro-csharp/blob/master/CoinbasePro/Shared/Types/ProductType.cs
|
Github Open Source
|
Open Source
|
MIT
| null |
coinbasepro-csharp
|
tejpratapsingh
|
C#
|
Code
| 531
| 2,754
|
using System.Runtime.Serialization;
namespace CoinbasePro.Shared.Types
{
public enum ProductType
{
[EnumMember(Value = "Unknown-Unknown")]
Unknown,
[EnumMember(Value = "BTC-USD")]
BtcUsd,
[EnumMember(Value = "BTC-EUR")]
BtcEur,
[EnumMember(Value = "BTC-GBP")]
BtcGbp,
[EnumMember(Value = "BTC-USDC")]
BtcUsdc,
[EnumMember(Value = "ETH-USD")]
EthUsd,
[EnumMember(Value = "ETH-EUR")]
EthEur,
[EnumMember(Value = "ETH-BTC")]
EthBtc,
[EnumMember(Value = "ETH-GBP")]
EthGbp,
[EnumMember(Value = "ETH-USDC")]
EthUsdc,
[EnumMember(Value = "LTC-USD")]
LtcUsd,
[EnumMember(Value = "LTC-EUR")]
LtcEur,
[EnumMember(Value = "LTC-BTC")]
LtcBtc,
[EnumMember(Value = "LTC-GBP")]
LtcGbp,
[EnumMember(Value = "BCH-USD")]
BchUsd,
[EnumMember(Value = "BCH-EUR")]
BchEur,
[EnumMember(Value = "BCH-BTC")]
BchBtc,
[EnumMember(Value = "BCH-GBP")]
BchGbp,
[EnumMember(Value = "ETC-USD")]
EtcUsd,
[EnumMember(Value = "ETC-EUR")]
EtcEur,
[EnumMember(Value = "ETC-BTC")]
EtcBtc,
[EnumMember(Value = "ETC-GBP")]
EtcGbp,
[EnumMember(Value = "ZRX-USD")]
ZrxUsd,
[EnumMember(Value = "ZRX-EUR")]
ZrxEur,
[EnumMember(Value = "ZRX-BTC")]
ZrxBtc,
[EnumMember(Value = "BAT-USDC")]
BatUsdc,
[EnumMember(Value = "ZEC-USDC")]
ZecUsdc,
[EnumMember(Value = "ZEC-BTC")]
ZecBtc,
[EnumMember(Value = "ZEC-USD")]
ZecUsd,
[EnumMember(Value = "MANA-USDC")]
ManaUsdc,
[EnumMember(Value = "DNT-USDC")]
DntUsdc,
[EnumMember(Value = "CVC-USDC")]
CvcUsdc,
[EnumMember(Value = "LOOM-USDC")]
LoomUsdc,
[EnumMember(Value = "GNT-USDC")]
GntUsdc,
[EnumMember(Value = "DAI-USD")]
DaiUsd,
[EnumMember(Value = "DAI-USDC")]
DaiUsdc,
[EnumMember(Value = "MKR-USD")]
MkrUsd,
[EnumMember(Value = "MKR-BTC")]
MkrBtc,
[EnumMember(Value = "XRP-EUR")]
XrpEur,
[EnumMember(Value = "XRP-BTC")]
XrpBtc,
[EnumMember(Value = "XRP-USD")]
XrpUsd,
[EnumMember(Value = "XRP-GBP")]
XrpGbp,
[EnumMember(Value = "XLM-USD")]
XlmUsd,
[EnumMember(Value = "XLM-BTC")]
XlmBtc,
[EnumMember(Value = "XLM-EUR")]
XlmEur,
[EnumMember(Value = "XTZ-USD")]
XtzUsd,
[EnumMember(Value = "XTZ-BTC")]
XtzBtc,
[EnumMember(Value = "XTZ-EUR")]
XtzEur,
[EnumMember(Value = "XTZ-GBP")]
XtzGbp,
[EnumMember(Value = "EOS-USD")]
EosUsd,
[EnumMember(Value = "EOS-EUR")]
EosEur,
[EnumMember(Value = "EOS-BTC")]
EosBtc,
[EnumMember(Value = "REP-USD")]
RepUsd,
[EnumMember(Value = "REP-BTC")]
RepBtc,
[EnumMember(Value = "ALGO-USD")]
AlgoUsd,
[EnumMember(Value = "ALGO-EUR")]
AlgoEur,
[EnumMember(Value = "ALGO-GBP")]
AlgoGbp,
[EnumMember(Value = "ALGO-BTC")]
AlgoBtc,
[EnumMember(Value = "BAT-ETH")]
BatEth,
[EnumMember(Value = "ETH-DAI")]
EthDai,
[EnumMember(Value = "LINK-BTC")]
LinkBtc,
[EnumMember(Value = "LINK-ETH")]
LinkEth,
[EnumMember(Value = "LINK-USD")]
LinkUsd,
[EnumMember(Value = "LINK-EUR")]
LinkEur,
[EnumMember(Value = "LINK-GBP")]
LinkGbp,
[EnumMember(Value = "DASH-USD")]
DashUsd,
[EnumMember(Value = "DASH-BTC")]
DashBtc,
[EnumMember(Value = "OXT-USD")]
OxtUsd,
[EnumMember(Value = "ATOM-USD")]
AtomUsd,
[EnumMember(Value = "ATOM-BTC")]
AtomBtc,
[EnumMember(Value = "OMG-USD")]
OmgUsd,
[EnumMember(Value = "OMG-EUR")]
OmgEur,
[EnumMember(Value = "OMG-GBP")]
OmgGbp,
[EnumMember(Value = "OMG-BTC")]
OmgBtc,
[EnumMember(Value = "KNC-USD")]
KncUsd,
[EnumMember(Value = "KNC-BTC")]
KncBtc,
[EnumMember(Value = "COMP-BTC")]
CompBtc,
[EnumMember(Value = "COMP-USD")]
CompUsd,
[EnumMember(Value = "BAND-USD")]
BandUsd,
[EnumMember(Value = "BAND-EUR")]
BandEur,
[EnumMember(Value = "BAND-GBP")]
BandGbp,
[EnumMember(Value = "BAND-BTC")]
BandBtc,
[EnumMember(Value = "NMR-USD")]
NmrUsd,
[EnumMember(Value = "NMR-EUR")]
NmrEur,
[EnumMember(Value = "NMR-GBP")]
NmrGbp,
[EnumMember(Value = "NMR-BTC")]
NmrBtc,
[EnumMember(Value = "UMA-USD")]
UmaUsd,
[EnumMember(Value = "UMA-BTC")]
UmaBtc,
[EnumMember(Value = "UMA-EUR")]
UmaEur,
[EnumMember(Value = "UMA-GBP")]
UmaGbp,
[EnumMember(Value = "LRC-USD")]
LrcUsd,
[EnumMember(Value = "LRC-BTC")]
LrcBtc,
[EnumMember(Value = "YFI-USD")]
YfiUsd,
[EnumMember(Value = "YFI-BTC")]
YfiBtc,
[EnumMember(Value = "UNI-USD")]
UniUsd,
[EnumMember(Value = "UNI-BTC")]
UniBtc,
[EnumMember(Value = "BAL-USD")]
BalUsd,
[EnumMember(Value = "BAL-BTC")]
BalBtc,
[EnumMember(Value = "REN-USD")]
RenUsd,
[EnumMember(Value = "REN-BTC")]
RenBtc,
[EnumMember(Value = "CGLD-BTC")]
CgldBtc,
[EnumMember(Value = "CGLD-USD")]
CgldUsd,
[EnumMember(Value = "CGLD-EUR")]
CgldEur,
[EnumMember(Value = "CGLD-GBP")]
CgldGbp,
[EnumMember(Value = "WBTC-BTC")]
WbtcBtc,
[EnumMember(Value = "WBTC-USD")]
WbtcUsd,
[EnumMember(Value = "NU-USD")]
NuUsd,
[EnumMember(Value = "NU-EUR")]
NuEur,
[EnumMember(Value = "NU-GBP")]
NuGbp,
[EnumMember(Value = "NU-BTC")]
NuBtc,
[EnumMember(Value = "FIL-USD")]
FilUsd,
[EnumMember(Value = "FIL-EUR")]
FilEur,
[EnumMember(Value = "FIL-GBP")]
FilGbp,
[EnumMember(Value = "FIL-BTC")]
FilBtc,
[EnumMember(Value = "AAVE-USD")]
AaveUsd,
[EnumMember(Value = "AAVE-BTC")]
AaveBtc,
[EnumMember(Value = "AAVE-EUR")]
AaveEur,
[EnumMember(Value = "AAVE-GBP")]
AaveGbp,
[EnumMember(Value = "BNT-USD")]
BntUsd,
[EnumMember(Value = "BNT-BTC")]
BntBtc,
[EnumMember(Value = "BNT-EUR")]
BntEur,
[EnumMember(Value = "BNT-GBP")]
BntGbp,
[EnumMember(Value = "SNX-USD")]
SnxUsd,
[EnumMember(Value = "SNX-BTC")]
SnxBtc,
[EnumMember(Value = "SNX-EUR")]
SnxEur,
[EnumMember(Value = "SNX-GBP")]
SnxGbp,
[EnumMember(Value = "GRT-USD")]
GrtUsd,
[EnumMember(Value = "GRT-BTC")]
GrtBtc,
[EnumMember(Value = "GRT-EUR")]
GrtEur,
[EnumMember(Value = "GRT-GBP")]
GrtGbp
}
}
| 7,887
|
https://github.com/dcelisgarza/DDD.jl/blob/master/test/FEMTest.jl
|
Github Open Source
|
Open Source
|
MIT
| 2,021
|
DDD.jl
|
dcelisgarza
|
Julia
|
Code
| 828
| 2,854
|
using DDD
using Test, StaticArrays, SparseArrays, LinearAlgebra
cd(@__DIR__)
@testset "nodeFE type" begin
@test nodeTypeFE(0) == 0
@test 1 == nodeTypeFE(1)
@test nodeTypeFE(3) == 3.0
@test zero(nodeTypeFE) == 0
@test convert(nodeTypeFE, 3.0) == nodeTypeFE(3)
end
@testset "Shape functions" begin
points = Float64[
0 0 0
1 0 0
1 1 0
0 1 0
0 0 1
1 0 1
1 1 1
0 1 1
0.5 0 0
0.5 0.5 0
0 0.5 0
0 0 0.5
0.5 0 0.5
0.5 0.5 0.5
0 0.5 0.5
]
Nall = shapeFunction(LinearQuadrangle3D(), points[:, 1], points[:, 2], points[:, 3])
@test all(isapprox.(sum.(Nall), 1))
dNdSall =
shapeFunctionDeriv(LinearQuadrangle3D(), points[:, 1], points[:, 2], points[:, 3])
checkSum = sum.(dNdSall, dims = 2)
for i in 1:size(points, 1)
@test vec(checkSum[i]) == SVector(0.0, 0.0, 0.0)
N = shapeFunction(LinearQuadrangle3D(), points[i, 1], points[i, 2], points[i, 3])
@test isapprox(Nall[i], N)
dNdS = shapeFunctionDeriv(
LinearQuadrangle3D(),
points[i, 1],
points[i, 2],
points[i, 3],
)
@test isapprox(dNdSall[i], dNdS)
end
end
@testset "Checking arbitrary points of the mesh and connectivity" begin
DictMaterialParameters = loadJSON("./testData/sampleMaterialParameters.json")
matParams = loadMaterialParameters(DictMaterialParameters)
femParams = FEMParameters(;
type = DispatchRegularCuboidMesh(),
order = LinearElement(),
model = CantileverLoad(),
dx = Float64(1009),
dy = Float64(1013),
dz = Float64(1019),
mx = 11,
my = 13,
mz = 17,
)
regularCuboidMesh = buildMesh(matParams, femParams)
@test typeof(regularCuboidMesh) <: AbstractRegularCuboidMesh &&
typeof(femParams.type) <: AbstractRegularCuboidMesh
@test regularCuboidMesh.order == femParams.order
testVertices = [
0 0 0
1009 0 0
1009 1013 0
0 1013 0
0 0 1019
1009 0 1019
1009 1013 1019
0 1013 1019
]
testC = [
3.272727272727273 1.272727272727273 1.272727272727273 0 0 0
1.272727272727273 3.272727272727273 1.272727272727273 0 0 0
1.272727272727273 1.272727272727273 3.272727272727273 0 0 0
0 0 0 1.000000000000000 0 0
0 0 0 0 1.000000000000000 0
0 0 0 0 0 1.000000000000000
]
vertices =
reshape(collect(Iterators.flatten(regularCuboidMesh.vertices.vertices)), 3, 8)
faces = regularCuboidMesh.faces
normals = regularCuboidMesh.faceNorm
@test isapprox(vertices', testVertices)
faceCoord = vertices[:, faces]
p = faceCoord[:, 2, :] - faceCoord[:, 1, :]
q = faceCoord[:, 4, :] - faceCoord[:, 1, :]
n = reshape(
collect(Iterators.flatten([normalize(p[:, i] × q[:, i]) for i in 1:size(p, 2)])),
3,
6,
)
@test isapprox(n, normals)
mx = regularCuboidMesh.mx
my = regularCuboidMesh.my
mz = regularCuboidMesh.mz
faceNorm = regularCuboidMesh.faceNorm
lbl = regularCuboidMesh.surfElemNode
coord = regularCuboidMesh.coord
for (i, val) in enumerate([
1,
1 + mx * mz,
1 + mx * mz + my * mz,
1 + 2 * mx * mz + my * mz,
1 + 2 * mx * mz + 2 * my * mz,
1 + 2 * mx * mz + 2 * my * mz + mx * my,
])
s = coord[:, lbl[:, val]]
p = SVector{3, eltype(s)}(s[:, 2] - s[:, 1])
q = SVector{3, eltype(s)}(s[:, 4] - s[:, 1])
@test normalize(p × q) ≈ faceNorm[:, i]
end
@test isapprox(regularCuboidMesh.C, testC)
@test regularCuboidMesh.dx == femParams.dx
@test regularCuboidMesh.dy == femParams.dy
@test regularCuboidMesh.dz == femParams.dz
@test regularCuboidMesh.mx == femParams.mx
@test regularCuboidMesh.my == femParams.my
@test regularCuboidMesh.mz == femParams.mz
@test regularCuboidMesh.numElem ==
regularCuboidMesh.mx * regularCuboidMesh.my * regularCuboidMesh.mz
@test regularCuboidMesh.numNode ==
(regularCuboidMesh.mx + 1) *
(regularCuboidMesh.my + 1) *
(regularCuboidMesh.mz + 1)
@test regularCuboidMesh.dx / regularCuboidMesh.mx == regularCuboidMesh.w
@test regularCuboidMesh.dy / regularCuboidMesh.my == regularCuboidMesh.h
@test regularCuboidMesh.dz / regularCuboidMesh.mz == regularCuboidMesh.d
idx = [
9 3
9 18
6 5
5 20
10 9
]
testCoord1 = 1.0e+02 * [
7.338181818181819 0 0
1.834545454545455 0 0
]
testCoord2 = [733.8181818181819 0.0 0.0; 458.6363636363637 77.92307692307692 0.0]
testCoord3 = 1.0e+02 * [
4.586363636363637 0 0
3.669090909090909 0 0
]
testCoord4 = [366.90909090909093 0.0 0.0; 642.0909090909091 77.92307692307692 0.0]
testCoord5 = 1.0e+02 * [
8.255454545454546 0 0
7.338181818181819 0 0
]
coord = regularCuboidMesh.coord
@test isapprox(coord[:, idx[1, :]]', testCoord1)
@test isapprox(coord[:, idx[2, :]]', testCoord2)
@test isapprox(coord[:, idx[3, :]]', testCoord3)
@test isapprox(coord[:, idx[4, :]]', testCoord4)
@test isapprox(coord[:, idx[5, :]]', testCoord5)
testCon = [
2508 2519 2352 2339 2507
1518 1529 1362 1349 1517
2750 2761 2594 2581 2749
2750 2761 2594 2581 2749
2703 2714 2547 2534 2702
]
connectivity = regularCuboidMesh.connectivity
idxCon = [6, 8, 3, 1, 5]
idxNode = [2002, 1149, 2201, 2201, 2158]
@test connectivity[idxCon, idxNode]' == testCon
KTest = [
-27.845980957491278
-45.099576129125296
-64.81800121385578
-7.379079254079251
3.5419580419580443
29.51631701631701
5.676247771836005
-9.901489001393466
-22.704991087344027
7.379079254079253
]
K = regularCuboidMesh.K
droptol!(K, 1e-14)
idxK = [
CartesianIndex(2194, 2695)
CartesianIndex(8235, 7734)
CartesianIndex(5636, 5672)
CartesianIndex(7785, 8326)
CartesianIndex(7018, 7524)
CartesianIndex(3367, 2868)
CartesianIndex(6289, 5753)
CartesianIndex(8368, 7903)
CartesianIndex(724, 764)
CartesianIndex(5121, 4654)
]
@test isapprox(K[idxK], KTest)
end
@testset "Boundary conditions" begin
DictMaterialParameters = loadJSON("./testData/sampleMaterialParameters.json")
matParams = loadMaterialParameters(DictMaterialParameters)
femParams = FEMParameters(;
type = DispatchRegularCuboidMesh(),
order = LinearElement(),
model = CantileverLoad(),
dx = Float64(1009),
dy = Float64(1013),
dz = Float64(1019),
mx = 11,
my = 13,
mz = 17,
)
regularCuboidMesh = buildMesh(matParams, femParams)
dx = regularCuboidMesh.dx
dz = regularCuboidMesh.dz
faces = regularCuboidMesh.faces
coord = regularCuboidMesh.coord
connectivity = regularCuboidMesh.connectivity
surfNode = regularCuboidMesh.surfNode
coord = regularCuboidMesh.coord
cantileverBC, forceDisplacement = Boundaries(femParams, regularCuboidMesh)
uGamma = cantileverBC.uGamma.node
mGamma = cantileverBC.mGamma.node
left = findall(x -> x == 0, coord[1, :])
loadEdge1 = findall(x -> x ≈ dx, coord[1, :])
loadEdge2 = findall(x -> x ≈ dz, coord[3, :])
loadEdge = intersect(loadEdge1, loadEdge2)
@test norm(coord[:, left]) ≈ norm(coord[:, uGamma])
@test norm(coord[:, loadEdge]) ≈ norm(coord[:, mGamma])
end
| 14,582
|
https://github.com/anggadarkprince/ci4-services/blob/master/app/Services/Notification/Messages/PusherNotificationBuilder.php
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
ci4-services
|
anggadarkprince
|
PHP
|
Code
| 176
| 493
|
<?php
namespace App\Services\Notification\Messages;
use InvalidArgumentException;
class PusherNotificationBuilder
{
private static $instance;
protected $data = [];
private function __construct()
{
// create object via newData()
}
/**
* Build new push config message.
*
* @return PusherNotificationBuilder
*/
public static function newData()
{
if (is_null(self::$instance)) {
self::$instance = new PusherNotificationBuilder();
}
self::$instance->reset();
return self::$instance;
}
/**
* Reset built push data.
*
* @return $this
*/
public function reset()
{
$this->data = [];
return $this;
}
/**
* Set channel.
*
* @param $channel
* @return $this
*/
public function setChannel($channel)
{
$this->data['channel'] = $channel;
return $this;
}
/**
* Set event.
*
* @param $event
* @return $this
*/
public function setEvent($event)
{
$this->data['event'] = $event;
return $this;
}
/**
* Set payload data.
*
* @param $payload
* @return $this
*/
public function setPayload($payload)
{
$this->data['payload'] = $payload;
return $this;
}
/**
* Build and return push config message.
*
* @return array
*/
public function build()
{
if (!isset($this->data['payload'])) {
throw new InvalidArgumentException("Payload is required, try to call setPayload()");
}
return $this->data;
}
}
| 46,096
|
https://github.com/thomfoolery/MonkeyRider/blob/master/js/utils/scriptor.js
|
Github Open Source
|
Open Source
|
MIT
| 2,020
|
MonkeyRider
|
thomfoolery
|
JavaScript
|
Code
| 276
| 639
|
"use strict";
/*
* SCRIPT UTILITIES MODULE
* =======================
*
* PUBLIC PROPERTIES --- (!) IMMUTABLE
*------------------
*
* N/A
*
* PUBLIC SETTERS
*---------------
*
* N/A
*
* PUBLIC METHODS
*---------------
*
* degToRad ( degrees ) : INT
*
* radToDeg ( radians ) : INT
*
* angle ( x1, y1, x2, y2 ) : INT
*
* distance ( x1, y1, x2, y2 ) : INT
*
*/
define(
// MODULE NAME
'utils/scriptor',
// DEPENDANCIES
[],
// CALLBACK
function () {
function Scriptor ( actors, scriptURL ) {
var self = this;
this.actors = actors;
for ( var i = 0, len = actors.length; i < len; i ++ ) {
actors[ i ].setProperty({"scriptor": this });
}
this.loadScript( scriptURL, function () { self.next() });
}
Scriptor.prototype = {
"getActor": function ( id ) {
return _.where( this.actors, {"id": id });
},
"loadScript": function ( scriptURL, callback ) {
var self = this;
$.get('/data/script/' + scriptURL, function ( script ) {
self.script = script;
if ( typeof callback === 'function' ) callback();
});
},
"next": function () {
if ( this.script.length < 1 ) {
_.where( this.actors, { "id": 'player' })[0].resetSelection();
return; // EXIT
}
var obj = this.script.shift()
, actor = _.where( this.actors, {"id": obj.actor })[0]
, action = obj.action
, value = obj.value
, self = this
;
//console.log( actor, action, value );
if ( actor )
actor[ action ]( value, this );
else {
if ( action === 'pause' )
setTimeout( function() { self.next() }, value );
}
},
"isComplete": function () {
if ( this.script.length === 0 ) return true;
return false;
}
};
return Scriptor;
}
);
| 39,556
|
https://github.com/JayDutta7/MvpWithAndroidArch/blob/master/app/src/main/java/com/quangnguyen/stackoverflowclient/util/schedulers/SchedulerModule.kt
|
Github Open Source
|
Open Source
|
MIT
| 2,019
|
MvpWithAndroidArch
|
JayDutta7
|
Kotlin
|
Code
| 48
| 226
|
package com.quangnguyen.stackoverflowclient.util.schedulers
import dagger.Module
import dagger.Provides
import io.reactivex.Scheduler
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import com.quangnguyen.stackoverflowclient.util.schedulers.SchedulerType.IO
import com.quangnguyen.stackoverflowclient.util.schedulers.SchedulerType.UI
/**
* Provides common Schedulers used by RxJava
*/
@Module
class SchedulerModule {
@Provides
@RunOn(IO)
fun provideIo(): Scheduler {
return Schedulers.io()
}
@Provides
@RunOn(UI)
fun provideUi(): Scheduler {
return AndroidSchedulers.mainThread()
}
}
| 4,992
|
https://github.com/Manuel-Leleuly/go-practice/blob/master/01_basic/21_functionsWithReturnValue.go
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
go-practice
|
Manuel-Leleuly
|
Go
|
Code
| 31
| 76
|
package main
import "fmt"
func getHello(name string) string {
if name == ""{
return "Hello bro"
}
return "Hello " + name
}
func main() {
result := getHello("Manuel")
fmt.Println(result)
}
| 16,012
|
https://github.com/chriscdev/Cryptography/blob/master/Cryptography.Library/Asymmetric/FastRsa.cs
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
Cryptography
|
chriscdev
|
C#
|
Code
| 1,040
| 2,327
|
using Cryptography.Library.Configuration;
using Cryptography.Library.Interfaces;
using Microsoft.Extensions.Caching.Memory;
using System;
using System.Security.Cryptography;
namespace Cryptography.Library.Symmetric
{
/// <summary>
/// Fast RSA can be used to encrypt large blobs of data.
/// It uses the AES symmetric encryption algorithm to encrypt the data and then the key and IV is encrypted using RSA.
/// This algorithm combines the speed of AES with the public/private key of RSA.
/// The intended use of this algorithm is when you want to encrypt large blobs of data but want to have a private key that is stored in a secure place for decryption.
/// For fast encryption performance use this class as a singleton which will use the same encrypted key and IV for the entire process. It will reset when the webserver refreshes or restarts.
/// For fast decryption switch enable the keyCache (useKeyCache = true), to enable the cache to save the AES key and IV for faster subsequent decryption. Note that this will only work if there are groups of ciphers that were encrypted with the same AES key and IV.
/// Important: You can only decrypt data that has been encrypted using this FastRsa class, it does not work with any other algorithms or libraries. Also make sure to use the same public and private key pair when encrypting and decrypting.
/// </summary>
public class FastRsa : ICryptographyAlgorithm
{
private readonly Aes _aesEncrypt;
private readonly Rsa _rsa;
private readonly bool _useKeyCache;
private readonly MemoryCacheEntryOptions _memoryCacheEntryOptions;
private static IMemoryCache _decryptedKeyCache;
/// <summary>
/// Gets the RSA encrypted AES Key and IV that will be appended to the messages. This value can only be set via the constructor.
/// </summary>
public string EncryptedKeyAndIV { get; }
/// <summary>
/// Constructor which will create a new key, IV and encrypt it. You can also pass in existing values for the arguments if you want to reuse accross instances or sessions.
/// Note: If you want to reuse encrypedKeyAndIV then make sure you also use the AES Key and IV that was used to generate the cipher.
/// </summary>
/// <param name="rsaKeyXml">Key XML exported by using ToXMLString(). Public key can only encrypt but private key can encrypt and decrypt.</param>
/// <param name="encrypedKeyAndIV">Optional. Set the EncryptedKeyAndIV, this is used if you stored the encryptedKeyAndIV and want to reuse the same AES Key and IV in subsequent encrypt/decrypt. Leave null to generate it (recommended).</param>
/// <param name="useKeyCache">Optional. Enable the use of the key cache which will store all the decrypted key and IV for lookup and therefore faster decryption. Disable if you you are worried about consuming large amounts of memory (enabled by default).</param>
/// <param name="memoryCache">Optional. Memory cache to use if useKeyCache is true. When null will default to <see cref="MemoryCache"/>.</param>
/// <param name="keyCacheOptions">Optional. Options for the key cache, set the type of expiration and the epiry time. By using a good expiry strategy you will optimize memory usage and decryption performance. (keep null to use default)</param>
public FastRsa(string rsaKeyXml, string encrypedKeyAndIV = null, bool useKeyCache = true, IMemoryCache memoryCache = null, CacheItemOptions keyCacheOptions = null)
{
var internalAes = new AesCryptoServiceProvider();
_useKeyCache = useKeyCache;
_rsa = new Rsa(rsaKeyXml);
if (_decryptedKeyCache == null)
{
_decryptedKeyCache = memoryCache ?? new MemoryCache(new MemoryCacheOptions());
}
if (string.IsNullOrWhiteSpace(encrypedKeyAndIV))
{
//Create new EncryptedKeyAndIV using a new AES key and IV
EncryptedKeyAndIV = _rsa.Encrypt($"{Convert.ToBase64String(internalAes.Key)} {Convert.ToBase64String(internalAes.IV)}");
}
else
{
//Get the AES key and IV from the encrypedKeyAndIV
EncryptedKeyAndIV = encrypedKeyAndIV;
(string key, string iv) = DecryptKeyCipher(encrypedKeyAndIV);
internalAes.Key = Convert.FromBase64String(key);
internalAes.IV = Convert.FromBase64String(iv);
}
_aesEncrypt = new Aes(internalAes);
if (keyCacheOptions != null)
{
_memoryCacheEntryOptions = new MemoryCacheEntryOptions();
if (keyCacheOptions.CacheExpiryType == Enums.CacheExpiryType.Absolute)
_memoryCacheEntryOptions.AbsoluteExpirationRelativeToNow = keyCacheOptions.ExpiryTime;
else
_memoryCacheEntryOptions.SlidingExpiration = keyCacheOptions.ExpiryTime;
}
}
/// <summary>
/// Primary constructor which will create a new key, IV and encrypt it.
/// Note: By setting useKeyCache to true will increase decrypt speed considerabily given that you decrypt groups of data that used the same AES key and IV.
/// </summary>
/// <param name="rsaKeyXml">Key XML exported by using ToXMLString(). Public key can only encrypt but private key can encrypt and decrypt.</param>
/// <param name="useKeyCache">Enable the use of the key cache which will store all the decrypted key and IV for lookup and therefore faster decryption. Disable if you you are worried about consuming large amounts of memory.</param>
/// <param name="memoryCache">Optional. Memory cache to use if useKeyCache is true. When null will default to <see cref="MemoryCache"/>.</param>
/// <param name="keyCacheOptions">Optional. Options for the key cache, set the type of expiration and the epiry time. By using a good expiry strategy you will optimize memory usage and decryption performance (keep null to use default).</param>
public FastRsa(string rsaKeyXml, bool useKeyCache, IMemoryCache memoryCache = null, CacheItemOptions keyCacheOptions = null) : this(rsaKeyXml, null, useKeyCache, memoryCache, keyCacheOptions)
{
}
///<inheritdoc/>
public string Encrypt(string data)
{
return $"{EncryptedKeyAndIV} {_aesEncrypt.Encrypt(data)}";
}
///<inheritdoc/>
public string Decrypt(string cipher)
{
var cipherParts = cipher.Split(" ");
if (cipherParts.Length != 2)
throw new ArgumentException("Not a valid FastRsa cipher, missing symmetric key and IV cipher.", nameof(cipher));
//Fast path: If the current encrypted key and IV are the same as the one in the cipher then use the current _aesEncrypt instance, no need to create a new one.
if (EncryptedKeyAndIV == cipherParts[0])
return _aesEncrypt.Decrypt(cipherParts[1]);
byte[] keyBytes;
byte[] ivBytes;
//Cache path: If the encrypted key and IV is the same as the cache key then use the AES key and IV from cache (not need to decrypt)
if (_useKeyCache)
{
KeyCacheValue keyCacheValue = _decryptedKeyCache.GetOrCreate(cipherParts[0], (entry) =>
{
if (_memoryCacheEntryOptions != null)
entry.SetOptions(_memoryCacheEntryOptions);
(string key, string iv) = DecryptKeyCipher(cipherParts[0]);
return new KeyCacheValue(Convert.FromBase64String(key), Convert.FromBase64String(iv));
});
keyBytes = keyCacheValue.Key;
ivBytes = keyCacheValue.IV;
}
else
{
(string key, string iv) = DecryptKeyCipher(cipherParts[0]);
keyBytes = Convert.FromBase64String(key);
ivBytes = Convert.FromBase64String(iv);
}
using var aesDecrypt = new Aes(keyBytes, ivBytes);
return aesDecrypt.Decrypt(cipherParts[1]);
}
private (string key, string iv) DecryptKeyCipher(string keyCipher)
{
var keyAndIv = _rsa.Decrypt(keyCipher).Split(" ");
if (keyAndIv.Length != 2)
throw new ArgumentException("Not a valid FastRsa cipher, missing key and/or IV in symmetric key and IV cipher.");
return (keyAndIv[0], keyAndIv[1]);
}
/// <summary>
/// Dispose
/// </summary>
public void Dispose()
{
_rsa?.Dispose();
_aesEncrypt?.Dispose();
}
/// <summary>
/// Key cache value model
/// </summary>
private class KeyCacheValue
{
public byte[] Key { get; set; }
public byte[] IV { get; set; }
public KeyCacheValue(byte[] key, byte[] iv)
{
Key = key;
IV = iv;
}
}
}
}
| 446
|
https://github.com/mitch-b/web/blob/master/init_makefile.py
|
Github Open Source
|
Open Source
|
MIT
| 2,016
|
web
|
mitch-b
|
Python
|
Code
| 736
| 2,233
|
#!/usr/bin/env python
# The MIT License (MIT)
#
# Copyright (c) 2014 Mitchell Barry
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
__author__ = "Mitchell Barry"
__email__ = "mitch.barry@gmail.com"
import os
makefile = """PY?=python
PELICAN?=pelican
PELICANOPTS=
BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content
OUTPUTDIR=$(BASEDIR)/output
CONFFILE=$(BASEDIR)/pelicanconf.py
PUBLISHCONF=$(BASEDIR)/publishconf.py
FTP_HOST=localhost
FTP_USER=anonymous
FTP_TARGET_DIR=/
SSH_HOST=__SSH_HOST__
SSH_PORT=__SSH_PORT__
SSH_USER=__SSH_USER__
SSH_TARGET_DIR=__SSH_TARGET_DIR__
S3_BUCKET=my_s3_bucket
CLOUDFILES_USERNAME=my_rackspace_username
CLOUDFILES_API_KEY=my_rackspace_api_key
CLOUDFILES_CONTAINER=my_cloudfiles_container
DROPBOX_DIR=~/Dropbox/Public/
GITHUB_PAGES_BRANCH=gh-pages
DEBUG ?= 0
ifeq ($(DEBUG), 1)
\tPELICANOPTS += -D
endif
help:
\t@echo 'Makefile for a pelican Web site '
\t@echo ' '
\t@echo 'Usage: '
\t@echo ' make html (re)generate the web site '
\t@echo ' make clean remove the generated files '
\t@echo ' make regenerate regenerate files upon modification '
\t@echo ' make publish generate using production settings '
\t@echo ' make serve [PORT=8000] serve site at http://localhost:8000'
\t@echo ' make devserver [PORT=8000] start/restart develop_server.sh '
\t@echo ' make stopserver stop local server '
\t@echo ' make ssh_upload upload the web site via SSH '
\t@echo ' make rsync_upload upload the web site via rsync+ssh '
\t@echo ' make dropbox_upload upload the web site via Dropbox '
\t@echo ' make ftp_upload upload the web site via FTP '
\t@echo ' make s3_upload upload the web site via S3 '
\t@echo ' make cf_upload upload the web site via Cloud Files'
\t@echo ' make github upload the web site via gh-pages '
\t@echo ' '
\t@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html'
\t@echo ' '
html:
\t$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
clean:
\t[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
regenerate:
\t$(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS)
serve:
ifdef PORT
\tcd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)
else
\tcd $(OUTPUTDIR) && $(PY) -m pelican.server
endif
devserver:
ifdef PORT
\t$(BASEDIR)/develop_server.sh restart $(PORT)
else
\t$(BASEDIR)/develop_server.sh restart
endif
stopserver:
\tkill -9 `cat pelican.pid`
\tkill -9 `cat srv.pid`
\t@echo 'Stopped Pelican and SimpleHTTPServer processes running in background.'
publish:
\t$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
ssh_upload: publish
\tscp -P $(SSH_PORT) -r $(OUTPUTDIR)/* $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR)
rsync_upload: publish
\trsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
dropbox_upload: publish
\tcp -r $(OUTPUTDIR)/* $(DROPBOX_DIR)
ftp_upload: publish
\tlftp ftp://$(FTP_USER)@$(FTP_HOST) -e "mirror -R $(OUTPUTDIR) $(FTP_TARGET_DIR) ; quit"
s3_upload: publish
\ts3cmd sync $(OUTPUTDIR)/ s3://$(S3_BUCKET) --acl-public --delete-removed --guess-mime-type
cf_upload: publish
\tcd $(OUTPUTDIR) && swift -v -A https://auth.api.rackspacecloud.com/v1.0 -U $(CLOUDFILES_USERNAME) -K $(CLOUDFILES_API_KEY) upload -c $(CLOUDFILES_CONTAINER) .
github: publish
\tghp-import -b $(GITHUB_PAGES_BRANCH) $(OUTPUTDIR)
\tgit push origin $(GITHUB_PAGES_BRANCH)
.PHONY: html help clean regenerate serve devserver publish ssh_upload rsync_upload dropbox_upload ftp_upload s3_upload cf_upload github
"""
class MakefileBuilder:
host = ''
port = ''
user = ''
directory = ''
def __init__(self):
self.host = self.get_text_input(
prompt='Host: ',
suggestion=None)
self.port = self.get_text_input(
prompt='Port: ',
suggestion='22')
self.user = self.get_text_input(
prompt='User: ',
suggestion=None)
self.directory = self.get_text_input(
prompt='Directory: ',
suggestion='/var/www')
if self.confirm():
self.create_file()
else:
print 'Exiting...\n'
def get_text_input(self, prompt, suggestion=None):
if suggestion:
prompt = '{0} [{1}] '.format(prompt, suggestion)
user_input = raw_input(prompt)
if not user_input:
user_input = suggestion
return user_input
def confirm(self):
print 'About to write Makefile: \n'
print 'SSH Host: %s' % self.host
print 'SSH Port: %s' % self.port
print 'SSH User: %s' % self.user
print 'SSH Dir: %s' % self.directory
return raw_input('Is the above information correct? [y/N] ').upper() == 'Y'
def create_file(self):
global makefile
filepath = 'Makefile'
print 'Creating file... {0}'.format(filepath)
makefile = makefile.replace('__SSH_HOST__', self.host)
makefile = makefile.replace('__SSH_PORT__', self.port)
makefile = makefile.replace('__SSH_USER__', self.user)
makefile = makefile.replace('__SSH_TARGET_DIR__', self.directory)
f = open(filepath, 'w')
f.write('%s\n' % makefile)
f.close()
print 'File created!'
if __name__ == '__main__':
builder = MakefileBuilder()
| 5,370
|
https://github.com/dennissergeev/test_conda_python_fortran/blob/master/bin/compile_model.py
|
Github Open Source
|
Open Source
|
MIT
| null |
test_conda_python_fortran
|
dennissergeev
|
Python
|
Code
| 18
| 46
|
#!/usr/bin/env python
# -*- encoding: utf-8
from pathlib import Path
from tcpf import Model
m = Model(Path("."))
m.compile()
| 13,197
|
https://github.com/paulohp/ethereum-libraries/blob/master/ArrayUtilsLib/truffle/contracts/ArrayUtilsTestContractThree.sol
|
Github Open Source
|
Open Source
|
MIT
| 2,019
|
ethereum-libraries
|
paulohp
|
Solidity
|
Code
| 472
| 2,255
|
pragma solidity ^0.4.18;
import "./Array256Lib.sol";
import "./Array128Lib.sol";
import "./Array64Lib.sol";
import "./Array32Lib.sol";
import "./Array16Lib.sol";
import "./Array8Lib.sol";
contract ArrayUtilsTestContractThree {
using Array256Lib for uint256[];
using Array128Lib for uint128[];
using Array64Lib for uint64[];
using Array32Lib for uint32[];
using Array16Lib for uint16[];
using Array8Lib for uint8[];
uint256[] array256;
uint128[] array128;
uint64[] array64;
uint32[] array32;
uint16[] array16;
uint8[] array8;
event Print(string message, bytes32 test);
function getHeapSort256() returns (uint256[10] memory r){
delete array256;
array256.push(3);
array256.push(1);
array256.push(9);
array256.push(7);
array256.push(4);
array256.push(4);
array256.push(0xff3);
array256.push(0);
array256.push(1095);
array256.push(1);
array256.heapSort();
for(uint256 i = 0; i<array256.length; i++){
r[i] = array256[i];
}
}
function getHeapSort128() returns (uint128[10] memory r){
delete array128;
array128.push(3);
array128.push(1);
array128.push(9);
array128.push(7);
array128.push(4);
array128.push(4);
array128.push(0xff3);
array128.push(0);
array128.push(1095);
array128.push(1);
array128.heapSort();
for(uint256 i = 0; i<array128.length; i++){
r[i] = array128[i];
}
}
function getHeapSort64() returns (uint64[10] memory r){
delete array64;
array64.push(3);
array64.push(1);
array64.push(9);
array64.push(7);
array64.push(4);
array64.push(4);
array64.push(0xff3);
array64.push(0);
array64.push(1095);
array64.push(1);
array64.heapSort();
for(uint256 i = 0; i<array64.length; i++){
r[i] = array64[i];
}
}
function getHeapSort32() returns (uint32[10] memory r){
delete array32;
array32.push(3);
array32.push(1);
array32.push(9);
array32.push(7);
array32.push(4);
array32.push(4);
array32.push(0xff3);
array32.push(0);
array32.push(1095);
array32.push(1);
array32.heapSort();
for(uint256 i = 0; i<array32.length; i++){
r[i] = array32[i];
}
}
function getHeapSort16() returns (uint16[10] memory r){
delete array16;
array16.push(3);
array16.push(1);
array16.push(9);
array16.push(7);
array16.push(4);
array16.push(4);
array16.push(0xff3);
array16.push(0);
array16.push(1095);
array16.push(1);
array16.heapSort();
for(uint256 i = 0; i<array16.length; i++){
r[i] = array16[i];
}
}
function getHeapSort8() returns (uint8[10] memory r){
delete array8;
array8.push(3);
array8.push(1);
array8.push(9);
array8.push(7);
array8.push(4);
array8.push(4);
array8.push(0xfe);
array8.push(0);
array8.push(109);
array8.push(1);
array8.heapSort();
for(uint256 i = 0; i<array8.length; i++){
r[i] = array8[i];
}
}
function getUniq8() returns (uint8[5] memory r) {
uint arrayNewLength;
delete array8;
array8.push(1);
array8.push(1);
array8.push(2);
array8.push(7);
array8.push(4);
array8.push(4);
array8.push(0);
array8.push(1);
arrayNewLength = array8.uniq();
for (uint8 i = 0; i < arrayNewLength; i++) {
r[i] = array8[i];
}
}
function getUniq16() returns (uint16[7] memory r) {
uint arrayNewLength;
delete array16;
array16.push(1);
array16.push(1);
array16.push(2);
array16.push(7);
array16.push(4);
array16.push(4);
array16.push(0);
array16.push(0xff3);
array16.push(1095);
array16.push(1);
arrayNewLength = array16.uniq();
for (uint16 i = 0; i < arrayNewLength; i++) {
r[i] = array16[i];
}
}
function getUniq32() returns (uint32[7] memory r) {
uint arrayNewLength;
delete array32;
array32.push(1);
array32.push(1);
array32.push(2);
array32.push(7);
array32.push(4);
array32.push(4);
array32.push(0);
array32.push(0xff3);
array32.push(1095);
array32.push(1);
arrayNewLength = array32.uniq();
for (uint32 i = 0; i < arrayNewLength; i++) {
r[i] = array32[i];
}
}
function getUniq64() returns (uint64[7] memory r) {
uint arrayNewLength;
delete array64;
array64.push(1);
array64.push(1);
array64.push(2);
array64.push(7);
array64.push(4);
array64.push(4);
array64.push(0);
array64.push(0xff3);
array64.push(1095);
array64.push(1);
arrayNewLength = array64.uniq();
for (uint64 i = 0; i < arrayNewLength; i++) {
r[i] = array64[i];
}
}
function getUniq128() returns (uint128[7] memory r) {
uint arrayNewLength;
delete array128;
array128.push(1);
array128.push(1);
array128.push(2);
array128.push(7);
array128.push(4);
array128.push(4);
array128.push(0);
array128.push(0xff3);
array128.push(1095);
array128.push(1);
arrayNewLength = array128.uniq();
for (uint128 i = 0; i < arrayNewLength; i++) {
r[i] = array128[i];
}
}
function getUniq256() returns (uint256[7] memory r) {
uint arrayNewLength;
delete array256;
array256.push(1);
array256.push(1);
array256.push(2);
array256.push(7);
array256.push(4);
array256.push(4);
array256.push(0);
array256.push(0xff3);
array256.push(1095);
array256.push(1);
arrayNewLength = array256.uniq();
for (uint256 i = 0; i < arrayNewLength; i++) {
r[i] = array256[i];
}
}
}
| 34,996
|
https://github.com/ef4/orbit/blob/master/packages/@orbit/records/src/record-operation-term.ts
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
orbit
|
ef4
|
TypeScript
|
Code
| 570
| 1,737
|
import { OperationTerm } from '@orbit/data';
import {
AddRecordOperation,
UpdateRecordOperation,
RemoveRecordOperation,
ReplaceAttributeOperation,
ReplaceKeyOperation,
AddToRelatedRecordsOperation,
RemoveFromRelatedRecordsOperation,
ReplaceRelatedRecordsOperation,
ReplaceRelatedRecordOperation,
RecordOperation
} from './record-operation';
import {
InitializedRecord,
RecordIdentity,
UninitializedRecord
} from './record';
import { RecordTransformBuilder } from './record-transform-builder';
import { StandardRecordValidators } from './record-validators/standard-record-validators';
import { RecordOperationValidator } from './record-validators/record-operation-validator';
import { RecordSchema } from './record-schema';
import { ValidationError } from './record-exceptions';
export class BaseRecordOperationTerm<
O extends RecordOperation,
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends OperationTerm<O> {
$transformBuilder: RecordTransformBuilder<RT, RI, R>;
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
operation: O
) {
super(operation);
this.$transformBuilder = transformBuilder;
}
toOperation(): O {
const operation = super.toOperation();
const validatorFor = this.$transformBuilder.$validatorFor;
if (validatorFor) {
const schema = this.$transformBuilder.$schema as RecordSchema;
const validateRecordOperation = validatorFor(
StandardRecordValidators.RecordOperation
) as RecordOperationValidator;
const issues = validateRecordOperation(operation, {
validatorFor,
schema
});
if (issues !== undefined) {
throw new ValidationError(
'Validation isssues encountered while building a transform operation',
issues
);
}
}
return operation;
}
}
export class AddRecordTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<AddRecordOperation, RT, RI, R> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: InitializedRecord
) {
super(transformBuilder, {
op: 'addRecord',
record
});
}
}
export class UpdateRecordTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<UpdateRecordOperation, RT, RI, R> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: InitializedRecord
) {
super(transformBuilder, {
op: 'updateRecord',
record
});
}
}
export class RemoveRecordTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<RemoveRecordOperation, RT, RI, R> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: RecordIdentity
) {
super(transformBuilder, {
op: 'removeRecord',
record
});
}
}
export class ReplaceAttributeTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<ReplaceAttributeOperation, RT, RI, R> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: RecordIdentity,
attribute: string,
value: unknown
) {
super(transformBuilder, {
op: 'replaceAttribute',
record,
attribute,
value
});
}
}
export class ReplaceKeyTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<ReplaceKeyOperation, RT, RI, R> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: RecordIdentity,
key: string,
value: string
) {
super(transformBuilder, {
op: 'replaceKey',
record,
key,
value
});
}
}
export class AddToRelatedRecordsTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<AddToRelatedRecordsOperation, RT, RI, R> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: RecordIdentity,
relationship: string,
relatedRecord: RecordIdentity
) {
super(transformBuilder, {
op: 'addToRelatedRecords',
record,
relationship,
relatedRecord
});
}
}
export class RemoveFromRelatedRecordsTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<
RemoveFromRelatedRecordsOperation,
RT,
RI,
R
> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: RecordIdentity,
relationship: string,
relatedRecord: RecordIdentity
) {
super(transformBuilder, {
op: 'removeFromRelatedRecords',
record,
relationship,
relatedRecord
});
}
}
export class ReplaceRelatedRecordsTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<ReplaceRelatedRecordsOperation, RT, RI, R> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: RecordIdentity,
relationship: string,
relatedRecords: RecordIdentity[]
) {
super(transformBuilder, {
op: 'replaceRelatedRecords',
record,
relationship,
relatedRecords
});
}
}
export class ReplaceRelatedRecordTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> extends BaseRecordOperationTerm<ReplaceRelatedRecordOperation, RT, RI, R> {
constructor(
transformBuilder: RecordTransformBuilder<RT, RI, R>,
record: RecordIdentity,
relationship: string,
relatedRecord: RecordIdentity | null
) {
super(transformBuilder, {
op: 'replaceRelatedRecord',
record,
relationship,
relatedRecord
});
}
}
export type RecordOperationTerm<
RT = string,
RI = RecordIdentity,
R = UninitializedRecord
> =
| AddRecordTerm<RT, RI, R>
| UpdateRecordTerm<RT, RI, R>
| RemoveRecordTerm<RT, RI, R>
| ReplaceKeyTerm<RT, RI, R>
| ReplaceAttributeTerm<RT, RI, R>
| AddToRelatedRecordsTerm<RT, RI, R>
| RemoveFromRelatedRecordsTerm<RT, RI, R>
| ReplaceRelatedRecordsTerm<RT, RI, R>
| ReplaceRelatedRecordTerm<RT, RI, R>;
| 20,461
|
https://github.com/ericfreese/w3mailparse/blob/master/models/email_address.js
|
Github Open Source
|
Open Source
|
MIT
| 2,014
|
w3mailparse
|
ericfreese
|
JavaScript
|
Code
| 61
| 284
|
var crypto = require('crypto');
var EmailAddress = function(emailAddress) {
this.parseInfo(emailAddress);
this.gravatarUrl = 'http://www.gravatar.com/avatar/' + crypto.createHash('md5').update(this.address.toLowerCase()).digest('hex');
};
EmailAddress.emailAddressesFromString = function(emailAddressString) {
return emailAddressString.split(',').map(function(a) {
return new EmailAddress(a.replace(/^\s*[A-Za-z]+:/, '').trim());
});
}
EmailAddress.prototype.parseInfo = function(emailAddress) {
var angleAddressMatch = emailAddress.match(/\<([^\>]+)\>/);
if (!!angleAddressMatch) {
this.displayName = emailAddress.replace(/(\<[^\>]+\>|\")/g, '').trim();
this.address = angleAddressMatch[1];
} else {
this.displayName = undefined;
this.address = emailAddress.trim();
}
};
module.exports = EmailAddress;
| 36,313
|
https://github.com/renfei1992/gio-design/blob/master/src/selector/__test__/Selector.test.tsx
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,021
|
gio-design
|
renfei1992
|
TSX
|
Code
| 142
| 649
|
import React from 'react';
import { fireEvent, render, screen } from '@testing-library/react';
import {
Content,
IconContent,
CustomizeTrigger,
CustomizeSuffix,
Placeholder,
WithoutClear,
} from '../demos/Selector.stories';
describe('Selector', () => {
it('renders text item', () => {
const handleOnClear = jest.fn();
render(<Content {...Content.args} onClear={handleOnClear} />);
const item = screen.queryByText(/Content/);
expect(item).toBeDefined();
fireEvent.mouseEnter(item.parentElement);
const closeItem = screen.getByLabelText('close-circle-filled');
expect(closeItem).toBeDefined();
fireEvent.click(closeItem);
expect(handleOnClear).toHaveBeenCalled();
fireEvent.mouseLeave(item.parentElement);
});
it('renders text item with icon', () => {
render(<IconContent {...IconContent.args} />);
const iconItem = screen.getByLabelText('folder-outlined');
expect(iconItem).toBeDefined();
fireEvent.mouseEnter(iconItem.parentElement);
fireEvent.click(screen.getByLabelText('close-circle-filled'));
});
it('renders value in button mode', () => {
render(<CustomizeTrigger {...CustomizeTrigger.args} />);
const trigger = screen.getByText(/Select/);
expect(trigger).toBeDefined();
fireEvent.click(trigger);
expect(screen.getByText(/picker/));
});
it('renders with customize suffix', () => {
render(<CustomizeSuffix {...CustomizeSuffix.args} />);
expect(screen.getByLabelText('calendar-outlined')).toBeDefined();
});
it('renders placeholder', () => {
const handleVisibleChange = jest.fn();
render(<Placeholder {...Placeholder.args} onVisibleChange={handleVisibleChange} />);
const placeholder = screen.getByText(/please/);
expect(placeholder).toBeDefined();
fireEvent.click(placeholder);
expect(screen.getByLabelText('up-filled'));
expect(handleVisibleChange).toHaveBeenCalled();
});
it('renders without clear icon', () => {
render(<WithoutClear {...WithoutClear.args} />);
fireEvent.mouseEnter(screen.getByText(/Content/));
expect(screen.queryByLabelText('close-circle-filled')).toBeNull();
});
});
| 33,855
|
https://github.com/stackprobe/Factory/blob/master/SubTools/HTT/libs/Client/Client.c
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
Factory
|
stackprobe
|
C
|
Code
| 39
| 168
|
#include "Client.h"
uint Client_SockTimeoutSec = 20;
SockStream_t *ClientBegin(int sock, char *serviceName) // ret: NULL ƒiƒV
{
SockStream_t *ss;
// sock
errorCase(m_isEmpty(serviceName));
ss = CreateSockStream(sock, Client_SockTimeoutSec);
SockSendToken(ss, serviceName);
SockSendChar(ss, '\n');
SockFlush(ss);
return ss;
}
void ClientEnd(SockStream_t *ss)
{
ReleaseSockStream(ss);
}
| 24,288
|
https://github.com/ndlong2000/Laravel-Vuejs-Auth/blob/master/tests/Feature/Auth/RegisterTest.php
|
Github Open Source
|
Open Source
|
MIT
| null |
Laravel-Vuejs-Auth
|
ndlong2000
|
PHP
|
Code
| 124
| 454
|
<?php
namespace Tests\Feature\Auth;
use Faker\Factory;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Http\Response;
use Tests\TestCase;
class RegisterTest extends TestCase
{
use RefreshDatabase;
/**
* A basic feature test example.
*
* @return void
*/
public function testCanRegister()
{
$faker = Factory::create();
$pass = $faker->password;
$data = [
'id' => $faker->text(10),
'name' => $faker->name(),
'email' => $faker->email,
'address' => $faker->address,
'phone_number' => '0901291200',
'password' => $pass,
're_pass' => $pass,
];
$response = $this->postJson('/users/register',$data);
$response->assertStatus(Response::HTTP_OK);
}
public function testCanNotRegister()
{
$faker = Factory::create();
$pass = $faker->password;
$data1 = [
'id' => $faker->text(10),
'name' => $faker->name(),
'email' => $faker->email,
'address' => $faker->address,
'phone_number' => '0901291200',
'password' => '12345678',
're_pass' => '1213411312',
];
//$data1 = [];
$response = $this->postJson('/users/register',$data1);
$response->assertSeeText( "The re pass and password must match.");
$response->assertStatus(422);
}
}
| 37,794
|
https://github.com/wlmsoft/Alpha-Gobang-Zero/blob/master/alphazero/alpha_zero_mcts.py
|
Github Open Source
|
Open Source
|
MIT
| 2,021
|
Alpha-Gobang-Zero
|
wlmsoft
|
Python
|
Code
| 292
| 1,338
|
# coding: utf-8
from typing import Tuple, Union
import numpy as np
from .chess_board import ChessBoard
from .node import Node
from .policy_value_net import PolicyValueNet
class AlphaZeroMCTS:
""" 基于策略-价值网络的蒙特卡洛搜索树 """
def __init__(self, policy_value_net: PolicyValueNet, c_puct: float = 4, n_iters=1200, is_self_play=False) -> None:
"""
Parameters
----------
policy_value_net: PolicyValueNet
策略价值网络
c_puct: float
探索常数
n_iters: int
迭代次数
is_self_play: bool
是否处于自我博弈状态
"""
self.c_puct = c_puct
self.n_iters = n_iters
self.is_self_play = is_self_play
self.policy_value_net = policy_value_net
self.root = Node(prior_prob=1, parent=None)
def get_action(self, chess_board: ChessBoard) -> Union[Tuple[int, np.ndarray], int]:
""" 根据当前局面返回下一步动作
Parameters
----------
chess_board: ChessBoard
棋盘
Returns
-------
action: int
当前局面下的最佳动作
pi: `np.ndarray` of shape `(board_len^2, )`
执行动作空间中每个动作的概率,只在 `is_self_play=True` 模式下返回
"""
for i in range(self.n_iters):
# 拷贝棋盘
board = chess_board.copy()
# 如果没有遇到叶节点,就一直向下搜索并更新棋盘
node = self.root
while not node.is_leaf_node():
action, node = node.select()
board.do_action(action)
# 判断游戏是否结束,如果没结束就拓展叶节点
is_over, winner = board.is_game_over()
p, value = self.policy_value_net.predict(board)
if not is_over:
# 添加狄利克雷噪声
if self.is_self_play:
p = 0.75*p + 0.25 * \
np.random.dirichlet(0.03*np.ones(len(p)))
node.expand(zip(board.available_actions, p))
elif winner is not None:
value = 1 if winner == board.current_player else -1
else:
value = 0
# 反向传播
node.backup(-value)
# 计算 π,在自我博弈状态下:游戏的前三十步,温度系数为 1,后面的温度系数趋于无穷小
T = 1 if self.is_self_play and len(chess_board.state) <= 30 else 1e-3
visits = np.array([i.N for i in self.root.children.values()])
pi_ = self.__getPi(visits, T)
# 根据 π 选出动作及其对应节点
actions = list(self.root.children.keys())
action = int(np.random.choice(actions, p=pi_))
if self.is_self_play:
# 创建维度为 board_len^2 的 π
pi = np.zeros(chess_board.board_len**2)
pi[actions] = pi_
# 更新根节点
self.root = self.root.children[action]
self.root.parent = None
return action, pi
else:
self.reset_root()
return action
def __getPi(self, visits, T) -> np.ndarray:
""" 根据节点的访问次数计算 π """
# pi = visits**(1/T) / np.sum(visits**(1/T)) 会出现标量溢出问题,所以使用对数压缩
x = 1/T * np.log(visits + 1e-11)
x = np.exp(x - x.max())
pi = x/x.sum()
return pi
def reset_root(self):
""" 重置根节点 """
self.root = Node(prior_prob=1, c_puct=self.c_puct, parent=None)
def set_self_play(self, is_self_play: bool):
""" 设置蒙特卡洛树的自我博弈状态 """
self.is_self_play = is_self_play
| 15,550
|
https://github.com/unistack-org/go-rfb/blob/master/securitytype_string.go
|
Github Open Source
|
Open Source
|
MIT
| 2,020
|
go-rfb
|
unistack-org
|
Go
|
Code
| 118
| 375
|
// Code generated by "stringer -type=SecurityType"; DO NOT EDIT.
package rfb
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[SecTypeUnknown-0]
_ = x[SecTypeNone-1]
_ = x[SecTypeVNC-2]
_ = x[SecTypeTight-16]
_ = x[SecTypeATEN-16]
_ = x[SecTypeVeNCrypt-19]
}
const (
_SecurityType_name_0 = "SecTypeUnknownSecTypeNoneSecTypeVNC"
_SecurityType_name_1 = "SecTypeTight"
_SecurityType_name_2 = "SecTypeVeNCrypt"
)
var (
_SecurityType_index_0 = [...]uint8{0, 14, 25, 35}
)
func (i SecurityType) String() string {
switch {
case i <= 2:
return _SecurityType_name_0[_SecurityType_index_0[i]:_SecurityType_index_0[i+1]]
case i == 16:
return _SecurityType_name_1
case i == 19:
return _SecurityType_name_2
default:
return "SecurityType(" + strconv.FormatInt(int64(i), 10) + ")"
}
}
| 3,025
|
https://github.com/PeterHall16/HT-preview/blob/master/src/sass/backgrounds.sass
|
Github Open Source
|
Open Source
|
MIT
| null |
HT-preview
|
PeterHall16
|
Sass
|
Code
| 80
| 418
|
.n1
background: url("../res/n1.jpg") background-size: cover
.n2
background: url("../res/n2.jpg") background-size: cover
.n3
background: url("../res/n3.jpg") background-size: cover
.n4
background: url("../res/n4.jpg") background-size: cover
.n5
background: url("../res/n4.jpg") background-size: cover
.n6
background: url("../res/n4.jpg") background-size: cover
.n7
background: url("../res/n4.jpg") background-size: cover
.n8
background: url("../res/n4.jpg") background-size: cover
.n1Thumb
background: url("../res/n1Thumb.jpg")
background-size: cover
.n2Thumb
background: url("../res/n2Thumb.jpg")
background-size: cover
.n3Thumb
background: url("../res/n3Thumb.jpg")
background-size: cover
.n4Thumb
background: url("../res/n4Thumb.jpg")
background-size: cover
.n5Thumb
background: url("../res/n1Thumb.jpg")
background-size: cover
.n6Thumb
background: url("../res/n2Thumb.jpg")
background-size: cover
.n7Thumb
background: url("../res/n3Thumb.jpg")
background-size: cover
.n8Thumb
background: url("../res/n3Thumb.jpg")
background-size: cover
| 21,434
|
https://github.com/redwolf0302/android-animation-demo/blob/master/app/src/main/java/com/ejcafe/android/demo/Application.java
|
Github Open Source
|
Open Source
|
MIT
| null |
android-animation-demo
|
redwolf0302
|
Java
|
Code
| 28
| 84
|
package com.ejcafe.android.demo;
/**
* Application实现
*/
public final class Application extends android.app.Application {
@Override
public void onCreate() {
super.onCreate();
}
@Override
public void onTerminate() {
super.onTerminate();
}
}
| 36,044
|
https://github.com/vabs22/zulip/blob/master/tools/tests/test_capitalization_checker.py
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
zulip
|
vabs22
|
Python
|
Code
| 485
| 1,646
|
from bs4 import BeautifulSoup
from unittest import TestCase
from tools.lib.capitalization import check_capitalization, is_capitalized, \
get_safe_text
class GetSafeTextTestCase(TestCase):
def test_get_safe_text(self):
# type: () -> None
string = ('Messages in __page_params.product_name__ go to a '
'stream and have a topic.')
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Messages in __page_params_product_name__ '
'go to a stream and have a topic.')
string = "Zulip Zulip. Zulip some text!"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Zulip zulip. Zulip some text!')
string = "Zulip Zulip? Zulip some text!"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Zulip zulip? Zulip some text!')
string = "Zulip Zulip! Zulip some text!"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Zulip zulip! Zulip some text!')
string = "Zulip Zulip, Zulip some text!"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Zulip zulip, zulip some text!')
string = "Some text 25MiB"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Some text 25mib')
string = "Not Ignored Phrase"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Not Ignored Phrase')
string = "Not ignored phrase"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Not ignored phrase')
string = ""
safe_text = get_safe_text(string)
self.assertEqual(safe_text, '')
string = """
<p>Please re-enter your password to confirm your identity.
(<a href="/accounts/password/reset/" target="_blank">Forgotten it?</a>)</p>
"""
safe_text = get_safe_text(string)
soup = BeautifulSoup(safe_text, 'lxml')
rendered_text = ' '.join(soup.text.split())
self.assertEqual(safe_text, rendered_text)
string = "Edited (__last_edit_timestr__)"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, string)
string = "iPhone application"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'Iphone application')
string = "One two etc. three"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'One two etc_ three')
string = "One two etc. three. four"
safe_text = get_safe_text(string)
self.assertEqual(safe_text, 'One two etc_ three. four')
class IsCapitalizedTestCase(TestCase):
def test_process_text(self):
# type: () -> None
string = "Zulip zulip. Zulip some text!"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = "Zulip zulip? Zulip some text!"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = "Zulip zulip! Zulip some text!"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = "Zulip zulip, Zulip some text!"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = "Some number 25mib"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = "Not Ignored Phrase"
capitalized = is_capitalized(string)
self.assertFalse(capitalized)
string = "Not ignored phrase"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = ""
capitalized = is_capitalized(string)
self.assertFalse(capitalized)
string = ("Please re-enter your password to confirm your identity."
" (Forgotten it?)")
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = "Edited (__last_edit_timestr__)"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = "Iphone application"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
string = "One two etc_ three"
capitalized = is_capitalized(string)
self.assertTrue(capitalized)
class CheckCapitalizationTestCase(TestCase):
def test_check_capitalization(self):
# type: () -> None
strings = ["Zulip Zulip. Zulip some text!",
"Zulip Zulip? Zulip some text!",
"Zulip Zulip! Zulip some text!",
"Zulip Zulip, Zulip some text!",
"Some number 25MiB",
"Not Ignored Phrase",
"Not ignored phrase",
('<p class="bot-settings-note padded-container"> Looking for our '
'<a href="/integrations" target="_blank">Integrations</a> or '
'<a href="{{ server_uri }}/api" target="_blank">API</a> '
'documentation? </p>'),
]
errored, ignored = check_capitalization(strings)
self.assertEqual(errored, ['Not Ignored Phrase'])
self.assertEqual(
ignored,
sorted(["Zulip Zulip. Zulip some text!",
"Zulip Zulip? Zulip some text!",
"Zulip Zulip! Zulip some text!",
"Zulip Zulip, Zulip some text!",
"Some number 25MiB",
('<p class="bot-settings-note padded-container"> Looking '
'for our <a href="/integrations" target="_blank">'
'Integrations</a> or <a href="{{ server_uri }}/api" '
'target="_blank">API</a> documentation? </p>'),
]))
| 16,558
|
https://github.com/Mozafari1/bachelor-project/blob/master/integrert gjenkjenningsprogrammet med UI/eloksering_send.h
|
Github Open Source
|
Open Source
|
MIT
| null |
bachelor-project
|
Mozafari1
|
C
|
Code
| 65
| 375
|
#ifndef ELOKSERING_SEND_H
#define ELOKSERING_SEND_H
#include <QWidget>
#include <gjenkjenning_send.h>
namespace Ui {
class eloksering_send;
}
class eloksering_send : public QWidget
{
Q_OBJECT
public:
explicit eloksering_send(QWidget *parent = nullptr);
~eloksering_send();
private slots:
void on_tilbake_0_eloksering_bedrifter_clicked();
void on_eloksal_clicked();
void on_tilbake_1_eloksal_clicked();
void on_gundersen_galvano_clicked();
void on_tilbake_2_gundersen_clicked();
void on_hydal_alu_profiler_clicked();
void on_tilbake_3_hydal_alu_clicked();
void on_teloks_clicked();
void on_tilbake_4_teloks_clicked();
void on_nct_clicked();
void on_tilbake_5_nct_clicked();
private:
Ui::eloksering_send *ui;
class gjenkjenning_send _GjenkjennSend;
signals:
void tilbake_0_eloksering_bedrifter_clicked();
};
#endif // ELOKSERING_SEND_H
| 17,856
|
https://github.com/mborkar/Malhar/blob/master/webapps/config.js
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,013
|
Malhar
|
mborkar
|
JavaScript
|
Code
| 71
| 226
|
var config = {};
config.web = {};
config.daemon = {};
config.machine = {};
config.machine.redis = {};
config.fraud = {};
config.fraud.mongo = {};
config.adsdimensions = {};
config.adsdimensions.redis = {};
config.web.port = process.env.PORT || 3003;
config.daemon.host = 'localhost';
config.daemon.port = 9090;
config.machine.redis.host = 'localhost';
config.machine.redis.port = 6379;
config.machine.redis.dbIndex = 2;
//config.machine.forcedDelay = 5000; // for testing purpose only
config.adsdimensions.redis.host = 'localhost';
config.adsdimensions.redis.port = 6379;
config.fraud.mongo.host = 'localhost';
config.fraud.mongo.port = 27017;
module.exports = config
| 51,091
|
https://github.com/akilli/editor/blob/master/src/paragraph/Paragraph.js
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
editor
|
akilli
|
JavaScript
|
Code
| 96
| 315
|
import Base from '../base/Base.js';
import Break from '../break/Break.js';
import ParagraphListener from './ParagraphListener.js';
import Plugin from '../base/Plugin.js';
import i18n from './i18n.js';
import { TagGroup, TagName } from '../base/enum.js';
/**
* Paragraph Plugin
*/
export default class Paragraph extends Plugin {
/**
* @inheritDoc
*/
static get name() {
return 'paragraph';
}
/**
* @inheritDoc
*/
static get dependencies() {
return [Base, Break];
}
/**
* @inheritDoc
*/
init() {
this._i18n(i18n);
this._tag({
name: TagName.P,
group: TagGroup.PARAGRAPH,
children: [TagGroup.BREAK, TagGroup.FORMAT],
deletable: true,
editable: true,
focusable: true,
navigable: true,
sortable: true,
enter: TagName.P,
});
new ParagraphListener(this.editor);
this._command(TagName.P);
this._toolbar(this._('Paragraph'));
}
}
| 13,436
|
https://github.com/bliiitz/mangrove/blob/master/packages/mangrove-solidity/contracts/Strategies/interfaces/Aave/IPriceOracleGetter.sol
|
Github Open Source
|
Open Source
|
RSA-MD
| null |
mangrove
|
bliiitz
|
Solidity
|
Code
| 145
| 267
|
// SPDX-License-Identifier: agpl-3.0
// Copyright (C) 2020 Aave
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or any later version.
// This program 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 Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.en.html)
pragma solidity >=0.6.12;
/**
* @title IPriceOracleGetter interface
* @notice Interface for the Aave price oracle.
**/
interface IPriceOracleGetter {
/**
* @dev returns the asset price in ETH
* @param asset the address of the asset
* @return the ETH price of the asset
**/
function getAssetPrice(address asset) external view returns (uint256);
}
| 17,217
|
https://github.com/KingEnderBrine/TypeTreeDumper/blob/master/TypeTreeDumper/Kernel32.cs
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
TypeTreeDumper
|
KingEnderBrine
|
C#
|
Code
| 76
| 241
|
using System;
using System.Runtime.InteropServices;
namespace TypeTreeDumper
{
static class Kernel32
{
[DllImport("kernel32", SetLastError = true)]
public static extern IntPtr GetProcAddress(IntPtr hModule, string procedureName);
public static T GetProcAddress<T>(IntPtr hModule, string procedureName)
where T : Delegate
{
return Marshal.GetDelegateForFunctionPointer<T>(GetProcAddress(hModule, procedureName));
}
[DllImport("kernel32", SetLastError = true)]
public static extern IntPtr LoadLibrary(string fileName);
[DllImport("kernel32", SetLastError = true)]
public static extern bool FreeConsole();
public const int ATTACH_PARENT_PROCESS = -1;
[DllImport("kernel32", SetLastError = true)]
public static extern bool AttachConsole(int dwProcessId);
}
}
| 43,412
|
https://github.com/nKorous/angular6-swapi-site/blob/master/src/app/app.component.ts
|
Github Open Source
|
Open Source
|
MIT
| 2,018
|
angular6-swapi-site
|
nKorous
|
TypeScript
|
Code
| 35
| 114
|
import { Component } from '@angular/core';
import notify from 'devextreme/ui/notify'
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
name = 'Angular 6';
someNotification(data) {
notify(data, 'info', 3000)
}
}
| 45,822
|
https://github.com/keeema/Bobril/blob/master/src/bobril.promise.ts
|
Github Open Source
|
Open Source
|
MIT
| null |
Bobril
|
keeema
|
TypeScript
|
Code
| 797
| 2,294
|
/// <reference path="bobril.d.ts"/>
/// <reference path="bobril.promise.d.ts"/>
((b: IBobrilStatic, window: Window, document: Document) => {
var asap = (() => {
var callbacks: Array<() => void> = [];
function executeCallbacks() {
var cbList = callbacks;
callbacks = [];
for (var i = 0, len = cbList.length; i < len; i++) {
cbList[i]();
}
}
var onreadystatechange = 'onreadystatechange';
// Modern browsers, fastest async
if ((<any>window).MutationObserver) {
var hiddenDiv = document.createElement("div");
(new MutationObserver(executeCallbacks)).observe(hiddenDiv, { attributes: true });
return (callback: () => void) => {
if (!callbacks.length) {
hiddenDiv.setAttribute('yes', 'no');
}
callbacks.push(callback);
};
// Browsers that support postMessage
} else if (!window.setImmediate && window.postMessage && window.addEventListener) {
var MESSAGE_PREFIX = "basap" + Math.random(), hasPostMessage = false;
var onGlobalMessage = (event: any) => {
if (event.source === window && event.data === MESSAGE_PREFIX) {
hasPostMessage = false;
executeCallbacks();
}
};
window.addEventListener("message", onGlobalMessage, false);
return (fn: () => void) => {
callbacks.push(fn);
if (!hasPostMessage) {
hasPostMessage = true;
window.postMessage(MESSAGE_PREFIX, "*");
}
};
// IE browsers without postMessage
} else if (!window.setImmediate && onreadystatechange in document.createElement('script')) {
var scriptEl: any;
return (callback: () => void) => {
callbacks.push(callback);
if (!scriptEl) {
scriptEl = document.createElement("script");
scriptEl[onreadystatechange] = () => {
scriptEl[onreadystatechange] = null;
scriptEl.parentNode.removeChild(scriptEl);
scriptEl = null;
executeCallbacks();
};
document.body.appendChild(scriptEl);
}
};
// All other browsers
} else {
var timeout: number;
var timeoutFn: (cb: () => void, timeout: number) => number = window.setImmediate || setTimeout;
return (callback: () => void) => {
callbacks.push(callback);
if (!timeout) {
timeout = timeoutFn(() => {
timeout = undefined;
executeCallbacks();
}, 0);
}
};
}
})();
b.asap = asap;
if (!(<any>window).Promise) {
// Polyfill for Function.prototype.bind
function bind(fn: (args: any) => void, thisArg: any) {
return function() {
fn.apply(thisArg, arguments);
}
}
var isArray = b.isArray;
function handle(deferred: Array<(v: any) => any>) {
if (this.s/*tate*/ === null) {
this.d/*eferreds*/.push(deferred);
return;
}
asap(() => {
var cb = this.s/*tate*/ ? deferred[0] : deferred[1];
if (cb == null) {
(this.s/*tate*/ ? deferred[2] : deferred[3])(this.v/*alue*/);
return;
}
var ret: any;
try {
ret = cb(this.v/*alue*/);
} catch (e) {
deferred[3](e);
return;
}
deferred[2](ret);
});
}
function finale() {
for (var i = 0, len = this.d/*eferreds*/.length; i < len; i++) {
handle.call(this, this.d/*eferreds*/[i]);
}
this.d/*eferreds*/ = null;
}
function reject(newValue: any) {
this.s/*tate*/ = false;
this.v/*alue*/ = newValue;
finale.call(this);
}
/**
* Take a potentially misbehaving resolver function and make sure
* onFulfilled and onRejected are only called once.
*
* Makes no guarantees about asynchrony.
*/
function doResolve(fn: (fulfill: (v: any) => void, reject: (r: any) => void) => void, onFulfilled: (value: any) => void, onRejected: (reason: any) => void) {
var done = false;
try {
fn((value: any) => {
if (done) return;
done = true;
onFulfilled(value);
}, (reason: any) => {
if (done) return;
done = true;
onRejected(reason);
});
} catch (ex) {
if (done) return;
done = true;
onRejected(ex);
}
}
function resolve(newValue: any) {
try { //Promise Resolution Procedure: https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
if (newValue === this) throw new TypeError('Promise selfresolve');
if (Object(newValue) === newValue) {
var then = newValue.then;
if (typeof then === 'function') {
doResolve(bind(then, newValue), bind(resolve, this), bind(reject, this));
return;
}
}
this.s/*tate*/ = true;
this.v/*alue*/ = newValue;
finale.call(this);
} catch (e) { reject.call(this, e); }
}
function Promise(fn: (onFulfilled: (value: any) => void, onRejected: (reason: any) => void) => void) {
this.s/*tate*/ = null;
this.v/*alue*/ = null;
this.d/*eferreds*/ = <Array<Array<() => void>>>[];
doResolve(fn, bind(resolve, this), bind(reject, this));
}
Promise.prototype.then = function(onFulfilled: any, onRejected?: any) {
var me = this;
return new (<any>Promise)((resolve: any, reject: any) => {
handle.call(me, [onFulfilled, onRejected, resolve, reject]);
});
};
Promise.prototype['catch'] = function(onRejected?: any) {
return this.then(undefined, onRejected);
};
(<any>Promise).all = function() {
var args = (<any>[]).slice.call(arguments.length === 1 && isArray(arguments[0]) ? arguments[0] : arguments);
return new (<any>Promise)((resolve: (value: any) => void, reject: (reason: any) => void) => {
if (args.length === 0) {
resolve(args);
return;
}
var remaining = args.length;
function res(i: number, val: any) {
try {
if (val && (typeof val === 'object' || typeof val === 'function')) {
var then = val.then;
if (typeof then === 'function') {
then.call(val, (val: any) => { res(i, val) }, reject);
return;
}
}
args[i] = val;
if (--remaining === 0) {
resolve(args);
}
} catch (ex) {
reject(ex);
}
}
for (var i = 0; i < args.length; i++) {
res(i, args[i]);
}
});
};
(<any>Promise).resolve = (value: any) => {
if (value && typeof value === 'object' && value.constructor === Promise) {
return value;
}
return new (<any>Promise)((resolve: (value: any) => void) => {
resolve(value);
});
};
(<any>Promise).reject = (value: any) => new (<any>Promise)((resolve: any, reject: (reason: any) => void) => {
reject(value);
});
(<any>Promise).race = (values: any[]) => new (<any>Promise)((resolve: any, reject: any) => {
for (var i = 0, len = values.length; i < len; i++) {
values[i].then(resolve, reject);
}
});
(<any>window).Promise = <any>Promise;
}
})(b, window, document);
| 19,768
|
https://github.com/nokia/osgi-microfeatures/blob/master/com.alcatel.as.utils/src/alcatel/tess/hometop/gateways/reactor/examples/TestUdpClient.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
osgi-microfeatures
|
nokia
|
Java
|
Code
| 388
| 1,147
|
// Copyright 2000-2021 Nokia
//
// Licensed under the Apache License 2.0
// SPDX-License-Identifier: Apache-2.0
//
package alcatel.tess.hometop.gateways.reactor.examples;
// Jdk
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import alcatel.tess.hometop.gateways.reactor.Reactor;
import alcatel.tess.hometop.gateways.reactor.ReactorProvider;
import alcatel.tess.hometop.gateways.reactor.UdpChannel;
import alcatel.tess.hometop.gateways.reactor.UdpChannelListener;
import alcatel.tess.hometop.gateways.reactor.ReactorProvider.UdpOption;
/**
* Send an Udp message on port 9999
*/
public class TestUdpClient implements UdpChannelListener, Runnable {
final static Logger tracer = Logger.getLogger("test");
private static UdpChannel _channel;
private static int _counter;
public static void main(String args[]) throws Exception {
tracer.setLevel(Level.DEBUG);
ReactorProvider factory = ReactorProvider.provider();
Reactor reactor = factory.create("reactor");
reactor.start();
TestUdpClient me = new TestUdpClient();
InetSocketAddress local = new InetSocketAddress(9998);
Map<ReactorProvider.UdpOption, Object> o = new HashMap<> ();
_channel = factory.udpBind(reactor, local, me, o);
me.run();
Thread.sleep(Integer.MAX_VALUE);
}
public void run() {
tracer.warn("UdpClient: sending messages to server:" + _channel);
for (int i = 0; i < 1000000; i ++) {
ByteBuffer buf = ByteBuffer.wrap(("hello" + (++_counter)).getBytes());
_channel.send(new InetSocketAddress("localhost", 9999), buf, false);
}
tracer.warn("UdpClient: all sent to " + _channel);
tracer.warn("UdpClient: closing:" + _channel);
_channel.close();
}
// --- ChannelListener interface ---
public void connectionOpened(UdpChannel cnx) {
}
public void connectionClosed(UdpChannel c) {
tracer.warn("UdpConnection closed" + c);
}
public void connectionFailed(UdpChannel cnx, Throwable err) {
tracer.warn("UdpConnection failed on addr" + cnx.getLocalAddress(), err);
}
// Handle an incoming message.
public void messageReceived(UdpChannel cnx, ByteBuffer msg, InetSocketAddress from) {
StringBuffer sb = new StringBuffer();
while (msg.hasRemaining()) {
sb.append((char) msg.get());
}
tracer.warn("Received message from " + from + ": " + sb.toString());
}
// Invoked when an IO exception occurs.
public void exceptionCaught(UdpChannel cnx, Throwable cause) {
tracer.warn("Got exception", cause);
}
// Called if we are using timers. (see Channel.setSoTimeout()).
public void receiveTimeout(UdpChannel cnx) {
tracer.warn("Messaage timeout");
}
// When invoked, this method tells that the socket is blocked on writes.
// Actually, this method may be usefull for flow control: for example,
// You can stop reading a socket by calling Channel.disableReading()
// method. Re-enabling read operations may be done by calling
// Channel.enableReading().
public void writeBlocked(UdpChannel cnx) {
tracer.debug("Write blocked");
}
// When invoked, this method tells that all pending data has been sent out.
// Actually, this method may be usefull for flow control: for example,
// You can stop reading a socket by calling Channel.disableReading()
// method. Re-enabling read operations may be done by calling
// Channel.enableReading().
public void writeUnblocked(UdpChannel cnx) {
tracer.debug("Write unblocked");
}
}
| 48,192
|
https://github.com/isavlex/barber/blob/master/markup/static/scss/mixins.scss
|
Github Open Source
|
Open Source
|
MIT
| null |
barber
|
isavlex
|
SCSS
|
Code
| 213
| 559
|
// Mixins.
@mixin nl {
margin: 0;
padding: 0;
text-indent: 0;
list-style: none;
list-style-position: outside;
}
@mixin cf {
&:before,
&:after {
display: table;
content: "";
}
&:after {
clear: both;
}
.lt-ie8 & {
zoom: 1;
}
}
@mixin blocks-justify {
text-align: justify;
text-justify: newspaper;
}
@mixin all-except-last ($property, $value) {
& > * {
&:not(:last-child) {
$property: $value;
}
}
}
@function rem($size) {
@return ($size / 16) * 1rem;
}
//desktop first method
@mixin breakpoint-dfirst ($point) {
@if $point == desktop {
@media (max-width: 1200px) { @content; }
} @else if $point == lg-tablet {
@media (max-width: 992px) { @content; }
} @else if $point == tablet {
@media (max-width: 768px) { @content; }
} @else if $point == phone {
@media (max-width: 576px) { @content; }
} @else if $point {
@media (max-width: $point) { @content; }
}
}
//mobile first method
@mixin breakpoint-mfirst ($point) {
@if $point == desktop {
@media (min-width: 1200px) { @content; }
} @else if $point == lg-tablet {
@media (min-width: 992px) { @content; }
} @else if $point == tablet {
@media (min-width: 768px) { @content; }
} @else if $point == phone {
@media (min-width: 576px) { @content; }
} @else if $point {
@media (min-width: $point) { @content; }
}
}
| 29,517
|
https://github.com/raphaeltertuliano/Python/blob/master/Ex101.py
|
Github Open Source
|
Open Source
|
MIT
| 2,021
|
Python
|
raphaeltertuliano
|
Python
|
Code
| 103
| 236
|
#Crie um programa que tenha uma função chamada voto()
#que vai receber como parãmetro o ano de nascimento de uma pessoa,
#indicando o valor literal indicando se a pessoa tem voto NEGADO,
#OPCIONAL ou OBRIGATÓRIO nas eleições.
def voto(ano):
from datetime import date
#importado dentro da função para economizar o máximo de memória possivel para quem vai usar
anoatual = date.today().year
idade = anoatual - ano
if idade < 16:
return f"{idade} anos. Voto NEGADO"
elif idade >= 18 and idade < 60:
return f"{idade} anos. Voto OBRIGATÓRIO"
else:
return f"{idade} anos. Voto OPCIONAL"
nasc = int(input('Em que ano você nasceu?: '))
print(voto(nasc))
| 2,583
|
https://github.com/zkan/dagster/blob/master/js_modules/dagit/packages/core/src/instigation/types/SelectedTickQuery.ts
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,022
|
dagster
|
zkan
|
TypeScript
|
Code
| 131
| 539
|
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { InstigationSelector, InstigationTickStatus } from "./../../types/globalTypes";
// ====================================================
// GraphQL query operation: SelectedTickQuery
// ====================================================
export interface SelectedTickQuery_instigationStateOrError_InstigationStateNotFoundError {
__typename: "InstigationStateNotFoundError" | "PythonError";
}
export interface SelectedTickQuery_instigationStateOrError_InstigationState_tick_error_causes {
__typename: "PythonError";
message: string;
stack: string[];
}
export interface SelectedTickQuery_instigationStateOrError_InstigationState_tick_error {
__typename: "PythonError";
message: string;
stack: string[];
causes: SelectedTickQuery_instigationStateOrError_InstigationState_tick_error_causes[];
}
export interface SelectedTickQuery_instigationStateOrError_InstigationState_tick {
__typename: "InstigationTick";
id: string;
status: InstigationTickStatus;
timestamp: number;
skipReason: string | null;
runIds: string[];
originRunIds: string[];
error: SelectedTickQuery_instigationStateOrError_InstigationState_tick_error | null;
runKeys: string[];
}
export interface SelectedTickQuery_instigationStateOrError_InstigationState {
__typename: "InstigationState";
id: string;
tick: SelectedTickQuery_instigationStateOrError_InstigationState_tick | null;
}
export type SelectedTickQuery_instigationStateOrError = SelectedTickQuery_instigationStateOrError_InstigationStateNotFoundError | SelectedTickQuery_instigationStateOrError_InstigationState;
export interface SelectedTickQuery {
instigationStateOrError: SelectedTickQuery_instigationStateOrError;
}
export interface SelectedTickQueryVariables {
instigationSelector: InstigationSelector;
timestamp: number;
}
| 10,635
|
https://github.com/beerfactory/hbmqtt/blob/master/setup.py
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
hbmqtt
|
beerfactory
|
Python
|
Code
| 164
| 708
|
# Copyright (c) 2015 Nicolas JOUANIN
#
# See the file license.txt for copying permission.
from setuptools import setup, find_packages
from hbmqtt.version import get_version
setup(
name="hbmqtt",
version=get_version(),
description="MQTT client/broker using Python 3.4 asyncio library",
author="Nicolas Jouanin",
author_email='nico@beerfactory.org',
url="https://github.com/beerfactory/hbmqtt",
license='MIT',
packages=find_packages(exclude=['tests']),
include_package_data=True,
platforms='all',
install_requires=[
'transitions',
'websockets',
'passlib',
'docopt',
'pyyaml'
],
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: POSIX',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Communications',
'Topic :: Internet'
],
entry_points={
'hbmqtt.test.plugins': [
'test_plugin = tests.plugins.test_manager:TestPlugin',
'event_plugin = tests.plugins.test_manager:EventTestPlugin',
'packet_logger_plugin = hbmqtt.plugins.logging:PacketLoggerPlugin',
],
'hbmqtt.broker.plugins': [
# 'event_logger_plugin = hbmqtt.plugins.logging:EventLoggerPlugin',
'packet_logger_plugin = hbmqtt.plugins.logging:PacketLoggerPlugin',
'auth_anonymous = hbmqtt.plugins.authentication:AnonymousAuthPlugin',
'auth_file = hbmqtt.plugins.authentication:FileAuthPlugin',
'topic_taboo = hbmqtt.plugins.topic_checking:TopicTabooPlugin',
'topic_acl = hbmqtt.plugins.topic_checking:TopicAccessControlListPlugin',
'broker_sys = hbmqtt.plugins.sys.broker:BrokerSysPlugin',
],
'hbmqtt.client.plugins': [
'packet_logger_plugin = hbmqtt.plugins.logging:PacketLoggerPlugin',
],
'console_scripts': [
'hbmqtt = scripts.broker_script:main',
'hbmqtt_pub = scripts.pub_script:main',
'hbmqtt_sub = scripts.sub_script:main',
]
}
)
| 32,144
|
https://github.com/Li-Xiang/EventCentral2/blob/master/src/main/java/org/littlestar/event_central2/tester/SyslogTester.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
EventCentral2
|
Li-Xiang
|
Java
|
Code
| 213
| 641
|
/*
* Copyright 2019 Li Xiang
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.littlestar.event_central2.tester;
import org.productivity.java.syslog4j.Syslog;
import org.productivity.java.syslog4j.SyslogIF;
import org.productivity.java.syslog4j.impl.net.tcp.TCPNetSyslogConfig;
import org.productivity.java.syslog4j.impl.net.tcp.TCPNetSyslogConfigIF;
import org.productivity.java.syslog4j.impl.net.udp.UDPNetSyslogConfig;
public class SyslogTester {
public final static int PORT = 514;
public final static int SPORT = 6514;
public final static String SYSLOG_INSTANCE_PREFIX = "syslog-instance-";
public static void send(String protocol, String tAddr, int port, int logLevel, String message) {
SyslogIF syslog;
String instanceName = SYSLOG_INSTANCE_PREFIX + protocol + Thread.currentThread().getId();
if (protocol.toLowerCase().equals("udp")) {
UDPNetSyslogConfig config = new UDPNetSyslogConfig();
config.setHost(tAddr);
config.setPort(port);
config.setThreaded(false);
syslog = Syslog.createInstance(instanceName, config);
} else {
TCPNetSyslogConfigIF config = new TCPNetSyslogConfig();
config.setHost(tAddr);
config.setPort(port);
config.setThreaded(false);
syslog = Syslog.createInstance(instanceName, config);
}
syslog.log(logLevel, message);
syslog.flush();
Syslog.destroyInstance(instanceName);
}
public static void send(String protocol, String tAddr, int logLevel, String message) {
send(protocol, tAddr, PORT, logLevel, message);
}
}
| 26,224
|
https://github.com/delaneyj/three.net/blob/master/code/c#/three.net/Three.Net/Lights/AmbientLight.cs
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
three.net
|
delaneyj
|
C#
|
Code
| 30
| 91
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Three.Net.Math;
namespace Three.Net.Lights
{
public class AmbientLight : Light
{
public AmbientLight(Color color) : base(color)
{
}
}
}
| 29,380
|
https://github.com/neTpyceB/TMCms-core/blob/master/src/DB/SQL.php
|
Github Open Source
|
Open Source
|
MIT
| 2,016
|
TMCms-core
|
neTpyceB
|
PHP
|
Code
| 4,361
| 11,309
|
<?php
declare(strict_types=1);
namespace TMCms\DB;
use Exception;
use InvalidArgumentException;
use Iterator;
use TMCms\Cache\Cacher;
use TMCms\Config\Configuration;
use TMCms\Config\Constants;
use TMCms\Config\Settings;
use TMCms\Log\Errors;
use TMCms\Log\Stats;
use TMCms\Orm\TableStructure;
use TMCms\Strings\Converter;
use PDO;
use PDOStatement;
\defined('INC') or exit;
/**
* Class SQL
*/
class SQL extends SqlDao
{
/**
* @param string $tbl
* @param bool $use_cache
* @return bool
*/
public function tableExists($tbl, $use_cache = true): bool
{
return \in_array($tbl, $this->getTables(NULL, $use_cache), true);
}
/**
* Show tables in database
*
* @param string $db - database name
* @param bool $use_cache
* @return array - list of non-temporary tables, by pairs key/value
*/
public function getTables($db = NULL, $use_cache = true): array
{
if (!$db) {
$db = Configuration::getInstance()->get('db')['name'];
if (!$db) {
return [];
}
}
if (Settings::isCacheEnabled()) {
$cache_key = 'db_table_list_all';
$cacher = Cacher::getInstance()->getDefaultCacher();
if (!isset(self::$_table_list[$db])) {
self::$_table_list[$db] = $cacher->get($cache_key);
}
}
if (!isset(self::$_table_list[$db]) || !$use_cache) {
self::$_table_list[$db] = $this->q_pairs('SHOW TABLES FROM `' . $db . '`');
}
if (Settings::isCacheEnabled()) {
$cacher->set($cache_key, self::$_table_list[$db], 86400);
}
return self::$_table_list[$db];
}
/**
* Return array with paired data, e.g. [1 => 'a', 2 => 'b', 14 => 'n']
*
* @param string $q
*
* @return array
*/
public function q_pairs($q): array
{
$res = [];
$qh = $this->sql_query($q);
while ($q = $qh->fetch(PDO::FETCH_NUM)) {
if (isset($q[1])) {
$res[$q[0]] = $q[1];
} else {
$res[] = $q[0];
}
}
return $res;
}
/**
* Common DB query
* @param string $q
* @param bool $return_inserted_id
*
* @return PDOStatement | int
*/
public function sql_query($q, $return_inserted_id = false)
{
if (!$this->pdo_db) {
$this->connect();
}
$q = trim($q);
// Set query start time if debug is enabled or if we analyze queries
if (Settings::get('debug_panel') || Settings::get('analyze_db_queries')) {
$ts = microtime(true);
}
/** @var PDOStatement $pdo_query */
$pdo_query = $this->pdo_db->query($q);
if (!$pdo_query) {
$err = $this->pdo_db->errorInfo()[2];
trigger_error($err . '<br><br>Query:<br><br>' . $q);
}
if (isset($ts)) {
// Start time exists - so we save query to analyze
$tt = microtime(true) - $ts;
if (Settings::get('debug_panel')) {
Stats::addQuery([
'query' => $q,
'backtrace' => debug_backtrace(),
'time' => $tt
]);
}
if (Settings::get('analyze_db_queries')) {
QueryAnalyzer::getInstance()
->addQuery($q, $tt);
}
}
return $return_inserted_id ? $this->pdo_db->lastInsertId() : $pdo_query;
}
/**
* @param string $user
* @param string $pass
* @param string $host
* @param string $db
* @param bool $local
* @return PDO
*/
public function connect($user = NULL, $pass = NULL, $host = NULL, $db = NULL, $local = true): PDO
{
$conn_data = Configuration::getInstance()->get('db');
if (!$user) {
$user = $conn_data['login'];
}
if (!$pass) {
$pass = $conn_data['password'];
}
if (!$db) {
$db = $conn_data['name'];
}
if (!$host && isset($conn_data['host'])) {
$host = $conn_data['host'];
if (!$host) {
$host = CFG_DB_SERVER;
}
}
// Connect as usual
$delay = Constants::DB_CONNECT_DELAY;
$i = 0;
$connected = false;
while ($i < Constants::DB_CONNECT_MAX_ATTEMPTS && !$connected) {
try {
$this->pdo_db = new PDO('mysql:dbname=' . $db . ';charset=utf8mb4;host=' . $host, $user, $pass, [
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES "utf8"',
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_PERSISTENT => false,
]);
$connected = true;
} catch (Exception $e) {
usleep($delay);
$delay *= 2;
}
$i++;
}
// Open socket connection to verify that the server is down
if (!$connected && $local) {
$dbh = explode(':', CFG_DB_SERVER);
if (isset($dbh[1]) && ctype_digit($dbh[1])) {
$host = $dbh[0];
$port = (int)$dbh[1];
} else {
$host = CFG_DB_SERVER;
$port = 3306;
}
$fs = @fsockopen($host, $port, $number, $message, 1);
// If server down
if ($fs === false) {
Errors::sendErrorToDevelopers(CFG_DOMAIN . ' DB Server is down or overloaded', 'It seems that DB Server is down or overloaded and does not respond to attempts to establish the connection.');
exit('Could not connect to database server.<br><br>Administrator is notified.');
}
// If server is ok, but connection refused
fclose($fs);
Errors::sendErrorToDevelopers(CFG_DOMAIN . ' DB Server is not accessible', 'It seems that login or password is supplied incorrectly in configuration file "config.php"');
exit('Could not login to database server.<br><br>Administrator is notified.');
}
return $this->pdo_db;
}
/**
* Check for abuse parameters in query
* @param string $q - query
*/
public function sqlQueryCheck($q)
{
if (\stripos($q, 'union') !== false) {
dump('UNION usage is limited.');
}
if (\stripos($q, ' like \'%\'') !== false) {
dump('LIKE \'%\' usage is limited.');
}
if (\strpos($q, '/*') !== false || \strpos($q, '--') !== false) {
dump('Comments like \* or -- usage is limited. Query: ' . $q);
}
}
/**
* Show functions in database
*
* @param string $db - database name
* @return array - list of non-temporary tables, by pairs key/value
*/
public function getFunctions($db = NULL): array
{
if (!$db) {
$db = Configuration::getInstance()->get('db')['name'];
}
$res = [];
foreach (q_assoc_iterator('SHOW FUNCTION STATUS WHERE `Db` = "' . $db . '"') as $v) {
$res[] = $v['Name'];
}
return $res;
}
/**
* Check entry exists in DB
*
* @param string $table
* @param string $where
*
* @return bool
*/
public static function q_check(string $table, string $where = ''): bool
{
return (bool)self::getInstance()->sql_query('SELECT NULL FROM `' . $table . '`' . ($where ? ' WHERE ' . $where : '') . ' LIMIT 1')->rowCount();
}
/**
* Return one dimensional array with one column, for example IDs list
*
* @param $q
* @param int $column
*
* @return array
*/
public static function q_column($q, $column = 0): array
{
$qh = self::getInstance()->sql_query($q);
return $qh->fetchAll(PDO::FETCH_COLUMN, $column);
}
/**
* Get create sql for function
*
* @param string $tbl - table name
* @return string with full query
*/
public static function getCreateFunction($tbl): string
{
$sql = self::getInstance()->sql_query("SHOW CREATE FUNCTION `$tbl`");
$q = $sql->fetch(PDO::FETCH_ASSOC);
return strtr($q['Create Function'], ["\r" => '', "\n" => '', "\t" => '']);
}
/**
* Show all columns in table
*
* @param string $tbl - table name
* @return array - list
*/
public static function getFields($tbl): array
{
if (Settings::isCacheEnabled()) {
$cache_key = 'db_table_columns_' . $tbl;
$cacher = Cacher::getInstance()->getDefaultCacher();
if (!isset(self::$_cached_tbl_columns[$tbl])) {
self::$_cached_tbl_columns[$tbl] = $cacher->get($cache_key);
}
}
if (isset(self::$_cached_tbl_columns[$tbl])) {
return self::$_cached_tbl_columns[$tbl];
}
$res = [];
$sql = self::getInstance()->sql_query("SHOW COLUMNS FROM `$tbl`");
while ($q = $sql->fetch(PDO::FETCH_NUM)) {
$res[] = $q[0];
}
if (Settings::isCacheEnabled()) {
$cacher->set($cache_key, $res, 86400);
}
return self::$_cached_tbl_columns[$tbl] = $res;
}
/**
* Show all columns in table with all data like type
*
* @param string $tbl - table name
* @return array - list
*/
public static function getFieldsWithAllData($tbl): array
{
if (isset(self::$_cached_tbl_fields[$tbl])) {
return self::$_cached_tbl_fields[$tbl];
}
return self::$_cached_tbl_fields = self::q_assoc_id("SHOW FIELDS FROM `$tbl`");
}
/**
* @param string $q query
*
* @return array
*/
public static function q_assoc_id($q): array
{
$res = [];
$qh = is_string($q) ? self::getInstance()->sql_query($q) : $q;
while ($q = $qh->fetch(PDO::FETCH_ASSOC)) {
$res[\current($q)] = $q;
}
return $res;
}
/**
* Get all rows with data from table
*
* @param string $tbl - table name
* @param string $where - for where clause
* @return array fetched data
*/
public static function getRows($tbl, $where = ''): array
{
$res = [];
$sql = self::getInstance()->sql_query('SELECT * FROM `' . self::sql_prepare($tbl) . '`' . ($where ? ' WHERE ' . $where : ''));
while ($q = $sql->fetch(PDO::FETCH_ASSOC)) {
$res[] = $q;
}
return $res;
}
/**
* retrieve value from associative array
*
* @param mixed $str
* @param bool $used_in_like
*
* @return string
*/
public static function sql_prepare($str, $used_in_like = false)
{
if (!self::getInstance()->pdo_db) {
self::getInstance()->connect();
}
if (is_array($str)) {
foreach ($str as &$v) {
$v = self::sql_prepare($v);
}
} else {
$str = substr(self::getInstance()->pdo_db->quote(trim((string)$str)), 1, -1);
if ($used_in_like) {
$str = str_replace(['_', '%'], ['\_', '\%'], $str);
}
}
return $str;
}
/**
* Insert a lot of values at once using multiple queries to prevent memory overflow
*
* @param string $tbl - table name
* @param array $rows - rows to be inserted
* @param array $fields - fields keys and values, name and content
* @param string $implode
* @param int $query_max_len
*
* @return array
* @throws InvalidArgumentException
*/
public static function makeInserts($tbl, $rows, array $fields = [], $implode = ";\n", $query_max_len = 524288): array
{
if ($query_max_len > 1048575) {
throw new InvalidArgumentException('Each query should be shorter than 1MB.');
}
if ($fields) {
foreach ($fields as & $v) {
$v = '`' . $v . '`';
}
unset($v);
$fields = ' (' . implode(', ', $fields) . ')';
} else {
$fields = '';
}
$tmp = $res = [];
$tmp_len = 0;
foreach ($rows as $line) {
foreach ($line as & $v) {
$v = "'" . self::sql_prepare($v) . "'";
}
unset($v);
$q = '(' . implode(', ', $line) . ')';
$tmp[] = $q;
$tmp_len += \strlen($q);
// Make all inserts in multiple queries
if ($tmp_len >= $query_max_len) {
$res[] = 'INSERT INTO `' . $tbl . '`' . $fields . ' VALUES ' . implode(', ', $tmp);
$tmp = [];
$tmp_len = 0;
}
}
if ($tmp) {
$res[] = 'INSERT INTO `' . $tbl . '`' . $fields . ' VALUES ' . implode(', ', $tmp);
}
return $implode ? implode($implode, $res) : $res;
}
/**
* @param string $tbl
* @return mixed
*/
public static function getTableInfo($tbl)
{
return self::q_assoc_row('SHOW TABLE STATUS LIKE "' . $tbl . '"');
}
/**
* @param string $q
* @return array
*/
public static function q_assoc_row($q)
{
$qh = \is_string($q) ? self::getInstance()->sql_query($q) : $q;
return $qh->fetch(PDO::FETCH_ASSOC);
}
/**
* Create new empty table with same name and save old with content with unique name
* Useful saving logs and achieving
*
* @param string $tbl
* @return string
*/
public static function swapTable($tbl): string
{
$tmp_tbl = $tbl . '_' . NOW;
$new_tbl = $tmp_tbl . '_new';
self::getInstance()->sql_query(str_replace('`' . $tbl . '`', '`' . $new_tbl . '`', self::getCreateTable($tbl)));
self::getInstance()->sql_query('RENAME TABLE `' . $tbl . '` TO `' . $tmp_tbl . '`, `' . $new_tbl . '` TO `' . $tbl . '`');
return $tmp_tbl;
}
/**
* Get create table or create view statement
*
* @param string $tbl - table name
* @return string with full query
*/
public static function getCreateTable($tbl): string
{
if (isset(self::$cached_create_table_statements[$tbl])) {
return self::$cached_create_table_statements[$tbl];
}
$sql = self::getInstance()->sql_query("SHOW CREATE TABLE `$tbl`");
$q = $sql->fetch(PDO::FETCH_ASSOC);
$str = '';
if (isset($q['Create Table'])) {
$str = strtr($q['Create Table'], ["\r" => '', "\n" => '', "\t" => '']);
} elseif (isset($q['Create View'])) {
$str = strtr($q['Create View'], ["\r" => '', "\n" => '', "\t" => '']);
}
return self::$cached_create_table_statements[$tbl] = $str;
}
/**
* Check if query uses all possible db table indexes
*
* @param string $sql
* @return bool
*/
public static function usesAllIndexes($sql): bool
{
$qh = self::getInstance()->sql_query('EXPLAIN ' . $sql);
if (!$qh->rowCount()) {
return false;
}
while ($q = $qh->fetch(PDO::FETCH_ASSOC)) {
if (!$q['key']) {
return false;
}
}
return true;
}
/**
* @param string $tbl
* @param string $comment
*/
public static function setTableComment($tbl, $comment = '')
{
self::getInstance()->sql_query('ALTER TABLE `' . $tbl . '` COMMENT = "' . self::sql_prepare($comment) . '"');
}
/**
* This function saves all table data when using table with form inputs
*
* @param string $table
* @param array $data
* @return array
*/
public static function storeEditableCmsTable($table, array $data): array
{
$res = ['add' => 0, 'update' => 0, 'delete' => 0];
// Field to be updated
if (isset($data['update']) && \is_array($data['update'])) {
foreach ($data['update'] as $id => $v) {
$res['update'] += self::update($table, $v, $id);
}
}
// Delete fields
if (isset($data['delete']) && \is_array($data['delete'])) {
foreach ($data['delete'] as $v) {
$res['delete'] += self::getInstance()->delete($table, $v);
}
}
// Same as deleted
if (isset($data['remove']) && \is_array($data['remove'])) {
foreach ($data['remove'] as $v) {
$res['delete'] += self::getInstance()->delete($table, $v);
}
}
// Create new fields
if (isset($data['add']) && \is_array($data['add'])) {
foreach ($data['add'] as $v) {
$res['add'] += self::add($table, $v);
}
}
return $res;
}
/**
* @param string $tbl
* @param array $data
* @param int $id
* @param string $id_col
* @param bool $low_priority
* @return int updated rows
*/
public static function update($tbl, array $data, $id, $id_col = 'id', $low_priority = false): int
{
if (!$data || !$id) {
return 0;
}
foreach ($data as $k => &$v) {
$v = '`' . $k . '` = "' . self::sql_prepare((string)$v) . '"';
}
$id = (array)$id;
foreach ($id as &$v) {
$v = self::sql_prepare($v);
}
return self::getInstance()->sql_query('UPDATE' . ($low_priority ? ' LOW_PRIORITY' : '') . ' `' . $tbl . '` SET ' . implode(', ', $data) . ' WHERE `' . $id_col . '` IN ("' . implode('", "', $id) . '")')->rowCount();
}
/**
* @param string $tbl
* @param int|array $id
* @param string $id_col
* @param bool $look_for_translations auto-delete all linked Translations, when column is commented with "translation"
* @return int deleted count
*/
public function delete($tbl, $id = [], $id_col = 'id', $look_for_translations = true): int
{
$id = (array)$id;
if (!$id) {
return 0;
}
// Find translations in deleted rows
if ($look_for_translations) {
$translation_columns = [];
foreach (self::getColumnsComments($tbl) as $v) {
if (strtolower($v['COLUMN_COMMENT']) === strtolower(TableStructure::FIELD_TYPE_TRANSLATION)) {
$translation_columns[] = $v['COLUMN_NAME'];
}
}
// Get translation's IDs to be deleted
$translation_ids = [];
if ($translation_columns) {
foreach (self::q_assoc_iterator('SELECT `' . implode('`, `', $translation_columns) . '` FROM `' . $tbl . '` WHERE `' . $id_col . '` IN ("' . implode('", "', $id) . '")') as $v) {
foreach ($translation_columns as $c) {
$translation_ids[] = $v[$c];
}
}
}
// Founds ids - delete them
if ($translation_ids) {
$this->delete('cms_translations', $translation_ids);
}
}
// Delete values as usual
foreach ($id as &$v) {
$v = self::sql_prepare($v);
}
return self::getInstance()->sql_query('DELETE FROM `' . $tbl . '` WHERE `' . $id_col . '` IN ("' . implode('", "', $id) . '")')->rowCount();
}
/**
* @param $table
* @param string $column
*
* @return array
*/
public static function getColumnsComments($table, $column = ''): array
{
return self::q_assoc('SELECT
COLUMN_COMMENT, COLUMN_NAME
FROM
INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = "' . Configuration::getInstance()->get('db')['name'] . '"
AND TABLE_NAME = "' . self::sql_prepare($table) . '"
' . ($column ? 'AND COLUMN_NAME = "' . self::sql_prepare($column) . '"' : '') . ''
);
}
/**
* Return pointer to iterate array, same as in q_assoc
* This function consumes much less memory that q_assoc, because uses yield iterator
* @param string $q
*
* @return Iterator
*/
public static function q_assoc_iterator($q)
{
$qh = self::getInstance()->sql_query($q);
while ($record = $qh->fetch(PDO::FETCH_ASSOC)) {
yield $record;
}
}
/**
* @param string $tbl
* @param array $data
* @param bool $return_id
* @param bool $update_on_duplicate
* @param bool $low_priority
* @param bool $delayed
*
* @return int inserts count
*/
public static function add($tbl, array $data, $return_id = false, $update_on_duplicate = false, $low_priority = false, $delayed = false): int
{
if (!$data) {
return 0;
}
foreach ($data as $k => &$v) {
$v = '`' . $k . '` = "' . self::sql_prepare((string)$v) . '"';
}
$sql = 'INSERT' . ($low_priority ? ' LOW_PRIORITY' : '') . ($delayed ? ' DELAYED' : '') . ' INTO `' . $tbl . '` SET ' . implode(', ', $data);
if ($update_on_duplicate) {
$sql .= ' ON DUPLICATE KEY UPDATE ' . implode(', ', $data);
}
if ($return_id) {
return (int)self::getInstance()->sql_query($sql, true);
}
return self::getInstance()->sql_query($sql)->rowCount();
}
/**
* @param string $table
* @return array
*/
public static function getTableColumns($table): array
{
return self::q_assoc('SHOW COLUMNS FROM `' . self::sql_prepare($table) . '`');
}
/**
* Return assoc array of all entries, e.g. [['id' => 10, 'name' => 'John'], ['id' => 22, 'name' => 'Doe'], ...]
* @param string $q
*
* @return array
*/
public static function q_assoc($q): array
{
$res = [];
$qh = self::getInstance()->sql_query($q);
/** @noinspection PhpAssignmentInConditionInspection */
/** @noinspection PhpStatementHasEmptyBodyInspection */
while ($res[] = $qh->fetch(PDO::FETCH_ASSOC)) {
// Do nothing
}
\array_pop($res);
return $res;
}
/**
* @return string
*/
public static function selectFoundRows(): string
{
return self::getInstance()->pdo_db->query('SELECT FOUND_ROWS()')->fetchColumn();
}
/**
* Change active status (enable / disable)
*
* @param int $id - row id
* @param string $tbl - table name
* @param string $idFld - id field name ('id' by default)
* @param string $activeFld - activation status field name ('active' by default)
* @return bool current status
*/
public static function active($id, $tbl, $idFld = 'id', $activeFld = 'active'): bool
{
self::getInstance()->sql_query('UPDATE `' . $tbl . '` SET `' . $activeFld . '` = IF(`' . $activeFld . '`=1, 0, 1) WHERE `' . $idFld . '` = "' . $id . '"');
return (bool)self::q_value('SELECT `' . $activeFld . '` FROM `' . $tbl . '` WHERE `' . $idFld . '` = "' . $id . '"');
}
/**
* @param string $q
* @return mixed
*/
public static function q_value($q)
{
$qh = \is_string($q) ? self::getInstance()->sql_query($q) : $q;
return $qh->fetchColumn();
}
/**
* get next item by order. If $catFld and $catValue are set - get next item by order in selected category
*
* @param string $table - table name
* @param string $field - order field name ('order' by default)
* @param string $category_field_name - category field name ('' by default)
* @param int $category_id - category id ('' by default)
*
* @return int order value
*/
public static function getNextOrder($table, $field = 'order', $category_field_name = '', $category_id = 0): int
{
return (int)self::q_value('SELECT `' . $field . '` FROM `' . $table . '`' . ($category_field_name ? ' WHERE `' . $category_field_name . '` = "' . self::sql_prepare((string)$category_id) . '"' : '') . ' ORDER BY `' . $field . '` DESC LIMIT 1') + 1;
}
/**
* Change list order by moving selected item up (default $direction value) or down (any other $direction value)
*
* @param int $id1 - row id that should be moved
* @param string $tbl - table name
* @param string $direction - direction ('up' by default or any other)
* @param string $idFld - id field name ('id' by default)
* @param string $orderFld - order field name ('order' by default)
* @return bool true
*/
public static function order($id1, $tbl, $direction = 'up', $idFld = 'id', $orderFld = 'order'): bool
{
$data = [];
$ord1 = '';
$sql = self::getInstance()->sql_query('SELECT `' . $orderFld . '` AS `order`, ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . ' AS `id` FROM `' . $tbl . '` ORDER BY `' . $orderFld . '`');
while ($q = $sql->fetch(PDO::FETCH_ASSOC)) {
if ($q['id'] == $id1) { // For "Direct Exchange"
$ord1 = $q['order'];
}
$data[$q['id']] = $q['order']; // For "Exchange"
}
$SO = \count($data);
if ($ord1 === '') {
return false;
}
$res = 0;
for ($i = 0; $i < $SO; ++$i) {
$res += $i;
}
if ($res === array_sum($data)) { // Direct Exchange
$sql2 = self::q_assoc_row('SELECT ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . ' AS `id`, `' . $orderFld . '` AS `order` FROM `' . $tbl . '` WHERE `' . $orderFld . '`' . ($direction === 'up' ? '<' : '>') . $ord1 . ' ORDER BY `'. $orderFld .'`' . ($direction === 'up' ? ' DESC' : '') . ' LIMIT 1');
if (!$sql2) {
return false;
}
list($id2, $ord2) = [$sql2['id'], $sql2['order']];
self::getInstance()->sql_query('UPDATE `' . $tbl . '` SET `' . $orderFld . '` = ' . $ord2 . ' WHERE ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . '="' . $id1 . '" LIMIT 1');
self::getInstance()->sql_query('UPDATE `' . $tbl . '` SET `' . $orderFld . '` = ' . $ord1 . ' WHERE ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . '="' . $id2 . '" LIMIT 1');
} else { // Exchange and then "Direct Exchange"
$i = 0;
foreach ($data as $k => $v) {
self::getInstance()->sql_query('UPDATE `' . $tbl . '` SET `' . $orderFld . '` = "' . $i . '" WHERE `' . $idFld . '` = "' . $k . '" LIMIT 1');
++$i;
}
self::order($id1, $tbl, $direction, $idFld, $orderFld);
}
return true;
}
/**
* @param int $id
* @param string $table
* @param string $direction
* @param int $step
* @param string $id_field
* @param string $order_field
*/
public static function orderMoveByStep($id, $table, $direction = 'up', $step = 1, $id_field = 'id', $order_field = 'order')
{
$sql = self::getInstance()->sql_query('SELECT `' . $order_field . '` AS `order`, ' . (\strpos($id_field, '`') === false ? '`' . $id_field . '`' : $id_field) . ' AS `id` FROM `' . $table . '` ORDER BY `' . $order_field . '`');
$data = [];
while ($fetch = $sql->fetch(PDO::FETCH_ASSOC)) {
$data[$fetch['id']] = $fetch['order'];
}
$old_order = $data[$id];
$new_order = $direction === 'down' ? $old_order + $step : $old_order - $step;
foreach ($data as $id_key => $order_value) {
if ($direction === 'down' && $order_value <= $new_order && $order_value >= $old_order) {
self::getInstance()->sql_query('UPDATE `' . $table . '` SET `' . $order_field . '` = "' . ($order_value - 1) . '" WHERE `' . $id_field . '` = "' . $id_key . '" LIMIT 1');
} elseif ($direction === 'up' && $order_value >= $new_order && $order_value <= $old_order) {
self::getInstance()->sql_query('UPDATE `' . $table . '` SET `' . $order_field . '` = "' . ($order_value + 1) . '" WHERE `' . $id_field . '` = "' . $id_key . '" LIMIT 1');
}
}
self::getInstance()->sql_query('UPDATE `' . $table . '` SET `' . $order_field . '` = "' . $new_order . '" WHERE `' . $id_field . '` = "' . $id . '" LIMIT 1');
}
/**
* Change list order in selected category $catID by moving selected item up (default $direction value) or down (any other $direction value)
*
* @param int $id1 - row id that should be moved
* @param string $tbl - table name
* @param int | array $catID - category id
* @param string | array $catFld
* @param string $direction - direction ('up' by default or any other)
* @param string $idFld - id field name ('id' by default)
* @param string $orderFld - order field name ('order' by default)
* @return bool true
*/
public static function orderCat($id1, $tbl, $catID, $catFld, $direction = 'up', $idFld = 'id', $orderFld = 'order', $start_with = 0): bool
{
$data = [];
$ord1 = '';
$cat_cond = [];
if(\is_array($catID)){
foreach($catID as $idx => $c_id){
$cat_cond[] = '`' . $catFld[$idx] . '` = "' . $c_id . '"';
}
}else{
$cat_cond[] = '`' . $catFld . '` = "' . $catID . '"';
}
$cat_cond = implode(' AND ', $cat_cond);
$sql = self::getInstance()->sql_query('SELECT `' . $orderFld . '` AS `order`, ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . ' AS `id` FROM `' . $tbl . '` WHERE ' . $cat_cond . ' ORDER BY `' . $orderFld . '`');
while ($q = $sql->fetch(PDO::FETCH_ASSOC)) {
if ($q['id'] == $id1) {
$ord1 = $q['order'];
} // For "Direct Exchange"
$data[$q['id']] = $q['order']; // For "Exchange"
}
$SO = \count($data);
if ($ord1 === '') {
return false;
}
$res = 0;
for ($i = 0; $i < $SO; ++$i) {
$res += $i;
}
if ($res === array_sum($data)) { // Direct Exchange
$sql2 = q('SELECT ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . ', `' . $orderFld . '` FROM `' . $tbl . '` WHERE `' . $orderFld . '`' . ($direction === 'up' ? '<' : '>') . $ord1 . ' AND ' . $cat_cond . ' ORDER BY `'. $orderFld .'`' . ($direction === 'up' ? ' DESC' : null) . ' LIMIT 1');
if (!$sql2->columnCount()) {
return false;
}
list($id2, $ord2) = $sql2->fetch();
if (!$id2) {
$id2 = 0;
}
if (!$ord2) {
$ord2 = $start_with;
}
self::getInstance()->sql_query('UPDATE `' . $tbl . '` SET `' . $orderFld . '` = ' . $ord2 . ' WHERE ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . '="' . $id1 . '" AND ' . $cat_cond . ' LIMIT 1');
self::getInstance()->sql_query('UPDATE `' . $tbl . '` SET `' . $orderFld . '` = ' . $ord1 . ' WHERE ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . '="' . $id2 . '" AND ' . $cat_cond . ' LIMIT 1');
} else { // Exchange and then "Direct Exchange"
$i = $start_with;
foreach (array_keys($data) as $k) {
self::getInstance()->sql_query('UPDATE `' . $tbl . '` SET `' . $orderFld . '` = ' . $i . ' WHERE ' . (\strpos($idFld, '`') === false ? '`' . $idFld . '`' : $idFld) . '="' . $k . '" AND ' . $cat_cond . ' LIMIT 1');
++$i;
}
self::orderCat($id1, $tbl, $catID, $catFld, $direction, $idFld, $orderFld);
}
return true;
}
/**
* Begin DB Transaction
*/
public static function startTransaction()
{
if (!self::isTransactionActive()) {
self::getInstance()->pdo_db->beginTransaction();
}
}
/**
* Check whether now in transaction
*/
public static function isTransactionActive()
{
return self::getInstance()->pdo_db && self::getInstance()->pdo_db->inTransaction();
}
/**
* Accept,confirm and close DB Transaction
*/
public static function confirmTransaction()
{
if (self::isTransactionActive()) {
self::getInstance()->pdo_db->commit();
}
}
/**
* Cancel DB Transaction
*/
public static function cancelTransaction()
{
self::getInstance()->pdo_db->rollBack();
}
/**
* Get values available for column in table
* @param string $table
* @param string $column
* @return array
*/
public static function getEnumPairs($table, $column): array
{
$result = self::q_assoc_row('SHOW COLUMNS FROM `' . self::sql_prepare($table) . '` WHERE `field` = "' . self::sql_prepare($column) . '"');
$result = str_replace(["enum('", "')", "''"], ['', '', "'"], $result['Type']);
$result = explode("','", $result);
$res = [];
foreach ($result as $v) {
$res[$v] = Converter::charsToNormalTitle($v);
}
return $res;
}
/**
* @return array
*/
public static function getLastError(): array
{
return self::getInstance()->pdo_db->errorInfo();
}
/**
* Should be non-static because we can have more than one connection
* Stop current connection
*/
public function disconnect()
{
$this->pdo_db = NULL;
}
/**
* @return PDO | null
*/
public function getConnectionHandler()
{
return $this->pdo_db;
}
/**
* @return string
*/
public function getServerInfo(): string
{
if (!$this->pdo_db) {
$this->connect();
}
return $this->pdo_db->getAttribute(PDO::ATTR_SERVER_VERSION);
}
/**
* Create ID field for table - required for Entity management
*
* @param string $table
* @return bool
*/
public function addPrimaryAutoIncrementIdFieldToTable($table): bool
{
// Drop primary key - suspend error because we can have no primary index
@$this->sql_query('ALTER IGNORE TABLE `' . $table . '` DROP PRIMARY KEY');
// Create field and primary index
$this->sql_query('ALTER IGNORE TABLE `' . $table . '` ADD `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST');
return true;
}
}
| 401
|
https://github.com/CSCfi/research-fi-mydata/blob/master/aspnetcore/src/api/Models/Ttv/DimResearchDataCatalog.cs
|
Github Open Source
|
Open Source
|
MIT
| 2,023
|
research-fi-mydata
|
CSCfi
|
C#
|
Code
| 143
| 332
|
using System;
using System.Collections.Generic;
namespace api.Models.Ttv
{
public partial class DimResearchDataCatalog
{
public DimResearchDataCatalog()
{
DimPids = new HashSet<DimPid>();
DimResearchDatasets = new HashSet<DimResearchDataset>();
DimWebLinks = new HashSet<DimWebLink>();
FactContributions = new HashSet<FactContribution>();
}
public int Id { get; set; }
public string NameFi { get; set; }
public string NameSv { get; set; }
public string NameEn { get; set; }
public string DescriptionFi { get; set; }
public string DescriptionSv { get; set; }
public string DescriptionEn { get; set; }
public string SourceId { get; set; }
public string SourceDescription { get; set; }
public DateTime? Created { get; set; }
public DateTime? Modified { get; set; }
public virtual ICollection<DimPid> DimPids { get; set; }
public virtual ICollection<DimResearchDataset> DimResearchDatasets { get; set; }
public virtual ICollection<DimWebLink> DimWebLinks { get; set; }
public virtual ICollection<FactContribution> FactContributions { get; set; }
}
}
| 33,336
|
https://github.com/maniero/SOpt/blob/master/CSharp/String/SplitOnChar.cs
|
Github Open Source
|
Open Source
|
MIT
| 2,023
|
SOpt
|
maniero
|
C#
|
Code
| 31
| 115
|
using static System.Console;
public class Program {
public static void Main() {
var partes = "97A96D112A109X115T114H122D118Y128".Split("ABCDEFGHIJKLMNOPQRSTUVXWYZ".ToCharArray());
foreach (var item in partes) WriteLine(item); //só para confirmar que deu certo
}
}
//https://pt.stackoverflow.com/q/209214/101
| 50,580
|
https://github.com/surmacz/FrontendConsistencyBundle/blob/master/Services/Copy.php
|
Github Open Source
|
Open Source
|
MIT
| 2,014
|
FrontendConsistencyBundle
|
surmacz
|
PHP
|
Code
| 135
| 464
|
<?php
/*
* This file is part of Frontend Consistency Bundle
*
* (c) Wojciech Surmacz <wojciech.surmacz@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Surmacz\FrontendConsistencyBundle\Services;
use Symfony\Component\Finder\Finder;
use Symfony\Component\DependencyInjection\Container;
/**
* Screenshots copying service
* @author Wojciech Surmacz <wojciech.surmacz@gmail.com>
*/
class Copy extends Base
{
/**
* @var string
*/
private $globalPath;
/**
* @var string
*/
private $localPath;
/**
* (non-PHPdoc)
* @see \Surmacz\FrontendConsistencyBundle\Services\Base::process()
*/
public function process($globalPath, $localPath)
{
$this->globalPath = $globalPath;
$this->localPath = $localPath;
$this->clean($this->globalPath);
$this->copy();
}
/**
* Copy locals to globals
*/
private function copy()
{
$this->clean($this->globalPath);
foreach(
$this->cleanPrefix(
$this->getFiles($this->localPath),
$this->localPath
) as $file
) {
$this->filesystem->copy($this->localPath.$file, $this->globalPath.$file);
}
}
/**
* @param string $dir
*/
private function clean($dir)
{
$this->filesystem->remove($this->getFiles($dir));
}
}
| 19,951
|
https://github.com/sonypiay/webdevtest/blob/master/webdevtest/AssetsImageController.php
|
Github Open Source
|
Open Source
|
MIT
| null |
webdevtest
|
sonypiay
|
PHP
|
Code
| 49
| 143
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\AssetsImages;
class AssetsImageController extends Controller
{
public function index( Request $request)
{
return response()->view('welcome', [
'request' => $request
]);
}
public function assets( AssetsImages $assets )
{
$assets = new $assets;
$query = $assets->orderBy('id', 'desc')->get();
return response()->json([
'data' => $query
]);
}
}
| 29,726
|
https://github.com/dotsdl/QCEngine/blob/master/qcengine/programs/model.py
|
Github Open Source
|
Open Source
|
BSD-3-Clause
| null |
QCEngine
|
dotsdl
|
Python
|
Code
| 200
| 568
|
import abc
from typing import Any, Dict, List, Optional
from pydantic import BaseModel
class ProgramHarness(BaseModel, abc.ABC):
_defaults: Dict[str, Any] = {}
name: str
scratch: bool
thread_safe: bool
thread_parallel: bool
node_parallel: bool
managed_memory: bool
extras: Optional[Dict[str, Any]]
class Config:
allow_mutation: False
extra: "forbid"
def __init__(self, **kwargs):
super().__init__(**{**self._defaults, **kwargs})
@abc.abstractmethod
def compute(self, input_data: 'ResultInput', config: 'JobConfig') -> 'Result':
pass
@staticmethod
@abc.abstractmethod
def found(raise_error: bool = False) -> bool:
"""
Checks if the program can be found.
Parameters
----------
raise_error : bool, optional
If True, raises an error if the program cannot be found.
Returns
-------
bool
Returns True if the program was found, False otherwise.
"""
pass
## Utility
def get_version(self) -> str:
"""Finds program, extracts version, returns normalized version string.
Returns
-------
str
Return a valid, safe python version string.
"""
pass
## Computers
def build_input(self, input_model: 'ResultInput', config: 'JobConfig',
template: Optional[str] = None) -> Dict[str, Any]:
raise ValueError("build_input is not implemented for {}.", self.__class__)
def execute(self,
inputs: Dict[str, Any],
extra_outfiles: Optional[List[str]] = None,
extra_commands: Optional[List[str]] = None,
scratch_name: Optional[str] = None,
timeout: Optional[int] = None):
raise ValueError("execute is not implemented for {}.", self.__class__)
def parse_output(self, outfiles: Dict[str, str], input_model: 'ResultInput') -> 'Result':
raise ValueError("parse_output is not implemented for {}.", self.__class__)
| 12,769
|
https://github.com/vatsamail/django-profiles/blob/master/app/ui/views.py
|
Github Open Source
|
Open Source
|
MIT
| 2,019
|
django-profiles
|
vatsamail
|
Python
|
Code
| 222
| 771
|
from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.forms import UserChangeForm
from django.contrib.auth.forms import PasswordChangeForm
from ui.forms import (
RegistrationForm, ProfileEditForm
)
from django.contrib.auth.models import User
from django.contrib.auth import update_session_auth_hash
from django.contrib.auth.decorators import login_required
def index(request):
return HttpResponse("Hello, world. You're at the ui index.")
def home(request):
name = 'vatsa prahallada'
nums = ['English', 'Hindi', 'Kannada', 'Tamil', 'Telugu', 'Python', 'C++', 'Perl', 'Shell', 'HTML']
args = {'name': name, 'numbers': nums}
return render(request, 'ui/home.html', args)
def login(request):
pass
def register(request):
if request.method == 'POST':
#form = UserCreationForm(request.POST)
form = RegistrationForm(request.POST)
if form.is_valid():
form.save()
return redirect('/ui')
else: # get method
#form = UserCreationForm()
form = RegistrationForm()
args = {'form': form}
return render(request, 'ui/reg_form.html', args)
#@login_required
def profile(request, pk=None):
if pk:
user = User.objects.get(pk=pk)
else:
user = request.user
args = {'user': user}
print("User:", user.userprofile.nick_name)
return render(request, 'ui/profile.html', args)
#@login_required
def profile_edit(request):
if request.method == 'POST':
#form = UserChangeForm(request.POST, instance=request.user)
form = ProfileEditForm(request.POST, instance=request.user)
if form.is_valid():
form.save()
return redirect('/ui/profile')
else: # GET
#form = UserChangeForm(instance = request.user)
form = ProfileEditForm(instance = request.user)
args = {'form': form}
return render(request, 'ui/profile_edit.html', args)
#@login_required
def change_password(request):
if request.method == 'POST':
form = PasswordChangeForm(data=request.POST, user=request.user)
if form.is_valid():
form.save()
update_session_auth_hash(request, form.user)
return redirect('/ui/profile')
else:
return redirect('/ui/change_password')
else: # GET
#form = UserChangeForm(instance = request.user)
form = PasswordChangeForm(user = request.user)
args = {'form': form}
return render(request, 'ui/change_password.html', args)
| 12,226
|
https://github.com/Cwc-Test/CpcdosOS2.1/blob/master/CONTRIB/LLVM/src/rt/test/tsan/Darwin/ignored-interceptors.mm
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,021
|
CpcdosOS2.1
|
Cwc-Test
|
Objective-C++
|
Code
| 199
| 590
|
// Check that ignore_interceptors_accesses=1 supresses reporting races from
// system libraries on OS X. There are currently false positives coming from
// libxpc, libdispatch, CoreFoundation and others, because these libraries use
// TSan-invisible atomics as synchronization.
// RUN: %clang_tsan %s -o %t -framework Foundation
// Check that without the flag, there are false positives.
// RUN: %deflake %run %t 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-RACE
// With ignore_interceptors_accesses=1, no races are reported.
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s
// With ignore_interceptors_accesses=1, races in user's code are still reported.
// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t race 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-RACE
#import <Foundation/Foundation.h>
#import "../test.h"
long global;
void *Thread1(void *x) {
barrier_wait(&barrier);
global = 42;
return NULL;
}
void *Thread2(void *x) {
global = 43;
barrier_wait(&barrier);
return NULL;
}
int main(int argc, char *argv[]) {
fprintf(stderr, "Hello world.\n");
// NSUserDefaults uses XPC which triggers the false positive.
NSDictionary *d = [[NSUserDefaults standardUserDefaults] dictionaryRepresentation];
if (argc > 1 && strcmp(argv[1], "race") == 0) {
barrier_init(&barrier, 2);
pthread_t t[2];
pthread_create(&t[0], NULL, Thread1, NULL);
pthread_create(&t[1], NULL, Thread2, NULL);
pthread_join(t[0], NULL);
pthread_join(t[1], NULL);
}
fprintf(stderr, "Done.\n");
}
// CHECK: Hello world.
// CHECK-RACE: SUMMARY: ThreadSanitizer: data race
// CHECK: Done.
| 26,248
|
https://github.com/brianhouse/distributed-sensing/blob/master/subscriber/src/main.js
|
Github Open Source
|
Open Source
|
ISC
| 2,019
|
distributed-sensing
|
brianhouse
|
JavaScript
|
Code
| 370
| 1,169
|
'use strict'
const { app, BrowserWindow } = require('electron')
const fs = require('fs')
const path = require('path')
const del = require('del')
const lineReader = require('line-reader')
const hypercore = require('hypercore')
const sensing = require('./sensing')
const express = require('express')
const main = express()
const mustacheExpress = require('mustache-express')
const bodyParser = require('body-parser')
const port = 3000
main.use(bodyParser.json())
main.use(bodyParser.urlencoded({extended: true}))
main.use(express.static(__dirname + '/../static'))
main.engine('html', mustacheExpress())
main.set('views', __dirname + '/../templates')
main.set('view engine', 'mustache')
main.listen(port)
let window
let createWindow = () => {
window = new BrowserWindow({ width: 1024, height: 800, resizable: false, show: false, webPreferences: {nodeIntegration: false, nodeIntegrationInWorker: false} })
window.loadURL('http://localhost:3000')
window.openDevTools({mode: 'detach'})
window.once('ready-to-show', () => {
window.show()
})
window.on('closed', () => {
window = null
})
}
app.on('ready', createWindow)
app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('activate', () => {
if (window === null) {
createWindow()
}
})
main.get('/', (request, response) => {
response.render('index.html')
})
main.get('/directory', (request, response) => {
let directory = path.join(__dirname, '..', 'data')
fs.readdir(directory, (err, items) => {
if (err) {
response.send('Data directory missing')
return
}
let keys = []
items.forEach((item) => {
let filepath = path.join(directory, item)
if (fs.lstatSync(filepath).isDirectory()) {
let name = fs.readFileSync(path.join(filepath, 'name'), {encoding: 'utf-8'})
keys.push({key: item, name: name})
}
})
response.render('directory.html', {keys: keys})
})
})
main.get('/main/:key', (request, response) => {
let key = request.params.key
let name = fs.readFileSync(path.join(__dirname, '..', 'data', key, 'name'), {encoding: 'utf-8'})
response.render('main.html', {key: key, name: name})
})
main.get('/data/:key', (request, response) => {
console.log('/data')
let key = request.params.key
let filepath = path.join(__dirname, '..', 'data', key, 'data')
let data = []
if (fs.existsSync(filepath)) {
lineReader.eachLine(filepath, (line, last) => {
let d = JSON.parse(line)
if (typeof d === 'string') {
try {
d = JSON.parse(d)
} catch (e) {}
}
data.push(d)
if (last) {
console.log(data)
response.json(data)
}
})
} else {
response.json(data)
}
})
main.post('/subscribe', (request, response) => {
console.log(`/subscribe`)
let key = request.body.key
let name = request.body.name
sensing.subscribe(key, name, () => {
response.send('OK')
})
})
main.post('/unsubscribe', (request, response) => {
console.log(`/unsubscribe`)
let key = request.body.key
console.log(`Unsubcribing from ${key}`)
let filepath = path.join(__dirname, '..', 'data', key)
if (!fs.existsSync(filepath)) return
del.sync(filepath)
response.send('OK')
})
main.post('/fetch', (request, response) => {
console.log(`/fetch`)
let key = request.body.key
sensing.fetch(key, () => {
response.send('OK') // needs to trigger a pinwheel that's stopped by some other callback later
})
})
| 13,464
|
https://github.com/YuukanOO/codebox-quickstart/blob/master/tests/00_utils_tests.js
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,019
|
codebox-quickstart
|
YuukanOO
|
JavaScript
|
Code
| 149
| 588
|
var utils = require('../lib/utils');
var fs = require('fs');
var mkdirp = require('mkdirp');
exports.testDeleteDirSync = function(test) {
var root_path = __dirname + "/test";
var path = root_path + "/delete/dir/sync";
mkdirp.sync(path);
test.ok(fs.existsSync(path));
utils.deleteDirSync(root_path);
test.ok(!fs.existsSync(root_path));
test.done();
};
exports.testGetFilesSync = function(test) {
var root_path = __dirname + "/test";
var path = root_path + "/get/files/sync";
var path_a = __dirname + "/test/get";
var path_b = __dirname + "/test/get/files";
var filepath_a = path_a + "/filea.txt";
var filepath_b = path_b + "/fileb.txt";
var filepath_c = path_b + "/exclude.me";
var filepath_d = path_b + "/exclude.metoo";
mkdirp.sync(path_b);
// Creates some dummy files
fs.writeFileSync(filepath_a, "Some content in a file.");
test.ok(fs.existsSync(filepath_a));
fs.writeFileSync(filepath_b, "Some content in b file.");
test.ok(fs.existsSync(filepath_b));
fs.writeFileSync(filepath_c, "Dummy content");
test.ok(fs.existsSync(filepath_c));
fs.writeFileSync(filepath_d, "Dummy content");
test.ok(fs.existsSync(filepath_d));
// First without exclude filters
var results = utils.getFilesSync(root_path);
test.equals(results.length, 4);
// And then with exclude filters
var to_exclude = [
new RegExp(".metoo$"),
new RegExp(".me$")
];
results = utils.getFilesSync(root_path, to_exclude);
test.equals(results.length, 2);
utils.deleteDirSync(root_path);
test.done();
};
| 37,523
|
https://github.com/Dale-gg/Duozada/blob/master/src/Modules/Highlight/Services/CreateHighlightService.spec.ts
|
Github Open Source
|
Open Source
|
MIT
| 2,020
|
Duozada
|
Dale-gg
|
TypeScript
|
Code
| 151
| 540
|
import FakeUsersRepository from '@Modules/Users/Repositories/Fakes/FakeUsersRepository'
import FakeHighlightsRepository from '../Repositories/Fakes/FakeHighlightsRepository'
import FakeStorageProvider from '@Shared/Container/Providers/StorageProvider/Fakes/FakeStorageProvider'
import CreateHighlightService from './CreateHighlightService'
import AppError from '@Shared/Errors/AppError'
let fakeUsersRepository: FakeUsersRepository
let fakeHighlightsRepository: FakeHighlightsRepository
let fakeStorageProvider: FakeStorageProvider
let createHighlightService: CreateHighlightService
describe('> Highlight [CREATE]', () => {
beforeEach(() => {
fakeUsersRepository = new FakeUsersRepository()
fakeHighlightsRepository = new FakeHighlightsRepository()
fakeStorageProvider = new FakeStorageProvider()
createHighlightService = new CreateHighlightService(
fakeUsersRepository,
fakeHighlightsRepository,
fakeStorageProvider,
)
})
it('should be able to create an highlight', async () => {
const user = await fakeUsersRepository.create({
name: 'John Doe',
email: 'johndoe@example.com',
password: '123456',
})
const highlight = await createHighlightService.execute({
title: 'zedão-estorano-maguin-lixera.mpcuatro',
desc: 'como podemos ver a luquis naun aguento as trez chureken, luto',
user_id: user.id,
mediaFilename: 'media.mp4',
})
expect(highlight.media).toBe('media.mp4')
})
it('should not be able to update from non existing error', async () => {
await expect(
createHighlightService.execute({
title: 'zedão-estorano-maguin-lixera.mpcuatro',
desc: 'como podemos ver a luquis naun aguento as trez chureken, luto',
user_id: 'non-existing-user',
mediaFilename: 'media.mp4',
}),
).rejects.toBeInstanceOf(AppError)
})
})
| 45,861
|
https://github.com/0xR00KIE/Decomp-for-S1F/blob/master/RSDKv4/Math.cpp
|
Github Open Source
|
Open Source
|
Unlicense
| 2,022
|
Decomp-for-S1F
|
0xR00KIE
|
C++
|
Code
| 300
| 916
|
#include "RetroEngine.hpp"
#include <math.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327950288
#endif
int sinValM7[0x200];
int cosValM7[0x200];
int sinVal512[0x200];
int cosVal512[0x200];
int sinVal256[0x100];
int cosVal256[0x100];
byte atanVal256[0x100 * 0x100];
void CalculateTrigAngles()
{
for (int i = 0; i < 0x200; ++i) {
sinValM7[i] = (sin((i / 256.0) * M_PI) * 4096.0);
cosValM7[i] = (cos((i / 256.0) * M_PI) * 4096.0);
}
cosValM7[0] = 0x1000;
cosValM7[128] = 0;
cosValM7[256] = -0x1000;
cosValM7[384] = 0;
sinValM7[0] = 0;
sinValM7[128] = 0x1000;
sinValM7[256] = 0;
sinValM7[384] = -0x1000;
for (int i = 0; i < 0x200; ++i) {
sinVal512[i] = (sinf((i / 256.0) * M_PI) * 512.0);
cosVal512[i] = (cosf((i / 256.0) * M_PI) * 512.0);
}
cosVal512[0] = 0x200;
cosVal512[128] = 0;
cosVal512[256] = -0x200;
cosVal512[384] = 0;
sinVal512[0] = 0;
sinVal512[128] = 0x200;
sinVal512[256] = 0;
sinVal512[384] = -0x200;
for (int i = 0; i < 0x100; i++) {
sinVal256[i] = (sinVal512[i * 2] >> 1);
cosVal256[i] = (cosVal512[i * 2] >> 1);
}
for (int Y = 0; Y < 0x100; ++Y) {
byte *ATan = (byte *)&atanVal256[Y];
for (int X = 0; X < 0x100; ++X) {
float angle = atan2f(Y, X);
*ATan = (angle * 40.743664f);
ATan += 0x100;
}
}
}
byte ArcTanLookup(int X, int Y)
{
int x = 0;
int y = 0;
x = abs(X);
y = abs(Y);
if (x <= y) {
while (y > 0xFF) {
x >>= 4;
y >>= 4;
}
}
else {
while (x > 0xFF) {
x >>= 4;
y >>= 4;
}
}
if (X <= 0) {
if (Y <= 0)
return atanVal256[(x << 8) + y] + -0x80;
else
return -0x80 - atanVal256[(x << 8) + y];
}
else if (Y <= 0)
return -atanVal256[(x << 8) + y];
else
return atanVal256[(x << 8) + y];
}
| 42,934
|
https://github.com/pravgupt/aws-sdk-js-v3/blob/master/clients/node/client-ec2-node/model/shapes/CreateSnapshotsInput.ts
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
aws-sdk-js-v3
|
pravgupt
|
TypeScript
|
Code
| 70
| 213
|
import { _InstanceSpecification } from "./_InstanceSpecification";
import { _TagSpecificationList } from "./_TagSpecificationList";
import { Structure as _Structure_ } from "@aws-sdk/types";
export const CreateSnapshotsInput: _Structure_ = {
type: "structure",
required: ["InstanceSpecification"],
members: {
Description: {
shape: {
type: "string"
}
},
InstanceSpecification: {
shape: _InstanceSpecification
},
TagSpecifications: {
shape: _TagSpecificationList,
locationName: "TagSpecification"
},
DryRun: {
shape: {
type: "boolean"
}
},
CopyTagsFromSource: {
shape: {
type: "string"
}
}
}
};
| 46,750
|
https://github.com/hal-platform/hal/blob/master/templates/encrypted-configuration/add_encrypted.twig
|
Github Open Source
|
Open Source
|
MIT
| 2,021
|
hal
|
hal-platform
|
Twig
|
Code
| 228
| 759
|
{% extends 'base.twig' %}
{% import 'macros.form.twig' as form_macros %}
{% set page_title = 'Add Encrypted Configuration' %}
{% block breadcrumb_links %}
<li><a href="{{ uriFor('applications') }}">Applications</a></li>
<li><a href="{{ uriFor('application', {'application': application.id}) }}">{{ application.name }}</a></li>
<li><a href="{{ uriFor('encrypted.configuration', {'application': application.id}) }}">Encrypted Configuration</a></li>
{% endblock %}
{% block content %}
{{ form_macros.form_errors(errors, is_csrf_error) }}
<form method="post">
{{ form_macros.csrf_input('encrypted.add') }}
<ul class="form-fields form-wrapper">
<li>
<label for="name">Property Name</label>
<input type="text" class="text-input" type="text" name="name" id="name" maxlength="64" value="{{ form.name }}" required>
<small>
This will be uppercased and prefixed with <code>ENCRYPTED_</code> at runtime.
</small>
</li>
<li>
<label for="decrypted">Value</label>
<input type="text" class="text-input" name="decrypted" id="decrypted" maxlength="200" value="{{ form.decrypted }}" autocomplete="off" required>
<small>
This will be encrypted once saved, and only unencrypted during project build.
</small>
</li>
<li>
<label>Environment</label>
{% if environments %}
<ul>
{% for environment in environments %}
{% set is_selected = form.environment == environment.id ? ' checked' : '' %}
<li>
<label for="env-{{ environment.id }}">
<input type="radio" id="env-{{ environment.id }}" name="environment" value="{{ environment.id }}"{{ is_selected }}>
{{ environment.name }}
</label>
</li>
{% endfor %}
{% set is_selected = form.organization == 'all' ? ' checked' : '' %}
<li>
<label for="env-noop">
<input type="radio" id="env-noop" name="environment" value="global"{{ is_selected }}>
Global (Available in all environments)
</label>
</li>
</ul>
{% else %}
<p>There are no environments.</p>
{% endif %}
</li>
</ul>
<p>
<button type="submit" class="btn btn--action">Add Encrypted Configuration</button>
<a href="{{ uriFor('encrypted.configuration', {'application': application.id}) }}">Cancel</a>
</p>
</form>
{% endblock %}
| 37,487
|
https://github.com/sirivus/studioonline/blob/master/node_modules/eth-connect/dist/ContractFactory.d.ts
|
Github Open Source
|
Open Source
|
MIT
| null |
studioonline
|
sirivus
|
TypeScript
|
Code
| 186
| 390
|
import { RequestManager } from './RequestManager';
import { Contract } from './Contract';
import { TransactionOptions, Data } from './Schema';
/**
* Should be called to create new ContractFactory instance
*
* @method ContractFactory
* @param {Array} abi
*/
export declare class ContractFactory {
requestManager: RequestManager;
abi: any[];
constructor(requestManager: RequestManager, abi: any[]);
/**
* Should be called to create new contract on a blockchain
*
* @method new
* @param {Any} contract constructor param1 (optional)
* @param {Any} contract constructor param2 (optional)
* @param {object} contract transaction object (required)
* @param {Function} callback
* @returns {Contract} returns contract instance
*/
deploy(param1: any, param2: any, options: TransactionOptions): Promise<Contract>;
deploy(param1: any, options: TransactionOptions): Promise<Contract>;
deploy(options: TransactionOptions): Promise<Contract>;
/**
* Should be called to get access to existing contract on a blockchain
*
* @method at
* @param {Address} contract address (required)
* @param {Function} callback {optional)
* @returns {Contract} returns contract if no callback was passed,
* otherwise calls callback function (err, contract)
*/
at(address: string): Promise<Contract>;
/**
* Gets the data, which is data to deploy plus constructor params
*
* @method getData
*/
getData(...args: any[]): Promise<Data>;
}
| 33,196
|
https://github.com/ZackaryCowled/Unity-Blueprints/blob/master/Assets/Blueprint/Scripts/Source/Nodes/BaseNodes/BlueprintNodeConnection.cs
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
Unity-Blueprints
|
ZackaryCowled
|
C#
|
Code
| 338
| 942
|
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class BlueprintNodeConnection : BlueprintNode
{
//Returns the blueprint node connections output attribute
public override object GetAttribute()
{
//If the input connections connection node ID is valid
if(connections[0].connectionNodeID > -1)
{
//Return the input connection nodes output attribute
return BlueprintInstanceManager.GetBlueprintAt(blueprintID).GetBlueprintNodeAt(connections[0].connectionNodeID).GetAttribute();
}
//Return the default output attribute
return GetDefaultOutputAttribute();
}
//Sets the blueprint node connections input attribute to the specified input attribute
public override void SetAttribute(object inputAttribute)
{
//If the input connections connection node ID is valid
if (connections[0].connectionNodeID > -1)
{
//Set the blueprint node connections input attribute to the specified input attribute
BlueprintInstanceManager.GetBlueprintAt(blueprintID).GetBlueprintNodeAt(connections[0].connectionNodeID).SetAttribute(inputAttribute);
}
}
//If running in the Unity Editor
#if UNITY_EDITOR
//Adds an output connection of the specified type to the blueprint node
//NOTE: Only call after the input connection has been created
protected void AddOutputConnection<T>() where T : BlueprintConnection, new()
{
//Add output connection of the specified type to the blueprint node
connections.Add(new T());
//Initialize the output connection
connections[connections.Count - 1].Initialize(blueprintID, nodeID, connections.Count -1, false);
}
//Returns the blueprint node connection header color
protected override Color GetHeaderColor()
{
//Return the blueprint node connection header color
return new Color(0.25f, 0.25f, 0.25f);
}
//Renders the blueprint node connection one to many components for the specified blueprint connection output
protected void RenderBodyComponentsOneToMany<T>() where T : BlueprintConnection, new()
{
//Begin section
BeginSection(1);
//If the developer presses the add output button
if (GUILayout.Button("Add Output"))
{
//Add an output connection
AddOutputConnection<T>();
}
//End section
EndSection();
//For each additional connection
for (int connectionIndex = 2; connectionIndex < connections.Count; connectionIndex++)
{
//Begin section
BeginSection(connectionIndex);
//If the developer presses the remove output button
if (GUILayout.Button("Remove Output"))
{
//Remove the output connection
connections[connectionIndex].DestroyConnection();
connections.RemoveAt(connectionIndex);
//For each connection from the connection index
for (int postConnectionIndex = connectionIndex; postConnectionIndex < connections.Count; postConnectionIndex++)
{
//Decrement the connections section ID
connections[postConnectionIndex].sectionID -= 1;
//If the connection is connected to a valid blueprint node
if(connections[postConnectionIndex].connectionNodeID > -1)
{
//Decrement the connections section ID for the external blueprint node
BlueprintEditorManager.blueprint.GetBlueprintNodeAt(connections[postConnectionIndex].connectionNodeID).GetConnection(connections[postConnectionIndex].connectionSectionID, connections[postConnectionIndex].connectionIsInput).connectionSectionID -= 1;
}
}
}
//End section
EndSection();
}
}
#endif
}
| 46,705
|
https://github.com/Sphereon-SDK/pdf-stamper-sdk/blob/master/java8-okhttp-gson/src/main/java/com/sphereon/sdk/pdf/stamper/model/ResultSettings.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,021
|
pdf-stamper-sdk
|
Sphereon-SDK
|
Java
|
Code
| 653
| 1,902
|
/*
* PDF stamper
* The PDF Stamper API enables the possibility to add both static and dynamic stamps on existing PDFs. The stamps can consist of one or more barcode, hyperlink, image, line or text elements. The API also supports digital signatures (blue bar), blockchain registrations and filling out forms The flow is generally as follows: 1. Make a configuration containing the stamp information 2. Create a job specifying the desired configuration 3. Add one or more PDF files to the job 4. Start the job for processing 5. Retrieve the processed files Full API Documentation: https://docs.sphereon.com/api/pdf-stamper/1.0 Interactive testing: A web based test console is available in the Sphereon API Store at https://store.sphereon.com
*
* OpenAPI spec version: 1.0
* Contact: dev@sphereon.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.sphereon.sdk.pdf.stamper.model;
import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.sphereon.sdk.pdf.stamper.model.Lifecycle;
import com.sphereon.sdk.pdf.stamper.model.StorageLocation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Result settings
*/
@ApiModel(description = "Result settings")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2021-04-08T13:37:39.498+02:00")
public class ResultSettings {
/**
* Storage mode. Can be a configured storage location on the storage API, a job id folder in the supplied storage location or completely replacing the input files (streamlocations).
*/
@JsonAdapter(StorageModeEnum.Adapter.class)
public enum StorageModeEnum {
STORAGE_LOCATION("STORAGE_LOCATION"),
STORAGE_LOCATION_JOB_IDS("STORAGE_LOCATION_JOB_IDS"),
REPLACE_INPUT("REPLACE_INPUT");
private String value;
StorageModeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StorageModeEnum fromValue(String text) {
for (StorageModeEnum b : StorageModeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter<StorageModeEnum> {
@Override
public void write(final JsonWriter jsonWriter, final StorageModeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StorageModeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StorageModeEnum.fromValue(String.valueOf(value));
}
}
}
@SerializedName("storageMode")
private StorageModeEnum storageMode = null;
@SerializedName("storageLocation")
private StorageLocation storageLocation = null;
@SerializedName("lifecycles")
private List<Lifecycle> lifecycles = null;
public ResultSettings storageMode(StorageModeEnum storageMode) {
this.storageMode = storageMode;
return this;
}
/**
* Storage mode. Can be a configured storage location on the storage API, a job id folder in the supplied storage location or completely replacing the input files (streamlocations).
* @return storageMode
**/
@ApiModelProperty(required = true, value = "Storage mode. Can be a configured storage location on the storage API, a job id folder in the supplied storage location or completely replacing the input files (streamlocations).")
public StorageModeEnum getStorageMode() {
return storageMode;
}
public void setStorageMode(StorageModeEnum storageMode) {
this.storageMode = storageMode;
}
public ResultSettings storageLocation(StorageLocation storageLocation) {
this.storageLocation = storageLocation;
return this;
}
/**
* Result Storage location
* @return storageLocation
**/
@ApiModelProperty(value = "Result Storage location")
public StorageLocation getStorageLocation() {
return storageLocation;
}
public void setStorageLocation(StorageLocation storageLocation) {
this.storageLocation = storageLocation;
}
public ResultSettings lifecycles(List<Lifecycle> lifecycles) {
this.lifecycles = lifecycles;
return this;
}
public ResultSettings addLifecyclesItem(Lifecycle lifecyclesItem) {
if (this.lifecycles == null) {
this.lifecycles = new ArrayList<>();
}
this.lifecycles.add(lifecyclesItem);
return this;
}
/**
* The lifecycles of result files
* @return lifecycles
**/
@ApiModelProperty(value = "The lifecycles of result files")
public List<Lifecycle> getLifecycles() {
return lifecycles;
}
public void setLifecycles(List<Lifecycle> lifecycles) {
this.lifecycles = lifecycles;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ResultSettings resultSettings = (ResultSettings) o;
return Objects.equals(this.storageMode, resultSettings.storageMode) &&
Objects.equals(this.storageLocation, resultSettings.storageLocation) &&
Objects.equals(this.lifecycles, resultSettings.lifecycles);
}
@Override
public int hashCode() {
return Objects.hash(storageMode, storageLocation, lifecycles);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ResultSettings {\n");
sb.append(" storageMode: ").append(toIndentedString(storageMode)).append("\n");
sb.append(" storageLocation: ").append(toIndentedString(storageLocation)).append("\n");
sb.append(" lifecycles: ").append(toIndentedString(lifecycles)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
| 49,088
|
https://github.com/clickfunnels2/liquidjs/blob/master/src/builtin/tags/continue.ts
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
liquidjs
|
clickfunnels2
|
TypeScript
|
Code
| 22
| 47
|
import { Emitter, Context } from '../../types'
export default {
render: function (ctx: Context, emitter: Emitter) {
emitter['continue'] = true
}
}
| 39,075
|
https://github.com/Fajar2020/managecompanybasiclaravel/blob/master/app/Models/Employee.php
|
Github Open Source
|
Open Source
|
MIT
| null |
managecompanybasiclaravel
|
Fajar2020
|
PHP
|
Code
| 42
| 175
|
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Employee extends Model
{
use SoftDeletes;
protected $fillable = [
'company_id',
'firstName',
'lastName',
'email',
'phone'
];
public function company(){
return $this->hasOne(Company::class, 'id', 'company_id');
}
public function getFullNameAttribute(){
return $this->firstName.' '.$this->lastName;
}
}
| 2,333
|
https://github.com/toughdude07/Distributed-Chat-Server/blob/master/DISTRIBUTE-CHAT-SERVER/Client/src/my_swing/Send_Emoji.java
|
Github Open Source
|
Open Source
|
OML
| null |
Distributed-Chat-Server
|
toughdude07
|
Java
|
Code
| 93
| 500
|
package my_swing;
import javax.swing.ImageIcon;
public class Send_Emoji extends javax.swing.JPanel {
public Send_Emoji() {
initComponents();
}
public void setPhoto(String emoji) {
lb.setIcon(new ImageIcon(getClass().getResource("/emoji/" + emoji)));
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
lb = new javax.swing.JLabel();
setBackground(new java.awt.Color(255, 255, 255));
setMaximumSize(new java.awt.Dimension(600, 76));
lb.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
lb.setIcon(new javax.swing.ImageIcon(getClass().getResource("/emoji/emoji_green (1).png"))); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(452, Short.MAX_VALUE)
.addComponent(lb)
.addGap(84, 84, 84))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(lb)
.addContainerGap())
);
}// </editor-fold>//GEN-END:initComponents
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel lb;
// End of variables declaration//GEN-END:variables
}
| 27,960
|
https://github.com/T1ti/WoWDatabaseEditor/blob/master/WoWDatabaseEditor/Services/FindAnywhere/IFindAnywhereResultsViewModel.cs
|
Github Open Source
|
Open Source
|
Unlicense
| null |
WoWDatabaseEditor
|
T1ti
|
C#
|
Code
| 23
| 95
|
using System.Collections.Generic;
using System.Threading.Tasks;
using WDE.Common.Managers;
using WDE.Module.Attributes;
namespace WoWDatabaseEditorCore.Services.FindAnywhere;
[UniqueProvider]
public interface IFindAnywhereResultsViewModel : IDocument
{
Task Search(IReadOnlyList<string> parameter, IReadOnlyList<long> value);
}
| 50,213
|
https://github.com/CosmicSharts/ccapi/blob/master/include/ccapi_cpp/service/ccapi_market_data_service_bitfinex.h
|
Github Open Source
|
Open Source
|
MIT
| 2,021
|
ccapi
|
CosmicSharts
|
C++
|
Code
| 1,449
| 7,655
|
#ifndef INCLUDE_CCAPI_CPP_SERVICE_CCAPI_MARKET_DATA_SERVICE_BITFINEX_H_
#define INCLUDE_CCAPI_CPP_SERVICE_CCAPI_MARKET_DATA_SERVICE_BITFINEX_H_
#ifdef CCAPI_ENABLE_SERVICE_MARKET_DATA
#ifdef CCAPI_ENABLE_EXCHANGE_BITFINEX
#include "ccapi_cpp/service/ccapi_market_data_service.h"
namespace ccapi {
class MarketDataServiceBitfinex : public MarketDataService {
public:
MarketDataServiceBitfinex(std::function<void(Event&, Queue<Event>*)> eventHandler, SessionOptions sessionOptions, SessionConfigs sessionConfigs,
std::shared_ptr<ServiceContext> serviceContextPtr)
: MarketDataService(eventHandler, sessionOptions, sessionConfigs, serviceContextPtr) {
this->exchangeName = CCAPI_EXCHANGE_NAME_BITFINEX;
this->baseUrl = sessionConfigs.getUrlWebsocketBase().at(this->exchangeName);
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
this->setHostRestFromUrlRest(this->baseUrlRest);
try {
this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
} catch (const std::exception& e) {
CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
}
this->getRecentTradesTarget = "/v2/trades/{Symbol}/hist";
// this->getInstrumentTarget = "/v2/conf/pub:list:pair:exchange";
this->getInstrumentsTarget = "/v2/conf/pub:list:pair:exchange";
// this->convertNumberToStringInJsonRegex = std::regex("([,\\[:])(-?\\d+\\.?\\d*[eE]?-?\\d*)");
}
virtual ~MarketDataServiceBitfinex() {}
#ifndef CCAPI_EXPOSE_INTERNAL
private:
#endif
void prepareSubscriptionDetail(std::string& channelId, std::string& symbolId, const std::string& field, const WsConnection& wsConnection,
const std::map<std::string, std::string> optionMap) override {
auto marketDepthRequested = std::stoi(optionMap.at(CCAPI_MARKET_DEPTH_MAX));
auto conflateIntervalMilliSeconds = std::stoi(optionMap.at(CCAPI_CONFLATE_INTERVAL_MILLISECONDS));
if (field == CCAPI_MARKET_DEPTH) {
int marketDepthSubscribedToExchange = 1;
marketDepthSubscribedToExchange = this->calculateMarketDepthSubscribedToExchange(marketDepthRequested, std::vector<int>({1, 25, 100, 250}));
channelId += std::string("?") + CCAPI_MARKET_DEPTH_SUBSCRIBED_TO_EXCHANGE + "=" + std::to_string(marketDepthSubscribedToExchange);
this->marketDepthSubscribedToExchangeByConnectionIdChannelIdSymbolIdMap[wsConnection.id][channelId][symbolId] = marketDepthSubscribedToExchange;
}
}
std::vector<std::string> createSendStringList(const WsConnection& wsConnection) override { return std::vector<std::string>(); }
void onOpen(wspp::connection_hdl hdl) override {
MarketDataService::onOpen(hdl);
rj::Document document;
document.SetObject();
rj::Document::AllocatorType& allocator = document.GetAllocator();
document.AddMember("event", rj::Value("conf").Move(), allocator);
document.AddMember("flags", rj::Value(229376).Move(), allocator);
rj::StringBuffer stringBuffer;
rj::Writer<rj::StringBuffer> writer(stringBuffer);
document.Accept(writer);
std::string sendString = stringBuffer.GetString();
ErrorCode ec;
this->send(hdl, sendString, wspp::frame::opcode::text, ec);
if (ec) {
this->onError(Event::Type::SUBSCRIPTION_STATUS, Message::Type::SUBSCRIPTION_FAILURE, ec, "subscribe");
}
}
void onClose(wspp::connection_hdl hdl) override {
WsConnection& wsConnection = this->getWsConnectionFromConnectionPtr(this->serviceContextPtr->tlsClientPtr->get_con_from_hdl(hdl));
this->marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap.erase(wsConnection.id);
this->sequenceByConnectionIdMap.erase(wsConnection.id);
MarketDataService::onClose(hdl);
}
void processTextMessage(WsConnection& wsConnection, wspp::connection_hdl hdl, const std::string& textMessage, const TimePoint& timeReceived, Event& event,
std::vector<MarketDataMessage>& marketDataMessageList) override {
rj::Document document;
document.Parse<rj::kParseNumbersAsStringsFlag>(textMessage.c_str());
if (document.IsArray() && document.Size() >= 1) {
auto exchangeSubscriptionId = std::string(document[0].GetString());
if (document.Size() >= 2 && document[1].IsString() && std::string(document[1].GetString()) == "hb") {
if (this->sessionOptions.enableCheckSequence) {
int sequence = std::stoi(document[2].GetString());
if (!this->checkSequence(wsConnection, sequence)) {
this->onOutOfSequence(wsConnection, sequence, hdl, textMessage, timeReceived, exchangeSubscriptionId);
return;
}
}
} else {
auto channelId = this->channelIdSymbolIdByConnectionIdExchangeSubscriptionIdMap.at(wsConnection.id).at(exchangeSubscriptionId).at(CCAPI_CHANNEL_ID);
auto symbolId = this->channelIdSymbolIdByConnectionIdExchangeSubscriptionIdMap.at(wsConnection.id).at(exchangeSubscriptionId).at(CCAPI_SYMBOL_ID);
if (channelId.rfind(CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK, 0) == 0 || channelId == CCAPI_WEBSOCKET_BITFINEX_CHANNEL_TRADES) {
std::string channel =
channelId.rfind(CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK, 0) == 0 ? CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK : CCAPI_WEBSOCKET_BITFINEX_CHANNEL_TRADES;
rj::Value data(rj::kArrayType);
if (document[1].IsArray()) {
if (this->sessionOptions.enableCheckSequence) {
int sequence = std::stoi(document[2].GetString());
if (!this->checkSequence(wsConnection, sequence)) {
this->onOutOfSequence(wsConnection, sequence, hdl, textMessage, timeReceived, exchangeSubscriptionId);
return;
}
}
const rj::Value& content = document[1].GetArray();
if (content[0].IsArray()) {
if (this->sessionOptions.enableCheckSequence) {
int sequence = std::stoi(document[2].GetString());
}
if (channelId.rfind(CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK, 0) == 0) {
MarketDataMessage marketDataMessage;
marketDataMessage.type = MarketDataMessage::Type::MARKET_DATA_EVENTS_MARKET_DEPTH;
marketDataMessage.exchangeSubscriptionId = exchangeSubscriptionId;
marketDataMessage.recapType = MarketDataMessage::RecapType::SOLICITED;
marketDataMessage.tp = timeReceived;
for (const auto& x : content.GetArray()) {
MarketDataMessage::TypeForDataPoint dataPoint;
dataPoint.insert({MarketDataMessage::DataFieldType::PRICE, UtilString::normalizeDecimalString(x[0].GetString())});
auto count = std::string(x[1].GetString());
auto amount = UtilString::normalizeDecimalString(x[2].GetString());
if (count != "0") {
if (amount.at(0) == '-') {
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, amount.substr(1)});
marketDataMessage.data[MarketDataMessage::DataType::ASK].emplace_back(std::move(dataPoint));
} else {
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, amount});
marketDataMessage.data[MarketDataMessage::DataType::BID].emplace_back(std::move(dataPoint));
}
} else {
if (amount.at(0) == '-') {
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, "0"});
marketDataMessage.data[MarketDataMessage::DataType::ASK].emplace_back(std::move(dataPoint));
} else {
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, "0"});
marketDataMessage.data[MarketDataMessage::DataType::BID].emplace_back(std::move(dataPoint));
}
}
}
marketDataMessageList.emplace_back(std::move(marketDataMessage));
} else {
for (const auto& x : content.GetArray()) {
MarketDataMessage marketDataMessage;
marketDataMessage.type = MarketDataMessage::Type::MARKET_DATA_EVENTS_TRADE;
marketDataMessage.exchangeSubscriptionId = exchangeSubscriptionId;
marketDataMessage.recapType = MarketDataMessage::RecapType::SOLICITED;
std::string timestampInMilliseconds = x[1].GetString();
timestampInMilliseconds.insert(timestampInMilliseconds.size() - 3, ".");
marketDataMessage.tp = UtilTime::makeTimePoint(UtilTime::divide(timestampInMilliseconds));
MarketDataMessage::TypeForDataPoint dataPoint;
dataPoint.insert({MarketDataMessage::DataFieldType::PRICE, UtilString::normalizeDecimalString(std::string(x[3].GetString()))});
auto amount = UtilString::normalizeDecimalString(x[2].GetString());
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, amount.at(0) == '-' ? amount.substr(1) : amount});
dataPoint.insert({MarketDataMessage::DataFieldType::TRADE_ID, std::string(x[0].GetString())});
dataPoint.insert({MarketDataMessage::DataFieldType::IS_BUYER_MAKER, amount.at(0) == '-' ? "1" : "0"});
marketDataMessage.data[MarketDataMessage::DataType::TRADE].emplace_back(std::move(dataPoint));
marketDataMessageList.emplace_back(std::move(marketDataMessage));
}
}
} else {
const rj::Value& x = content;
MarketDataMessage::TypeForDataPoint dataPoint;
dataPoint.insert({MarketDataMessage::DataFieldType::PRICE, UtilString::normalizeDecimalString(x[0].GetString())});
auto count = std::string(x[1].GetString());
auto amount = UtilString::normalizeDecimalString(x[2].GetString());
if (count != "0") {
if (amount.at(0) == '-') {
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, amount.substr(1)});
this->marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId]
[MarketDataMessage::DataType::ASK]
.emplace_back(std::move(dataPoint));
} else {
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, amount});
this->marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId]
[MarketDataMessage::DataType::BID]
.emplace_back(std::move(dataPoint));
}
} else {
if (amount.at(0) == '-') {
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, "0"});
this->marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId]
[MarketDataMessage::DataType::ASK]
.emplace_back(std::move(dataPoint));
} else {
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, "0"});
this->marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId]
[MarketDataMessage::DataType::BID]
.emplace_back(std::move(dataPoint));
}
}
}
} else if (document[1].IsString()) {
std::string str = document[1].GetString();
if (str == "tu" || str == "te") {
if (this->sessionOptions.enableCheckSequence) {
int sequence = std::stoi(document[3].GetString());
if (!this->checkSequence(wsConnection, sequence)) {
this->onOutOfSequence(wsConnection, sequence, hdl, textMessage, timeReceived, exchangeSubscriptionId);
return;
}
}
if (str == CCAPI_BITFINEX_STREAM_TRADE_RAW_MESSAGE_TYPE) {
const rj::Value& x = document[2].GetArray();
MarketDataMessage marketDataMessage;
marketDataMessage.type = MarketDataMessage::Type::MARKET_DATA_EVENTS_TRADE;
marketDataMessage.exchangeSubscriptionId = exchangeSubscriptionId;
marketDataMessage.recapType = MarketDataMessage::RecapType::NONE;
std::string timestampInMilliseconds = x[1].GetString();
timestampInMilliseconds.insert(timestampInMilliseconds.size() - 3, ".");
marketDataMessage.tp = UtilTime::makeTimePoint(UtilTime::divide(timestampInMilliseconds));
MarketDataMessage::TypeForDataPoint dataPoint;
dataPoint.insert({MarketDataMessage::DataFieldType::PRICE, UtilString::normalizeDecimalString(std::string(x[3].GetString()))});
auto amount = UtilString::normalizeDecimalString(x[2].GetString());
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, amount.at(0) == '-' ? amount.substr(1) : amount});
if (str == "tu") {
dataPoint.insert({MarketDataMessage::DataFieldType::TRADE_ID, std::string(x[0].GetString())});
}
dataPoint.insert({MarketDataMessage::DataFieldType::IS_BUYER_MAKER, amount.at(0) == '-' ? "1" : "0"});
marketDataMessage.data[MarketDataMessage::DataType::TRADE].emplace_back(std::move(dataPoint));
marketDataMessageList.emplace_back(std::move(marketDataMessage));
}
} else if (str == "cs") {
if (this->sessionOptions.enableCheckSequence) {
int sequence = std::stoi(document[3].GetString());
if (!this->checkSequence(wsConnection, sequence)) {
this->onOutOfSequence(wsConnection, sequence, hdl, textMessage, timeReceived, exchangeSubscriptionId);
return;
}
}
if (this->sessionOptions.enableCheckOrderBookChecksum) {
this->orderBookChecksumByConnectionIdSymbolIdMap[wsConnection.id][symbolId] =
intToHex(static_cast<uint_fast32_t>(static_cast<uint32_t>(std::stoi(document[2].GetString()))));
}
MarketDataMessage marketDataMessage;
marketDataMessage.type = MarketDataMessage::Type::MARKET_DATA_EVENTS_MARKET_DEPTH;
std::string timestampInMilliseconds = document[4].GetString();
timestampInMilliseconds.insert(timestampInMilliseconds.size() - 3, ".");
marketDataMessage.tp = UtilTime::makeTimePoint(UtilTime::divide(timestampInMilliseconds));
marketDataMessage.exchangeSubscriptionId = exchangeSubscriptionId;
marketDataMessage.recapType = MarketDataMessage::RecapType::NONE;
std::swap(marketDataMessage.data,
this->marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId]);
marketDataMessageList.emplace_back(std::move(marketDataMessage));
}
}
}
}
} else if (document.IsObject() && document.HasMember("event")) {
std::string eventStr = document["event"].GetString();
if (eventStr == "conf") {
std::vector<std::string> sendStringList;
for (const auto& subscriptionListByChannelIdSymbolId : this->subscriptionListByConnectionIdChannelIdSymbolIdMap.at(wsConnection.id)) {
auto channelId = subscriptionListByChannelIdSymbolId.first;
if (channelId.rfind(CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK, 0) == 0 || channelId == CCAPI_WEBSOCKET_BITFINEX_CHANNEL_TRADES) {
std::string channel = channelId.rfind(CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK, 0) == 0 ? CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK
: CCAPI_WEBSOCKET_BITFINEX_CHANNEL_TRADES;
for (auto& subscriptionListBySymbolId : subscriptionListByChannelIdSymbolId.second) {
rj::Document document;
document.SetObject();
rj::Document::AllocatorType& allocator = document.GetAllocator();
document.AddMember("event", rj::Value("subscribe").Move(), allocator);
document.AddMember("channel", rj::Value(channel.c_str(), allocator).Move(), allocator);
auto symbolId = subscriptionListBySymbolId.first;
document.AddMember("symbol", rj::Value(symbolId.c_str(), allocator).Move(), allocator);
if (channel == CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK) {
document.AddMember("prec", rj::Value("P0").Move(), allocator);
document.AddMember("freq", rj::Value("F0").Move(), allocator);
document.AddMember(
"len",
rj::Value(
std::to_string(this->marketDepthSubscribedToExchangeByConnectionIdChannelIdSymbolIdMap.at(wsConnection.id).at(channelId).at(symbolId))
.c_str(),
allocator)
.Move(),
allocator);
}
rj::StringBuffer stringBuffer;
rj::Writer<rj::StringBuffer> writer(stringBuffer);
document.Accept(writer);
std::string sendString = stringBuffer.GetString();
sendStringList.emplace_back(std::move(sendString));
}
}
}
for (const auto& sendString : sendStringList) {
ErrorCode ec;
this->send(hdl, sendString, wspp::frame::opcode::text, ec);
if (ec) {
this->onError(Event::Type::SUBSCRIPTION_STATUS, Message::Type::SUBSCRIPTION_FAILURE, ec, "subscribe");
}
}
} else if (eventStr == "subscribed" || eventStr == "error") {
std::string channel = document["channel"].GetString();
auto channelId = channel == CCAPI_WEBSOCKET_BITFINEX_CHANNEL_BOOK
? channel + "?" + CCAPI_MARKET_DEPTH_SUBSCRIBED_TO_EXCHANGE + "=" + std::string(document["len"].GetString())
: channel;
auto symbolId = std::string(document["symbol"].GetString());
if (eventStr == "subscribed") {
auto exchangeSubscriptionId = std::string(document["chanId"].GetString());
this->channelIdSymbolIdByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId][CCAPI_CHANNEL_ID] = channelId;
this->channelIdSymbolIdByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId][CCAPI_SYMBOL_ID] = symbolId;
}
event.setType(Event::Type::SUBSCRIPTION_STATUS);
std::vector<Message> messageList;
Message message;
message.setTimeReceived(timeReceived);
std::vector<std::string> correlationIdList;
if (this->correlationIdListByConnectionIdChannelIdSymbolIdMap.find(wsConnection.id) !=
this->correlationIdListByConnectionIdChannelIdSymbolIdMap.end()) {
if (this->correlationIdListByConnectionIdChannelIdSymbolIdMap.at(wsConnection.id).find(channelId) !=
this->correlationIdListByConnectionIdChannelIdSymbolIdMap.at(wsConnection.id).end()) {
if (this->correlationIdListByConnectionIdChannelIdSymbolIdMap.at(wsConnection.id).at(channelId).find(symbolId) !=
this->correlationIdListByConnectionIdChannelIdSymbolIdMap.at(wsConnection.id).at(channelId).end()) {
std::vector<std::string> correlationIdList_2 =
this->correlationIdListByConnectionIdChannelIdSymbolIdMap.at(wsConnection.id).at(channelId).at(symbolId);
correlationIdList.insert(correlationIdList.end(), correlationIdList_2.begin(), correlationIdList_2.end());
}
}
}
message.setCorrelationIdList(correlationIdList);
message.setType(eventStr == "subscribed" ? Message::Type::SUBSCRIPTION_STARTED : Message::Type::SUBSCRIPTION_FAILURE);
Element element;
element.insert(eventStr == "subscribed" ? CCAPI_INFO_MESSAGE : CCAPI_ERROR_MESSAGE, textMessage);
message.setElementList({element});
messageList.emplace_back(std::move(message));
event.setMessageList(messageList);
}
}
}
bool checkSequence(const WsConnection& wsConnection, int sequence) {
if (this->sequenceByConnectionIdMap.find(wsConnection.id) == this->sequenceByConnectionIdMap.end()) {
if (sequence != this->sessionConfigs.getInitialSequenceByExchangeMap().at(this->exchangeName)) {
CCAPI_LOGGER_WARN("incorrect initial sequence, wsConnection = " + toString(wsConnection));
return false;
}
this->sequenceByConnectionIdMap.insert(std::pair<std::string, int>(wsConnection.id, sequence));
return true;
} else {
if (sequence - this->sequenceByConnectionIdMap[wsConnection.id] == 1) {
this->sequenceByConnectionIdMap[wsConnection.id] = sequence;
return true;
} else {
return false;
}
}
}
void onOutOfSequence(WsConnection& wsConnection, int sequence, wspp::connection_hdl hdl, const std::string& textMessage, const TimePoint& timeReceived,
const std::string& exchangeSubscriptionId) {
int previous = 0;
if (this->sequenceByConnectionIdMap.find(wsConnection.id) != this->sequenceByConnectionIdMap.end()) {
previous = this->sequenceByConnectionIdMap[wsConnection.id];
}
this->onError(Event::Type::SUBSCRIPTION_STATUS, Message::Type::INCORRECT_STATE_FOUND,
"out of sequence: previous = " + toString(previous) + ", current = " + toString(sequence) + ", connection = " + toString(wsConnection) +
", textMessage = " + textMessage + ", timeReceived = " + UtilTime::getISOTimestamp(timeReceived));
this->marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId].clear();
ErrorCode ec;
this->close(wsConnection, hdl, websocketpp::close::status::normal, "out of sequence", ec);
if (ec) {
this->onError(Event::Type::SUBSCRIPTION_STATUS, Message::Type::GENERIC_ERROR, ec, "shutdown");
}
this->shouldProcessRemainingMessageOnClosingByConnectionIdMap[wsConnection.id] = false;
}
std::string calculateOrderBookChecksum(const std::map<Decimal, std::string>& snapshotBid, const std::map<Decimal, std::string>& snapshotAsk) override {
auto i = 0;
auto i1 = snapshotBid.rbegin();
auto i2 = snapshotAsk.begin();
std::vector<std::string> csData;
while (i < 25 && (i1 != snapshotBid.rend() || i2 != snapshotAsk.end())) {
if (i1 != snapshotBid.rend()) {
csData.push_back(i1->first.toString());
csData.push_back(i1->second);
++i1;
}
if (i2 != snapshotAsk.end()) {
csData.push_back(i2->first.toString());
csData.push_back("-" + i2->second);
++i2;
}
++i;
}
std::string csStr = UtilString::join(csData, ":");
uint_fast32_t csCalc = UtilAlgorithm::crc(csStr.begin(), csStr.end());
return intToHex(csCalc);
}
void onIncorrectStatesFound(WsConnection& wsConnection, wspp::connection_hdl hdl, const std::string& textMessage, const TimePoint& timeReceived,
const std::string& exchangeSubscriptionId, std::string const& reason) override {
CCAPI_LOGGER_ERROR("incorrect states found: connection = " + toString(wsConnection) + ", textMessage = " + textMessage +
", timeReceived = " + UtilTime::getISOTimestamp(timeReceived) + ", reason = " + reason);
this->marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap[wsConnection.id][exchangeSubscriptionId].clear();
MarketDataService::onIncorrectStatesFound(wsConnection, hdl, textMessage, timeReceived, exchangeSubscriptionId, reason);
}
void convertRequestForRest(http::request<http::string_body>& req, const Request& request, const TimePoint& now, const std::string& symbolId,
const std::map<std::string, std::string>& credential) override {
switch (request.getOperation()) {
case Request::Operation::GENERIC_PUBLIC_REQUEST: {
MarketDataService::convertRequestForRestGenericPublicRequest(req, request, now, symbolId, credential);
} break;
case Request::Operation::GET_RECENT_TRADES: {
req.method(http::verb::get);
auto target = this->getRecentTradesTarget;
this->substituteParam(target, {
{"{Symbol}", symbolId},
});
std::string queryString;
const std::map<std::string, std::string> param = request.getFirstParamWithDefault();
this->appendParam(queryString, param,
{
{CCAPI_LIMIT, "limit"},
});
req.target(target + "?" + queryString);
} break;
case Request::Operation::GET_INSTRUMENTS: {
req.method(http::verb::get);
auto target = this->getInstrumentsTarget;
req.target(target);
} break;
default:
this->convertRequestForRestCustom(req, request, now, symbolId, credential);
}
}
void convertTextMessageToMarketDataMessage(const Request& request, const std::string& textMessage, const TimePoint& timeReceived, Event& event,
std::vector<MarketDataMessage>& marketDataMessageList) override {
rj::Document document;
document.Parse<rj::kParseNumbersAsStringsFlag>(textMessage.c_str());
switch (request.getOperation()) {
case Request::Operation::GET_RECENT_TRADES: {
for (const auto& x : document.GetArray()) {
MarketDataMessage marketDataMessage;
marketDataMessage.type = MarketDataMessage::Type::MARKET_DATA_EVENTS_TRADE;
marketDataMessage.tp = UtilTime::makeTimePointFromMilliseconds(std::stoll(x[1].GetString()));
MarketDataMessage::TypeForDataPoint dataPoint;
std::string rawAmount = UtilString::normalizeDecimalString(x[2].GetString());
bool isAmountNegative = !rawAmount.empty() && rawAmount.at(0) == '-';
dataPoint.insert({MarketDataMessage::DataFieldType::PRICE, UtilString::normalizeDecimalString(std::string(x[3].GetString()))});
dataPoint.insert({MarketDataMessage::DataFieldType::SIZE, isAmountNegative ? rawAmount.substr(1) : rawAmount});
dataPoint.insert({MarketDataMessage::DataFieldType::TRADE_ID, std::string(x[0].GetString())});
dataPoint.insert({MarketDataMessage::DataFieldType::IS_BUYER_MAKER, isAmountNegative ? "1" : "0"});
marketDataMessage.data[MarketDataMessage::DataType::TRADE].emplace_back(std::move(dataPoint));
marketDataMessageList.emplace_back(std::move(marketDataMessage));
}
} break;
case Request::Operation::GET_INSTRUMENTS: {
Message message;
message.setTimeReceived(timeReceived);
message.setType(this->requestOperationToMessageTypeMap.at(request.getOperation()));
std::vector<Element> elementList;
for (const auto& x : document[0].GetArray()) {
std::string pair = x.GetString();
Element element;
element.insert(CCAPI_INSTRUMENT, pair);
elementList.push_back(element);
}
message.setElementList(elementList);
message.setCorrelationIdList({request.getCorrelationId()});
event.addMessages({message});
} break;
default:
CCAPI_LOGGER_FATAL(CCAPI_UNSUPPORTED_VALUE);
}
}
std::map<std::string, std::map<std::string, MarketDataMessage::TypeForData> > marketDataMessageDataBufferByConnectionIdExchangeSubscriptionIdMap;
std::map<std::string, int> sequenceByConnectionIdMap;
};
} /* namespace ccapi */
#endif
#endif
#endif // INCLUDE_CCAPI_CPP_SERVICE_CCAPI_MARKET_DATA_SERVICE_BITFINEX_H_
| 9,596
|
https://github.com/cshook/jstl-tmbundle/blob/master/Snippets/c:out.tmSnippet
|
Github Open Source
|
Open Source
|
MIT
| 2,012
|
jstl-tmbundle
|
cshook
|
XML Property List
|
Code
| 28
| 239
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string><c:out value="${2:\${$1\}}"${3: escapeXml="false"}${4: default="$5"}/></string>
<key>name</key>
<string>c:out</string>
<key>scope</key>
<string>text.html</string>
<key>tabTrigger</key>
<string>c</string>
<key>uuid</key>
<string>FB71FCAF-D303-4E4A-9697-5B2AF1712D47</string>
</dict>
</plist>
| 26,706
|
https://github.com/RomanPoplietukhin/routing/blob/master/src/components/Filters/index.js
|
Github Open Source
|
Open Source
|
MIT
| null |
routing
|
RomanPoplietukhin
|
JavaScript
|
Code
| 4
| 8
|
export * from './Filters'
| 11,158
|
https://github.com/markhiveit/explore-education-statistics/blob/master/src/GovUk.Education.ExploreEducationStatistics.Data.Api/Services/Interfaces/ISeedService.cs
|
Github Open Source
|
Open Source
|
MIT
| null |
explore-education-statistics
|
markhiveit
|
C#
|
Code
| 13
| 50
|
namespace GovUk.Education.ExploreEducationStatistics.Data.Api.Services.Interfaces
{
public interface ISeedService
{
void DeleteAll();
void Seed();
}
}
| 33,085
|
https://github.com/erick02john/casadetobiasofficial/blob/master/Guest/summary.php
|
Github Open Source
|
Open Source
|
MIT
| null |
casadetobiasofficial
|
erick02john
|
PHP
|
Code
| 873
| 3,839
|
<?php
session_start();
include("dbconn.php");
include ('../scriptvalidation.php');
$modeofpayment = $_SESSION['modeofpayment'];
$payment = $_SESSION['payment'];
if(!empty($_SESSION['Email'])){
$guestid = $_SESSION['guestid'];
$email = $_SESSION['Email'];
}else{
echo ("<script language='JavaScript'>
window.alert('Please Log In')
window.location.href='_log-in.php';
</SCRIPT>");
}
$guestid = $_SESSION['guestid'];
$addpS = 0;
$addpD = 0;
$addsS = 0;
$addsD = 0;
if($_SESSION['presSNum'] == ' '){
$_SESSION['presSNum'] = 0;
}
if($_SESSION['presDNum'] == ' '){
$_SESSION['presDNum'] = 0;
}
if($_SESSION['supSNum'] == ' '){
$_SESSION['supSNum'] = 0;
}
echo $_SESSION['supSNum'] ;
$ttlrms = $_SESSION['presSNum'] + $_SESSION['presDNum'] + $_SESSION['supSNum'];
$_SESSION['ttlrms'] = $ttlrms;
$query = mysqli_query($conn, "SELECT * FROM guest Where GuestID = '$guestid'");
$info = mysqli_fetch_array($query);
?>
<!DOCTYPE html>
<html>
<head>
<title>SELECT ROOMS</title>
<link rel="stylesheet" href="../bootstrap/css/bootstrap-vertical-tabs/bootstrap.vertical-tabs.css">
<link rel="stylesheet" href="../bootstrap/css/animate.css">
<link rel="stylesheet" href="../bootstrap/css/dataTables.bootstrap.min.css">
<link rel="stylesheet" href="../bootstrap/css/jquery.growl.css">
<script src="../bootstrap/js/jquery-1.11.3.min.js"></script>
<script src="../bootstrap/js/jquery.growl.js"></script>
<script src="../bootstrap/js/bootstrap.min.js"></script>
<script src="../bootstrap/js/dataTables.min.js"></script>
<script src="../bootstrap/js/dataTables.bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="../css/style.css"/>
<!--WEBSITE CSS/JS -->
<link rel= "stylesheet" href="../css/mystyle.css">
<link rel="stylesheet" href="../css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
}
li {
float: right;
}
li a {
display: block;
color: #fff;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover:not(.active) {
background-color: #ddd;
text-decoration: none;
}
li a.active {
color: #000;
background-color: #fff;
text-decoration: none;
}
.table{
color: #ffffff;
width: 55%;
border-radius: 6px;
padding: 20px;
border: 0;
border-collapse: collapse;
border: 1px solid #ccc;
}
input[type="radio"] {
display:none;
}
input[type="radio"] + label {
color:black;
font-family:Arial, sans-serif;
}
input[type="radio"] + label span {
display:inline-block;
width:19px;
height:19px;
margin:-2px 10px 0 0;
vertical-align:middle;
background:url('images/radio.png') -38px top no-repeat;
cursor:pointer;
}
input[type="radio"]:checked + label span {
background:url('images/radio.png') -57px top no-repeat;
}
</style>
</head>
<body>
<div class="row">
<center><h2>Reservation Summary</h2></center>
<div class="col-sm-4"></div>
<div class="col-sm-4">
<div style="background-color: #ccc; width: 450px" class ="container">
<!-- <div class="well" > -->
<h3 style="text-align:center;">Guest Detail</h3>
<font size="4">Name: </font><label><?php echo $info['GuestFName']." ".$info['GuestMName']." ".$info['GuestLName']; ?></label><br />
<font size="4">Address: </font><label><?php echo $info['Address'];?></label><br />
<font size="4">Email: </font><label><?php echo $info['Email'];?></label><br />
<font size="4">Mobile No: </font><label><?php echo $info['ContactNumber'];?></label><br />
<font size="4">Guest(s): </font><label><?php echo $_SESSION['adult'];?></label><br />
<?php if ($_SESSION['adultadd'] != ' '){ ?>
<font size="4">Additional number of Guest(s): </font><label><?php echo $_SESSION['adultadd'];?></label><br />
<?php } ?>
<h3 style="text-align:center;">Room Details</h3><br>
<font size="4">Check-in Date: </font><label><?php echo $_SESSION['from'];?></label><br />
<font size="4">Check-out Date: </font><label><?php echo $_SESSION['to'];?></label><br />
<font size="4">Nights: </font><label><?php echo $_SESSION['totalnights'];?></label><br />
<font size="4">Rooms to Reserve:</font><br />
<?php
if($_SESSION['presSNum'] == ' '){
}else{
echo " <label>" . $_SESSION['presSNum']."x" ." ". $_SESSION['rmspName'] . " = " .'₱'. number_format($_SESSION['presSReservedTotal']) . " Per night</label><br />";
$addpS = $_SESSION['presSReservedTotal'];
}
if($_SESSION['presDNum'] == ' '){
}else{
echo " <label>" . $_SESSION['presDNum']."x" ." " . $_SESSION['rmdpName']. " = " . '₱'.number_format($_SESSION['presDReservedTotal'])." Per night</label><br />";
$addpD = $_SESSION['presDReservedTotal'];
}
if($_SESSION['supSNum'] == ' '){
}else{
echo " <label>" . $_SESSION['supSNum']."x". " " . $_SESSION['rmssName'] . " = " .'₱'. number_format($_SESSION['supSReservedTotal'])." Per night</label><br />";
$addsS = $_SESSION['supSReservedTotal'];
}
?>
<font size="3"> --------------------------------------------------------------------</font><br />
<?php
$nights = $_SESSION['totalnights'];
$total = ($addpS + $addpD + $addsS + $addsD) * $nights;
echo "<label> "."₱" .number_format($total). " For "."$nights night/s</label><br /><br />";
$addRate = $_SESSION['adultadd'] * 800 * $nights; ?>
<font size="4">Additional Guest:</font><br />
<?php
if($_SESSION['adultadd'] != ' ')
echo " <label>".$_SESSION['adultadd']." x ₱800.00 = ".'₱'.number_format($addRate)." For $nights night</label><br><br>";
$ttotal = $total + $addRate ;
$down = $ttotal / 2;
$_SESSION['totalroom'] = $ttotal;
echo "<font size='5'>Total Room Payment: <label></font>";
echo "<font size='4' color='#4E8975'>".'₱'.number_format($ttotal). " For " . $nights . " Night/s </font>";?></label><br />
<?php
if ($payment == 'Down Payment') {
echo "<font size='5'>Down Payment: <label></font>";
echo "<font size='4' color='#4E8975'>".'₱'.number_format($down) . " </font>";
}
?></label><br />
<br /><br /><br />
<div align="right">
<a href="#confirm" class="btn btn-success" value="Confirm" data-toggle="modal">Confirm</a>
</div>
<?php if($modeofpayment == 'Bank Deposit'){ ?>
<div class="modal fade" id="confirm" >
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal" aria-label="Cancel"><span aria-hidden="true">×</span></button>
<h4 align="center"><i class="glyphicon glyphicon-question-sign"></i> Upon confirmation, the bank details will be sent on your E-mail account.<br /><br /> Confirm Reservation? </h4>
</div>
<div class="modal-footer">
<form method="post" action="addreservation.php" name="submitval" id="submitval" class="once">
<a class="btn btn-default" data-dismiss="modal">Cancel</a>
<input type="submit" class="btn btn-success" id="reserve" name="reserve" value="Reserve" ondblclick="this.disabled=true;" />
</form>
</div>
</div>
</div>
</div>
<?php } else { ?>
<div class="modal fade" id="confirm" >
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal" aria-label="Cancel"><span aria-hidden="true">×</span></button>
<h4 align="center"><i class="glyphicon glyphicon-question-sign"></i> Upon confirmation, You will be redirected to Paypal for your payment transaction.<br /><br /> Confirm Reservation? </h4>
</div>
<div class="modal-footer">
<?php $paypal_url='https://www.sandbox.paypal.com/cgi-bin/webscr'; // Test Paypal API URL
$paypal_id='casadetobiasmountainresort@gmail.com'; // Business email ID
$ttlnights = $_SESSION['totalnights'];
if (($ttlrms >= 15) || ($ttlnights >= 15)) {
$lessAmount = $ttotal * .10;
$DscntdAmount = $ttotal - $lessAmount;
$_SESSION['amount'] = $DscntdAmount;
} else {
$DscntdAmount = $ttotal;
$_SESSION['amount'] = $DscntdAmount;
}
if ($payment = 'Down Payment'){
$DscntdAmount = $down;
$_SESSION['paidamount'] = $DscntdAmount;
} else {
$_SESSION['paidamount'] = $_SESSION['amount'];
}
?>
<div class="product">
<div class="btn">
<form action="<?php echo $paypal_url; ?>" method="post" name="frmPayPal1" id="submitval" class="once">
<a class="btn btn-default" data-dismiss="modal" id="submitval" class="once">Cancel</a>
<input type="hidden" name="business" value="<?php echo $paypal_id; ?>">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="Casa de Tobias Mountain Resort Payment">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="credits" value="510">
<input type="hidden" name="userid" value="1">
<input type="hidden" name="amount" value="<?php echo $DscntdAmount; ?>">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="PHP">
<input type="hidden" name="handling" value="0">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="cbt" value="Please Click Here to Complete Payment">
<input type="hidden" name="cancel_return" value="http://localhost/casadetobiasofficial/Guest/summary.php">
<input type="hidden" name="return" value="http://localhost/casadetobiasofficial/Guest/GuestPaypal/success.php">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="submit" class="btn btn-success" id="reserve" name="submit" value="Confirm" alt="PayPal - The safer, easier way to pay online!" ondblclick="this.disabled=true;" />
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</body>
</html>
| 26,051
|
https://github.com/MCLifeLeader/CS165/blob/master/Final/UTF8.ged
|
Github Open Source
|
Open Source
|
MIT
| 2,023
|
CS165
|
MCLifeLeader
|
GEDCOM
|
Code
| 20,000
| 43,629
|
0 HEAD 1 SOUR PAF 2 NAME Personal Ancestral File 2 VERS 5.1.12.0 2 CORP The Church of Jesus Christ of Latter-day Saints 3 ADDR 50 East North Temple Street 4 CONT Salt Lake City, UT 84150 4 CONT USA 1 DEST Other 1 DATE 15 Jan 2002 2 TIME 22:30:05 1 FILE UTF8.ged 1 GEDC 2 VERS 5.5 2 FORM LINEAGE-LINKED 1 CHAR UTF-8 1 LANG English 1 SUBM @SUB1@ 0 @SUB1@ SUBM 1 NAME Mike Carey 1 ADDR 9810 42nd ave sw 2 CONT seattle, wa. 98136 1 CTRY United States 1 PHON 206 937 6490 0 @I1@ INDI 1 NAME Lawrence Eugene /Wittsell/ 2 SURN Wittsell 2 GIVN Lawrence Eugene 2 NICK Larry 1 SEX M 1 BIRT 2 DATE 2 Mar 1929 2 PLAC Bigcreek Twp.,Neosho,Kansas 2 SOUR @S1@ 1 BAPL 2 DATE 4 Feb 1950 2 SOUR @S2@ 2 PLAC Memphis,TN 1 ENDL 2 DATE 19 Jun 1951 2 TEMP SGEOR 1 _UID B12C78AFA788DB41B1EB8F19E5AD79A24095 1 FAMS @F1@ 1 FAMC @F2@ 1 SLGC 2 FAMC @F2@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE Nickname: Lawrence goes by the name of Larry. 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I2@ INDI 1 NAME Elsie Ruth /Wallace/ 2 SURN Wallace 2 GIVN Elsie Ruth 1 SEX F 1 BIRT 2 DATE 28 Apr 1932 2 PLAC Ventura,Ventura,California 2 SOUR @S1@ 1 REFN 1 1 BAPL 2 DATE 14 Nov 1942 2 SOUR @S2@ 2 PLAC St. George,UT 1 ENDL 2 DATE 19 Jun 1951 2 TEMP SGEOR 1 _UID 5278723FB5B9C942A3E65B65B4EDAC931D31 1 FAMS @F1@ 1 FAMC @F3@ 1 SLGC 2 FAMC @F3@ 2 DATE 29 Dec 1971 2 TEMP LANGE 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I3@ INDI 1 NAME Cherrin Olympia /Wittsell/ 2 SURN Wittsell 2 GIVN Cherrin Olympia 1 SEX F 1 BIRT 2 DATE 2 Sep 1952 2 PLAC Port Hueneme,Ventura,California 2 SOUR @S1@ 1 BAPL 2 DATE 14 Jan 1961 2 SOUR @S2@ 1 ENDL 2 DATE 1 Sep 1972 2 TEMP OAKLA 1 _UID 34C59863A6B3D8498BAC84A2EF669DFFBC11 1 FAMS @F4@ 1 FAMC @F1@ 1 SLGC 2 FAMC @F1@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I4@ INDI 1 NAME Laura Jean /Wittsell/ 2 SURN Wittsell 2 GIVN Laura Jean 1 SEX F 1 BIRT 2 DATE 22 May 1954 2 PLAC Provo,Utah,Utah 2 SOUR @S1@ 1 BAPL 2 DATE 17 Mar 1963 2 SOUR @S2@ 1 ENDL 2 DATE 20 Oct 1979 2 TEMP IFALL 1 _UID ECC391034071F64DA62A2D3C09490B400D53 1 FAMS @F5@ 1 FAMC @F1@ 1 SLGC 2 FAMC @F1@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I5@ INDI 1 NAME Lorna Ralene /Wittsell/ 2 SURN Wittsell 2 GIVN Lorna Ralene 1 SEX F 1 BIRT 2 DATE 23 Oct 1957 2 PLAC Manhattan,Riley,Kansas 2 SOUR @S1@ 1 BAPL 2 DATE 5 Mar 1966 2 SOUR @S2@ 1 ENDL 2 DATE 14 Feb 1987 2 TEMP OAKLA 1 _UID 5E326F2C9690D64CBC9137D7E9C9E1AB0C1C 1 FAMS @F6@ 1 FAMS @F7@ 1 FAMC @F1@ 1 SLGC 2 FAMC @F1@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I6@ INDI 1 NAME Karna Kay /Wittsell/ 2 SURN Wittsell 2 GIVN Karna Kay 1 SEX F 1 BIRT 2 DATE 3 Apr 1959 2 PLAC Manhattan,Riley,Kansas 2 SOUR @S1@ 1 BAPL 2 DATE 3 Jun 1967 2 SOUR @S2@ 1 ENDL 2 DATE 17 Nov 1978 2 TEMP MANTI 1 _UID 64CF91F6E4A4C3469E9F68B023D976798B42 1 FAMS @F8@ 1 FAMC @F1@ 1 SLGC 2 FAMC @F1@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I7@ INDI 1 NAME Paul Moroni /Wittsell/ 2 SURN Wittsell 2 GIVN Paul Moroni 1 SEX M 1 BIRT 2 DATE 21 Mar 1962 2 PLAC Manhattan,Riley,Kansas 2 SOUR @S1@ 1 BAPL 2 DATE 1970 2 SOUR @S2@ 1 _UID AE5FEE8D0348A64DBE495CC3864C4FFB0886 1 FAMS @F9@ 1 FAMC @F1@ 1 SLGC 2 FAMC @F1@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I8@ INDI 1 NAME Christopher Ammon /Wittsell/ 2 SURN Wittsell 2 GIVN Christopher Ammon 2 NICK Kit 1 SEX M 1 BIRT 2 DATE 20 Mar 1971 2 PLAC Modesto,Stanislaus,California 2 SOUR @S1@ 1 BAPL 2 DATE 5 Jan 1980 2 SOUR @S2@ 1 ENDL 2 DATE 24 Oct 1990 2 TEMP WASHI 1 _UID 55D0152728C94E41B1246409B54785EA8E1F 1 FAMS @F10@ 1 FAMC @F1@ 1 SLGC 2 FAMC @F1@ 2 STAT BIC 1 NOTE Nickname: Kit 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I9@ INDI 1 NAME Dan Stephen /Pugmire/ 2 SURN Pugmire 2 GIVN Dan Stephen 1 SEX M 1 BIRT 2 DATE 17 Sep 1949 2 PLAC Seattle,King,Washington 2 SOUR @S1@ 1 BAPL 2 DATE 2 Nov 1957 2 SOUR @S2@ 1 ENDL 2 DATE 18 Oct 1968 2 TEMP SLAKE 1 _UID 06525634B1CE6849A0EE0C2DD4D17403F5A6 1 FAMS @F4@ 1 SLGC 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I10@ INDI 1 NAME Stephen Lawrence /Pugmire/ 2 SURN Pugmire 2 GIVN Stephen Lawrence 1 SEX M 1 BIRT 2 DATE 1 Dec 1974 2 PLAC Seattle,King,Washington 2 SOUR @S1@ 1 BAPL 2 DATE 4 Dec 1982 2 SOUR @S2@ 1 _UID A3D73789AEB8294785D38A2256B904CAF111 1 FAMS @F11@ 1 FAMC @F4@ 1 SLGC 2 FAMC @F4@ 2 STAT BIC 1 NOTE !Birth certificate 1 CHAN 2 DATE 22 Oct 2000 3 TIME 01:00:00 0 @I11@ INDI 1 NAME David Gregory /Pugmire/ 2 SURN Pugmire 2 GIVN David Gregory 1 SEX M 1 BIRT 2 DATE 22 Jun 1977 2 PLAC Seattle,King,Washington 2 SOUR @S1@ 1 BAPL 2 DATE 6 Jul 1985 2 SOUR @S2@ 1 _UID 57F16F60BFAEF8459A5FAC5050F9CCA06B70 1 FAMC @F4@ 1 SLGC 2 FAMC @F4@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I12@ INDI 1 NAME Christopher Dale /Pugmire/ 2 SURN Pugmire 2 GIVN Christopher Dale 1 SEX M 1 BIRT 2 DATE 9 Dec 1979 2 PLAC Monroe,Snohomish,Washington 2 SOUR @S1@ 1 BAPL 2 DATE 26 Dec 1987 2 SOUR @S2@ 1 _UID F544782D83698743B69262697D8BAAF34C50 1 FAMC @F4@ 1 SLGC 2 FAMC @F4@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I13@ INDI 1 NAME Justin Michael /Pugmire/ 2 SURN Pugmire 2 GIVN Justin Michael 1 SEX M 1 BIRT 2 DATE 1 Apr 1982 2 PLAC Monroe,Snohomish,Washington 2 SOUR @S1@ 1 BAPL 2 DATE 21 Apr 1990 2 SOUR @S2@ 1 _UID 8144582A115EB642AA27DE0D6AE48DF53A7B 1 FAMC @F4@ 1 SLGC 2 FAMC @F4@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I14@ INDI 1 NAME Angela Elizabeth /Pugmire/ 2 SURN Pugmire 2 GIVN Angela Elizabeth 1 SEX F 1 BIRT 2 DATE 29 May 1985 2 PLAC Everett,Snohomish,Washington 2 SOUR @S1@ 1 BAPL 2 SOUR @S2@ 1 _UID A19456D72F45A349ACFE58B3C4E65333A7F1 1 FAMC @F4@ 1 SLGC 2 FAMC @F4@ 2 STAT BIC 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I15@ INDI 1 NAME John Edward /Wittsell/ 2 SURN Wittsell 2 GIVN John Edward 1 SEX M 1 BIRT 2 DATE 8 Jan 1879 2 PLAC Paxton,Ford,Illinois 1 DEAT 2 DATE 4 Sep 1962 2 PLAC Erie,Neosho,Kansas 1 BURI 2 DATE 7 Sep 1962 2 PLAC Mt. Moriah Cemet,Neosho,Kansas 1 BAPL 2 DATE 15 Aug 1972 2 TEMP OAKLA 1 ENDL 2 DATE 15 Aug 1972 2 TEMP OAKLA 1 _UID 9835441835654D47BE32E3986B7CD96CEEB5 1 FAMS @F12@ 1 FAMS @F2@ 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE 8 Jul 1976 2 TEMP OGDEN 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 22; Friends Home Lutheran Church; Savonburg 2 CONC , Kansas. This record lists his name as Jon Edwing. 2 CONT 2 CONT !DEATH:Death certificate;Neosho County, Kansas. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I16@ INDI 1 NAME Edna Iona /Johnson/ 2 SURN Johnson 2 GIVN Edna Iona 1 SEX F 1 BIRT 2 DATE 21 Mar 1891 2 PLAC Big Creek Twp.,Neosho,Kansas 1 CHR 2 DATE 14 May 1891 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 15 Sep 1978 2 PLAC Chanute,Neosho,Kansas 1 BURI 2 DATE 18 Sep 1978 2 PLAC Mt. Moriah Cemetery,Neosho Co.,Kansas 1 BAPL 2 DATE 6 Apr 1994 2 TEMP PROVO 1 ENDL 2 DATE 6 Apr 1994 2 TEMP PROVO 1 _UID 6BD9F371BAC15C4193147D689488FF016853 1 FAMS @F2@ 1 FAMS @F14@ 1 FAMC @F15@ 1 SLGC 2 FAMC @F15@ 2 STAT SUBMITTED 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 3; & Vol. 2, -1958;p. 21; Friends Home Luther 2 CONC an Church, Savonburg, Kansas. This record shows she was confirmed 15/4/06. 2 CONT !MARRIAGE: Marriage Certificate 2 CONT !DEATH: Death Certificate; After a week of pneumonia she died of a heart attack. 2 CONT BURIAL:The Mount Mariah Cemetery is one mile south of Savonburg, Kansas. 2 CONT PROXIES: Baptism-Wendi Lee;Initiatories & Endowment-Ruth Wittsell 1 CHAN 2 DATE 2 Aug 1999 3 TIME 01:00:00 0 @I17@ INDI 1 NAME Elsie Viola /Wittsell/ 2 SURN Wittsell 2 GIVN Elsie Viola 1 SEX F 1 BIRT 2 DATE 15 May 1911 2 PLAC Savonburg,Allen,Kansas 1 CHR 2 DATE 30 Jun 1912 2 PLAC Savonburg,Allen,Kansas 1 _UID 7F5FB10DCC679544BC0AB76D25A91AB63015 1 FAMS @F16@ 1 FAMS @F17@ 1 FAMC @F2@ 1 NOTE !BIRTH:Church records:Church Register, Vol 2 - 1958; p. 58;Friends Home Lutheran Church, Savo 2 CONC nburg, Kansas. 2 CONT !MARRIAGE: To Emery Kelsey, personal knowledge of Elsie Viola Wittsell; 2 CONT To Gilbert Hendrick, certificate 2 CONT There were no children from either marriage. 1 CHAN 2 DATE 2 Aug 1999 3 TIME 01:00:00 0 @I18@ INDI 1 NAME Hannah Delia /Wittsell/ 2 SURN Wittsell 2 GIVN Hannah Delia 1 SEX F 1 BIRT 2 DATE 16 Feb 1914 2 PLAC Dahinda,Knox,Illinois 1 _UID A0C5BB5812B0E148A4F11B9124A90949C30B 1 FAMS @F18@ 1 FAMS @F19@ 1 FAMS @F20@ 1 FAMC @F2@ 1 NOTE !BIRTH: Personal knowledge of mother, Edna Iona Johnson Wittsell 2 CONT !MARRIAGE: To Rexford Smith, Personal knowledge of Hannah Delia Wittsell; 2 CONT To Everett Maxwell and Mervin Gervais, Certificates 1 CHAN 2 DATE 2 Aug 1999 3 TIME 01:00:00 0 @I19@ INDI 1 NAME daughter /Wittsell/ 2 SURN Wittsell 2 GIVN daughter 1 SEX F 1 BIRT 2 DATE 21 Mar 1916 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 22 Mar 1916 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID ACEBF00DAE7F6347BA4C503F67514F4A51BE 1 FAMC @F2@ 1 SLGC 2 FAMC @F2@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE BIRTH-DEATH: Personal knowledge of mother, Edna Iona Johnson Wittsell 1 CHAN 2 DATE 2 Aug 1999 3 TIME 01:00:00 0 @I20@ INDI 1 NAME Ruby Louise /Wittsell/ 2 SURN Wittsell 2 GIVN Ruby Louise 1 SEX F 1 BIRT 2 DATE 9 Jul 1918 2 PLAC Savonburg,Allen,Kansas 1 _UID A9800CF2EA3DD4478D8A7937F3304DD77744 1 FAMS @F21@ 1 FAMC @F2@ 1 NOTE !BIRTH: Personal knowledge of mother, Edna Iona Johnson Wittsell 2 CONT !MARRIAGE: Certificate 1 CHAN 2 DATE 2 Aug 1999 3 TIME 01:00:00 0 @I21@ INDI 1 NAME Christine Olympia /Wittsell/ 2 SURN Wittsell 2 GIVN Christine Olympia 1 SEX F 1 BIRT 2 DATE 24 Nov 1920 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 9 Jan 1921 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID CA61E6D51C017F4CA0B88FF56A88079C3FC6 1 FAMC @F2@ 1 SLGC 2 FAMC @F2@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH-DEATH: Personal knowledge of mother, Edna Iona Johnson Wittsell 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I22@ INDI 1 NAME Leola Evaline /Wittsell/ 2 SURN Wittsell 2 GIVN Leola Evaline 1 SEX F 1 BIRT 2 DATE 19 Apr 1922 2 PLAC Savonburg,Allen,Kansas 1 _UID 272BFBD3E9673946B4A78D5B4B3449080217 1 FAMS @F22@ 1 FAMS @F23@ 1 FAMC @F2@ 1 NOTE !BIRTH: Personal knowledge of mother, Edna Iona Johnson Wittsell 2 CONT !MARRIAGE: To Winfred Spurgeon and to Theodore Eissler, Jr., Certificates 1 CHAN 2 DATE 2 Aug 1999 3 TIME 01:00:00 0 @I23@ INDI 1 NAME Harold Edward /Wittsell/ 2 SURN Wittsell 2 GIVN Harold Edward 1 SEX M 1 BIRT 2 DATE 10 Sep 1924 2 PLAC Savonburg,Allen,Kansas 1 _UID 7151F01CE7E5784B8BFB908EE510B975245F 1 FAMS @F24@ 1 FAMC @F2@ 1 NOTE !BIRTH: Certificate 2 CONT !MARRIAGE: Certificate 1 CHAN 2 DATE 2 Aug 1999 3 TIME 01:00:00 0 @I24@ INDI 1 NAME Paul Revere /Wittsell/ 2 SURN Wittsell 2 GIVN Paul Revere 1 SEX M 1 BIRT 2 DATE 19 Dec 1931 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 26 Mar 1999 2 PLAC Wichita,Sedgwick,Kansas 1 BURI 2 PLAC His ranch,Sedan,Kansas 1 _UID 96E8F1E8B857904BB477462E7E17B6618C03 1 FAMS @F25@ 1 FAMS @F26@ 1 FAMC @F2@ 1 NOTE !BIRTH: Birth certificate 2 CONT !MARRIAGE: To Ruby Kiger and to Jean Cavanaugh, Marriage certificates 2 CONT !DEATH:Phone call from Paul's son, Mark, telling me he died at 8:16 pm Friday evening March 2 2 CONC 6 at home. He died of severe cancer in his system. He was cremated and his ashes buried o 2 CONC n his property adjacent to the Scout Ranch near Sedan, Kansas. 1 CHAN 2 DATE 30 Jun 1999 3 TIME 01:00:00 0 @I25@ INDI 1 NAME Raleigh Lorn /Wallace/ 2 SURN Wallace 2 GIVN Raleigh Lorn 1 SEX M 1 BIRT 2 DATE 9 Dec 1906 2 PLAC Thatcher,Bannock,Idaho 1 DEAT 2 DATE 8 Mar 1966 2 PLAC Santa Cruz Islan,California 1 BURI 2 DATE 12 Mar 1966 2 PLAC Ivy Lawn Cemet,Ventura,California 1 REFN 2 1 BAPL 2 DATE 6 Jan 1918 1 ENDL 2 DATE 29 Aug 1959 2 TEMP LANGE 1 _UID E21AE0C2BFC36745AFBF7BC696A709FBBC53 1 FAMS @F3@ 1 FAMC @F27@ 1 SLGC 2 FAMC @F27@ 2 STAT BIC 1 NOTE !BIRTH:Personal knowledge of his mother, Lucy Cole Wallace Johnson. 2 CONT 2 CONT !MARRIAGE-DEATH:Official certificates 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I26@ INDI 1 NAME Elsie May /Harrison/ 2 SURN Harrison 2 GIVN Elsie May 1 SEX F 1 BIRT 2 DATE 21 Oct 1907 2 PLAC Central,Bannock,Idaho 1 DEAT 2 DATE 17 Mar 1995 2 PLAC provo,Utah,Utah 1 BURI 2 DATE 22 Mar 1995 2 PLAC provo,Utah,Utah 1 REFN 3 1 BAPL 2 DATE 29 Apr 1916 1 ENDL 2 DATE 29 Aug 1959 2 TEMP LANGE 1 _UID 203D95B6D862B34198DBBB368C668A8C42C3 1 FAMS @F3@ 1 SLGC 2 STAT BIC 1 NOTE !BIRTH-MARRIAGE-DEATH:Official certificates 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I27@ INDI 1 NAME Dorothy Jean /Wallace/ 2 SURN Wallace 2 GIVN Dorothy Jean 1 SEX F 1 BIRT 2 DATE 16 May 1927 2 PLAC Los Angeles,Los Angeles,California 1 _UID 96D6D6FA9B29C347B6EFADD5C24EC6161D78 1 FAMS @F28@ 1 FAMC @F3@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I28@ INDI 1 NAME Vera /Wallace/ 2 SURN Wallace 2 GIVN Vera 1 SEX F 1 BIRT 2 DATE 30 Jan 1929 2 PLAC Ventura,Ventura,California 1 DEAT 2 DATE 30 Jan 1929 2 PLAC Ventura,Ventura,California 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 245E66C06E1DBD4CBC91BF245CBB58532E34 1 FAMC @F3@ 1 SLGC 2 FAMC @F3@ 2 DATE 29 Aug 1959 2 TEMP LANGE 1 NOTE !BIRTH-DEATH:Personal knowledge of mother, Elsie May Harrison Wallace. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I29@ INDI 1 NAME Lorna May /Wallace/ 2 SURN Wallace 2 GIVN Lorna May 1 SEX F 1 BIRT 2 DATE 13 Jul 1930 2 PLAC Ventura,Ventura,California 1 DEAT 2 DATE 28 Oct 1930 2 PLAC Ventura,Ventura,California 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID C0110E9094DD0C4F97BC8BF5F64EE5FF3633 1 FAMC @F3@ 1 SLGC 2 FAMC @F3@ 2 DATE 29 Aug 1959 2 TEMP LANGE 1 NOTE !BIRTH-DEATH:Personal knowledge of mother, Elsie May Harrison Wallace. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I30@ INDI 1 NAME Frances /Wallace/ 2 SURN Wallace 2 GIVN Frances 1 SEX F 1 BIRT 2 DATE 13 Nov 1933 2 PLAC Ventura,Ventura,California 1 BAPL 2 DATE 14 Nov 1941 1 ENDL 2 DATE 13 Dec 1956 1 _UID 6CA39B9EACF30D4996E54B69B565ED3CAF3C 1 FAMC @F3@ 1 SLGC 2 FAMC @F3@ 2 DATE 29 Aug 1959 2 TEMP LANGE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I31@ INDI 1 NAME Faye /Wallace/ 2 SURN Wallace 2 GIVN Faye 1 SEX F 1 BIRT 2 DATE 26 May 1935 2 PLAC Ventura,Ventura,California 1 BAPL 2 DATE 14 Jul 1942 1 ENDL 2 DATE 5 Oct 1954 1 _UID D1599F3282747F4C97638F5A6DC2EBC27B54 1 FAMC @F3@ 1 SLGC 2 FAMC @F3@ 2 DATE 29 Aug 1959 2 TEMP LANGE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I32@ INDI 1 NAME Nancy Carroll /Wallace/ 2 SURN Wallace 2 GIVN Nancy Carroll 1 SEX F 1 BIRT 2 DATE 11 Jul 1939 2 PLAC Ventura,Ventura,California 1 BAPL 2 DATE 3 Jan 1948 1 ENDL 2 DATE 15 Dec 1964 1 _UID E184F57BDBF62A4FA7A4D8C7C0863C8F1AF2 1 FAMC @F3@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I33@ INDI 1 NAME Andrew Olson /Wittsell/ 2 SURN Wittsell 2 GIVN Andrew Olson 1 SEX M 1 BIRT 2 DATE 24 Dec 1839 2 PLAC Gammalstorp,Gammalstorp,Blekinge,Sweden 1 CHR 2 DATE 26 Dec 1839 2 PLAC Gammalstorp,Gammalstorp,Blekinge,Sweden 1 DEAT 2 DATE 18 Feb 1919 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE 19 Feb 1919 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 ENDL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 _UID 0A2F2C08E6A29B4CB2ADC9D4FA3995E88873 1 FAMS @F13@ 1 FAMC @F29@ 1 SLGC 2 FAMC @F29@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH: Gammalstorp Parish records;Födde;1815-1857;FHL film 0086134;In-och Utflyttningslängd; 2 CONC 1846-50;p.148 & .211; FHL film 0086132;Husförhörslängd;FHL film 0198297;Gammalstorp, Blekinge 2 CONC , Sweden. 2 CONT 2 CONT !NAME:Andrew originally went by the name, Anders Olsson, but added the name of Wittsell abou 2 CONC t 1854-55 when he went into the Swedish Navy; Gammalstorp Parish records;Husförhörslängd;1854 2 CONC -57;FHL film 0198295; Hägnad, Gammalstorp, Blekinge, Sweden. He was married under the name o 2 CONC f Anders Olsson Wittsell. He is listed that way in the Church Register; Friends Home Luthera 2 CONC n Church; Savonburg, Allen, Kansas. Eventually he went by the name of Andrew O. Wittsell. 2 CONT 2 CONT !DEATH: Personal knowledge of son, John Edward Wittsell, given in 1954. 2 CONT 2 CONT !BURIAL:Cemetery Record;1919;Swedish Cemetery, Elsmore Twp., Allen Co., Kansas. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I34@ INDI 1 NAME Elsie /Nelson/ 2 SURN Nelson 2 GIVN Elsie 1 SEX F 1 BIRT 2 DATE 16 Dec 1838 2 PLAC Gammalstorp,Gammalstorp,Blekinge,Sweden 1 CHR 2 DATE 23 Dec 1838 2 PLAC Gammalstorp,Gammalstorp,Blekinge,Sweden 1 DEAT 2 DATE 19 Mar 1913 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE 21 Mar 1913 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 ENDL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 _UID 7032F0C89B0A74439F40A63737EA805A6D6E 1 FAMS @F13@ 1 FAMC @F30@ 1 SLGC 2 FAMC @F30@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH:Gammalstorp Parish records;Husförhörslängd;1834-41;p.222; FHL film 0086131;and Födde;1 2 CONC 833-57;1838 #78;FHL film 0086134; Gammalstorp, Blekinge, Sweden. Also, see Church Register;19 2 CONC 08-10;Friends Home Lutheran Church; Savonburg, Allen, Kansas. 2 CONT 2 CONT !NAME:Elsie Nelson was born Elsie Nilsdotter. She is sometimes listed as Elsa. Her maiden n 2 CONC ame was listed as Nelson some time after moving to Kansas. 2 CONT 2 CONT !BURIAL:Cemetery Record;1913;Swedish Cemetery, Elsmore Twp., Allen Co., Kansas. This recor 2 CONC d shows her name as Elsa. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I35@ INDI 1 NAME Swan /Wittsell/ 2 SURN Wittsell 2 GIVN Swan 1 SEX M 1 BIRT 2 DATE 25 Dec 1862 2 PLAC Hägnad,Gammalstorp,Blekinge,Sweden 1 CHR 2 DATE 1 Jan 1863 2 PLAC Hägnad,Gammalstorp,Blekinge,Sweden 1 BAPL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 ENDL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 _UID 6443C119FA7FCD40A23A0D695F4DCCAE7F19 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH:Gammalstorp Parish records:Births;1857-1887;FHL film 0198303; Gammalstorp, Blekinge, S 2 CONC weden. 2 CONT 2 CONT !NAME:Swan was originally named Sven and was so listed on the Church Register - 1908; p. 22 2 CONC ; Friends Home Lutheran Church, Savonburg, Kansas. 2 CONT 2 CONT Swan left home at the age of 21 and was last heard of around Lindsborg, Kansas. He had a tea 2 CONC m and new wagon and was believed to be planning to work on a railroad. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I36@ INDI 1 NAME Carrie (Kjersta) /Wittsell/ 2 SURN Wittsell 2 GIVN Carrie (Kjersta) 1 SEX F 1 BIRT 2 DATE 1 Jun 1865 2 PLAC Hägnad,Gammalstorp,Blekinge,Sweden 1 CHR 2 DATE 11 Jun 1865 2 PLAC Hägnad,Gammalstorp,Blekinge,Sweden 1 DEAT 2 DATE 12 Jul 1953 2 PLAC Detroit,Wayne,Michigan 1 BURI 2 DATE 15 Jul 1953 2 PLAC Edon,Williams,Ohio 1 BAPL 2 DATE 13 Jun 1955 2 TEMP SLAKE 1 ENDL 2 DATE 20 Nov 1956 2 TEMP SLAKE 1 _UID B8BF2B3817FAD34E9FCB341C7848760400A2 1 FAMS @F31@ 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE BEF 1970 1 NOTE !BIRTH: Gammalstorp Parish records;Births;1857-1887;FHL film 0198303; Gammalstorp, Blekinge 2 CONC , Sweden. 2 CONT 2 CONT !NAME:Carrie was born under the name KJERSTA and was listed as Carolina in the Church Registe 2 CONC r - 1908; p. 22; of the Friends Home Lutheran Church, Savonburg, Kansas. She was always call 2 CONC ed Carrie. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I37@ INDI 1 NAME Olaf /Wittsell/ 2 SURN Wittsell 2 GIVN Olaf 1 SEX M 1 BIRT 2 DATE 16 Nov 1867 2 PLAC Hägnad,Gammalstorp,Blekinge,Sweden 1 CHR 2 DATE 17 Nov 1867 2 PLAC Hägnad,Gammalstorp,Blekinge,Sweden 1 DEAT 2 DATE ABT 1869 2 PLAC at sea 1 BURI 2 DATE ABT 1869 2 PLAC at sea 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 3E7B586868B48A46AEC007A42E0673E20743 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH: Gammalstorp Parish records;Births;1857-1887;FHL film 0198303; Gammalstorp, Blekinge 2 CONC , Sweden. 2 CONT 2 CONT Olaf died as a young child about 2 years old on board ship enroute to the United States of Am 2 CONC erica and is believed to have been buried at sea. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I38@ INDI 1 NAME Hannah Olive /Wittsell/ 2 SURN Wittsell 2 GIVN Hannah Olive 1 SEX F 1 BIRT 2 DATE 11 Jul 1870 2 PLAC Paxton,Ford,Illinois 1 DEAT 2 DATE Aug 1961 2 PLAC Iola,Allen,Kansas 1 BAPL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 ENDL 2 STAT SUBMITTED 1 _UID 8962638ACA183944824A53966A048817F9A9 1 FAMS @F32@ 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 22; Friends Home Lutheran Church, Savonburg 2 CONC , Kansas. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I39@ INDI 1 NAME Hilda /Wittsell/ 2 SURN Wittsell 2 GIVN Hilda 1 SEX F 1 BIRT 2 DATE 19 Dec 1874 2 PLAC Paxton,Ford,Illinois 1 DEAT 2 DATE Dec 1918 1 BURI 2 DATE 27 Dec 1918 2 PLAC Mt. Moriah Cemet,Neosho,Kansas 1 BAPL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 ENDL 2 STAT SUBMITTED 1 _UID 957BFB6B01E12147874CA0AA16E176EF3962 1 FAMS @F33@ 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH:Church records:Church Register - 1908;p. 22; Friends Home Lutheran Church; Savonburg 2 CONC , Kansas. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I40@ INDI 1 NAME Oscar R /Wittsell/ 2 SURN Wittsell 2 GIVN Oscar R 1 SEX M 1 BIRT 2 DATE 7 Aug 1876 2 PLAC Paxton,Ford,Illinois 1 DEAT 2 DATE 11 May 2 PLAC Chanute,Neosho,Kansas 1 BURI 2 DATE AFT 1930 2 PLAC Swedish Cemet,Allen,Kansas 1 BAPL 2 DATE 21 Jun 1994 2 TEMP PROVO 1 ENDL 2 STAT SUBMITTED 1 _UID 4C3980FC6468A84D906518AA7336AE9464D3 1 FAMS @F34@ 1 FAMS @F35@ 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 22; Friends Home Lutheran Church; Savonburg 2 CONC , Kansas. This record lists his name as OSKAR. 2 CONT 2 CONT !BURIAL:Cemetery Records;1931;Swedish Cemetery, Elsmore Twp., Allen Co., Kansas. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I41@ INDI 1 NAME Monie W /Wittsell/ 2 SURN Wittsell 2 GIVN Monie W 1 SEX M 1 BIRT 2 DATE 4 Apr 1882 2 PLAC Elsmore,Allen,Kansas 1 DEAT 2 DATE 16 Jan 1961 2 PLAC Erie,Neosho,Kansas 1 BURI 2 DATE 18 Jan 1961 2 PLAC Stark,Neosho,Kansas 1 BAPL 2 DATE 6 Jan 1962 1 ENDL 2 DATE 8 Feb 1962 1 _UID 29E609F9D1E0CD40B454B0C34BDE99E2EE90 1 FAMS @F36@ 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE BEF 1970 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 22; Friends Home Lutheran Church; Savonburg 2 CONC , Kansas. This record lists his name as Emanuel. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I42@ INDI 1 NAME Hester Amanda /Wittsell/ 2 SURN Wittsell 2 GIVN Hester Amanda 1 SEX F 1 BIRT 2 DATE 28 Aug 1885 2 PLAC Elsmore,Allen,Kansas 1 DEAT 2 DATE 22 Nov 1888 2 PLAC Elsmore,Allen,Kansas 1 BURI 2 DATE Nov 1888 2 PLAC Swedish Cemet,Allen,Kansas 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID DD8477314377DF47ABF97016A904EA46F000 1 FAMC @F13@ 1 SLGC 2 FAMC @F13@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 22; Friends Home Lutheran Church; Savonburg 2 CONC , Kansas. This record lists her name as Esther Amanda. 2 CONT 2 CONT !BIRTH-DEATH:Grave marker in Swedish Cemetery west of Savonburg, Kansas. 1 CHAN 2 DATE 19 Mar 2000 3 TIME 00:00:00 0 @I43@ INDI 1 NAME Remie Edward /Soliven/ 2 SURN Soliven 2 GIVN Remie Edward 1 SEX M 1 BIRT 2 DATE 2 Feb 1958 2 PLAC Phoenix,Maricopa,Arizona 2 SOUR @S1@ 1 _UID 8327643E9E5F3846AA3D4F416306E0E26994 1 FAMS @F6@ 1 FAMC @F37@ 1 CHAN 2 DATE 19 Feb 2000 3 TIME 00:00:00 0 @I44@ INDI 1 NAME Elizabeth Anne /Soliven/ 2 SURN Soliven 2 GIVN Elizabeth Anne 1 SEX F 1 BIRT 2 DATE 13 Jan 1981 2 PLAC San Diego,San Diego,California 2 SOUR @S1@ 1 BAPL 2 DATE 4 Mar 1989 2 SOUR @S2@ 1 _UID 90031ADB0D9FCF4A8CFBEC981035EB6CF4B7 1 FAMC @F6@ 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I45@ INDI 1 NAME Kenneth Joseph /Soliven/ 2 SURN Soliven 2 GIVN Kenneth Joseph 1 SEX M 1 BIRT 2 DATE 20 Feb 1983 2 PLAC Oceanside,San Diego,California 2 SOUR @S1@ 1 BAPL 2 DATE 22 Jun 1991 2 SOUR @S2@ 1 _UID F9928C6351F94A4EB9C0457ADA5640CACEAA 1 FAMC @F6@ 1 CHAN 2 DATE 1 Jan 2000 3 TIME 00:00:00 0 @I46@ INDI 1 NAME William S Holmes or Ola /Svensson/ 2 SURN Svensson 2 GIVN William S Holmes or Ola 1 SEX M 1 BIRT 2 DATE 30 Aug 1828 2 PLAC Brokamåla,Jämshög,Blekinge,Sweden 1 CHR 2 DATE 7 Sep 1828 2 PLAC Brokamåla,Jämshög,Blekinge,Sweden 1 DEAT 2 DATE 18 Apr 1903 2 PLAC Elsmore,Allen,Kansas 1 BURI 2 DATE Apr 1903 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 13 Sep 1956 2 TEMP SLAKE 1 _UID 84791D5A6D841749A52A08A2993EBE9D709D 1 FAMS @F38@ 1 FAMC @F39@ 1 SLGC 2 FAMC @F39@ 2 DATE 16 Aug 1996 2 TEMP PROVO 1 NOTE !NAME: William "S" Holmes was originally Ola Swanson or Svensson who changed his name after a 2 CONC rriving in America. 2 CONT 2 CONT !BIRTH:Jämshög Parish records;Fodde;1821-29;FHL film 0086201;item 1-5; Brokamåla, Jämshög, Bl 2 CONC ekinge, Sweden; and 2 CONT Husförhörslängd;Holje fjarding;1835-42;No.19; FHL film 0086196;item 1;Nebbeboda, Jämshög, Ble 2 CONC kinge, Sweden. 2 CONT 2 CONT !BIRTH & DEATH:Church records;Church Register - 1908; page 3; Friends Home Lutheran Church; S 2 CONC avonburg, Kansas. This record lists his name as Ola Svenson Holmes and his date of birth a 2 CONC s 20/8/28. 2 CONT 2 CONT !IMMIGRATION:Church records;Church Register - 1908; page 3; Friends Home Lutheran Church; Sav 2 CONC onburg, Kansas. This record states that he arrived in America in 1853 from Blekinge (Sweden) 2 CONC . 1 CHAN 2 DATE 12 Mar 2000 3 TIME 00:00:00 0 @I47@ INDI 1 NAME Karna or Karin /Mattsdotter/ 2 SURN Mattsdotter 2 GIVN Karna or Karin 1 SEX F 1 BIRT 2 DATE 14 Oct 1832 2 PLAC Kullan,Jämshög,Blekinge,Sweden 1 CHR 2 DATE 19 Oct 1832 2 PLAC Kullan,Jämshög,Blekinge,Sweden 1 DEAT 2 DATE 28 Mar 1892 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE 1892 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 20 Nov 1958 2 TEMP SLAKE 1 _UID 46A86A34B2B4AB41BEB36B385B8F157B6CE0 1 FAMS @F38@ 1 FAMC @F40@ 1 SLGC 2 FAMC @F40@ 2 DATE 28 Aug 1959 2 TEMP SLAKE 1 NOTE !BIRTH: Jämshög Parish records;Births;1832;no. 28;FHL film 0086202; Kullan, Jämshög, Blekinge 2 CONC , Sweden 2 CONT BIRTH & DEATH:Church records;Church Register - 1908; p. 3; Friends Home Lutheran Church, Savo 2 CONC nburg, Kansas. 2 CONT 2 CONT !EMIGRATION:Jämshög Parish records;Husförhörslängd;1853-1865;No.131;p.392; FHL film 0086200 2 CONC ; Kullan, Jämshög, Blekinge, Sweden. NOTE; Karin left for North America in 1853. 1 CHAN 2 DATE 10 Dec 1999 3 TIME 00:00:00 0 @I48@ INDI 1 NAME Caroline /Holmes/ 2 SURN Holmes 2 GIVN Caroline 1 SEX F 1 BIRT 2 DATE 9 Oct 1855 2 PLAC Paxton,Ford,Illinois 1 DEAT 2 DATE 31 Dec 1921 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE 2 Jan 1922 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 2 Mar 1955 2 TEMP SLAKE 1 _UID EE359AF3BA7DE247B51A0EBC8AA4391C2C28 1 FAMS @F41@ 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 NOTE !BURIAL:Cemetery Records;1922;Swedish Cemetery; Elsmore Twp., Allen Co., Savonburg, Kansas. 1 CHAN 2 DATE 28 Nov 1997 3 TIME 00:00:00 0 @I49@ INDI 1 NAME Charles /Holmes/ 2 SURN Holmes 2 GIVN Charles 1 SEX M 1 BIRT 2 DATE 24 Aug 1857 2 PLAC Paxton,Ford,Illinois 1 DEAT 2 DATE 9 Oct 1947 2 PLAC Iola,Allen,Kansas 1 BURI 2 DATE Oct 1947 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 2 Mar 1955 2 TEMP SLAKE 1 _UID 6E37D0CA2FAFD54781153F35AB4A1E99EFC2 1 FAMS @F42@ 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 NOTE !BIRTH & MARRIAGE:Church records;Church Register, Vol. 2, to 1958; pages 4 and 17; Friends Ho 2 CONC me Lutheran Church; Savonburg, Kansas. This record lists his birth date as 10/24/1868. On p 2 CONC age 4 he is listed as Carl Holmes. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I50@ INDI 1 NAME John /Holmes/ 2 SURN Holmes 2 GIVN John 1 SEX M 1 BIRT 2 DATE 24 Sep 1859 2 PLAC Knoxville,Knox,Illinois 1 DEAT 2 DATE 1910 2 PLAC ,Idaho 1 BAPL 2 DATE 9 Feb 1959 1 ENDL 2 DATE 10 Mar 1959 1 _UID C1685131EAD8E349BA6D3177400398347773 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 14 Oct 1959 2 TEMP SLAKE 1 NOTE !BIRTH:Church records:Church Rigister - 1908;p. 3;Friends Home Lutheran Church, Savonburg, Ka 2 CONC nsas. This record shows that he moved to Idaho in 1910. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I51@ INDI 1 NAME Hannah Matilda /Holmes/ 2 SURN Holmes 2 GIVN Hannah Matilda 1 SEX F 1 BIRT 2 DATE 24 Nov 1861 2 PLAC Paxton,Ford,Illinois 1 DEAT 2 DATE 29 Mar 1891 2 PLAC Big Creek Twp.,Neosho,Kansas 1 BURI 2 DATE 1891 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 11 Apr 1952 2 TEMP SGEOR 1 ENDL 2 DATE 11 Apr 1952 2 TEMP SGEOR 1 _UID F78DA2BA887DA7429F9FAB8CB504B40CBCFB 1 FAMS @F15@ 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 NOTE !BIRTH & DEATH:Church records;Church Register - 1908;p. 3;Friends Home Lutheran Church, Savon 2 CONC burg, Kansas. This record lists her birth as 27/11/61. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I52@ INDI 1 NAME Esther /Holmes/ 2 SURN Holmes 2 GIVN Esther 1 SEX F 1 BIRT 2 DATE 12 Mar 1864 2 PLAC Knoxville,Knox,Illinois 1 DEAT 2 DATE 8 May 1907 1 BAPL 2 DATE 10 Apr 1965 1 ENDL 2 DATE 16 Apr 1965 1 _UID 167688811F0D614BBD0AC2C5D5E6B6B2DE6E 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 7 Feb 1976 2 TEMP SLAKE 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 3;Friends Home Lutheran Church, Savonburg, Ka 2 CONC nsas. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I53@ INDI 1 NAME Emily /Holmes/ 2 SURN Holmes 2 GIVN Emily 1 SEX F 1 BIRT 2 DATE 19 May 1866 2 PLAC Paxton,Ford,Illinois 1 DEAT 2 DATE 4 Dec 1909 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE 5 Dec 1909 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 2 Mar 1955 2 TEMP SLAKE 1 _UID 10B00512410F294487A974F259C0C9D4E082 1 FAMS @F43@ 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 NOTE !BIRTH:Church records:Church Rigister - 1908;p. 3;Friends Home Lutheran Church, Savonburg, Ka 2 CONC nsas. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I54@ INDI 1 NAME Nathaniel Thomas /Holmes/ 2 SURN Holmes 2 GIVN Nathaniel Thomas 1 SEX M 1 BIRT 2 DATE 25 Oct 1868 2 PLAC Farmersville,Montgomery,Illinois 1 DEAT 2 DATE Mar 1945 2 PLAC Hutchinson,Reno,Kansas 1 BURI 2 DATE Mar 1945 2 PLAC Hutchinson,Reno,Kansas 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 19 Nov 1954 2 TEMP SLAKE 1 _UID 022FA75E2F8A8E45BEC3347B8688EAEAD436 1 FAMS @F44@ 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 3; & Vol. 2, to 1958;p. 17; Friends Home Luth 2 CONC eran Church; Savonburg, Kansas. This record lists his birth date as 10/24/1868. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I55@ INDI 1 NAME Amanda /Holmes/ 2 SURN Holmes 2 GIVN Amanda 1 SEX F 1 BIRT 2 DATE 26 Jan 1871 2 PLAC Farmersville,Montgomery,Illinois 1 DEAT 2 DATE 6 Feb 1871 2 PLAC Farmersville,Montgomery,Illinois 1 BURI 2 DATE Feb 1871 2 PLAC Farmersville,Montgomery,Illinois 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 4F25527E5A39C442831A509A44D7FDA31F84 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I56@ INDI 1 NAME Henry E. /Holmes/ 2 SURN Holmes 2 GIVN Henry E. 1 SEX M 1 BIRT 2 DATE 27 Jan 1873 2 PLAC Farmersville,Montgomery,Illinois 1 DEAT 2 DATE 19 Feb 1876 2 PLAC Farmersville,Montgomery,Illinois 1 BURI 2 DATE Feb 1876 2 PLAC Farmersville,Montgomery,Illinois 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 85A32ACAAF7ABF41B6A11E1CB5561D38363B 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I57@ INDI 1 NAME Daniel O. /Holmes/ 2 SURN Holmes 2 GIVN Daniel O. 1 SEX M 1 BIRT 2 DATE 22 Mar 1875 2 PLAC Farmersville,Montgomery,Illinois 1 DEAT 2 DATE 15 Feb 1876 2 PLAC Farmersville,Montgomery,Illinois 1 BURI 2 DATE Feb 1876 2 PLAC Farmersville,Montgomery,Illinois 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 2A392F449C24EC48BBA74361C40D408162B1 1 FAMC @F38@ 1 SLGC 2 FAMC @F38@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I58@ INDI 1 NAME Luther Emanuel /Holmes/ 2 SURN Holmes 2 GIVN Luther Emanuel 1 SEX M 1 BIRT 2 DATE 11 Apr 1878 2 PLAC Savonburg,Allen,Kansas 1 CHR 2 DATE 1 May 1878 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 20 Feb 1897 2 PLAC Swedesburg,Henry,Iowa 1 _UID 8E7BC824A09A6545A9DA94F7DE8AACE0DB2D 1 FAMS @F45@ 1 FAMC @F38@ 1 NOTE !BIRTH & DEATH:Church records;Church Register - 1908;p. 3;Friends Home Lutheran Church; Savon 2 CONC burg, Kansas. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I59@ INDI 1 NAME Emanuel "C" /Johnson/ 2 SURN Johnson 2 GIVN Emanuel "C" 1 SEX M 1 BIRT 2 DATE 6 Aug 1858 2 PLAC Knoxville,Knox,Illinois 1 CHR 2 DATE 24 Aug 1858 2 PLAC Knoxville,Knox,Illinois 1 DEAT 2 DATE 14 Nov 1929 2 PLAC McAllen,Hidalgo,Texas 1 BURI 2 DATE 16 Nov 1929 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 11 Apr 1952 2 TEMP SGEOR 1 ENDL 2 DATE 11 Apr 1952 2 TEMP SGEOR 1 _UID 8716795ACF78CD49971EA56B084A6780CB24 1 FAMS @F15@ 1 FAMS @F46@ 1 FAMC @F47@ 1 SLGC 2 FAMC @F47@ 2 DATE 24 Jun 1958 2 TEMP SLAKE 1 NOTE !BIRTH:Church records;Church Register - 1908;p. 3;Friends Home Lutheran 2 CONT Church, Savonburg, Kansas. 2 CONT !BURIAL:Cemetery Records;1929;Swedish Cemetery; Elsmore Twp., Allen Co., Savonburg, Kansas. 1 CHAN 2 DATE 28 Nov 1997 3 TIME 00:00:00 0 @I60@ INDI 1 NAME Ernest Justus Ebenezer /Johnson/ 2 SURN Johnson 2 GIVN Ernest Justus Ebenezer 1 SEX M 1 BIRT 2 DATE 23 Jul 1883 2 PLAC Big Creek Twp.,Neosho,Kansas 1 CHR 2 DATE 28 Sep 1883 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 21 May 1933 2 PLAC Chanute,Neosho,Kansas 1 BURI 2 DATE 24 May 1933 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 11 Apr 1952 2 TEMP SGEOR 1 ENDL 2 DATE 11 Apr 1952 2 TEMP SGEOR 1 _UID FE9BDAB5F08E6F478F4F23F910A11D93B781 1 FAMS @F48@ 1 FAMC @F15@ 1 SLGC 2 FAMC @F15@ 2 DATE 12 Apr 1952 2 TEMP SGEOR 1 NOTE !BIRTH:Church records:Church Register - 1908;p. 3; and Vol 2 - 1958;p. 21; Friends Home Luthe 2 CONC ran Church; Savonburg, Kansas. 2 CONT !DEATH:Church records:Church Register Vol 2 - 1958; p. 21. Friends Home 2 CONT Lutheran Church, Savonburg, Kansas. 2 CONT !BURIAL:Cemetery Records;1933;Swedish Cemetery; Elsmore Twp., Allen Co., Savonburg, Kansas 2 CONC . This record shows his place of death as Leanna, Kansas. 1 CHAN 2 DATE 28 Nov 1997 3 TIME 00:00:00 0 @I61@ INDI 1 NAME Vivian Edward Phillip /Johnson/ 2 SURN Johnson 2 GIVN Vivian Edward Phillip 1 SEX M 1 BIRT 2 DATE 14 May 1885 2 PLAC Big Creek Twp.,Neosho,Kansas 1 CHR 2 DATE 11 Jul 1885 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 11 Dec 1968 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE 14 Dec 1968 2 PLAC Savonburg,Allen,Kansas 1 _UID 9BD63CAE92B06342BA22C64E893DB31DC836 1 FAMS @F49@ 1 FAMC @F15@ 1 NOTE !DEATH:Church records;Church Register - 1908;p. 3; & Vol. 2 - 1958;p. 21; Friends Home Luther 2 CONC an Church; Savonburg, Kansas. This record lists his name as Vivian Edwin Philip Johnson. 2 CONT 2 CONT !BURIAL:Vivian was buried in the Swedish Cemetery west of Savonburg, Kansas. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I62@ INDI 1 NAME Helga Lillian Perninna /Johnson/ 2 SURN Johnson 2 GIVN Helga Lillian Perninna 1 SEX F 1 BIRT 2 DATE 9 Sep 1887 2 PLAC Big Creek Twp.,Neosho,Kansas 1 CHR 2 DATE 2 Oct 1887 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 12 Mar 1889 2 PLAC Big Creek Twp.,Neosho,Kansas 1 BURI 2 DATE Mar 1889 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID D92A3DC59EF1144E87A35A6A263C8906D5E5 1 FAMC @F15@ 1 SLGC 2 FAMC @F15@ 2 DATE 12 Apr 1952 2 TEMP SGEOR 1 NOTE !BIRTH & DEATH:Church records:Church Register - 1908;p. 3. Friends Home Lutheran Church; Savo 2 CONC nburg, Kansas. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I63@ INDI 1 NAME Owen Zaccheus Given /Johnson/ 2 SURN Johnson 2 GIVN Owen Zaccheus Given 1 SEX M 1 BIRT 2 DATE 22 Mar 1890 2 PLAC Big Creek Twp.,Allen,Kansas 1 CHR 2 DATE 31 Mar 1890 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 8 Jan 1946 2 PLAC McAllen,Hidalgo,Texas 1 BURI 2 DATE Jan 1946 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 11 Apr 1952 2 TEMP SGEOR 1 ENDL 2 DATE 12 Apr 1952 2 TEMP SGEOR 1 _UID 67153EEA2BB3A44D92558926222153E1800C 1 FAMC @F15@ 1 SLGC 2 FAMC @F15@ 2 DATE 12 Apr 1952 2 TEMP SGEOR 1 NOTE !BIRTH:Church records:Church Register - 1908;p. 3; & Vol 2. - 1958;p. 21; Friends Home Luther 2 CONC an Church; Savonburg, Kansas. This record lists his name as Owen Zachius Given Johnson. 1 CHAN 2 DATE 3 Oct 1997 3 TIME 01:00:00 0 @I64@ INDI 1 NAME John Christensson /Johnson/ 2 SURN Johnson 2 GIVN John Christensson 1 SEX M 1 BIRT 2 DATE 4 Aug 1833 2 PLAC Slättaröd,Norra Åkarp,Kristianstad,Sweden 1 CHR 2 DATE 11 Aug 1833 2 PLAC Slättaröd,Norra Åkarp,Kristianstad,Sweden 1 DEAT 2 DATE 8 Jan 1915 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE Jan 1915 2 PLAC Barefoot,Knox,Illinois 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 13 Sep 1956 2 TEMP SLAKE 1 _UID 8E9407E09D90DD40BBE904F2352F29D34D4B 1 FAMS @F47@ 1 FAMC @F50@ 1 SLGC 2 FAMC @F50@ 2 DATE 4 Apr 1957 2 TEMP SLAKE 1 NOTE !BIRTH:Norra Åkarp Parish records;Births;1833;FHL film 0141333; Norra Åkarp, Kristianstad, Sw 2 CONC eden. 2 CONT !DEATH:Obituary in Knoxville newspaper. 2 CONT !BURIAL:Buried in the Van Gilder Cemetery northeast of the home place. 1 CHAN 2 DATE 20 Jan 1998 3 TIME 00:00:00 0 @I65@ INDI 1 NAME Pernilla /Peterson/ 2 SURN Peterson 2 GIVN Pernilla 1 SEX F 1 BIRT 2 DATE 14 Sep 1828 2 PLAC Holje,Jämshög,Blekinge,Sweden 1 CHR 2 DATE 21 Sep 1828 2 PLAC Holje,Jämshög,Blekinge,Sweden 1 DEAT 2 DATE 16 Feb 1909 2 PLAC Barefoot,Knox,Illinois 1 BURI 2 DATE Feb 1909 2 PLAC Barefoot,Knox,Illinois 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 17 May 1955 2 TEMP SLAKE 1 _UID 900B98CBF709344BB7213FF963549B91702B 1 FAMS @F47@ 1 FAMC @F51@ 1 NOTE !BIRTH:Jämshög Parish Register;Födde;1828;FHL film 0086201; and Husförhörslängd;1835-42;No. 2 2 CONC 0;p. 425;FHL film 0086196;item 1; Holje, Jämshög, Blekinge, Sweden. 2 CONT 2 CONT !NAME:Pernilla Pehrsdotter went by the name of Pernilla Peterson in the USA. 2 CONT 2 CONT !DEATH & BURIAL:Obituary in a Knoxville, Illinois newspaper. She was buried in the Van Gilde 2 CONC r Cemetery northeast of their home. 1 CHAN 2 DATE 9 Mar 2000 3 TIME 00:00:00 0 @I66@ INDI 1 NAME son /Johnson/ 2 SURN Johnson 2 GIVN son 1 SEX M 1 BIRT 2 DATE ABT 1861 2 PLAC Knoxville,Knox,Illinois 1 DEAT 2 DATE ABT 1861 2 PLAC Knoxville,Knox,Illinois 1 BURI 2 DATE ABT 1861 2 PLAC Knoxville,Knox,Illinois 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 3E3E51DB54E29E428269B2D141C90E95D973 1 FAMC @F47@ 1 NOTE Twin sons were born and died shortly thereafter sometime between 1858 and 2 CONT 1868. They may have been buried in the Cemetery at Barefoot, Knox, Illinois. 2 CONT The Lutheran Church in Knoxville, IL may have a record. 1 CHAN 2 DATE 12 Sep 1999 3 TIME 01:00:00 0 @I67@ INDI 1 NAME son /Johnson/ 2 SURN Johnson 2 GIVN son 1 SEX M 1 BIRT 2 DATE ABT 1861 2 PLAC Knoxville,Knox,Illinois 1 DEAT 2 DATE ABT 1861 2 PLAC Knoxville,Knox,Illinois 1 BURI 2 DATE ABT 1861 2 PLAC Knoxville,Knox,Illinois 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 036C3295E0CD0F46A4E54A60243E407B8870 1 FAMC @F47@ 1 NOTE See note for first twin son. 1 CHAN 2 DATE 12 Sep 1999 3 TIME 01:00:00 0 @I68@ INDI 1 NAME Henry Grant /Johnson/ 2 SURN Johnson 2 GIVN Henry Grant 1 SEX M 1 BIRT 2 DATE 29 Sep 1868 2 PLAC Knoxville,Knox,Illinois 1 DEAT 2 DATE 25 Apr 1944 2 PLAC Knoxville,Knox,Illinois 1 BURI 2 DATE Apr 1944 2 PLAC Barefoot,Knox,Illinois 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 19 Nov 1954 2 TEMP SLAKE 1 _UID 3C2FCD8B644013449A7AF239DF153FDB0B5B 1 FAMS @F52@ 1 FAMC @F47@ 1 SLGC 2 FAMC @F47@ 2 DATE 24 Jun 1958 2 TEMP SLAKE 1 CHAN 2 DATE 2 Jan 2000 3 TIME 00:00:00 0 @I69@ INDI 1 NAME Ellen Christine /Johnson/ 2 SURN Johnson 2 GIVN Ellen Christine 1 SEX F 1 BIRT 2 DATE 3 Oct 1871 2 PLAC Knoxville,Knox,Illinois 1 DEAT 2 DATE 26 Feb 1914 1 BURI 2 DATE Feb 1914 2 PLAC Barefoot,Knox,Illinois 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 30 Mar 1955 2 TEMP SLAKE 1 _UID 876A22E7ECDBFF4E951C9251E986315A9CC9 1 FAMS @F53@ 1 FAMC @F47@ 1 SLGC 2 FAMC @F47@ 2 DATE 24 Jun 1958 2 TEMP SLAKE 1 NOTE !1. One source indicated Ellen's name was actually Ella. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I70@ INDI 1 NAME Gilbert Remmington /Hendrick/ 2 SURN Hendrick 2 GIVN Gilbert Remmington 1 SEX M 1 BIRT 2 DATE 9 Mar 1896 2 PLAC Manchester,Grant,Oklahoma 1 DEAT 2 DATE 2 Jan 1987 2 PLAC Wakita,Grant,Oklahoma 1 BURI 2 DATE 4 Jan 1987 2 PLAC Manchester,Grant,Oklahoma 1 _UID ABA87A2263D49E4596E369485E211426EC33 1 FAMS @F17@ 1 FAMC @F54@ 1 CHAN 2 DATE 2 Aug 1999 3 TIME 01:00:00 0 @I71@ INDI 1 NAME Rexford Francis /Smith/ 2 SURN Smith 2 GIVN Rexford Francis 1 SEX M 1 BIRT 2 DATE 23 Aug 2 PLAC Jasper,Jasper,Missouri 1 _UID 33E1CDE9FAA9B54AB851CB79E25DE320FBAC 1 FAMS @F18@ 1 NOTE 1. Rexford Smith was born between 1910 and 1920. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I72@ INDI 1 NAME Peggy Jene /Smith/ 2 SURN Smith 2 GIVN Peggy Jene 1 SEX F 1 BIRT 2 DATE 20 Feb 1931 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 10 Sep 1997 2 PLAC Placerville,El Dorado,California 1 BURI 2 PLAC Cremated 1 BAPL 2 DATE 3 Dec 1999 2 TEMP JRIVE 1 ENDL 2 DATE 3 Dec 1999 2 TEMP JRIVE 1 _UID 88E2BE0317044B4E93CD936207A4C1E78735 1 FAMS @F55@ 1 FAMC @F18@ 1 NOTE !BIRTH:Certificate 2 CONT 2 CONT !NAME:Peggy used the surname "Maxwell" after her stepfather, Everett Maxwell. 2 CONT 2 CONT !MARRIAGE:Certificate 2 CONT 2 CONT !DEATH:Certificate 2 CONT 2 CONT Cause of death: Complications from cancer in the pancreas. 1 CHAN 2 DATE 3 Dec 1999 3 TIME 00:00:00 0 @I73@ INDI 1 NAME Everett Leslie /Maxwell/ 2 SURN Maxwell 2 GIVN Everett Leslie 1 SEX M 1 BIRT 2 DATE 17 Nov 1909 2 PLAC Humboldt,Allen,Kansas 1 DEAT 2 DATE 17 Apr 1984 2 PLAC Chanute,Neosho,Kansas 1 BURI 2 DATE Apr 1984 2 PLAC Santa Clara,Santa Clara,California 1 BAPL 2 DATE 23 Feb 1994 2 TEMP PROVO 1 ENDL 2 DATE 23 Feb 1994 2 TEMP PROVO 1 _UID 02C5BAD872485947B3DE767F8BFDB33EB2E8 1 FAMS @F19@ 1 FAMC @F56@ 1 SLGC 2 FAMC @F56@ 2 DATE 23 Feb 1994 2 TEMP PROVO 1 NOTE 1. Lawrence E. Wittsell served as proxy for the baptism and endowment 2 CONT ordinances. A letter from his wife, Hannah Delia Wittsell, gave 2 CONT authorization. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I74@ INDI 1 NAME Daniel Arthur /Lind/ 2 SURN Lind 2 GIVN Daniel Arthur 1 SEX M 1 BIRT 2 DATE 28 Jun 1928 2 PLAC Salem,Marion,Oregon 1 _UID 5C84EED5B43ED14CA21C4EB559D7D44EC551 1 FAMS @F55@ 1 FAMC @F57@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I75@ INDI 1 NAME Steven Alan /Lind/ 2 SURN Lind 2 GIVN Steven Alan 1 SEX M 1 BIRT 2 DATE 6 Jan 1950 2 PLAC Richmond,Contra Costa,California 1 _UID 717F3A6A578F304EA28E4156C57ADE5733A1 1 FAMC @F55@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I76@ INDI 1 NAME Ronald David /Lind/ 2 SURN Lind 2 GIVN Ronald David 1 SEX M 1 BIRT 2 DATE 2 Dec 1953 2 PLAC Richmond,Contra Costa,California 1 _UID C2B42691809CEB4B95F9F39EE0350601BA0D 1 FAMC @F55@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I77@ INDI 1 NAME Orange Verlin /Riley/ 2 SURN Riley 2 GIVN Orange Verlin 1 SEX M 1 BIRT 2 DATE 28 Aug 1914 2 PLAC Early,Sac,Iowa 1 DEAT 2 DATE 22 Sep 1997 2 PLAC Parks,Scott,Arkansas 1 BURI 2 DATE 24 Sep 1997 2 PLAC Parks,Scott,Arkansas 1 _UID C7DB397FCDC90949B42A781CCA5D390A1EDD 1 FAMS @F21@ 1 NOTE !DEATH:Death Certificate and Funeral Notice. 1 CHAN 2 DATE 20 Mar 2000 3 TIME 00:00:00 0 @I78@ INDI 1 NAME Iona Mae /Riley/ 2 SURN Riley 2 GIVN Iona Mae 1 SEX F 1 BIRT 2 DATE 24 Oct 1937 2 PLAC Uniontown,Bourbon,Kansas 1 _UID 4CCB1F71CA1E094F8C172F226C38C91058B6 1 FAMS @F58@ 1 FAMC @F21@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:17 0 @I79@ INDI 1 NAME Marilyn Sue /Riley/ 2 SURN Riley 2 GIVN Marilyn Sue 1 SEX F 1 BIRT 2 DATE 26 Mar 1939 2 PLAC Uniontown,Bourbon,Kansas 1 _UID 0F1880144E34394E9B0D3B539804A33D765B 1 FAMS @F59@ 1 FAMC @F21@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I80@ INDI 1 NAME Richard Lynn /Riley/ 2 SURN Riley 2 GIVN Richard Lynn 1 SEX M 1 BIRT 2 DATE 19 Jul 1940 2 PLAC Savonburg,Allen,Kansas 1 _UID 55BC5F848C89D6449DFFB220BF03F8509B5F 1 FAMS @F60@ 1 FAMS @F61@ 1 FAMC @F21@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I81@ INDI 1 NAME Phillip Dean /Riley/ 2 SURN Riley 2 GIVN Phillip Dean 1 SEX M 1 BIRT 2 DATE 15 May 1942 2 PLAC Moran,Allen,Kansas 1 _UID AF518C00CD82E04D813ED64F253387FDC87F 1 FAMS @F62@ 1 FAMC @F21@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I82@ INDI 1 NAME Patrick Allan /Riley/ 2 SURN Riley 2 GIVN Patrick Allan 1 SEX M 1 BIRT 2 DATE 30 Jul 1944 2 PLAC Chanute,Neosho,Kansas 1 _UID 7B2450B47FF1394DB0205C4F0D7BC954B92C 1 FAMS @F63@ 1 FAMS @F64@ 1 FAMS @F65@ 1 FAMC @F21@ 1 NOTE Twin 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I83@ INDI 1 NAME Patricia Ann /Riley/ 2 SURN Riley 2 GIVN Patricia Ann 1 SEX F 1 BIRT 2 DATE 30 Jul 1944 2 PLAC Chanute,Neosho,Kansas 1 _UID EADE784C53E791408EAF6DC1EA4AD52B36B0 1 FAMS @F66@ 1 FAMC @F21@ 1 NOTE Twin 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I84@ INDI 1 NAME Ruth Elaine /Riley/ 2 SURN Riley 2 GIVN Ruth Elaine 1 SEX F 1 BIRT 2 DATE 10 Dec 1948 2 PLAC Wichita,Sedgwick,Kansas 1 _UID 2CFB5BA34FE2BC43A6C56C57912A8AAB7322 1 FAMS @F67@ 1 FAMC @F21@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I85@ INDI 1 NAME James Winfred /Spurgeon/ 2 SURN Spurgeon 2 GIVN James Winfred 1 SEX M 1 BIRT 2 DATE 24 Feb 1916 2 PLAC Bronson,Bourbon,Kansas 1 DEAT 2 DATE 18 Jun 1960 2 PLAC Smithville,Clay,Missouri 1 BURI 2 DATE Jun 1960 2 PLAC Bronson,Bourbon,Kansas 1 _UID BA8DC5EE1FD46C42B0B7C3A0275AE46832E6 1 FAMS @F22@ 1 NOTE !BIRTH:Certificate and Personal knowledge of James Winifred Spurgeon. 2 CONT 2 CONT !DEATH:Certificate and Personal knowledge of his wife, Leola Evaline Spurgeon 1 CHAN 2 DATE 2 Jul 2000 3 TIME 01:00:00 0 @I86@ INDI 1 NAME Charles Edward /Spurgeon/ 2 SURN Spurgeon 2 GIVN Charles Edward 1 SEX M 1 BIRT 2 DATE 23 Mar 1941 2 PLAC Moran,Allen,Kansas 1 _UID 10CF67605D20B94CA612159BD03CC50465FA 1 FAMS @F68@ 1 FAMS @F69@ 1 FAMC @F22@ 1 NOTE !NOTE:Charles and Keairon were divorced then remarried 29 July 1995. 1 CHAN 2 DATE 17 May 2000 3 TIME 01:00:00 0 @I87@ INDI 1 NAME Elsie Dianne /Spurgeon/ 2 SURN Spurgeon 2 GIVN Elsie Dianne 1 SEX F 1 BIRT 2 DATE 15 Oct 1943 2 PLAC Wichita,Sedgwick,Kansas 1 _UID 6C90BF28D1D48043946C27C4FB863A261757 1 FAMS @F70@ 1 FAMS @F71@ 1 FAMS @F72@ 1 FAMS @F73@ 1 FAMC @F22@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I88@ INDI 1 NAME Esther Jeanene /Spurgeon/ 2 SURN Spurgeon 2 GIVN Esther Jeanene 1 SEX F 1 BIRT 2 DATE 25 Jul 1945 2 PLAC Wichita,Sedgwick,Kansas 1 _UID 6C743128AD75E3468A52A02F510FBEFB48DA 1 FAMS @F74@ 1 FAMS @F75@ 1 FAMS @F76@ 1 FAMC @F22@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I89@ INDI 1 NAME Sharon Kay /Spurgeon/ 2 SURN Spurgeon 2 GIVN Sharon Kay 1 SEX F 1 BIRT 2 DATE 27 Jul 1946 2 PLAC Wichita,Sedgwick,Kansas 1 _UID A843757303BC3341ACCA2188FAF919E61768 1 FAMS @F77@ 1 FAMC @F22@ 1 NOTE !BIRTH:Certificate 1 CHAN 2 DATE 30 Jun 2000 3 TIME 01:00:00 0 @I90@ INDI 1 NAME Charllot Ann /Spurgeon/ 2 SURN Spurgeon 2 GIVN Charllot Ann 1 SEX F 1 BIRT 2 DATE 25 Sep 1947 2 PLAC Chanute,Neosho,Kansas 1 DEAT 2 DATE 25 Sep 1947 2 PLAC Chanute,Neosho,Kansas 1 BURI 2 DATE Sep 1947 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 96C1C6C6AEBDC045A0C36316A0AC51370337 1 FAMC @F22@ 1 NOTE !BIRTH-DEATH:Official certificates 2 CONT 2 CONT Charlott was born and died in the Chanute Hospital. She was buried in the Mt. 2 CONT Moriah Cemetery 1 mile south of Savonburg, Kansas. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I91@ INDI 1 NAME Rita Ladene /Spurgeon/ 2 SURN Spurgeon 2 GIVN Rita Ladene 1 SEX F 1 BIRT 2 DATE 26 Jan 1950 2 PLAC Smithville,Clay,Missouri 1 _UID DE683EE5B9941240AB253CF49C09CA43BAE2 1 FAMS @F78@ 1 FAMC @F22@ 1 CHAN 2 DATE 25 Aug 1997 3 TIME 01:00:00 0 @I92@ INDI 1 NAME James LeRoy /Spurgeon/ 2 SURN Spurgeon 2 GIVN James LeRoy 1 SEX M 1 BIRT 2 DATE 23 Jul 1952 2 PLAC Smithville,Clay,Missouri 1 DEAT 2 DATE 29 May 1970 2 PLAC Smithville,Clay,Missouri 1 BURI 2 DATE 1 Jun 1970 2 PLAC Kearney,Clay,Missouri 1 _UID 63DFEFA7701C2B4C9483682FB0AE7E7EE370 1 FAMC @F22@ 1 NOTE !BIRTH-DEATH:Official certificates. Buried in the Fairview Cemetery, Kearney, MO. 1 CHAN 2 DATE 2 Jul 2000 3 TIME 01:00:00 0 @I93@ INDI 1 NAME Marilyn June /Spurgeon/ 2 SURN Spurgeon 2 GIVN Marilyn June 1 SEX F 1 BIRT 2 DATE 20 Jun 1955 2 PLAC Smithville,Clay,Missouri 1 DEAT 2 DATE 6 Mar 1986 2 PLAC Smithville,Clay,Missouri 1 BURI 2 DATE 9 Mar 1986 2 PLAC Kearney,Clay,Missouri 1 _UID 314CEEEA876C6548B29B6A2552CEA90DA7EF 1 FAMS @F79@ 1 FAMC @F22@ 1 NOTE !BIRTH-DEATH:Personal knowledge of her mother, Leola Evaline Wittsell Spurgeon Eissler give 2 CONC n 21 Jan 1989. 2 CONT 2 CONT Twin. Buried in the Fairview Cemetery in Kearney, Missouri. 1 CHAN 2 DATE 30 Jun 2000 3 TIME 01:00:00 0 @I94@ INDI 1 NAME Martha Jane /Spurgeon/ 2 SURN Spurgeon 2 GIVN Martha Jane 1 SEX F 1 BIRT 2 DATE 20 Jun 1955 2 PLAC Smithville,Clay,Missouri 1 _UID 5C41BB2C9289324E849A394A3ED5377781EC 1 FAMS @F80@ 1 FAMC @F22@ 1 NOTE Twin 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I95@ INDI 1 NAME Carolyn Vanette /Spurgeon/ 2 SURN Spurgeon 2 GIVN Carolyn Vanette 1 SEX F 1 BIRT 2 DATE 4 Nov 1956 2 PLAC Smithville,Clay,Missouri 1 _UID A74A2728944A724C993E37BA4C45A8250208 1 FAMS @F81@ 1 FAMC @F22@ 1 NOTE !BIRTH:Certificate. 1 CHAN 2 DATE 3 Jul 2000 3 TIME 01:00:00 0 @I96@ INDI 1 NAME Paul Daniel /Spurgeon/ 2 SURN Spurgeon 2 GIVN Paul Daniel 1 SEX M 1 BIRT 2 DATE 22 Sep 1958 2 PLAC Smithville,Clay,Missouri 1 _UID F6E9504A273BD14886650DDA6CDCB81AE089 1 FAMS @F82@ 1 FAMC @F22@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I97@ INDI 1 NAME Elizabeth Marie /Hardesty/ 2 SURN Hardesty 2 GIVN Elizabeth Marie 1 SEX F 1 BIRT 2 DATE 19 Dec 1926 2 PLAC Elizabeth City,Pasquotank,North Carolina 1 _UID 2CDDFE7210027145B467380663EDB397343D 1 FAMS @F24@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I98@ INDI 1 NAME Edward Gordon /Wittsell/ 2 SURN Wittsell 2 GIVN Edward Gordon 1 SEX M 1 BIRT 2 DATE 28 Jan 1945 2 PLAC Elizabeth City,Pasquotank,North Carolina 1 _UID 560B5A7B5170D74EBF790F5A9315427219D4 1 FAMS @F83@ 1 FAMC @F24@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I99@ INDI 1 NAME Ruby Marie /Wittsell/ 2 SURN Wittsell 2 GIVN Ruby Marie 1 SEX F 1 BIRT 2 DATE 19 Feb 1946 2 PLAC Elizabeth City,Pasquotank,North Carolina 1 _UID 1539535A9DD28D4F9C38E757F25D5B96981E 1 FAMS @F84@ 1 FAMS @F85@ 1 FAMC @F24@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I100@ INDI 1 NAME Linda Princess /Wittsell/ 2 SURN Wittsell 2 GIVN Linda Princess 1 SEX F 1 BIRT 2 DATE 28 Jan 1963 2 PLAC Elizabeth City,Pasquotank,North Carolina 1 _UID A4440B5F1D94314083CE9E492DDEF17D2513 1 FAMS @F86@ 1 FAMC @F24@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I101@ INDI 1 NAME Charles /Nelson/ 2 SURN Nelson 2 GIVN Charles 1 SEX M 1 BIRT 2 DATE 19 Aug 1854 2 PLAC Knoxville,Knox,Illinois 1 DEAT 2 DATE 18 Jul 1918 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE 21 Jul 1918 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 14 Dec 1957 2 TEMP SLAKE 1 ENDL 2 DATE 7 Mar 1959 2 TEMP SLAKE 1 _UID 958D17D01D789B4085C338728881A1A5BAC8 1 FAMS @F41@ 1 FAMC @F87@ 1 NOTE !BURIAL:Cemetery Record;1918;Swedish Cemetery, Elsmore Twp., Allen Co., Kansas. 1 CHAN 2 DATE 28 Nov 1997 3 TIME 00:00:00 0 @I102@ INDI 1 NAME Agnes Amelia /Nelson/ 2 SURN Nelson 2 GIVN Agnes Amelia 1 SEX F 1 BIRT 2 DATE 28 May 1875 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 30 May 1875 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE Jun 1875 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID A37DFA21C82F72478B7915E655C469A511EE 1 FAMC @F41@ 1 SLGC 2 FAMC @F41@ 2 DATE 26 Apr 1960 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I103@ INDI 1 NAME Edward E. /Nelson/ 2 SURN Nelson 2 GIVN Edward E. 1 SEX M 1 BIRT 2 DATE 16 Jun 1876 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 21 Jan 1877 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE Jan 1877 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID 4B5C248A31F622499575194A59E507861F5B 1 FAMC @F41@ 1 SLGC 2 FAMC @F41@ 2 DATE 26 Apr 1960 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I104@ INDI 1 NAME Mary Estella /Nelson/ 2 SURN Nelson 2 GIVN Mary Estella 1 SEX F 1 BIRT 2 DATE 20 Jan 1878 2 PLAC Savonburg,Allen,Kansas 1 _UID A6FE0FB143AC264582BAB885AFE7C73ACECA 1 FAMS @F88@ 1 FAMC @F41@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I105@ INDI 1 NAME Victor Cornelius /Nelson/ 2 SURN Nelson 2 GIVN Victor Cornelius 1 SEX M 1 BIRT 2 DATE 22 Jan 1880 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 15 Jan 1939 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE Jan 1939 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 14 Dec 1957 2 TEMP SLAKE 1 ENDL 2 DATE 7 Mar 1959 2 TEMP SLAKE 1 _UID 604A9DCC1C573643B39AFB4CBDE48A29E7D5 1 FAMC @F41@ 1 SLGC 2 FAMC @F41@ 2 DATE 26 Apr 1960 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I106@ INDI 1 NAME John Frederick /Nelson/ 2 SURN Nelson 2 GIVN John Frederick 1 SEX M 1 BIRT 2 DATE 14 May 1882 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 1 Jul 1961 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE Jul 1961 2 PLAC Savonburg,Allen,Kansas 1 _UID F9D725AF33DDFA48814B806DA31D91F2F26E 1 FAMC @F41@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I107@ INDI 1 NAME Joseph Emanuel /Nelson/ 2 SURN Nelson 2 GIVN Joseph Emanuel 1 SEX M 1 BIRT 2 DATE 4 Feb 1883 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 1883 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE 1883 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 STAT CHILD 1 ENDL 2 STAT CHILD 1 _UID ADDB170B16BC824CAA806D92284197A114BC 1 FAMC @F41@ 1 SLGC 2 FAMC @F41@ 2 DATE 26 Apr 1960 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I108@ INDI 1 NAME Gertrude Viola /Nelson/ 2 SURN Nelson 2 GIVN Gertrude Viola 1 SEX F 1 BIRT 2 DATE 24 Dec 1885 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 1971 1 _UID 99A06E9D4CDAA247AB1E4E277EF346064ED2 1 FAMS @F89@ 1 FAMC @F41@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I109@ INDI 1 NAME Carl Ambrose /Nelson/ 2 SURN Nelson 2 GIVN Carl Ambrose 1 SEX M 1 BIRT 2 DATE 18 Feb 1888 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 20 Nov 1946 2 PLAC Savonburg,Allen,Kansas 1 BURI 2 DATE Nov 1946 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 14 Dec 1957 2 TEMP SLAKE 1 ENDL 2 DATE 7 Mar 1959 2 TEMP SLAKE 1 _UID CAC99D2E191F794CB166CF4D0EEF3EE7B04F 1 FAMC @F41@ 1 SLGC 2 FAMC @F41@ 2 DATE 26 Apr 1960 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I110@ INDI 1 NAME Inez Mildred Ethel /Nelson/ 2 SURN Nelson 2 GIVN Inez Mildred Ethel 1 SEX F 1 BIRT 2 DATE 6 Sep 1890 2 PLAC Savonburg,Allen,Kansas 1 _UID B62CBB90EB93B64F8B35F1FDD24CFF39B47B 1 FAMS @F90@ 1 FAMC @F41@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I111@ INDI 1 NAME Gladys Corinne /Nelson/ 2 SURN Nelson 2 GIVN Gladys Corinne 1 SEX F 1 BIRT 2 DATE 18 Aug 1893 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 3 Jan 1988 2 PLAC Chanute,Neosho,Kansas 1 BURI 2 DATE 6 Jan 1988 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 28 Mar 1991 2 TEMP SEATT 1 ENDL 2 DATE 3 Apr 1991 2 TEMP SEATT 1 _UID 7D5801CBC31E2843913F28D74C8B8CEB0AE6 1 FAMC @F41@ 1 SLGC 2 FAMC @F41@ 2 DATE 4 Apr 1991 2 TEMP SEATT 1 NOTE Buried in the Swedish Cemetery west of Savonburg, Allen Co., Kansas. 2 CONT ! Birth: Personal knowledge of Gladys Corinne Nelson. 2 CONT ! Death: Obituary in the Chanute Tribune. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I112@ INDI 1 NAME Verle Emory /Nelson/ 2 SURN Nelson 2 GIVN Verle Emory 1 SEX M 1 BIRT 2 DATE 10 Jun 1897 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 27 Dec 1986 2 PLAC Chanute,Neosho,Kansas 1 BURI 2 DATE Dec 1986 2 PLAC Savonburg,Allen,Kansas 1 BAPL 2 DATE 28 Mar 1991 2 TEMP SEATT 1 ENDL 2 DATE 3 Apr 1991 2 TEMP SEATT 1 _UID 4CD4CEF30744FC44B57A3DB47E4DE6BEFB9C 1 FAMC @F41@ 1 SLGC 2 FAMC @F41@ 2 DATE 4 Apr 1991 2 TEMP SEATT 1 NOTE Buried in the Swedish Cemetery west of Savonburg, Allen Co., Kansas. 2 CONT ! Birth: Personal knowledge of Verle Emory Nelson. 2 CONT ! Death: Funeral notice. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I113@ INDI 1 NAME Edward William /Scott/ 2 SURN Scott 2 GIVN Edward William 1 SEX M 1 BIRT 2 DATE 17 Oct 1860 2 PLAC Edon,Williams,Ohio 1 DEAT 2 DATE 10 Nov 1930 2 PLAC Edon,Williams,Ohio 1 BURI 2 DATE Nov 1930 2 PLAC Edon,Williams,Ohio 1 BAPL 2 DATE 13 Jun 1955 2 TEMP SLAKE 1 ENDL 2 DATE 13 Sep 1956 2 TEMP SLAKE 1 _UID 04610EEA2E42F7429209735A6BB84A24FF5A 1 FAMS @F31@ 1 FAMC @F91@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I114@ INDI 1 NAME Ernest /Scott/ 2 SURN Scott 2 GIVN Ernest 1 SEX M 1 BIRT 2 DATE 12 Jun 1886 2 PLAC Edon,Williams,Ohio 1 _UID 6E013DEADB8AB1449EB265F1FF6508DFE1A2 1 FAMS @F92@ 1 FAMC @F31@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I115@ INDI 1 NAME Buelah Ellen /Scott/ 2 SURN Scott 2 GIVN Buelah Ellen 1 SEX F 1 BIRT 2 DATE 25 Jan 1888 2 PLAC Edon,Williams,Ohio 1 DEAT 2 DATE 21 Oct 1948 2 PLAC Edon,Williams,Ohio 1 BURI 2 DATE 25 Oct 1948 2 PLAC Edon,Williams,Ohio 1 BAPL 2 DATE 13 Jun 1955 2 TEMP SLAKE 1 ENDL 2 DATE 20 Nov 1956 2 TEMP SLAKE 1 _UID 1E33380B51C0C449A59AE48E402B348B8DB1 1 FAMS @F93@ 1 FAMC @F31@ 1 SLGC 2 FAMC @F31@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I116@ INDI 1 NAME Florence Etta /Scott/ 2 SURN Scott 2 GIVN Florence Etta 1 SEX F 1 BIRT 2 DATE 3 Mar 1893 2 PLAC Edon,Williams,Ohio 1 DEAT 2 DATE 15 Dec 1922 1 BURI 2 DATE Dec 1922 1 BAPL 2 DATE 13 Jun 1955 2 TEMP SLAKE 1 ENDL 2 DATE 20 Nov 1955 2 TEMP SLAKE 1 _UID B7C5A730D9A00E4C83B1C97BFD14BA56BFD7 1 FAMC @F31@ 1 SLGC 2 FAMC @F31@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I117@ INDI 1 NAME Weir Eldon /Scott/ 2 SURN Scott 2 GIVN Weir Eldon 1 SEX M 1 BIRT 2 DATE 28 Jun 1896 2 PLAC Edon,Williams,Ohio 1 DEAT 2 DATE 9 Dec 1931 2 PLAC Edon,Williams,Ohio 1 BURI 2 DATE 11 Dec 1931 2 PLAC Edon,Williams,Ohio 1 BAPL 2 DATE 13 Jun 1955 1 ENDL 2 DATE 13 Sep 1956 1 _UID 919F8EC05CD5BC4FA429B9E5174826802A89 1 FAMS @F94@ 1 FAMC @F31@ 1 SLGC 2 FAMC @F31@ 2 DATE 27 Aug 1957 2 TEMP SLAKE 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I118@ INDI 1 NAME Eva May /Scott/ 2 SURN Scott 2 GIVN Eva May 1 SEX F 1 BIRT 2 DATE 13 Jan 1899 2 PLAC Edon,Williams,Ohio 1 _UID 9BC5B6667DA0184F89CAED50C47059466314 1 FAMS @F95@ 1 FAMC @F31@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I119@ INDI 1 NAME Fay Charles /Scott/ 2 SURN Scott 2 GIVN Fay Charles 1 SEX M 1 BIRT 2 DATE 3 Jul 1904 2 PLAC Edon,Williams,Ohio 1 _UID 9BE7DB6416DD184EBB32BF0CC846F3C59805 1 FAMC @F31@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I120@ INDI 1 NAME John William /Hendrick/ 2 SURN Hendrick 2 GIVN John William 1 SEX M 1 BIRT 2 DATE ABT 1866 1 _UID 398871A83A306E4CB2482F4E273B1C7B6E26 1 FAMS @F54@ 1 NOTE Birth date estimated by subtracting 30 years from date of Gilbert's birth. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I121@ INDI 1 NAME Matilda Elizabeth /Sinfield/ 2 SURN Sinfield 2 GIVN Matilda Elizabeth 1 SEX F 1 BIRT 2 DATE ABT 1866 1 _UID 2DD914BD667C6B4BB1F9CB24848123CAFA95 1 FAMS @F54@ 1 NOTE Birth date estimated by subtracting 30 years from Gilbert's birth date. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I122@ INDI 1 NAME Paul Phillip /Browning/ 2 SURN Browning 2 GIVN Paul Phillip 1 SEX M 1 BIRT 2 DATE 24 Mar 1882 2 PLAC ,Indiana 1 DEAT 2 DATE 9 May 1972 2 PLAC National City,San Diego,California 1 BURI 2 DATE 12 May 1972 2 PLAC San Diego,San Diego,California 1 _UID F72CBD19FFBB3B4ABE5ECBE7F811EBB7B1EB 1 FAMS @F14@ 1 FAMC @F96@ 1 NOTE !BIRTH,DEATH,BURIAL:Certificate of Death for Paul Browning. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I123@ INDI 1 NAME Perry Alfred /Berglund/ 2 SURN Berglund 2 GIVN Perry Alfred 1 SEX M 1 BIRT 2 DATE 22 Feb 1864 2 PLAC ,Blekinge,Sweden 1 DEAT 2 DATE 21 Oct 1941 2 PLAC Iola,Allen,Kansas 1 BURI 2 DATE 24 Oct 1941 2 PLAC LaHarpe,Allen,Kansas 1 _UID 81DF0A06743DFF4F92373F2B8EF0A73F06BE 1 FAMS @F97@ 1 FAMS @F32@ 1 NOTE 1. Perry Alfred's father was Peter Berglund. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I124@ INDI 1 NAME Vernon Emanuel /Berglund/ 2 SURN Berglund 2 GIVN Vernon Emanuel 1 SEX M 1 BIRT 2 DATE 11 Jun 1899 2 PLAC Fort Scott,Bourbon,Kansas 1 _UID AA1ABAC5A031B74881195DB64CDF0B7D736F 1 FAMS @F98@ 1 FAMC @F32@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I125@ INDI 1 NAME Elsie Mildred /Berglund/ 2 SURN Berglund 2 GIVN Elsie Mildred 1 SEX F 1 BIRT 2 DATE 21 Aug 1901 2 PLAC Savonburg,Allen,Kansas 1 _UID 7A9A8B376843E943940D1A3EDA3ABA7CF014 1 FAMS @F99@ 1 FAMC @F32@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I126@ INDI 1 NAME Evan Eberhart /Berglund/ 2 SURN Berglund 2 GIVN Evan Eberhart 1 SEX M 1 BIRT 2 DATE 2 Jul 1903 2 PLAC Savonburg,Allen,Kansas 1 _UID A703F60164C4EA478B73C8145797D6F1892C 1 FAMC @F32@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I127@ INDI 1 NAME Frieda Gladys Fedelma /Berglund/ 2 SURN Berglund 2 GIVN Frieda Gladys Fedelma 1 SEX F 1 BIRT 2 DATE 15 Nov 1905 2 PLAC Elsmore,Allen,Kansas 1 DEAT 2 DATE 22 Nov 1986 2 PLAC Humboldt,Allen,Kansas 1 BURI 2 DATE 27 Nov 1986 2 PLAC Humboldt,Allen,Kansas 1 _UID D955B919891C5845A9F2FD68A13D3071C153 1 FAMS @F100@ 1 FAMC @F32@ 1 NOTE 1. Frieda was buried in the Mount Hope Cemetery in Humboldt. 2 CONT 2. Another source said Frieda died 25 November 1968. 2 CONT 3. Another source said Frieda was married 20 September 1921. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I128@ INDI 1 NAME George Evard /Berglund/ 2 SURN Berglund 2 GIVN George Evard 1 SEX M 1 BIRT 2 DATE 13 Mar 1907 2 PLAC Elsmore,Allen,Kansas 1 _UID 25742C3960AC19419800EC1CD710982BAE4B 1 FAMS @F101@ 1 FAMC @F32@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I129@ INDI 1 NAME Ruth Evalyn /Berglund/ 2 SURN Berglund 2 GIVN Ruth Evalyn 1 SEX F 1 BIRT 2 DATE 12 Feb 1909 2 PLAC Savonburg,Allen,Kansas 1 _UID 886F3E0357F7D5498D10271BFE350B2BEC41 1 FAMC @F32@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I130@ INDI 1 NAME Homer Albert /Cation/ 2 SURN Cation 2 GIVN Homer Albert 1 SEX M 1 BIRT 2 DATE 3 May 1897 2 PLAC Cottage Grove Tp,Allen,Kansas 1 DEAT 2 DATE 26 Sep 1964 2 PLAC Humboldt,Allen,Kansas 1 BURI 2 DATE 30 Sep 1964 2 PLAC Humboldt,Allen,Kansas 1 _UID 808575CF0C4C1B4283DB7A5CFA8774ABD2B5 1 FAMS @F99@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I131@ INDI 1 NAME Verona Louise /Cation/ 2 SURN Cation 2 GIVN Verona Louise 1 SEX F 1 BIRT 2 DATE 16 Aug 1921 2 PLAC Chanute,Neosho,Kansas 1 _UID D08349FB898CC242AF163DC2F0E93A41C83A 1 FAMS @F102@ 1 FAMC @F99@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I132@ INDI 1 NAME Donald Eugene /Cation/ 2 SURN Cation 2 GIVN Donald Eugene 1 SEX M 1 BIRT 2 DATE 6 Apr 1928 2 PLAC Savonburg,Allen,Kansas 1 _UID DC10F8C950721C44AC760C7666AF023DC7AD 1 FAMS @F103@ 1 FAMC @F99@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I133@ INDI 1 NAME Clyde Curtis /Laver/ 2 SURN Laver 2 GIVN Clyde Curtis 1 SEX M 1 BIRT 2 DATE 7 Apr 1915 2 PLAC Humboldt,Allen,Kansas 1 _UID 5F590E44ED8D9C48AFE5909B36EAA7FFED2F 1 FAMS @F102@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I134@ INDI 1 NAME Janice Clydene /Laver/ 2 SURN Laver 2 GIVN Janice Clydene 1 SEX F 1 BIRT 2 DATE 9 Sep 1941 2 PLAC LaHarpe,Allen,Kansas 1 _UID DB6C7A67F010844DBA886E4638D4FEF4ED7E 1 FAMS @F104@ 1 FAMC @F102@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I135@ INDI 1 NAME Larry Eugene /Laver/ 2 SURN Laver 2 GIVN Larry Eugene 1 SEX M 1 BIRT 2 DATE 7 Jul 1944 2 PLAC LaHarpe,Allen,Kansas 1 _UID E3CB2EF6410E554DA4095F9FCF854EEDFDCC 1 FAMS @F105@ 1 FAMS @F106@ 1 FAMC @F102@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I136@ INDI 1 NAME Brenda Lea /Laver/ 2 SURN Laver 2 GIVN Brenda Lea 1 SEX F 1 BIRT 2 DATE 22 Dec 1956 2 PLAC Chanute,Neosho,Kansas 1 _UID 1E4F724DC55C95408DE05A03419E7A7CC1E9 1 FAMS @F107@ 1 FAMC @F102@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I137@ INDI 1 NAME Mildred Sophia /Miesel/ 2 SURN Miesel 2 GIVN Mildred Sophia 1 SEX F 1 BIRT 2 DATE 29 Oct 1903 2 PLAC Fraser,Macomb,Michigan 1 _UID 1C5AFD575E3B104CA89E7ADFB994A2F74428 1 FAMS @F98@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I138@ INDI 1 NAME Marie Elizabeth /Berglund/ 2 SURN Berglund 2 GIVN Marie Elizabeth 1 SEX F 1 BIRT 2 DATE 26 May 1924 2 PLAC Fraser,Macomb,Michigan 1 _UID D282E140003091488FC40294AA5F8AFFF92A 1 FAMS @F108@ 1 FAMC @F98@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I139@ INDI 1 NAME June Olive /Berglund/ 2 SURN Berglund 2 GIVN June Olive 1 SEX F 1 BIRT 2 DATE 19 Oct 1926 2 PLAC Detroit,Wayne,Michigan 1 _UID B3FA8486EAEEE542A03864F4F50611FEF0FC 1 FAMS @F109@ 1 FAMC @F98@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I140@ INDI 1 NAME Lee Alfred /Berglund/ 2 SURN Berglund 2 GIVN Lee Alfred 1 SEX M 1 BIRT 2 DATE 2 Feb 1928 2 PLAC Detroit,Wayne,Michigan 1 _UID 9C89A1759D8D624DBA7121355140519E1574 1 FAMC @F98@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I141@ INDI 1 NAME Dorothy Verna /Berglund/ 2 SURN Berglund 2 GIVN Dorothy Verna 1 SEX F 1 BIRT 2 DATE 6 Jul 1930 2 PLAC Elsmore,Allen,Kansas 1 _UID 754A391FFF145E4A9D305912A25593C05482 1 FAMS @F110@ 1 FAMC @F98@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I142@ INDI 1 NAME Avis Lucille /Berglund/ 2 SURN Berglund 2 GIVN Avis Lucille 1 SEX F 1 BIRT 2 DATE 2 Nov 1938 2 PLAC LaHarpe,Allen,Kansas 1 _UID 2B18764364ACFA47ACF7DE06D07C51B728CA 1 FAMC @F98@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I143@ INDI 1 NAME Beulah Margaret "Peggy" /Meyer/ 2 SURN Meyer 2 GIVN Beulah Margaret "Peggy" 1 SEX F 1 BIRT 2 DATE 30 Oct 1910 2 PLAC Defiance,Defiance,Ohio 1 _UID 6A00D53D45F1BB4E88A5BB8363FFEAFF7112 1 FAMS @F101@ 1 FAMC @F111@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I144@ INDI 1 NAME Nancy Lou /Berglund/ 2 SURN Berglund 2 GIVN Nancy Lou 1 SEX F 1 BIRT 2 DATE 17 Mar 1938 2 PLAC Pontiac,Oakland,Michigan 1 DEAT 2 DATE 26 May 1938 2 PLAC Pontiac,Oakland,Michigan 1 BURI 2 DATE May 1938 2 PLAC Pontiac,Oakland,Michigan 1 _UID 1A1088B09A39EF4B8D0C0FA53AB1569F9C29 1 FAMC @F101@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I145@ INDI 1 NAME George Evard Jr. /Berglund/ 2 SURN Berglund 2 GIVN George Evard Jr. 1 SEX M 1 BIRT 2 DATE 30 Nov 1939 2 PLAC Pontiac,Oakland,Michigan 1 _UID 34104E250DA5D1499D3C47E214847445D66C 1 FAMC @F101@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I146@ INDI 1 NAME Larry Lee /Berglund/ 2 SURN Berglund 2 GIVN Larry Lee 1 SEX M 1 BIRT 2 DATE 3 Oct 1943 2 PLAC Detroit,Wayne,Michigan 1 _UID 0AE173862A6B584B832DF02D34084F39AD1E 1 FAMC @F101@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I147@ INDI 1 NAME Sophia /Brostrom/ 2 SURN Brostrom 2 GIVN Sophia 1 SEX F 1 BIRT 2 PLAC Stockholm,Stockholm,Sweden 1 DEAT 2 DATE 29 Mar 1897 1 BURI 2 DATE 1897 2 PLAC Fort Scott,Bourbon,Kansas 1 _UID 9889B89CC8EC094CACDD18BFC6D58C010673 1 FAMS @F97@ 1 NOTE 1. Sophia was buried in the Evergreen Cemetery in Fort Scott, Kansas. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I148@ INDI 1 NAME Thelma Alfrieda /Berglund/ 2 SURN Berglund 2 GIVN Thelma Alfrieda 1 SEX F 1 BIRT 2 DATE 11 Aug 1888 2 PLAC Fort Scott,Bourbon,Kansas 1 _UID 551420B922BE6546AA1EA5B641412939D4AB 1 FAMS @F112@ 1 FAMC @F97@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I149@ INDI 1 NAME Morris Alfred /Berglund/ 2 SURN Berglund 2 GIVN Morris Alfred 1 SEX M 1 BIRT 2 DATE 24 Jul 1891 2 PLAC Fort Scott,Bourbon,Kansas 1 _UID 0743BB321B823D4B9660B04F601C9B349C39 1 FAMS @F113@ 1 FAMS @F114@ 1 FAMC @F97@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I150@ INDI 1 NAME James G. /Love/ 2 SURN Love 2 GIVN James G. 1 SEX M 1 BIRT 2 DATE 2 Feb 1880 2 PLAC Britt,Hancock,Iowa 1 DEAT 2 DATE 7 Jun 1958 2 PLAC Mason City,Cerro Gordo,Iowa 1 BURI 2 DATE 11 Jun 1958 2 PLAC Britt,Hancock,Iowa 1 BAPL 2 DATE 6 Jan 1962 1 ENDL 2 DATE 8 Feb 1962 1 _UID D3E99C5B4CC49A489F142690AFE816601BBE 1 FAMS @F112@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I151@ INDI 1 NAME Nina /Fewins/ 2 SURN Fewins 2 GIVN Nina 1 SEX F 1 BIRT 2 DATE Apr 2 PLAC Elsmore,Allen,Kansas 1 _UID D9CABB7DC244504598CD7C8D941B5B5C4A41 1 FAMS @F113@ 1 NOTE 1. Nina's parents were Richard Fewins and ? Mcginnis 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I152@ INDI 1 NAME Hilda Johanna /Sipplia/ 2 SURN Sipplia 2 GIVN Hilda Johanna 1 SEX F 1 BIRT 2 DATE 7 Jan 1892 2 PLAC ,Michigan 1 _UID 93EB9B7254287645A86A0759776F44C3216B 1 FAMS @F114@ 1 NOTE 1. Hilda's mother was Johanna Troppi. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I153@ INDI 1 NAME Norma Bell /Gericke/ 2 SURN Gericke 2 GIVN Norma Bell 1 SEX F 1 BIRT 2 DATE 1 Aug 1936 2 PLAC Decatur,Benton,Arkansas 1 _UID 09AB0621673B9847B7D5E5B471181329462A 1 FAMS @F103@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I154@ INDI 1 NAME Douglas Eugene /Cation/ 2 SURN Cation 2 GIVN Douglas Eugene 1 SEX M 1 BIRT 2 DATE 24 Sep 1954 2 PLAC Coffeyville,Montgomery,Kansas 1 _UID FB0AF237E600B84C8DA84EE7EB5D522440D3 1 FAMS @F115@ 1 FAMC @F103@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I155@ INDI 1 NAME Keith Albert /Cation/ 2 SURN Cation 2 GIVN Keith Albert 1 SEX M 1 BIRT 2 DATE 26 Jul 1963 2 PLAC Iola,Allen,Kansas 1 _UID A32B7259E7D55E4B9FF7CDC4B107A8129756 1 FAMC @F103@ 1 NOTE Twin 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I156@ INDI 1 NAME Kevin Allen /Cation/ 2 SURN Cation 2 GIVN Kevin Allen 1 SEX M 1 BIRT 2 DATE 26 Jul 1963 2 PLAC Iola,Allen,Kansas 1 _UID 94638CEB4542004CB1554D4ED4C297101F65 1 FAMC @F103@ 1 NOTE Twin 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I157@ INDI 1 NAME Fred /Cunningham/ 2 SURN Cunningham 2 GIVN Fred 1 SEX M 1 BIRT 2 DATE 28 Nov 1900 2 PLAC Humboldt,Allen,Kansas 1 DEAT 2 DATE 9 Aug 1968 2 PLAC Humboldt,Allen,Kansas 1 BURI 2 DATE 11 Aug 1968 2 PLAC Humboldt,Allen,Kansas 1 _UID 430EA9C7E77DEE41A14B07F1CDDCD5E79D70 1 FAMS @F100@ 1 NOTE 1. Fred was buried in the Mount Hope Cemetery in Humboldt. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I158@ INDI 1 NAME Fred Jr. /Cunningham/ 2 SURN Cunningham 2 GIVN Fred Jr. 1 SEX M 1 BIRT 2 DATE 11 May 1923 2 PLAC Humboldt,Allen,Kansas 1 _UID 663DE8E8ADE32443A4F0FA2D41CC221A6E3E 1 FAMS @F116@ 1 FAMC @F100@ 1 NOTE 1. Fred was married in the Friends Home Lutheran Church west of Savonburg, 2 CONT Kansas. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I159@ INDI 1 NAME Helen Liane /Cunningham/ 2 SURN Cunningham 2 GIVN Helen Liane 1 SEX F 1 BIRT 2 DATE 21 Jan 1925 2 PLAC Savonburg,Allen,Kansas 1 _UID 1ACD1D35EE1E45498A2FC014AC4056C163F9 1 FAMS @F117@ 1 FAMC @F100@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I160@ INDI 1 NAME Robert Wayne /Cunningham/ 2 SURN Cunningham 2 GIVN Robert Wayne 1 SEX M 1 BIRT 2 DATE 9 Jun 1928 2 PLAC Humboldt,Allen,Kansas 1 _UID 5BCC478DEF223A468B1FC535525EBFBF5E8A 1 FAMC @F100@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I161@ INDI 1 NAME Mildred Ruth /Shaw/ 2 SURN Shaw 2 GIVN Mildred Ruth 1 SEX F 1 BIRT 2 DATE 1 Jul 1896 2 PLAC Bryan,Williams,Ohio 1 DEAT 2 DATE 27 Jun 1976 2 PLAC Edon,Williams,Ohio 1 BURI 2 DATE 30 Jun 1976 2 PLAC Edon,Williams,Ohio 1 _UID 7558FDB2C9D4484B83FD85967ED5514F3ACA 1 FAMS @F94@ 1 FAMC @F118@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I162@ INDI 1 NAME Robert Edward /Scott/ 2 SURN Scott 2 GIVN Robert Edward 1 SEX M 1 BIRT 2 DATE 2 Mar 1915 2 PLAC Edon,Williams,Ohio 1 DEAT 2 DATE 17 May 1985 2 PLAC Edon,Williams,Ohio 1 BURI 2 DATE 21 May 1985 2 PLAC Edon,Williams,Ohio 1 _UID DC279476B468014EA6C54D0A3D7227D9E9D3 1 FAMS @F119@ 1 FAMC @F94@ 1 NOTE Robert Scott had another wife, Helen Hoffer. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I163@ INDI 1 NAME Mildred Olouise /Scott/ 2 SURN Scott 2 GIVN Mildred Olouise 1 SEX F 1 BIRT 2 DATE 6 Feb 1920 2 PLAC Detroit,Wayne,Michigan 1 _UID C9EF1F165631394386BDEFC01D22D6F7EE4B 1 FAMS @F120@ 1 FAMC @F94@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I164@ INDI 1 NAME Richard James /Scott/ 2 SURN Scott 2 GIVN Richard James 1 SEX M 1 BIRT 2 DATE 12 Feb 1925 2 PLAC Detroit,Wayne,Michigan 1 _UID 293E8A8E8343AC4DBB9CDEF0B8BFE1D28D17 1 FAMS @F121@ 1 FAMC @F94@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I165@ INDI 1 NAME Montie Van /Dewire/ 2 SURN Dewire 2 GIVN Montie Van 1 SEX M 1 BIRT 2 DATE 31 Jan 1920 2 PLAC Hamilton,Steuben,Indiana 1 _UID 1F8D82744B99A0428178A6BD3E7DAA08318C 1 FAMS @F120@ 1 FAMC @F122@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I166@ INDI 1 NAME Montie Van Jr. /Dewire/ 2 SURN Dewire 2 GIVN Montie Van Jr. 1 SEX M 1 BIRT 2 DATE 27 Apr 1941 2 PLAC Angola,Steuben,Indiana 1 _UID 7EC42D02C0F64E4A9FAEBF92BFF8F924312C 1 FAMS @F123@ 1 FAMC @F120@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I167@ INDI 1 NAME Larry Weir /Dewire/ 2 SURN Dewire 2 GIVN Larry Weir 1 SEX M 1 BIRT 2 DATE 9 Aug 1944 2 PLAC Angola,Steuben,Indiana 1 _UID 59C48741CB05ED48B1F1B50150099AC1F6F2 1 FAMS @F124@ 1 FAMC @F120@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I168@ INDI 1 NAME Mary Lee /Dewire/ 2 SURN Dewire 2 GIVN Mary Lee 1 SEX F 1 BIRT 2 DATE 15 Jul 1947 2 PLAC Garret,DeKalb,Indiana 1 _UID 5E68AB2DC694674EA7CDC6E5F42A0B978CEE 1 FAMS @F125@ 1 FAMS @F126@ 1 FAMC @F120@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I169@ INDI 1 NAME Steve Alan /Dewire/ 2 SURN Dewire 2 GIVN Steve Alan 1 SEX M 1 BIRT 2 DATE 11 Jul 1950 2 PLAC Bryan,Williams,Ohio 1 _UID CFC83A4DFA3B2043ABE06573BE09B2B446D9 1 FAMS @F127@ 1 FAMC @F120@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I170@ INDI 1 NAME Sue Ann /Houk/ 2 SURN Houk 2 GIVN Sue Ann 1 SEX F 1 BIRT 2 DATE 6 Jul 1940 2 PLAC Montpelier,Williams,Ohio 1 _UID 2B8F1C917BE4D8458A5ED9E86247922DF491 1 FAMS @F123@ 1 FAMC @F128@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I171@ INDI 1 NAME Lonnie Jo /Dewire/ 2 SURN Dewire 2 GIVN Lonnie Jo 1 SEX F 1 BIRT 2 DATE 5 Nov 1962 2 PLAC Montpelier,Williams,Ohio 1 _UID 12F993D7DBC1284A98880A1CDCC47AAC8F01 1 FAMC @F123@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I172@ INDI 1 NAME Melinda Sue /Dewire/ 2 SURN Dewire 2 GIVN Melinda Sue 1 SEX F 1 BIRT 2 DATE 14 May 1965 2 PLAC Montpelier,Williams,Ohio 1 _UID 75E8244CA8940242A676E49E53B0244A5C24 1 FAMC @F123@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I173@ INDI 1 NAME Montie Craig /Dewire/ 2 SURN Dewire 2 GIVN Montie Craig 1 SEX M 1 BIRT 2 DATE 7 Feb 1970 2 PLAC Bryan,Williams,Ohio 1 _UID FFC2F6C0021BCD4AB1BC47410A0643F2E5AC 1 FAMC @F123@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I174@ INDI 1 NAME Lois Joan /Burd/ 2 SURN Burd 2 GIVN Lois Joan 1 SEX F 1 BIRT 2 DATE 21 Sep 1944 2 PLAC Wolflake,Noble,Indiana 1 _UID 20F97F4BC0714F4AA107701A31F59C24C53D 1 FAMS @F124@ 1 FAMC @F129@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I175@ INDI 1 NAME Thomas Alan /Dewire/ 2 SURN Dewire 2 GIVN Thomas Alan 1 SEX M 1 BIRT 2 DATE 27 Jul 1963 2 PLAC Toledo,Lucas,Ohio 1 _UID 367D71EB98C1884CB01C6D032646F3A17809 1 FAMC @F124@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I176@ INDI 1 NAME Laura Irene /Dewire/ 2 SURN Dewire 2 GIVN Laura Irene 1 SEX F 1 BIRT 2 DATE 15 Aug 1968 2 PLAC Angola,Steuben,Indiana 1 _UID 23B656A191C9A440B2F4AD36D5EDE673B284 1 FAMC @F124@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I177@ INDI 1 NAME Michael Anthony /Damman/ 2 SURN Damman 2 GIVN Michael Anthony 1 SEX M 1 BIRT 2 DATE 19 Jul 1944 2 PLAC Toledo,Lucas,Ohio 1 _UID 663DF9348C53E143B6715EE3A91175E6508C 1 FAMS @F125@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I178@ INDI 1 NAME Anne Marie /Damman/ 2 SURN Damman 2 GIVN Anne Marie 1 SEX F 1 BIRT 2 DATE 5 Jun 1981 2 PLAC Hillsdale,Hillsdale,Michigan 1 _UID 5BA049D6449BB84DB83C3FF4A75844E74F5F 1 FAMC @F125@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I179@ INDI 1 NAME Irvin Lee /Black/ 2 SURN Black 2 GIVN Irvin Lee 1 SEX M 1 DEAT 2 DATE BEF 1980 1 _UID 5E99916D21D93546B3B81EC848277C29CFA7 1 FAMS @F126@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I180@ INDI 1 NAME David Lee /Black/ 2 SURN Black 2 GIVN David Lee 1 SEX M 1 BIRT 2 DATE 19 Feb 1969 2 PLAC Angola,Steuben,Indiana 1 _UID 3966DBF911A5784389BC48D78F7F38952324 1 FAMC @F126@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I181@ INDI 1 NAME Brett Alan /Black/ 2 SURN Black 2 GIVN Brett Alan 1 SEX M 1 BIRT 2 DATE 16 Mar 1972 2 PLAC Angola,Steuben,Indiana 1 _UID EC342D4D99F36049A2FB224DEA88AB322A1B 1 FAMC @F126@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I182@ INDI 1 NAME Corinne Sue /Chorpenning/ 2 SURN Chorpenning 2 GIVN Corinne Sue 1 SEX F 1 BIRT 2 DATE 12 Feb 1953 1 _UID E5A054B7421EA2469C2F032D009956C08212 1 FAMS @F127@ 1 FAMC @F130@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I183@ INDI 1 NAME Angela Sue /Dewire/ 2 SURN Dewire 2 GIVN Angela Sue 1 SEX F 1 BIRT 2 DATE 16 Mar 1970 2 PLAC Auburn,DeKalb,Indiana 1 _UID 44915D340737604E9550AAB5F98F7F23C0B7 1 FAMC @F127@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I184@ INDI 1 NAME Kelly Lyn /Dewire/ 2 SURN Dewire 2 GIVN Kelly Lyn 1 SEX F 1 BIRT 2 DATE 20 Jun 1972 2 PLAC Auburn,DeKalb,Indiana 1 _UID FB50647CD08593499F724F113448DC032892 1 FAMC @F127@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I185@ INDI 1 NAME Dixie Lee /Dewire/ 2 SURN Dewire 2 GIVN Dixie Lee 1 SEX F 1 BIRT 2 DATE 31 Mar 1977 2 PLAC Auburn,DeKalb,Indiana 1 _UID 2EA9AABE6628A74898E32332AA1CDD0130BF 1 FAMC @F127@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I186@ INDI 1 NAME Herman Don /Ellis/ 2 SURN Ellis 2 GIVN Herman Don 1 SEX M 1 BIRT 2 DATE 10 Feb 1935 2 PLAC Parks,Scott,Arkansas 1 _UID D9BD16FF2A5F10429D9B2FE86A781613E0DF 1 FAMS @F58@ 1 FAMC @F131@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I187@ INDI 1 NAME Donna Marie /Ellis/ 2 SURN Ellis 2 GIVN Donna Marie 1 SEX F 1 BIRT 2 DATE 26 Jun 1955 2 PLAC Wichita,Sedgwick,Kansas 1 _UID BF7F516A2ACA3D4492EB87DAFE05D6BDE276 1 FAMS @F132@ 1 FAMC @F58@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I188@ INDI 1 NAME Paula Christine /Ellis/ 2 SURN Ellis 2 GIVN Paula Christine 1 SEX F 1 BIRT 2 DATE 1 Nov 1957 2 PLAC Wichita,Sedgwick,Kansas 1 _UID 463911B83732BB41B050ABE4C2AE2F02DDE6 1 FAMS @F133@ 1 FAMC @F58@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I189@ INDI 1 NAME Linda Carol /Ellis/ 2 SURN Ellis 2 GIVN Linda Carol 1 SEX F 1 BIRT 2 DATE 15 Jun 1961 2 PLAC Wichita,Sedgwick,Kansas 1 _UID E26EBD76C41DDC47B59A63161F470329E18A 1 FAMS @F134@ 1 FAMS @F135@ 1 FAMS @F136@ 1 FAMS @F137@ 1 FAMC @F58@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I190@ INDI 1 NAME Tommy Lynn /Ellis/ 2 SURN Ellis 2 GIVN Tommy Lynn 1 SEX M 1 BIRT 2 DATE 16 Oct 1964 2 PLAC Wichita,Sedgwick,Kansas 1 DEAT 2 DATE 6 Dec 1989 2 PLAC Harrison,Boone,Arkansas 1 _UID 1B0EAA4D6DA0254883F4A83647433EE69DB6 1 FAMS @F138@ 1 FAMC @F58@ 1 CHAN 2 DATE 15 Dec 1997 3 TIME 00:00:00 0 @I191@ INDI 1 NAME Ruby Bernice /Kiger/ 2 SURN Kiger 2 GIVN Ruby Bernice 1 SEX F 1 BIRT 2 DATE 24 Dec 1932 2 PLAC Joplin,Jasper,Missouri 1 DEAT 2 DATE Jan 1962 2 PLAC Wichita,Sedgwick,Kansas 1 BURI 2 DATE 4 Jan 1962 2 PLAC Wichita,Sedgwick,Kansas 1 _UID 166087EB692D704EB3E6F9398EF2B3316BC4 1 FAMS @F25@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I192@ INDI 1 NAME Russell Wade /Wittsell/ 2 SURN Wittsell 2 GIVN Russell Wade 1 SEX M 1 BIRT 2 DATE 16 Dec 1955 2 PLAC Wichita,Sedgwick,Kansas 1 _UID F0CD617ED93E5D4EB2108A254C24AE665340 1 FAMC @F25@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I193@ INDI 1 NAME John Edward /Wittsell/ 2 SURN Wittsell 2 GIVN John Edward 1 SEX M 1 BIRT 2 DATE 20 Jul 1957 2 PLAC Wichita,Sedgwick,Kansas 1 _UID 1605889B5F7E6D4C9B4C1E7DA8F283B92C0C 1 FAMS @F139@ 1 FAMC @F25@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I194@ INDI 1 NAME Mark Eldon /Wittsell/ 2 SURN Wittsell 2 GIVN Mark Eldon 1 SEX M 1 BIRT 2 DATE 16 Apr 1960 2 PLAC Wichita,Sedgwick,Kansas 1 _UID A53F4154C161AF429242F256AA1394827B75 1 FAMS @F140@ 1 FAMC @F25@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I195@ INDI 1 NAME Betty Jean /Cavender/ 2 SURN Cavender 2 GIVN Betty Jean 1 SEX F 1 BIRT 2 DATE 25 Mar 1935 2 PLAC Wichita,Sedgwick,Kansas 1 _UID C41F67B9C6C4D24085468A25E5831C7C1918 1 FAMS @F26@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I196@ INDI 1 NAME Randall Stevan /Wittsell/ 2 SURN Wittsell 2 GIVN Randall Stevan 1 SEX M 1 BIRT 2 DATE 11 Feb 1954 2 PLAC Wichita,Sedgwick,Kansas 1 _UID 3E030BEFBD82F244B6D4439B42FD8C977AD7 1 FAMC @F26@ 1 NOTE !NAME:Randy was Jean's son by Laurence Dean Terry but was adopted by Paul Wittsell. 1 CHAN 2 DATE 15 Dec 1997 3 TIME 00:00:00 0 @I197@ INDI 1 NAME Clyde Arthur /Wittsell/ 2 SURN Wittsell 2 GIVN Clyde Arthur 1 SEX M 1 BIRT 2 DATE 4 Jul 1957 2 PLAC Wichita,Sedgwick,Kansas 1 _UID E83894DACD24E84FA516A53DAB3B339C0821 1 FAMS @F141@ 1 FAMC @F26@ 1 NOTE !NAME:Clyde was Jean's son by Laurence Dean Terry but was adopted by Paul Wittsell. 1 CHAN 2 DATE 15 Dec 1997 3 TIME 00:00:00 0 @I198@ INDI 1 NAME Richard Brian /Wittsell/ 2 SURN Wittsell 2 GIVN Richard Brian 1 SEX M 1 BIRT 2 DATE 19 Jun 1958 2 PLAC Wichita,Sedgwick,Kansas 1 _UID 2FE4C5AC8D49DF4FA6E4C16A85E70723D308 1 FAMS @F142@ 1 FAMC @F26@ 1 NOTE !NAME:Richard was Jean's son by Laurence Dean Terry but was adopted by Paul Wittsell. 1 CHAN 2 DATE 15 Dec 1997 3 TIME 00:00:00 0 @I199@ INDI 1 NAME Audrey Jay /Trueblood/ 2 SURN Trueblood 2 GIVN Audrey Jay 1 SEX F 1 BIRT 2 DATE 25 Jun 1947 2 PLAC Hertford,Perquimans,North Carolina 1 _UID 0CF4A5853AD94041B0F528CA581C0819EA99 1 FAMS @F83@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I200@ INDI 1 NAME Kenneth Edward /Wittsell/ 2 SURN Wittsell 2 GIVN Kenneth Edward 1 SEX M 1 BIRT 2 DATE 15 Mar 1967 2 PLAC Elizabeth City,Pasquotank,North Carolina 1 _UID 9657467077D56F4498B248C4B205A968C025 1 FAMC @F83@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I201@ INDI 1 NAME Myrtle Jane /Link/ 2 SURN Link 2 GIVN Myrtle Jane 1 SEX F 1 BIRT 2 DATE 9 Sep 1884 2 PLAC White Church,Wyandotte,Kansas 1 DEAT 2 DATE 3 Jan 1952 2 PLAC Uniontown,Bourbon,Kansas 1 BURI 2 DATE Jan 1952 1 _UID 979927DEBACD6B46983380E58006D02C1F76 1 FAMS @F34@ 1 FAMS @F143@ 1 FAMC @F144@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I202@ INDI 1 NAME John /Wittsell/ 2 SURN Wittsell 2 GIVN John 1 SEX M 1 BIRT 2 DATE 17 Feb 1904 (Stillborn) 2 PLAC White Church,Wyandotte,Kansas 1 BURI 2 PLAC Swedish Cemetery,Savonburg,Allen,Kansas 1 _UID 2FBD80CB7651DD448C96A8AA11CF4F7133D7 1 FAMC @F34@ 1 CHAN 2 DATE 12 Jun 2000 3 TIME 01:00:00 0 @I203@ INDI 1 NAME James Weir /Wittsell/ 2 SURN Wittsell 2 GIVN James Weir 1 SEX M 1 BIRT 2 DATE 23 Mar 1905 2 PLAC White Church,Wyandotte,Kansas 1 BURI 2 PLAC Richmond,Richmond,Virginai 1 _UID 6986382D00A43A468E917F5AFFE2BCBCC982 1 FAMS @F145@ 1 FAMC @F34@ 1 CHAN 2 DATE 12 Jun 2000 3 TIME 01:00:00 0 @I204@ INDI 1 NAME Dorothy May /Wittsell/ 2 SURN Wittsell 2 GIVN Dorothy May 1 SEX F 1 BIRT 2 DATE 27 May 1906 2 PLAC White Church,Wyandotte,Kansas 1 DEAT 2 DATE 11 May 1994 2 PLAC Grandview,Jackson,Missouri 1 _UID FF0289F736020F40B49A0F1A75C4EF963DD1 1 FAMS @F146@ 1 FAMC @F34@ 1 NOTE !DEATH:In Carondolet Manor, buried in the Uniontown Cemetery. 1 CHAN 2 DATE 12 Jun 2000 3 TIME 01:00:00 0 @I205@ INDI 1 NAME Earl Preston /Wittsell/ 2 SURN Wittsell 2 GIVN Earl Preston 1 SEX M 1 BIRT 2 DATE 12 Oct 1908 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 1 May 1983 1 _UID D633964919AACD42B83F384CA881AA232BF3 1 FAMS @F147@ 1 FAMC @F34@ 1 CHAN 2 DATE 17 Feb 2000 3 TIME 00:00:00 0 @I206@ INDI 1 NAME Floyd Garland /Wittsell/ 2 SURN Wittsell 2 GIVN Floyd Garland 1 SEX M 1 BIRT 2 DATE 27 Apr 1911 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 1 May 1983 1 _UID A6A5A99FF7639A408F15095955574DA56B0B 1 FAMS @F148@ 1 FAMC @F34@ 1 CHAN 2 DATE 12 Jun 2000 3 TIME 01:00:00 0 @I207@ INDI 1 NAME Quentin Lavern /Wittsell/ 2 SURN Wittsell 2 GIVN Quentin Lavern 1 SEX M 1 BIRT 2 DATE 16 Sep 1914 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 14 Dec 1994 1 _UID 708DA3B8166A0D4EB8057ACE1C77C4F68573 1 FAMS @F149@ 1 FAMC @F34@ 1 CHAN 2 DATE 17 Feb 2000 3 TIME 00:00:00 0 @I208@ INDI 1 NAME Raymond Kenneth /Wittsell/ 2 SURN Wittsell 2 GIVN Raymond Kenneth 2 NICK Pete 1 SEX M 1 BIRT 2 DATE 19 Nov 1916 2 PLAC Stark,Neosho,Kansas 1 DEAT 2 DATE 28 Aug 2000 2 PLAC Chico,Butte,California 1 _UID B0349853E958E34BABEF775C1F1E32FE1877 1 FAMS @F150@ 1 FAMC @F34@ 1 NOTE !DEATH:Telephone communication with Alvera Wittsell 22 November 2000. 1 CHAN 2 DATE 27 Nov 2000 3 TIME 00:00:00 0 @I209@ INDI 1 NAME Merle Marie Irene /Wittsell/ 2 SURN Wittsell 2 GIVN Merle Marie Irene 1 SEX F 1 BIRT 2 DATE 4 Aug 1918 2 PLAC Stark,Neosho,Kansas 1 DEAT 2 DATE 5 Jun 1989 1 _UID C0E1D34E570473489B16F1BD86D7C7126DFB 1 FAMS @F151@ 1 FAMC @F34@ 1 CHAN 2 DATE 17 Feb 2000 3 TIME 00:00:00 0 @I210@ INDI 1 NAME Wanda Bernice /Wittsell/ 2 SURN Wittsell 2 GIVN Wanda Bernice 1 SEX F 1 BIRT 2 DATE 15 Jul 1923 2 PLAC Stark,Neosho,Kansas 1 DEAT 2 DATE 18 Sep 1977 1 _UID 13A80151D495704AA65A613E4D6B2A1BCC8A 1 FAMS @F152@ 1 FAMC @F34@ 1 NOTE Twin 1 CHAN 2 DATE 17 Feb 2000 3 TIME 00:00:00 0 @I211@ INDI 1 NAME Waneta Beulah /Wittsell/ 2 SURN Wittsell 2 GIVN Waneta Beulah 1 SEX F 1 BIRT 2 DATE 15 Jul 1923 2 PLAC Stark,Neosho,Kansas 1 _UID 20EED3CC23F71348A5C17FA159D9DFB97253 1 FAMS @F153@ 1 FAMC @F34@ 1 NOTE Twin 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I212@ INDI 1 NAME Mary Ann /Shipp/ 2 SURN Shipp 2 GIVN Mary Ann 1 SEX F 1 BIRT 2 DATE 14 Jun 1885 2 PLAC Hepler,Crawford,Kansas 1 DEAT 2 DATE 9 Nov 1967 2 PLAC Erie,Neosho,Kansas 1 BURI 2 PLAC Erie,Neosho,Kansas 1 _UID 5D583B0F25A0AF429AC2BAE39F2244A154AD 1 FAMS @F36@ 1 NOTE 1. Mary was buried in the Huff Cemetery in Erie, Kansas. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I213@ INDI 1 NAME Armour Andrew /Wittsell/ 2 SURN Wittsell 2 GIVN Armour Andrew 1 SEX M 1 BIRT 2 DATE 6 Apr 1904 2 PLAC Savonburg,Allen,Kansas 1 _UID 3CD2843098006D4A82BD42C27DEA7A679C50 1 FAMS @F154@ 1 FAMC @F36@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I214@ INDI 1 NAME Mildred Marie /Wittsell/ 2 SURN Wittsell 2 GIVN Mildred Marie 1 SEX F 1 BIRT 2 DATE 10 Oct 1910 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE 29 Dec 1974 2 PLAC San Diego,San Diego,California 1 BURI 2 PLAC San Diego,San Diego,California 1 _UID B52ED1EB5C43284EA780AB099826F44D8ECC 1 FAMS @F155@ 1 FAMC @F36@ 1 NOTE 1. Mildred was buried in the El Camino Cemetery in San Diego, California. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I215@ INDI 1 NAME Loys Verle Jack /Franklin/ 2 SURN Franklin 2 GIVN Loys Verle Jack 1 SEX M 1 BIRT 2 DATE 3 Aug 1907 2 PLAC Erie,Neosho,Kansas 1 DEAT 2 DATE 30 Jan 1987 2 PLAC LaCygne,Linn,Kansas 1 BURI 2 PLAC San Diego,San Diego,California 1 _UID 4692FA7DD62C764C8704276476857978152A 1 FAMS @F155@ 1 NOTE 1. Jack Franklin was buried in the El Camino Cemetery in San Diego, 2 CONT California. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I216@ INDI 1 NAME Paul Norman /Franklin/ 2 SURN Franklin 2 GIVN Paul Norman 1 SEX M 1 BIRT 2 DATE 27 Aug 1928 2 PLAC Erie,Neosho,Kansas 1 _UID 9650886D812C0C4491643CB589DCF3F70D9F 1 FAMS @F156@ 1 FAMS @F157@ 1 FAMC @F155@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I217@ INDI 1 NAME Meta Marie /Jensen/ 2 SURN Jensen 2 GIVN Meta Marie 1 SEX F 1 BIRT 2 DATE 13 Jun 1913 2 PLAC Jedsted,Denmark 1 _UID 39C16FECC51AAA4797880751553BD6EFF139 1 FAMS @F154@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I218@ INDI 1 NAME Norma Lucille /Wittsell/ 2 SURN Wittsell 2 GIVN Norma Lucille 1 SEX F 1 BIRT 2 DATE 10 Jun 1950 2 PLAC Mesa,Maricopa,Arizona 1 _UID 0C67829F5BDD934F9CA67E5740EB29B9D21D 1 FAMS @F158@ 1 FAMC @F154@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I219@ INDI 1 NAME Beulah /Wittsell/ 2 SURN Wittsell 2 GIVN Beulah 1 SEX F 1 BIRT 2 DATE ABT 1906 2 PLAC Savonburg,Allen,Kansas 1 DEAT 2 DATE ABT 1909 2 PLAC Savonburg,Allen,Kansas 1 _UID F583E719BD78FE4DB7D7546A22CC08EB2513 1 FAMC @F36@ 1 NOTE A verbal report indicates Monie and Mary had a girl named Beulah born between 2 CONT Armour and Mildred that live only 3 years. This has not been confirmed by 2 CONT any records. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I220@ INDI 1 NAME Edgar Eugene /Swift/ 2 SURN Swift 2 GIVN Edgar Eugene 1 SEX M 1 BIRT 2 DATE 24 Jan 1888 2 PLAC Hamilton,Steuben,Indiana 1 _UID 26D47BD784CE5247BCADE889A711813A84F1 1 FAMS @F93@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I221@ INDI 1 NAME Lillian Lamoyne /Swift/ 2 SURN Swift 2 GIVN Lillian Lamoyne 1 SEX F 1 BIRT 2 DATE 30 Apr 1906 2 PLAC Edon,Williams,Ohio 1 _UID 05C788C557D33646A756B4838DD55DF0A2D7 1 FAMS @F159@ 1 FAMC @F93@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I222@ INDI 1 NAME Irene Elisabeth /Swift/ 2 SURN Swift 2 GIVN Irene Elisabeth 1 SEX F 1 BIRT 2 DATE 5 Sep 1910 2 PLAC Edon,Williams,Ohio 1 _UID 19F9FCD944B3644E9494C9129ECAC0975224 1 FAMC @F93@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I223@ INDI 1 NAME Wilene Agatha /Swift/ 2 SURN Swift 2 GIVN Wilene Agatha 1 SEX F 1 BIRT 2 DATE 12 Jun 1915 2 PLAC Edon,Williams,Ohio 1 _UID 886CCDC240012E418B4B250F39679151BF1E 1 FAMS @F160@ 1 FAMC @F93@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I224@ INDI 1 NAME Helen Berniece /Swift/ 2 SURN Swift 2 GIVN Helen Berniece 1 SEX F 1 BIRT 2 DATE 11 Mar 1921 2 PLAC Edon,Williams,Ohio 1 _UID 23A38D6B18F09A49AC8E2A4ACC932DD8BBB2 1 FAMC @F93@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I225@ INDI 1 NAME Homer Elgie /Knisely/ 2 SURN Knisely 2 GIVN Homer Elgie 1 SEX M 1 BIRT 2 DATE 7 Mar 1906 2 PLAC Mark Center,Defiance,Ohio 1 _UID 4D271F7DDCD73A489026BFBD7FD1F3C57F4C 1 FAMS @F159@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I226@ INDI 1 NAME Ronald Eugene /Knisely/ 2 SURN Knisely 2 GIVN Ronald Eugene 1 SEX M 1 BIRT 2 DATE 4 May 1928 2 PLAC Toledo,Lucas,Ohio 1 _UID 18445F977732464FA7028E8ABF856F383C83 1 FAMC @F159@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I227@ INDI 1 NAME Homer Carleton /Knisely/ 2 SURN Knisely 2 GIVN Homer Carleton 1 SEX M 1 BIRT 2 DATE 3 Feb 1935 2 PLAC Toledo,Lucas,Ohio 1 _UID 5479727D82CC1745AE01A5137E92AEB94492 1 FAMC @F159@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I228@ INDI 1 NAME Beverly Ann /Knisely/ 2 SURN Knisely 2 GIVN Beverly Ann 1 SEX F 1 BIRT 2 DATE 8 Sep 1937 2 PLAC Toledo,Lucas,Ohio 1 _UID 526AA64D3DDCDA438E75D4291B09D310EC27 1 FAMC @F159@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I229@ INDI 1 NAME Brenda Lee /Knisely/ 2 SURN Knisely 2 GIVN Brenda Lee 1 SEX F 1 BIRT 2 DATE 13 May 1943 2 PLAC Toledo,Lucas,Ohio 1 _UID 4C59DDFB70EC204B994E1638C40010D3209C 1 FAMC @F159@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I230@ INDI 1 NAME Gayle A /Headley/ 2 SURN Headley 2 GIVN Gayle A 1 SEX M 1 BIRT 2 DATE 1 Jul 1914 2 PLAC Edon,Williams,Ohio 1 _UID AE681581F578CC40B64278A8F2DFB0D18FB3 1 FAMS @F160@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I231@ INDI 1 NAME Katherine Gail /Headley/ 2 SURN Headley 2 GIVN Katherine Gail 1 SEX F 1 BIRT 2 DATE 9 May 1939 2 PLAC Niagara Falls,Niagara,New York 1 _UID 3A6733EC06FB5F4B89164284486983454981 1 FAMC @F160@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I232@ INDI 1 NAME Carol Louise /Headley/ 2 SURN Headley 2 GIVN Carol Louise 1 SEX F 1 BIRT 2 DATE 16 Nov 1940 2 PLAC Niagara Falls,Niagara,New York 1 _UID B81A29A4B871224EBA5E22A9B0C84CE1C031 1 FAMC @F160@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I233@ INDI 1 NAME Norman Edgar /Headley/ 2 SURN Headley 2 GIVN Norman Edgar 1 SEX M 1 BIRT 2 DATE 22 Jan 1945 2 PLAC Niagara Falls,Niagara,New York 1 _UID 3AB464E7058C434193D9046905625DA48FCA 1 FAMC @F160@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I234@ INDI 1 NAME Alitza Addalene /Long/ 2 SURN Long 2 GIVN Alitza Addalene 1 SEX F 1 BIRT 2 DATE 7 Nov 1914 2 PLAC Edon,Williams,Ohio 1 DEAT 2 DATE 30 Jun 1970 2 PLAC Edon,Williams,Ohio 1 BURI 2 DATE Jul 1970 2 PLAC Edon,Williams,Ohio 1 _UID 6D6AC16551AB094AA5575A76FB6C416A2ADD 1 FAMS @F119@ 1 FAMC @F161@ 1 NOTE One informant said Alitza was born on the same date in 1915. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I235@ INDI 1 NAME Martha Ann /Scott/ 2 SURN Scott 2 GIVN Martha Ann 1 SEX F 1 BIRT 2 DATE 10 Mar 1942 2 PLAC Edon,Williams,Ohio 1 _UID B302B7EEBE756B498BA932D1DBBE87B64EB6 1 FAMS @F162@ 1 FAMC @F119@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I236@ INDI 1 NAME Robert James /Scott/ 2 SURN Scott 2 GIVN Robert James 1 SEX M 1 BIRT 2 DATE 4 Sep 1943 2 PLAC Angola,Steuben,Indiana 1 _UID FC96EFD0FE174C4994483056261F98EF2914 1 FAMS @F163@ 1 FAMC @F119@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I237@ INDI 1 NAME Harley Martin /Squier/ 2 SURN Squier 2 GIVN Harley Martin 1 SEX M 1 BIRT 2 DATE 27 Aug 1898 2 PLAC Edon,Williams,Ohio 1 _UID 4837772815182941806F05CAAD63F187FB89 1 FAMS @F95@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I238@ INDI 1 NAME Lois Eileen /Squier/ 2 SURN Squier 2 GIVN Lois Eileen 1 SEX F 1 BIRT 2 DATE 26 Apr 1920 2 PLAC Edon,Williams,Ohio 1 _UID 39E3AC143BF05941AE1562C49AD88DA22BEF 1 FAMS @F164@ 1 FAMC @F95@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I239@ INDI 1 NAME Herbert Bassett /Beals/ 2 SURN Beals 2 GIVN Herbert Bassett 1 SEX M 1 BIRT 2 DATE 5 Nov 1916 2 PLAC Battle Creek,Calhoun,Michigan 1 _UID 31119C15EBBE5642B8F7EE2C4ED3889036C6 1 FAMS @F164@ 1 FAMC @F165@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I240@ INDI 1 NAME Gary Wayne /Beals/ 2 SURN Beals 2 GIVN Gary Wayne 1 SEX M 1 BIRT 2 DATE 6 May 1942 2 PLAC Detroit,Wayne,Michigan 1 _UID DB4D2EDF95AA9C4091B92379158BE6732FA6 1 FAMC @F164@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I241@ INDI 1 NAME Nora Lee /Beltz/ 2 SURN Beltz 2 GIVN Nora Lee 1 SEX F 1 BIRT 2 DATE 2 Oct 1931 1 _UID 0A8FD1852942D14ABDEEF3B0C33CE3781D40 1 FAMS @F121@ 1 FAMC @F166@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I242@ INDI 1 NAME Susan Kay /Scott/ 2 SURN Scott 2 GIVN Susan Kay 1 SEX F 1 BIRT 2 DATE 31 Jul 1950 2 PLAC Bryan,Williams,Ohio 1 _UID F567500B5E70904B8BADCDCEBEB21CFEBDEE 1 FAMS @F167@ 1 FAMC @F121@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I243@ INDI 1 NAME Richard J /Scott/ 2 SURN Scott 2 GIVN Richard J 1 SEX M 1 BIRT 2 DATE 7 Mar 1956 2 PLAC Montpelier,Williams,Ohio 1 _UID B41082EACE4DC0438D8C16B0264BE29A1A07 1 FAMC @F121@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I244@ INDI 1 NAME Idella /Zeiter/ 2 SURN Zeiter 2 GIVN Idella 1 SEX F 1 BIRT 2 DATE ABT 1886 1 _UID 6178002FEF5A894A9EBAF7D762B9B0DEF375 1 FAMS @F92@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I245@ INDI 1 NAME Herbert D /Scott/ 2 SURN Scott 2 GIVN Herbert D 1 SEX M 1 BIRT 2 DATE 31 Aug 1908 2 PLAC Edon,Williams,Ohio 1 _UID 0AC3196E1182444EB691D815368E78644DBF 1 FAMS @F168@ 1 FAMS @F169@ 1 FAMC @F92@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I246@ INDI 1 NAME Robert Eldred /Grimes/ 2 SURN Grimes 2 GIVN Robert Eldred 1 SEX M 1 _UID 33377843B31B5E469DD6CF424B14F851C39E 1 FAMS @F86@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I247@ INDI 1 NAME Malena /Kjerstensson/ 2 SURN Kjerstensson 2 GIVN Malena 1 SEX F 1 BIRT 2 DATE 3 Mar 1815 2 PLAC Slättaröd,Norra Åkarp,Kristianstad,Sweden 1 CHR 2 DATE 12 Mar 1815 2 PLAC Slättaröd,Norra Åkarp,Kristianstad,Sweden 1 DEAT 2 DATE 1 Mar 1875 2 PLAC ,Knox,Illinois 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 20 Nov 1956 2 TEMP SLAKE 1 _UID 6B50E04D68F6F341B7ACE571AEEC999F050E 1 FAMS @F50@ 1 FAMS @F170@ 1 FAMS @F171@ 1 FAMC @F172@ 1 SLGC 2 FAMC @F172@ 2 DATE BEF 1970 1 NOTE !NAME: Malena also used the last name of Kersten. 2 CONT !BIRTH: Norra Åkarp Parish records;Births;1815;FHL film 0141333; Norra Åkarp, Kristianstad, S 2 CONC weden. 1 CHAN 2 DATE 10 Feb 1999 3 TIME 00:00:00 0 @I248@ INDI 1 NAME Christian /Johnson/ 2 SURN Johnson 2 GIVN Christian 1 SEX M 1 BIRT 2 DATE 3 May 1808 2 PLAC Slättaröd,Norra Åkarp,Kristianstad,Sweden 1 CHR 2 DATE 8 May 1808 2 PLAC Slättaröd,Norra Åkarp,Kristianstad,Sweden 1 DEAT 2 DATE 12 Oct 1851 2 PLAC Galesburg,Knox,Illinois 1 BAPL 2 DATE 19 Oct 1954 2 TEMP SLAKE 1 ENDL 2 DATE 13 Sep 1956 2 TEMP SLAKE 1 _UID EB10392E38F760459719FE80D044755F4CAE 1 FAMS @F50@ 1 FAMC @F173@ 1 SLGC 2 FAMC @F173@ 2 DATE 8 Feb 1995 2 TEMP PROVO 1 NOTE !BIRTH:Norra Åkarp Parish records;Births;1808;FHL film 0141333; Norra Åkarp, Kristianstad, Sw 2 CONC eden. 1 CHAN 2 DATE 18 Dec 1997 3 TIME 00:00:00 0 @I249@ INDI 1 NAME Velma /Partee/ 2 SURN Partee 2 GIVN Velma 1 SEX F 1 BIRT 2 DATE 5 Aug 1910 2 PLAC Sherwood,Defiance,Ohio 1 _UID 32033F178034D0429B939E29424C967BE589 1 FAMS @F168@ 1 FAMC @F174@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I250@ INDI 1 NAME Irene J /Scott/ 2 SURN Scott 2 GIVN Irene J 1 SEX F 1 BIRT 2 DATE 5 May 1929 2 PLAC Highland Park,Wayne,Michigan 1 _UID 013F75AAC44D0541B521B54E640900BEBA7F 1 FAMC @F168@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I251@ INDI 1 NAME Barbara J /Scott/ 2 SURN Scott 2 GIVN Barbara J 1 SEX F 1 BIRT 2 DATE 27 Mar 1934 2 PLAC Berkley,Oakland,Michigan 1 _UID 4B6714A2A6B6D24884081CE13B5EA79B42B5 1 FAMC @F168@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I252@ INDI 1 NAME Herbert D Jr. /Scott/ 2 SURN Scott 2 GIVN Herbert D Jr. 1 SEX M 1 BIRT 2 DATE 24 Dec 1936 2 PLAC Berkley,Oakland,Michigan 1 _UID 198DE3EDFDA76C45A26F3C0EAA12925BCF18 1 FAMC @F168@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I253@ INDI 1 NAME Jacqueline C /Neuman/ 2 SURN Neuman 2 GIVN Jacqueline C 1 SEX F 1 _UID 7E90974A04658D469A121CDCF87EC9FD0BFE 1 FAMS @F169@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I254@ INDI 1 NAME Ronnie Leon /Harrell/ 2 SURN Harrell 2 GIVN Ronnie Leon 1 SEX M 1 _UID 450B0046FE39B24BAE78E409DD918122EEFD 1 FAMS @F84@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I255@ INDI 1 NAME John Glenn /Harrell/ 2 SURN Harrell 2 GIVN John Glenn 1 SEX M 1 BIRT 2 DATE 6 Aug 1968 2 PLAC Elizabeth City,Pasquotank,North Carolina 1 _UID EB51D74E15931941A5252C89C3C676583939 1 FAMC @F84@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I256@ INDI 1 NAME Frances Elwyn /Dawley/ 2 SURN Dawley 2 GIVN Frances Elwyn 1 SEX F 1 BIRT 2 DATE 2 Feb 1907 2 PLAC Atlanta,DeKalb,Georgia 1 DEAT 2 DATE 12 Dec 1951 2 PLAC College Park,Prince Georges,Maryland 1 BURI 2 DATE Dec 1951 2 PLAC Richmond,Henrico,Virginia 1 _UID 25F3669DAE21E84FA220B81CD5558640A7EF 1 FAMS @F145@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I257@ INDI 1 NAME James Weir Jr. /Wittsell/ 2 SURN Wittsell 2 GIVN James Weir Jr. 2 NICK Bud 1 SEX M 1 BIRT 2 DATE 25 Nov 1929 2 PLAC Richmond,Henrico,Virginia 1 _UID 4C555B03B0DC084EB871D38A32EDFC45C7E5 1 FAMS @F175@ 1 FAMC @F145@ 1 CHAN 2 DATE 21 Jun 2000 3 TIME 01:00:00 0 @I258@ INDI 1 NAME Kenneth Eugene /Wittsell/ 2 SURN Wittsell 2 GIVN Kenneth Eugene 1 SEX M 1 BIRT 2 DATE 5 Jun 1932 2 PLAC Richmond,Henrico,Virginia 1 CHR 2 PLAC First Baptist Church,Richmond,Virginia 1 _UID 8A85C28B7D9E9146B63A4D7499471FDDDB88 1 FAMS @F176@ 1 FAMS @F177@ 1 FAMS @F178@ 1 FAMS @F179@ 1 FAMC @F145@ 1 CHAN 2 DATE 20 Aug 2000 3 TIME 01:00:00 0 @I259@ INDI 1 NAME Phyllis Rebecca /Fowler/ 2 SURN Fowler 2 GIVN Phyllis Rebecca 1 SEX F 1 BIRT 2 DATE 5 Dec 1933 2 PLAC Richmond,Henrico,Virginia 1 _UID A878C6399CA74B4FAC256156D143DD4ABFDB 1 FAMS @F175@ 1 FAMC @F180@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I260@ INDI 1 NAME Karen Yvonne /Wittsell/ 2 SURN Wittsell 2 GIVN Karen Yvonne 1 SEX F 1 BIRT 2 DATE 27 Apr 1956 2 PLAC Arlington,Arlington,Virginia 1 _UID 0D1769144F9D904090C586C38B6CBBDA87D4 1 FAMS @F181@ 1 FAMS @F182@ 1 FAMC @F175@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I261@ INDI 1 NAME Stephen Wayne /Wittsell/ 2 SURN Wittsell 2 GIVN Stephen Wayne 1 SEX M 1 BIRT 2 DATE 12 Aug 1959 2 PLAC Arlington,Arlington,Virginia 1 _UID B063F8F256A9AB4E8501781ADB89C5B4EA24 1 FAMS @F183@ 1 FAMC @F175@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I262@ INDI 1 NAME Kevin James /Wittsell/ 2 SURN Wittsell 2 GIVN Kevin James 1 SEX M 1 BIRT 2 DATE 13 Jun 1962 2 PLAC Fredricksburg,Spotsylvania,Virginia 1 _UID 55DBEE3FBBBD3F439B71F6FD442A1CB2922C 1 FAMS @F184@ 1 FAMC @F175@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I263@ INDI 1 NAME Patricia Ann /Taylor/ 2 SURN Taylor 2 GIVN Patricia Ann 1 SEX F 1 BIRT 2 DATE 11 Jan 1935 2 PLAC Ware,Hampshire,Massachusetts 1 _UID F221CB0D25B0684FACEF251C1968CFA74A29 1 FAMS @F176@ 1 FAMS @F185@ 1 FAMC @F186@ 1 NOTE Divorced from Kenneth Wittsell in 1965 1 CHAN 2 DATE 20 Aug 2000 3 TIME 01:00:00 0 @I264@ INDI 1 NAME Kenneth Eugene Jr. /Wittsell/ 2 SURN Wittsell 2 GIVN Kenneth Eugene Jr. 1 SEX M 1 BIRT 2 DATE 29 Apr 1954 2 PLAC Richmond,Henrico,Virginia 1 CHR 2 PLAC Richmond,Henrico,Virginia 1 _UID 8E7D6F1A79E22F44AB60AE9A3F08760D7F4E 1 FAMS @F187@ 1 FAMS @F188@ 1 FAMC @F176@ 1 CHAN 2 DATE 20 Aug 2000 3 TIME 01:00:00 0 @I265@ INDI 1 NAME Richard Taylor /Wittsell/ 2 SURN Wittsell 2 GIVN Richard Taylor 1 SEX M 1 BIRT 2 DATE 5 Dec 1955 2 PLAC Richmond,Henrico,Virginia 1 CHR 2 PLAC Richmond,Henrico,Virginia 1 _UID F5425F4178411E45AAA52ED98E88A147472E 1 FAMS @F189@ 1 FAMC @F176@ 1 CHAN 2 DATE 20 Aug 2000 3 TIME 01:00:00 0 @I266@ INDI 1 NAME John Henry /Wittsell/ 2 SURN Wittsell 2 GIVN John Henry 1 SEX M 1 BIRT 2 DATE 10 Mar 1960 2 PLAC Norfolk,Norfolk,Virginia 1 CHR 2 PLAC Norfolk,Norfolk,Virginia 1 DEAT 2 DATE 17 Mar 1960 2 PLAC Norfolk,Norfolk,Virginia 1 BURI 2 DATE Mar 1960 2 PLAC Richmond,Henrico,Virginia 1 _UID 599F8748CA9C99408D6129F8F7B284BDFFE5 1 FAMC @F176@ 1 CHAN 2 DATE 20 Aug 2000 3 TIME 01:00:00 0 @I267@ INDI 1 NAME Douglas Mason /Wittsell/ 2 SURN Wittsell 2 GIVN Douglas Mason 1 SEX M 1 BIRT 2 DATE 1 Jun 1961 2 PLAC Norfolk,Norfolk,Virginia 1 CHR 2 DATE 1961 2 PLAC Norfolk,Norfolk,Virginia 1 _UID B170CC8EF4238A4DBD66B855CB2FA3497FFB 1 FAMS @F190@ 1 FAMC @F176@ 1 CHAN 2 DATE 20 Aug 2000 3 TIME 01:00:00 0 @I268@ INDI 1 NAME Anita June /Wood/ 2 SURN Wood 2 GIVN Anita June 1 SEX F 1 _UID 5642545E3070FF4E90B7C5405166DCFF15EC 1 FAMS @F177@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I269@ INDI 1 NAME Frances Susie /Van de Bosch/ 2 SURN Van de Bosch 2 GIVN Frances Susie 1 SEX F 1 BIRT 2 DATE 23 Sep 1938 2 PLAC Brooklyn,Kings,New York 1 _UID 3CA904D8E97F0F45A89E729C888FC9B46598 1 FAMS @F178@ 1 FAMC @F191@ 1 NOTE Frances Susie is the adopted daughter of Frank Van De Bosch and Elizabeth 2 CONT Cole. 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I270@ INDI 1 NAME Margaret May /White/ 2 SURN White 2 GIVN Margaret May 2 NICK Maggie 1 SEX F 1 BIRT 2 DATE 27 Apr 1958 2 PLAC Roseville,Placer,California 1 _UID B743607BA29C0744955BCD85C0B7141A45C5 1 FAMS @F187@ 1 FAMC @F192@ 1 CHAN 2 DATE 29 Oct 2000 3 TIME 01:00:00 0 @I271@ INDI 1 NAME Jessica Renee /Wittsell/ 2 SURN Wittsell 2 GIVN Jessica Renee 1 SEX F 1 BIRT 2 DATE 11 May 1979 2 PLAC Citrus Heights,Sacramento,California 1 CHR 2 PLAC Fair Oaks,Sacramento,California 1 _UID 08E73AD3378B1148A7858892C47D5F6A673F 1 FAMS @F193@ 1 FAMC @F187@ 1 CHAN 2 DATE 20 Aug 2000 3 TIME 01:00:00 0 @I272@ INDI 1 NAME Debbie Jean /Posey/ 2 SURN Posey 2 GIVN Debbie Jean 1 SEX F 1 BIRT 2 DATE 11 Apr 1957 2 PLAC Sacramento,Sacramento,California 1 _UID 98A5EDD08D025A4A94AF6D6AF830FCB21DA4 1 FAMS @F189@ 1 FAMC @F194@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I273@ INDI 1 NAME Hubert James /Wolfe/ 2 SURN Wolfe 2 GIVN Hubert James 1 SEX M 1 BIRT 2 DATE 13 Jan 1906 2 PLAC Uniontown,Bourbon,Kansas 1 DEAT 2 DATE 21 Jan 2000 1 _UID 6BF8E879E14A0F4096E0DD1A74796E7B81AF 1 FAMS @F146@ 1 FAMC @F195@ 1 CHAN 2 DATE 17 Feb 2000 3 TIME 00:00:00 0 @I274@ INDI 1 NAME Hubert James Jr. /Wolfe/ 2 SURN Wolfe 2 GIVN Hubert James Jr. 1 SEX M 1 BIRT 2 DATE 8 Apr 1929 2 PLAC Uniontown,Bourbon,Kansas 1 _UID C199424A7A643842BF6A960C187B6D3E4772 1 FAMS @F196@ 1 FAMC @F146@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I275@ INDI 1 NAME Betty Ann /Bollman/ 2 SURN Bollman 2 GIVN Betty Ann 1 SEX F 1 BIRT 2 DATE 6 Jan 1930 2 PLAC Springfield,Greene,Missouri 1 _UID 97ECD0233267A04D88C3D05B5EBD0B4FE775 1 FAMS @F196@ 1 FAMC @F197@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I276@ INDI 1 NAME James Michael /Wolfe/ 2 SURN Wolfe 2 GIVN James Michael 1 SEX M 1 BIRT 2 DATE 17 Jul 1949 2 PLAC Kansas City,Jackson,Missouri 1 _UID E638B3DE15B7864DB9E06A61217AA0EFDCEC 1 FAMS @F198@ 1 FAMS @F199@ 1 FAMC @F196@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I277@ INDI 1 NAME Mark Steven /Wolfe/ 2 SURN Wolfe 2 GIVN Mark Steven 1 SEX M 1 BIRT 2 DATE 28 Aug 1950 2 PLAC Kansas City,Jackson,Missouri 1 _UID BA0515B05DB2014C96A92F0F5EB3CA97CF29 1 FAMS @F200@ 1 FAMS @F201@ 1 FAMC @F196@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I278@ INDI 1 NAME Randall Scott /Wolfe/ 2 SURN Wolfe 2 GIVN Randall Scott 1 SEX M 1 BIRT 2 DATE 1 Sep 1952 2 PLAC Kansas City,Jackson,Missouri 1 _UID 385BECAB92888E44A361F4E234CC641F7308 1 FAMS @F202@ 1 FAMC @F196@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I279@ INDI 1 NAME Richard Louis /Wolfe/ 2 SURN Wolfe 2 GIVN Richard Louis 1 SEX M 1 BIRT 2 DATE 2 Apr 1957 2 PLAC Kansas City,Jackson,Missouri 1 _UID 94648D01A8940141B93DBCF8E071175B717D 1 FAMS @F203@ 1 FAMS @F204@ 1 FAMC @F196@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I280@ INDI 1 NAME Cynthia Ann /Upchurch/ 2 SURN Upchurch 2 GIVN Cynthia Ann 1 SEX F 1 BIRT 2 DATE 11 Aug 1948 2 PLAC Roanoke,Roanoke,Virginia 1 _UID D554812FC325F647BA07F5DEC93D56BCAADB 1 FAMS @F205@ 1 FAMS @F201@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I281@ INDI 1 NAME Arwen Evenstar /Wolfe/ 2 SURN Wolfe 2 GIVN Arwen Evenstar 1 SEX F 1 BIRT 2 DATE 13 Mar 1985 2 PLAC Seattle,King,Washington 1 _UID C59E9EAC96676049A3E1581EB14C7178339F 1 FAMC @F201@ 1 CHAN 2 DATE 12 Jun 2000 3 TIME 01:00:00 0 @I282@ INDI 1 NAME Iva Irene /Holt/ 2 SURN Holt 2 GIVN Iva Irene 1 SEX F 1 BIRT 2 DATE 20 Feb 1909 2 PLAC Uniontown,Bourbon,Kansas 1 DEAT 2 DATE 25 Aug 1989 1 _UID CDC370B52B9879438B1A5737EC8D693881BB 1 FAMS @F147@ 1 CHAN 2 DATE 17 Feb 2000 3 TIME 00:00:00 0 @I283@ INDI 1 NAME Iva Jean /Wittsell/ 2 SURN Wittsell 2 GIVN Iva Jean 1 SEX F 1 BIRT 2 DATE 18 Feb 1938 2 PLAC Uniontown,Bourbon,Kansas 1 _UID D5206718485A044A9A7AEEF4AAB4C956D734 1 FAMS @F206@ 1 FAMC @F147@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I284@ INDI 1 NAME Glenn Galen /Isaac/ 2 SURN Isaac 2 GIVN Glenn Galen 1 SEX M 1 _UID A8010AB1F37B6B43B8712C4BDD9BD4117DA2 1 FAMS @F206@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I285@ INDI 1 NAME Mabel Maxine /Ramsey/ 2 SURN Ramsey 2 GIVN Mabel Maxine 1 SEX F 1 BIRT 2 DATE 13 Sep 1914 2 PLAC Uniontown,Bourbon,Kansas 1 DEAT 2 DATE 1988 1 _UID 68E03E11EF9D1440AB27E80A6141A87D02FB 1 FAMS @F148@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I286@ INDI 1 NAME Helen Marie /Wittsell/ 2 SURN Wittsell 2 GIVN Helen Marie 1 SEX F 1 BIRT 2 DATE 20 Feb 1940 2 PLAC Uniontown,Bourbon,Kansas 1 _UID 46FA75B9A79283499616600121E8ADA1D760 1 FAMS @F207@ 1 FAMC @F148@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I287@ INDI 1 NAME Larry Gail /Wittsell/ 2 SURN Wittsell 2 GIVN Larry Gail 1 SEX M 1 BIRT 2 DATE 5 May 1944 2 PLAC Uniontown,Bourbon,Kansas 1 DEAT 2 DATE 11 May 1944 2 PLAC Uniontown,Bourbon,Kansas 1 BURI 2 DATE May 1944 2 PLAC Uniontown,Bourbon,Kansas 1 _UID EC0695C462928F40A94A365E9EEDB79C7399 1 FAMC @F148@ 1 NOTE Twin 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I288@ INDI 1 NAME Gary Dale /Wittsell/ 2 SURN Wittsell 2 GIVN Gary Dale 1 SEX M 1 BIRT 2 DATE 5 May 1944 2 PLAC Uniontown,Bourbon,Kansas 1 DEAT 2 DATE 5 May 1944 2 PLAC Uniontown,Bourbon,Kansas 1 BURI 2 DATE May 1944 2 PLAC Uniontown,Bourbon,Kansas 1 _UID A85D8A377FB83A48AD6C36EA454A298FFFF7 1 FAMC @F148@ 1 NOTE Twin 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I289@ INDI 1 NAME Robert Garland /Wittsell/ 2 SURN Wittsell 2 GIVN Robert Garland 1 SEX M 1 BIRT 2 DATE 6 Aug 1946 2 PLAC Uniontown,Bourbon,Kansas 1 _UID 668A0914DBA7A245828BF98CD3EF4DDDF429 1 FAMS @F208@ 1 FAMC @F148@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I290@ INDI 1 NAME Phyllis /Phillips/ 2 SURN Phillips 2 GIVN Phyllis 1 SEX F 1 _UID 090475FFF4EFA2448B05BAD70B27A8175CA4 1 FAMS @F208@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I291@ INDI 1 NAME Donald Lee /Spainhoward/ 2 SURN Spainhoward 2 GIVN Donald Lee 1 SEX M 1 _UID F6794A2348137E4BBE9C36EE7E6AA0171DB5 1 FAMS @F207@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I292@ INDI 1 NAME Betty /Gordon/ 2 SURN Gordon 2 GIVN Betty 1 SEX F 1 _UID 5ED5385D5053284A89854731B8F3AE9652D4 1 FAMS @F149@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I293@ INDI 1 NAME Alvera Mae /Hite/ 2 SURN Hite 2 GIVN Alvera Mae 1 SEX F 1 BIRT 2 DATE 1 Nov 1928 2 PLAC Uniontown,Bourbon,Kansas 1 _UID 2281D411EFCA814BB015CCC0D1ACED3C04AC 1 FAMS @F150@ 1 CHAN 2 DATE 17 Feb 2000 3 TIME 00:00:00 0 @I294@ INDI 1 NAME Marilynn Sue /Wittsell/ 2 SURN Wittsell 2 GIVN Marilynn Sue 1 SEX F 1 BIRT 2 DATE 9 Jan 1950 2 PLAC Moran,Allen,Kansas 1 _UID 9ED0C4014BB42B42AAB9B9E1442D68B22748 1 FAMS @F209@ 1 FAMS @F210@ 1 FAMC @F150@ 1 NOTE !BIRTH:Family records of Marilynn Sue Wittsell Tutor Todnem, August 2000. 1 CHAN 2 DATE 26 Aug 2000 3 TIME 01:00:00 0 @I295@ INDI 1 NAME Larry Kenneth /Wittsell/ 2 SURN Wittsell 2 GIVN Larry Kenneth 1 SEX M 1 BIRT 2 DATE 13 Aug 1952 2 PLAC Moran,Allen,Kansas 1 _UID 2327ACFA6FC42647A922CBA9CCE211962401 1 FAMS @F211@ 1 FAMC @F150@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I296@ INDI 1 NAME Ricky Dean /Wittsell/ 2 SURN Wittsell 2 GIVN Ricky Dean 1 SEX M 1 BIRT 2 DATE 17 Jan 1965 2 PLAC Chico,Butte,California 1 _UID F733D864ACF55F4F96AF61D9D7F8E1A88C0F 1 FAMS @F212@ 1 FAMC @F150@ 1 CHAN 2 DATE 15 Jan 2002 3 TIME 22:28:18 0 @I297@ INDI 1 NAME David Craig /Tuter/ 2 SURN Tuter 2 GIVN David Craig 1 SEX M
| 50,415
|
https://github.com/DimaRU/FastRTPSSwift/blob/master/Sources/FastRTPSWrapper/CustomLogConsumer.h
|
Github Open Source
|
Open Source
|
MIT
| 2,020
|
FastRTPSSwift
|
DimaRU
|
C
|
Code
| 63
| 173
|
/////
//// CustomLogConsumer.h
/// Copyright © 2019 Dmitriy Borovikov. All rights reserved.
//
#pragma once
#include <fastdds/dds/log/Log.hpp>
namespace eprosima {
namespace fastdds {
namespace dds {
class CustomLogConsumer : public LogConsumer
{
public:
virtual ~CustomLogConsumer() {}
RTPS_DllAPI virtual void Consume(const Log::Entry&);
private:
void print_header(const Log::Entry&) const;
void print_context(const Log::Entry&) const;
};
} // namespace dds
} // namespace fastdds
} // namespace eprosima
| 25,527
|
https://github.com/OpenNebula/one/blob/master/src/rm/RequestManagerAllocate.cc
|
Github Open Source
|
Open Source
|
LicenseRef-scancode-unknown-license-reference, Apache-2.0, LicenseRef-scancode-proprietary-license
| 2,023
|
one
|
OpenNebula
|
C++
|
Code
| 3,290
| 12,203
|
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2023, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
/* not use this file except in compliance with the License. You may obtain */
/* a copy of the License at */
/* */
/* http://www.apache.org/licenses/LICENSE-2.0 */
/* */
/* Unless required by applicable law or agreed to in writing, software */
/* distributed under the License is distributed on an "AS IS" BASIS, */
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
/* See the License for the specific language governing permissions and */
/* limitations under the License. */
/* -------------------------------------------------------------------------- */
#include "RequestManagerAllocate.h"
#include "Nebula.h"
#include "PoolObjectSQL.h"
#include "MarketPlacePool.h"
#include "MarketPlaceAppPool.h"
#include "VirtualMachineDisk.h"
#include "HookPool.h"
#include "FedReplicaManager.h"
#include "ImageManager.h"
#include "MarketPlaceManager.h"
#include "ScheduledActionPool.h"
using namespace std;
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
bool RequestManagerAllocate::allocate_authorization(
xmlrpc_c::paramList const& paramList,
Template * tmpl,
RequestAttributes& att,
PoolObjectAuth * cluster_perms)
{
string tmpl_str = "";
AuthRequest ar(att.uid, att.group_ids);
if ( tmpl != 0 )
{
tmpl->to_xml(tmpl_str);
}
ar.add_create_auth(att.uid, att.gid, auth_object, tmpl_str);
if ( cluster_perms->oid != ClusterPool::NONE_CLUSTER_ID )
{
ar.add_auth(AuthRequest::ADMIN, *cluster_perms); // ADMIN CLUSTER
}
if (UserPool::authorize(ar) == -1)
{
att.resp_msg = ar.message;
failure_response(AUTHORIZATION, att);
return false;
}
return true;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
bool VirtualMachineAllocate::allocate_authorization(
xmlrpc_c::paramList const& paramList,
Template * tmpl,
RequestAttributes& att,
PoolObjectAuth * cluster_perms)
{
AuthRequest ar(att.uid, att.group_ids);
string t64;
string aname;
std::string memory, cpu;
VirtualMachineTemplate * ttmpl = static_cast<VirtualMachineTemplate *>(tmpl);
// ------------ Check template for restricted attributes -------------------
if (!att.is_admin())
{
if (ttmpl->check_restricted(aname))
{
att.resp_msg = "VM Template includes a restricted attribute "+aname;
failure_response(AUTHORIZATION, att);
return false;
}
}
// ------------------ Authorize VM create operation ------------------------
ar.add_create_auth(att.uid, att.gid, auth_object, tmpl->to_xml(t64));
VirtualMachine::set_auth_request(att.uid, ar, ttmpl, true);
if (UserPool::authorize(ar) == -1)
{
att.resp_msg = ar.message;
failure_response(AUTHORIZATION, att);
return false;
}
// ---------------------- Check Quotas & Topology --------------------------
if (VirtualMachine::parse_topology(ttmpl, att.resp_msg) != 0)
{
failure_response(ALLOCATE, att);
return false;
}
VirtualMachineTemplate aux_tmpl(*ttmpl);
VirtualMachineDisks::extended_info(att.uid, &aux_tmpl);
aux_tmpl.get("MEMORY", memory);
aux_tmpl.get("CPU", cpu);
aux_tmpl.add("RUNNING_MEMORY", memory);
aux_tmpl.add("RUNNING_CPU", cpu);
aux_tmpl.add("RUNNING_VMS", 1);
aux_tmpl.add("VMS", 1);
if ( quota_authorization(&aux_tmpl, Quotas::VIRTUALMACHINE, att) == false )
{
return false;
}
vector<unique_ptr<Template>> ds_quotas;
vector<unique_ptr<Template>> applied;
bool ds_quota_auth = true;
VirtualMachineDisks::image_ds_quotas(&aux_tmpl, ds_quotas);
for (auto& quota : ds_quotas)
{
if ( quota_authorization(quota.get(), Quotas::DATASTORE, att) == false )
{
ds_quota_auth = false;
}
else
{
applied.push_back(move(quota));
}
}
if ( ds_quota_auth == false )
{
quota_rollback(&aux_tmpl, Quotas::VIRTUALMACHINE, att);
for (auto& quota : applied)
{
quota_rollback(quota.get(), Quotas::DATASTORE, att);
}
}
return ds_quota_auth;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
void RequestManagerAllocate::request_execute(xmlrpc_c::paramList const& params,
RequestAttributes& att)
{
unique_ptr<Template> tmpl;
int rc, id;
string cluster_name = ClusterPool::NONE_CLUSTER_NAME;
PoolObjectAuth cluster_perms;
if ( do_template == true )
{
string str_tmpl = xmlrpc_c::value_string(params.getString(1));
tmpl = get_object_template();
rc = tmpl->parse_str_or_xml(str_tmpl, att.resp_msg);
if ( rc != 0 )
{
failure_response(INTERNAL, att);
return;
}
}
int cluster_id = get_cluster_id(params);
if ( cluster_id != ClusterPool::NONE_CLUSTER_ID )
{
rc = get_info(clpool, cluster_id, PoolObjectSQL::CLUSTER, att,
cluster_perms, cluster_name, true);
if ( rc != 0 )
{
return;
}
}
else
{
cluster_perms.oid = ClusterPool::NONE_CLUSTER_ID;
}
if ( allocate_authorization(params, tmpl.get(), att, &cluster_perms) == false )
{
return;
}
ErrorCode ec = pool_allocate(params, move(tmpl), id, att, cluster_id, cluster_name);
if ( ec != SUCCESS )
{
failure_response(ec, att);
return;
}
if ( cluster_id != ClusterPool::NONE_CLUSTER_ID )
{
if (auto cluster = clpool->get(cluster_id))
{
rc = add_to_cluster(cluster.get(), id, att.resp_msg);
}
else
{
att.resp_obj = PoolObjectSQL::CLUSTER;
att.resp_id = cluster_id;
failure_response(NO_EXISTS, att);
return;
}
if ( rc < 0 )
{
string drop_err;
if ( auto obj = pool->get<PoolObjectSQL>(id) )
{
pool->drop(obj.get(), drop_err);
}
failure_response(INTERNAL, att);
return;
}
}
//Take object body for hooks.
if (auto obj = pool->get<PoolObjectSQL>(id))
{
obj->to_xml(att.extra_xml);
}
att.resp_id = id;
success_response(id, att);
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
static int drop_sched_actions(ScheduledActionPool *pool, std::vector<int> sa_ids)
{
std::string error;
int i = 0;
for (const auto& id : sa_ids)
{
if (auto sa = pool->get(id))
{
pool->drop(sa.get(), error);
i++;
}
}
return i;
}
Request::ErrorCode VirtualMachineAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
auto sapool = Nebula::instance().get_sapool();
auto vmpool = static_cast<VirtualMachinePool *>(pool);
std::vector<int> sa_ids;
bool on_hold = false;
bool sa_error = false;
time_t stime = time(0);
if ( paramList.size() > 2 )
{
on_hold = xmlrpc_c::value_boolean(paramList.getBoolean(2));
}
/* ---------------------------------------------------------------------- */
/* Save SCHED_ACTION attributes for allocation */
/* ---------------------------------------------------------------------- */
std::vector<unique_ptr<VectorAttribute>> sas;
tmpl->remove("SCHED_ACTION", sas);
/* ---------------------------------------------------------------------- */
/* Allocate VirtualMachine object */
/* ---------------------------------------------------------------------- */
Template tmpl_back(*tmpl);
auto tmpl_ptr = static_cast<VirtualMachineTemplate*>(tmpl.release());
unique_ptr<VirtualMachineTemplate> ttmpl(tmpl_ptr);
int rc = vmpool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(ttmpl), &id, att.resp_msg, on_hold);
if ( rc < 0 )
{
goto error_drop_vm;
}
/* ---------------------------------------------------------------------- */
/* Create ScheduleAction and associate to the VM */
/* ---------------------------------------------------------------------- */
for (const auto& sa : sas)
{
int sa_id = sapool->allocate(PoolObjectSQL::VM, id, stime, sa.get(), att.resp_msg);
if (sa_id < 0)
{
sa_error = true;
break;
}
sa_ids.push_back(sa_id);
}
/* ---------------------------------------------------------------------- */
/* Error creating a SCHED_ACTION rollback created objects */
/* ---------------------------------------------------------------------- */
if (sa_error)
{
drop_sched_actions(sapool, sa_ids);
goto error_drop_vm;
}
/* ---------------------------------------------------------------------- */
/* Associate SCHED_ACTIONS to the VM */
/* ---------------------------------------------------------------------- */
if ( auto vm = vmpool->get(id) )
{
for (const auto id: sa_ids)
{
vm->sched_actions().add(id);
}
vmpool->update(vm.get());
}
else
{
att.resp_msg = "VM deleted while setting up SCHED_ACTION";
drop_sched_actions(sapool, sa_ids);
return Request::INTERNAL;
}
return Request::SUCCESS;
error_drop_vm:
vector<unique_ptr<Template>> ds_quotas;
std::string memory, cpu;
tmpl_back.get("MEMORY", memory);
tmpl_back.get("CPU", cpu);
tmpl_back.add("RUNNING_MEMORY", memory);
tmpl_back.add("RUNNING_CPU", cpu);
tmpl_back.add("RUNNING_VMS", 1);
tmpl_back.add("VMS", 1);
quota_rollback(&tmpl_back, Quotas::VIRTUALMACHINE, att);
VirtualMachineDisks::extended_info(att.uid, &tmpl_back);
VirtualMachineDisks::image_ds_quotas(&tmpl_back, ds_quotas);
for (auto& quota : ds_quotas)
{
quota_rollback(quota.get(), Quotas::DATASTORE, att);
}
return Request::INTERNAL;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode VirtualNetworkAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att,
int cluster_id,
const string& cluster_name)
{
VirtualNetworkPool * vpool = static_cast<VirtualNetworkPool *>(pool);
unique_ptr<VirtualNetworkTemplate> vtmpl(
static_cast<VirtualNetworkTemplate*>(tmpl.release()));
set<int> cluster_ids;
if (cluster_id != ClusterPool::NONE_CLUSTER_ID)
{
cluster_ids.insert(cluster_id);
}
int rc = vpool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,-1,
move(vtmpl), &id, cluster_ids, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
void ImageAllocate::request_execute(xmlrpc_c::paramList const& params,
RequestAttributes& att)
{
string size_str;
long long size_mb;
istringstream iss;
ostringstream oss;
string ds_name;
string ds_data;
string ds_mad;
string tm_mad;
string ds_driver;
bool ds_persistent_only;
bool check_capacity = true;
Datastore::DatastoreType ds_type;
int rc, id;
PoolObjectAuth ds_perms;
string str_tmpl = xmlrpc_c::value_string(params.getString(1));
int ds_id = xmlrpc_c::value_int(params.getInt(2));
if ( params.size() > 3 && att.is_admin() )
{
check_capacity = xmlrpc_c::value_boolean(params.getBoolean(3));
}
Nebula& nd = Nebula::instance();
DatastorePool * dspool = nd.get_dspool();
ImagePool * ipool = static_cast<ImagePool *>(pool);
ImageManager * imagem = nd.get_imagem();
MarketPlacePool * marketpool = nd.get_marketpool();
MarketPlaceAppPool * apppool = nd.get_apppool();
Template img_usage;
Image::DiskType ds_disk_type;
int app_id;
int market_id;
long long avail;
bool ds_check;
bool persistent_attr;
string extra_data = "";
// ------------------------- Parse image template --------------------------
auto tmpl = make_unique<ImageTemplate>();
rc = tmpl->parse_str_or_xml(str_tmpl, att.resp_msg);
if ( rc != 0 )
{
failure_response(INTERNAL, att);
return;
}
// ------------------------- Check Datastore exists ------------------------
if ( auto ds = dspool->get_ro(ds_id) )
{
ds_type = ds->get_type();
if ( ds_type == Datastore::SYSTEM_DS || ds_type == Datastore::BACKUP_DS)
{
att.resp_msg = "New images can only be allocated in a files or image datastore.";
failure_response(ALLOCATE, att);
return;
}
ds->get_permissions(ds_perms);
ds_name = ds->get_name();
ds_check = ds->get_avail_mb(avail) && check_capacity;
ds_mad = ds->get_ds_mad();
tm_mad = ds->get_tm_mad();
ds_disk_type = ds->get_disk_type();
ds_persistent_only = ds->is_persistent_only();
ds->get_template_attribute("DRIVER", ds_driver);
ds->decrypt();
ds->to_xml(ds_data);
}
else
{
att.resp_id = ds_id;
att.resp_obj = PoolObjectSQL::DATASTORE;
failure_response(NO_EXISTS, att);
return;
}
// --------------- Get the SIZE for the Image, (DS driver) -----------------
if ( tmpl->get("FROM_APP", app_id) )
{
// This image comes from a MarketPlaceApp. Get the Market info and
// the size.
if ( auto app = apppool->get_ro(app_id) )
{
app->to_template(tmpl.get());
size_mb = app->get_size();
market_id = app->get_market_id();
}
else
{
att.resp_msg = "Cannot determine image SIZE.";
failure_response(INTERNAL, att);
return;
}
if ( auto market = marketpool->get_ro(market_id) )
{
market->to_xml(extra_data);
oss << size_mb;
size_str = oss.str();
//Do not use DRIVER from APP but from Datastore
if (!ds_driver.empty() )
{
tmpl->erase("DRIVER");
}
}
else
{
att.resp_msg = "Could not get the appliance's market.";
failure_response(INTERNAL, att);
return;
}
}
else
{
if ( tmpl->get("FROM_BACKUP_DS", app_id) )
{
string bck_ds_data;
if ( auto ds = dspool->get_ro(app_id) )
{
ds->decrypt();
ds->to_xml(bck_ds_data);
}
else
{
att.resp_msg = "Could not get associated backup datastore.";
failure_response(INTERNAL, att);
return;
}
rc = imagem->stat_image(tmpl.get(), bck_ds_data, size_str);
}
else
{
rc = imagem->stat_image(tmpl.get(), ds_data, size_str);
}
if ( rc == -1 )
{
att.resp_msg = "Cannot parse image SIZE: " + size_str;
failure_response(INTERNAL, att);
return;
}
iss.str(size_str);
iss >> size_mb;
if ( iss.fail() )
{
att.resp_msg = "Cannot parse image SIZE: " + size_str;
failure_response(INTERNAL, att);
return;
}
}
if (ds_check && (size_mb > avail))
{
att.resp_msg = "Not enough space in datastore";
failure_response(ACTION, att);
return;
}
tmpl->erase("SIZE");
tmpl->add("SIZE", size_str);
// ------------- Set authorization request for non-oneadmin's --------------
img_usage.add("DATASTORE", ds_id);
img_usage.add("SIZE", size_str);
AuthRequest ar(att.uid, att.group_ids);
string tmpl_str;
string aname;
// ------------ Check template for restricted attributes --------------
if (!att.is_admin())
{
if (tmpl->check_restricted(aname))
{
att.resp_msg = "Template includes a restricted attribute "+aname;
failure_response(AUTHORIZATION, att);
return;
}
}
// ------------------ Check permissions and ACLs ----------------------
tmpl->to_xml(tmpl_str);
ar.add_create_auth(att.uid, att.gid, auth_object, tmpl_str);
ar.add_auth(AuthRequest::USE, ds_perms); // USE DATASTORE
if (UserPool::authorize(ar) == -1)
{
att.resp_msg = ar.message;
failure_response(AUTHORIZATION, att);
return;
}
// -------------------------- Check Quotas ----------------------------
if ( quota_authorization(&img_usage, Quotas::DATASTORE, att) == false )
{
return;
}
// ------------------------- Check persistent only -------------------------
persistent_attr = Image::test_set_persistent(tmpl.get(), att.uid, att.gid, true);
if ( ds_persistent_only && persistent_attr == false )
{
att.resp_msg = "This Datastore only accepts persistent images.";
failure_response(ALLOCATE, att);
return;
}
// ------------------------- Allocate --------------------------------------
rc = ipool->allocate(att.uid,
att.gid,
att.uname,
att.gname,
att.umask,
move(tmpl),
ds_id,
ds_name,
ds_disk_type,
ds_data,
ds_type,
ds_mad,
tm_mad,
extra_data,
-1,
&id,
att.resp_msg);
if ( rc < 0 )
{
quota_rollback(&img_usage, Quotas::DATASTORE, att);
failure_response(ALLOCATE, att);
return;
}
if ( auto ds = dspool->get(ds_id) ) // TODO: error otherwise or leave image in ERROR?
{
ds->add_image(id);
dspool->update(ds.get());
}
// Take image body for Hooks
if (auto img = ipool->get(id))
{
img->to_xml(att.extra_xml);
}
att.resp_id = id;
success_response(id, att);
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode TemplateAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
VMTemplatePool * tpool = static_cast<VMTemplatePool *>(pool);
unique_ptr<VirtualMachineTemplate> ttmpl(
static_cast<VirtualMachineTemplate *>(tmpl.release()));
int rc = tpool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(ttmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
bool TemplateAllocate::allocate_authorization(
xmlrpc_c::paramList const& paramList,
Template * tmpl,
RequestAttributes& att,
PoolObjectAuth * cluster_perms)
{
AuthRequest ar(att.uid, att.group_ids);
string aname;
if (!RequestManagerAllocate::allocate_authorization(paramList, tmpl, att, cluster_perms))
{
return false;
}
VirtualMachineTemplate * ttmpl = static_cast<VirtualMachineTemplate *>(tmpl);
// ------------ Check template for restricted attributes -------------------
if (!att.is_admin())
{
if (ttmpl->check_restricted(aname))
{
att.resp_msg = "VM Template includes a restricted attribute "+aname;
failure_response(AUTHORIZATION, att);
return false;
}
}
return true;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode VirtualNetworkTemplateAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
VNTemplatePool * vnpool = static_cast<VNTemplatePool *>(pool);
unique_ptr<VirtualNetworkTemplate> ttmpl(
static_cast<VirtualNetworkTemplate *>(tmpl.release()));
int rc = vnpool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(ttmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
bool VirtualNetworkTemplateAllocate::allocate_authorization(
xmlrpc_c::paramList const& paramList,
Template * tmpl,
RequestAttributes& att,
PoolObjectAuth * cluster_perms)
{
AuthRequest ar(att.uid, att.group_ids);
string aname;
if (!RequestManagerAllocate::allocate_authorization(paramList, tmpl, att, cluster_perms))
{
return false;
}
VirtualNetworkTemplate * ttmpl = static_cast<VirtualNetworkTemplate *>(tmpl);
// ------------ Check template for restricted attributes -------------------
if (!att.is_admin())
{
if (ttmpl->check_restricted(aname))
{
att.resp_msg = "VM Template includes a restricted attribute "+aname;
failure_response(AUTHORIZATION, att);
return false;
}
}
return true;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode HostAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att,
int cluster_id,
const string& cluster_name)
{
string host = xmlrpc_c::value_string(paramList.getString(1));
string im_mad = xmlrpc_c::value_string(paramList.getString(2));
string vmm_mad = xmlrpc_c::value_string(paramList.getString(3));
HostPool * hpool = static_cast<HostPool *>(pool);
int rc = hpool->allocate(&id, host, im_mad, vmm_mad, cluster_id, cluster_name,
att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
bool UserAllocate::allocate_authorization(
xmlrpc_c::paramList const& paramList,
Template * tmpl,
RequestAttributes& att,
PoolObjectAuth * cluster_perms)
{
vector<xmlrpc_c::value> param_arr;
if ( paramList.size() > 4 )
{
param_arr = xmlrpc_c::value_array(
paramList.getArray(4)).vectorValueValue();
}
AuthRequest ar(att.uid, att.group_ids);
ar.add_create_auth(att.uid, att.gid, auth_object, "");
for (auto it = param_arr.begin(); it != param_arr.end(); it++)
{
int tmp_gid = xmlrpc_c::value_int(*it);
auto group = gpool->get_ro(tmp_gid);
if (group == nullptr)
{
att.resp_id = tmp_gid;
att.resp_obj = PoolObjectSQL::GROUP;
failure_response(NO_EXISTS, att);
return false;
}
// Users can be created in request group if USE CREATE is granted for it
// Other groups needs MANAGE permission.
if (att.gid != tmp_gid)
{
PoolObjectAuth perms;
group->get_permissions(perms);
ar.add_auth(AuthRequest::MANAGE, perms); // MANAGE GROUP
}
}
if (UserPool::authorize(ar) == -1)
{
att.resp_msg = ar.message;
failure_response(AUTHORIZATION, att);
return false;
}
return true;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode UserAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
string uname = xmlrpc_c::value_string(paramList.getString(1));
string passwd = xmlrpc_c::value_string(paramList.getString(2));
string driver = xmlrpc_c::value_string(paramList.getString(3));
set<int> gids;
set<int> agids;
int gid = -1;
vector<xmlrpc_c::value> param_arr;
if ( paramList.size() > 4 )
{
param_arr = xmlrpc_c::value_array(
paramList.getArray(4)).vectorValueValue();
}
AuthRequest ar(att.uid, att.group_ids);
for (auto it = param_arr.begin(); it != param_arr.end(); it++)
{
int tmp_gid = xmlrpc_c::value_int(*it);
gids.insert(tmp_gid);
if ( gid == -1 ) //First gid is the primary group
{
gid = tmp_gid;
}
}
if (gids.empty())
{
if ( att.gid == GroupPool::ONEADMIN_ID )
{
gid = GroupPool::USERS_ID;
gids.insert(GroupPool::USERS_ID);
}
else
{
gid = att.gid;
gids.insert(att.gid);
}
}
if (driver.empty())
{
driver = UserPool::CORE_AUTH;
}
int rc = static_cast<UserPool *>(pool)->allocate(&id, uname, gid, passwd,
driver, true, gids, agids, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode GroupAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
int rc;
string gname = xmlrpc_c::value_string(paramList.getString(1));
GroupPool * gpool = static_cast<GroupPool *>(pool);
rc = gpool->allocate(gname, &id, att.resp_msg);
if (rc == -1)
{
return Request::INTERNAL;
}
if (auto vdc = vdcpool->get(VdcPool::DEFAULT_ID))
{
rc = vdc->add_group(id, att.resp_msg);
vdcpool->update(vdc.get());
}
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode DatastoreAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att,
int cluster_id,
const string& cluster_name)
{
DatastorePool * dspool = static_cast<DatastorePool *>(pool);
unique_ptr<DatastoreTemplate> ds_tmpl(
static_cast<DatastoreTemplate *>(tmpl.release()));
set<int> cluster_ids;
if (cluster_id != ClusterPool::NONE_CLUSTER_ID)
{
cluster_ids.insert(cluster_id);
}
int rc = dspool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(ds_tmpl), &id, cluster_ids, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode ClusterAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
string name = xmlrpc_c::value_string(paramList.getString(1));
ClusterPool * clpool = static_cast<ClusterPool *>(pool);
int rc = clpool->allocate(name, &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode DocumentAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
int type = xmlrpc_c::value_int(paramList.getInt(2));
DocumentPool * docpool = static_cast<DocumentPool *>(pool);
int rc = docpool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
type, move(tmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
void ZoneAllocate::request_execute(xmlrpc_c::paramList const& params,
RequestAttributes& att)
{
if(!Nebula::instance().is_federation_master())
{
att.resp_msg = "New zones can only be created at federation master";
failure_response(ALLOCATE, att);
return;
}
RequestManagerAllocate::request_execute(params, att);
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode ZoneAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
ZonePool * zonepool = static_cast<ZonePool *>(pool);
int rc = zonepool->allocate(move(tmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
Nebula::instance().get_frm()->add_zone(id);
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode SecurityGroupAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
SecurityGroupPool * sgpool = static_cast<SecurityGroupPool *>(pool);
int rc = sgpool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(tmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode VdcAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
VdcPool * vdcpool = static_cast<VdcPool *>(pool);
int rc = vdcpool->allocate(move(tmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode VirtualRouterAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
VirtualRouterPool * vrpool = static_cast<VirtualRouterPool *>(pool);
int rc = vrpool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(tmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
bool VirtualRouterAllocate::allocate_authorization(
xmlrpc_c::paramList const& paramList,
Template * tmpl,
RequestAttributes& att,
PoolObjectAuth * cluster_perms)
{
AuthRequest ar(att.uid, att.group_ids);
string tmpl_str;
// ------------------ Authorize create operation ------------------------
ar.add_create_auth(att.uid, att.gid, auth_object, tmpl->to_xml(tmpl_str));
VirtualRouter::set_auth_request(att.uid, ar, tmpl, true);
if (UserPool::authorize(ar) == -1)
{
att.resp_msg = ar.message;
failure_response(AUTHORIZATION, att);
return false;
}
// -------------------------- Check Quotas ----------------------------
if (quota_authorization(tmpl, Quotas::VIRTUALROUTER, att, att.resp_msg) == false)
{
return false;
}
return true;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode MarketPlaceAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
MarketPlacePool * mppool = static_cast<MarketPlacePool *>(pool);
unique_ptr<MarketPlaceTemplate> ttmpl(
static_cast<MarketPlaceTemplate*>(tmpl.release()));
int rc = mppool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(ttmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode MarketPlaceAppAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
MarketPlaceManager* marketm = Nebula::instance().get_marketm();
MarketPlaceAppPool* appool = static_cast<MarketPlaceAppPool *>(pool);
unique_ptr<MarketPlaceAppTemplate> ttmpl(
static_cast<MarketPlaceAppTemplate *>(tmpl.release()));
int mp_id = xmlrpc_c::value_int(paramList.getInt(2));
std::string mp_data;
std::string mp_name;
// ---------------------------------------------------------------------- //
// Get Marketplace information for this app //
// ---------------------------------------------------------------------- //
if ( auto mp = mppool->get_ro(mp_id) )
{
mp_name = mp->get_name();
if ( !mp->is_action_supported(MarketPlaceApp::CREATE) )
{
att.resp_msg = "Create disabled for market: " + mp_name;
return Request::ACTION;
}
if ( mp->get_zone_id() != Nebula::instance().get_zone_id() )
{
att.resp_msg = "Marketplace is not in this OpenNebula zone";
return Request::ACTION;
}
mp->to_xml(mp_data);
}
else
{
att.resp_msg = "Cannot find associated MARKETPLACE";
return Request::INTERNAL;
}
// ---------------------------------------------------------------------- //
// Allocate MarketPlaceApp request is forwarded to master for slaves //
// ---------------------------------------------------------------------- //
int rc = appool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(ttmpl), mp_id, mp_name, &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
if ( auto mp = mppool->get(mp_id) )
{
mp->add_marketapp(id);
mppool->update(mp.get());
}
else
{
att.resp_msg = "Marketplace no longer exists";
if ( auto app = appool->get(id) )
{
string aux_str;
appool->drop(app.get(), aux_str);
}
return Request::INTERNAL;
}
// ---------------------------------------------------------------------- //
// Send request operation to market driver //
// ---------------------------------------------------------------------- //
if (marketm->import_app(id, mp_data, att.resp_msg) == -1)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode VMGroupAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
VMGroupPool * vmgpool = static_cast<VMGroupPool *>(pool);
int rc = vmgpool->allocate(att.uid, att.gid, att.uname, att.gname,
att.umask, move(tmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode HookAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
std::string hk_type;
HookPool * hkpool = static_cast<HookPool *>(pool);
tmpl->get("TYPE", hk_type);
if (Hook::str_to_hook_type(hk_type) == Hook::UNDEFINED)
{
ostringstream oss;
oss << "Invalid Hook type: " << hk_type;
att.resp_msg = oss.str();
return Request::INTERNAL;
}
id = hkpool->allocate(move(tmpl), att.resp_msg);
if (id < 0)
{
return Request::INTERNAL;
}
return Request::SUCCESS;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
Request::ErrorCode BackupJobAllocate::pool_allocate(
xmlrpc_c::paramList const& paramList,
unique_ptr<Template> tmpl,
int& id,
RequestAttributes& att)
{
/* ---------------------------------------------------------------------- */
/* Get SCHED_ACTION attributes */
/* ---------------------------------------------------------------------- */
std::vector<unique_ptr<VectorAttribute>> sas;
tmpl->remove("SCHED_ACTION", sas);
/* ---------------------------------------------------------------------- */
/* Create BackupJob object */
/* ---------------------------------------------------------------------- */
BackupJobPool * bjpool = static_cast<BackupJobPool *>(pool);
int rc = bjpool->allocate(att.uid, att.gid, att.uname, att.gname, att.umask,
move(tmpl), &id, att.resp_msg);
if (rc < 0)
{
return Request::INTERNAL;
}
if (sas.empty())
{
return Request::SUCCESS;
}
/* ---------------------------------------------------------------------- */
/* Create ScheduleAction and associate to the BackupJob */
/* ---------------------------------------------------------------------- */
auto sapool = Nebula::instance().get_sapool();
std::vector<int> sa_ids;
bool sa_error = false;
for (auto& sa : sas)
{
sa->remove("ARGS"); // ARGS not used for Backup Job Scheduled Action
int sa_id = sapool->allocate(PoolObjectSQL::BACKUPJOB, id, 0, sa.get(),
att.resp_msg);
if (sa_id < 0)
{
sa_error = true;
break;
}
else
{
sa_ids.push_back(sa_id);
}
}
/* ---------------------------------------------------------------------- */
/* Error creating a SCHED_ACTION rollback created objects */
/* ---------------------------------------------------------------------- */
if (sa_error)
{
drop_sched_actions(sapool, sa_ids);
if ( auto bj = bjpool->get(id) )
{
string error;
bjpool->drop(bj.get(), error);
}
return Request::INTERNAL;
}
/* ---------------------------------------------------------------------- */
/* Associate SCHED_ACTIONS to the BackupJob */
/* ---------------------------------------------------------------------- */
if ( auto bj = bjpool->get(id) )
{
for (const auto id: sa_ids)
{
bj->sched_actions().add(id);
}
bjpool->update(bj.get());
}
else
{
// BackupJob no longer exits, delete SchedActions
drop_sched_actions(sapool, sa_ids);
att.resp_msg = "BACKUPJOB deleted while setting up SCHED_ACTION";
return Request::INTERNAL;
}
return Request::SUCCESS;
}
| 29,837
|
https://github.com/strangerattractor/Soundvision/blob/master/SOUNDVISION_PUBLIC/Assets/Scripts/Visualizer/SpectrumVisualizer.cs
|
Github Open Source
|
Open Source
|
CC-BY-4.0
| 2,021
|
Soundvision
|
strangerattractor
|
C#
|
Code
| 69
| 239
|
using UnityEngine;
namespace cylvester
{
public interface ISpectrumVisualizer
{
float[] Spectrum { set; }
}
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
public class SpectrumVisualizer : MonoBehaviour, ISpectrumVisualizer
{
private MeshFilter meshFilter_;
private ICombMesh combMesh_;
private void Start()
{
combMesh_ = new CombMesh(512, 0.1f);
meshFilter_ = GetComponent<MeshFilter>();
meshFilter_.mesh = new Mesh
{
vertices = combMesh_.Vertices,
triangles = combMesh_.Indices
};
}
public float[] Spectrum
{
set
{
combMesh_.Update(value);
meshFilter_.mesh.vertices = combMesh_.Vertices;
}
}
}
}
| 24,742
|
https://github.com/johnsietsma/eons/blob/master/Assets/Cubehedron/Props/Materials/M_139156.mat.meta
|
Github Open Source
|
Open Source
|
MIT
| 2,016
|
eons
|
johnsietsma
|
Unity3D Asset
|
Code
| 6
| 40
|
fileFormatVersion: 2
guid: c5fc1d70737f8469ea2a602f2deb2429
NativeFormatImporter:
userData:
| 41,298
|
https://github.com/danielsunzhongyuan/puruan-training/blob/master/spring-boot-root/chapter3-jpa-demo/src/main/java/org/github/zsun/java/puruantraining/chapter3jpademo/model/Stock.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
puruan-training
|
danielsunzhongyuan
|
Java
|
Code
| 107
| 319
|
package org.github.zsun.java.puruantraining.chapter3jpademo.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "stock") //和Stock数据表关联
public class Stock {
@Id //通过@Id定义主键
private int id;
@Column(name = "name")
private String name;
@Column(name = "num")
private int num;
@Column(name = "description")
private String description;
public void setId(int id) {
this.id = id;
}
public void setName(String name) {
this.name = name;
}
public void setNum(int num) {
this.num = num;
}
public void setDescription(String description) {
this.description = description;
}
public int getId() {
return id;
}
public String getName() {
return name;
}
public int getNum() {
return num;
}
public String getDescription() {
return description;
}
}
| 40,683
|
https://github.com/lutzilutz/TraficCERN/blob/master/src/utils/Defaults.java
|
Github Open Source
|
Open Source
|
MIT
| 2,018
|
TraficCERN
|
lutzilutz
|
Java
|
Code
| 429
| 871
|
package utils;
public class Defaults {
private static boolean drawWire = false; // true for rendering the border of the cells
private static boolean drawColors = false; // true for rendering color codes (end of road, out cells, ...)
private static boolean drawRoadID = false; // true for rendering roads ID
private static boolean drawNames = false; // true for rendering names of road
private static boolean drawCenters = false; // true for rendering centers (x,y position)
private static boolean drawVehicleColor = false; // true for rendering rides color on vehicles
private static int simSpeed = 100000; // 1 - RT ; 20 - > ; 100 - >> ; 2000 - >>> ; 100000 - max
private static int sizeOfNetwork = 2; // visual size of network ; 1 - zoomed out ; 3 - zoomed in
private static int numberOfSimulations = 1; // number of simulations to compute
private static double globalFlowMultiplier = 1.00; // multiplier for the global flow ; 1.00 for 100% ; 1.50 for 150% ; ...
private static int transferScenario = 0; // 0 - no transfer ; 1 - min transfer ; 2 - max transfer
private static int repartitionETunnel = 50; // percentage of vehicle being transfered to entrance E (100-repartitionETunnel is transfer to tunnel)
private static int controlDuration = 8; // time in seconds to control 1 vehicle at 1 entrance
private static int[] lightPhaseDuration = {0, 15, 0, 35, 0, 15, 0, 15}; // pairs of min/max light phase duration (4 phases)
// Switchers
public static void switchDrawCenters() {
drawCenters = !drawCenters;
}
public static void switchDrawNames() {
drawNames = !drawNames;
}
public static void switchDrawRides() {
drawVehicleColor = !drawVehicleColor;
}
// Getters & setters ====================================================================================
public static boolean getDrawVehicleColor() {
return drawVehicleColor;
}
public static boolean getDrawWire() {
return drawWire;
}
public static boolean getDrawColors() {
return drawColors;
}
public static boolean getDrawRoadID() {
return drawRoadID;
}
public static boolean getDrawNames() {
return drawNames;
}
public static boolean getDrawCenters() {
return drawCenters;
}
public static int getSimSpeed() {
return simSpeed;
}
public static int getSizeOfNetwork() {
return sizeOfNetwork;
}
public static int getNumberOfSimulations() {
return numberOfSimulations;
}
public static double getGlobalFlowMultiplier() {
return globalFlowMultiplier;
}
public static void setGlobalFlowMultiplier(double newMultiplier) {
globalFlowMultiplier = newMultiplier;
}
public static int getTransferScenario() {
return transferScenario;
}
public static void setTransferScenario(int newScenario) {
transferScenario = newScenario;
}
public static int getRepartitionETunnel() {
return repartitionETunnel;
}
public static void setRepartitionETunnel(int i) {
repartitionETunnel = i;
}
public static int getControlDuration() {
return controlDuration;
}
public static int[] getLightPhaseDuration() {
return lightPhaseDuration;
}
}
| 9,519
|
https://github.com/DutchDS/Project-2/blob/master/aukjes_sandbox/static/sql/world_top_10.sql
|
Github Open Source
|
Open Source
|
MIT
| null |
Project-2
|
DutchDS
|
SQL
|
Code
| 30
| 107
|
select
country,
sum(conf_count) total,
sum(conf_count)-sum(cured_count)-sum(dead_count) sick,
sum(cured_count) cured,
sum(dead_count) dead,
max(date)
from daily_stats_world
where date = (select max(date ) from daily_stats_world)
group by country
order by total desc
limit 10
| 45,788
|
https://github.com/tschaban/AFE-Firmware/blob/master/core/lib/AFE-Firmware-Pro/AFE-Firmware-Pro.h
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
AFE-Firmware
|
tschaban
|
C
|
Code
| 68
| 227
|
/* AFE Firmware for smarthome devices, More info: https://afe.smartnydom.pl/ */
#ifndef _AFE_Firmware_Pro_h
#define _AFE_Firmware_Pro_h
#include <AFE-Data-Access.h>
#include <AFE-API-JSONRPC.h>
#ifdef DEBUG
#include <Streaming.h>
#endif
class AFEFirmwarePro {
private:
AFEDataAccess *Data;
AFEJSONRPC *RestAPI;
unsigned long miliseconds = 0;
unsigned long minutes = 0;
public:
PRO_VERSION Pro;
/* Constructor */
AFEFirmwarePro();
void begin(AFEDataAccess *, AFEJSONRPC *);
/* Checking if the key is still valid */
void validate();
void listener();
};
#endif
| 35,929
|
https://github.com/nuralja/casimir-programming-2/blob/master/test.py
|
Github Open Source
|
Open Source
|
MIT
| null |
casimir-programming-2
|
nuralja
|
Python
|
Code
| 26
| 58
|
print('hello world')
import numpy as np
def circumference(r):
circum = 2 * np.pi * r
return circum
def SurfArea(r):
SA = np.pi * r**2
return SA
| 20,651
|
https://github.com/fixxar/celos/blob/master/celos-server/src/main/java/com/collective/celos/trigger/OffsetTrigger.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,020
|
celos
|
fixxar
|
Java
|
Code
| 228
| 503
|
/*
* Copyright 2015 Collective, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.collective.celos.trigger;
import com.collective.celos.ScheduledTime;
import com.collective.celos.database.StateDatabaseConnection;
import com.collective.celos.Util;
import java.util.Collections;
/**
* Trigger that offsets a nested trigger into the past or future.
*/
public class OffsetTrigger extends Trigger {
private final int seconds;
private final Trigger trigger;
public OffsetTrigger(int seconds, Trigger trigger) {
this.seconds = seconds;
this.trigger = Util.requireNonNull(trigger);
}
@Override
public TriggerStatus getTriggerStatus(StateDatabaseConnection connection, ScheduledTime now, ScheduledTime scheduledTime) throws Exception {
TriggerStatus status = trigger.getTriggerStatus(connection, now, scheduledTime.plusSeconds(seconds));
boolean ready = status.isReady();
return makeTriggerStatus(ready, humanReadableDescription(ready), Collections.singletonList(status));
}
private String humanReadableDescription(boolean ready) {
if (ready) {
return "Nested trigger offset by " + getSeconds() + " seconds ready";
} else {
return "Nested trigger offset by " + getSeconds() + " seconds not ready";
}
}
public int getSeconds() {
return seconds;
}
public Trigger getTrigger() {
return trigger;
}
}
| 39,424
|
https://github.com/Ogunn/restaurant-menu/blob/master/src/App.tsx
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
restaurant-menu
|
Ogunn
|
TypeScript
|
Code
| 44
| 111
|
import * as React from "react";
import Container from "@material-ui/core/Container";
// import MenuList from "./components/MenuList";
import MenuCard from "./components/MenuCard";
import "./App.css";
const App: React.FC = () => {
return (
<div className="App">
{/* <MenuList /> */}
<MenuCard />
</div>
);
};
export default App;
| 26,758
|
https://github.com/citartech/open-cnab-php/blob/master/src/resources/B341/remessa/cnab400/Registro1.php
|
Github Open Source
|
Open Source
|
MIT
| null |
open-cnab-php
|
citartech
|
PHP
|
Code
| 362
| 2,372
|
<?php
namespace CnabPHP\resources\B341\remessa\cnab400;
use CnabPHP\resources\generico\remessa\cnab400\Generico1;
use CnabPHP\RegistroRemAbstract;
use CnabPHP\RemessaAbstract;
class Registro1 extends Generico1
{
public $protestar;
protected $meta = array(
'tipo_registro'=>array(
'tamanho'=>1,
'default'=>'1',
'tipo'=>'int',
'required'=>true),
'tipo_inscricao_empresa'=>array(
'tamanho'=>2,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'numero_inscricao_empresa'=>array(
'tamanho'=>14,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'agencia'=>array(
'tamanho'=>4,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'filler1'=>array(
'tamanho'=>2,
'default'=>'0',
'tipo'=>'int',
'required'=>true),
'conta'=>array(
'tamanho'=>5,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'conta_dv'=>array(
'tamanho'=>1,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'filler2'=>array(
'tamanho'=>4,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'cod_intrucao'=>array(
'tamanho'=>4,
'default'=>'0',
'tipo'=>'int',
'required'=>true),
'seu_numero'=>array(
'tamanho'=>25,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'nosso_numero'=>array(
'tamanho'=>8,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'qtd_moeda'=>array( //34.3P
'tamanho'=>8,
'default'=>'0',
'tipo'=>'decimal',
'precision'=>5,
'required'=>true),
'carteira_banco'=>array( //13.3P
'tamanho'=>3,
'default'=>'0',
'tipo'=>'int',
'required'=>true),
'filler3'=>array(
'tamanho'=>21,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'cod_carteira'=>array( //13.3P
'tamanho'=>1,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'codigo_movimento'=>array( // codigo da ocorrencia no manual itau
'tamanho'=>2,
'default'=>'01', // entrada de titulo
'tipo'=>'int',
'required'=>true),
'numero_documento'=>array( // codigo da ocorrencia no manual itau
'tamanho'=>10,
'default'=>' ', // entrada de titulo
'tipo'=>'alfa',
'required'=>true),
'data_vencimento'=>array( //20.3
'tamanho'=>6,
'default'=>'',
'tipo'=>'date',
'required'=>true),
'valor'=>array( //21.3P
'tamanho'=>11,
'default'=>'',
'tipo'=>'decimal',
'precision'=>2,
'required'=>true),
'codigo_banco'=>array(
'tamanho'=>3,
'default'=>'341',
'tipo'=>'int',
'required'=>true),
'agencia_cobradora'=>array( //22.3P
'tamanho'=>5,
'default'=>'0',
'tipo'=>'int',
'required'=>true),
'especie_titulo'=>array( //24.3P
'tamanho'=>2,
'default'=>'2',
'tipo'=>'int',
'required'=>true),
'aceite'=>array( //25.3P
'tamanho'=>1,
'default'=>'N',
'tipo'=>'alfa',
'required'=>true),
'data_emissao'=>array( //26.3P
'tamanho'=>6,
'default'=>'',
'tipo'=>'date',
'required'=>true),
'cod_instrucao1'=>array( //24.3P
'tamanho'=>2,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'cod_instrucao2'=>array( //24.3P
'tamanho'=>2,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'vlr_juros'=>array( //29.3P
'tamanho'=>11,
'default'=>'0',
'tipo'=>'decimal',
'precision'=>2,
'required'=>true),
'data_desconto'=>array( //31.3P
'tamanho'=>6,
'default'=>'0',
'tipo'=>'date',
'required'=>true),
'vlr_desconto'=>array( //32.3P
'tamanho'=>11,
'default'=>'0',
'tipo'=>'decimal',
'precision'=>2,
'required'=>true),
'vlr_IOF'=>array( //33.3P
'tamanho'=>11,
'default'=>'0',
'tipo'=>'decimal',
'precision'=>2,
'required'=>true),
'vlr_abatimento'=>array( //34.3P
'tamanho'=>11,
'default'=>'0',
'tipo'=>'decimal',
'precision'=>2,
'required'=>true),
'tipo_inscricao'=>array(
'tamanho'=>2,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'numero_inscricao'=>array(
'tamanho'=>14,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'nome_pagador'=>array( //10.3Q
'tamanho'=>30,
'default'=>'',
'tipo'=>'alfa',
'required'=>true),
'filler4'=>array(
'tamanho'=>10,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'endereco_pagador'=>array( // 11.3Q
'tamanho'=>40,
'default'=>'',
'tipo'=>'alfa',
'required'=>true),
'bairro_pagador'=>array( //12.3Q
'tamanho'=>12,
'default'=>'',
'tipo'=>'alfa',
'required'=>true),
'cep_pagador'=>array( //13.3Q
'tamanho'=>8,
'default'=>'',
'tipo'=>'int',
'required'=>true),
'cidade_pagador'=>array( //15.3Q
'tamanho'=>15,
'default'=>'',
'tipo'=>'alfa',
'required'=>true),
'uf_pagador'=>array( //16.3Q
'tamanho'=>2,
'default'=>'', // combrança com registro
'tipo'=>'alfa',
'required'=>true),
'nome_avalista'=>array( //18.3Q
'tamanho'=>30,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'filler5'=>array(
'tamanho'=>4,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'data_mora'=>array( //31.3P
'tamanho'=>6,
'default'=>'0',
'tipo'=>'date',
'required'=>true),
'prazo_baixa'=>array( //31.3P
'tamanho'=>2,
'default'=>'0',
'tipo'=>'int',
'required'=>true),
'filler6'=>array(
'tamanho'=>1,
'default'=>' ',
'tipo'=>'alfa',
'required'=>true),
'numero_registro'=>array( // 4.3R
'tamanho'=>6,
'default'=>'0',
'tipo'=>'int',
'required'=>true),
);
public function __construct($data = null)
{
if(empty($this->data))parent::__construct($data);
//$this->inserirMulta($data); não consegui validar o arquivo enviando o registro 2, entao temporariamente ficara desativado
}
public function inserirMulta($data)
{
if( isset($data['data_multa']))
{
$class = 'CnabPHP\resources\\'.RemessaAbstract::$banco.'\remessa\\'.RemessaAbstract::$layout.'\Registro2';
$this->children[] = new $class($data);
}
}
}
?>
| 17,112
|
https://github.com/mikosu3/nsen_batch/blob/master/src/main/java/net/tiger/star/nsen/service/NsenUserService.java
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,016
|
nsen_batch
|
mikosu3
|
Java
|
Code
| 252
| 1,069
|
package net.tiger.star.nsen.service;
import static net.tiger.star.nsen.entity.NsenUserNames.*;
import static org.seasar.extension.jdbc.operation.Operations.*;
import java.util.List;
import javax.annotation.Generated;
import net.tiger.star.nsen.entity.NsenUser;
/**
* {@link NsenUser}のサービスクラスです。
*
*/
@Generated(value = {"S2JDBC-Gen 2.4.45", "org.seasar.extension.jdbc.gen.internal.model.ServiceModelFactoryImpl"}, date = "2014/06/18 13:20:34")
public class NsenUserService extends AbstractService<NsenUser> {
/**
* 識別子でエンティティを検索します。
*
* @param userId
* 識別子
* @return エンティティ
*/
public NsenUser findById(Long userId) {
return select().id(userId).getSingleResult();
}
/**
* 識別子とバージョン番号でエンティティを検索します。
*
* @param userId
* 識別子
* @param version
* バージョン番号
* @return エンティティ
*/
public NsenUser findByIdVersion(Long userId, Long version) {
return select().id(userId).version(version).getSingleResult();
}
/**
* 識別子の昇順ですべてのエンティティを検索します。
*
* @return エンティティのリスト
*/
public List<NsenUser> findAllOrderById() {
return select().orderBy(asc(userId())).getResultList();
}
/**
* アクセストークンが生きているアクティブユーザーかどうか
* @param userId
* @return
*/
public boolean isActiveUser(Long userId) {
return select().where(eq(userId(), userId), isNotNull(accessToken()), isNotNull(accessTokenSecret())).getSingleResult() != null;
}
/**
* チケット情報をクリアする
* @param userId
*/
public void clearTicket(Long userId) {
// チケットクリア
NsenUser entity = findById(userId);
entity.ticket = "";
update(entity);
}
/**
* アクセストークンをクリアする
* @param userId
*/
public void clearToken(Long userId) {
// トークンクリア
NsenUser entity = findById(userId);
entity.accessToken = null;
entity.accessTokenSecret = null;
update(entity);
}
/**
* ツイッターIDから情報取得
* @param id
* @return
*/
public NsenUser findByTwitterId(Long id) {
return select().where(eq(twitterUserId(), id)).getSingleResult();
}
/**
* scrennNameで取得
* @param scrennName
* @return
*/
public NsenUser findByScreenName(String name) {
return select().where(eq(screenName(), name)).getSingleResult();
}
/**
* ツイッターIDから情報取得
* @param id
* @return
*/
public NsenUser findByTwitterId(long id) {
return select().where(eq(twitterUserId(), id)).getSingleResult();
}
/**
* チケットからユーザー情報を取得する
* @param ticket
* @return
*/
public NsenUser findByTicket(String ticket) {
try {
return select().where(eq(ticket(), ticket)).getSingleResult();
} catch(Exception e) {
return null;
}
}
}
| 40,243
|
https://github.com/dotnet/runtime/blob/master/src/coreclr/pal/tests/palsuite/locale_info/WideCharToMultiByte/test2/test2.cpp
|
Github Open Source
|
Open Source
|
MIT
| 2,023
|
runtime
|
dotnet
|
C++
|
Code
| 263
| 731
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
/*============================================================================
**
** Source: test2.c
**
** Purpose: Tests that WideCharToMultiByte respects the length of the wide
** character string.
**
**
**==========================================================================*/
#include <palsuite.h>
PALTEST(locale_info_WideCharToMultiByte_test2_paltest_widechartomultibyte_test2, "locale_info/WideCharToMultiByte/test2/paltest_widechartomultibyte_test2")
{
char mbStr[128];
WCHAR wideStr[128];
int ret;
int i;
int k;
BOOL bRet=TRUE;
/* These codepages are currently supported by the PAL */
int codePages[] ={
CP_ACP,
CP_UTF8
};
if (PAL_Initialize(argc, argv))
{
return FAIL;
}
/* Go through all of the code pages */
for(i=0; i<(sizeof(codePages)/sizeof(int)); i++)
{
/* Filling the arrays */
for (k=0; k<128; k++)
{
wideStr[k] = 'a';
mbStr[i] = 0;
}
wideStr[127] = 0;
/* Passing a buffer that is too small */
ret = WideCharToMultiByte(codePages[i], 0, wideStr, 10,
mbStr, 0, NULL, NULL);
if (ret != 10)
{
Trace("WideCharToMultiByte did not return correct string length!\n"
"Got %d, expected %d for %d with error %u.\n", ret, 10,
codePages[i], GetLastError());
bRet = FALSE;
}
/* Passing a sufficiently large buffer */
mbStr[10] = 'b';
ret = WideCharToMultiByte(codePages[i], 0, wideStr, 10,
mbStr, 128, NULL, NULL);
if (ret != 10)
{
Trace("WideCharToMultiByte did not return correct string length!\n"
"Got %d, expected %d for code page %d with error %u.\n",
ret, 10, codePages[i], GetLastError());
bRet = FALSE;
}
/* Verifying overflow of the destination string did not occur */
if (mbStr[10] != 'b')
{
Trace("WideCharToMultiByte overflowed the destination buffer for "
"code page %d.\n", codePages[i]);
bRet = FALSE;
}
}
int result = bRet ? PASS : FAIL;
PAL_TerminateEx(result);
return result;
}
| 47,650
|
https://github.com/uQr/AutoTest.Net/blob/master/lib/NUnit/src/NUnit-2.6.0.12051/src/NUnitFramework/framework/Constraints/ComparisonConstraints.cs
|
Github Open Source
|
Open Source
|
MIT
| 2,021
|
AutoTest.Net
|
uQr
|
C#
|
Code
| 234
| 566
|
// ****************************************************************
// Copyright 2011, Charlie Poole
// This is free software licensed under the NUnit license. You may
// obtain a copy of the license at http://nunit.org
// ****************************************************************
using System;
using System.Collections;
#if CLR_2_0 || CLR_4_0
using System.Collections.Generic;
#endif
namespace NUnit.Framework.Constraints
{
/// <summary>
/// Abstract base class for constraints that compare values to
/// determine if one is greater than, equal to or less than
/// the other. This class supplies the Using modifiers.
/// </summary>
public abstract class ComparisonConstraint : Constraint
{
/// <summary>
/// ComparisonAdapter to be used in making the comparison
/// </summary>
protected ComparisonAdapter comparer = ComparisonAdapter.Default;
/// <summary>
/// Initializes a new instance of the <see cref="T:ComparisonConstraint"/> class.
/// </summary>
public ComparisonConstraint(object arg) : base(arg) { }
/// <summary>
/// Initializes a new instance of the <see cref="T:ComparisonConstraint"/> class.
/// </summary>
public ComparisonConstraint(object arg1, object arg2) : base(arg1, arg2) { }
/// <summary>
/// Modifies the constraint to use an IComparer and returns self
/// </summary>
public ComparisonConstraint Using(IComparer comparer)
{
this.comparer = ComparisonAdapter.For(comparer);
return this;
}
#if CLR_2_0 || CLR_4_0
/// <summary>
/// Modifies the constraint to use an IComparer<T> and returns self
/// </summary>
public ComparisonConstraint Using<T>(IComparer<T> comparer)
{
this.comparer = ComparisonAdapter.For(comparer);
return this;
}
/// <summary>
/// Modifies the constraint to use a Comparison<T> and returns self
/// </summary>
public ComparisonConstraint Using<T>(Comparison<T> comparer)
{
this.comparer = ComparisonAdapter.For(comparer);
return this;
}
#endif
}
}
| 44,921
|
https://github.com/no-chris/chord-symbol/blob/master/packages/documentation/src/components/renderer/rendererConfig/TransposeValueConfig.js
|
Github Open Source
|
Open Source
|
MIT
| 2,023
|
chord-symbol
|
no-chris
|
JavaScript
|
Code
| 64
| 204
|
import React from 'react';
const TransposeValueConfig = ({ transposeValue, setTransposeValue }) => {
const increaseTransposeValue = () => {
if (transposeValue < 12) {
setTransposeValue(transposeValue + 1);
}
};
const decreaseTransposeValue = () => {
if (transposeValue > -12) {
setTransposeValue(transposeValue - 1);
}
};
return (
<div className={'ui-RendererConfigItem_Container '}>
Transpose value: <button onClick={decreaseTransposeValue}>-</button>{' '}
{transposeValue} <button onClick={increaseTransposeValue}>+</button>
</div>
);
};
export default TransposeValueConfig;
| 33,918
|
https://github.com/Karynageek/bank/blob/master/app/Http/Controllers/DepositController.php
|
Github Open Source
|
Open Source
|
MIT
| null |
bank
|
Karynageek
|
PHP
|
Code
| 113
| 487
|
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\Redirect;
use App\Deposit;
use App\History;
use App\Account;
use App\Http\Requests\DepositRequest;
use Auth;
class DepositController extends Controller {
public function __construct() {
$this->middleware('user');
}
public function show() {
$deposits = Deposit::where('user_id', Auth::user()->id)
->where('status', 2)->paginate(5);
return View::make('deposit.view')
->with('deposits', $deposits);
}
public function create() {
return View::make('deposit.create');
}
public function store(DepositRequest $request) {
$deposit = new Deposit;
$account = Account::where('user_id', Auth::user()->id)->first();
if ($account->balance >= $request->input('sum')) {
$deposit->status = $request->input('status');
$deposit->finished_at = $request->input('finished_at');
$deposit->sum = $request->input('sum');
$deposit->interest_rate = $request->input('interest_rate');
$deposit->user_id = Auth::user()->id;
$deposit = $account->deposits()->save($deposit);
$account->balance -= $deposit->sum;
$account->save();
$history = History::create([
'account_id' => $account->id,
'user_id'=> Auth::user()->id,
'title' => strtoupper("new deposit"),
'sum'=>$deposit->sum,
]);
}
return Redirect::to('user/deposit/view');
}
}
| 42,293
|
https://github.com/correar/FGV/blob/master/application/views/order/upload_file.php
|
Github Open Source
|
Open Source
|
MIT
| null |
FGV
|
correar
|
PHP
|
Code
| 252
| 1,162
|
<?php $i=1;
foreach ($profiles as $profile):
$idperfil = $profile['idperfil'];
$perfil = $profile['nome'];
$acabamento = $profile['acabamento'];
$sobre = $profile['sobre'];
$imagem = $profile['imagem'];
$infos[$i]['tipo'] = str_replace(' ','_',$profile['tipo']);
$infos[$i]['gramatura'] = $profile['gramatura'];
$infos[$i]['coloracao'] = $profile['coloracao'];
$infos[$i]['formato'] = $profile['formato'];
$infos[$i]['lado'] = $profile['lado'];
$i++;
endforeach;
//$this->session->unset_userdata('client_name');
//$this->session->sess_destroy();
?>
<?php foreach ($infos as $info):
?>
<!-- Modal -->
<div class="modal fade" id="upload_file<?php echo $info['tipo']; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class='container'>
<div class="row">
<div class="col-md-6">
<p>
<?php echo str_replace('_',' ',$info['tipo']) ?>
</p>
<form id='data<?php echo $info['tipo']; ?>' enctype="multipart/form-data">
<p>
Select File: <input type='file' name='userfile' id='_file'> <input type='submit' id='_submit' value='Upload!'>
</p>
</form>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div id="result1"></div>
</div>
</div>
<div class="row">
<div class="progress col-md-6">
<div id='_progress' class='progress-bar progress-bar-success progress-bar-striped' role="progressbar" aria-voluenow="0" aria-voluemin="0" aria-voluemax="100" style="width:0%"></div>
</div>
</div>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<script type="text/javascript">
var frm = '<?php echo $info['tipo']; ?>';
$("form#data"+frm).submit(function(event){
event.preventDefault();
var cnt = '<?php echo $this->session->cnt; ?>';
if (cnt == ''){
var i = 1;
}else{
var i = parseInt(cnt) + 1;
}
var _progress = $('#_progress');
var tipo = '<?php echo $info['tipo']; ?>';
var idperfil = '<?php echo $idperfil ?>';
var result1 = idperfil+tipo;
var file_name = new FormData($(this)[0]);
file_name.append('tipo',tipo);
file_name.append('cnt',i);
file_name.append('perfil',idperfil);
//file_name.append('id', j);
$.ajax({
type:'POST',
data: file_name,
url:'<?php echo site_url('order/upload_me'); ?>',
async: false,
cache: false,
contentType: false,
processData: false,
beforeSend: function(){
_progress.animate({width:"30%"}, 100);
},
success: function(result){
if (result == "erro")
{
_progress.animate({width:"0%"}, 100);
$("#result1").html(result);
}
else{
_progress.animate({width:"100%"}, 100);
$("#"+result1).append(result+"<br>");
window.setTimeout(function(){
location.reload();
}, 1000);
}
}
});
});
</script>
<?php endforeach; ?>
| 20,576
|
https://github.com/mcous/mcous.github.io/blob/master/src/components/atoms.tsx
|
Github Open Source
|
Open Source
|
MIT
| 2,023
|
mcous.github.io
|
mcous
|
TSX
|
Code
| 391
| 1,162
|
import type { FunctionComponent, RenderableProps } from 'preact'
type Atom<E extends HTMLElement> = FunctionComponent<JSX.HTMLAttributes<E>>
interface ParsedProps<P> {
id: string
className: string
passProps: Omit<P, 'class'>
}
export const parseProps = <
P extends RenderableProps<JSX.HTMLAttributes<never>>
>(
props: P
): ParsedProps<P> => {
const { class: classInput, ...passProps } = props
const id = typeof props.id === 'string' ? props.id : props.id?.value ?? ''
const className =
typeof classInput === 'string' ? classInput : classInput?.value ?? ''
return { id, className, passProps }
}
export const Link: Atom<HTMLAnchorElement> = (props) => {
const { className, passProps } = parseProps(props)
return (
<a
class={`text-blue-700 visited:text-purple-700 hover:underline ${className}`}
{...passProps}
/>
)
}
export const HoverLink: Atom<HTMLAnchorElement> = (props) => {
const { className, passProps } = parseProps(props)
return (
<a
class={`transition-color hover:text-blue-700 ${className}`}
{...passProps}
/>
)
}
export const Copy: Atom<HTMLParagraphElement> = (props) => {
const { className, passProps } = parseProps(props)
return (
<p class={`text-base leading-relaxed mt4 ${className}`} {...passProps} />
)
}
export const Heading1: Atom<HTMLHeadingElement> = (props) => {
const { className, passProps } = parseProps(props)
return <h1 class={`mt-8 text-2xl text-center ${className}`} {...passProps} />
}
export const Heading2: Atom<HTMLHeadingElement> = (props) => {
const { id, className, passProps } = parseProps(props)
return (
<h2 class={`mt-8 text-xl ${className}`} {...passProps}>
{id ? (
<a
href={`#${id}`}
class="hover:before:content-['#'] before:absolute before:ml--4 before:opacity-50"
>
{passProps.children}
</a>
) : (
passProps.children
)}
</h2>
)
}
export const Heading3: Atom<HTMLHeadingElement> = (props) => {
const { className, passProps } = parseProps(props)
return <h2 class={`mt-4 text-lg ${className}`} {...passProps} />
}
export const OrderedList: Atom<HTMLOListElement> = (props) => {
const { className, passProps } = parseProps(props)
return (
<ol class={`mt-4 list-decimal mt-4 pl-8 ${className}`} {...passProps} />
)
}
export const UnorderedList: Atom<HTMLUListElement> = (props) => {
const { className, passProps } = parseProps(props)
return <ul class={`mt-4 list-disc mt-4 pl-8 ${className}`} {...passProps} />
}
export const ListItem: Atom<HTMLLIElement> = (props) => {
const { className, passProps } = parseProps(props)
return <li class={`text-base leading-relaxed ${className}`} {...passProps} />
}
export const PreformattedText: Atom<HTMLPreElement> = (props) => {
const { className, passProps } = parseProps(props)
return (
<pre
class={`mt-4 text-xs sm:text-sm w-148 max-w-screen self-center ${className}`}
{...passProps}
/>
)
}
export const Code: Atom<HTMLElement> = (props) => {
const { className, passProps } = parseProps(props)
const isBlock = className.includes('hljs')
return (
<code
class={`font-mono ${
isBlock ? 'rounded-lg !pa-4' : 'rounded px-1 py-0.5 bg-slate-200'
} ${className}`}
{...passProps}
/>
)
}
| 10,803
|
https://github.com/SymmetryDesign/mindflux/blob/master/app/Billing/Stripe/StripeSubscriptionStatus.php
|
Github Open Source
|
Open Source
|
MIT
| 2,021
|
mindflux
|
SymmetryDesign
|
PHP
|
Code
| 71
| 205
|
<?php
namespace App\Billing\Stripe;
use App\Models\Subscription;
class StripeSubscriptionStatus
{
/**
* Determine the subscription status code by Stripe status value.
*
* @param string $status
* @return int
*/
public static function determine($status)
{
if ($status === 'active' || $status === 'trialing') {
return Subscription::STATUS_ACTIVE;
}
if ($status === 'past_due') {
return Subscription::STATUS_PAST_DUE;
}
if ($status === 'incomplete') {
return Subscription::STATUS_INCOMPLETE;
}
if ($status === 'canceled') {
return Subscription::STATUS_CANCELED;
}
}
}
| 47,505
|
https://github.com/stefanolsen/ka-ching-episerver-app/blob/master/src/KachingPlugIn.Web/Customers/CustomerViewModelFactory.cs
|
Github Open Source
|
Open Source
|
MIT
| null |
ka-ching-episerver-app
|
stefanolsen
|
C#
|
Code
| 98
| 339
|
using System.Collections.Generic;
using System.Linq;
using EPiServer.ServiceLocation;
using Mediachase.Commerce.Customers;
namespace KachingPlugIn.Web.Customers
{
[ServiceConfiguration(typeof(CustomerViewModelFactory))]
public class CustomerViewModelFactory
{
public virtual IEnumerable<CustomerViewModel> Create(IEnumerable<CustomerContact> contacts)
{
if (contacts == null)
{
yield break;
}
foreach (CustomerContact contact in contacts)
{
CustomerAddress shippingAddress = contact.ContactAddresses.FirstOrDefault(
a => (a.AddressType & CustomerAddressTypeEnum.Shipping) == CustomerAddressTypeEnum.Shipping);
var viewModel = new CustomerViewModel
{
Identifier = contact.PrimaryKeyId.ToString(),
Name = contact.FullName,
Street = shippingAddress?.Line1 +
(!string.IsNullOrWhiteSpace(shippingAddress?.Line2) ? ", "+ shippingAddress.Line2 : null),
PostalCode = shippingAddress?.PostalCode,
City = shippingAddress?.City,
Country = shippingAddress?.CountryName,
CountryCode = shippingAddress?.CountryCode,
Email = shippingAddress?.Email ?? contact.Email,
Phone = shippingAddress?.DaytimePhoneNumber
};
yield return viewModel;
}
}
}
}
| 38,179
|
https://github.com/hw233/KFrame/blob/master/1.Server/2.Midware/KFPlugin/KFDataShard/KFDataShardModule.cpp
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,019
|
KFrame
|
hw233
|
C++
|
Code
| 646
| 2,674
|
#include "KFDataShardModule.h"
#include "KFUtility/KFCompress.h"
namespace KFrame
{
#define __DATA_REDIS_DRIVER__( zoneid ) _kf_redis->Create( __KF_STRING__( data ), _invalid_int )
void KFDataShardModule::BeforeRun()
{
__REGISTER_LOOP_TIMER__( 1, 10000, &KFDataShardModule::OnTimerSaveDataKeeper );
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
__REGISTER_MESSAGE__( KFMsg::S2S_SAVE_PLAYER_REQ, &KFDataShardModule::HandleSavePlayerReq );
__REGISTER_MESSAGE__( KFMsg::S2S_QUERY_PLAYER_REQ, &KFDataShardModule::HandleQueryPlayerReq );
__REGISTER_MESSAGE__( KFMsg::S2S_LOGIN_LOAD_PLAYER_REQ, &KFDataShardModule::HandleLoginLoadPlayerReq );
__REGISTER_MESSAGE__( KFMsg::S2S_SET_PLAYER_NAME_REQ, &KFDataShardModule::HandleSetPlayerNameReq );
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}
void KFDataShardModule::BeforeShut()
{
__UNREGISTER_TIMER__();
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
__UNREGISTER_MESSAGE__( KFMsg::S2S_SAVE_PLAYER_REQ );
__UNREGISTER_MESSAGE__( KFMsg::S2S_QUERY_PLAYER_REQ );
__UNREGISTER_MESSAGE__( KFMsg::S2S_LOGIN_LOAD_PLAYER_REQ );
__UNREGISTER_MESSAGE__( KFMsg::S2S_SET_PLAYER_NAME_REQ );
}
void KFDataShardModule::OnceRun()
{
_name_redis_driver = _kf_redis->Create( __KF_STRING__( name ) );
}
////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////
bool KFDataShardModule::LoadPlayerData( uint32 zoneid, uint64 playerid, KFMsg::PBObject* pbobject )
{
// 先判断在keeper中是否存在
auto kfkeeper = _kf_data_keeper.Find( playerid );
if ( kfkeeper != nullptr )
{
pbobject->CopyFrom( kfkeeper->_pb_object );
return true;
}
auto redisdriver = __DATA_REDIS_DRIVER__( zoneid );
if ( redisdriver == nullptr )
{
__LOG_ERROR__( "player[{}:{}] can't find redis!", zoneid, playerid );
return false;
}
auto kfresult = redisdriver->QueryString( "hget {}:{} {}", __KF_STRING__( player ), playerid, __KF_STRING__( data ) );
if ( !kfresult->IsOk() )
{
__LOG_ERROR__( "player[{}:{}] query failed!", zoneid, playerid );
return false;
}
if ( !kfresult->_value.empty() )
{
auto ok = KFProto::Parse( pbobject, kfresult->_value, KFCompressEnum::Compress );
if ( !ok )
{
__LOG_ERROR__( "player[{}:{}] parse failed!", zoneid, playerid );
return false;
}
}
return true;
}
bool KFDataShardModule::SavePlayerData( uint32 zoneid, uint64 playerid, const KFMsg::PBObject* pbobject )
{
auto strdata = KFProto::Serialize( pbobject, KFCompressEnum::Compress );
if ( strdata == _invalid_str )
{
__LOG_ERROR__( "player[{}:{}] serialize failed!", zoneid, playerid );
return false;
}
auto redisdriver = __DATA_REDIS_DRIVER__( zoneid );
if ( redisdriver == nullptr )
{
__LOG_ERROR__( "player[{}:{}] can't find redis!", zoneid, playerid );
return false;
}
auto kfresult = redisdriver->Execute( "hset {}:{} {} {}", __KF_STRING__( player ), playerid, __KF_STRING__( data ), strdata );
if ( !kfresult->IsOk() )
{
__LOG_ERROR__( "player[{}:{}] save failed!", zoneid, playerid );
return false;
}
__LOG_DEBUG__( "player [{}:{}] save ok!", zoneid, playerid );
return true;
}
__KF_TIMER_FUNCTION__( KFDataShardModule::OnTimerSaveDataKeeper )
{
std::set< uint64 > removes;
for ( auto iter : _kf_data_keeper._objects )
{
auto kfkeeper = iter.second;
auto ok = SavePlayerData( kfkeeper->_zone_id, kfkeeper->_player_id, &kfkeeper->_pb_object );
if ( ok )
{
removes.insert( iter.first );
}
}
for ( auto playerid : removes )
{
_kf_data_keeper.Remove( playerid );
}
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
__KF_MESSAGE_FUNCTION__( KFDataShardModule::HandleLoginLoadPlayerReq )
{
__PROTO_PARSE__( KFMsg::S2SLoginLoadPlayerReq );
auto pblogin = &kfmsg.pblogin();
__LOG_DEBUG__( "player[{}:{}:{}] loaddata!", pblogin->account(), pblogin->accountid(), pblogin->playerid() );
auto zoneid = KFUtility::CalcZoneId( pblogin->playerid() );
KFMsg::S2SLoginLoadPlayerAck ack;
ack.mutable_pblogin()->CopyFrom( *pblogin );
bool ok = LoadPlayerData( zoneid, pblogin->playerid(), ack.mutable_playerdata() );
if ( ok )
{
ack.set_result( KFMsg::Ok );
}
else
{
ack.set_result( KFMsg::LoadDataFailed );
}
_kf_route->SendToRoute( route, KFMsg::S2S_LOGIN_LOAD_PLAYER_ACK, &ack );
}
__KF_MESSAGE_FUNCTION__( KFDataShardModule::HandleSavePlayerReq )
{
__PROTO_PARSE__( KFMsg::S2SSavePlayerReq );
auto zoneid = KFUtility::CalcZoneId( kfmsg.id() );
auto ok = SavePlayerData( zoneid, kfmsg.id(), &kfmsg.data() );
if ( ok )
{
_kf_data_keeper.Remove( kfmsg.id() );
}
else
{
// 保存失败 先缓存下来
auto kfkeeper = _kf_data_keeper.Create( kfmsg.id() );
kfkeeper->_player_id = kfmsg.id();
kfkeeper->_zone_id = zoneid;
kfkeeper->_pb_object.CopyFrom( kfmsg.data() );
}
}
__KF_MESSAGE_FUNCTION__( KFDataShardModule::HandleQueryPlayerReq )
{
__PROTO_PARSE__( KFMsg::S2SQueryPlayerReq );
auto zoneid = KFUtility::CalcZoneId( kfmsg.playerid() );
KFMsg::S2SQueryPlayerAck ack;
auto ok = LoadPlayerData( zoneid, kfmsg.playerid(), ack.mutable_playerdata() );
if ( ok )
{
ack.set_result( KFMsg::Ok );
}
else
{
ack.set_result( KFMsg::QueryPlayerFailed );
}
_kf_route->SendToRoute( route, KFMsg::S2S_QUERY_PLAYER_ACK, &ack );
}
__KF_MESSAGE_FUNCTION__( KFDataShardModule::HandleSetPlayerNameReq )
{
__PROTO_PARSE__( KFMsg::S2SSetPlayerNameReq );
// 先查询名字
uint32 result = SetPlayerName( kfmsg.playerid(), kfmsg.oldname(), kfmsg.newname() );
KFMsg::S2SSetPlayerNameAck ack;
ack.set_result( result );
ack.set_name( kfmsg.newname() );
ack.set_playerid( kfmsg.playerid() );
ack.set_itemguid( kfmsg.itemguid() );
_kf_route->SendToRoute( route, KFMsg::S2S_SET_PLAYER_NAME_ACK, &ack );
}
uint32 KFDataShardModule::SetPlayerName( uint64 playerid, const std::string& oldname, const std::string& newname )
{
auto kfplayerid = _name_redis_driver->QueryUInt64( "get {}:{}:{}", __KF_STRING__( player ), __KF_STRING__( name ), newname );
if ( !kfplayerid->IsOk() )
{
return KFMsg::NameDatabaseBusy;
}
// 如果不存在, 设置新名字
if ( kfplayerid->_value == _invalid_int )
{
// 保存名字
auto kfresult = _name_redis_driver->Execute( "set {}:{}:{} {}", __KF_STRING__( player ), __KF_STRING__( name ), newname, playerid );
if ( !kfresult->IsOk() )
{
return KFMsg::NameDatabaseBusy;
}
// 删除旧的名字关联
if ( !oldname.empty() )
{
_name_redis_driver->Execute( "del {}:{}:{}", __KF_STRING__( player ), __KF_STRING__( name ), oldname );
}
}
else if ( kfplayerid->_value != playerid )
{
// 存在, 并且不是设定者
return KFMsg::NameAlreadyExist;
}
return KFMsg::NameSetOK;
}
}
| 41,258
|
https://github.com/MrinmoiHossain/Algorithms/blob/master/C++ STL(Standard Template Library)/Iterator.cpp
|
Github Open Source
|
Open Source
|
MIT
| 2,020
|
Algorithms
|
MrinmoiHossain
|
C++
|
Code
| 76
| 194
|
#include <iostream>
#include <vector>
#include <iterator>
using namespace std;
int main(void)
{
vector<int> v;
for(int i = 0; i < 10; i++)
v.push_back(i * i);
vector<int>::iterator it;
vector<int>::reverse_iterator rit;
cout << "First to Last" << endl;
for(it = v.begin(); it != v.end(); it++)
cout << *it << endl;
cout << endl;
cout << "Last to First" << endl;
for(rit = v.rbegin(); rit != v.rend(); rit++)
cout << *rit << endl;
cout << endl;
return 0;
}
| 7,283
|
https://github.com/manga-download/hakuneko/blob/master/src/web/mjs/connectors/AnubisScans.mjs
|
Github Open Source
|
Open Source
|
Unlicense
| 2,023
|
hakuneko
|
manga-download
|
JavaScript
|
Code
| 32
| 111
|
import WordPressMadara from './templates/WordPressMadara.mjs';
export default class AnubisScans extends WordPressMadara {
constructor() {
super();
super.id = 'anubisscans';
super.label = 'Anubis Scans';
this.tags = [ 'webtoon', 'turkish' ];
this.url = 'https://anubisscans.com';
}
}
| 12,428
|
https://github.com/pgvr/mini-news/blob/master/src/app/services/update.service.ts
|
Github Open Source
|
Open Source
|
Apache-2.0
| null |
mini-news
|
pgvr
|
TypeScript
|
Code
| 48
| 144
|
import { Injectable } from '@angular/core';
import { SwUpdate } from '@angular/service-worker';
@Injectable({
providedIn: 'root',
})
export class UpdateService {
public showAlert: boolean;
constructor(private swUpdate: SwUpdate) {
this.swUpdate.available.subscribe(evt => {
this.showAlert = true;
});
}
public reloadLocation() {
window.location.reload();
}
public closeAlert() {
this.showAlert = false;
}
}
| 18,818
|
https://github.com/crici/gradle-native/blob/master/subprojects/docs/src/docs/samples/gradle-plugin-development-with-minimum-gradle-version/README.adoc
|
Github Open Source
|
Open Source
|
Apache-2.0
| 2,022
|
gradle-native
|
crici
|
AsciiDoc
|
Code
| 357
| 1,504
|
= Minimum Supported Gradle Version
:jbake-summary: Target a different Gradle version than the current running Gradle during plugin development.
:jbake-type: sample_chapter
:jbake-tags: sample, gradle plugin development, gradle
:jbake-category: Gradle Plugin Development
:jbake-description: See how the Nokee team is helping the Gradle community develop better plugin by modelling the minimum Gradle version.
NOTE: Open this sample in an IDE using https://www.jetbrains.com/help/idea/gradle.html#gradle_import_project_start[IntelliJ native importer], https://projects.eclipse.org/projects/tools.buildship[Eclipse Buildship].
This sample shows how the minimum Gradle version modelling offered by `dev.gradleplugins.java-gradle-plugin` (and `dev.gradleplugins.groovy-gradle-plugin`) can improve your Gradle plugin development.
The plugin only has dependencies on the redistributed Gradle API, <<../../manual/gradle-plugin-development.adoc#sec:gradle-dev-redistributed-gradle-api,see this chapter for more information>>.
The build also has a minimal configuration with a vanilla TestKit test.
====
[.multi-language-sample]
=====
.build.gradle
[source,groovy]
----
include::groovy-dsl/build.gradle[]
----
=====
[.multi-language-sample]
=====
.build.gradle.kts
[source,kotlin]
----
include::kotlin-dsl/build.gradle.kts[]
----
=====
====
<1> See the <<../../manual/gradle-plugin-development.adoc#sec:gradle-dev-testing,Gradle plugin development section on test suites>> in the user manual, and the link:../gradle-plugin-development-with-test-suites[test suites sample].
To build and test the plugin:
[listing.terminal]
----
$ ./gradlew test
BUILD SUCCESSFUL
6 actionable tasks: 6 executed
----
The plugin builds and executes the test as expected.
The important point here is the implicit dependencies:
[listing.terminal]
----
$ ./gradlew dependencies
...
compileClasspath - Compile classpath for source set 'main'.
\--- dev.gradleplugins:gradle-api:5.1
\--- org.codehaus.groovy:groovy:2.5.4
...
testRuntimeClasspath - Runtime classpath of source set 'test'.
+--- org.spockframework:spock-bom:2.0-groovy-2.5
| +--- org.spockframework:spock-core:2.0-groovy-2.5 (c)
| \--- org.spockframework:spock-groovy2-compat:2.0-groovy-2.5 (c)
\--- org.spockframework:spock-core -> 2.0-groovy-2.5
+--- org.junit:junit-bom:5.7.2
| +--- org.junit.platform:junit-platform-engine:1.7.2 (c)
| +--- org.junit.platform:junit-platform-testkit:1.7.2 (c)
| +--- org.junit.platform:junit-platform-commons:1.7.2 (c)
| \--- org.junit.platform:junit-platform-launcher:1.7.2 (c)
+--- org.codehaus.groovy:groovy:2.5.14
+--- org.junit.platform:junit-platform-engine -> 1.7.2
| +--- org.junit:junit-bom:5.7.2 (*)
| +--- org.apiguardian:apiguardian-api:1.1.0
| +--- org.opentest4j:opentest4j:1.2.0
| \--- org.junit.platform:junit-platform-commons:1.7.2
| +--- org.junit:junit-bom:5.7.2 (*)
| \--- org.apiguardian:apiguardian-api:1.1.0
+--- org.junit.platform:junit-platform-testkit -> 1.7.2
| +--- org.junit:junit-bom:5.7.2 (*)
| +--- org.apiguardian:apiguardian-api:1.1.0
| +--- org.assertj:assertj-core:3.16.1
| +--- org.opentest4j:opentest4j:1.2.0
| \--- org.junit.platform:junit-platform-launcher:1.7.2
| +--- org.junit:junit-bom:5.7.2 (*)
| +--- org.apiguardian:apiguardian-api:1.1.0
| \--- org.junit.platform:junit-platform-engine:1.7.2 (*)
+--- org.hamcrest:hamcrest:2.2
+--- org.jetbrains:annotations:20.1.0
+--- org.ow2.asm:asm:9.1
+--- net.bytebuddy:byte-buddy:1.11.0
+--- cglib:cglib-nodep:3.3.0
+--- org.objenesis:objenesis:3.2
\--- org.spockframework:spock-groovy2-compat:2.0-groovy-2.5
+--- org.junit:junit-bom:5.7.2 (*)
\--- org.codehaus.groovy:groovy:2.5.14
...
----
We can see the Gradle 5.1 API dependencies for the `compileClasspath`, and the absence of the API dependencies for `testRuntimeClasspath` as expected.
For more information, see Gradle Plugin Development <<../../manual/plugin-references.adoc#sec:plugin-reference-gradledev,reference chapters>> and <<../../manual/gradle-plugin-development.adoc#,user manual chapter>>.
| 11,039
|
https://github.com/thanujkumar/spring5.teach/blob/master/data-access/src/main/java/org/tk/spring/jpa3/Stock3Entity.java
|
Github Open Source
|
Open Source
|
MIT
| 2,023
|
spring5.teach
|
thanujkumar
|
Java
|
Code
| 37
| 129
|
package org.tk.spring.jpa3;
import lombok.Data;
import lombok.ToString;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
@Entity
@Table(name = "stocks")
@Data
@ToString
public class Stock3Entity {
@Id
private String id;
@NotNull
private String name;
@NotNull
private double price;
}
| 25,107
|
https://github.com/Charleo85/WuChat/blob/master/TSWeChat/Classes/Chat/Views/TSChatEmotionCell.swift
|
Github Open Source
|
Open Source
|
MIT
| 2,021
|
WuChat
|
Charleo85
|
Swift
|
Code
| 150
| 456
|
//
// TSChatEmotionCell.swift
// TSWeChat
//
// Created by Hilen on 12/22/15.
// Copyright © 2015 Hilen. All rights reserved.
//
import UIKit
class TSChatEmotionCell: UICollectionViewCell {
@IBOutlet weak var emotionImageView: UIImageView!
internal var isDelete: Bool = false
var emotionModel: EmotionModel? = nil
override func prepareForReuse() {
super.prepareForReuse()
self.emotionImageView.image = nil
self.emotionModel = nil
}
func setCellContnet(model: EmotionModel? = nil) {
guard let model = model else {
self.emotionImageView.image = nil
return
}
self.emotionModel = model
self.isDelete = false
if let path = TSConfig.ExpressionBundle!.pathForResource(model.imageString, ofType:"png") {
self.emotionImageView.image = UIImage(contentsOfFile: path)
}
}
func setDeleteCellContnet() {
self.emotionModel = nil
self.isDelete = true
self.emotionImageView.image = TSAsset.Emotion_delete.image
}
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
}
/**
* 表情的 Model
*/
struct EmotionModel {
var imageString : String!
var text : String!
init(fromDictionary dictionary: NSDictionary){
let imageText = dictionary["image"] as! String
imageString = "\(imageText)@2x"
text = dictionary["text"] as? String
}
}
| 9,145
|
https://github.com/dictybase-playground/mock-catalog-search/blob/master/src/common/hooks/useCheckboxes.tsx
|
Github Open Source
|
Open Source
|
BSD-2-Clause
| 2,017
|
mock-catalog-search
|
dictybase-playground
|
TypeScript
|
Code
| 155
| 454
|
import { CatalogActionType } from "features/Stocks/Catalogs/context/CatalogContext"
import useCatalogStore from "features/Stocks/Catalogs/context/useCatalogStore"
import { CartItem } from "common/types"
interface CartItemWithStatus extends CartItem {
in_stock: boolean
}
/**
* useCheckboxes is a hook for handling checkbox state.
*/
const useCheckboxes = () => {
const {
state: { checkedItems },
dispatch,
} = useCatalogStore()
const resetCheckedItems = () =>
dispatch({
type: CatalogActionType.SET_CHECKED_ITEMS,
payload: [],
})
const handleCheckAllChange = () => {
if (checkedItems.length > 0) {
resetCheckedItems()
}
}
// if item is checked, then return true for checkbox
const itemIsChecked = (cartData: CartItemWithStatus) =>
checkedItems.some((item: CartItemWithStatus) => item.id === cartData.id)
const handleCheckboxChange = (cartData: CartItemWithStatus) => {
// if checkbox is already checked, remove that item from state
if (itemIsChecked(cartData)) {
dispatch({
type: CatalogActionType.SET_CHECKED_ITEMS,
payload: checkedItems.filter(
(item: CartItemWithStatus) => item.id !== cartData.id,
),
})
} else {
dispatch({
type: CatalogActionType.SET_CHECKED_ITEMS,
payload: [...checkedItems, cartData],
})
}
}
return {
itemIsChecked,
handleCheckboxChange,
resetCheckedItems,
handleCheckAllChange,
}
}
export default useCheckboxes
| 7,923
|
https://github.com/shtch/vdemo/blob/master/src/main/java/ru/vapp/views/page04/Page04View.java
|
Github Open Source
|
Open Source
|
Unlicense
| null |
vdemo
|
shtch
|
Java
|
Code
| 165
| 622
|
package ru.vapp.views.page04;
import com.vaadin.flow.router.RouteAlias;
import com.vaadin.flow.component.Tag;
import com.vaadin.flow.component.button.Button;
import com.vaadin.flow.component.dependency.JsModule;
import com.vaadin.flow.component.polymertemplate.Id;
import com.vaadin.flow.component.polymertemplate.PolymerTemplate;
import com.vaadin.flow.component.textfield.TextField;
import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.templatemodel.TemplateModel;
import ru.vapp.views.main.MainView;
import ru.vapp.views.page04.Page04View.Page04ViewModel;
@Route(value = "form4", layout = MainView.class)
@RouteAlias(value = "Page04", layout = MainView.class)
@PageTitle("Page04")
@JsModule("./src/views/page04/page04-view.js")
@Tag("page04-view")
public class Page04View extends PolymerTemplate<Page04ViewModel> {
// This is the Java companion file of a design
// You can find the design file in /frontend/src/views/src/views/page04/page04-view.js
// The design can be easily edited by using Vaadin Designer (vaadin.com/designer)
@Id("sms")
private TextField phone;
@Id("next")
private Button next;
@Id("home")
private Button home;
// This is the Java companion file of a design
// You can find the design file in /frontend/src/views/src/views/page03/page03-view.js
// The design can be easily edited by using Vaadin Designer (vaadin.com/designer)
public static interface Page04ViewModel extends TemplateModel {
}
public Page04View() {
// Configure Form
// Binder<Person> binder = new Binder<>(Person.class);
// Bind fields. This where you'd define e.g. validation rules
// binder.bindInstanceFields(this);
next.addClickListener(e -> next.getUI().ifPresent(ui -> ui.navigate("Page05")));
home.addClickListener(e -> next.getUI().ifPresent(ui -> ui.navigate("")));
}
}
| 18,762
|
https://github.com/adoptapanama/admin-api/blob/master/services.env
|
Github Open Source
|
Open Source
|
MIT
| 2,018
|
admin-api
|
adoptapanama
|
Shell
|
Code
| 4
| 115
|
FRONTEND_DOMAIN=http://local-dev/
NEWRELIC_APP_NAME=adoptapanama-api
SERVER_SESSION_KEY=m6J63c3qdkcAADSy7FgeXqLkRLqvjAGDsSPZcwKQw6QmhJyNq5FdpZAxM3E8ZqN3
SESSION_SALT=2QMXdVnsrc5d2tsd6AAc8AZ6
| 26,650
|
https://github.com/ampydeveloper/WA-Admin-Panel/blob/master/app/CustomerCardDetail.php
|
Github Open Source
|
Open Source
|
MIT
| null |
WA-Admin-Panel
|
ampydeveloper
|
PHP
|
Code
| 40
| 137
|
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class CustomerCardDetail extends Model
{
use SoftDeletes;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'customer_id', 'card_id', 'card_number', 'card_exp_month', 'card_exp_year', 'card_status', 'card_primary'
];
}
| 8,457
|
https://github.com/itgalaxy/pillar/blob/master/src/Itgalaxy/Feature/ShortcodesEverywhereFeature.php
|
Github Open Source
|
Open Source
|
MIT
| 2,018
|
pillar
|
itgalaxy
|
PHP
|
Code
| 118
| 400
|
<?php
namespace Itgalaxy\Pillar\Feature;
use Itgalaxy\Pillar\Base\FeatureAbstract;
class ShortcodesEverywhereFeature extends FeatureAbstract
{
/**
* Register our class method(s) with the appropriate WordPress hooks.
*
* @return void
*/
public function initialize()
{
// In post excerpts (automatic)
add_filter('wp_trim_excerpt', [$this, 'handleShortcodeInTrimExcerpt'], 10, 2);
// In post excerpts (manual)
add_filter('get_the_excerpt', 'do_shortcode');
// In posts titles
add_filter('the_title', 'do_shortcode');
// In titles pages in browser title bar
add_filter('single_post_title', 'do_shortcode');
// In titles in browser title bar
add_filter('wp_title', 'do_shortcode');
// In widgets text
add_filter('widget_text', 'shortcode_unautop');
add_filter('widget_text', 'do_shortcode');
// In widgets titles
add_filter('widget_title', 'do_shortcode');
// In site title and description
add_filter('bloginfo', 'do_shortcode');
// Todo In post/page custom fields
}
public function handleShortcodeInTrimExcerpt($text, $rawExcerpt)
{
if ($rawExcerpt != '') {
return do_shortcode($rawExcerpt);
}
return $text;
}
}
| 48,983
|
https://github.com/jjmanton/JsonPatch/blob/master/src/Marvin.JsonPatch/IJsonPatchDocument.cs
|
Github Open Source
|
Open Source
|
MIT
| 2,022
|
JsonPatch
|
jjmanton
|
C#
|
Code
| 37
| 128
|
// Any comments, input: @KevinDockx
// Any issues, requests: https://github.com/KevinDockx/JsonPatch
//
// Enjoy :-)
using Marvin.JsonPatch.Operations;
using Newtonsoft.Json.Serialization;
using System.Collections.Generic;
namespace Marvin.JsonPatch
{
public interface IJsonPatchDocument
{
IContractResolver ContractResolver { get; set; }
IList<Operation> GetOperations();
}
}
| 13,244
|
https://github.com/smirkingman/GraphVizio/blob/master/GraphVizio/VISIO/RGBfromPalette.vb
|
Github Open Source
|
Open Source
|
BSD-2-Clause-FreeBSD, MIT
| 2,021
|
GraphVizio
|
smirkingman
|
Visual Basic
|
Code
| 62
| 146
|
Imports Visio
Module _RGBfromPalette
Function RGBfromPalette(ByVal palette As Colors, ByVal colour As Integer) As String
Try ' Sometimes Visio returns colours that are outside the current palette
Dim r As String = palette(colour).Red.ToString("X2")
Dim g As String = palette(colour).Green.ToString("X2")
Dim b As String = palette(colour).Blue.ToString("X2")
Return "#" & r & g & b
Catch
Return "#FF0000"
End Try
End Function
End Module
| 1,846
|
https://github.com/zx1993312/ry/blob/master/ruoyi-system/src/main/java/com/ruoyi/system/domain/HyTestparameter.java
|
Github Open Source
|
Open Source
|
MIT
| null |
ry
|
zx1993312
|
Java
|
Code
| 232
| 830
|
package com.ruoyi.system.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 检测参数对象 hy_testparameter
*
* @author Administrator
* @date 2021-05-10
*/
public class HyTestparameter extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 检测参数id */
private Long id;
/** 检测参数名称 */
@Excel(name = "检测参数名称")
private String parameterName;
/** 参数值 */
@Excel(name = "参数值")
private String parameterValues;
/** 最小值 */
@Excel(name = "最小值")
private String leastValue;
/** 最大值 */
@Excel(name = "最大值")
private String maximumValue;
/** 备注 */
@Excel(name = "备注")
private String parameterRemark;
/** 设备档案id */
@Excel(name = "设备档案id")
private Long archivesId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setParameterName(String parameterName)
{
this.parameterName = parameterName;
}
public String getParameterName()
{
return parameterName;
}
public void setParameterValues(String parameterValues)
{
this.parameterValues = parameterValues;
}
public String getParameterValues()
{
return parameterValues;
}
public void setLeastValue(String leastValue)
{
this.leastValue = leastValue;
}
public String getLeastValue()
{
return leastValue;
}
public void setMaximumValue(String maximumValue)
{
this.maximumValue = maximumValue;
}
public String getMaximumValue()
{
return maximumValue;
}
public void setParameterRemark(String parameterRemark)
{
this.parameterRemark = parameterRemark;
}
public String getParameterRemark()
{
return parameterRemark;
}
public void setArchivesId(Long archivesId)
{
this.archivesId = archivesId;
}
public Long getArchivesId()
{
return archivesId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("parameterName", getParameterName())
.append("parameterValues", getParameterValues())
.append("leastValue", getLeastValue())
.append("maximumValue", getMaximumValue())
.append("parameterRemark", getParameterRemark())
.append("archivesId", getArchivesId())
.toString();
}
}
| 18,017
|
https://github.com/gitpan/ObjectDB/blob/master/t/related/one-to-one.t
|
Github Open Source
|
Open Source
|
Artistic-1.0
| null |
ObjectDB
|
gitpan
|
Perl
|
Code
| 338
| 1,099
|
use Test::Spec;
use Test::Fatal;
use lib 't/lib';
use TestDBH;
use TestEnv;
use Book;
use BookDescription;
describe 'one to one' => sub {
before each => sub {
TestEnv->prepare_table('book');
TestEnv->prepare_table('book_description');
};
it 'throws when trying to create multiple objects' => sub {
my $book = Book->new(title => 'fiction')->create;
like exception {
$book->create_related('description',
[{description => 'Crap'}, {description => 'Nice'}]);
}, qr/cannot create multiple related objects in one to one/;
};
it 'throws when there is already a related object' => sub {
my $book = Book->new(title => 'fiction')->create;
$book->create_related('description', description => 'Crap');
like exception {
$book->create_related('description', description => 'Crap');
}, qr/Related object is already created/;
};
it 'sets correct values on new' => sub {
my $book = Book->new(
title => 'Crap',
description => {description => 'Crap'}
);
my $description = $book->related('description');
is($description->get_column('description'), 'Crap');
};
it 'sets correct values on create' => sub {
my $book = Book->new(
title => 'Crap',
description => {description => 'Crap'}
)->create;
my $description = $book->related('description');
is($description->get_column('description'), 'Crap');
};
it 'create_related' => sub {
my $book = Book->new(title => 'fiction')->create;
$book->create_related('description', description => 'Crap');
is($book->related('description')->get_column('description'), 'Crap');
};
it 'updates related object it if is already created' => sub {
my $description = BookDescription->new(description => 'Crap')->create;
my $book = Book->new(title => 'fiction')->create;
$book->create_related('description', $description);
is($description->get_column('id'), $book->get_column('id'));
};
it 'create_related_from_object' => sub {
my $book = Book->new(title => 'fiction')->create;
$book->create_related('description',
BookDescription->new(description => 'Crap'));
my $description = BookDescription->table->find(
first => 1,
where => [book_id => $book->get_column('id')]
);
is($description->get_column('description'), 'Crap');
};
it 'find_related' => sub {
my $book = Book->new(title => 'fiction')->create;
my $description = BookDescription->new(
description => 'Crap',
book_id => $book->get_column('id')
)->create;
$book = Book->new(id => $book->get_column('id'))->load;
$description = $book->find_related('description');
is($description->get_column('description'), 'Crap');
};
it 'updated_related' => sub {
my $book = Book->new(title => 'fiction')->create;
my $description = BookDescription->new(
description => 'Crap',
book_id => $book->get_column('id')
)->create;
$book = Book->new(id => $book->get_column('id'))->load;
$book->update_related('description', set => {description => 'Good'});
$book =
Book->new(id => $book->get_column('id'))->load(with => 'description');
is($book->related('description')->get_column('description'), 'Good');
};
it 'delete_related' => sub {
my $book = Book->new(title => 'fiction')->create;
$book->create_related('description', description => 'Crap');
$book->delete_related('description');
ok(!$book->related('description'));
};
};
runtests unless caller;
| 14,746
|
https://github.com/michalporeba/Knockout.Extensions/blob/master/Demo/Knockout.Extensions.Demo.Web/Views/Demo/CheckRadioList.cshtml
|
Github Open Source
|
Open Source
|
CC-BY-3.0
| 2,012
|
Knockout.Extensions
|
michalporeba
|
HTML+Razor
|
Code
| 306
| 1,122
|
@{
ViewBag.Title = "CheckRadioList";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<script src='@Url.Content("~/Scripts/knockout.bindings.radiochecklist.js")' type="text/javascript"></script>
<style type="text/css">
.cog-radiolist, .cog-checklist
{
width: 300px;
display:inline-block;
}
.cog-radiolist ul, .cog-checklist ul
{
margin:0px;
padding:0px;
list-style-type:none;
}
.cog-radiolist li, .cog-checklist li
{
padding:3px 0; /*removes in Firefox/Mozilla*/
margin:3px 0; /*removes in IE & Opera*/
display:inline-block;
}
</style>
<h1>Check Box List and Radio Button List Demo</h1>
<div class="sample">
<!-- ko with: fields -->
<h2>Check Box List</h2>
<p>
<p class="description">This example demonstrates binding the Check Box List control to a simple options array of strings.</p>
<input type="checkbox" data-bind="selectedOptions: checkBoxList1, options: vm.simpleListItems" />
</p>
<p>
<p class="description">This example demonstrates binding the Check Box List control to an options array of complex objects where the "Text" and "Value" fields need to be specified.</p>
<input type="checkbox" data-bind="selectedOptions: checkBoxList2, options: vm.complexListItems, optionsText: 'text', optionsValue: 'value'" />
</p>
<h2>Radio Button List</h2>
<p>
<p class="description">This example demonstrates binding the Radio Button List control to a simple options array of strings.</p>
<input type="radio" data-bind="value: radioButtonList1, options: vm.simpleListItems" />
</p>
<p>
<p class="description">This example demonstrates binding the Radio Button List control to an options array of complex objects where the "Text" and "Value" fields need to be specified.</p>
<input type="radio" data-bind="value: radioButtonList2, options: vm.complexListItems, optionsText: 'text', optionsValue: 'value'" />@**@
</p>
<!-- /ko -->
<h2>View Model</h2>
<div data-bind="text: json"></div>
</div>
<script type="text/javascript">
var vm = new function () {
// options observables
this.simpleListItems = ko.observableArray([
ko.observable("Cat"),
ko.observable("Dog"),
ko.observable("Mouse"),
ko.observable("Elephant")
]);
this.complexListItems = ko.observableArray([
createComplexListItem("Cat", "1"),
createComplexListItem("Dog", "2"),
createComplexListItem("Mouse", "3"),
createComplexListItem("Elephant", "4")
]);
// selected options observables
this.fields = {
checkBoxList1: ko.observableArray([]),
checkBoxList2: ko.observableArray([]),
radioButtonList1: ko.observable(),
radioButtonList2: ko.observable()
}
this.json = ko.dependentObservable(function () {
return ko.toJSON(this.fields);
}, this);
function createComplexListItem(text, value) {
return { text: text, value: value };
}
}
$(function () {
ko.applyBindings(vm);
})
</script>
@if (false)
{
<script src="/Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="/Scripts/modernizr-1.7.min.js" type="text/javascript"></script>
<script src="/Scripts/knockout-1.3.0beta.debug.js" type="text/javascript"></script>
<script src="/Scripts/cog.js" type="text/javascript"></script>
<script src="/Scripts/knockout.mapping-latest.debug.js" type="text/javascript"></script>
}
| 17,844
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.