conflict_resolution stringlengths 27 16k |
|---|
<<<<<<<
{
id: uuidv4(),
name: "Mohammad Solgi",
img: "https://avatars3.githubusercontent.com/u/65813366?s=400&u=4752dadd33efe830a095a2306ef5f4e797315bda&v=4",
links: {
website: "",
linkedin: "https://www.linkedin.com/in/mohammad-solgi-a68841111/",
github: "https://git... |
<<<<<<<
{
id: uuidv4(),
name: "Akshay Anand",
img: "",
links: {
website: "https://axayjha.github.io/",
linkedin: "https://www.linkedin.com/in/axayjha/",
github: "https://github.com/axayjha",
},
jobTitle: "Full Stack Developer",
location: {
ci... |
<<<<<<<
},
maintain_sub_directory_structure: function (test) {
var actual = {},
expected = {};
var files = [{
filename: 'battle-cat.jpg',
expected: 'test/expected/maintain_sub_directory_structure/320/',
actual: 'tmp/maintain_sub_directory_structure/320/'
},
... |
<<<<<<<
=======
tally[sizeOptions.name] = 0;
>>>>>>>
tally[sizeOptions.name] = 0;
<<<<<<<
dstPath = path.join(dirName, subDir, baseName + sizeOptions.name + extName);
=======
dstPath = path.join(dirName, baseName + sizeOptions.outputName + extName);
>>>>>>>
dstPath = p... |
<<<<<<<
if (sizeOptions.density) {
image.density(sizeOptions.density, sizeOptions.density);
}
=======
// Add custom Output arguments to the graphics engine command after all other options, but before the output filename.
// customOut: [
// '-gra... |
<<<<<<<
ajaxRequest = sm.ajaxUpdateMarker( map, query ).done( function () {
=======
ajaxRequest = sm.ajaxUpdateMarker( map, query).done( function () {
map.createMarkerCluster();
>>>>>>>
ajaxRequest = sm.ajaxUpdateMark... |
<<<<<<<
walk: function walk(cb) {
traverse(this, node => cb(node));
=======
walk(cb) {
return traverse(this, node => cb(node));
>>>>>>>
walk(cb) {
traverse(this, node => cb(node));
<<<<<<<
match: function match(expression, cb) {
Array.isArray(expression) ? this.walk(n... |
<<<<<<<
var i, j, k, len, ref, val;
=======
var gp, i, j, k, len, max_hit, ref, val;
>>>>>>>
var gp, i, j, k, len, ref, val; |
<<<<<<<
var planner = compile('planner')
var manager = compile('manager')
stormpath.initializeMiddleware(app)
=======
app.use('/api', auth)
app.use('/api/campaigns', require('./campaign'))
>>>>>>>
stormpath.initializeMiddleware(app) |
<<<<<<<
commuterLocations = commuterLocations.map(function (cl) {
return {
organizationId : cl._location.get('created_by'),
locationId : cl._location.get('_id'),
name : cl._location.get('name'),
fullAddress : cl._location.get('address') + ', ' + cl._location.get('city') + ', ' ... |
<<<<<<<
function ConfigStream(configString) {
Readable.call(this);
this._sent = false;
this._configString = configString;
}
inherits(ConfigStream, Readable);
ConfigStream.prototype._read = function() {
if (!this._sent) {
this.push(this._configString);
this._sent = true;
}
else {
this.push(null... |
<<<<<<<
var build = { _id: 0, status: "success", createdTime: Date.now() };
var build2 = { _id: 1, status: "failure", createdTime: Date.now() };
=======
var build = { id: '1', status: "success", createdTime: Date.now() };
var build2 = { id: '2', status: "failure", createdTime: Date.now() };
var in... |
<<<<<<<
return Promise.resolve({
_index: kuzzle.config.internalIndex,
=======
return q({
_index: '%kuzzle',
>>>>>>>
return q({
_index: kuzzle.config.internalIndex, |
<<<<<<<
transpileToEs5: true,
onTranspileToEs5Changed: this._onTranspileToEs5Changed.bind(this),
shortcuts: shortcuts,
es6Katas: this._es6Katas || null
=======
shortcuts,
es6Katas: this._es6Katas || null,
>>>>>>>
transpileToEs5: true,
onTranspileToEs5Changed: this._onT... |
<<<<<<<
beforeEach(function () {
indexCacheAdded = false;
});
it('should reject an empty request', function (done) {
=======
it('should reject an empty request', function () {
>>>>>>>
beforeEach(function () {
indexCacheAdded = false;
});
it('should reject an empty request', function () { |
<<<<<<<
}, {
scoreName: "pageTitleKeyword",
scoreTitleKeywordLimit: 0,
scoreArray: [
{
matcher: "matches",
max: 0,
score: 2,
/* translators: %1$s expands to the focus keyword */
... |
<<<<<<<
"countSentencesFromText": countSentencesFromText,
"countSentencesFromDescription": countSentencesFromDescription,
"getSubheadingLength": getSubheadingLength
=======
"getSubheadingLength": getSubheadingLength,
"getSubheadingPresence": getSubheadingPresence
>>>>>>>
"countSentencesFromText": countSe... |
<<<<<<<
// todo: remove topic density from seoAssessor and move it to seoAssessorPremium after it is ready.
var TopicDensity = require( "./assessments/seo/topicDensityAssessment.js" );
=======
const LargestKeywordDistance = require( "./assessments/seo/largestKeywordDistanceAssessment.js" );
>>>>>>>
// todo: remove t... |
<<<<<<<
import AnalysisWorker from "yoastseo/worker";
=======
import AnalysisWorkerWrapper from "yoastseo/worker/AnalysisWorkerWrapper";
import testPapers from "yoastspec/fullTextTests/testTexts";
>>>>>>>
import AnalysisWorker from "yoastseo/worker";
import testPapers from "yoastspec/fullTextTests/testTexts"; |
<<<<<<<
expect( mockParticiple.directPrecedenceException( mockParticiple._sentencePart, mockParticiple._participle, "it" ) ).toBe( true );
expect( mockParticiple.precedenceException( mockParticiple._sentencePart, mockParticiple._participle, "it" ) ).toBe( true );
expect( mockParticiple.determinesSentencePartIsPas... |
<<<<<<<
describe( "a test for getting the correct first word exception array", function() {
it( "returns the English first word exception array in case of en_US locale", function() {
expect( firstWordExceptions( "en_US" )() ).toEqual( [ 'the', 'a', 'an', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'... |
<<<<<<<
YoastSEO.App.prototype.constructI18n = function( translations ) {
=======
App.prototype.constructI18n = function( translations ) {
var Jed = require( "jed" );
>>>>>>>
App.prototype.constructI18n = function( translations ) {
<<<<<<<
YoastSEO.App.prototype.getData = function() {
=======
App.prototype.getD... |
<<<<<<<
it( "returns a 'consideration' score when the Gini coefficient calculated from the step function is -1 (as a result of no keyword occurrences)", function() {
const mockPaper = new Paper( "a string", { keyword: "keyword" } );
const assessment = keyphraseDistributionAssessment.getResult( mockPaper, Factory.b... |
<<<<<<<
assessments.pageTitleKeyword = require( "./assessments/pagetitleKeyword.js" );
=======
assessments.metaDescriptionLength = require( "./assessments/metaDescriptionLength.js" );
>>>>>>>
assessments.pageTitleKeyword = require( "./assessments/pagetitleKeyword.js" );
assessments.metaDescriptionLength = require( "... |
<<<<<<<
new IntroductionKeyword(),
keyphraseLength,
keywordDensity,
=======
introductionKeyword,
new KeyphraseLengthAssessment(),
new KeywordDensityAssessment(),
>>>>>>>
new IntroductionKeyword(),
new KeyphraseLengthAssessment(),
new KeywordDensityAssessment(),
<<<<<<<
internalLinks,
new Title... |
<<<<<<<
const isEmpty = require( "lodash/isEmpty" );
=======
import { escapeRegExp } from "lodash-es";
>>>>>>>
import { escapeRegExp } from "lodash-es";
import { isEmpty } from "lodash-es"; |
<<<<<<<
let IntroductionKeyword = require( "../assessments/seo/introductionKeywordAssessment.js" );
let keyphraseLength = require( "../assessments/seo/keyphraseLengthAssessment.js" );
let keywordDensity = require( "../assessments/seo/keywordDensityAssessment.js" );
let keywordStopWords = require( "../assessments/seo/ke... |
<<<<<<<
assessments.stopwordKeywordCount = require( "./assessments/stopWordsInKeyword.js" );
assessments.urlStopwords = require( "./assessments/stopWordsInUrl.js" );
=======
assessments.metaDescriptionLength = require( "./assessments/metaDescriptionLength.js" );
>>>>>>>
assessments.stopwordKeywordCount = require( ".... |
<<<<<<<
const wordMatch = require( "../stringProcessing/matchTextWithWord.js" );
const findTopicFormsInString = require( "./findKeywordFormsInString.js" ).findTopicFormsInString;
=======
import wordMatch from "../stringProcessing/matchTextWithWord.js";
>>>>>>>
import wordMatch from "../stringProcessing/matchTextWith... |
<<<<<<<
assessments.subHeadings = require( "./assessments/matchKeywordInSubheading.js" );
=======
assessments.metaDescriptionLength = require( "./assessments/metaDescriptionLength.js" );
>>>>>>>
assessments.subHeadings = require( "./assessments/matchKeywordInSubheading.js" );
assessments.metaDescriptionLength = requ... |
<<<<<<<
var wordCount = require( "./stringProcessing/countWords.js" );
var calculateFleschReading = require( "./analyses/calculateFleschReading" );
=======
>>>>>>>
var wordCount = require( "./stringProcessing/countWords.js" );
var calculateFleschReading = require( "./analyses/calculateFleschReading" );
<<<<<<<
"w... |
<<<<<<<
import getResults from "../specHelpers/getAssessorResults";
let Assessor = require( "../../js/cornerstone/seoAssessor.js" );
let Paper = require( "../../js/values/Paper.js" );
=======
let Assessor = require( "../../src/cornerstone/seoAssessor.js" );
let Paper = require( "../../src/values/Paper.js" );
>>>>>>>... |
<<<<<<<
=======
* Returns the metaDescription, includes the date if it is set.
*
* @returns {string}
*/
var getMetaDesc = function() {
var metaDesc = this.data.metaDesc;
if ( !isEmpty( this.opts.metaDescriptionDate ) && !isEmpty( metaDesc ) ) {
metaDesc = this.opts.metaDescriptionDate + " - " + this.data.met... |
<<<<<<<
assessments.pageTitleKeyword = require( "./assessments/pageTitleKeyword.js" );
=======
assessments.stopwordKeywordCount = require( "./assessments/stopWordsInKeyword.js" );
assessments.urlStopwords = require( "./assessments/stopWordsInUrl.js" );
>>>>>>>
assessments.pageTitleKeyword = require( "./assessments/p... |
<<<<<<<
assessments.urlLength = require( "./assessments/urlLength.js" );
=======
assessments.linkCount = require( "./assessments/getLinkStatistics.js" );
>>>>>>>
assessments.urlLength = require( "./assessments/urlLength.js" );
assessments.linkCount = require( "./assessments/getLinkStatistics.js" ); |
<<<<<<<
// German papers
import germanPaper1 from "./de/germanPaper1";
=======
// French papers
import frenchPaper1 from "./fr/frenchPaper1";
import frenchPaper2 from "./fr/frenchPaper2";
import frenchPaper3 from "./fr/frenchPaper3";
>>>>>>>
// German papers
import germanPaper1 from "./de/germanPaper1";
// French... |
<<<<<<<
var YoastSEO_args = {
=======
var args = {
//source to use as feeder for the analyzer and snippetPreview
>>>>>>>
var YoastSEO_args = {
//source to use as feeder for the analyzer and snippetPreview |
<<<<<<<
var metaText;
if(typeof this.refObj.source.formattedData.excerpt !== "undefined"){
metaText = this.refObj.source.formattedData.excerpt.substring(0, analyzerConfig.maxMeta);
}
if(metaText === ""){
var indexMatches = this.getIndexMatches();
var periodMatches = this.getPerio... |
<<<<<<<
const collectTopicForms = require( "../researches/buildKeywordForms" ).collectForms;
=======
const isEqual = require( "lodash/isEqual" );
>>>>>>>
const isEqual = require( "lodash/isEqual" );
const collectTopicForms = require( "../researches/buildKeywordForms" ).collectForms;
<<<<<<<
/**
* Check whether ke... |
<<<<<<<
const polishParticiples = require( "../../polish/passiveVoice/participles" )();
=======
const irregularsDutch = require( "../../dutch/passiveVoice/irregulars" )();
const nlRegex1 = /^(ge|be|ont|ver|her|er)\S+(d|t)$/ig;
const nlRegex2 = /^(aan|af|bij|binnen|los|mee|na|neer|om|onder|samen|terug|tegen|toe|uit|va... |
<<<<<<<
let countSyllableFunction = require( "../../../src/stringProcessing/syllables/count.js" );
let forEach = require( "lodash/forEach" );
=======
let countSyllableFunction = require( "../../../js/stringProcessing/syllables/count.js" );
import { forEach } from "lodash-es";
>>>>>>>
let countSyllableFunction = requ... |
<<<<<<<
let otherAuxiliariesInfinitive = [ "avoir", "aller", "venir", "devoir", "pouvoir", "sembler", "paraître", "paraitre", "mettre", "finir",
"d'avoir", "d'aller", "n'avoir", "l'avoir" ];
=======
const otherAuxiliariesInfinitive = [
"avoir", "aller", "venir", "devoir", "pouvoir", "sembler", "paraître", "paraitre... |
<<<<<<<
var findKeywordInPageTitle = require( "./researches/findKeywordInPageTitle.js" );
=======
var getLinkStatistics = require( "./analyses/getLinkStatistics.js" );
var matchKeywordInSubheadings = require( "./researches/matchKeywordInSubheadings.js" );
var getKeywordDensity = require( "./researches/getKeywordDensi... |
<<<<<<<
var findTransitionWords = require( "./researches/findTransitionWords.js" );
=======
var sentenceVariation = require( "./researches/sentenceVariation.js" );
>>>>>>>
var findTransitionWords = require( "./researches/findTransitionWords.js" );
var sentenceVariation = require( "./researches/sentenceVariation.js" ... |
<<<<<<<
var stripSpaces = require( "./stripSpaces.js" );
var filter = require( "lodash/filter" );
=======
var forEach = require( "lodash/forEach" );
>>>>>>>
var stripSpaces = require( "./stripSpaces.js" );
var filter = require( "lodash/filter" );
var forEach = require( "lodash/forEach" );
<<<<<<<
sentences.ma... |
<<<<<<<
let mockParticiple = new DutchParticiple( "gekookt", "Het werd door hem gekookt.", {
auxiliaries: [ "werd" ],
type: "regular",
language: "nl",
} );
=======
const mockParticiple = new DutchParticiple( "gekookt", "Het werd door hem gekookt.", { auxiliaries: [ "werd" ], type: "regular", language: ... |
<<<<<<<
var getKeywordDensity = require( "./researches/getKeywordDensity.js" );
=======
var stopWordsInKeyword = require( "./researches/stopWordsInKeyword" );
var stopWordsInUrl = require( "./researches/stopWordsInUrl" );
>>>>>>>
var getKeywordDensity = require( "./researches/getKeywordDensity.js" );
var stopWordsIn... |
<<<<<<<
var paragraphTooLong = require( "./assessments/paragraphTooLongAssessment.js" );
var paragraphTooShort = require( "./assessments/paragraphTooShortAssessment.js" );
=======
var sentenceLengthInText = require( "./assessments/sentenceLengthInTextAssessment.js" );
var sentenceLengthInDescription = require( "./as... |
<<<<<<<
var calculateFleschReading = require( "./researches/calculateFleschReading" );
var getKeywordDensity = require( "./researches/getKeywordDensity.js" );
=======
var calculateFleschReading = require( "./researches/calculateFleschReading.js" );
var metaDescriptionLength = require( "./researches/metaDescriptionLen... |
<<<<<<<
assessments.pageTitleKeyword = require( "./assessments/pageTitleKeyword.js" );
=======
assessments.subHeadings = require( "./assessments/matchKeywordInSubheading.js" );
assessments.keywordDensity = require( "./assessments/keywordDensity.js" );
>>>>>>>
assessments.pageTitleKeyword = require( "./assessments/pa... |
<<<<<<<
expect( firstParagraph( "<p>this is a kapaklı</p>", "kapaklı" ) ).toBe( 1 );
=======
expect( firstParagraph( "<p>this is a key-word</p>", "key-word" ) ).toBe( 1 );
expect( firstParagraph( "<p>this is a key-word</p>", "key_word" ) ).toBe( 0 );
expect( firstParagraph( "<p>this is a key_word</p>", "key_w... |
<<<<<<<
var findKeywordInPageTitle = require( "./analyses/findKeywordInPageTitle.js" );
=======
var getLinkStatistics = require( "./analyses/getLinkStatistics.js" );
>>>>>>>
var findKeywordInPageTitle = require( "./analyses/findKeywordInPageTitle.js" );
var getLinkStatistics = require( "./analyses/getLinkStatistics.... |
<<<<<<<
/* global YoastSEO: true */
YoastSEO = ( "undefined" === typeof YoastSEO ) ? {} : YoastSEO;
var isUndefined = require( "lodash/lang/isUndefined" );
var forEach = require( "lodash/collection/forEach" );
var reduce = require( "lodash/collection/reduce" );
=======
>>>>>>>
var isUndefined = require( "lodash/lang... |
<<<<<<<
let mockParticiple = new SpanishParticiple( "sentido", "fue un sentido monumental y grandilocuente.", {
auxiliaries: [ "fue" ],
type: "irregular",
language: "es",
} );
expect( mockParticiple.directPrecedenceException( mockParticiple._sentencePart, mockParticiple._participle, "es" ) ).toBe( true )... |
<<<<<<<
// Polish papers
import polishPaper1 from "./pl/polishPaper1";
import polishPaper2 from "./pl/polishPaper2";
import polishPaper3 from "./pl/polishPaper3";
=======
// Russian papers
import russianPaper1 from "./ru/russianPaper1";
import russianPaper2 from "./ru/russianPaper2";
import russianPaper3 from "./ru... |
<<<<<<<
const matchTextWithArray = require( "../stringProcessing/matchTextWithArray.js" );
const buildKeywordForms = require( "./buildKeywordForms.js" );
const map = require( "lodash/map" );
const toLower = require( "lodash/toLower" );
=======
const wordMatch = require( "../stringProcessing/matchTextWithWord.js" );
c... |
<<<<<<<
=======
http: {
maxRequestSize: '1MB'
},
maxRequestHistorySize: 50,
>>>>>>>
maxRequestHistorySize: 50, |
<<<<<<<
/* global YoastSEO: true */
YoastSEO = ( "undefined" === typeof YoastSEO ) ? {} : YoastSEO;
var calculateFleschReading = require( "./analyses/calculateFleschReading.js" );
var checkStringForStopwords = require( "./analyses/checkStringForStopwords.js" );
var checkUrlForStopwords = require( "./analyses/checkUrlF... |
<<<<<<<
assessments.fleschReading = require( "./assessments/calculateFleschReading.js" );
=======
assessments.linkCount = require( "./assessments/getLinkStatistics.js" );
>>>>>>>
assessments.fleschReading = require( "./assessments/calculateFleschReading.js" );
assessments.linkCount = require( "./assessments/getLinkS... |
<<<<<<<
var matchTextWithWord = require( "./stringProcessing/matchTextWithWord.js" );
var keywordCount = matchTextWithWord( this.config.text, this.config.keyword );
=======
var keywordMatches = this.preProcessor.__store.cleanTextSomeTags.match( this.keywordRegex );
var keywordCount = 0;
if ( keywordMatches !==... |
<<<<<<<
.then(
data => {
console.log( "analysis done!", data );
this.props.setResults( {
readability: data.readability.results,
seo: data.seo.results,
} );
}
);
=======
.then( data => {
this.props.actions.setResults( {
readability: data.results,
... |
<<<<<<<
let mockParticiple = new EnglishParticiple( "rid", "He wants to get rid of it", {
auxiliaries: [ "get" ],
type: "irregular",
language: "en",
} );
=======
const mockParticiple = new EnglishParticiple( "rid", "He wants to get rid of it", { auxiliaries: [ "get" ], type: "irregular", language: "en"... |
<<<<<<<
expect( assessment.getText() ).toEqual ( "0% of the sentences contain more than 20 words, which is less than or equal to the recommended maximum of 25%." );
=======
expect( assessment.getText() ).toEqual ( "0% of the sentences contain more than 20 words, which is less than the recommended maximum of 25%."... |
<<<<<<<
var wordCountInText = require( "./researches/wordCountInText.js" );
var getLinkStatistics = require( "./researches/getLinkStatistics.js" );
var linkCount = require( "./researches/countLinks.js" );
var getLinks = require( "./researches/getLinks.js" );
var urlLength = require( "./researches/urlIsTooLong.js" );
va... |
<<<<<<<
};
/**
* Divides the total score by ten and calls the scoreRating function.
* @param {number|string} score
* @returns {string} scoreRate
*/
YoastSEO.ScoreFormatter.prototype.overallScoreRating = function( score ) {
if ( typeof score === "number" ) {
score = ( score / 10 );
}
return this.scoreRating( s... |
<<<<<<<
metaDesc = this.refObj.pluggable._applyModifications( "data_meta_desc", metaDesc );
// If no meta has been set, generate one.
if ( isEmpty( metaDesc ) ) {
metaDesc = this.getMetaText();
}
if ( !isEmpty( this.opts.metaDescriptionDate ) ) {
=======
if ( !isEmpty( this.opts.metaDescriptionDate ) && !i... |
<<<<<<<
describe( "A test that uses the Spanish Flesch Reading", function() {
it( "returns a score", function() {
var mockPaper = new Paper( "Existen seis subespecies de tigre, de las cuales la de Bengala es la más numerosa.", { locale: "es_ES" } );
expect( fleschFunction( mockPaper ) ).toBe( 83.5 );
} );
} );
... |
<<<<<<<
expect( assessment.getText() ).toBe( "The length of all subheadings is less than or equal to the recommended maximum of 30 characters, which is great." );
=======
expect( assessment.getText() ).toBe( "The length of all subheadings is less than the recommended maximum of 30 characters, which is great." );
... |
<<<<<<<
filterSpecialCharacters: filterSpecialCharacters,
=======
filterFunctionWordsAnywhere: filterFunctionWordsAnywhere,
filterOnSyllableCount: filterOnSyllableCount,
>>>>>>>
filterFunctionWordsAnywhere: filterFunctionWordsAnywhere, |
<<<<<<<
/**
* Returns the width of the title in pixels.
*
* @returns {Number} The width of the title in pixels.
*/
SnippetPreview.prototype.getTitleWidth = function() {
return this.data.titleWidth;
};
=======
/**
* Returns whether or not an app object is present.
*
* @returns {boolean} Whether or not there i... |
<<<<<<<
import BackgroundImagePanel, { BackgroundClasses, BackgroundDropZone, BackgroundVideo } from '../../../components/background';
=======
import BackgroundPanel, { BackgroundClasses, BackgroundDropZone } from '../../../components/background';
>>>>>>>
import BackgroundPanel, { BackgroundClasses, BackgroundDropZo... |
<<<<<<<
import BackgroundImagePanel, { BackgroundClasses, BackgroundDropZone, BackgroundVideo } from '../../../components/background';
=======
import BackgroundPanel, { BackgroundClasses, BackgroundDropZone } from '../../../components/background';
>>>>>>>
import BackgroundPanel, { BackgroundClasses, BackgroundDropZo... |
<<<<<<<
{ backgroundImg ?
<Dropdown
className={ classnames( 'components-dropdown-menu', 'components-coblocks-icon-dropdown' ) }
contentClassName="components-dropdown-menu__popover"
renderToggle={ ( { isOpen, onToggle } ) => {
const openOnArrowDown = ( event ) => {
if ( !... |
<<<<<<<
import BackgroundImagePanel, { BackgroundClasses, BackgroundDropZone, BackgroundVideo } from '../../../../components/background';
=======
import BackgroundPanel, { BackgroundClasses, BackgroundDropZone } from '../../../../components/background';
>>>>>>>
import BackgroundPanel, { BackgroundClasses, Background... |
<<<<<<<
{ BackgroundVideo( attributes ) }
=======
{ isBlobURL( backgroundImg ) && <Spinner /> }
{ backgroundType == 'video' ?
<div className="coblocks-video-background">
<video playsinline="" autoplay="" muted={ videoMuted } loop={ videoLoop } src={ backgroundImg } ></video>
</... |
<<<<<<<
this.services.init();
// Starts the IPC internal broker
if (!feature || (feature && (feature.servers === undefined || feature.servers === true))) {
=======
if (feature === undefined) {
feature = {};
}
if (params.server) {
feature.servers = true;
feature.workers = false;
}
else {
... |
<<<<<<<
UserRepository.prototype.generateToken = function (username, opts) {
var
deferred = q.defer(),
options = opts || {},
encodedToken,
error;
if (username === null) {
error = new InternalError('Unknown User : cannot generate token');
deferred.reject(error);
retur... |
<<<<<<<
import { MODALS_DOMAIN_ADD, MODALS_DOMAIN_EDIT, MODALS_EVENT_ADD, MODALS_EVENT_EDIT } from '../../constants/modals'
=======
import { MODALS_DOMAIN_EDIT, MODALS_DOMAIN_ADD, MODALS_PERMANENT_TOKEN_EDIT, MODALS_PERMANENT_TOKEN_ADD } from '../../constants/modals'
>>>>>>>
import {
MODALS_DOMAIN_ADD,
MODALS_DOMA... |
<<<<<<<
export const MODALS_EVENT_ADD = 'modals_event_add'
export const MODALS_EVENT_EDIT = 'modals_event_edit'
=======
export const MODALS_DOMAIN_ADD = 'modals_domain_add'
export const MODALS_PERMANENT_TOKEN_EDIT = 'modals_permanent_token_edit'
export const MODALS_PERMANENT_TOKEN_ADD = 'modals_permanent_token_add'
... |
<<<<<<<
import { decrypt, encrypt } from './../helper/secure.js';
=======
import Connector from './../connectors/connector.js';
>>>>>>>
import { decrypt, encrypt } from './../helper/secure.js';
import Connector from './../connectors/connector.js';
<<<<<<<
// testButton.addEventListener('click', (event) => {
... |
<<<<<<<
self.privatekeyfileInput.getModel().onDidChange(() => {
if (self.configArray.length !== 0 && !self.disableEventhandler) {
let index = self.selectServer.selectedOptions[0].value;
self.configArray[index].privatekeyfile = self.privatekeyfileInput.getText().trim();
}
});
self... |
<<<<<<<
=======
import { decrypt, encrypt, checkPasswordExists, checkPassword, setPassword, changePassword } from './helper/secure.js';
import { basename, trailingslashit, normalize } from './helper/format.js';
>>>>>>>
import { decrypt, encrypt, checkPasswordExists, checkPassword, setPassword, changePassword } from ... |
<<<<<<<
import { getConfig, resetIgnoredPatterns } from './../helper/helper.js';
=======
>>>>>>>
import { resetIgnoredPatterns } from './../helper/helper.js'; |
<<<<<<<
var title = 'Test 1\\, 2\\, 3 %2 salmon';
var key = "[[topic:composer.replying_to, " + title + "]]";
=======
var title = 'Test 1\\, 2\\, 3 % salmon';
var key = '[[topic:composer.replying_to, ' + title + ']]';
>>>>>>>
var title = 'Test 1\\, 2\\, 3 %2 salmon';
var key = '[[topic:composer.repl... |
<<<<<<<
switch (target) {
case 'js':
setImmediate(next);
break;
case 'clientCSS':
winston.info('[build] Building client-side CSS');
startTime = Date.now();
meta.css.minify('client', step.bind(this, startTime, target, next));
break;
case 'acpCSS':
winston.info('[build]... |
<<<<<<<
},
function(next) {
next(null, {
post: results.postData,
isFavourited: isFavouriting
});
=======
>>>>>>> |
<<<<<<<
=======
function destroy(nid) {
var multi = RDB.multi();
>>>>>>> |
<<<<<<<
};
=======
}
function initializeDragAndDrop(post_uuid) {
if(jQuery.event.props.indexOf('dataTransfer') === -1) {
jQuery.event.props.push('dataTransfer');
}
var draggingDocument = false;
var postContainer = $('#cmp-uuid-' + post_uuid),
fileForm = postContainer.find('#fileForm');
drop = ... |
<<<<<<<
api.get('/_getStats', function (request, response) {
var params = {
controller: 'admin',
action: 'getStats'
};
executeFromRest.call(kuzzle, params, request, response);
});
api.get('/_getAllStats', function (request, response) {
var params = {
control... |
<<<<<<<
data.motd_class = (config.show_motd === '1' || config.show_motd === undefined) ? '' : 'none';
data.motd = marked(config.motd || "# NodeBB <span>v " + pkg.version + "</span>\nWelcome to NodeBB, the discussion platform of the future.\n\n<div class='btn-group'><a target=\"_blank\" href=\"http://www.nodeb... |
<<<<<<<
utils.walk(path.join(__dirname, '../language', (Meta.config.defaultLang || 'en_GB')), function (err, data) {
if(err) {
console.log(err.message);
return;
}
=======
if (!fs.existsSync(path.join(__dirname, '../language', language))) {
winston.warn('[translator] Language \'' + Meta.config.def... |
<<<<<<<
notifications.init();
process.on('SIGTERM', shutdown);
process.on('SIGINT', shutdown);
process.on('SIGHUP', restart);
process.on('uncaughtException', function(err) {
winston.error('[app] Encountered Uncaught Exception: ' + err.message);
console.log(err.stack);
restart... |
<<<<<<<
Meta.js.loadRJS(function() {
Meta.js.prepare(function() {
minifier.send({
action: minify ? 'js.minify' : 'js.concatenate',
scripts: Meta.js.scripts
});
=======
this.prepare(function() {
minifier.send({
action: 'js',
minify: minify,
scripts: Meta.js.scripts
>... |
<<<<<<<
module.exports = function (Meta) {
=======
var soundsPath = path.join(__dirname, '../../build/public/sounds');
var uploadsPath = path.join(__dirname, '../../public/uploads/sounds');
module.exports = function (Meta) {
>>>>>>>
var soundsPath = path.join(__dirname, '../../build/public/sounds');
var uploadsPat... |
<<<<<<<
function writeImageDataToFile(imageData, callback) {
// Calculate md5sum of image
// This is required because user data can be private
var md5sum = crypto.createHash('md5');
md5sum.update(imageData);
md5sum = md5sum.digest('hex');
// Save image
var tempPath = path.join(nconf.get('upload_path'), ... |
<<<<<<<
// Listen broker because we waiting for writeEngine response
if (requestObject.waitForWriteEngine()) {
=======
// Listen to the broker MQ because we're expecting a writeEngine response
if (['write', 'admin', 'bulk'].indexOf(requestObject.controller) !== -1) {
>>>>>>>
/... |
<<<<<<<
async.each(Object.keys(filter[field]), (fn, callback) => {
=======
async.each(Object.keys(filter[field]), function (rangeOperator, callback) {
>>>>>>>
async.each(Object.keys(filter[field]), function (rangeOperator, callback) {
<<<<<<<
curriedFunctionName,
=======
encodedFunctionNam... |
<<<<<<<
/*templateValues.metaTags = defaultMetaTags.concat(options.metaTags || []).map(function(tag) {
=======
templateValues.metaTags = defaultMetaTags.concat(options.metaTags || []).map(function(tag) {
if(!tag || typeof tag.content !== 'string') {
winston.warn('Invalid meta tag. ', tag);
return ... |
<<<<<<<
url = require('url'),
=======
ver = '0.0.2',
>>>>>>>
url = require('url'),
ver = '0.0.2',
<<<<<<<
=======
console.log('Info: Initializing NodeBB v' + ver + ', on port ' + global.config.port + ', using Redis store at ' + global.config.redis.host + ':' + global.config.redis.port + '.');
>>>>>>>
... |
<<<<<<<
meta.sounds.getMapping(userData.uid, next);
},
=======
meta.sounds.getUserSoundMap(userData.uid, next);
}
>>>>>>>
meta.sounds.getUserSoundMap(userData.uid, next);
},
<<<<<<<
var soundSettings = {
notificationSound: 'notification',
incomingChatSound: 'chat-incoming',
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.