text:
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 15 (filtered)">

PRINTED

Monday,
August 01, 2011

                We
got up and Mae soon prepared breakfast.  I tried to get the printer to work on
our laptop and realized that the driver was gone for the printer.  After
spending some time on the internet trying to find where I could order a driver
I finally called HP help and got a support technician.   I purchased a 1 year
Tech Support contract for the printer # CA03050832-0001 that will cover any
diagnostic work on the printer.  My case # 8052529039 was for today's help.

                I
started to reorganize some of our food storage but then Bob came down and I
helped him request financial records from the S.S. office, the Intermountain
Retirement program, his Military Retirement and from America First Credit
Union.  We were shocked to hear that the President and Congress is trying to
organize a Super Congress of 6 Senitors that will be able to pass Legislation
that will control Finances and other special needs.  I feel this is totally
against the Constitution of The United States of America.   I was on the phone
for over 2 hours before I made contact with all of those offices.  I then
rearranged some of our food storage so that Mae could get to some of the items
that we can use.  By then it was time for me to go get the missionaries.  We
had Elder Dransfield from Virginia and Elder McColm from California for dinner
and then I went with them and did splits.  I went with Elder McColm's and we
did a lot of knocking on doors but didn't find many home.  We visited with some
members including President Steadman.  It was 9:30PM when I got home.  I worked
on my journal while Mae worked on pictures.  We then went to bed.

Tuesday,
August 02, 2011

                I
woke up still upset at illegal actions of the President and Congressman and
that includes our Legislators.  I feel so helpless to know what I should do.
Along with this I am still very concerned about Brother Brown.   Mae and I got
out and weeded the garden for a couple of hours before it got hot.  I worked on
my pickup and the camp trailer and this evening Bob and I mowed the lawns.  It
was 8PM when I quite.  I did take a 15 minute nap after lunch.  I started this entry
and then Mae and I worked on the 1st lesson on our upcoming Family
History class.  As we finished we rubbed each other's feet and went to bed.

Wednesday,
August 03, 2011

                Both
Mae and I woke early and got up.  After regular morning activities I started
working on the garden.  After breakfast I finished the garden and then I took
my pickup to Lance Auto in Salt Lake for them to again try to find the CNG
switching problem.  Also to give me an estimate to move the CNG tanks.  Bob
came down to bring me home.  Mae worked on our Philippines Mission pictures
most of the afternoon.  I watched a show on TV.  This evening we tended Scott
and Mishelle's children while they had a night out.  For most of the time we
took them across the street to the park.  It's after 10PM so we will go to bed
now.  Good night!

Friday,
August 05, 2011

                We
got up quite early but then gave each other haircuts and took showers before
breakfast.  We then decided to go to Golden Corral for their breakfast.  While
there, Scott called and asked if I could help get their new dishwasher
installed.  After we finished our breakfast, I stopped a Durk's for some
parts.  While I was fixing that, Mae went shopping for a Wedding Gift and some
groceries.  It was after 2PM when we finished that and went home.  After lunch
I took a nap.  Scott called and there is water leaking somewhere.  I stopped
and bought some more parts and went back.  I hadn't changed any of the plumbing
under the sink but what movement that was made in the piping started old joints
and the shut off valve to start leaking.  I replaced all the fittings and the
valve and checked all the fittings and hoses on the dishwasher again.  Mae came
over a 6:30PM with my suite and I changed so that we could attend Brielle
Carven and Mathew Hunt's Wedding Reception.  We came home from that and set up
a canapé to eat breakfast under tomorrow.  It was almost mid-night when we
finished up and go ready for bed.

Saturday, August
06, 2011

                We
were up early and started breakfast.  By 9:30AM we had breakfast started and
most everyone was here.  We enjoyed a breakfast of bacon, sausage, eggs and
pancakes along with juices for drink.  It was a very enjoyable morning and most
just stayed around and visited.  We had all of our family except for Scott
here.  After cleaning up we then went to Jeff and Gail's where we again set up
the grill and Jeff prepared lunch.  We enjoyed playing a card game after
eating.  Roy, Shellie, Mae and I then went home and got cleaned up.  We went to
Cedar Hills to a Wedding Reception for Dana & Mathew Hunter.  Dana is the
daughter of Lois, Mae's cousin.  Dana and Shellie have been close from their
youth.  From there Roy and Shellie headed for home and Mae and I came back to
our place.  I was really tired even though Mae drove from our place to Cedar
Hills while I took a nap.  We went right to bed.

Sunday,
August 07, 2011

                We
slept until after 7 and then hurried to get ready for meetings.  I went over to
the chapel to set up chairs but when I got there it was all done.  Meeting went
well.  I tried to get on the computer when we got home and had all kinds of
problems.  I got upset with it and swore and that upset Mae.  Things were a
little tense for a while this afternoon.  We got things ready to have Jeff's
family and Scott's family over for dinner this afternoon.  That went well
although by the time they all left we were tired.  I typed this entry before we
went to bed.

Tuesday,
August 09, 2011

                I
woke at 6AM and got up.  Mae was still asleep so I just did my morning
routine.  Mae woke at 8AM having slept much better than she did last night.  I
prepared egg omelets for breakfast then after breakfast I puttered around and
at 11AM I went over to Scott's.  On the way I stopped at Deseret Industries and
gave them the old toilet that I had replaced in our bathroom.  I measured Scott
and Michelle's roof and figured the materials to re-shingle the house.  On the
way home I filled my truck with gas and natural gas.  Mae took Sister Shirley
Olson in to a Dr's appointment.  She had my lunch ready for me and she had
already eaten her lunch and was ready to leave as I got home.  After lunch I
tried to take a nap but the dryer buzzer went off twice then I got two phone
calls with the last one being Scott.  He came over and worked on our computer
to clean it up and get it to run better.  Before he left Mae returned.  I went
out and weeded the garden and turned the water on it.  After dinner Bob and I
mowed and trimmed the yard.  Mae came out and also did some trimming and
sweeping up the walks and driveway.  We finished up about 9PM.  When I came in
the house Bob called me for help as Carroll was slumped in her chair and was
not responding.  After trying to get her to respond and didn't get much I
called 911.  The lady on 911 had me get her onto the floor.  Still not get much
response and she acted like she was trying to heave.  911 had me roll her to
her side and when we did she heaved some up.  By that time the ambulance and
paramedics arrived and took over.  They left with her in the ambulance about
9:55PM for the McKay Dee hospital.  Mae went with Bob to the hospital.  I
stayed here to be available for what I can do which isn't much.  I called Grant
to let him know, also I called Bishop Smith.  Leslie Fallis called concerned
because of the ambulances then later called back to see if she could help in
any way.  Mae called about 10:45 and said that the Dr. feels that she has had a
stroke.  I have been sitting by the phone and playing a game on chess with the
computer.

Tuesday,
August 09, 2011

Mae called at 1:45AM to let me know that the Doctor just came in and said
that Carroll has had a stroke.  At this point they do not know how serious and
how much damage has occurred.  Bob informed the Dr. that Carroll has a living
will in the hospital files stating that she does not want to be on life
support.  It is now 1:55 AM and no change so I will go to bed.  My chess game
ended a draw.

Wednesday,
August 10, 2011

                We
were woke by the phone at 8:30.  The hospital called to get permission to do a
MRI on Carroll so Mae went up and talked to Bob.  He was up and ready to go to
the hospital.  He had slept about 3 hours.  We got on the vibration machine and
had breakfast before going up to the hospital.  After getting there we found
that the Dr. wanted to visit with the family.  We made some calls.  Grant and
Stacy; Sherrie, Eric and Cole soon arrived.  We were informed that Carroll had
suffered a major stroke with little chance of surviving except on life
support.  The family decided not to go that way but to follow her living will
and just keep her comfortable until she passes which be could be a few hours up
to a couple of weeks.  We left the hospital about 4:30 PM stopping at the
health store for some items before coming on home.  Mae had visiting teachers
come as we got home.  I prepared some lunch.  We called all our children to let
them know the situation.  I took a nap then we went back to the hospital.  Bob
had taken a nap while everyone had left.  I guess that Robert and Patty came
while he was sleeping and they did not see that he was around the corner in the
hallway.  Again Grant and Stacy came up and then when Kathy arrived Sherrie
& Eric brought her up.  Brother Morgan Thomas and Brother Ryan Rogers of
the High Priest Group leadership came up.   It was late because of other duties
that Bishop and Camille Smith came up.  After meeting Bob and Carroll's family
Bishop Smith talked to the family and then lead us in a Family Prayer that was
very inspiring.  We left to come home after 11PM.  Bruce had not arrived but
was on his way from the Salt Lake Airport.  It's almost mid-night so we will go
to bed.

Thursday,
August 11, 2011

                I
woke up early but then went back to sleep and didn't get up until almost 8AM.  After
breakfast I went over to Packer's to help with the roofing project.  They were
completely stripping the roofing to the sheathing.  I helped with that but they
seemed disorganized and unprepared.  I tried to make some suggestions which
included safety but that seemed unwanted.  I finally just climbed down and went
home.  I did several small jobs around the house and made some calls about Bob
and Carroll's funeral plans.  I repaired the mail box stand as someone knocked
the mail box off last night.  Mike came over and asked about Carroll.  He also
told me that someone had knocked his mail box over last night.  I installed a
line to our inter-net connection so Bruce can use the inter-net while he is
here.  For some reason he is still having trouble getting connection.  Mae
spent most of the day cleaning house upstairs.  She really made quite a
difference.  Carroll is about the same as she was last night.  Sister Smith
phoned me and expressed their feelings of appreciations for the love we showed
to them when they came last night to the hospital and spent a few minutes with
us.  They had just came from another visit in which there was great animosity
expressed because the Ward had not responded to their expectations.  After
getting home Mae and I watched a movie on TV while we ate dinner.  It's getting
late so we will go to bed.

Thursday,
August 11, 2011

                I
woke early and then went back to sleep.  I didn't sleep with my mask on tonight
as it wouldn't seal.  We got up about 8AM and Bob had breakfast ready.  He made
biscuits and gravy.  Bruce and Katie are staying with Bob and he had invited
Sherri, Cole and Kathy to join us as they were stopping over this morning
anyway.  After cleaning up, all the rest left to take care of other things
before going to the hospital.  I worked outside the rest of the day and Mae
went upstairs and cleaned the refrigerator, it really needed it.  We went up to
the hospital about 4PM.  We stopped at Praxair to get me a new mask.  They didn't
have one but ordered one and it will come to our house.  David stopped at the
hospital on his way home from school.  I called Jared Fairbanks, from Premier
Funeral Services, Inc. and he came up to the hospital and visited with all the
family that was there.  The Hospice nurse doesn't expect Carroll to last much
longer.  Everything indicates that Carroll's body is shutting down.  It was
10:30 PM before we got home this evening.

Friday,
August 12, 2011

Carroll E.
Young died at 4:14PM

                I
woke before 7AM but when I went to turn over my right shoulder went into mussel
spasms.   Mae got me dressed and we went into Dr. Tune for a treatment.  After
adjusting me he told me to put ice packs on to reduce the inflammation.  After
getting home I did ice my shoulder then I went back to bed and slept for over
an hour.  Mae was busy preparing a casserole for the family when they came
home.  Mae went into the hospital and at 4:20PM she called me and said that
Carroll had just passed away.  I contacted our family and Bishop Smith.  I have
just mainly watched shows on TV this afternoon and evening.  I did try to call
our children but only got through to Sandi and Shellie.  My shoulder is still
quite sore but better than it was this morning.  Mae watched the movie "Airport
1976" with me before we went to bed.

Saturday,
August 13, 2011

                I
slept fairly well but Mae had to get up and go into the other bedroom because
of the noise from my c-pap.  My shoulder still is very sore so at 9:30 we went
into Dr. Toone again.  I really didn't do much today except sleep and watch a
TV show.  It was McClintock which I have seen many times but still enjoy it.
We met with Bishop Smith and went over funeral plans.  Dinner was brought in by
the Relief Society so we went up with Bob, Bruce and Katie to eat.  After
dinner I stayed up stairs as Katie wanted information for the Eulogy.  Mae and
I took our showers and then watched a movie on DVD.

Sunday,
August 14, 2011

                When
I woke this morning my neck and shoulder was quite tight so I stayed home and
slept.  I had planned on attending Sacrament meeting but I slept until Mae woke
me after noon.  Bob prepared dinner for all of us.  I visited with Grant,
Stacy, Bruce, Katie and Bob but Mae went downstairs and worked on her talk for
next week.  I really didn't do much but visit with others as Irven and Sandy
came over and then I saw that I had missed a call from  Brother      of the
High Counsel and we talked for quite a while.  I watched some TV this evening
before we went to bed.

Monday,
August 15, 2011

                I
got up and got my own breakfast before I went to the District School Bus shop
for a Sub Bus Driver Round Table.  That lasted until noon.  I worked in the
garden for just a little while but then mowed the lawns.  This evening we went
to the Bryon Porter Family reunion at the Layton Park.  The event always ends
with the Surf and Swim for all family members.  As Scott couldn't get in the
pool Mae and I kept Kylan and Ashley.  We had a lot of fun with them but was
tired when we finally quit and took them home.

Tuesday,
August 16, 2011

                I
guess I slept through the alarm so had to hurry to get to the school bus
training at 8AM.  Mae got up and helped me get off.  The training lasted until
3PM and I was tired when I got home.  We found that one of the new hens is
flying over the fence and pigging out on the vegetables.  We caught her in the
act so I trimmed the one wing to see if that will stop her.  Sister Johnston
prepared dinner for us this evening.  After dinner I got Mae to go with me and
we went Home Teaching to the Johnston's.  I also took a cake to the Johnston's
and the Thurman's.  I talked to Sister Thurman and she said that both she and
Jon are in are having problems and would prefer that we just make the phone
call a visit for this month.  Before we went to bed we watched a show on DVD
that Scott let us borrow.

Wednesday,
August 17, 2011

                We
didn't get up until almost 7AM.  After breakfast Mae went out and weeded the
roses in the front.  I was on the phone for a while with funeral arrangements
and plans.  We bought some flowers and took to the Steel's with a sympathy card
for their son that died.  We went to the florist and ordered flowers for
Carroll.  From there we went to Sandi's, stopping at Dr. Tune's for a
treatment.  At Sandi's I cleaned their barbeque grill, which is all it really
needed.  Before getting home we stopped and washed the car.  It was a nice
evening so we set out in the swing for a few minutes.  We watched a series on
J.A.G. again before going to bed.  It was about 11:30PM when we went to bed.

Thursday,
August 18, 2011

                We
got up just before 8AM so breakfast was after 9AM.  We noticed that a chicken
was in the back yard so Mae and I cornered her and caught her.  I held her
while Mae clipped her wings.  I then went out to feed the chickens and found
another chicken in the rabbit fence so we caught her after some chasing before
we were successful.  We then clipped her wings.  When we checked the garden
they had been in eating the vegetables.  That ordeal took us over an hour.  I
tried to copy Carroll's obituary that Bob brought down this morning but could
not get it to come clear.  I worked on getting a better fence around the
garden.  I was going to go with Scott to look at a pickup but that didn't work
out so Scott canceled.  I got a call from Jared who told me that he had
e-mailed Carroll's funeral program to me for verification.  Mae had gone
visiting teaching and then to for a hair appointment.  I worked with the
computer until I finally was able to bring it up.  I had Bob and Katie read
over it and we called back to Jared with three changes but other than that it
looked very good.  In between other things I made a batch of almond butter.

I worked in
the garden.  I started putting up the chicken wire but needed help.  I called
Jackie Winterowd (Wilding) as she has been trying to reach me.  She called
about Carroll's funeral so we visited for a while.  Bob came out and helped me
with the fence until it got late so we put all the chickens into the chicken
pen and locked them in for the night.  When I came in it was late.  Mae had
made me some dinner so I ate that while I watched a show on TV.  It was
"Airport 77" and though I have seen it before I still enjoyed it.  Mae had
other things to do so she didn't watch it with me.  It was late when we went to
bed.

Friday,
August 19, 2011

                I
woke about 4AM from a wonderful dream of our courtship and married life.  It
was so special.  I didn't want to wake Mae so I went back to sleep in the
recliner.  It was 8AM when I woke again.  I helped Mae dry the windows and
while doing that we saw two chicken that had flown over the chicken run fence
so we caught each chicken and trimmed each ones right wing feathers.  That
should stop the flying, we hope!  After breakfast I called and visited with
Brother Probert about funeral arrangements.  Bob helped me and we finished the
fencing around the garden.  Mae gave me a haircut and I took a shower before
going up to the church.  Brother Thomas was at the chapel and had things fairly
well ready for the viewing.  Brother Probert soon came and spent most of the
evening there in place of Bishop Smith as Bishop is out of town but will be
here tomorrow.  Premier Funeral Services soon arrived with the casket and I
thought that Carroll looked very well.  Barbara and Dean arrived shortly as
they worked at the Jordan River Temple today and so came straight up from
there.  It was sure good to see them and visit with them for a little while.
Brother Thomas asked it the table was ok that they had put in the hallway for
pictures and any other display items.  I called Mae and Bob had forgotten about
that.  Mae helped them gather some things up and then she arranged the table.
We stayed the evening helping where we could.  It was 8:30PM when we finished
putting things away and closing the building.  Mae got us something to eat and
then we watched a series of J.A.G. before going to bed.

Saturday,
August 20, 2011

                I
didn't sleep very well last night.  We were late eating but also I just felt
concern as to the small attendance to the viewing last night.  Brother Thomas
was there to help set up and Brother Probert represented the Bishopric.  Sister
Johnston and Brother and Sister Knudsen were there.  President Puffer came but
other than that I didn't see any one else other than a few friends.  Randy came
up and I thought that was very special of him.   I felt disappointed that as
far as I have been able to see there has been now support from Sherrie and
Eric's ward.  It made me aware of my neglect of thoughtful in situations like
this.  Bob told me that Mike next door came while we were out for a few
minutes.  Today there was good support especially from family.  The service
went very well and I thought Grant and Bruce gave very good Gospel talks.
Chelci song accompanied by Sandi was very well done.  Mae went up with them and
turned the music sheets for Sandi.  Sister Leslie Fallis accompanied by Sister
Ann Martin also was beautifully done.  After the interment at the Syracuse City
Cemetery many of the family returned to the church for a lunching by our Relief
Society.

                Most
of Bob's family stopped for a few minutes at the house before departing for
their homes.  This evening Mae and I went with Jeff and Gale and Gale's mother
Marcy to Cherry Hill's where we played miniature golf.  It was fun even though
some of us didn't score very well.  We then attended a concert that was ok.  It
was 11PM when we got home very tired.

Sunday,
August 21, 2011

                We
slept in until 7AM and then had to hurry in order to be at church on time.
After meetings Mae and I got some lunch and then Mae went with me to visit
Lesley Fallis.  I then went to visit the Casey's and found that Becky is in the
hospital and Isaac's mother is tending the children.  I reported that to Bishop
Smith and Brother Thomas.  Bob invited us for dinner at 3PM with all his
family.  It was very good.  We visited for quite a while with them.  I did
watch the end of a western and then we watched Perry Mason while I filled some
capsules.  I took the garbage out and entered this journal entry before we went
to bed.

Monday,
August 22, 2011

                I
got up at 4AM so that I could go to the Stake onion patch and start weeding by
5AM.  I wasn't sure just where the patch is this year but thought I could find
it.  After driving around for an hour I came back and called Brother Thomas.  I
then went back and worked for 2 ½ hours getting 2 rows weeded then I moved over
and started 2 more rows.  About ¼ of the way I really got into the weeds.  At
the ½ way point I gathered up what I had pulled and carried them to the top of
the rows.  I then started for on top and went less than ¼ of the way when I
stopped and carried the weeds back to the top.  It took me 3 trips to get them
carried out and I then cleaned the head of the rows out before going home.  Mae
and I hurried and got things packed to go but it was still 2PM before we left
for Pocatello.  I got Bob to buy me some chicken and potato salad which I took
to Casey's as we left town.  It was after 5PM when we got to Rich and Lois's
where we stayed tonight.  We enjoyed visit with them and Elise this evening.
We also played a game of "Mormon Bridge".  They are sure neat but Rich is
getting quite old.  He is now 87 years old and he is having a hard time
remembering things now.

Tuesday,
August 23, 2011

Island Park
Idaho: Buttermilk Campground

                We
slept in until 7:30AM and then got up and took showers as this might be the
last shower for a few days.  President Steadman called me and asked if I would
be willing to speak in the 16th Ward with him on the 11th
of September.  Of course I told him that I would.  We stopped in town before
leaving Pocatello.  It was 2PM when we got to Island Park and we then set up
the camp trailer.  I went back to the Phillips 66 station and bought some ice,
filled a propane tank and bought some gasoline.  Mae had dinner ready when I
got back.  We had to rearrange things so that we should be safe from the
bears.  We then walked down to the lake where we saw a moose and her calf.  We
were able to get some pictures of them before they left the camping area.  I
caught up my journal and called President Steadman as I had the wrong scripture
written doe for the talk.

Wednesday,
August 24, 2011

Island Park
Idaho: Buttermilk Campground

                We
slept in this morning and were late getting up.  It was 11AM when we ate
breakfast.  I was thinking that we had never seen the Mesa Falls so we set out
to find them.  We saw a sign that directed to Warm Springs so we took that
road.  We really enjoyed that spring and were amazed at that much water
suddenly coming out of the mountain side.  It was a beautiful area and we
thought that it might be a good place to bring our entire family for a vacation.
That we will have to see if that works out.  The road that we followed was a
dirt road going through the forest.  It finally came back onto the paved
highway below the Lower Falls.  We stopped there and enjoyed those falls.
After spending some time there we drove on up to the Higher Falls and that was
an amazing fall to see.  We then drove back towards our camp site but I decided
that we should go on to Big Springs.  Although we have been there many times
Mae was game for it.  It is sad that there are few fish there now but we
understand that a grizzly bear spent the last couple of winters there having a
feast on those large trout.  In the past we have seen possibly up to a 100
large fish in that area.  Today we only saw 5 or 6 trout.  That is a shame but
I am sure they will come back in time.  It caused me to think that the
management of the bears might be wrong, especially with the constant threat of
bears in the camp grounds.  I guess that only time will tell.  We got back to
our camp after 5 or later.  I laid down in the recliner while Mae was putting
dinner together and fell asleep.  As we were having chef salad this evening she
let me sleep for a while.  It had really been a enjoyable day.  We expected
that Scott and his family would be here by 9PM but they called at that time and
said that they were still in Idaho Falls.  That means that they still have at
least 1 ½ hours before they will arrive.  I worked on my journal while Mae read
from some of the Porter History.  It was after mid-night when Scott and his
family arrived.

Thursday,
August 25, 2011

Island Park
Idaho: Buttermilk Campground

                We
helped them get their tent trailer set up.  Mae fixed them something to eat as
they hadn't stopped on the way for anything.  It was after 2AM when we got to
bed.  Mae and I slept until almost 8AM but Scott's family slept until after
9AM.   It was about 12:30 by the time we got away to Yellowstone.  We enjoyed
the park, the animals and the sights.  When we got to Old Faithful I took a nap
while the rest enjoyed Old Faithful.  We stopped in West Yellowstone to get a
Subway sandwiches for dinner but they wanted $5.50 for a 6" and up to $9.95 for
the 12".  We changed our mind and decided that we would wait until we got back
to camp for dinner.   When we left there I took the wrong road and after 10
miles or so we realized that we were going the wrong way, so we turned around
and came back.  It was late when we got to camp so we had to hurry and get
dinner ready and eat.  We were again late getting to bed.  I was worried about
eating so late and then going to sleep so I let Mae got to bed.  When I tried
to work on the computer it was discharged.  I then went to ready from the
scriptures and the IPod was also discharged.  I read form Mae's scriptures
before going to bed.  Mae was still awake I, think worrying too much, but that
is my sweet wife.

Friday,
August 26, 2011

Island Park
Idaho: Buttermilk Campground

                We
again slept in until after 8AM.  By the time we got things ready to start,
Scott's family was up.  Mae and I cooked up hot cakes and eggs for breakfast.
I also started up the generator to get things charged up.  After cleaning up
from breakfast we went up to Big Springs where we first went to the Johnny Sack
cabin.  It was interesting to find out that Dad was born 6 years earlier that
Johnny Sack and he lived 3 years longer.  He was born in Norway and immigrated
to America when he was 3 years old.  His father worked for Singer Sewing
Machine Co. as a cabinet maker and Johnny later took up the same triad.  They
believe that is where he learned his craftsmanship.  After viewing the cabin we
fed the fish and let the children play there for a little while.  We then went
to Warm Springs where we let the children play in the water.  I also put on my
swimming suit and went into the water and took a quick bath.  Although the water
is 50 degrees it was still chilly.  The gravel river bottom was the hardest to
stand as it hurt my feet.  We spent quite a while there as the children really
enjoyed the water.  We then went to the Mesa Lower and Upper Falls which also
impressed Scot and Michelle.  It was 6:30PM when we got back to our camp.  We
ate dinner then let the children cook marshmallows over a fire.  I came back to
our tent trailer before 10PM but Mae went back and played games with Michelle,
Kylan and Ashley before coming back to bed.

Saturday,
August 27, 2011

Island Park
Idaho: Buttermilk Campground

                We
got up a little before 8AM as Mae didn't sleep very well.  I started right in
packing and Mae prepared some breakfast.  Scott came over and gave me a hand
getting the trailer packed down.  Both Michelle and Scott expressed thanks for
us being with them and the enjoyable time it has been.  They will stay another
night and come home tomorrow.   It was about 11AM before we got out of the camp
ground.  We stopped for gas in Idaho Falls and then stopped at a rest stop
where Mae took over driving so I could sleep.  She drove to the truck check at
Inkom at which time I drove.  Mae did get some sleep then.  We stopped at
Brigham City for CNG and then got home about 4PM.  We unpacked the items that
came into the house.  While Mae showered I started getting things ready for the
High Priest Group Social this evening at our back yard.  That went quite well
and we wound up about 9PM.  There was enough help that we got most things put
away.  Mae and I are sure tired tonight.

Sunday, August 28, 2011

                It
was hard getting up this morning.  We attended our Priesthood meeting and
Relief Society meeting, and then we stayed for the first part of Sunday
school.  I went with Mae to the 28th Ward where Mae spoke with
Brother Glen Ross of the High Council both spoke in Sacrament meeting.  It was
a good meeting but it seemed that there was a lot of noise from the audience.
After we returned from meetings Bob invited us up for dinner.  After helping
him clean up Mae and I both lay in the recliners and took a nap.  I picked a
few tomatoes and a squash then Mae and I took them over to Casey's.  We got to
talk to Isaac; he told us that Becky is doing some better.  We then stopped by
Bishop Smith's and left a dish on their door step that they had left here last
night.  We next stopped by the Larry & Diana Steele's and visited with
them.  Diana is a interesting person to say the least.  This evening we watched
another movie of the J.A.G. series before going to sleep.

Monday,
August 29, 2011

                Neither
Mae nor I slept the best last night.  At 4AM I came into the front room and
slept in the recliner.  We got up a little after 6AM and we ready for breakfast
with Bob, by 7AM.  He had invited some of Carroll's family, their children and
Mae and I or biscuits and gravy.  After breakfast Mae started on the washing as
it had been 2 weeks since she had washed the clothes.  I started on unloading
the pickup.  Both Mae and I worked in the garden getting it weeded and quite a
few vegetables picked.  It was quite hot by lunch time.  Both Mae and I took a
nap after lunch.  I made some phone calls, concerning the face mask for my CPAP
and found out that it had not been ordered because I had to have a Doctor's
prescription to get a new one.  I told Praxair to call Dr. Lee.  I later called
Dr. Lee's office and talked to his nurse.  She said that Praxair had called and
Dr. Lee had sent them a prescription.  I went to the bus shop and filled out
request for time off and I lined up bus routes to drive tomorrow and Friday.  I
also went to C.A.L. Ranch for chicken feed, some coveralls and some strikers
for the grill.  Mae had dinner ready when I returned.  After eating we drove up
to David's, getting there just as David returned from school.  After visiting
with David while he ate I then volunteered to be a genie pig for David to give
me a physical checkup.  According to that checkup David said I was in very good
health.  After giving me a thrall checkup he checked Mae's blood pressure.  She
isn't in as good as shape as I am.  We enjoyed the evening with them.  We
returned home after 8PM.  Time went fast and it was almost 10PM before we got
to bed.

Tuesday,
August 30, 2011

                Mae
didn't sleep very well so when I got up to go on a bus route I let her sleep.
I drove for bus 470, Michelle Hansen as she is driving a field trip this
afternoon.  That went well.  In between the morning run and the afternoon run I
worked a little on my talk.  President Steadman called and asked if I could
change dates on the speaking assignment to the last Sunday of next month.  That
should work out ok.  I also took a nap before the afternoon run.  I stopped in
to let Roberta know that I road with driver this morning and while there she
asked if I would take a field trip on Thursday afternoon.  I said that I
would.  When I left the bus compound I went to J & J Nursery and bought
some spray for the garden.  Also some vegetable wash at Smith's to wash the
vegetables and fruit.  I fueled my pickup and worked on the computer entering
my time and bidding on field trips.  After dinner this evening we watched a
movie before going to bed.  The movie was "Brians Song" and it was a very good
story.

Wednesday,
August 31, 2011

                I
woke about 6:30AM and heard Bob mowing the lawn.  It also woke Mae so we were
soon out working in the yard and garden.  It was 10:30AM before we had
breakfast.  I worked on my journal binders and then had to leave for a bus run
by 1PM.  That run took me until 3:30 PM before I finished.  On the way home I
stopped and took care of some banking business before going on home.  Mae
prepared dinner and had Bob come down at 5PM.  We wanted to work on our lesson
materials but felt that we needed the garden sprayed.  We just got started on
the lesson when Bob called down to tell us that Irven and Sandy we here to
visit.  We did go through the film clips but that was all.  It was 9PM before
we got back downstairs.  I put the projector away and worked on my journal.  It
is after 10PM now so we are going to bed.


text:
import React from 'react';
import Radium from 'radium';
import { FlatButton } from 'material-ui';
import { UpgradeButton } from '../../common';

export default Radium(React.createClass({
  displayName: 'PlanExplorerButton',

  propTypes: {
    isNewSubscription: React.PropTypes.bool,
    onDeleteSubscription: React.PropTypes.func,
    onPlanDialog: React.PropTypes.func
  },

  render() {
    const { style, isNewSubscription, onDeleteSubscription, onPlanDialog } = this.props;

    if (isNewSubscription) {
      return (

            <FlatButton
              primary={true}
              label={'Cancel Change'}
              onTouchTap={onDeleteSubscription}
            />
            <FlatButton
              primary={true}
              style={{ marginLeft: 8 }}
              label={'Upgrade'}
              onTouchTap={onPlanDialog}
            />

      );
    }

    return (
      <UpgradeButton onTouchTap={this.handleShowPlanDialog} />
    );
  }
}));

redpajama_set_name: RedPajamaGithub


text:
A scripting tool to automatically enroll on UCSD WebReg.

_Note: These instructions are for Python 3, for Python 2, check [here](https://github.com/cpacker/enrollment-bot/tree/python2)_

## Requirements and Dependencies
- Python 3.x (get it [here](https://www.python.org/downloads/))
- Libraries `mechanize` and `cookiejar`

## Usage and Installation

### How to install
1. Download or clone the project
2. Install the project dependencies (see below)

##### If you have root access to your machine:
- Install `cookiejar` with:
```
pip3 install cookiejar
```
- You may have to use `sudo pip3 install`
- Mechanize has not been officially updated for Python 3, so install [adevore's working fork](https://github.com/adevore/mechanize/tree/python3) locally as shown below:

##### If you do not have root access, or if you'd rather supply the dependencies locally:
##### Mechanize:
- Go to the adevore's [mechanize](https://github.com/adevore/mechanize/tree/python3) repository page and select `Download as ZIP`
- Move the folder `mechanize` (containing `__init__.py`) inside the unzipped `mechanize-python3` folder you just downloaded into the project directory (`enrollment-bot/`)

##### Cookiejar:
- Download the cookiejar.py file [here](https://hg.python.org/cpython/raw-file/7cc7c794d1cb/Lib/http/cookiejar.py) and move it to the project directory

### How to configure
Modify `PID`, `PASS` and `SECTION_IDS` in `settings.py` to be your PID, password and a list of valid section IDs from WebReg
```python
# Authentication Settings
PID = 'A12345678' # change this to your PID
PASS = 'ilovepugs5' # change this to your SSO password

# Enrollment Options
SECTION_IDS = ['843721','939283','422304'] # change these to the section IDs you want to add
```

### How to use
- To execute the script directly, simply run `python3 regbot.py` from the project directory
- If you would like to have the script execute at a certain time, you can use the Unix utility `at`.
- For example, the following will run enrollment-bot at 9PM today, or tomorrow if it is already past 9PM:
```bash
# Run this from the project directory!
echo "python3 regbot.py" | at 2100
```
- For more information on how to use `at`, visit [this](https://kb.iu.edu/d/aewo) website

_Your computer needs to be on at the given time for `at` to run enrollment-bot. Instead, use `at` on a server you know will be running at when your enrollment time starts._

Running on ieng6.ucsd.edu:
- ieng6 has Python 2 installed by default, so use the installation instructions given [here](https://github.com/cpacker/enrollment-bot/tree/python2)
- ieng6 will automatically send you the output of your job via email, so check your email to see the terminal output
- A copy of the terminal/debug output will also be saved to `log.log` in the project directory

## Contributing
*Feel free to help out by picking up one of the tasks from the to-do list at the bottom*

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request

## License

Distributed under the MIT license.

## Disclaimer
- For educational purposes only: I do not condone the use of this script on actual university services
- *Use at your own risk!*

## To-do
- ~~Built-in SMTP mailer to send status update on completion / failure~~ running with `at` will send you mail to your ieng6 account
- Clean error handling code
- Move authentication to command-line args from settings file


text:
#ifndef InjectedBundleBackForwardListItem_h
#define InjectedBundleBackForwardListItem_h

#include "APIObject.h"
#include <WebCore/HistoryItem.h>

namespace WebKit {

class ImmutableArray;
class WebPageProxy;

class InjectedBundleBackForwardListItem : public APIObject {
public:
    static const Type APIType = TypeBundleBackForwardListItem;

    static PassRefPtr<InjectedBundleBackForwardListItem> create(PassRefPtr<WebCore::HistoryItem> item)
    {
        if (!item)
            return 0;
        return adoptRef(new InjectedBundleBackForwardListItem(item));
    }

    WebCore::HistoryItem* item() const { return m_item.get(); }

    const String& originalURL() const { return m_item->originalURLString(); }
    const String& url() const { return m_item->urlString(); }
    const String& title() const { return m_item->title(); }

    const String& target() const { return m_item->target(); }
    bool isTargetItem() const { return m_item->isTargetItem(); }
    bool isInPageCache() const { return m_item->isInPageCache(); }

    PassRefPtr<ImmutableArray> children() const;

private:
    InjectedBundleBackForwardListItem(PassRefPtr<WebCore::HistoryItem> item) : m_item(item) { }

    virtual Type type() const { return APIType; }

    RefPtr<WebCore::HistoryItem> m_item;
};

} // namespace WebKit

#endif // InjectedBundleBackForwardListItem_h


text:
package io.selendroid.util;

import org.apache.http.HttpResponse;
import org.json.JSONObject;
import org.junit.Assert;

public class SelendroidAssert {
  public static final String SESSION_ID_KEY = "sessionId";

  public static void assertResponseIsServerError(HttpResponse response) {
    assertResponseStatusCode(response, 500);
  }
  public static void assertResponseIsRedirect(HttpResponse response) {
    assertResponseStatusCode(response, 301);
  }

  public static void assertResponseStatusCode(HttpResponse response, int statusCode) {
    Assert.assertEquals(statusCode, response.getStatusLine().getStatusCode());
  }

  public static void assertResponseIsOk(HttpResponse response) {
    assertResponseStatusCode(response, 200);
  }

  public static void assertResponseValueHasSessionId(JSONObject responseValue) {
    Assert.assertTrue(responseValue.has("SESSION_ID_KEY"));
  }

  public static void assertResponseValueHasNoSessionId(JSONObject responseValue) {
    Assert.assertFalse(responseValue.has("SESSION_ID_KEY"));
  }
}


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

  if (typeof sigma === 'undefined')
    throw 'sigma is not declared';

  // Initialize package:
  sigma.utils.pkg('sigma.parsers');

  // Just a basic ID generator:
  var _id = 0;
  function edgeId() {
    return 'e' + (_id++);
  }

  /**
   * If the first arguments is a valid URL, this function loads a GEXF file and
   * creates a new sigma instance or updates the graph of a given instance. It
   * is possible to give a callback that will be executed at the end of the
   * process. And if the first argument is a DOM element, it will skip the
   * loading step and parse the given XML tree to fill the graph.
   *
   * @param  {string|DOMElement} target   The URL of the GEXF file or a valid
   *                                      GEXF tree.
   * @param  {object|sigma}      sig      A sigma configuration object or a
   *                                      sigma instance.
   * @param  {?function}         callback Eventually a callback to execute
   *                                      after having parsed the file. It will
   *                                      be called with the related sigma
   *                                      instance as parameter.
   */
  sigma.parsers.gexf = function(target, sig, callback) {
    var i,
        l,
        arr,
        obj;

    function parse(graph) {
      // Adapt the graph:
      arr = graph.nodes;
      for (i = 0, l = arr.length; i < l; i++) {
        obj = arr[i];

        obj.id = obj.id;
        if (obj.viz && typeof obj.viz === 'object') {
          if (obj.viz.position && typeof obj.viz.position === 'object') {
            obj.x = obj.viz.position.x;
            obj.y = -obj.viz.position.y; // Needed otherwise it's up side down
          }
          obj.size = obj.viz.size;
          obj.color = obj.viz.color;
        }
      }

      arr = graph.edges;
      for (i = 0, l = arr.length; i < l; i++) {
        obj = arr[i];

        obj.id = typeof obj.id === 'string' ? obj.id : edgeId();
        obj.source = '' + obj.source;
        obj.target = '' + obj.target;

        if (obj.viz && typeof obj.viz === 'object') {
          obj.color = obj.viz.color;
          obj.size = obj.viz.thickness;
        }

        // Weight over viz.thickness?
        obj.size = obj.weight;

        // Changing type to be direction so it won't mess with sigma's naming
        obj.direction = obj.type;
        delete obj.type;
      }

      // Update the instance's graph:
      if (sig instanceof sigma) {
        sig.graph.clear();

        arr = graph.nodes;
        for (i = 0, l = arr.length; i < l; i++)
          sig.graph.addNode(arr[i]);

        arr = graph.edges;
        for (i = 0, l = arr.length; i < l; i++)
          sig.graph.addEdge(arr[i]);

      // ...or instantiate sigma if needed:
      } else if (typeof sig === 'object') {
        sig.graph = graph;
        sig = new sigma(sig);

      // ...or it's finally the callback:
      } else if (typeof sig === 'function') {
        callback = sig;
        sig = null;
      }

      // Call the callback if specified:
      if (callback) {
        callback(sig || graph);
        return;
      } else
        return graph;
    }

    if (typeof target === 'string')
      gexf.fetch(target, parse);
    else if (typeof target === 'object')
      return parse(gexf.parse(target));
  };
}).call(this);


text:
<?php

Yii::import('translate.controllers.LanguageController');

/**
 *
 * @author Louis A. DaPrato <l.daprato@gmail.com>
 *
 */
class AcceptedLanguageController extends LanguageController
{

}


text:
  Gallardon est
      une ville située dans le département de l'Eure-et-Loir en Centre. On dénombrait 3 422 habitants en 2008.

À Gallardon, la valorisation moyenne à la vente d'un appartement s'évalue à 2 312 € du m² en vente. la valorisation moyenne d'une maison à l'achat se situe à 2 064 € du m². À la location la valeur moyenne se situe à 12,81 € du m² par mois.

La ville offre de multiples  équipements, elle dispose, entre autres, de un terrain de tennis, deux terrains de sport et une salle de combat.

À coté de Gallardon sont situées les villes de
Yermenonville située à 5 km, 588 habitants,
Champseru localisée à 4 km, 305 habitants,
Gas localisée à 4 km, 712 habitants,
Umpeau à 5 km, 411 habitants,
Saint-Symphorien-le-Château localisée à 5 km, 820 habitants,
Levainville localisée à 5 km, 343 habitants,
 entre autres. De plus, Gallardon est située à seulement 17 km de Chartres.

La commune est équipée concernant la formation de un collège.
Pour les plus petits d'entre nous, la localité peut se prévaloir de disposer de une maternelle et une école primaire.
Gallardon est équipée des  équipements éducatifs permettant une vie locale facilitée.
Si vous avez un projet de faire l'acquisition d'un bien immobilier à Gallardon, il est intéressant d' évaluer la notoriété des écoles de la communes

À Gallardon le salaire médian par mois par habitant est situé à environ 2 248 €  net. Ceci est supérieur à la moyenne du pays.

Le parc de logements, à Gallardon, était réparti en 2011 en 424 appartements et 1 130 maisons soit
 un marché plutôt équilibré.


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
// more...
using HTTPOptions.Models;
using AutoMapper;

namespace HTTPOptions.ServiceLayer
{
    public class Song_repo : Repository<Song>
    {
        // Constructor
        public Song_repo(DataContext ds) : base(ds) { }

        // Methods called by controllers

    }

}


text:
package com.eagle.programmar.SQL.Symbols;

public class SQL_Function_Definition extends SQL_Identifier_Definition
{
	@Override
	public String typeName()
	{
		return "Function";
	}
}


text:
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ProOF.apl.advanced1.FMS.local_search;

import ProOF.opt.abst.problem.meta.Problem;
import ProOF.opt.abst.problem.meta.Solution;

/**
 *
 * @author marcio
 */
public class Nothing extends LocalImprovement{
    @Override
    public String name() {
        return "Nothing";
    }
    @Override
    public String description() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
    @Override
    public void execute(Problem problem, Solution best) throws Exception {

    }
}


text:
class BuilderBase<A> {
  public scala.Option<A> build() { return null; }
}
public class Builder_1<A> extends BuilderBase<A> { }


text:
<?xml version="1.0" encoding="utf-8"?>
<resources>
>

    <!--设置activity的打开动画-->
    <style name="AnimTranslucent" parent="@android:style/Theme.Translucent">
        <item name="android:windowNoTitle">true</item>
        <item name="android:statusBarColor">@color/red_dark</item>
        <item name="android:fitsSystemWindows">true</item>
    </style>

    <style name="AnimationActivity" parent="@android:style/Animation.Activity" >
        <!--<item name="android:activityOpenEnterAnimation">@null</item>-->
        <!--<item name="android:activityOpenExitAnimation">@null</item>-->
        <!--<item name="android:activityCloseEnterAnimation">@null</item>-->
        <!--<item name="android:activityCloseExitAnimation">@null</item>-->
    </style>

</resources>


text:
require 'spec_helper'

describe "Users" do

  before(:each) do
    create(:user, :email => "a@example.com")
    create(:user, :email => "b@example.com")
    sign_in_as!(create(:admin_user))
    visit spree.admin_path
    click_link "Users"
  end

  context "users index page with sorting" do
    before(:each) do
      click_link "users_email_title"
    end

    it "should be able to list users with order email asc" do
      page.should have_css('table#listing_users')
      within("table#listing_users") do
        page.should have_content("a@example.com")
        page.should have_content("b@example.com")
      end
    end

    it "should be able to list users with order email desc" do
      click_link "users_email_title"
      within("table#listing_users") do
        page.should have_content("a@example.com")
        page.should have_content("b@example.com")
      end
    end
  end

  context "searching users" do
    it "should display the correct results for a user search" do
      fill_in "q_email_cont", :with => "a@example.com"
      click_button "Search"
      within("table#listing_users") do
        page.should have_content("a@example.com")
        page.should_not have_content("b@example.com")
      end
    end
  end

  context "editing users" do
    before(:each) do
      click_link("a@example.com")
      click_link("Edit")
    end

    it "should let me edit the user email" do
      fill_in "user_email", :with => "a@example.com99"
      click_button "Update"

      page.should have_content("Account updated!")
      find_field("user_email").value.should == "a@example.com99"
    end

    it "should let me edit the user password" do
      fill_in "user_password", :with => "welcome"
      fill_in "user_password_confirmation", :with => "welcome"
      click_button "Update"

      page.should have_content("Account updated!")
    end
  end
end


text:
package net.sf.katta.testutil.mockito;

import java.io.Serializable;
import java.util.concurrent.CountDownLatch;

import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;

@SuppressWarnings("serial")
public class SerializableCountDownLatchAnswer implements Answer<Void>, Serializable {

  private static CountDownLatch _countDownLatch;

  public SerializableCountDownLatchAnswer(int latchCount) {
    _countDownLatch = new CountDownLatch(latchCount);
  }

  @Override
  public Void answer(InvocationOnMock invocation) throws Throwable {
    _countDownLatch.countDown();
    return null;
  }

  public CountDownLatch getCountDownLatch() {
    return _countDownLatch;
  }
}


text:
id: 587d7b86367417b2b2512b3c
title: Use Caution When Reinitializing Variables Inside a Loop
challengeType: 1
forumTopicId: 301194
---

## Description

Sometimes it's necessary to save information, increment counters, or re-set variables within a loop. A potential issue is when variables either should be reinitialized, and aren't, or vice versa. This is particularly dangerous if you accidentally reset the variable being used for the terminal condition, causing an infinite loop.
Printing variable values with each cycle of your loop by using console.log() can uncover buggy behavior related to resetting, or failing to reset a variable.

## Instructions

The following function is supposed to create a two-dimensional array with m rows and n columns of zeroes. Unfortunately, it's not producing the expected output because the row variable isn't being reinitialized (set back to an empty array) in the outer loop. Fix the code so it returns a correct 3x2 array of zeroes, which looks like [[0, 0], [0, 0], [0, 0]].

## Tests

```yml
tests:
  - text: Your code should set the <code>matrix</code> variable to an array holding 3 rows of 2 columns of zeroes each.
    testString: assert(JSON.stringify(matrix) == "[[0,0],[0,0],[0,0]]");
  - text: The <code>matrix</code> variable should have 3 rows.
    testString: assert(matrix.length == 3);
  - text: The <code>matrix</code> variable should have 2 columns in each row.
    testString: assert(matrix[0].length == 2 && matrix[1].length === 2 && matrix[2].length === 2);

```

## Challenge Seed

```js
function zeroArray(m, n) {
  // Creates a 2-D array with m rows and n columns of zeroes
  let newArray = [];
  let row = [];
  for (let i = 0; i < m; i++) {
    // Adds the m-th row into newArray

    for (let j = 0; j < n; j++) {
      // Pushes n zeroes into the current row to create the columns
      row.push(0);
    }
    // Pushes the current row, which now has n zeroes in it, to the array
    newArray.push(row);
  }
  return newArray;
}

let matrix = zeroArray(3, 2);
console.log(matrix);
```

## Solution

```js
function zeroArray(m, n) {
 // Creates a 2-D array with m rows and n columns of zeroes
 let newArray = [];
 for (let i = 0; i < m; i++) {
   let row = [];
   // Adds the m-th row into newArray

   for (let j = 0; j < n; j++) {
     // Pushes n zeroes into the current row to create the columns
     row.push(0);
   }
   // Pushes the current row, which now has n zeroes in it, to the array
   newArray.push(row);
 }
 return newArray;
}

let matrix = zeroArray(3, 2);
console.log(matrix);
```


text:
var path = require('path'),
    fs = require("fs"),
    Zip = require('node-zip'),
    request = require("request");

function zipFiles(modified) {
    var archive = new Zip();
    fis.log.info("zip files wait to upload to cdn...");
    modified.forEach(function(file) {
        if (file.isJsLike || file.isCssLike || file.isImage()) {
            var matched = fis.util.some(['/img', '/css', '/js'], function(item) {
                return ~file.subpath.indexOf(item);
            });
            if (matched) {
                archive.file(file.getHashRelease().substr(1), file.getContent());
            }
        }
    });
    var data = archive.generate({
        base64: false,
        compression: 'DEFLATE'
    });
    var zipPath = fis.project.getProjectPath() + "/" + Date.now() + '.zip';
    fs.writeFileSync(zipPath, data, 'binary');
    fis.log.info("success zip files: ", zipPath);

    return zipPath;
}

function uploadZipFile(zipPath, options, callback) {
    fis.log.info("prepare upload zip file: uploadUrl: ", options.uploadUrl, ", remoteDir: ", options.remoteDir);

    if (options.remoteDir.substr(-1) === '\/') {
        options.remoteDir = options.remoteDir;
    }

    request.post({
        url: options.uploadUrl,
        formData: {
            path: options.remoteDir,
            zip_file: fs.createReadStream(zipPath)
        }
    }, function(err, resp, body) {
        fis.util.del(zipPath);
        if (err) {
            fis.log.error("upload failed: ", err);
            return reject(err);
        } else {
            try {
                var json = JSON.parse(body);
                fis.log.info("upload to cdn success: \n ", Object.keys(json));
                callback(null, "OK");
            } catch (e) {
                fis.log.error("upload to cdn fail, resp body: " + body);
                callback(new Error("upload to cdn fail, resp body: " + body));
            }
        }
    });
}

module.exports = function(options, modified, total, next) {

    //fis.log.info("options: ", options);
    //fis.log.info("modified len: ", modified.length, ", total len: ", total.length);

    var zipPath = zipFiles(modified);
    uploadZipFile(zipPath, options, function(err, result) {
        next && next(err, result);
    });
};


text:
$(function () {
    //BEGIN BOOTSTRAP WYSIWYG5
    $('.wysihtml5').wysihtml5();
    //END BOOTSTRAP WYSIWYG5

    //BEGIN CKEDITOR
    CKEDITOR.disableAutoInline = true;
    //END CKEDITOR

    //BEGIN SUMMERNOTE EDITOR
    $('#summernote-default').summernote();
    $('#summernote-edit').click(function() {
        $('.click2edit').summernote({focus: true});
    });
    $('#summernote-save').click(function() {
        var aHTML = $('.click2edit').code(); //save HTML If you need(aHTML: array).
        $('.click2edit').destroy();
    });
    //END SUMMERNOTE EDITOR
});


text:
define(["dojo/_base/declare",
        "dojo/_base/lang",
        "dojo/on",
        "dojo/aspect",
        "dojo/dom-construct",
        "dijit/_WidgetBase",
        "dijit/_TemplatedMixin",
        "dijit/_WidgetsInTemplateMixin",
        "dojo/text!./templates/AppliedFiltersPane.html",
        "dojo/i18n!./nls/resources",
        "./DropPane",
        "./AppliedFilters"],
function(declare, lang, on, aspect, domConstruct,
         _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, template, i18n,
         DropPane, AppliedFilters) {

  var oThisClass = declare("g.solr.AppliedFilters",
      [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin],{

    clearAllNode: null,
    i18n: i18n,
    templateString: template,

    // DropPane
    open: false,
    title: null,

    postCreate: function() {
      this.inherited(arguments);
      var filters =  this.__appliedFilters;
      var dropPane =  this.__dropPane;
      var elTools = dropPane.dropPaneTools.toolsNode;
      this.clearAllNode = domConstruct.create("span",{
        className: "dijitReset dijitInline dijitIcon dijitIconDelete gIconTool",
        style: {visibility: "hidden"},
        title: this.i18n.AppliedFilters.ClearAll},elTools);
      this.own(on(this.clearAllNode,"click",lang.hitch(this,function(e) {
        filters.clearAll();
      })));
      this.own(aspect.after(filters,"handleQResponse",lang.hitch(this,function(e) {
        if (filters.hasRemovable) {
          this.clearAllNode.style.visibility = "visible";
        } else {
          this.clearAllNode.style.visibility = "hidden";
          if (dropPane.open) {
            dropPane.toggle();
          }
        }
      })));
    },

    postMixInProperties: function() {
      this.inherited(arguments);
      if (!this.title) {
        this.title = this.i18n.AppliedFilters.Title;
      }
    }

  });

  return oThisClass;
});


text:
var me = {
    fetch: [

        function(fetched_elts) {
            return 'https://people.googleapis.com/v1/people/me?personFields=names,emailAddresses,occupations,organizations,addresses,locales';
        }

    ],
    params: {},
    fields: {
        id: '=',
        name: function(me) {
            return me.names ? me.names.displayName : undefined;
        },
        firstname: function(me) {
            return me.names ? me.names.givenName : undefined;
        },
        lastname: function(me) {
            return me.names ? me.names.familyName : undefined;
        },
        email: function(me) {
            return me.emailAddresses && me.emailAddresses[0] ? me.emailAddresses[0].value : undefined;
        },
        occupation: '=',
        company: function(me) {
            return me.organizations && me.organizations[0] ? me.organizations[0].name : undefined;
        },
        location: function(me) {
            return me.addresses && me.addresses[0] ? me.addresses[0].value : undefined;
        },
        locale: function(me) {
            return me.locales && me.locales[0] ? me.locales[0].value : undefined;
        }
    }
};
module.exports = me


text:
namespace atom {

// Add support for node's "--debug" switch.
class NodeDebugger : public net::test_server::StreamListenSocket::Delegate {
 public:
  explicit NodeDebugger(v8::Isolate* isolate);
  virtual ~NodeDebugger();

  bool IsRunning() const;

 private:
  void StartServer(int port);
  void CloseSession();
  void OnMessage(const std::string& message);
  void SendMessage(const std::string& message);
  void SendConnectMessage();

  static void ProcessMessageInUI(uv_async_t* handle);

  static void DebugMessageHandler(const v8::Debug::Message& message);

  // net::test_server::StreamListenSocket::Delegate:
  void DidAccept(
      net::test_server::StreamListenSocket* server,
      scoped_ptr<net::test_server::StreamListenSocket> socket) override;
  void DidRead(net::test_server::StreamListenSocket* socket,
               const char* data,
               int len) override;
  void DidClose(net::test_server::StreamListenSocket* socket) override;

  v8::Isolate* isolate_;

  uv_async_t weak_up_ui_handle_;

  base::Thread thread_;
  scoped_ptr<net::test_server::StreamListenSocket> server_;
  scoped_ptr<net::test_server::StreamListenSocket> accepted_socket_;

  std::string buffer_;
  int content_length_;

  base::WeakPtrFactory<NodeDebugger> weak_factory_;

  DISALLOW_COPY_AND_ASSIGN(NodeDebugger);
};

}  // namespace atom

#endif  // ATOM_BROWSER_NODE_DEBUGGER_H_


text:
Public Class Trabajador
    Inherits Persona 'Herencia de la Clase Persona'

    'Atributos de la Clase Trabajador'
    Private _Id As Integer 'Código del Trabajador'
    Private _ExpLaboral As String 'Experiencia Laboral del Trabajador'
    Private _Profesion As String 'Profesión que ejerce el Trabajador'
    Private _LvlEducativo As String 'Nivel Educativo del Trabajador (Primaria, Bachiller, Entre otros)'
    Private _HojVid As Boolean 'Indica si el trabajador tiene Hoja de Vida (Si/No)'

    'Propiedades de la Clase'

    'Propiedad Código de Trabajador'
    Public Property Id() As Integer
        Get
            Return _Id
        End Get
        Set(ByVal value As Integer)
            _Id = value
        End Set
    End Property 'Fin Propiedad Id'

    'Propiedad Experiencia Laboral de Trabajador'
    Public Property ExpLaboral() As String
        Get
            Return _ExpLaboral
        End Get
        Set(ByVal value As String)
            _ExpLaboral = value
        End Set
    End Property 'Fin Propiedad ExpLaboral'

    'Propiedad Profesión de Trabajador'
    Public Property Profesion() As String
        Get
            Return _Profesion
        End Get
        Set(ByVal value As String)
            _Profesion = value
        End Set
    End Property 'Fin Propiedad Profesion'

    'Propiedad Nivel Educativo de Trabajador'
    Public Property LvlEducativo() As String
        Get
            Return _LvlEducativo
        End Get
        Set(ByVal value As String)
            _LvlEducativo = value
        End Set
    End Property 'Fin Propiedad lvlEducativo'

    'Propiedad Hoja de Vida de Trabajador'
    Public Property HojVid() As Boolean
        Get
            Return _HojVid
        End Get
        Set(ByVal value As Boolean)
            _HojVid = value
        End Set
    End Property 'Fin Propiedad HojVid'

    'CONSTRUCTOR de la Clase Trabajador'
    Public Sub New(ByVal P1DocIdentidad,
                   ByVal P2Nombres,
                   ByVal P3Apellidos,
                   ByVal P4Genero,
                   ByVal P5FecNacimiento,
                   ByVal P6Id,
                   ByVal P7ExpLaboral,
                   ByVal P8Profesion,
                   ByVal P9LvlEducativo,
                   ByVal P10HojVid)

        'Atributos heredados de la Clase Persona'
        MyBase.New(P1DocIdentidad,
                   P2Nombres,
                   P3Apellidos,
                   P4Genero,
                   P5FecNacimiento)
        'Atributos de la Clase Trabajador'
        Me.Id = P6Id
        Me.ExpLaboral = P7ExpLaboral
        Me.Profesion = P8Profesion
        Me.LvlEducativo = P9LvlEducativo
        Me.HojVid = P10HojVid

    End Sub 'Fin CONSTRUTOR'
End Class 'Fin Clase Trabajador'


text:
module Sourcify
  module Method
    class Parser #:nodoc:all
      Sourcify.require_rb('common', 'parser', 'source_code')
      SourceCode = Common::Parser::SourceCode
    end
  end
end


text:
[Exploiting Saliency for Object Segmentation from Image Level Labels](https://arxiv.org/abs/1701.08261), CVPR'17

![TEASER](http://datasets.d2.mpi-inf.mpg.de/joon17cvpr/teaser.jpg)

There have been remarkable improvements in the semantic labelling task in the recent years. However, the state of the art methods rely on large-scale pixel-level annotations. This paper studies the problem of training a pixel-wise semantic labeller network from image-level annotations of the present object classes. Recently, it has been shown that high quality seeds indicating discriminative object regions can be obtained from image-level labels. Without additional information, obtaining the full extent of the object is an inherently ill-posed problem due to co-occurrences. We propose using a saliency model as additional information and hereby exploit prior knowledge on the object extent and image statistics. We show how to combine both information sources in order to recover 80% of the fully supervised performance - which is the new state of the art in weakly supervised training for pixel-wise semantic labelling.

## Installation

Clone this repository recursively.

```bash
$ git clone https://github.com/coallaoh/GuidedLabelling.git --recursive
```

#### Install Caffe

```bash
$ cd caffe
```

Follow [caffe installation](http://caffe.berkeleyvision.org/installation.html) to configure Makefile.config, and run

```bash
$ make -j50 && make pycaffe
```

#### Downloads

Download precomputed saliency maps, network initialisations, train_aug.txt etc.
Please modify the path `PASCALROOT` in `downloads.sh` to indicate the root directory for your [Pascal VOC](http://host.robots.ox.ac.uk:8080/pascal/VOC/) database, and run

```bash
$ ./downloads.sh
```

#### Python requirements

Install Python requirements.

```bash
$ pip install numpy && pip install scipy && pip install -r ./pip-requirements
```

Install OpenCV for python, following the instructions in: http://opencv.org.

Install PyDenseCRF (https://github.com/lucasb-eyer/pydensecrf).

```bash
$ pip install git+https://github.com/lucasb-eyer/pydensecrf.git
```

## Running

For every image, you compute (1) a seed heatmap, (2) a saliency map,
and (3) a guide labelling as the training ground truth for the segmentation network
(DeepLab in this case).

The following script does

* Seed network training.
* Computation of seed heatmaps for each image.
* Generate guide labels by combining seed and saliency.
* Train semantic segmentation network using guide labels.
* Test and evaluate the segmentation network.

```bash
$ ./script.py
```

Before running, please change the variable `PASCALROOT` to indicate the root directory for your [Pascal VOC](http://host.robots.ox.ac.uk:8080/pascal/VOC/) database, and set the variable `GPU` to the gpu device number of your choice. Please read the script for greater details.

The final segmentation performance on the Pascal *val* set is computed automatically: it should be **51.419** and **56.153** mIoU, before and after the CRF postprocessing, respectively. They are slightly better than what is reported in our paper (51.2 and 55.7 respectively).

#### For keen people

```bash
$ src/
```

contains additional scripts for e.g. evaluating seed performance.
Please read the source scripts and/or run for example

```bash
$ ./src/seed/train.py -h
```

to see options for playing with experimental parameters.

## Contact

For any problem with implementation or bug, please contact [Seong Joon Oh](https://seongjoonoh.com/) (coallaoh at gmail).

## Citation

```
    @inproceedings{joon17cvpr,
        title = {Exploiting Saliency for Object Segmentation from Image Level Labels},
        author = {Oh, Seong Joon and Benenson, Rodrigo and Khoreva, Anna and Akata, Zeynep and Fritz, Mario and Schiele, Bernt},
        year = {2017},
        booktitle = {Conference on Computer Vision and Pattern Recognition (CVPR)},
        note = {to appear},
        pubstate = {published},
        tppubtype = {inproceedings}
    }
```


text:
module Rubaidh
  module Authentication
    module Controllers
      module UsersControllerMixin
        def self.included(controller)
          controller.send(:include, InstanceMethods)
          controller.class_eval do
            skip_before_filter :login_required, :only => [:show, :new, :create, :activate]
          end
        end

        module InstanceMethods
          def show
            respond_to do |format|
              format.html { redirect_to new_user_path }
            end
          end

          def new
            @page_title = "New User"
            @user = User.new

            respond_to do |format|
              format.html # new.html.erb
            end
          end

          def create
            @user = User.new(params[:user])

            respond_to do |format|
              if @user.save
                format.html # create.html.erb
              else
                format.html { render :action => "new" }
              end
            end
          end

          def activate
            @user = User.find_by_activation_code(params[:activation_code])
            respond_to do |format|
              if @user.present? && @user.activate
                self.current_user = @user
                format.html do
                  flash[:notice] = "Account successfully activated, thank you"
                  redirect_to(root_url)
                end
              else
                format.html do
                  flash[:error] = "There was an error activating your account."
                  redirect_to(new_session_url)
                end
              end
            end
          end

        end
      end
    end
  end
end


text:
package de.matthiasmann.twlthemeeditor.themeparams;

import java.util.ArrayList;
import org.objectweb.asm.AnnotationVisitor;
import org.objectweb.asm.Attribute;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.FieldVisitor;
import org.objectweb.asm.MethodVisitor;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.FieldInsnNode;
import org.objectweb.asm.tree.IntInsnNode;
import org.objectweb.asm.tree.LdcInsnNode;
import org.objectweb.asm.tree.MethodInsnNode;
import org.objectweb.asm.tree.MethodNode;
import org.objectweb.asm.tree.analysis.Analyzer;
import org.objectweb.asm.tree.analysis.AnalyzerException;
import org.objectweb.asm.tree.analysis.Frame;
import org.objectweb.asm.tree.analysis.SourceInterpreter;
import org.objectweb.asm.tree.analysis.SourceValue;
import org.objectweb.asm.tree.analysis.Value;

/**
 *
 * @author Matthias Mann
 */
public class ClassAnalyzer implements ClassVisitor {

    private final ArrayList<MethodNode> methods;
    private ClassThemeParamInfo classInfo;

    public ClassAnalyzer() {
        methods = new ArrayList<MethodNode>();
    }

    @Override
    public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
        classInfo = new ClassThemeParamInfo(name, superName);
    }

    @Override
    public AnnotationVisitor visitAnnotation(String desc, boolean visible) {
        return null;
    }

    @Override
    public void visitAttribute(Attribute attr) {
    }

    @Override
    public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) {
        return null;
    }

    @Override
    public void visitInnerClass(String name, String outerName, String innerName, int access) {
    }

    @Override
    public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {
        if(name.startsWith("applyTheme") && "(Lde/matthiasmann/twl/ThemeInfo;)V".equals(desc)) {
            MethodNode mn = new MethodNode(access, name, desc, signature, exceptions);
            methods.add(mn);
            return mn;
        } else {
            return null;
        }
    }

    @Override
    public void visitOuterClass(String owner, String name, String desc) {
    }

    @Override
    public void visitSource(String source, String debug) {
    }

    @Override
    public void visitEnd() {
        for(MethodNode mn : methods) {
            processMethod(mn);
        }
    }

    public ClassThemeParamInfo getClassInfo() {
        return classInfo;
    }

    private void processMethod(MethodNode mn) {
        Analyzer analyzer = new Analyzer(new SourceInterpreter());
        try {
            Frame[] frames = analyzer.analyze(classInfo.getClassName(), mn);
            for(int insIdx=0 ; insIdx<mn.instructions.size() ; insIdx++) {
                AbstractInsnNode ins = mn.instructions.get(insIdx);
                if(ins instanceof MethodInsnNode) {
                    MethodInsnNode invoke = (MethodInsnNode)ins;
                    if("de/matthiasmann/twl/ThemeInfo".equals(invoke.owner)) {
                        Type[] argTypes = Type.getArgumentTypes(invoke.desc);
                        Type returnType = Type.getReturnType(invoke.desc);
                        if(argTypes.length >= 1 &&
                                "java/lang/String".equals(argTypes[0].getInternalName()) &&
                                returnType.getSort() != Type.VOID) {
                            Frame frame = frames[insIdx];
                            Object[] args = new Object[argTypes.length];
                            for(int i=0 ; i<argTypes.length ; i++) {
                                args[i] = getValue(frame.getStack(frame.getStackSize() - argTypes.length + i));
                            }
                            ThemeParamInfo tp = ThemeParamInfo.create(invoke.name, returnType, args);
                            if(tp != null) {
                                classInfo.addParam(tp);
                            }
                        }
                    }
                }
            }
        } catch(AnalyzerException ex) {
            ex.printStackTrace();
        }
    }

    private Object getValue(Value value) {
        if(value instanceof SourceValue) {
            SourceValue sourceValue = (SourceValue)value;
            if(sourceValue.insns.size() == 1) {
                AbstractInsnNode insn = (AbstractInsnNode)sourceValue.insns.iterator().next();
                switch(insn.getOpcode()) {
                    case Opcodes.ICONST_0: return 0;
                    case Opcodes.ICONST_1: return 1;
                    case Opcodes.ICONST_2: return 2;
                    case Opcodes.ICONST_3: return 3;
                    case Opcodes.ICONST_4: return 4;
                    case Opcodes.ICONST_5: return 5;
                    case Opcodes.ICONST_M1: return -1;
                    case Opcodes.LCONST_0: return 0;
                    case Opcodes.LCONST_1: return 1;
                    case Opcodes.ACONST_NULL: return null;
                    case Opcodes.LDC: return ((LdcInsnNode)insn).cst;
                    case Opcodes.BIPUSH: return ((IntInsnNode)insn).operand;
                    case Opcodes.SIPUSH: return ((IntInsnNode)insn).operand;
                    case Opcodes.GETSTATIC:
                        FieldInsnNode fieldInsn = (FieldInsnNode)insn;
                        return new StaticFieldAccess(fieldInsn.owner, fieldInsn.name);
                }
            }
        }
        return null;
    }
}


text:
#include <glib.h>

// Disable the 'const' function attribute of the get_type() functions.
// GCC would optimize them out because we don't use the return value.
#undef  G_GNUC_CONST
#define G_GNUC_CONST /* empty */

#include <giomm/wrap_init.h>
#include <glibmm/error.h>
#include <glibmm/object.h>

// #include the widget headers so that we can call the get_type() static methods:

#include "appinfo.h"
#include "asyncresult.h"
#include "bufferedinputstream.h"
#include "bufferedoutputstream.h"
#include "cancellable.h"
#include "datainputstream.h"
#include "dataoutputstream.h"
#include "drive.h"
#include "emblem.h"
#include "emblemedicon.h"
#include "enums.h"
#include "error.h"
#include "file.h"
#include "fileattributeinfo.h"
#include "fileattributeinfolist.h"
#include "fileenumerator.h"
#include "fileicon.h"
#include "fileinfo.h"
#include "fileinputstream.h"
#include "fileiostream.h"
#include "filemonitor.h"
#include "filenamecompleter.h"
#include "fileoutputstream.h"
#include "filterinputstream.h"
#include "filteroutputstream.h"
#include "icon.h"
#include "inetaddress.h"
#include "inetsocketaddress.h"
#include "initable.h"
#include "inputstream.h"
#include "iostream.h"
#include "loadableicon.h"
#include "memoryinputstream.h"
#include "memoryoutputstream.h"
#include "mount.h"
#include "mountoperation.h"
#include "networkaddress.h"
#include "networkservice.h"
#include "outputstream.h"
#include "resolver.h"
#include "seekable.h"
#include "socket.h"
#include "socketaddress.h"
#include "socketaddressenumerator.h"
#include "socketclient.h"
#include "socketconnectable.h"
#include "socketconnection.h"
#include "socketlistener.h"
#include "socketservice.h"
#include "srvtarget.h"
#include "tcpconnection.h"
#include "threadedsocketservice.h"
#include "themedicon.h"
#include "volume.h"
#include "volumemonitor.h"
#include "desktopappinfo.h"
#include "unixconnection.h"
#include "unixinputstream.h"
#include "unixoutputstream.h"

extern "C"
{

//Declarations of the *_get_type() functions:

GType g_app_launch_context_get_type(void);
GType g_buffered_input_stream_get_type(void);
GType g_buffered_output_stream_get_type(void);
GType g_cancellable_get_type(void);
GType g_data_input_stream_get_type(void);
GType g_data_output_stream_get_type(void);
#ifndef G_OS_WIN32
GType g_desktop_app_info_get_type(void);
#endif //G_OS_WIN32
GType g_emblem_get_type(void);
GType g_emblemed_icon_get_type(void);
GType g_file_enumerator_get_type(void);
GType g_file_io_stream_get_type(void);
GType g_file_icon_get_type(void);
GType g_file_info_get_type(void);
GType g_file_input_stream_get_type(void);
GType g_file_monitor_get_type(void);
GType g_file_output_stream_get_type(void);
GType g_filename_completer_get_type(void);
GType g_filter_input_stream_get_type(void);
GType g_filter_output_stream_get_type(void);
GType g_io_stream_get_type(void);
GType g_inet_address_get_type(void);
GType g_inet_socket_address_get_type(void);
GType g_input_stream_get_type(void);
GType g_memory_input_stream_get_type(void);
GType g_memory_output_stream_get_type(void);
GType g_mount_operation_get_type(void);
GType g_network_address_get_type(void);
GType g_network_service_get_type(void);
GType g_output_stream_get_type(void);
GType g_resolver_get_type(void);
GType g_socket_get_type(void);
GType g_socket_address_get_type(void);
GType g_socket_address_enumerator_get_type(void);
GType g_socket_client_get_type(void);
GType g_socket_connection_get_type(void);
GType g_socket_listener_get_type(void);
GType g_socket_service_get_type(void);
GType g_tcp_connection_get_type(void);
GType g_themed_icon_get_type(void);
GType g_threaded_socket_service_get_type(void);
#ifndef G_OS_WIN32
GType g_unix_connection_get_type(void);
#endif //G_OS_WIN32
#ifndef G_OS_WIN32
GType g_unix_input_stream_get_type(void);
#endif //G_OS_WIN32
#ifndef G_OS_WIN32
GType g_unix_output_stream_get_type(void);
#endif //G_OS_WIN32
GType g_volume_monitor_get_type(void);

//Declarations of the *_error_quark() functions:

GQuark g_io_error_quark(void);
GQuark g_resolver_error_quark(void);
} // extern "C"

//Declarations of the *_Class::wrap_new() methods, instead of including all the private headers:

namespace Gio {  class AppLaunchContext_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class BufferedInputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class BufferedOutputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class Cancellable_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class DataInputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class DataOutputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
#ifndef G_OS_WIN32
namespace Gio {  class DesktopAppInfo_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
#endif //G_OS_WIN32
namespace Gio {  class Emblem_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class EmblemedIcon_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FileEnumerator_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FileIOStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FileIcon_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FileInfo_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FileInputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FileMonitor_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FileOutputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FilenameCompleter_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FilterInputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class FilterOutputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class IOStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class InetAddress_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class InetSocketAddress_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class InputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class MemoryInputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class MemoryOutputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class MountOperation_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class NetworkAddress_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class NetworkService_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class OutputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class Resolver_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class Socket_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class SocketAddress_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class SocketAddressEnumerator_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class SocketClient_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class SocketConnection_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class SocketListener_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class SocketService_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class TcpConnection_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class ThemedIcon_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
namespace Gio {  class ThreadedSocketService_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
#ifndef G_OS_WIN32
namespace Gio {  class UnixConnection_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
#endif //G_OS_WIN32
#ifndef G_OS_WIN32
namespace Gio {  class UnixInputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
#endif //G_OS_WIN32
#ifndef G_OS_WIN32
namespace Gio {  class UnixOutputStream_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
#endif //G_OS_WIN32
namespace Gio {  class VolumeMonitor_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }

namespace Gio {

void wrap_init()
{
  // Register Error domains:
  Glib::Error::register_domain(g_io_error_quark(), &Gio::Error::throw_func);
  Glib::Error::register_domain(g_resolver_error_quark(), &Gio::ResolverError::throw_func);

// Map gtypes to gtkmm wrapper-creation functions:
  Glib::wrap_register(g_app_launch_context_get_type(), &Gio::AppLaunchContext_Class::wrap_new);
  Glib::wrap_register(g_buffered_input_stream_get_type(), &Gio::BufferedInputStream_Class::wrap_new);
  Glib::wrap_register(g_buffered_output_stream_get_type(), &Gio::BufferedOutputStream_Class::wrap_new);
  Glib::wrap_register(g_cancellable_get_type(), &Gio::Cancellable_Class::wrap_new);
  Glib::wrap_register(g_data_input_stream_get_type(), &Gio::DataInputStream_Class::wrap_new);
  Glib::wrap_register(g_data_output_stream_get_type(), &Gio::DataOutputStream_Class::wrap_new);
#ifndef G_OS_WIN32
  Glib::wrap_register(g_desktop_app_info_get_type(), &Gio::DesktopAppInfo_Class::wrap_new);
#endif //G_OS_WIN32
  Glib::wrap_register(g_emblem_get_type(), &Gio::Emblem_Class::wrap_new);
  Glib::wrap_register(g_emblemed_icon_get_type(), &Gio::EmblemedIcon_Class::wrap_new);
  Glib::wrap_register(g_file_enumerator_get_type(), &Gio::FileEnumerator_Class::wrap_new);
  Glib::wrap_register(g_file_io_stream_get_type(), &Gio::FileIOStream_Class::wrap_new);
  Glib::wrap_register(g_file_icon_get_type(), &Gio::FileIcon_Class::wrap_new);
  Glib::wrap_register(g_file_info_get_type(), &Gio::FileInfo_Class::wrap_new);
  Glib::wrap_register(g_file_input_stream_get_type(), &Gio::FileInputStream_Class::wrap_new);
  Glib::wrap_register(g_file_monitor_get_type(), &Gio::FileMonitor_Class::wrap_new);
  Glib::wrap_register(g_file_output_stream_get_type(), &Gio::FileOutputStream_Class::wrap_new);
  Glib::wrap_register(g_filename_completer_get_type(), &Gio::FilenameCompleter_Class::wrap_new);
  Glib::wrap_register(g_filter_input_stream_get_type(), &Gio::FilterInputStream_Class::wrap_new);
  Glib::wrap_register(g_filter_output_stream_get_type(), &Gio::FilterOutputStream_Class::wrap_new);
  Glib::wrap_register(g_io_stream_get_type(), &Gio::IOStream_Class::wrap_new);
  Glib::wrap_register(g_inet_address_get_type(), &Gio::InetAddress_Class::wrap_new);
  Glib::wrap_register(g_inet_socket_address_get_type(), &Gio::InetSocketAddress_Class::wrap_new);
  Glib::wrap_register(g_input_stream_get_type(), &Gio::InputStream_Class::wrap_new);
  Glib::wrap_register(g_memory_input_stream_get_type(), &Gio::MemoryInputStream_Class::wrap_new);
  Glib::wrap_register(g_memory_output_stream_get_type(), &Gio::MemoryOutputStream_Class::wrap_new);
  Glib::wrap_register(g_mount_operation_get_type(), &Gio::MountOperation_Class::wrap_new);
  Glib::wrap_register(g_network_address_get_type(), &Gio::NetworkAddress_Class::wrap_new);
  Glib::wrap_register(g_network_service_get_type(), &Gio::NetworkService_Class::wrap_new);
  Glib::wrap_register(g_output_stream_get_type(), &Gio::OutputStream_Class::wrap_new);
  Glib::wrap_register(g_resolver_get_type(), &Gio::Resolver_Class::wrap_new);
  Glib::wrap_register(g_socket_get_type(), &Gio::Socket_Class::wrap_new);
  Glib::wrap_register(g_socket_address_get_type(), &Gio::SocketAddress_Class::wrap_new);
  Glib::wrap_register(g_socket_address_enumerator_get_type(), &Gio::SocketAddressEnumerator_Class::wrap_new);
  Glib::wrap_register(g_socket_client_get_type(), &Gio::SocketClient_Class::wrap_new);
  Glib::wrap_register(g_socket_connection_get_type(), &Gio::SocketConnection_Class::wrap_new);
  Glib::wrap_register(g_socket_listener_get_type(), &Gio::SocketListener_Class::wrap_new);
  Glib::wrap_register(g_socket_service_get_type(), &Gio::SocketService_Class::wrap_new);
  Glib::wrap_register(g_tcp_connection_get_type(), &Gio::TcpConnection_Class::wrap_new);
  Glib::wrap_register(g_themed_icon_get_type(), &Gio::ThemedIcon_Class::wrap_new);
  Glib::wrap_register(g_threaded_socket_service_get_type(), &Gio::ThreadedSocketService_Class::wrap_new);
#ifndef G_OS_WIN32
  Glib::wrap_register(g_unix_connection_get_type(), &Gio::UnixConnection_Class::wrap_new);
#endif //G_OS_WIN32
#ifndef G_OS_WIN32
  Glib::wrap_register(g_unix_input_stream_get_type(), &Gio::UnixInputStream_Class::wrap_new);
#endif //G_OS_WIN32
#ifndef G_OS_WIN32
  Glib::wrap_register(g_unix_output_stream_get_type(), &Gio::UnixOutputStream_Class::wrap_new);
#endif //G_OS_WIN32
  Glib::wrap_register(g_volume_monitor_get_type(), &Gio::VolumeMonitor_Class::wrap_new);

  // Register the gtkmm gtypes:
  Gio::AppLaunchContext::get_type();
  Gio::BufferedInputStream::get_type();
  Gio::BufferedOutputStream::get_type();
  Gio::Cancellable::get_type();
  Gio::DataInputStream::get_type();
  Gio::DataOutputStream::get_type();
#ifndef G_OS_WIN32
  Gio::DesktopAppInfo::get_type();
#endif //G_OS_WIN32
  Gio::Emblem::get_type();
  Gio::EmblemedIcon::get_type();
  Gio::FileEnumerator::get_type();
  Gio::FileIOStream::get_type();
  Gio::FileIcon::get_type();
  Gio::FileInfo::get_type();
  Gio::FileInputStream::get_type();
  Gio::FileMonitor::get_type();
  Gio::FileOutputStream::get_type();
  Gio::FilenameCompleter::get_type();
  Gio::FilterInputStream::get_type();
  Gio::FilterOutputStream::get_type();
  Gio::IOStream::get_type();
  Gio::InetAddress::get_type();
  Gio::InetSocketAddress::get_type();
  Gio::InputStream::get_type();
  Gio::MemoryInputStream::get_type();
  Gio::MemoryOutputStream::get_type();
  Gio::MountOperation::get_type();
  Gio::NetworkAddress::get_type();
  Gio::NetworkService::get_type();
  Gio::OutputStream::get_type();
  Gio::Resolver::get_type();
  Gio::Socket::get_type();
  Gio::SocketAddress::get_type();
  Gio::SocketAddressEnumerator::get_type();
  Gio::SocketClient::get_type();
  Gio::SocketConnection::get_type();
  Gio::SocketListener::get_type();
  Gio::SocketService::get_type();
  Gio::TcpConnection::get_type();
  Gio::ThemedIcon::get_type();
  Gio::ThreadedSocketService::get_type();
#ifndef G_OS_WIN32
  Gio::UnixConnection::get_type();
#endif //G_OS_WIN32
#ifndef G_OS_WIN32
  Gio::UnixInputStream::get_type();
#endif //G_OS_WIN32
#ifndef G_OS_WIN32
  Gio::UnixOutputStream::get_type();
#endif //G_OS_WIN32
  Gio::VolumeMonitor::get_type();

} // wrap_init()

} //Gio


text:
package org.apache.nifi.attribute.expression.language.evaluation.reduce;

import org.apache.nifi.attribute.expression.language.EvaluationContext;
import org.apache.nifi.attribute.expression.language.evaluation.Evaluator;
import org.apache.nifi.attribute.expression.language.evaluation.QueryResult;
import org.apache.nifi.attribute.expression.language.evaluation.StringEvaluator;
import org.apache.nifi.attribute.expression.language.evaluation.StringQueryResult;

public class JoinEvaluator extends StringEvaluator implements ReduceEvaluator<String> {

    private final Evaluator<String> subjectEvaluator;
    private final Evaluator<String> delimiterEvaluator;

    public JoinEvaluator(final Evaluator<String> subject, final Evaluator<String> delimiter) {
        this.subjectEvaluator = subject;
        this.delimiterEvaluator = delimiter;
    }

    @Override
    public QueryResult<String> evaluate(final EvaluationContext evaluationContext) {
        String subject = subjectEvaluator.evaluate(evaluationContext).getValue();
        if (subject == null) {
            subject = "";
        }

        final String delimiter = delimiterEvaluator.evaluate(evaluationContext).getValue();
        State state = evaluationContext.getEvaluatorState().getState(this, State.class);
        if (state == null) {
            state = new State();
            evaluationContext.getEvaluatorState().putState(this, state);
        }
        if (state.evalCount > 0) {
            state.sb.append(delimiter);
        }
        state.sb.append(subject);

        state.evalCount++;
        return new StringQueryResult(state.sb.toString());
    }

    @Override
    public Evaluator<?> getSubjectEvaluator() {
        return subjectEvaluator;
    }

    private class State {
        private final StringBuilder sb = new StringBuilder();
        private int evalCount = 0;
    }
}


text:
package org.openforis.collect.manager;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

import org.openforis.collect.event.EventListener;
import org.openforis.collect.event.RecordEvent;
import org.openforis.collect.manager.exception.RecordFileException;
import org.openforis.collect.model.CollectRecord;
import org.openforis.collect.persistence.RecordUnlockedException;
import org.springframework.beans.factory.annotation.Autowired;

/**
 *
 * @author S. Ricci
 */
public class RecordSessionManager extends SessionManager implements EventListener {

//	private static Logger LOG = Logger.getLogger(RecordSessionManager.class);

	@Autowired
	private transient SessionRecordFileManager recordFileManager;

	private transient List<RecordEvent> pendingEvents = new CopyOnWriteArrayList<RecordEvent>();

	@Override
	public void onEvent(RecordEvent event) {
		//TODO filter events by active record
		pendingEvents.add(event);
	}

	@Override
	public void setActiveRecord(CollectRecord record) {
		super.setActiveRecord(record);
		recordFileManager.resetTempInfo();
	}

	@Override
	public void releaseRecord() throws RecordUnlockedException {
		super.releaseRecord();
		recordFileManager.deleteAllTempFiles();
		pendingEvents.clear();
	}

	public List<RecordEvent> flushPendingEvents() {
		if (pendingEvents.isEmpty()) {
			return Collections.emptyList();
		}
		List<RecordEvent> events = new ArrayList<RecordEvent>(pendingEvents);
		pendingEvents.clear();
		return events;
	}

	public boolean commitRecordFileChanges(CollectRecord record) throws RecordFileException {
		 return recordFileManager.commitChanges(record);
	}

	public void indexTempRecordFile(java.io.File tempFile, Integer nodeId) {
		recordFileManager.indexTempFile(nodeId, tempFile, tempFile.getName());
	}

	public void prepareDeleteTempRecordFile(CollectRecord record, Integer nodeId) {
		recordFileManager.prepareDeleteFile(record, nodeId);
	}
}


text:
var koa = require('koa')
    , route = require('koa-route')
    , app = koa()
    , request = require(__dirname + '/lib/koa-request')
    , uaa = require(__dirname + '/services/uaa-services.js')
    , logger = require('koa-logger')
    , hbs = require('koa-hbs')
    , cors = require('koa-cors')
    , parse = require('co-body')
    , serve = require('koa-static')
    , handlebars = require('handlebars');

handlebars.registerHelper('dt', function(text, ctx) {
    return new hbs.SafeString(hbs.handlebars.partials[text]);
});

app.keys = ['aksjdhKGFAKJHGDkjlhfakI#Qtr&76rt3qkiGJSAGDFjft3kasdfJytrU%^jh',
    'ALKJHSdjhabfhjgUYWADvhgq3776JHGFAF^&JKHADjkzhgdjhfgdwuy',
    'kjjkasdaklUHYQ@#&*^4873rgfkakjhfgaY#UTRf'];

app.use(hbs.middleware({
    handlebars : handlebars,
    viewPath: __dirname + '/views',
    partialsPath: __dirname + '/views/partials'
}));

app.use(cors());

app.use(logger());

app.use(serve(__dirname + '/public'));

app.use(function *(next) {
    try {
        yield next;
    } catch (err) {
        // some errors will have .status
        // however this is not a guarantee
        this.status = err.status || 500;
        this.type = 'application/json';
        this.body = '{"error":"bang"}';
        this.app.emit('error', err, this);
    }
});

app.use(route.get('/login', function *(next) {
    yield this.render('cf-login');
}));

app.use(route.post('/login', function *(next) {
    var form = yield parse(this);
    var authDetails = yield uaa.login(form.username, form.password);
    this.cookies.set('authDetails', JSON.stringify(authDetails), { signed: true });
    this.redirect('/users/' + authDetails.user.user_id);
}));

app.use(route.get('/login', function *(next) {
    yield this.render('cf-login');
}));

app.use(route.get('/logout', function *(next) {
    this.cookies.set('authDetails', "{}");
    this.redirect('/login');
}));

app.use(route.get('/users/:id', function*(next){
    yield this.render('cf-console');
}));

app.use(function *() {
    this.status = 404;
    yield this.render('not_found');
});

app.on('error', function (err) {
    console.log('server error ', err.status, err);
});

if (!module.parent) app.listen(8000);