CombinedText stringlengths 4 3.42M |
|---|
0a91143a-2e56-11e5-9284-b827eb9e62be
0a965e72-2e56-11e5-9284-b827eb9e62be
0a965e72-2e56-11e5-9284-b827eb9e62be |
fdc25722-2e56-11e5-9284-b827eb9e62be
fdc77cca-2e56-11e5-9284-b827eb9e62be
fdc77cca-2e56-11e5-9284-b827eb9e62be |
9f450452-2e55-11e5-9284-b827eb9e62be
9f4a3508-2e55-11e5-9284-b827eb9e62be
9f4a3508-2e55-11e5-9284-b827eb9e62be |
3ba73086-2e56-11e5-9284-b827eb9e62be
3bac7c08-2e56-11e5-9284-b827eb9e62be
3bac7c08-2e56-11e5-9284-b827eb9e62be |
7a6c99b4-2e56-11e5-9284-b827eb9e62be
7a71bc28-2e56-11e5-9284-b827eb9e62be
7a71bc28-2e56-11e5-9284-b827eb9e62be |
cab7c87c-2e55-11e5-9284-b827eb9e62be
cabce94c-2e55-11e5-9284-b827eb9e62be
cabce94c-2e55-11e5-9284-b827eb9e62be |
c58fb41e-2e54-11e5-9284-b827eb9e62be
c594e380-2e54-11e5-9284-b827eb9e62be
c594e380-2e54-11e5-9284-b827eb9e62be |
266f1a58-2e56-11e5-9284-b827eb9e62be
267441ea-2e56-11e5-9284-b827eb9e62be
267441ea-2e56-11e5-9284-b827eb9e62be |
38b19d02-2e57-11e5-9284-b827eb9e62be
38b6b800-2e57-11e5-9284-b827eb9e62be
38b6b800-2e57-11e5-9284-b827eb9e62be |
98a98c16-2e56-11e5-9284-b827eb9e62be
98aeab74-2e56-11e5-9284-b827eb9e62be
98aeab74-2e56-11e5-9284-b827eb9e62be |
d988ca0e-2e55-11e5-9284-b827eb9e62be
d98de1e2-2e55-11e5-9284-b827eb9e62be
d98de1e2-2e55-11e5-9284-b827eb9e62be |
868f9922-2e55-11e5-9284-b827eb9e62be
8694bc9a-2e55-11e5-9284-b827eb9e62be
8694bc9a-2e55-11e5-9284-b827eb9e62be |
f0f86f64-2e55-11e5-9284-b827eb9e62be
f0fd919c-2e55-11e5-9284-b827eb9e62be
f0fd919c-2e55-11e5-9284-b827eb9e62be |
96b3dbd8-2e55-11e5-9284-b827eb9e62be
96b8f64a-2e55-11e5-9284-b827eb9e62be
96b8f64a-2e55-11e5-9284-b827eb9e62be |
1a674338-2e57-11e5-9284-b827eb9e62be
1a6c75a6-2e57-11e5-9284-b827eb9e62be
1a6c75a6-2e57-11e5-9284-b827eb9e62be |
10d6b56a-2e57-11e5-9284-b827eb9e62be
10dc147e-2e57-11e5-9284-b827eb9e62be
10dc147e-2e57-11e5-9284-b827eb9e62be |
3e5a7e8c-2e56-11e5-9284-b827eb9e62be
3e5fa9ac-2e56-11e5-9284-b827eb9e62be
3e5fa9ac-2e56-11e5-9284-b827eb9e62be |
026b7f10-2e57-11e5-9284-b827eb9e62be
02709f72-2e57-11e5-9284-b827eb9e62be
02709f72-2e57-11e5-9284-b827eb9e62be |
c7daad3c-2e54-11e5-9284-b827eb9e62be
c7dfdbfe-2e54-11e5-9284-b827eb9e62be
c7dfdbfe-2e54-11e5-9284-b827eb9e62be |
395f33b0-2e55-11e5-9284-b827eb9e62be
39647a5a-2e55-11e5-9284-b827eb9e62be
39647a5a-2e55-11e5-9284-b827eb9e62be |
30f04bc4-2e55-11e5-9284-b827eb9e62be
30f5c702-2e55-11e5-9284-b827eb9e62be
30f5c702-2e55-11e5-9284-b827eb9e62be |
449daff8-2e56-11e5-9284-b827eb9e62be
44a2c68c-2e56-11e5-9284-b827eb9e62be
44a2c68c-2e56-11e5-9284-b827eb9e62be |
1c6908ce-2e57-11e5-9284-b827eb9e62be
1c6e35f6-2e57-11e5-9284-b827eb9e62be
1c6e35f6-2e57-11e5-9284-b827eb9e62be |
379c5f4e-2e55-11e5-9284-b827eb9e62be
37a200f2-2e55-11e5-9284-b827eb9e62be
37a200f2-2e55-11e5-9284-b827eb9e62be |
d8e5d4de-2e55-11e5-9284-b827eb9e62be
d8eaf752-2e55-11e5-9284-b827eb9e62be
d8eaf752-2e55-11e5-9284-b827eb9e62be |
26c1d766-2e56-11e5-9284-b827eb9e62be
26c757d6-2e56-11e5-9284-b827eb9e62be
26c757d6-2e56-11e5-9284-b827eb9e62be |
f8afc2bc-2e54-11e5-9284-b827eb9e62be
f8b4e17a-2e54-11e5-9284-b827eb9e62be
f8b4e17a-2e54-11e5-9284-b827eb9e62be |
a345b7f0-2e54-11e5-9284-b827eb9e62be
a34acf9c-2e54-11e5-9284-b827eb9e62be
a34acf9c-2e54-11e5-9284-b827eb9e62be |
58bdc0ea-2e56-11e5-9284-b827eb9e62be
58c2d99a-2e56-11e5-9284-b827eb9e62be
58c2d99a-2e56-11e5-9284-b827eb9e62be |
e82fe28c-2e54-11e5-9284-b827eb9e62be
e834ff9c-2e54-11e5-9284-b827eb9e62be
e834ff9c-2e54-11e5-9284-b827eb9e62be |
38b1d378-2e55-11e5-9284-b827eb9e62be
38b71db0-2e55-11e5-9284-b827eb9e62be
38b71db0-2e55-11e5-9284-b827eb9e62be |
c2e6af5a-2e55-11e5-9284-b827eb9e62be
c2ebc3fa-2e55-11e5-9284-b827eb9e62be
c2ebc3fa-2e55-11e5-9284-b827eb9e62be |
f8a7a2ce-2e56-11e5-9284-b827eb9e62be
f8acd172-2e56-11e5-9284-b827eb9e62be
f8acd172-2e56-11e5-9284-b827eb9e62be |
6afcc6d4-2e56-11e5-9284-b827eb9e62be
6b0215da-2e56-11e5-9284-b827eb9e62be
6b0215da-2e56-11e5-9284-b827eb9e62be |
b1a12026-2e56-11e5-9284-b827eb9e62be
b1a635f2-2e56-11e5-9284-b827eb9e62be
b1a635f2-2e56-11e5-9284-b827eb9e62be |
c3394e4e-2e56-11e5-9284-b827eb9e62be
c33e6be0-2e56-11e5-9284-b827eb9e62be
c33e6be0-2e56-11e5-9284-b827eb9e62be |
ff888d80-2e54-11e5-9284-b827eb9e62be
ff8dbe86-2e54-11e5-9284-b827eb9e62be
ff8dbe86-2e54-11e5-9284-b827eb9e62be |
// Copyright 2017 gf Author(https://github.com/gogf/gf). All Rights Reserved.
//
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file,
// You can obtain one at https://github.com/gogf/gf.
package glog
import (
"bytes"
"github.com/gogf/gf/tes... |
8aea9dd2-2e55-11e5-9284-b827eb9e62be
8aefba2e-2e55-11e5-9284-b827eb9e62be
8aefba2e-2e55-11e5-9284-b827eb9e62be |
28b23e02-2e57-11e5-9284-b827eb9e62be
28b75680-2e57-11e5-9284-b827eb9e62be
28b75680-2e57-11e5-9284-b827eb9e62be |
d80dc08a-2e55-11e5-9284-b827eb9e62be
d812dc1e-2e55-11e5-9284-b827eb9e62be
d812dc1e-2e55-11e5-9284-b827eb9e62be |
63ab3ca4-2e55-11e5-9284-b827eb9e62be
63b06c1a-2e55-11e5-9284-b827eb9e62be
63b06c1a-2e55-11e5-9284-b827eb9e62be |
cd0ff9f0-2e55-11e5-9284-b827eb9e62be
cd267b8a-2e55-11e5-9284-b827eb9e62be
cd267b8a-2e55-11e5-9284-b827eb9e62be |
467f87ca-2e55-11e5-9284-b827eb9e62be
4684d31a-2e55-11e5-9284-b827eb9e62be
4684d31a-2e55-11e5-9284-b827eb9e62be |
8128a888-2e56-11e5-9284-b827eb9e62be
812ddaf6-2e56-11e5-9284-b827eb9e62be
812ddaf6-2e56-11e5-9284-b827eb9e62be |
f8dbf30e-2e55-11e5-9284-b827eb9e62be
f8e12496-2e55-11e5-9284-b827eb9e62be
f8e12496-2e55-11e5-9284-b827eb9e62be |
1a4323b8-2e57-11e5-9284-b827eb9e62be
1a484578-2e57-11e5-9284-b827eb9e62be
1a484578-2e57-11e5-9284-b827eb9e62be |
590aabf8-2e56-11e5-9284-b827eb9e62be
590fcbce-2e56-11e5-9284-b827eb9e62be
590fcbce-2e56-11e5-9284-b827eb9e62be |
9a56f6da-2e55-11e5-9284-b827eb9e62be
9a5c283a-2e55-11e5-9284-b827eb9e62be
9a5c283a-2e55-11e5-9284-b827eb9e62be |
cbad2d8a-2e55-11e5-9284-b827eb9e62be
cbb2489c-2e55-11e5-9284-b827eb9e62be
cbb2489c-2e55-11e5-9284-b827eb9e62be |
c90781e2-2e56-11e5-9284-b827eb9e62be
c90ca046-2e56-11e5-9284-b827eb9e62be
c90ca046-2e56-11e5-9284-b827eb9e62be |
package handlers
import (
"fmt"
"github.com/Sirupsen/logrus"
"github.com/docker/engine-api/types"
goUUID "github.com/nu7hatch/gouuid"
"github.com/pkg/errors"
"github.com/rancher/agent/core/hostInfo"
"github.com/rancher/agent/model"
"github.com/rancher/agent/utilities/constants"
"github.com/rancher/agent/utili... |
package tcp
import (
"bufio"
"net"
"sync"
"time"
log "github.com/cihub/seelog"
"github.com/pkg/errors"
"github.com/schollz/croc/src/comm"
"github.com/schollz/croc/src/logger"
"github.com/schollz/croc/src/models"
)
type roomInfo struct {
receiver *comm.Comm
opened time.Time
}
type roomMap struct {
room... |
//
// Package eprinttools is a collection of structures and functions for working with the E-Prints REST API
//
// @author R. S. Doiel, <rsdoiel@caltech.edu>
//
// Copyright (c) 2017, Caltech
// All rights not granted herein are expressly reserved by Caltech.
//
// Redistribution and use in source and binary forms, wit... |
package helpers
import (
"git.lukas.moe/sn0w/Karen/cache"
"github.com/bwmarrin/discordgo"
"strings"
"fmt"
"time"
"strconv"
)
var botAdmins = []string{
"157834823594016768", // 0xFADED#3237
"165345731706748929", // Serraniel#8978
}
// IsBotAdmin checks if $id is in $botAdmins
func IsBo... |
package pgghelpers
import (
"encoding/json"
"fmt"
"reflect"
"regexp"
"strings"
"sync"
"text/template"
"github.com/Masterminds/sprig"
"github.com/golang/protobuf/proto"
"github.com/golang/protobuf/protoc-gen-go/descriptor"
ggdescriptor "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/descript... |
// Copyright (c) 2012, Suryandaru Triandana <syndtr@gmail.com>
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package leveldb
import (
"encoding/binary"
"fmt"
)
type vType int
func (t vType) String() string {
switch t {
case tDe... |
package layouts
import (
"fmt"
"github.com/skelterjohn/geom"
"github.com/skelterjohn/go.uik"
)
type Flow struct {
uik.Foundation
childSizeHints map[*uik.Block]uik.SizeHint
childIndices map[*uik.Block]int
count int
size geom.Coord
sizeHint uik.SizeHint
Add chan *uik.Block
Remove chan *uik.Block
}
func ... |
// Copyright 2015 The Cockroach Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
package main
import (
"github.com/docker/containerd/api/grpc/types"
"github.com/docker/docker/pkg/integration/checker"
"github.com/go-check/check"
)
func (cs *ContainerdSuite) TestBusyboxTopExecEcho(t *check.C) {
bundleName := "busybox-top"
if err := CreateBusyboxBundle(bundleName, []string{"top"}); err != nil {... |
package storage
import (
"io"
"time"
"github.com/lxc/lxd/lxd/backup"
"github.com/lxc/lxd/lxd/cluster/request"
"github.com/lxc/lxd/lxd/instance"
"github.com/lxc/lxd/lxd/migration"
"github.com/lxc/lxd/lxd/operations"
"github.com/lxc/lxd/lxd/revert"
"github.com/lxc/lxd/lxd/state"
"github.com/lxc/lxd/lxd/storag... |
package kite
import (
"code.google.com/p/go.net/websocket"
"encoding/json"
"errors"
"flag"
"fmt"
"github.com/golang/groupcache"
"github.com/op/go-logging"
"io"
"koding/messaging/moh"
"koding/newkite/peers"
"koding/newkite/protocol"
"koding/newkite/utils"
"koding/tools/dnode"
stdlog "log"
"net"
"net/htt... |
package archiver
import (
"context"
"encoding/json"
"os"
"path"
"runtime"
"sort"
"time"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/internal/fs"
"github.com/restic/restic/internal/restic"
"golang.org/x/sync/errgroup"
)
// SelectByNameFunc... |
package rest
import (
"context"
"encoding/json"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"path"
"strings"
"golang.org/x/net/context/ctxhttp"
"github.com/restic/restic/internal/backend"
"github.com/restic/restic/internal/debug"
"github.com/restic/restic/internal/errors"
"github.com/restic/restic/inte... |
package main
import (
"bufio"
"encoding/binary"
"flag"
"fmt"
"io"
"log"
"math/rand"
"os"
)
var (
nevts = flag.Int("nevts", 100, "number of events to compute")
ievt = flag.Int("ievt", 0, "first event of the event loop")
fname = flag.String("o", "hpcsim.out", "path to output file to write")
simpkg = fla... |
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package database adds some useful functionality to a sql.DB.
// It is independent of the database driver and the
// DB schema.
package database
import (
"c... |
package display
import (
"strconv"
"unicode/utf8"
runewidth "github.com/mattn/go-runewidth"
"github.com/zyedidia/micro/internal/buffer"
"github.com/zyedidia/micro/internal/config"
"github.com/zyedidia/micro/internal/screen"
"github.com/zyedidia/micro/internal/util"
"github.com/zyedidia/tcell"
)
// The BufWin... |
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package feedback
import (
"encoding/hex"
"fmt"
"log"
"github.com/golang/dep/internal/gps"
)
// Constraint types
const ConsTypeConstraint = "constraint"
c... |
package sanitize
import "regexp"
var reStripName = regexp.MustCompile("[^\\w.-]")
const maxLength = 16
// Name returns a name with only allowed characters and a reasonable length
func Name(s string) string {
s = reStripName.ReplaceAllString(s, "")
nameLength := maxLength
if len(s) <= maxLength {
nameLength = l... |
package protobuf
import (
pb "github.com/dvyukov/go-fuzz/examples/protobuf/pb"
"github.com/golang/protobuf/proto"
)
func Fuzz(data []byte) int {
defer func() {
v := recover()
if v != nil {
str := ""
switch vv := v.(type) {
case string:
str = vv
case error:
str = vv.Error()
}
if str ==... |
package usergrid
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
"net/http"
"net/url"
"os"
"reflect"
"runtime"
"strings"
)
var (
API string
PAGE_SIZE int
ORGNAME string
APPNAME string
CLIENT_ID string
CLIENT_SECRET string
ENDPOINT string
... |
package design
import (
"crypto/md5"
"encoding/binary"
"math/rand"
"time"
"github.com/manveru/faker"
)
// RandomGenerator generates consistent random values of different types given a seed.
// The random values are consistent in that given the same seed the same random values get
// generated.
type RandomGenera... |
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, ... |
package http
import (
"bytes"
"context"
"fmt"
"io"
"io/ioutil"
"net/http"
"net/url"
"strconv"
"github.com/pilosa/pilosa"
)
// Ensure implementation implements inteface.
var _ pilosa.TranslateStore = (*TranslateStore)(nil)
// TranslateStore represents an implementation of TranslateStore that
// communicates... |
package httpseverywhere
import (
"bytes"
"encoding/gob"
"encoding/xml"
"regexp"
"strings"
"github.com/getlantern/golog"
"github.com/getlantern/tldextract"
)
var (
log = golog.LoggerFor("httpseverywhere")
extract = tldextract.New()
)
// rewrite changes an HTTP URL to rewrite.
type rewrite func(url strin... |
package hueupnp
import (
"bytes"
"errors"
"fmt"
"log"
"net"
"strings"
"text/template"
"golang.org/x/net/ipv4"
)
/**
stolen from amazon-echo-ha-bridge
String discoveryTemplate = "HTTP/1.1 200 OK\r\n" +
"CACHE-CONTROL: max-age=86400\r\n" +
"EXT:\r\n" +
"LOCATION: http://%s:%s/upnp/%s/setup.xml\r\n" +... |
package device
import (
"bufio"
"fmt"
"log"
"path/filepath"
"sync"
"time"
"github.com/jochenvg/go-udev"
"github.com/tarm/serial"
)
// Manager manages devices that are plugged into the system. It supports auto
// detection of devices.
//
// Serial ports are opened each for a device, and a clean API for commun... |
package proxy
import (
"bufio"
"context"
"fmt"
"io"
"net"
"net/http"
"strings"
"time"
"github.com/getlantern/errors"
"github.com/getlantern/lampshade"
"github.com/getlantern/netx"
"github.com/getlantern/proxy/filters"
"github.com/getlantern/reconn"
)
const (
connectRequest = "CONNECT %v HTTP/1.1\r\nHos... |
package slackbot
import (
"fmt"
"github.com/nlopes/slack"
"github.com/jguyomard/slackbot-links/src/links"
)
type Message struct {
originalMsg *slack.Msg // Message posted by user
extendedLinkMsg *slack.Msg // Message with extended links informations
}
func NewMessageFromEvent(eventData *slack.MessageEvent... |
package main
import (
"flag"
"fmt"
"go/build"
"os"
"path/filepath"
"runtime"
"strings"
"github.com/naoina/kocha"
)
// newCommand implements `command` interface for `new` command.
type newCommand struct {
flag *flag.FlagSet
}
// Name returns name of `new` command.
func (c *newCommand) Name() string {
retur... |
package pubsub
import (
"context"
"strings"
"sync"
"time"
"cloud.google.com/go/pubsub"
ctxNet "golang.org/x/net/context"
"github.com/golang/protobuf/proto"
"github.com/jpillora/backoff"
opentracing "github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/ext"
"github.com/sirupsen/log... |
//
// Copyright (c) 2016 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
package main
import (
"fmt"
"github.com/google/go-github/github"
"github.com/pkg/errors"
)
type PullRequests struct {
Repository *Repository `json:"repository" bson:"repository"`
Total int `json:"total" bson:"total"`
TotalMerged int `json:"total_merged" bson:"total_merged"`
Sen... |
package resource_test
import (
"bytes"
"errors"
"io/ioutil"
"net/http"
"net/url"
"os"
"path"
"path/filepath"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/ghttp"
"github.com/google/go-github/github"
"github.com/concourse/github-release-resource"
"github.com/concourse/gi... |
package terraform
import (
"bytes"
"errors"
"fmt"
"os"
"reflect"
"sort"
"strings"
"sync"
"testing"
"github.com/davecgh/go-spew/spew"
"github.com/google/go-cmp/cmp"
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/configs/configschema"
"github.com/h... |
package terraform
import (
"bytes"
"fmt"
"os"
"reflect"
"sort"
"strings"
"sync"
"testing"
"github.com/davecgh/go-spew/spew"
"github.com/zclconf/go-cty/cty"
"github.com/hashicorp/terraform/addrs"
"github.com/hashicorp/terraform/config/configschema"
)
func TestContext2Plan_basic(t *testing.T) {
m := test... |
// Copyright 2015, David Howden
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package index
import (
"reflect"
"strings"
"testing"
)
func stringToPath(s string) Path {
return stringSliceToPath(strings.Split(s, PathSeparator))
}
func stringSliceToPath(s [... |
// Package lg provides looking glass methods for selected looking glasses
// Cogent Carrier Looking Glass ASN 174
package lg
import (
"bufio"
"errors"
"io/ioutil"
"net/http"
"net/url"
"regexp"
"sort"
"strings"
)
// A Cogent represents a telia looking glass request
type Cogent struct {
Host string
IPv str... |
package main
import (
"database/sql"
"flag"
"fmt"
_ "github.com/mattn/go-sqlite3"
"goposm/element"
"goposm/parser"
"log"
"runtime"
"sort"
"sync"
)
type Entry struct {
Pos parser.BlockPosition
NodeFirst, NodeLast int64
WayFirst, WayLast int64
RelFirst, RelLast int64
}
type NotFound s... |
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package json
import (
"bytes"
"io"
"io/ioutil"
"log"
"net"
"net/http"
"net/http/httptest"
"reflect"
"strings"
"testing"
)
// Test values for the st... |
// Package goarabic contains utility functions for working with Arabic strings.
package goarabic
// Reverse returns its argument string reversed rune-wise left to right.
func Reverse(s string) string {
r := []rune(s)
for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 {
r[i], r[j] = r[j], r[i]
}
return string... |
/*-
* Copyright 2016 Square Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
// Copyright 2012 Marc-Antoine Ruel. All rights reserved.
// Use of this source code is governed under the Apache License, Version 2.0
// that can be found in the LICENSE file.
// Package subcommands permits a Go application to implement subcommands support
// similar to what is supported by the 'go' tool.
//
// The l... |
// Copyright 2015 Ka-Hing Cheung
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... |
// Package twilio provides internal utilities for the twilio-go client library.
package twilio
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"strconv"
"strings"
"github.com/google/go-querystring/query"
"github.com/pkg/errors"
)
// Error provides information about an unsuccessful request.
type E... |
// Copyright (C) 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
package lib
import (
"fmt"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials/stscreds"
"github.com/aws/aws-sdk-go/aws/defaults"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/iam"
"github.com/go-ini/ini"
"net/http"
"os"
"strings"
)
// IAM_ARN is the prefi... |
// Package db to connect to mongodb
package db
import (
"errors"
"fmt"
"github.com/MG-RAST/AWE/lib/conf"
mgo "github.com/MG-RAST/AWE/vendor/gopkg.in/mgo.v2"
"time"
)
var (
Connection connection
DbTimeout = time.Second * time.Duration(conf.MONGODB_TIMEOUT)
)
type connection struct {
dbname string
username... |
package sysexits
const {
OK int = 0 /* successful termination */
BASE int = 64 /* base value for error messages */
USAGE int = 64 /* command line usage error */
DATAERR int = 65 /* data format error */
NOINPUT int = 66 /* cannot open input */
NOUSER int = 67 /* addressee unknown */
NOHOST int = 68 /* ho... |
// Copyright 2016 The appc Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.