text:
import web
import os
try:
    import sqlite3
except ImportError:
    from pysqlite2 import dbapi2 as sqlite3
import simplejson
import urllib

TMPDIR = "../tmp/GEvo/"
if not os.path.exists(TMPDIR):
    TMPDIR = os.path.join(os.path.dirname(__file__), TMPDIR)
DBTMPL = os.path.join(TMPDIR, "%s.sqlite")

def getdb(dbname):
    db = sqlite3.connect(DBTMPL % dbname)
    db.row_factory = sqlite3.Row
    return db

class info(object):
    def GET(self, dbname):
        web.header('Content-type', 'text/javascript')
        db = getdb(dbname)
        c = db.cursor()
        c2 = db.cursor()
        c.execute("SELECT * FROM image_info order by display_id")
        c2.execute("SELECT min(xmin) as min, max(xmax) as max, image_id FROM image_data WHERE type='anchor' GROUP BY image_id ORDER BY image_id")

        result = {}
        for i, (row, anchor) in enumerate(zip(c, c2)):
            result[row['iname']] = dict(
                title=row['title'],
                i=i,
                img_width=row['px_width'],
                bpmin=row['bpmin'],
                bpmax=row['bpmax'],
                idx=row['id'],
                xmin=anchor['min'],
                xmax=anchor['max']
            )
        return simplejson.dumps(result)

class follow(object):
    def GET(self, dbname):
        web.header('content-type', 'text/javascript')
        db = getdb(dbname)
        c = db.cursor()
        c2 = db.cursor()
        img = web.input(img=None).img

        bbox = map(float, web.input().bbox.split(","))
        ids = []
        pair_ids = []

        used_pairs = []

        def get_pair_data(pair_id):
            c.execute("""SELECT xmin, xmax, ymin, ymax, image_id, image_track FROM image_data WHERE id = ?""", (pair_id,))
            p = c.fetchone()
            return dict(
                         pair_id=pair_id,
                         pair_image_id=p['image_id'],
                          pair_track=p['image_track'],
                         pair_bbox=(p['xmin'], p['ymin'], p['xmax'], p['ymax']))

        def get_pairs(img_id, bbox):
            c.execute("""SELECT id, pair_id, image_id, xmin, xmax, ymin, ymax FROM image_data WHERE ? + 1 > xmin AND ? - 1 < xmax AND
              ? - 1 > ymin AND ? + 1 < ymax AND image_id = ? AND pair_id != -99 AND type = 'HSP'""", \
              (bbox[2], bbox[0], bbox[3], bbox[1], img_id))
            results = c.fetchall()
            if not results: return None
            pairs = []
            for r in results:
                d = dict(id=r['id'], bbox=(r['xmin'], r['ymin'], r['xmax'], r['ymax']), image_id=r['image_id'])
                d.update(get_pair_data(r['pair_id']))
                pairs.append(d)

            return pairs

        def get_pairs_for_bbox_image(xmin, xmax, img_id, exclude_track):
            c.execute("""SELECT id, pair_id, image_id, xmin, xmax, ymin, ymax
                      FROM image_data WHERE ? + 1 > xmin AND ? - 1 < xmax AND
                      image_id = ? AND pair_id != -99 AND image_track != ? AND type = 'HSP'""", \
              (xmax, xmin, img_id, exclude_track))
            web.debug("""SELECT id, pair_id, image_id, xmin, xmax, ymin, ymax
                      FROM image_data WHERE ? + 1 > xmin AND ? - 1 < xmax AND
                      image_id = ? AND pair_id != -99 AND image_track != ? AND type = 'HSP'""")
            web.debug((xmax, xmin, img_id, exclude_track))

            results = c.fetchall()
            pairs = []
            for r in results:
                d = dict(id=r['id'], bbox=(r['xmin'], r['ymin'], r['xmax'], r['ymax']), image_id=r['image_id'])
                d.update(get_pair_data(r['pair_id']))
                pairs.append(d)
            return pairs

        pairs = get_pairs(img, bbox)
        i = 0
        while True:
            L = len(pairs)
            if i == L: break
            pair = pairs[i]
            new_pairs = get_pairs(pair['pair_image_id'], pair['pair_bbox'])
            for np in (_np for _np in new_pairs if not _np in pairs):
                new2 = get_pairs_for_bbox_image(np['bbox'][0], np['bbox'][2], np['image_id'], np['pair_track'])
                if new2 == []: continue
                if not new2 in pairs:
                    pairs.append(new2)
            pairs.extend([np for np in new_pairs if not np in pairs])
            i += 1
            if L == len(pairs): break
            web.debug(pairs)

class query(object):
    def GET(self, dbname):
        db = getdb(dbname)
        c = db.cursor()
        img = web.input(img=None).img

        if web.input(bbox=None).bbox:
            bbox = map(float, web.input().bbox.split(","))
            c.execute("""SELECT * FROM image_data WHERE ? + 1 > xmin AND ? - 1 < xmax AND
                      ? - 1 > ymin AND ? + 1 < ymax AND image_id = ? AND pair_id != -99 AND type = 'HSP'""", \
                      (bbox[2], bbox[0], bbox[3], bbox[1], img))
        elif web.input(all=None).all:
            c.execute("""SELECT distinct(image_track) as image_track FROM image_data WHERE ?
                      BETWEEN ymin AND ymax AND image_id = ? ORDER BY
                      ABS(image_track) DESC""", (float(web.input().y), img))
            track = c.fetchone()['image_track']
            web.debug(track)
            c.execute("""SELECT id, xmin, xmax, ymin, ymax, image_id, image_track, pair_id, color, link FROM image_data
                    WHERE ( (image_track = ?) or (image_track = (? * -1) ) )
                    and image_id = ? and pair_id != -99 and type = 'HSP'""", (track, track, img))

        else: # point query.
            x = float(web.input().x)
            y = float(web.input().y)
            c.execute("""SELECT * FROM image_data WHERE ? + 3 > xmin AND ? - 3
                      < xmax AND ? BETWEEN ymin and ymax and image_id = ?""",
                      (x, x, y, img))

        c2 = db.cursor()
        # now iterate over the cursor
        results = []
        for result in c:
            c2.execute("""SELECT id, xmin, xmax, ymin, ymax, image_id,
                       image_track, pair_id, color FROM image_data where
                       id = ?""", (result['pair_id'], ));
            pair = c2.fetchone()
            try:
                anno = result['annotation']
                if anno.startswith('http'):
                    anno = urllib.urlopen(anno).read()
            except:
                anno = ""

            f1pts = []
            f2pts = []
            for k in ('xmin', 'ymin', 'xmax', 'ymax'):
                f1pts.append(int(round(result[k])))
                if pair:
                    f2pts.append(int(round(pair[k])))

            f1pts.extend([result['id'], result['image_track']])
            if pair:
                f2pts.extend([pair['id'], pair['image_track']])
            results.append(dict(
                # TODO: tell eric to add 'CoGe' to the start of his links.
                link=result['link'],
                annotation = anno,
                # TODO has_pair
                has_pair= bool(pair),
                color=(result['color'] or (pair and pair['color'])).replace('#', '0x'),
                features={
                    'key%i' % result['image_id']: f1pts,
                    'key%i' % (pair and pair['image_id'] or 999): f2pts}
            ))
	if not results:
	    results.append(dict(
		annotation = "No results found"
	    ))
        web.header('Content-type', 'text/javascript')
        return simplejson.dumps({'resultset':results})

urls = (
    # the first pattern is always the sqlite db name. e.g.: /GEVo_WxUonWBr/info
    '/([^\/]+)/info/', 'info',
    '/([^\/]+)/follow/', 'follow',
    '/([^\/]+)/query/', 'query',
)

app = web.application(urls, locals())
application = app.wsgifunc()

if __name__ == "__main__":
    app.run()


text:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Skeddly.Constants
{
	public static class ActionExecutionLogMoreTypes
	{
		public const string More = "more";
		public const string MoreLater = "more-later";
		public const string None = "none";
	}
}

redpajama_set_name: RedPajamaGithub


text:
demoModule.controller('RateLimitingCtrl', [ '$scope', '$timeout', 'apiService', function ($scope, $timeout, $apiService) {
    var pollingPromise;
    var pattern = new RegExp("value([0-9]+)");

    $scope.success = false;
    $scope.error = false;
    $scope.ratelimiting = {
        insertionDisabled: true,
        openConfig: true,
        openData: false,
        threshold: 5,
        ttl: 10,
        value: "value1"
    };

    $scope.setThreshold = function () {
        $apiService.setRateLimitingThreshold($scope.ratelimiting.threshold,
            function (data, status) {
                $scope.ratelimiting.insertionDisabled = false;
                $scope.ratelimiting.openConfig = false;
                $scope.ratelimiting.openData = true;
                $apiService.createSuccess($scope)(data, status);
            },
            function (data, status) {
                $scope.ratelimiting.insertionDisabled = true;
                $scope.ratelimiting.openConfig = true;
                $scope.ratelimiting.openData = true;
                $apiService.createError($scope)(data, status);
            })
    };

    $scope.insertValueAndPoll = function () {
        $apiService.rateLimitingInsertValue($scope.ratelimiting.value, $scope.ratelimiting.ttl,
            function (data, status) {
                cleanPolling();
                pollingPromise = $timeout(fetchRateLimits, 10);
                incrementInputValue();
                $apiService.createSuccess($scope)(data, status);
            },
            function (data, status) {
                cleanPolling();
                $apiService.createError($scope)(data, status);
            }
        );
    };

    function fetchRateLimits() {
        $apiService.fetchRateLimits($apiService.createSuccess($scope), $apiService.createError($scope));
        pollingPromise = $timeout(fetchRateLimits, 1000);
    }

    function cleanPolling() {
        if (pollingPromise) {
            $timeout.cancel(pollingPromise);
        }
    }

    function incrementInputValue() {
        if (pattern.test($scope.ratelimiting.value)) {
            var nextVal = Math.floor(pattern.exec($scope.ratelimiting.value)[1]) + 1;
            console.log(" nextVal = " + nextVal);
            console.log(" $scope.ratelimiting.value = " + $scope.ratelimiting.value);
            $scope.ratelimiting.value = "value" + nextVal;
        }
    }

    $scope.stopPolling = function () {
        cleanPolling();
        delete $scope.httpResponse;
        delete $scope.success;
        delete $scope.error;
    };

} ]);


text:
<TITLE>Review for Outbreak (1995)</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/ramr.css">

Outbreak (1995)

reviewed by
Michael J. Legeros

                                    OUTBREAK
                       A film review by Michael John Legeros
                        Copyright 1995 Michael John Legeros

(WB)
Directed by     Wolfgang Petersen (IN THE LINE OF FIRE, DAS BOOT)
Written by      Laurence Dworet, Robert Roy Pool
Cast            Dustin Hoffman, Rene Russo, Morgan Freeman, Kevin Spacey,
                Cuba Gooding Jr., Donald Sutherland
MPAA Rating     "R" (presumably for language)
Running Time    127 minutes

==

     If we learned anything during those lazy Saturday afternoon sci-fi
film festivals of our youth, it's that there's nothing more fun than
watching the end of the world.  WAR OF THE WORLDS ... INVASION OF THE
BODY SNATCHERS ... THE DAY THE EARTH CAUGHT FIRE ... great disaster flicks
from an era when our fears were fueled by the space race and the arms
race.  Decades later, those fears are still there. Only now we've
traded our space suits for bio suits.

     In the super-creepy OUTBREAK--which has nothing to do with the
Richard Preston bestseller CRISIS IN THE HOT ZONE--the threat is the
deadly Motaba virus, which has spread from the African jungle to the
sleepy California community Cedar Creek.  The disease is 100%
contagious and 100% fatal.  The victims bleed from the inside out.

     Only one scientist (Dustin Hoffman) knows how bad the situation
really is, and, of course, he's the lone voice of logic against every
possible cliche, from the ex-wife colleague (Rene Russo) to the
skeptical military commander (Morgan Freeman).  He even has a
wet-behind-the-ears sidekick!

     Director Wolfgang Petersen turns the screws very effectly, even if
he paces the film like a sequel to SPEED.  The are very few pauses in
the first ninety minutes, so some scenes seem rushed.  No problem,
There's still *plenty* of paranoia to go around.  The sight of soliders
barricading a quarantined town is something to see.  As is a
single-take tour of the U.S. Army Medical Research Institute for
Infectious Diseases.  The best, by far, is a sequence showing airborne
microbes spewing from a coughing patron in a movie theater!

     Tissue, anyone?

     The whole thing works very well until the final reel, at which
point the film falls apart.  Credit a pair of tacked-on helicopter
chases and a completely unnecessary confrontation between Morgan
Freeman and Donald Sutherland (as a goofy general).  The added action
is pretty stupid, and it almost causes an important plot point to get
glossed over.  But who am I to argue with audience testers?

CAMEO NOTE:  Watch for an unbilled appearance by J. T. Walsh, who wanders
             through a single scene at the White House.  Is there a rule
             that requires him to appear in *every* thriller involving a
             conspiracy?

BOTTOM LINE:  Contagious fun with a lousy ending.

Grade: B-

--
Michael J. Legeros
Raleigh, North Carolina

.

The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).

The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.

Please direct comments/criticisms of the review to relevant newsgroups.

Broken URLs inthe reviews are the responsibility of the author.

The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.

Related links: index of all rec.arts.movies.reviews reviews


text:
FROM openjdk:8-jdk
MAINTAINER Apache BookKeeper <dev@bookkeeper.apache.org>

ENV BK_JOURNALDIR=/opt/bookkeeper/data/journal
ENV BK_LEDGERDIR=/opt/bookkeeper/data/ledgers
ENV BK_ZKCONNECTSTRING=zookeeper1,zookeeper2,zookeeper3

RUN apt-get update && apt-get install -qy wget supervisor bash \
    && echo "dash dash/sh boolean false" | debconf-set-selections \
    && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash

RUN mkdir /tarballs
WORKDIR /tarballs
RUN wget -nv https://archive.apache.org/dist/zookeeper/bookkeeper/bookkeeper-4.0.0/binaries/bookkeeper-server-4.0.0-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/zookeeper/bookkeeper/bookkeeper-4.1.0/bookkeeper-server-4.1.0-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/zookeeper/bookkeeper/bookkeeper-4.2.0/bookkeeper-server-4.2.0-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/zookeeper/bookkeeper/bookkeeper-4.2.1/bookkeeper-server-4.2.1-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/zookeeper/bookkeeper/bookkeeper-4.2.2/bookkeeper-server-4.2.2-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/zookeeper/bookkeeper/bookkeeper-4.2.3/bookkeeper-server-4.2.3-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/zookeeper/bookkeeper/bookkeeper-4.3.0/bookkeeper-server-4.3.0-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.2.4/bookkeeper-server-4.2.4-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.3.0/bookkeeper-server-4.3.0-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.3.1/bookkeeper-server-4.3.1-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.3.2/bookkeeper-server-4.3.2-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.4.0/bookkeeper-server-4.4.0-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.5.0/bookkeeper-server-4.5.0-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.5.1/bookkeeper-server-4.5.1-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.6.0/bookkeeper-server-4.6.0-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.6.1/bookkeeper-server-4.6.1-bin.tar.gz{,.sha1,.md5,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.6.2/bookkeeper-server-4.6.2-bin.tar.gz{,.sha1,.asc}
RUN wget -nv https://archive.apache.org/dist/bookkeeper/bookkeeper-4.7.0/bookkeeper-server-4.7.0-bin.tar.gz{,.sha1,.asc}
RUN wget -nv https://archive.apache.org/dist/incubator/pulsar/pulsar-1.21.0-incubating/apache-pulsar-1.21.0-incubating-bin.tar.gz{,.asc}
RUN wget -nv https://dist.apache.org/repos/dist/release/bookkeeper/KEYS
RUN wget -nv http://svn.apache.org/repos/asf/zookeeper/bookkeeper/dist/KEYS?p=1620552 -O KEYS.old
RUN wget -nv https://archive.apache.org/dist/incubator/pulsar/KEYS -O KEYS.pulsar

RUN mkdir -p /etc/supervisord/conf.d && mkdir -p /var/run/supervisor && mkdir -p /var/log/bookkeeper
ADD conf/supervisord.conf /etc/supervisord.conf
ADD scripts/install-all-tarballs.sh /install-all-tarballs.sh
ADD scripts/install-tarball.sh /install-tarball.sh
ADD scripts/install-pulsar-tarball.sh /install-pulsar-tarball.sh
RUN bash /install-all-tarballs.sh && bash /install-pulsar-tarball.sh && rm -rf /tarballs

WORKDIR /
ADD scripts/update-conf-and-boot.sh /update-conf-and-boot.sh
CMD ["/update-conf-and-boot.sh"]


text:
这是一个基于SpringMVC的文件上传封装,通过配置文件配置上传路径,上传文件只需save()一下,对图片文件可压缩,剪切等操作。

### 基于spring mvc 的文件上传实体类

内部包含MultipartFile

示例:

```
@RequestMapping(value = "/testUpload.html", method = RequestMethod.POST)
public ModelAndView testUploadAction(
  @RequestParam(value = "photo", required = false) MultipartFile file,
  ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) {
  if( !UploadUtil.isNull(file) ) {
    UploadEntity uploadEntity = new UploadEntityImp(file);

    try {
      //上传文件
      System.out.println(uploadEntity.savePhoto(true));
      //获取缩略图
      System.out.println(uploadEntity.getSmallPhoto(160, 160));
    } catch (Exception e) {
      e.printStackTrace();
      printLog(e);
    }
  }
  return createModelAndView("WeCharTest/testUpload", modelMap);
}
```

### 数组方式(批量上传):

  1. @RequestParam(value = "files", required = false) List<MultipartFile> files

  2. @RequestParam(value = "photos", required = false) MultipartFile[] files

  3. MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
     List<MultipartFile> files = multipartRequest.getFiles("files");

```

  @RequestMapping(value = "/testUpload.html", method = RequestMethod.POST)
  public ModelAndView testUploadAction(
  		@RequestParam(value = "photos", required = false) MultipartFile[] files,
  		ModelMap modelMap,
  		HttpServletRequest request, HttpServletResponse response) {

  	try {
  		UploadEntity uploadEntity = null;
 		for (MultipartFile file : files) {
  			if (!UploadUtil.isNull(file)) {
  				uploadEntity = new UploadEntityImp(file);
				 //上传文件
  				System.out.println(uploadEntity.savePhoto(true));
				//获取缩略图
  				System.out.println(uploadEntity.getSmallPhoto(160, 160));
  			}
  		}
  	} catch (Exception e) {
  		e.printStackTrace();
  	}

  	return createModelAndView("WeCharTest/testUpload", modelMap);
  }
```

### 删除图片:

   1. UploadUtil.deleteFile( str );
   2. 兼容旧版:
	if( !UploadUtil.deleteFile( str ) ) {
		UploadUtil.deleteWebFile(request, str);
	}

### WEB地址文件加载到本地保存

示例:
```
UploadEntity uploadEntity = new DownloadEntityImp(http://....;);
System.out.println(uploadEntity.savePhoto(true));
System.out.println(uploadEntity.getSmallPhoto(160, 160));
```


text:
using System;
using FluentAssertions;
using Neutronium.Core.WebBrowserEngine.JavascriptObject;
using Tests.Infra.WebBrowserEngineTesterHelper.Context;
using Tests.Infra.WebBrowserEngineTesterHelper.Windowless;
using Xunit;
using Xunit.Abstractions;
using System.Linq;
using FsCheck;
using FsCheck.Xunit;
using System.Collections.Generic;
using Neutronium.Core.Infra.Reflection;

namespace Tests.Universal.WebBrowserEngineTests
{
    public abstract class JavascriptFactoryBulk_Tests : TestBase
    {
        protected JavascriptFactoryBulk_Tests(IBasicWindowLessHTMLEngineProvider testEnvironment, ITestOutputHelper output)
                        : base(testEnvironment, output)
        {
            Arb.Register<TestDataGenerator>();
        }

        protected abstract bool SupportStringEmpty { get; }

        public class TestDataGenerator
        {
            private static Gen<DateTime> DateTimeGenerator =>
                Gen.zip3(Gen.Choose(1800, 2020), Gen.Choose(0, 365), Gen.zip(Gen.Choose(0, 24), Gen.Choose(0, 3600)))
                   .Select(t => new DateTime(t.Item1, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddDays(t.Item2).AddHours(t.Item3.Item1).AddSeconds(t.Item3.Item2));

            private static Gen<T> DefaultGenerator<T>() => Arb.From<T>().Generator;

            private static Gen<object> DefaultObjectGenerator<T>() => DefaultGenerator<T>().Select(t => (object)t);

            private static Gen<object> ObjectGenerator
                => Gen.OneOf(DefaultObjectGenerator<Boolean>(), DefaultObjectGenerator<int>(), DefaultObjectGenerator<double>(),
                                    DefaultGenerator<string>().Where(s => !string.IsNullOrEmpty(s)).Select(t => (object)t),
                                    DateTimeGenerator.Select(t => (object)t));

            public static Arbitrary<DateTime> ArbitraryDateTime() => Arb.From(DateTimeGenerator);

            public static Arbitrary<object> ArbitraryObject() => Arb.From(ObjectGenerator);
        }

        private IJavascriptObject Get(object @object)
        {
            var code = JavascriptNamer.GetCreateExpression(@object);
            return Factory.CreateFromExcecutionCode(new[] { code }).Single();
        }

        private List<object> GetBack(List<object> @objects)
        {
            return Test(() =>
            {
                var jvos = Factory.CreateFromExcecutionCode(@objects.Select(JavascriptNamer.GetCreateExpression));
                return jvos.Select((jvo, i) => ConvertBack(jvo, @objects[i].GetType())).ToList();
            });
        }

        [Theory]
        [InlineData(false)]
        [InlineData(true)]
        [InlineData(10)]
        [InlineData(0.5D)]
        [InlineData(-1)]
        [InlineData(99999.95)]
        [InlineData(2.333333333)]
        [InlineData(-0.66666666666666663)]
        [InlineData(1.3333333333333333)]
        [InlineData(double.NegativeInfinity)]
        [InlineData("tititi")]
        [InlineData("\\")]
        [InlineData("\n")]
        [InlineData("\r\n")]
        [InlineData("\r")]
        [InlineData("'")]
        public void CreateBasics_BasicTypes_Returns_Correct_Value(object value)
        {
            TestConvertion(value);
        }

        [Fact]
        public void CreateBasics_EmptyString_Returns_Correct_Value()
        {
            if (!SupportStringEmpty)
                return;

            TestBasicConvertion(string.Empty);
        }

        [Fact]
        public void CreateBasics_Double_Epsilon_Returns_Correct_Value()
        {
            var epsilon = Double.Epsilon;
            TestBasicConvertion(epsilon);
        }

        private void TestBasicConvertion<T>(T value)
        {
            Test(() =>
            {
                bool ok = Converter.GetSimpleValue(Get(value), out var res, typeof(T));
                ok.Should().BeTrue();
                res.Should().Be(value);
            });
        }

        private void TestConvertion(object value)
        {
            Test(() =>
            {
                var ok = Converter.GetSimpleValue(Get(value), out var res, value.GetType());
                ok.Should().BeTrue();
                res.Should().NotBeNull();
                res.Should().Equals(value);
            });
        }

        [Fact]
        public void CreateBasics_Decimal_Create_Correct_Objects_Fixed_Value()
        {
            var value = 7.9228162495817593524129366018M;
            Test(() =>
            {
                var res = ConvertBack(value);
                res.Should().Equals(value);
            });
        }

        [Property]
        public Property CreateBasics_Int_Create_Correct_Objects()
        {
            return CreateBasics_Returns_Correct_Value<int>();
        }

        [Property(Skip = "Decimal precision is not supported")]
        public Property CreateBasics_Decimal_Create_Correct_Objects()
        {
            return CreateBasics_Returns_Correct_Value<decimal>();
        }

        [Property]
        public Property CreateBasics_Double_Create_Correct_Objects()
        {
            return CreateBasics_Returns_Correct_Value<double>();
        }

        [Property]
        public Property CreateBasics_DateTime_Create_Correct_Objects()
        {
            return CreateBasics_Returns_Correct_Value<DateTime>();
        }

        [Property]
        public Property CreateBasics_String_Create_Correct_Objects()
        {
            Func<string, bool> when = Always<string>;
            if (!SupportStringEmpty)
                when = StringIsNotEmpty;

            return CreateBasics_Returns_Correct_Value(when);
        }

        private static bool Always<T>(T value) => true;

        private static bool StringIsNotEmpty(string value) => value != String.Empty;

        public Property CreateBasics_Returns_Correct_Value<T>(Func<T, bool> when = null)
        {
            when = when ?? Always;
            return Prop.ForAll<T>(value =>
                Test(() =>
                {
                    var res = ConvertBack(value);
                    return EqualityComparer<T>.Default.Equals(res, value);
                }).When(when(value))
            );
        }

        [Property]
        public Property CreateBasics_Returns_Correct_Value_With_List()
        {
            return Prop.ForAll<object[]>(value =>
            {
                var converted = GetBack(value.ToList());
                return converted.SequenceEqual(value);
            });
        }

        private T ConvertBack<T>(T value)
        {
            if (value == null)
                return default(T);

            Converter.GetSimpleValue(Get(value), out var res, typeof(T));
            return (T)res;
        }

        private object ConvertBack(IJavascriptObject value, Type targetType)
        {
            Converter.GetSimpleValue(value, out var res, targetType);
            return res;
        }

        public static IEnumerable<object[]> DateTimes
        {
            get
            {
                yield return new object[] { new DateTime(1974, 02, 26, 01, 02, 03, DateTimeKind.Utc) };
                yield return new object[] { new DateTime(1967, 01, 23, 0, 0, 0, DateTimeKind.Utc) };
                yield return new object[] { new DateTime(1979, 04, 03, 18, 59, 37, DateTimeKind.Utc) };
                yield return new object[] { new DateTime(1941, 09, 04, 19, 05, 31, DateTimeKind.Utc) };
                yield return new object[] { new DateTime(1824, 11, 10, 03, 47, 27, DateTimeKind.Utc) };
                yield return new object[] { new DateTime(1893, 11, 12, 14, 59, 11, DateTimeKind.Utc) };
            }
        }

        [Theory]
        [MemberData(nameof(DateTimes))]
        public void CreateBasics_DateTime_Create_Correct_Objects_Fixed_Values(DateTime date)
        {
            Test(() =>
            {
                var dateJavascript = Get(date);
                var ok = Converter.GetSimpleValue(dateJavascript, out var res);
                ok.Should().BeTrue();
                res.Should().Be(date);
            });
        }

        [Fact]
        public void CreateBasics_Uint_Create_Correct_Object()
        {
            Test(() =>
            {
                var maxuint = Get(uint.MaxValue);
                var ok = Converter.GetSimpleValue(maxuint, out var res, typeof(UInt32));
                ok.Should().BeTrue();
                res.Should().Be(uint.MaxValue);
            });
        }

        [Property]
        public Property CreateObjects_creates_correct_number_of_objects()
        {
            return ForObjectsCreationOption((option) =>
            {
                var res = Factory.CreateObjects(option).ToList();
                return res.Count == option.TotalNumber;
            });
        }

        [Property]
        public Property CreateObjects_creates_objects_with_ids()
        {
            return ForObjectsCreationOption((option) =>
            {
                var res = Factory.CreateObjects(option).ToList();
                var first = res.FirstOrDefault();

                return (first == null) || res.Select(GetId).SequenceEqual(Enumerable.Range(GetId(first), res.Count));
            });
        }

        [Property]
        public Property CreateObjects_creates_objects_with_correct_readwrite_flag()
        {
            return ForObjectsCreationOption((option) =>
            {
                var res = Factory.CreateObjects(option);

                var expectedReadOnlyFlags = Enumerable.Repeat(ObjectObservability.None, option.NoneObservableNumber)
                    .Concat(Enumerable.Repeat(ObjectObservability.ReadOnly, option.ReadOnlyNumber))
                    .Concat(Enumerable.Repeat(ObjectObservability.Observable, option.ObservableNumber))
                    .Concat(Enumerable.Repeat(ObjectObservability.ReadOnlyObservable, option.ReadOnlyObservableNumber));

                return res.Select(GetReadOnly).SequenceEqual(expectedReadOnlyFlags);
            });
        }

        private Property ForObjectsCreationOption(Func<ObjectsCreationOption, bool> assertion)
        {
            return Prop.ForAll(ObjectsCreationOptionGen, (objectsCreationOption) => Test(() => assertion(objectsCreationOption)));
        }

        private static int GetId(IJavascriptObject javascriptObject)
        {
            return javascriptObject.GetValue(NeutroniumConstants.ObjectId).GetIntValue();
        }

        private static ObjectObservability GetReadOnly(IJavascriptObject javascriptObject)
        {
            return (ObjectObservability)javascriptObject.GetValue(NeutroniumConstants.ReadOnlyFlag).GetIntValue();
        }

        public static Arbitrary<ObjectsCreationOption> ObjectsCreationOptionGen
        {
            get
            {
                var gen = Gen.Four(Gen.Choose(0, 5)).Select(t => new ObjectsCreationOption(t.Item1, t.Item2, t.Item3, t.Item4));
                return Arb.From(gen);
            }
        }
    }
}


text:
module.exports = {
  path: 'chat',
  getComponent(location, cb) {
    require.ensure([], (require) => {
      cb(null, require('./components/ChatApp.jsx'))
    })
  }
}


text:
package com.unsis.calificaciones.repository;

import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.unsis.calificaciones.model.Coordinador;

/**
 * {@link CrudRepository} del {@link Coordinador}
 *
 */
@Repository
@Transactional
public interface CoordinadorRepository extends CrudRepository<Coordinador, Integer> {

}


text:
-   [`latest`, `cli` (*latest/Dockerfile*)](https://github.com/diegomarangoni/docker-hhvm/blob/release/cli/Dockerfile)
-   [`fastcgi` (*latest/fastcgi/Dockerfile*)](https://github.com/diegomarangoni/docker-hhvm/blob/release/fastcgi/Dockerfile)
-   [`src`, `src-cli` (*src/Dockerfile*)](https://github.com/diegomarangoni/docker-hhvm/blob/release/src-cli/Dockerfile)
-   [`src-fastcgi` (*src/fastcgi/Dockerfile*)](https://github.com/diegomarangoni/docker-hhvm/blob/release/src-fastcgi/Dockerfile)

# What is HHVM?

HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP. HHVM uses a just-in-time (JIT) compilation approach to achieve superior performance while maintaining the development flexibility that PHP provides.

> [hhvm.com](http://hhvm.com)

![logo](https://raw.githubusercontent.com/diegomarangoni/docker-hhvm/master/hhvm.png)

# How to use this image.

## With `docker run`

For Hack/PHP projects run through the command line interface (CLI), you can do the following.

### Create a `Dockerfile` in your Hack/PHP project

    FROM diegomarangoni/hhvm:cli
    COPY . /usr/src/myapp
    WORKDIR /usr/src/myapp
    CMD [ "hhvm", "./your-script.php" ]

Then, run the commands to build and run the Docker image:

    docker build -t my-app .
    docker run -it --rm --name my-running-app my-app

I recommend that you add a custom `php.ini` configuration. `COPY` it into `/etc/hhvm/php.ini` by adding one more line to the Dockerfile above and running the same commands to build and run:

    FROM diegomarangoni/hhvm:cli
    COPY config/php.ini /etc/hhvm/php.ini

You can grab a fresh copy of `php.ini` from inside the image.

### Run a single Hack/PHP script

For many simple, single file projects, you may find it inconvenient to write a complete `Dockerfile`. In such cases, you can run a Hack/PHP script by using the image directly:

    docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp diegomarangoni/hhvm:cli hhvm your-script.php

## With alias

### Create a alias

    alias hhvm="docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp diegomarangoni/hhvm:cli hhvm"

### Then test it

    hhvm --version

### And finally...

    hhvm your-script.php

And you can also add a custom `php.ini` file, just by mounting it as a volume:

    docker run -it --rm --name my-running-script -v /path/to/php.ini:/etc/hhvm/php.ini -v "$PWD":/usr/src/myapp -w /usr/src/myapp diegomarangoni/hhvm:cli hhvm your-script.php

And the alias should look like:

    alias hhvm="docker run --rm -v /path/to/php.ini:/etc/hhvm/php.ini -v "$PWD":/usr/src/myapp -w /usr/src/myapp diegomarangoni/hhvm:cli hhvm"

## With a web server

You can run a fastcgi server that will work within a web server like nginx or apache:

    docker run -it diegomarangoni/hhvm:fastcgi

By default, the image expose the port 9000, you can change that by editing `/etc/hhvm/server.ini`.

And if you want to add a custom `php.ini` file:

    docker run -it \
        -v /path/to/php.ini:/etc/hhvm/php.ini \
        diegomarangoni/hhvm:fastcgi


text:
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

var _crypto = require("crypto");

var _crypto2 = _interopRequireDefault(_crypto);

var _path = require("path");

var _path2 = _interopRequireDefault(_path);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var FUNCTIONS_THAT_DEFINE_MESSAGES = ["defineMessages"];
var IDENTIFIERS_THAT_CONTAIN_MESSAGES = ["defaultMessages"];

var i18nIdHashing = function i18nIdHashing(_ref) {
  var t = _ref.types;

  var referencesImport = function referencesImport(pathNode, mod, importedNames) {
    if (pathNode.isSequenceExpression()) {
      var _ret = function () {
        var sequenceExpressionValue = pathNode.node.expressions[pathNode.node.expressions.length - 1];

        if (sequenceExpressionValue.property && sequenceExpressionValue.property.name) {
          return {
            v: importedNames.some(function (name) {
              return name === sequenceExpressionValue.property.name;
            })
          };
        }
      }();

      if ((typeof _ret === "undefined" ? "undefined" : _typeof(_ret)) === "object") return _ret.v;
    } else if (pathNode.isIdentifier() || pathNode.isJSXIdentifier()) {
      return importedNames.some(function (name) {
        return pathNode.referencesImport(mod, name);
      });
    }
    return false;
  };

  /**
   * @param  {Object}  opts - A Babel options object
   *
   * @return {Object}  Returns the module name to search for imports of. Defaults to `react-intl`
   */
  var getModuleSourceName = function getModuleSourceName(opts) {
    return opts.moduleSourceName || "react-intl";
  };

  /**
   * @param  {Object}  opts - A Babel options object
   *
   * @return {Object}  Returns the Identifier name to search for calls of. Defaults to
   * `defaultMessages`
   */
  var getIdentifiersThatContainMessages = function getIdentifiersThatContainMessages(opts) {
    return opts.varsContainingMessages || IDENTIFIERS_THAT_CONTAIN_MESSAGES;
  };

  /**
   * @param  {Object}  opts - A Babel options object
   *
   * @return {Object}  Returns the Identifier name to search for calls of. Defaults to
   * `defaultMessages`
   */
  var getIdentifiersThatDefineMessages = function getIdentifiersThatDefineMessages(opts) {
    return opts.functionsDefiningMessages || FUNCTIONS_THAT_DEFINE_MESSAGES;
  };

  /**
   * @param  {String}  hashKey - A string used to generate a SHA1 hash
   *
   * @return {Object}  A SHA1 hash of the hashKey
   */
  var getHash = function getHash(hashKey) {
    return _crypto2.default.createHash("sha1").update(hashKey || "").digest("hex");
  };

  /**
   * @param  {Object}  filePath - The path to the file Babel is running over
   *
   * @return {Object}  Returns the path relative to the cwd
   */
  var getRelativeFilePath = function getRelativeFilePath(filePath) {
    return _path2.default.relative(process.cwd(), filePath);
  };

  /**
   * @param  {Object}  filePath - The path to the file Babel is running over
   *
   * @return {Object}  A SHA1 hash of the path relative to the cwd
   */
  var getFileHash = function getFileHash(filePath) {
    return getHash(getRelativeFilePath(filePath));
  };

  /**
   * @param  {ASTNode}  pathNode - An AST node representing a POJO.
   *
   * @return {Object}  A POJO representation of an AST node
   */
  var generateObjectFromNode = function generateObjectFromNode(pathNode) {
    return pathNode.get("properties").map(function (prop) {
      var isKeyIdentifier = prop.get("key").node.type === "Identifier";
      var objectKey = isKeyIdentifier ? prop.get("key").node.name : prop.get("key").node.value;

      return [objectKey, prop.get("value").node.value];
    }).reduce(function (previousValue, property) {
      previousValue[property[0]] = property[1];
      return previousValue;
    }, {});
  };

  var processMessage = function processMessage(fileHash, messageObj) {
    if (!(messageObj[1] && messageObj[1].isObjectExpression())) {
      throw messageObj.buildCodeFrameError("[babel-plugin-i18n-id-hashing] " + messageObj.node.name + "() must be called with message " + "descriptors defined as object expressions.");
    }

    var objectIdProperty = messageObj[1].get("properties")
    // Returns all an array for keyNode, ValueNode pairs
    .map(function (prop) {
      return [prop.get("key"), prop.get("value")];
    })
    // Returns [[idKeyNode, idValueNode]]
    .filter(function (prop) {
      // TODO: Find out why does this happens and if this is the correct solution.
      // All "value" attributes become "name" when interpreting a JSX file.
      var value = prop[0].node.value;
      var name = prop[0].node.name;

      return (value || name) === "id";
    })
    // Returns [idKeyNode, idValueNode]
    .pop()
    // Retuens idValueNode
    [1]; //eslint-disable-line no-unexpected-multiline

    var objectProperties = generateObjectFromNode(messageObj[1]);
    var generatedMessageId = fileHash + "." + objectProperties.id;

    // TODO: Error if the object key and the id property are mismatched

    // Replace the Object's key with the generatedMessageId
    var objectKey = messageObj[0];
    objectKey.replaceWith(t.stringLiteral(generatedMessageId));
    // Replace the Object's `id` property with the generatedMessageId
    objectIdProperty.replaceWith(t.stringLiteral(generatedMessageId));
  };

  return {
    visitor: {
      CallExpression: function CallExpression(pathNode, state) {
        var moduleSourceName = getModuleSourceName(state.opts);
        var callee = pathNode.get("callee");

        // Return if the call expression is either
        //   - not found in a file that imports `react-intl`
        //   - is not a call to one of the FUNCTIONS_THAT_DEFINE_MESSAGES
        var identifierWhitelist = getIdentifiersThatDefineMessages(state.opts);
        if (referencesImport(callee, moduleSourceName, identifierWhitelist) === false) {
          return;
        }

        var fileHash = getFileHash(state.file.opts.filename);

        // FUNCTIONS_THAT_DEFINE_MESSAGES functions are of the form function(Object messages)
        // https://github.com/yahoo/react-intl/blob/2fdf9e7e695fa04673573d72ab6265f0eef3f98e/src/react-intl.js#L25-L29
        pathNode.get("arguments")[0].get("properties").map(function (prop) {
          return [prop.get("key"), prop.get("value")];
        }).forEach(processMessage.bind(null, fileHash));
      },

      // TODO: if this gets called before CallExpression Visitor - register a search for that key
      MemberExpression: function MemberExpression(pathNode, state) {
        // TODO: register messageName when ExpressionStatement is called
        if (!(getIdentifiersThatContainMessages(state.opts).indexOf(pathNode.node.object.name) !== -1)) {
          return;
        }

        // Ensure the node is not processed multiple times as other plugins modify the tree. This
        // should be handled by pathNode.skip() but there is a bug
        // https://phabricator.babeljs.io/T7117
        if (pathNode.node.i18nHash) {
          return;
        } else {
          pathNode.node.i18nHash = true;
        }

        var fileHash = getFileHash(state.file.opts.filename);
        var accessor = pathNode.get("property");

        if (accessor.type === "StringLiteral") {
          accessor.replaceWith(t.stringLiteral(fileHash + "." + accessor.node.value));
        } else {
          // Convert xMemberExpression.identifier -> xMemberExpression[identifier]
          pathNode.node.computed = true;
          // Add the hash to the result of any Identifier or Expression
          accessor.replaceWith(t.binaryExpression("+", t.stringLiteral(fileHash), accessor.node));
        }
      }
    }
  };
};

exports.default = i18nIdHashing;


text:
module OmniAuth
  module Strategies
    class Gambade
      include OmniAuth::Strategy

      #option :secret
      option :auth_redirect
      option :name, :gambade # Required property by OmniAuth::Strategy

      option :host, nil
      option :port, nil
      option :path, nil
      option :ssl,  false
      option :service_validate_url, '/serviceValidate'
      option :login_url,            '/login'
      option :logout_url,           '/logout'
      # Make all the keys configurable with some defaults set here
      option :uid_field,            'user'
      option :name_key,             'name'
      option :email_key,            'email'
      option :first_name_key,       'first_name'
      option :last_name_key,        'last_name'
      option :location_key,         'location'
      option :image_key,            'image'
      option :phone_key,            'phone'
      # receive parameters from the strategy declaration and save them
      #def initialize(app, secret, auth_redirect, options = {})
      #  #gambade_accounts={}
      #  #gambade_accounts[:secret] = secret
      #  #gambade_accounts[:auth_redirect] = auth_redirect
      #  @secret = secret
      #  @auth_redirect = auth_redirect
      #  super(app, :gambade_accounts, options)
      #end

      # redirect to the GambadeAccounts website
      def request_phase
        r = Rack::Response.new
        r.redirect "http://localhost:3000/login"
        r.finish
      end

      def callback_phase
        uid, username, token = request.params["uid"], request.params["username"], request.params["token"]
        sha1 = Digest::SHA1.hexdigest("a mix of  #{@secret}, #{uid}, #{username}, #{avatar}")

        # check if the request comes from GambadeAccounts or not
        if sha1 == token
          @uid, @username = uid, username
          # OmniAuth takes care of the rest
          super
        else
          # OmniAuth takes care of the rest
          fail!(:invalid_credentials)
        end
      end

      # normalize user's data according to http://github.com/intridea/omniauth/wiki/Auth-Hash-Schema
      def auth_hash
        OmniAuth::Utils.deep_merge(super(), {
            'uid' => @uid,
            'user_info' => {
                'name'     => @username
            }
        })
      end
    end
  end
end


text:
#ifndef WebNotificationPermissionCallback_h
#define WebNotificationPermissionCallback_h

namespace blink {

// Callback object used for Web Notification permission requests.
class WebNotificationPermissionCallback {
public:
    virtual ~WebNotificationPermissionCallback() { }

    // Method to be invoked when the asynchronous permission request for the
    // ability to display Web Notifications has been completed.
    virtual void permissionRequestComplete(int32_t permissionStatus) = 0;
};

} // namespace blink

#endif


text:
package io.github.scrier.opus.duke.commander.state;

import static org.junit.Assert.*;
import io.github.scrier.opus.StateImpl;
import io.github.scrier.opus.TestHelper;
import io.github.scrier.opus.ClusterDistributorProcedureTestObj;
import io.github.scrier.opus.common.Shared;
import io.github.scrier.opus.common.data.BaseDataC;
import io.github.scrier.opus.common.nuke.CommandState;
import io.github.scrier.opus.duke.commander.BaseActiveObjectMock;
import io.github.scrier.opus.duke.commander.CommandProcedure;
import io.github.scrier.opus.duke.commander.Context;
import io.github.scrier.opus.duke.commander.DukeCommander;

import org.apache.logging.log4j.Level;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;

public class StateTest {

	private static TestHelper theHelper = TestHelper.INSTANCE;

	private HazelcastInstance instance;
	private long identity = theHelper.getNextLong();
	private long sagaID = theHelper.getNextLong();
	private Context theContext = Context.INSTANCE;
	private BaseActiveObjectMock theBaseAOC;
	@SuppressWarnings("rawtypes")
	private IMap theMap;
	private ClusterDistributorProcedureTestObj distributor;

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		theHelper.setLogLevel(Level.TRACE);
	}

	@Before
	public void setUp() throws Exception {
		instance = theHelper.mockHazelcast();
		theHelper.mockIdGen(instance, Shared.Hazelcast.COMMON_MAP_UNIQUE_ID, identity);
		theHelper.mockIdGen(instance, Shared.Hazelcast.COMMON_SAGA_ID, sagaID);
		theMap = theHelper.mockMap(instance, Shared.Hazelcast.BASE_NUKE_MAP);
		theBaseAOC = new BaseActiveObjectMock(instance);
		theBaseAOC.preInit();
		theContext.init(new DukeCommander(instance), theBaseAOC);
		distributor = theHelper.getRandomDistributor();
	}

	@After
	public void tearDown() throws Exception {
		theContext.shutDown();
	}

	@Test
	public void testConstructor() {
		State testObject = new StateImpl(distributor);
		assertEquals(distributor.getFolder(), testObject.getFolder());
		assertEquals(distributor.getCommand(), testObject.getCommand());
		assertEquals(distributor.getMaxUsers(), testObject.getMaxUsers());
		assertEquals(distributor.getPeakDelaySeconds(), testObject.getPeakDelaySeconds());
		assertEquals(distributor.getState(), testObject.getState());
		assertEquals(distributor.getTerminateID(), testObject.getTerminateID());
		assertEquals(distributor.getUserIncrease(), testObject.getUserIncrease());
		assertEquals(distributor.getState(), testObject.getState());
		assertEquals(distributor.isRepeated(), testObject.isRepeated());
		assertEquals(distributor.isNukesReady(), testObject.isNukesReady());
		assertEquals(distributor.isTimeoutActive(1123), testObject.isTimeoutActive(1123));
		assertEquals(distributor.ABORTED, testObject.ABORTED);
		assertEquals(distributor.COMPLETED, testObject.COMPLETED);
		assertEquals(distributor.CREATED, testObject.CREATED);
		assertEquals(distributor.PEAK_DELAY, testObject.PEAK_DELAY);
		assertEquals(distributor.RAMPING_DOWN, testObject.RAMPING_DOWN);
		assertEquals(distributor.RAMPING_UP, testObject.RAMPING_UP);
		assertEquals(distributor.TERMINATING, testObject.TERMINATING);
		assertEquals(distributor.WAITING_FOR_NUKE, testObject.WAITING_FOR_NUKE);
		assertEquals(distributor.CREATED, testObject.getState());
		assertEquals("StateImpl", testObject.getClassName());
	}

	@Test
	public void testInit() {
		State testObject = new StateImpl(distributor);
		testObject.init();
		assertEquals(testObject.CREATED, testObject.getState());
	}

	@Test
	public void testEvicted() {
		State testObject = new StateImpl(distributor);
		testObject.evicted(new BaseDataC(1,  2));
		assertEquals(testObject.ABORTED, testObject.getState());
	}

	@Test
	public void testRemoved() {
		State testObject = new StateImpl(distributor);
		testObject.removed(1234L);
		assertEquals(testObject.ABORTED, testObject.getState());
	}

	@Test
	public void testTimeout() {
		State testObject = new StateImpl(distributor);
		testObject.timeout(testObject.getTimerID());
		assertEquals(testObject.ABORTED, testObject.getState());
	}

	@Test
	public void testUpdated() {
		State testObject = new StateImpl(distributor);
		testObject.updated(new BaseDataC(1,  2));
		assertEquals(testObject.ABORTED, testObject.getState());
	}

	@Test
	public void testTimer() {
		State testObject = new StateImpl(distributor);
		testObject.startTimeout(25, 12345L);
		assertEquals(25, distributor.TimeoutTime);
		assertEquals(12345L, distributor.TimeoutTimerID);
		assertEquals(1, distributor.TimeoutCalls);
	}

	@Test
	public void testRegister() {
		State testObject = new StateImpl(distributor);
		testObject.registerProcedure(new CommandProcedure(1234L, "this is command"));
		assertFalse(theContext.getCommander().getProceduresToAdd(CommandProcedure.class).isEmpty());
	}

}


text:
TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'idme'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install idme

## Usage

api = IdMe::API.new('client_id','client_secret')
result = api.verify({first_name:'Colin, last_name:'Petruno'...})

if any new methods get added it should simply be

result = avi.newMethod({options_hash})

## Contributing

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. Create new Pull Request


text:
package com.phei.netty.frame.correct;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @author lilinfeng
 * @date 2014年2月14日
 * @version 1.0
 */
public class TimeServerHandler extends ChannelInboundHandlerAdapter {

	private int counter;

	@Override
	public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
		String body = (String) msg;
		System.out.println("The time server receive order : " + body + " ; the counter is : " + ++counter);
		String currentTime = "QUERY TIME ORDER".equalsIgnoreCase(body)
				? new java.util.Date(System.currentTimeMillis()).toString() : "BAD ORDER";
		currentTime = currentTime + System.getProperty("line.separator");
		ByteBuf resp = Unpooled.copiedBuffer(currentTime.getBytes());
		ctx.writeAndFlush(resp);
	}

	@Override
	public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
		ctx.close();
	}
}


text: const assert = require('chai').assert;


text:
		<link href='http://fonts.googleapis.com/css?family=Ubuntu:400,500' rel='stylesheet' type='text/css'>

		<title>uvCharts Test Arena</title>


text:
@interface NGDemoMoviePlayerViewController () {
    NSUInteger activeCount_;
}

@property (nonatomic, strong) UIView *containerView;
@property (nonatomic, strong) NGMoviePlayer *moviePlayer;
@property (nonatomic, strong) PSPushPopPressView *pppView;

@end

@implementation NGDemoMoviePlayerViewController

@synthesize containerView = _containerView;
@synthesize moviePlayer = _moviePlayer;
@synthesize pppView = _pppView;

////////////////////////////////////////////////////////////////////////
#pragma mark - UIViewController
////////////////////////////////////////////////////////////////////////

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor blackColor];
    self.moviePlayer = [[NGMoviePlayer alloc] initWithURL:[NSURL URLWithString:@"http://movies.apple.com/media/us/iphone/2009/ads/apple-iphone3gs-ad-multi_people-us-20091123_640x360.mov"]];
    self.containerView = [[UIView alloc] initWithFrame:self.view.bounds];
    self.containerView.backgroundColor = [UIColor underPageBackgroundColor];
    self.containerView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    self.pppView = [[PSPushPopPressView alloc] initWithFrame:CGRectMake(10.f, 10.f, self.containerView.bounds.size.width-20.f, self.containerView.bounds.size.height/2-20.f)];
    self.pppView.allowSingleTapSwitch = NO;
    self.pppView.pushPopPressViewDelegate = self;
    self.pppView.autoresizingMask = UIViewAutoresizingNone;

    self.moviePlayer.delegate = self;
    [self.moviePlayer addToSuperview:self.pppView withFrame:self.pppView.bounds];
    [self.containerView addSubview:self.pppView];

    [self.view addSubview:self.containerView];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}

////////////////////////////////////////////////////////////////////////
#pragma mark - NGMoviePlayer
////////////////////////////////////////////////////////////////////////

- (void)moviePlayer:(NGMoviePlayer *)moviePlayer didChangeControlStyle:(NGMoviePlayerControlStyle)controlStyle {
    if (controlStyle == NGMoviePlayerControlStyleInline) {
        [self.pppView moveToOriginalFrameAnimated:YES];
    } else {
        [self.pppView moveToFullscreenWindowAnimated:YES];
    }
}

- (void)moviePlayer:(NGMoviePlayer *)moviePlayer didChangePlaybackRate:(float)rate {
    NSLog(@"PlaybackRate chagned %f", rate);
}

- (void)moviePlayer:(NGMoviePlayer *)moviePlayer didFinishPlaybackOfURL:(NSURL *)URL {
    NSLog(@"Playbackfinished with Player: %@", moviePlayer);
}

- (void)moviePlayer:(NGMoviePlayer *)moviePlayer didChangeStatus:(AVPlayerStatus)playerStatus {
    NSLog(@"Status chaned: %d", playerStatus);
}

///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma mark -
#pragma mark PSPushPopPressViewDelegate
///////////////////////////////////////////////////////////////////////////////////////////////////

- (void)pushPopPressViewDidStartManipulation:(PSPushPopPressView *)pushPopPressView {
    if (activeCount_ == 0) {
        [UIView animateWithDuration:0.45f
                              delay:0.f
                            options:UIViewAnimationOptionBeginFromCurrentState
                         animations:^{
                             // note that we can't just apply this transform to self.view, we would loose the
                             // already applied transforms (like rotation)
                             self.containerView.transform = CGAffineTransformMakeScale(0.95, 0.95);
                             pushPopPressView.alpha = 0.35f;
                         } completion:nil];
    }

    activeCount_++;
}

- (void)pushPopPressViewDidFinishManipulation:(PSPushPopPressView *)pushPopPressView {
    if (activeCount_ > 0) {
        activeCount_--;

        if (activeCount_ == 0) {
            [UIView animateWithDuration:0.45f delay:0.f options:UIViewAnimationOptionBeginFromCurrentState animations:^{
                self.containerView.transform = CGAffineTransformIdentity;
                pushPopPressView.alpha = 1.f;
            } completion:nil];
        }
    }
}

- (void)pushPopPressViewWillAnimateToOriginalFrame:(PSPushPopPressView *)pushPopPressView duration:(NSTimeInterval)duration {
    self.moviePlayer.view.controlStyle = NGMoviePlayerControlStyleInline;
}

- (void)pushPopPressViewDidAnimateToOriginalFrame:(PSPushPopPressView *)pushPopPressView {
    // update autoresizing mask to adapt to width only
    pushPopPressView.autoresizingMask = UIViewAutoresizingNone;

    if (self.moviePlayer.view.placeholderView.alpha == 0.f) {
        [self.moviePlayer.view setControlsVisible:YES animated:YES];
    }
}

- (void)pushPopPressViewWillAnimateToFullscreenWindowFrame:(PSPushPopPressView *)pushPopPressView duration:(NSTimeInterval)duration {
    self.moviePlayer.view.controlStyle = NGMoviePlayerControlStyleFullscreen;
}

- (void)pushPopPressViewDidAnimateToFullscreenWindowFrame:(PSPushPopPressView *)pushPopPressView {
    // update autoresizing mask to adapt to borders
    pushPopPressView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;

    if (self.moviePlayer.view.placeholderView.alpha == 0.f) {
        [self.moviePlayer.view setControlsVisible:YES animated:YES];
    }

    [pushPopPressView layoutIfNeeded];
}

@end


text:
package parse

import (
	"github.com/gcrtnst/mugen/ast"
	"github.com/gcrtnst/mugen/spec"
	"github.com/gcrtnst/mugen/token"
)

type Parser struct {
	Spec *spec.Spec
}

func (p *Parser) Expr(s string) (ast.Expr, error) { return p.ExprFile(token.NewFile("", []byte(s))) }
func (p *Parser) ExprFile(f *token.File) (ast.Expr, error) {
	pp := p.p(f)
	expr := pp.parseExpr()
	pp.expect(token.EOF)
	return expr, pp.errl.err()
}

//-----------------------------------------------------------------------------

var internalP = &Parser{}

func Expr(s string) (ast.Expr, error)          { return internalP.Expr(s) }
func ExprFile(f *token.File) (ast.Expr, error) { return internalP.ExprFile(f) }


text:
include Chef::Asadmin

action :create do
  args = []
  args << 'create-instance'
  args << "--node #{new_resource.node_name}"
  args << "--lbenabled=#{new_resource.lbenabled}" if new_resource.lbenabled
  args << "--portbase=#{new_resource.portbase}" if new_resource.portbase
  args << "--checkports=#{new_resource.checkports}" if new_resource.checkports
  args << '--systemproperties' << encode_parameters(new_resource.systemproperties) unless new_resource.systemproperties.empty?
  args << new_resource.instance_name

  execute "create instance #{new_resource.instance_name}" do
    # execute should wait for asadmin to time out first, if it doesn't because of some problem, execute should time out eventually
    timeout node['glassfish']['asadmin']['timeout'] + 5
    user new_resource.system_user unless node.windows?
    group new_resource.system_group unless node.windows?
    command asadmin_command(args.join(' '))

    filter = pipe_filter(new_resource.instance_name, regexp: false, line: true)
    not_if "#{asadmin_command('list-instances')} #{new_resource.instance_name} | #{filter}", timeout: node['glassfish']['asadmin']['timeout'] + 5
  end
end

action :delete do
  args = []
  args << 'delete-instance'
  args << new_resource.instance_name

  execute "delete instance #{new_resource.instance_name}" do
    # execute should wait for asadmin to time out first, if it doesn't because of some problem, execute should time out eventually
    timeout node['glassfish']['asadmin']['timeout'] + 5
    user new_resource.system_user unless node.windows?
    group new_resource.system_group unless node.windows?
    command asadmin_command(args.join(' '))

    filter = pipe_filter(new_resource.instance_name, regexp: false, line: true)
    only_if "#{asadmin_command('list-instances')} #{new_resource.instance_name} | #{filter}", timeout: node['glassfish']['asadmin']['timeout'] + 5
  end
end

action :start do
  args = []
  args << 'start-local-instance'
  args << new_resource.instance_name

  execute "stop instance #{new_resource.instance_name}" do
    # execute should wait for asadmin to time out first, if it doesn't because of some problem, execute should time out eventually
    timeout node['glassfish']['asadmin']['timeout'] + 5

    user new_resource.system_user unless node.windows?
    group new_resource.system_group unless node.windows?
    command asadmin_command(args.join(' '))

    filter = pipe_filter("#{new_resource.instance_name}.*running", regexp: true)
    not_if "#{asadmin_command('list-instances')} #{new_resource.instance_name} | #{filter}", timeout: node['glassfish']['asadmin']['timeout'] + 5
  end
end

action :stop do
  args = []
  args << 'stop-local-instance'
  args << new_resource.instance_name

  execute "delete instance #{new_resource.instance_name}" do
    # execute should wait for asadmin to time out first, if it doesn't because of some problem, execute should time out eventually
    timeout node['glassfish']['asadmin']['timeout'] + 5

    user new_resource.system_user unless node.windows?
    group new_resource.system_group unless node.windows?
    command asadmin_command(args.join(' '))

    filter = pipe_filter("^#{new_resource.instance_name}.*running", regexp: true)
    only_if "#{asadmin_command('list-instances')} #{new_resource.instance_name} | #{filter}", timeout: node['glassfish']['asadmin']['timeout'] + 5
  end
end


text:
import { Selection, ValueFn} from 'd3-selection';

interface IProps {
	target: Selection<any, any, any, any>;
	evtHandler: ValueFn<any, any, any>;
}

export default class CheckBox {
	private target: Selection<any, any, any, any>;
	private evtHandler: ValueFn<any, any, any>;

	constructor({target, evtHandler}: IProps) {
		this.target = target;
		this.evtHandler = evtHandler;
	}

	render(): void {
		this.target.append('input')
			.attr('type', 'checkbox')
			.on('change', this.evtHandler);
	}
}


text:
module SpAuthentication
  module Configuration
    mattr_accessor :secret_key, :consumer_key, :access_token_header_name, :consumer_key_header_name, :signature_header_name, :print_debug, :stdout, :user_model, :access_token_attribute

    def configure
      set_default
      yield self
      self
    end

    def set_default
      self.access_token_header_name ||= "HTTP_ACCESSTOKEN"
      self.consumer_key_header_name ||= "HTTP_CONSUMERKEY"
      self.signature_header_name    ||= "HTTP_SIGNATURE"
      self.user_model               ||= "User"
      self.access_token_attribute   ||= "access_token"
    end

  end
end


text:
<?php

defined('BASEPATH') OR exit('No direct script access allowed');

class master_aktifitas extends MY_Model {

    public $sort_by = 'aktifitas_nama';
    public $sort_mode = 'asc';

    public function __construct() {
        parent::__construct("master_aktifitas");
        $this->primary_key = "aktifitas_id";
        $this->attribute_labels = array_merge_recursive($this->_continuously_attribute_label, $this->attribute_labels);
        $this->rules = array_merge_recursive($this->_continuously_rules, $this->rules);
    }

    protected $attribute_labels = array(
        "aktifitas_id" => array("aktifitas_id", "ID Aktifitas"),
        "kelompok_id" => array("kelompok_id", "ID Kelompok"),
        "dinas_id" => array("dinas_id", "ID Dinas"),
        "aktifitas_kode" => array("aktifitas_kode", "Kode Aktifitas"),
        "aktifitas_nama" => array("aktifitas_nama", "Nama Aktifitas"),
        "aktifitas_output" => array("aktifitas_output", "Satuan Output"),
        "aktifitas_waktu" => array("aktifitas_waktu", "Lama Waktu"),
        "aktifitas_status" => array("aktifitas_status", "Status Aktifitas")
    );
    protected $rules = array(
        array("kelompok_id", "required|is_natural_no_zero"),
        array("dinas_id", "required|is_natural_no_zero"),
        array("aktifitas_kode", "required|min_length[3]|max_length[20]"),
        array("aktifitas_nama", "required|min_length[3]|max_length[200]"),
        array("aktifitas_output", "required|min_length[3]|max_length[50]"),
        array("aktifitas_waktu", "required|numeric"),
        array("aktifitas_status", "numeric")
    );
    protected $related_tables = array(
        "kelompok_aktifitas" => array(
            "fkey" => "kelompok_id",
            "columns" => array(
                "kelompok_nama",
                "kelompok_keterangan"
            ),
            "referenced" => "LEFT"
        )
    );
    protected $attribute_types = array();

}


text:
<link href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<link href="demo/MonthPicker.min.css" rel="stylesheet" type="text/css" />

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Archeological Society of Maryland, Inc.</title>
    <link rel="shortcut icon" href="http://marylandarcheology.org/favicon.ico" />

    <link href="css/bootstrap.min.css" rel="stylesheet">

    <link href="css/stylish-portfolio.css" rel="stylesheet">

    <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">

                ASM

                Home

                About

ASM's 2012 William B. Marye Award

Stephen Israel

The
											  2012 recipient of the William B. Marye Award, Stephen Israel has made particularly
											  outstanding and lasting contributions to several areas of Maryland archeology.
											  Stephen is well known for his willingness to take on almost any task that will
											  further the cause of Maryland Archeology and his generosity with his time in
											  assisting and guiding avocational archeologists.

The award committee notes his long years of service to this community.
											  Following military service, which included a deployment to Viet Nam,, Stephen
											  completed his Masters Degree in Anthropology at the University of Oklahoma
											  in 1969. From 1976 until his retirement in 2003 he worked as an archeologist
											  for the US Army Corp of Engineers with responsibility for research activity
											  in four states. His work outside of official duties include assisting archeologists
											  in Maryland and surrounding states as well. In 2007, the Archeological Society
											  of Virginia presented him with their Out-Of_State Award for Outstanding Service
											  to the Commonwealth of Virginia archeology.

Stephen is a regular and enthusiastic participant in all forms
											  of ASM meetings and related activities. ASM can always count on him to support
											  CAT program activities as well as the Annual Field Sessions. He is a frequent
											  contributor to Maryland Archeology, our official journal. He is also active
											  with the Council for Maryland Archeology, the Eastern States Archaeological
											  Federation, the Middle Atlantic Archaeological Conference, and archeological
											  organizations in several states.


text:
import fibers from 'fibers';
import https from 'https';
import http from 'http';
import fs from 'fs';

import { WebApp } from 'meteor/webapp';
import { RoutePolicy } from 'meteor/routepolicy';

import { RequestListener } from './request-listener';
import { getNestedValue, getDefaultOptions } from './util';

class CollectionAPI {
  constructor(options = {}) {
    this.version = '0.3.0';
    this._collections = {};
    this.options = getDefaultOptions();
    Object.assign(this.options, options);
  }

  addCollection(collection, path, options = {}) {
    const collectionOptions = {};
    collectionOptions[path] = { collection, options };
    Object.assign(this._collections, collectionOptions);
  }

  start() {
    const startupMessage = `Collection API v${this.version}`;

    if (this.options.standAlone === true) {
      let httpServer = http;
      let scheme = 'http://';
      let httpOptions = {};

      if (this.options.sslEnabled === true) {
        scheme = 'https://';
        httpServer = https;
        httpOptions = {
          key: fs.readFileSync(this.options.privateKeyFile),
          cert: fs.readFileSync(this.options.certificateFile),
        };
      }

      this._httpServer = httpServer.createServer(httpOptions);
      if (this.options.sslEnabled !== true) {
        this._httpServer.setTimeout(this.options.timeOut);
      }
      this._httpServer.addListener('request', (request, response) => {
        if (this.options.sslEnabled === true) {
          /* eslint-disable */
          function requestTimeout() {
            request.abort();
          }

          function responseTimeout() {
            response.send(500, 'TIMEOUT');
          }
          /* eslint-enable */

          request.setTimeout(this.options.timeOut, requestTimeout);
          response.setTimeout(this.options.timeOut, responseTimeout);
        }
        /* eslint-disable */
        new RequestListener(this, request, response);
        /* eslint-enable */
      });

      const { listenHost = 'localhost', listenPort, apiPath = '' } = this.options;

      this._httpServer.listen(listenPort, listenHost);

      /* eslint-disable */
      console.log(
        startupMessage,
        'running as a stand-alone server on',
        `${scheme}${listenHost}:${listenPort}/${apiPath}`
      );
      /* eslint-enable */
    } else {
      RoutePolicy.declare(`/${this.options.apiPath}/`, 'network');

      WebApp.connectHandlers.use((req, res, next) => {
        if (req.url.split('/')[1] !== this.options.apiPath) {
          next();
          return;
        }
        fibers(() => new RequestListener(this, req, res)).run();
      });

      /* eslint-disable */
      console.log(`${startupMessage} running at /${this.options.apiPath}`);
      /* eslint-enable */
    }
  }

  _getCollectionOptions({ collectionPath }) {
    return getNestedValue(this._collections, [collectionPath, 'options']);
  }

  _getCollection({ collectionPath }) {
    return getNestedValue(this._collections, [collectionPath, 'collection']);
  }
}

export { CollectionAPI };


text:
use strict;

use CXGN::Page;

my $page = CXGN::Page->new("SGN Featured Lab: The Plant Molecular Genetics Lab, Corpoica, Colombia", "Adri");

$page->header("The Plant Molecular Genetics Lab, Corpoica, Colombia", "The Plant Molecular Genetics Lab, Corpoica, Colombia");

print <<HTML;

Our lab is at the core of the Biotechnology and Bioindustry Center (CBB) at the Colombian Corporation for Agricultural Research (CORPOICA) in Bogotá, Colombia, strategically located in the Andean region.

The research in our group is focused on the molecular characterization of germplasm collections, the identification of markers or genes associated with traits of agronomic interest, and the support of national breeding programs. Our efforts in Solanaceae crops have been devoted to fruited species of Andean origin including Solanum quitoense (lulo), S. betaceum (tree tomato) and more recently Physalis peruviana (goldenberry). In addition to native tuber bearing species (Solanum phureja or golden potato), all are economically and socially important crops for local and export markets.

We have established national and international collaborations that include Universidad de los Andes, Universidad Nacional de Colombia, Cenicafe, Cornell University, Georgia Institute of Technology and the National Institute of Health.  We are using COSII markers for genetic map construction in golden potato and to assess the diversity of germplasm collections and identification of hybrids in lulo and tree tomato. We are also working on the isolation and characterization of polyphenol oxidases responsible for fruit browning and Mi-like genes associated with nematode resistance in lulo. In addition, we are mapping candidate genes for induced resistance and growth promotion by the biocontroller Trichoderma in S. lycopersicum (tomato).

The recent Solanacae focus of our group is goldenberry and potato. In this regard, we have initiated projects on goldenberry related to the generation of haploids and double haploid lines and the identification of genes associated with Fusarium resistance, the main constraint for production in Colombia.

To face current and future challenges, we have begun to build a computational biology and bioinformatics platform to strengthen the lab for omics research in native Solanaceae by recent hires from Cenicafe and the National Center for Biotechnology Information (NCBI).

From left to right and top to bottom: Golden potato, tree tomato, goldenberry, and lulo

(courtesy of M. Lobo, CORPOICA)

Selected Publications

Pratt R.C., Francis D.A., Barrero L.S. (2008) Genomics of Tropical Solanaceous species: Established and emerging crops. In: Plant Genetics and Genomics: Crops and Models, Volume 1. P.H. Moore, R. Ming (editors); Genomics of tropical Crop Plants, Springer, New York, USA, p. 453-467

Cong B., Barrero L., Tanksley S. (2008) Regulatory Change in YABBY-like transcription Factor Led to Evolution of Extreme Fruit Size during Tomato Domestication. Nature genetics. 40: 800-804

Barrero L.S., Cong B., Wu F., Tanksley S.D. (2006). Developmental characterization of the fasciated locus and mapping of candidate genes involved in the control of floral meristem size and carpel number in tomato. Genome. 49: 991-1006

Barrero, L.S., Tanksley, S.D. (2004) Evaluating the genetic basis of multiple locule fruit in a broad cross section of tomato cultivars. Theoretical and Applied Genetics. 109: 669-679

Chaves-Bedoya, G., Nuñez, V (2007) A SCAR marker for the sex types determination in Colombian genotypes of Carica papaya. Euphytica. 153: 215-220

Nuñez, V. M., Peña P. A., Valbuena I., Cerón M. del S. (2007)  Estudio sobre cruzabilidad entre papas cultivadas y silvestres y entre papas cultivadas y malezas relacionadas. Tomo I. p. 52-68. En: Hodson de Jaramillo, E. y Carrizosa P., M.S. (comp.). Desarrollo de capacidades para evaluación y gestión de riesgos y monitoreo de organismos genéticamente modificados (OGM). Resultados de proyectos específicos. Instituto de Investigación de Recursos Biológicos Alexander Von Humboldt. Bogotá, D.C. Colombia. 99 p.

Villa, A. l., Jimenez, P.E., Valbuena, R.I., Bastidas, s., Nuñez, V.M. (2007)  Preliminary study for the establishment of a cryoconservation protocol for oil palm Elaeis guineensis Jacq.  Agronomía Colombiana. 52: 215-223

Tharakaraman K, Bodenreider O, Landsman D, Spouge JL, Mariño-Ramírez L. (2008) The biological function of some human transcription factor binding motifs varies with position relative to the transcription start site. Nucleic Acids Res. 36: 2777-2786

Kim NK, Tharakaraman K, Mariño-Ramírez L, Spouge JL. (2008)  Finding sequence motifs with Bayesian models incorporating positional information: an application to transcription factor binding sites. BMC Bioinformatics. 9: 262

Mariño-Ramírez L, Jordan IK, Landsman D. (2006) Multiple independent evolutionary solutions to core histone gene regulation. Genome Biol. 7(12): R122

Contact Information

Luz Stella Barrero Meneses

Ph.D. Research Scientist

Laboratory of Plant Molecular Genetics

Center of Biotechnology and Bioindustry

Colombian Corporation for Agricultural Research

CORPOICA

Colombia

Phone: 57-1-4227329

email: lbarrero\@corpoica.org.co

HTML

    $page->footer();


text:
from django.test import TestCase

from msgvis.apps.dimensions import models, registry

class DimensionRegistryTest(TestCase):
    """Test the dimension registry"""

    def test_registry_contains_dimension(self):
        """The registry should have some dimensions"""
        time = registry.get_dimension('time')
        self.assertIsNotNone(time)
        self.assertIsInstance(time, models.TimeDimension)

    def test_registry_size(self):
        """The number of dimensions registered should be 25"""
        self.assertEquals(len(registry.get_dimension_ids()), 25)

    def test_registry_rejects_unknown_keys(self):
        """Trying to get a dimension for a nonexistent key raises an exeption"""
        with self.assertRaises(KeyError):
            registry.get_dimension('made_up_dimension_key')


text:
<!DOCTYPE html><html><head><meta charset="utf-8" />
<meta http-equiv="refresh" content="0;url=/place/paraguay/statistics/" />
</head></html>


text:
class CreateEnrollments < ActiveRecord::Migration
  def change
    create_table :enrollments do |t|
      t.references :user, index: true
      t.references :track, index: true

      t.timestamps
    end
  end
end


text:
@interface _RRNavigationBar : UINavigationBar
@end