text:
import React, { useState } from 'react';

import { Box, Button, Calendar, Grommet, Heading } from 'grommet';
import { grommet } from 'grommet/themes';

import { Blank, Previous, Next } from 'grommet-icons';

export const Dual = () => {
  const [date, setDate] = useState();
  const [dates, setDates] = useState();
  const [reference1, setReference1] = useState('2020-08-07T15:13:47.290Z');
  const [reference2, setReference2] = useState('2020-09-01T15:15:34.916Z');
  const onSelect = (arg) => {
    if (Array.isArray(arg)) {
      setDate(undefined);
      setDates(arg);
    } else {
      setDate(arg);
      setDates(undefined);
    }
  };

  return (
    <Grommet theme={grommet}>
      <Box justify="center" pad="large" direction="row" gap="small">
        <Calendar
          animate={false}
          showAdjacentDays={false}
          range
          date={date}
          dates={dates}
          onSelect={onSelect}
          reference={reference1}
          onReference={(reference) => {
            const refDate = new Date(reference);
            const nextDate = new Date(refDate);
            console.log(refDate);
            console.log(nextDate);
            nextDate.setMonth(refDate.getMonth() + 1, 1);
            setReference1(refDate.toString());
            setReference2(nextDate.toString());
          }}
          header={({
            date: currentDate,
            locale,
            onPreviousMonth,
            previousInBound,
          }) => (
            <Box direction="row" align="center" justify="between">
              <Button
                disabled={!previousInBound}
                icon={<Previous />}
                onClick={onPreviousMonth}
              />
              <Heading level={3} margin="none">
                {currentDate.toLocaleDateString(locale, {
                  month: 'long',
                  year: 'numeric',
                })}
              </Heading>
              <Blank />
            </Box>
          )}
        />
        <Calendar
          animate={false}
          showAdjacentDays={false}
          date={date}
          dates={dates}
          range
          onSelect={onSelect}
          reference={reference2}
          onReference={(reference) => {
            const refDate = new Date(reference);
            const priorDate = new Date(refDate);
            priorDate.setMonth(refDate.getMonth() - 1, 1);
            setReference1(priorDate.toString());
            setReference2(refDate.toString());
          }}
          header={({ date: currentDate, locale, onNextMonth, nextInBound }) => (
            <Box direction="row" align="center" justify="between">
              <Blank />
              <Heading level={3} margin="none">
                {currentDate.toLocaleDateString(locale, {
                  month: 'long',
                  year: 'numeric',
                })}
              </Heading>
              <Button
                disabled={!nextInBound}
                icon={<Next />}
                onClick={onNextMonth}
              />
            </Box>
          )}
        />
      </Box>
    </Grommet>
  );
};

export default {
  title: 'Visualizations/Calendar/Dual',
};


text:
ActivationTransmitter::ActivationTransmitter(uint8_t server)
	:AbstractTransmitter(server, RF_CSN, RF_CE, RF_IRQ) {}

LockStatus ActivationTransmitter::sendCodeAndGetLockStatus(const char* input, bool locking)
{
	auto_standby standby(*this);
	// Send lock/unlock code to server
	char buffer[8];
	strcpy(buffer, input);
	_cipher.encipher((uint32_t*) buffer);
	if (send(_server, (locking ? LOCK_CODE : UNLOCK_CODE), buffer, sizeof(buffer)) < 0)
		// If server is down, we consider that the lock status did not change
		return UNKNOWN;
	// Wait for acknowledge with lock status
	uint8_t source;
	uint8_t port;
	bool lock;
	if (recv(source, port, &lock, sizeof(lock), RECV_TIMEOUT_MS) < 0)
		// If problem receiving server response, we consider that system is unlocked
		return UNKNOWN;
	if (source == _server && port == (locking ? LOCK_CODE : UNLOCK_CODE))
		return lock ? LOCKED : UNLOCKED;
	// We received a wrong message what do we do with it?
	// We consider that the lock status did not change
	return UNKNOWN;
}

redpajama_set_name: RedPajamaGithub


text:
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 11">
<meta name=Originator content="Microsoft Word 11">
<link rel=File-List href="RicercaInArchivio_file/filelist.xml">
<link rel=Edit-Time-Data href="RicercaInArchivio_file/editdata.mso">

<title>WebArch 4.0 (E-Prot) - Manuale Utente</title>

<link rel=Stylesheet type="text/css" media=all href=unitaFunzionali.css>

e-prot – Manuale Utente<o:p></o:p>

<o:p> </o:p>

Unità funzionali<o:p></o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p></o:p>

<o:p></o:p>

<o:p></o:p>

<o:p></o:p>

Cerca in Archivio <o:p></o:p>

La funzione e' attivabile attraverso la
  navigazione del Menu selezionando la voce Documentale > Cerca in Archivio
  e consente di ricercare tutti i documenti presenti in archivio mediante opportuni
  canali:<o:p></o:p>

Argomento <o:p></o:p>

Data da… a <o:p></o:p>

Nome File <o:p></o:p>

Tipo documento(Tutti, fax, lettera, ecc)<o:p></o:p>

Descrizione<o:p></o:p>

Note <o:p></o:p>

Stato del documento (Tutti, classificato,
  protocollato, ecc)<o:p></o:p>

E’ possibile eseguire ricerche anche sul
  contenuto del documento (Ricerca full text). Digitando una parola chiave il
  sistema esegue la ricerca nel testo di tutti i documenti registrati(sia
  principali che allegati) <o:p></o:p>

<o:p> </o:p>

<o:p> </o:p>

<o:p> </o:p>

 <o:p></o:p>

<o:p></o:p>

<o:p></o:p>

<o:p></o:p>

<o:p></o:p>

<o:p> </o:p>


text:
<?php

namespace Humbug\Test\Mutator\ConditionalNegation;

use Humbug\Mutator;

class EqualTest extends \PHPUnit\Framework\TestCase
{
    public function testReturnsTokenEquivalentToNotEqual()
    {
        $mutation = new Mutator\ConditionalNegation\Equal;
        $tokens = [];
        $mutation->getMutation($tokens, 10);
        $this->assertEquals([10 => [T_IS_NOT_EQUAL, '!=']], $tokens);
    }

    public function testMutatesEqualToNotEqual()
    {
        $tokens = [10 => [T_IS_EQUAL, '==']];

        $this->assertTrue(Mutator\ConditionalNegation\Equal::mutates($tokens, 10));

        $tokens = [11 => [T_IS_NOT_EQUAL, '!=']];

        $this->assertFalse(Mutator\ConditionalNegation\Equal::mutates($tokens, 11));
    }
}


text:
	overflow-y: auto;
	height: 320px;
}

#lparAuthorizantion .LparAuthorization .form-group {
	margin: 0 0 10px 0;
	width:100%;
}

#lparAuthorizantion div.partition {
	height: 200px;
	overflow: scroll;
}


text:
require './lib/contentful/exporter/configuration'

shared_context 'shared_configuration' do
  before do
    yaml_text = <<-EOF
          data_dir: spec/fixtures/export_files

          access_token: <ACCESS_TOKEN>
          organization_id: <ORGANIZATION_ID>
          space_id: ip17s12q0ek4
          default_locale: 'en-US'

          mapping_dir: spec/fixtures/settings/mapping.json
          contentful_structure_dir: spec/fixtures/settings/contentful_structure.json

          content_model_json: spec/fixtures/settings/contentful_model.json
          converted_model_dir: spec/fixtures/settings/contentful_structure_test.json
    EOF
    yaml = YAML.load(yaml_text)
    @config = Contentful::Exporter::Configuration.new(yaml)
  end
end


text:
package com.wallethub.findtopwords.algorithm;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Comparator;
import java.util.Map;

import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

@RunWith(JUnit4.class)
public class FindTopWordsTest {

	private static final String INPUT_PATH = "testInput.txt";
	private static final String EMPTY_INPUT_PATH = "testEmptyInput.txt";
	private static final String NON_EXISTING_INPUT = "nonExistingInput.txt";
	private static final String OUTPUT_PATH = "src//main//resources//testOutput.txt";

	@Test
	public void testWhenDefault() throws NoSuchMethodException,
	                                     SecurityException,
	                                     IllegalAccessException,
	                                     IllegalArgumentException,
	                                     InvocationTargetException,
	                                     NoSuchFieldException{
		int limit = 5;
		FindTopWords findTopWords = new FindTopWords(limit);
		// read the external file
		Method readFile = FindTopWords.class.getDeclaredMethod("readPhrases", new Class[]{String.class});
		readFile.setAccessible(true);
		readFile.invoke(findTopWords, INPUT_PATH);

		Map<String, Integer> phrasesOccurencies = findTopWords.getPhrasesOccurencies();
		Map<String, String> phrasesHashes = findTopWords.getPhrasesHashes();

		Assert.assertNotNull(phrasesOccurencies);
		Assert.assertNotNull(phrasesHashes);

		Comparator<Map.Entry<String, Integer>> byMapValues = new Comparator<Map.Entry<String, Integer>>() {
	        @Override
	        public int compare(Map.Entry<String, Integer> left, Map.Entry<String, Integer> right) {
	            return left.getValue().compareTo(right.getValue());
	        }
	    };

	    Object[] expectedOrderedElements = phrasesOccurencies.entrySet()
		                  .stream()
		                  .sorted(byMapValues.reversed())
		                  .limit(limit)
		                  .map(e -> phrasesHashes.get(e.getKey())+"="+e.getValue())
		                  .toArray();

		//The two maps have the same hashes as keyset
		Assert.assertTrue(phrasesOccurencies.keySet().equals(phrasesHashes.keySet()));

		Method orderOccurrencies = FindTopWords.class.getDeclaredMethod("orderOccurrenciesMapByValue", int.class);
		orderOccurrencies.setAccessible(true);
		orderOccurrencies.invoke(findTopWords, limit);

		Map<String, Integer> orderedPhrases = findTopWords.getOrderedPhrases();
		Assert.assertNotNull(orderedPhrases);

		Object[] actualOrderedElements =  orderedPhrases.entrySet()
						  .stream()
						  .limit(limit)
						  .map(e -> phrasesHashes.get(e.getKey())+"="+e.getValue())
		                  .toArray();

		Assert.assertArrayEquals(expectedOrderedElements, actualOrderedElements);

		Method writeFile = FindTopWords.class.getDeclaredMethod("writePhrases", new Class[]{String.class});
		writeFile.setAccessible(true);
		writeFile.invoke(findTopWords, OUTPUT_PATH);
	}

	@Test(expected = IllegalArgumentException.class)
	public void testLimitNegative(){
		int limit = -2;
		@SuppressWarnings("unused")
		FindTopWords findTopWords = new FindTopWords(limit);
	}

	@Test
	public void testEmptyFileToRead() throws NoSuchMethodException,
											 SecurityException,
											 IllegalAccessException,
											 IllegalArgumentException,
											 InvocationTargetException {
		int limit = 10;
		FindTopWords findTopWords = new FindTopWords(limit);

		Method readFile = FindTopWords.class.getDeclaredMethod("readPhrases", new Class[]{String.class});
		readFile.setAccessible(true);
		readFile.invoke(findTopWords, EMPTY_INPUT_PATH);

		Map<String, Integer> phrasesOccurencies = findTopWords.getPhrasesOccurencies();
		Map<String, String> phrasesHashes = findTopWords.getPhrasesHashes();

		Assert.assertTrue(phrasesOccurencies.isEmpty());
		Assert.assertTrue(phrasesHashes.isEmpty());

	}

	@Test (expected = InvocationTargetException.class)
	public void testInputFileNotFound() throws NoSuchMethodException,
											   SecurityException,
											   IllegalAccessException,
											   IllegalArgumentException,
											   InvocationTargetException {
		int limit = 10;
		FindTopWords findTopWords = new FindTopWords(limit);

		Method readFile = FindTopWords.class.getDeclaredMethod("readPhrases", new Class[]{String.class});
		readFile.setAccessible(true);
		readFile.invoke(findTopWords, NON_EXISTING_INPUT);
	}
}


text:
int main()
{
	printf_s("hello world\n");
	printf_s("My name is Sun Kwon Kim.\n");
	printf_s("Function A. worked by person 1.");
    return 0;
}


text:
namespace thewizardplusplus::wizard_parser::parser {

typing_parser::typing_parser(const std::string& type): type{type} {}

rule_parser::pointer typing_parser::operator=(
	const rule_parser::pointer& parser
) {
	this->parser = parser;
	return shared_from_this();
}

parsing_result typing_parser::parse(const lexer::token_span& tokens) const {
	const auto ast = parser->parse(tokens);
	return ast.node
		? parsing_result{ast_node{type, {}, {*ast.node}}, ast.rest_tokens}
		: parsing_result{{}, ast.rest_tokens};
}

}


text:
package com.tvd12.ezyfox.sfs2x.testing.command;

import static org.mockito.Matchers.any;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import java.util.List;

import org.testng.annotations.Test;

import com.google.common.collect.Lists;
import com.smartfoxserver.v2.buddylist.BuddyList;
import com.smartfoxserver.v2.buddylist.BuddyListManager;
import com.tvd12.ezyfox.core.entities.ApiBuddy;
import com.tvd12.ezyfox.sfs2x.command.impl.FetchBuddyListImpl;
import com.tvd12.ezyfox.sfs2x.entities.impl.ApiBuddyImpl;

import static org.testng.Assert.*;

/**
 * @author tavandung12
 * Created on May 31, 2016
 *
 */
public class FetchBuddyListImplTest extends BaseCommandTest2 {

    @SuppressWarnings({ "unchecked", "rawtypes" })
    @Test
    public void test() {
        when(extension.getParentZone()).thenReturn(zone);
        BuddyListManager buddyListManager = mock(BuddyListManager.class);
        BuddyList buddyList = mock(BuddyList.class);
        when(buddyList.getBuddies()).thenReturn((List)Lists.newArrayList(new ApiBuddyImpl("abc", true)));
        when(buddyListManager.getBuddyList(any(String.class))).thenReturn(buddyList);
        when(zone.getBuddyListManager()).thenReturn(buddyListManager);
        FetchBuddyListImpl command = new FetchBuddyListImpl(context, api, extension);
        List<ApiBuddy> buddies = command.user(user)
            .user(USER_NAME).execute();
        assertEquals(buddies.size(), 1);

    }

}


text:
export {handleSubmissionError} from './errors';
export {
  FinalCheckbox,
  FinalDropdown,
  FinalField,
  FinalInput,
  FinalRadio,
  FinalSubmitButton,
  FinalTextArea,
  FormFieldAdapter,
  unsortedArraysEqual,
} from './fields';
export {default as validators} from './validators';
export {default as parsers} from './parsers';
export {default as formatters} from './formatters';
export {getChangedValues, FieldCondition, handleSubmitError} from './final-form';
export {default as UnloadPrompt, FinalUnloadPrompt} from './unload';


text:
#import "AppDelegate.h"
#import "objc/runtime.h"
#import "GooglePlus.h"

/** Switch to Sign-In SDK.
 @date July 19, 2015
 @author Eddy Verbruggen
 */

/**
  Updates to be more aligned with updated Android version and with Google.
 @date March 15, 2015
 @author Sam Muggleworth (PointSource, LLC)
 */

// need to swap out a method, so swizzling it here
static void swizzleMethod(Class class, SEL destinationSelector, SEL sourceSelector);

@implementation AppDelegate (IdentityUrlHandling)

+ (void)load {
  swizzleMethod([AppDelegate class],
                @selector(application:openURL:sourceApplication:annotation:),
                @selector(identity_application:openURL:sourceApplication:annotation:));
}

/** Google Sign-In SDK
 @date July 19, 2015
 */
- (BOOL)identity_application: (UIApplication *)application
                     openURL: (NSURL *)url
           sourceApplication: (NSString *)sourceApplication
                  annotation: (id)annotation {
    GooglePlus* gp = (GooglePlus*)[[self.viewController pluginObjects] objectForKey:@"GooglePlus"];

    if ([gp isSigningIn]) {
        gp.isSigningIn = NO;
        return [[GIDSignIn sharedInstance] handleURL:url sourceApplication:sourceApplication annotation:annotation];
    } else {
        // call super
        return [self identity_application:application openURL:url sourceApplication:sourceApplication annotation:annotation];
    }
}
-(BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *,id> *)options{
    return [[GIDSignIn sharedInstance] handleURL:url
                               sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
                                      annotation:options[UIApplicationOpenURLOptionsSourceApplicationKey]];
}

@end

@implementation GooglePlus

// If this returns false, you better not call the login function because of likely app rejection by Apple,
// see https://code.google.com/p/google-plus-platform/issues/detail?id=900
// Update: should be fine since we use the GoogleSignIn framework instead of the GooglePlus framework
- (void) isAvailable:(CDVInvokedUrlCommand*)command {
  CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsBool:YES];
  [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

- (void) login:(CDVInvokedUrlCommand*)command {
  self.isSigningIn = YES;
  [[self getGIDSignInObject:command] signIn];
}

/** Get Google Sign-In object
 @date July 19, 2015
 */
- (void) trySilentLogin:(CDVInvokedUrlCommand*)command {
    self.isSigningIn = YES;
    [[self getGIDSignInObject:command] signInSilently];
}

/** Get Google Sign-In object
 @date July 19, 2015
 @date updated March 15, 2015 (@author PointSource,LLC)
 */
- (GIDSignIn*) getGIDSignInObject:(CDVInvokedUrlCommand*)command {
    _callbackId = command.callbackId;
    NSDictionary* options = [command.arguments objectAtIndex:0];
    NSString *reversedClientId = [self getreversedClientId];

    if (reversedClientId == nil) {
        CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"Could not find REVERSED_CLIENT_ID url scheme in app .plist"];
        [self.commandDelegate sendPluginResult:pluginResult callbackId:_callbackId];
        return nil;
    }

    NSString *clientId = [self reverseUrlScheme:reversedClientId];

    NSString* scopesString = [options objectForKey:@"scopes"];
    NSString* serverClientId = [options objectForKey:@"webClientId"];
    BOOL offline = [options objectForKey:@"offline"];

    GIDSignIn *signIn = [GIDSignIn sharedInstance];
    signIn.clientID = clientId;

    if (serverClientId != nil && offline) {
      signIn.serverClientID = serverClientId;
    }

    signIn.allowsSignInWithBrowser = NO; // Otherwise your app get rejected
    signIn.uiDelegate = self;
    signIn.delegate = self;

    // default scopes are email and profile
    if (scopesString != nil) {
        NSArray* scopes = [scopesString componentsSeparatedByString:@" "];
        [signIn setScopes:scopes];
    }
    [signIn setAllowsSignInWithBrowser:NO]; // disabling as this may be a rejection reason for Apple
    [signIn setAllowsSignInWithWebView:YES]; // assuming this should be fine
    return signIn;
}

- (NSString*) reverseUrlScheme:(NSString*)scheme {
  NSArray* originalArray = [scheme componentsSeparatedByString:@"."];
  NSArray* reversedArray = [[originalArray reverseObjectEnumerator] allObjects];
  NSString* reversedString = [reversedArray componentsJoinedByString:@"."];
  return reversedString;
}

- (NSString*) getreversedClientId {
  NSArray* URLTypes = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleURLTypes"];

  if (URLTypes != nil) {
    for (NSDictionary* dict in URLTypes) {
      NSString *urlName = [dict objectForKey:@"CFBundleURLName"];
      if ([urlName isEqualToString:@"REVERSED_CLIENT_ID"]) {
        NSArray* URLSchemes = [dict objectForKey:@"CFBundleURLSchemes"];
        if (URLSchemes != nil) {
          return [URLSchemes objectAtIndex:0];
        }
      }
    }
  }
  return nil;
}

- (void) logout:(CDVInvokedUrlCommand*)command {
  [[GIDSignIn sharedInstance] signOut];
  CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"logged out"];
  [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

- (void) disconnect:(CDVInvokedUrlCommand*)command {
  [[GIDSignIn sharedInstance] disconnect];
  CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:@"disconnected"];
  [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

- (void) share_unused:(CDVInvokedUrlCommand*)command {
  // for a rainy day.. see for a (limited) example https://github.com/vleango/GooglePlus-PhoneGap-iOS/blob/master/src/ios/GPlus.m
}

#pragma mark - GIDSignInDelegate
/** Google Sign-In SDK
 @date July 19, 2015
 */
- (void)signIn:(GIDSignIn *)signIn didSignInForUser:(GIDGoogleUser *)user withError:(NSError *)error {
    if (error) {
        CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsString:error.localizedDescription];
        [self.commandDelegate sendPluginResult:pluginResult callbackId:_callbackId];
    } else {
        NSString *email = user.profile.email;
        NSString *idToken = user.authentication.idToken;
        NSString *accessToken = user.authentication.accessToken;
        NSString *refreshToken = user.authentication.refreshToken;
        NSString *userId = user.userID;
        NSString *serverAuthCode = user.serverAuthCode != nil ? user.serverAuthCode : @"";
        NSURL *imageUrl = [user.profile imageURLWithDimension:120]; // TODO pass in img size as param, and try to sync with Android
        NSDictionary *result = @{
                       @"email"           : email,
                       @"idToken"         : idToken,
                       @"serverAuthCode"  : serverAuthCode,
                       @"accessToken"     : accessToken,
                       @"refreshToken"    : refreshToken,
                       @"userId"          : userId,
                       @"displayName"     : user.profile.name ? : [NSNull null],
                       @"imageUrl"        : imageUrl ? imageUrl.absoluteString : [NSNull null],
                       };

        CDVPluginResult * pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:result];
        [self.commandDelegate sendPluginResult:pluginResult callbackId:_callbackId];
    }
}

/** Google Sign-In SDK
 @date July 19, 2015
 */
- (void)signIn:(GIDSignIn *)signIn presentViewController:(UIViewController *)viewController {
    [self.viewController presentViewController:viewController animated:YES completion:nil];
}

/** Google Sign-In SDK
 @date July 19, 2015
 */
- (void)signIn:(GIDSignIn *)signIn dismissViewController:(UIViewController *)viewController {
    [self.viewController dismissViewControllerAnimated:YES completion:nil];
}

#pragma mark Swizzling

@end

static void swizzleMethod(Class class, SEL destinationSelector, SEL sourceSelector) {
  Method destinationMethod = class_getInstanceMethod(class, destinationSelector);
  Method sourceMethod = class_getInstanceMethod(class, sourceSelector);

  // If the method doesn't exist, add it.  If it does exist, replace it with the given implementation.
  if (class_addMethod(class, destinationSelector, method_getImplementation(sourceMethod), method_getTypeEncoding(sourceMethod))) {
    class_replaceMethod(class, destinationSelector, method_getImplementation(destinationMethod), method_getTypeEncoding(destinationMethod));
  } else {
    method_exchangeImplementations(destinationMethod, sourceMethod);
  }
}


text:
using System;

class EvenDifferences
{
    static void Main()
    {
        string[] input = Console.ReadLine().Split(' ');
        long[] numbers = new long[input.Length];
        for (int i = 0; i < numbers.Length; i++)
        {
            numbers[i] = int.Parse(input[i]);
        }
        long result = 0;
        int startIndex = 1;
        while (startIndex < numbers.Length)
        {
            long difference = Math.Max(numbers[startIndex], numbers[startIndex - 1]) - Math.Min(numbers[startIndex], numbers[startIndex - 1]);
            if (difference % 2 == 0)
            {
                startIndex += 2;
                result += difference;
            }
            else
            {
                startIndex++;
            }
        }
        Console.WriteLine(result);
    }
}


text:
function [Priors, Mu, Sigma] = EM_init_kmeans(Data, nbStates)
%
% This function initializes the parameters of a Gaussian Mixture Model
% (GMM) by using k-means clustering algorithm.
%
% Author:	Sylvain Calinon, 2009
%			http://programming-by-demonstration.org
%
% Inputs -----------------------------------------------------------------
%   o Data:     D x N array representing N datapoints of D dimensions.
%   o nbStates: Number K of GMM components.
% Outputs ----------------------------------------------------------------
%   o Priors:   1 x K array representing the prior probabilities of the
%               K GMM components.
%   o Mu:       D x K array representing the centers of the K GMM components.
%   o Sigma:    D x D x K array representing the covariance matrices of the
%               K GMM components.
% Comments ---------------------------------------------------------------
%   o This function uses the 'kmeans' function from the MATLAB Statistics
%     toolbox. If you are using a version of the 'netlab' toolbox that also
%     uses a function named 'kmeans', please rename the netlab function to
%     'kmeans_netlab.m' to avoid conflicts.

[nbVar, nbData] = size(Data);

%Use of the 'kmeans' function from the MATLAB Statistics toolbox
%[Data_id, Centers] = kmeans(Data', nbStates);
[Data_id, Centers] = kmeansML(nbStates, Data);
Data_id = Data_id';
Centers = Centers';

Mu = Centers';
for i=1:nbStates
  idtmp = find(Data_id==i);
  Priors(i) = length(idtmp);
  Sigma(:,:,i) = cov([Data(:,idtmp) Data(:,idtmp)]');
  %Add a tiny variance to avoid numerical instability
  Sigma(:,:,i) = Sigma(:,:,i) + 1E-5.*diag(ones(nbVar,1));
end
Priors = Priors ./ sum(Priors);


text:
namespace WizBot.Services.Currency;

public enum CurrencyType
{
    Default
}


text:
Phasellus nec tortor non sapien luctus iaculis nec et erat. Curabitur dignissim ligula id tortor placerat, eleifend finibus lacus faucibus. Pellentesque eros nulla, ullamcorper nec dui non, dignissim venenatis nisi. Aliquam eleifend id libero sit amet laoreet. Aenean eu egestas.

###### Suspendisse commodo imperdiet blandit. Quisque sollicitudin quis ligula rhoncus pulvinar. In eget est ac lectus.

Phasellus nec tortor non sapien luctus iaculis nec et erat. Curabitur dignissim ligula id tortor placerat, eleifend finibus lacus faucibus. Pellentesque eros nulla, ullamcorper nec dui non, dignissim venenatis nisi. Aliquam eleifend id libero sit amet laoreet. Aenean eu egestas.

## Nam ut sagittis lectus. Curabitur.

### Interdum et malesuada fames ac.

#### Sed congue mi vitae dui.

sajdnsaf

# Curabitur mollis eget orci nec dignissim. Cras sed interdum orci.

###### Suspendisse commodo imperdiet blandit. Quisque sollicitudin quis ligula rhoncus pulvinar. In eget est ac lectus.

## Cras a dui et est.