text:
(function() {
  var JSONStream, getCloudantUrl, getParsedFactData, http, recursiveCloudantSearch, reduce, request, tickerResolver, unEscape;

  http = require('http');

  reduce = require("stream-reduce");

  JSONStream = require('JSONStream');

  request = require('request');

  require('date-utils');

  getCloudantUrl = function() {
    var env;
    env = JSON.parse(process.env.VCAP_SERVICES);
    return env['cloudantNoSQLDB'][0]['credentials']['url'];
  };

  unEscape = function(value) {
    return value.replace('&', '&');
  };

  recursiveCloudantSearch = function(designDocUri, query, keySelector, valueSelector, bookmark, index, limit, callback) {
    var BookmarkExtractorStream, UniqueArrayWriteStream, oldBookmarkValue, readUrl;
    BookmarkExtractorStream = require('../streams/BookmarkExtractorStream').BookmarkExtractorStream;
    UniqueArrayWriteStream = require('../streams/UniqueArrayWriteStream').UniqueArrayWriteStream;
    readUrl = designDocUri + "?q=" + query + "&limit=200";
    oldBookmarkValue = bookmark.value;
    if (oldBookmarkValue != null) {
      readUrl += "&bookmark=" + oldBookmarkValue;
    }
    return request({
      url: readUrl
    }).pipe(new BookmarkExtractorStream(bookmark)).pipe(JSONStream.parse('rows.*.fields')).pipe(new UniqueArrayWriteStream(index, keySelector, valueSelector, limit)).on('finish', function() {
      if (bookmark.value !== oldBookmarkValue && Object.keys(index).length < limit) {
        return recursiveCloudantSearch(designDocUri, query, keySelector, valueSelector, bookmark, index, limit, callback);
      } else {
        return callback();
      }
    });
  };

  getParsedFactData = function(identifier, elementName, callback) {
    var FactTransformStream, cloudantFactsUri;
    cloudantFactsUri = (getCloudantUrl()) + "/facts/_design/factsMainViews/_view/EntityConceptName?key=[\"" + identifier + "\",\"" + elementName + "\"]&include_docs=true&stale=update_after&reduce=false";
    FactTransformStream = require('../streams/FactTransformStream').FactTransformStream;
    return request({
      url: cloudantFactsUri
    }).pipe(JSONStream.parse('rows.*')).pipe(new FactTransformStream()).on('data', function(result) {
      return callback(result);
    });
  };

  tickerResolver = function(ticker, callback) {
    return http.get("http://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=" + ticker + "&count=1&output=xml", function(httpReadStream) {
      return httpReadStream.pipe(reduce((function(acc, data) {
        acc = acc + data;
        return acc;
      }), '')).on('data', function(cikSearchData) {
        var cik, cikMatch, nameMatch;
        cikMatch = cikSearchData.match(/<CIK>([0-9]{10})<\/CIK>/);
        nameMatch = cikSearchData.match(/<name>([^<]+)<\/name>/);
        if (cikMatch != null) {
          cik = cikMatch[1];
          return callback({
            cik: cik,
            name: nameMatch[1]
          });
        } else {
          return callback(null);
        }
      });
    });
  };

  module.exports = {
    recursiveCloudantSearch: recursiveCloudantSearch,
    tickerResolver: tickerResolver,
    getParsedFactData: getParsedFactData,
    unEscape: unEscape,
    getCloudantUrl: getCloudantUrl
  };

}).call(this);

//# sourceMappingURL=helpers.js.map


text:
My GibHub page: [zelenko.github.io/eterm](https://zelenko.github.io/eterm/)

![Eterm](https://raw.githubusercontent.com/zelenko/zelenko.github.io/master/eterm/eterm.png)

### License

All code to be released under GNU GENERAL PUBLIC LICENSE Version 3

[![CC0](http://mirrors.creativecommons.org/presskit/buttons/88x31/svg/cc-zero.svg)](https://creativecommons.org/publicdomain/zero/1.0/)

All content should be released under a Creative Commons License.

redpajama_set_name: RedPajamaGithub


text:
=head1 LICENSE

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

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

=cut

package EnsEMBL::Web::TextSequence::Sequence::Transcript;

use strict;
use warnings;

use parent qw(EnsEMBL::Web::TextSequence::Sequence);

sub fixup_markup {
  my ($self,$markup,$config) = @_;

  # Maintain exon classes across letters
  my @classes = split(' ',$markup->{'class'}||'');
  my ($new_exon) = grep { /^e\w$/ } @classes;
  if($new_exon) {
    $self->{'cur_exon'} = $new_exon;   # ... set
  } elsif(!$markup->{'tag'} && $self->{'cur_exon'}) {
    push @classes,$self->{'cur_exon'}; # ... use
  }
  $markup->{'class'} = join(' ',@classes);
}

1;


text:
init:
	pip install -r requirements.txt

test:
	nosetests tests


text:
ZEPHIR_INIT_CLASS(Test_ConstantsInterfaceB) {

	ZEPHIR_REGISTER_CLASS(Test, ConstantsInterfaceB, test, constantsinterfaceb, test_constantsinterfaceb_method_entry, 0);

	zend_class_implements(test_constantsinterfaceb_ce TSRMLS_CC, 1, test_testinterface_ce);
	return SUCCESS;

}

PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant1) {

	ZEPHIR_INIT_THIS();

	RETURN_NULL();

}

PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant2) {

	ZEPHIR_INIT_THIS();

	RETURN_BOOL(0);

}

PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant3) {

	ZEPHIR_INIT_THIS();

	RETURN_BOOL(1);

}

PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant4) {

	ZEPHIR_INIT_THIS();

	RETURN_LONG(10);

}

PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant5) {

	ZEPHIR_INIT_THIS();

	RETURN_DOUBLE(10.25);

}

PHP_METHOD(Test_ConstantsInterfaceB, testReadInterfaceConstant6) {

	ZEPHIR_INIT_THIS();

	RETURN_STRING("test");

}


text:
title: Tabla periodica Office 365
inshort: Temu̲ ar herramienta utilizar jar Office 365
translator: Microsoft Cognitive Services
---