text:
package de.qaware.cloud.nativ.zwitscher.service.quote;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * A fallback implementation for the QuotesOnDesignClient.
 */
@Component
@Slf4j
public class RandomQuoteFallback implements QuotesOnDesignClient {
    @Override
    public RandomQuote getRandomQuote() {
        log.warn("Using fallback for RandomQuote.");
        return new RandomQuote("Everything fails all the time.", "Unknown");
    }
}

redpajama_set_name: RedPajamaGithub


text:
package com.ybrikman.ping.scalaapi.bigpipe

import org.specs2.mutable.Specification
import play.twirl.api.Html

class TestEmbed extends Specification {

  "The Embed.escapeForEmbedding method should" >> {
    "leave content without dashes unchanged" >> {
      Embed.escapeForEmbedding("foo bar baz") mustEqual Html("foo bar baz")
    }

    "leave content with single dashes unchanged" >> {
      Embed.escapeForEmbedding("foo-bar-baz") mustEqual Html("foo-bar-baz")
    }

    "escape all double dashes" >> {
      Embed.escapeForEmbedding("foo--bar--baz") mustEqual Html("foo\\u002d\\u002dbar\\u002d\\u002dbaz")
    }
  }
}


text:
var zmq = require('zmq');
var ZmqMiddlewareManager = require('./zmqMiddlewareManager');
var middleware = require('./middleware');
var request = zmq.socket('req');
request.connect('tcp://127.0.0.1:5000');

var zmqm = new ZmqMiddlewareManager(request);
//zmqm.use(middleware.zlib());
zmqm.use(middleware.json());

zmqm.use({
    inbound: function(message, next) {
        console.log('Echoed back: ', message.data);
        next();
    }
});

setInterval(function() {
    zmqm.send({action: 'ping', echo: Date.now()});
}, 1000);