Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit a5c7ea6

Browse files
authored
Re-licensing StarSpace to MIT (#210)
* Re-licensing StarSpace to MIT
1 parent 89a0767 commit a5c7ea6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+138
-268
lines changed

LICENSE.md

+17-26
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
1-
BSD License
1+
MIT License
22

3-
For StarSpace software
3+
Copyright (c) Facebook, Inc. and its affiliates.
44

5-
Copyright (c) 2016-present, Facebook, Inc. All rights reserved.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
611

7-
Redistribution and use in source and binary forms, with or without modification,
8-
are permitted provided that the following conditions are met:
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
914

10-
* Redistributions of source code must retain the above copyright notice, this
11-
list of conditions and the following disclaimer.
12-
13-
* Redistributions in binary form must reproduce the above copyright notice,
14-
this list of conditions and the following disclaimer in the documentation
15-
and/or other materials provided with the distribution.
16-
17-
* Neither the name Facebook nor the names of its contributors may be used to
18-
endorse or promote products derived from this software without specific
19-
prior written permission.
20-
21-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

PATENTS

-33
This file was deleted.

examples/classification_ag_news.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2016-present, Facebook, Inc.
4-
# All rights reserved.
5-
#
6-
# This source code is licensed under the BSD-style license found in the
7-
# LICENSE file in the root directory of this source tree. An additional grant
8-
# of patent rights can be found in the PATENTS file in the same directory.
3+
# Copyright (c) Facebook, Inc. and its affiliates.
94
#
5+
# This source code is licensed under the MIT license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
108

119
myshuf() {
1210
perl -MList::Util=shuffle -e 'print shuffle(<>);' "$@";

examples/image_feature_example_cifar10.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2016-present, Facebook, Inc.
4-
# All rights reserved.
5-
#
6-
# This source code is licensed under the BSD-style license found in the
7-
# LICENSE file in the root directory of this source tree. An additional grant
8-
# of patent rights can be found in the PATENTS file in the same directory.
3+
# Copyright (c) Facebook, Inc. and its affiliates.
94
#
5+
# This source code is licensed under the MIT license found in the
6+
# LICENSE file in the root directory of this source tree.
107

118
DATASET=cifar10
129

examples/multi_relation_example.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2016-present, Facebook, Inc.
4-
# All rights reserved.
5-
#
6-
# This source code is licensed under the BSD-style license found in the
7-
# LICENSE file in the root directory of this source tree. An additional grant
8-
# of patent rights can be found in the PATENTS file in the same directory.
3+
# Copyright (c) Facebook, Inc. and its affiliates.
94
#
5+
# This source code is licensed under the MIT license found in the
6+
# LICENSE file in the root directory of this source tree.
107

118
MODELDIR=/tmp/starspace/models
129
DATADIR=/tmp/starspace/data

examples/recomm_user_artists.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2016-present, Facebook, Inc.
4-
# All rights reserved.
3+
# Copyright (c) Facebook, Inc. and its affiliates.
54
#
6-
# This source code is licensed under the BSD-style license found in the
7-
# LICENSE file in the root directory of this source tree. An additional grant
8-
# of patent rights can be found in the PATENTS file in the same directory.
5+
# This source code is licensed under the MIT license found in the
6+
# LICENSE file in the root directory of this source tree.
97
#
108
# This scripts provides an example of user/artists recommendation on the
119
# Last.FM (http://www.lastfm.com) dataset

examples/wikipedia_article_search.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2016-present, Facebook, Inc.
4-
# All rights reserved.
5-
#
6-
# This source code is licensed under the BSD-style license found in the
7-
# LICENSE file in the root directory of this source tree. An additional grant
8-
# of patent rights can be found in the PATENTS file in the same directory.
3+
# Copyright (c) Facebook, Inc. and its affiliates.
94
#
5+
# This source code is licensed under the MIT license found in the
6+
# LICENSE file in the root directory of this source tree.
107

118
DATASET=(
129
wikipedia

examples/wikipedia_article_search_full.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2016-present, Facebook, Inc.
4-
# All rights reserved.
5-
#
6-
# This source code is licensed under the BSD-style license found in the
7-
# LICENSE file in the root directory of this source tree. An additional grant
8-
# of patent rights can be found in the PATENTS file in the same directory.
3+
# Copyright (c) Facebook, Inc. and its affiliates.
94
#
5+
# This source code is licensed under the MIT license found in the
6+
# LICENSE file in the root directory of this source tree.
107

118
DATASET=(
129
wikipedia

examples/wikipedia_sentence_matching.sh

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2016-present, Facebook, Inc.
4-
# All rights reserved.
5-
#
6-
# This source code is licensed under the BSD-style license found in the
7-
# LICENSE file in the root directory of this source tree. An additional grant
8-
# of patent rights can be found in the PATENTS file in the same directory.
3+
# Copyright (c) Facebook, Inc. and its affiliates.
94
#
5+
# This source code is licensed under the MIT license found in the
6+
# LICENSE file in the root directory of this source tree.
107

118
DATASET=(
129
wikipedia

examples/wikipedia_sentence_matching_full.sh

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
#!/usr/bin/env bash
22
#
3-
# Copyright (c) 2016-present, Facebook, Inc.
4-
# All rights reserved.
5-
#
6-
# This source code is licensed under the BSD-style license found in the
7-
# LICENSE file in the root directory of this source tree. An additional grant
8-
# of patent rights can be found in the PATENTS file in the same directory.
3+
# Copyright (c) Facebook, Inc. and its affiliates.
94
#
5+
# This source code is licensed under the MIT license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
108

119
DATASET=(
1210
wikipedia

makefile

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#
2-
# Copyright (c) 2016-present, Facebook, Inc.
3-
# All rights reserved.
2+
# Copyright (c) Facebook, Inc. and its affiliates.
43
#
5-
# This source code is licensed under the BSD-style license found in the
6-
# LICENSE file in the root directory of this source tree. An additional grant
7-
# of patent rights can be found in the PATENTS file in the same directory.
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
86
#
97

108
CXX = g++

src/apps/embed_doc.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
#include "../starspace.h"

src/apps/print_ngrams.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
#include "../starspace.h"

src/apps/query_nn.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
#include "../starspace.h"

src/apps/query_predict.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
#include "../starspace.h"

src/data.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

10-
118
#include "data.h"
129
#include "utils/utils.h"
1310
#include <string>

src/data.h

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
/* Copyright (c) 2016-present, Facebook, Inc.
2-
* All rights reserved.
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
33
*
4-
* This is the basic class of internal data handler.
5-
* It loads data from file and stores it in internal format for easy access
6-
* at training/testing time.
7-
*
8-
* It also provides random RHS sampling for negative sampling in training.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
96
*/
107

118
#pragma once

src/dict.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
#include "dict.h"

src/dict.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
/**

src/doc_data.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108

@@ -15,7 +13,7 @@
1513
#include <fstream>
1614
#include <assert.h>
1715
#include <numeric>
18-
#include <stdlib.h>
16+
#include <stdlib.h>
1917

2018
using namespace std;
2119

src/doc_data.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
/**

src/doc_parser.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* Copyright (c) 2016-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates.
43
*
5-
* This source code is licensed under the BSD-style license found in the
6-
* LICENSE file in the root directory of this source tree. An additional grant
7-
* of patent rights can be found in the PATENTS file in the same directory.
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
86
*/
97

108
#include "doc_parser.h"

0 commit comments

Comments
 (0)