<commit_before>package handlers_test

import (
    "bytes"
    "encoding/json"
    "errors"
    "net/http"
    "net/http/httptest"

    "github.com/cloudfoundry-incubator/notifications/models"
    "github.com/cloudfoundry-incubator/notifications/test_helpers/fakes"
    "github.com/cloudfoundry-incubator/notifications/web/handlers"
    "github.com/cloudfoundry-incubator/notifications/web/params"
    "github.com/cloudfoundry-incubator/notifications/web/services"
    "github.com/dgrijalva/jwt-go"
    "github.com/pivotal-cf/notifications/config"
    "github.com/ryanmoran/stack"

    . "github.com/onsi/ginkgo"
    . "github.com/onsi/gomega"
)

var _ = Describe("UpdateSpecificUserPreferences", func() {
    Describe("Execute", func() {

        var handler handlers.UpdateSpecificUserPreferences
        var writer *httptest.ResponseRecorder
        var request *http.Request
        var fakeDBConn *fakes.FakeDBConn
        var context stack.Context
        var updater *fakes.FakePreferenceUpdater
        var userGUID string
        var errorWriter *fakes.FakeErrorWriter

        BeforeEach(func() {

            fakeDBConn = &fakes.FakeDBConn{}
            builder := services.NewPreferencesBuilder()
            builder.Add(models.Preference{
                ClientID: "raptors",
                KindID:   "door-opening",
                Email:    false,
            })
            builder.Add(models.Preference{
                ClientID: "raptors",
                KindID:   "feeding-time",
                Email:    true,<commit_msg>Fixes import error<commit_after>package handlers_test

import (
    "bytes"
    "encoding/json"
    "errors"
    "net/http"
    "net/http/httptest"

    "github.com/cloudfoundry-incubator/notifications/config"
    "github.com/cloudfoundry-incubator/notifications/models"
    "github.com/cloudfoundry-incubator/notifications/test_helpers/fakes"
    "github.com/cloudfoundry-incubator/notifications/web/handlers"
    "github.com/cloudfoundry-incubator/notifications/web/params"
    "github.com/cloudfoundry-incubator/notifications/web/services"
    "github.com/dgrijalva/jwt-go"
    "github.com/ryanmoran/stack"

    . "github.com/onsi/ginkgo"
    . "github.com/onsi/gomega"
)

var _ = Describe("UpdateSpecificUserPreferences", func() {
    Describe("Execute", func() {

        var handler handlers.UpdateSpecificUserPreferences
        var writer *httptest.ResponseRecorder
        var request *http.Request
        var fakeDBConn *fakes.FakeDBConn
        var context stack.Context
        var updater *fakes.FakePreferenceUpdater
        var userGUID string
        var errorWriter *fakes.FakeErrorWriter

        BeforeEach(func() {

            fakeDBConn = &fakes.FakeDBConn{}
            builder := services.NewPreferencesBuilder()
            builder.Add(models.Preference{
                ClientID: "raptors",
                KindID:   "door-opening",
                Email:    false,
            })
            builder.Add(models.Preference{
                ClientID: "raptors",
                KindID:   "feeding-time",
                Email:    true,
{'fraction_non_alphanumeric': 0.1037037037037037, 'fraction_numerical': 0.0, 'mean_word_length': 2.4094401756311745, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6811661', 'n_tokens_mistral': 966, 'n_tokens_neox': 937, 'n_words': 133}