This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Lucene.Net.Analysis.Standard; | |
using Lucene.Net.Documents; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Raven.Tests.FileSystem.Notifications.NotificationsReceivedWhenFileRenamed 15414 | |
Raven.Tests.FileSystem.Notifications.NotificationReceivedWhenFileUpdated 1019 | |
Raven.Tests.FileSystem.Notifications.NotificationsIsReceivedWhenConfigIsUpdated 684 | |
Raven.Tests.FileSystem.Notifications.NotificationsIsReceivedWhenConfigIsDeleted 783 | |
Raven.Tests.FileSystem.Notifications.NotificationReceivedWhenFileDeleted 908 | |
Raven.Tests.FileSystem.Notifications.NotificationsAreOnlyReceivedForFilesInGivenFolder 2552 | |
Raven.Tests.FileSystem.Notifications.NotificationReceivedWhenFileAdded 906 | |
Raven.Tests.FileSystem.StorageOperationsTests.Should_remove_file_deletion_config_after_storage_cleanup 746 | |
Raven.Tests.FileSystem.StorageOperationsTests.Should_resume_file_renaming_from_client 914 | |
Raven.Tests.FileSystem.StorageOperationsTests.Should_not_delete_downloading_file_if_synchronization_retry_is_being_performed 723 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<meta charset="utf-8"> | |
<title>HyParView visualization</title> | |
<link rel="stylesheet" href="http://cpettitt.github.io/project/dagre-d3/latest/demo/demo.css"> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="http://cpettitt.github.io/project/dagre-d3/latest/dagre-d3.js"></script> | |
<style id="css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public void CanQueryMapReduceIndex_WithUpdates() | |
{ | |
using (var store = NewDocumentStore()) | |
{ | |
store.DatabaseCommands.PutIndex("TagCloud", | |
new IndexDefinition | |
{ | |
Map = | |
@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Net.Security; | |
using System.ServiceModel; | |
using System.ServiceModel.Discovery; | |
using System.Text; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConcurrentLeastFrequentlyUse<T> where T : class | |
{ | |
private readonly int[] generationSizes; | |
private readonly ConcurrentQueue<T>[] queues; | |
public ConcurrentLeastFrequentlyUse(params int[] generationSizes) | |
{ | |
this.generationSizes = generationSizes; | |
queues =new ConcurrentQueue<T>[generationSizes.Length]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public T GetCache<T>(string id) | |
{ | |
return Cache[id] ?? | |
Cache[id] = Session.Get<T>(id); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ravenConsole | |
{ | |
using System; | |
using System.Linq; | |
using Raven.Client.Document; | |
using Raven.Client.Indexes; | |
using Xunit; | |
public class DocumentsTests | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Isam.Esent.Interop; | |
namespace EsentSize | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
results = RavenSession.Query<Suppliers_QueryIndex.ReduceResult, Suppliers_QueryIndex>() | |
.Where(x => x.LocationName == location) | |
.Search(x => x.Query, string.Join(" ", suggestions)) | |
.Search(x => x.Query, term +"*") | |
.Take(5 - ravenResults.Count) | |
.As<Supplier>() | |
.ToList(); |
OlderNewer