Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c2e2d67

Browse files
committed
Update copyright to 2018.
1 parent 6a03852 commit c2e2d67

48 files changed

Lines changed: 121 additions & 143 deletions

Some content is hidden

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

LICENSE.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2015, The MITRE Corporation
1+
Copyright (c) 2018, The MITRE Corporation
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without
@@ -8,7 +8,7 @@ modification, are permitted provided that the following conditions are met:
88
* Redistributions in binary form must reproduce the above copyright
99
notice, this list of conditions and the following disclaimer in the
1010
documentation and/or other materials provided with the distribution.
11-
* Neither the name of The MITRE Corporation nor the
11+
* Neither the name of The MITRE Corporation nor the
1212
names of its contributors may be used to endorse or promote products
1313
derived from this software without specific prior written permission.
1414

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import maec
55

66
project = u'python-maec'
7-
copyright = u'2014, The MITRE Corporation'
7+
copyright = u'2018, The MITRE Corporation'
88
version = maec.__version__
99
release = version
1010

maec/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2015, The MITRE Corporation. All rights reserved.
1+
# Copyright (c) 2018, The MITRE Corporation. All rights reserved.
22
# See LICENSE.txt for complete terms.
33

44
from __future__ import absolute_import
@@ -29,7 +29,7 @@ def _ns_to_prefix_input_namespaces(self):
2929
def to_xml_file(self, file, namespace_dict=None, custom_header=None):
3030
"""Export an object to an XML file. Only supports Package or Bundle
3131
objects at the moment.
32-
32+
3333
Args:
3434
file: the name of a file or a file-like object to write the output to.
3535
namespace_dict: a dictionary of mappings of additional XML namespaces to

maec/analytics/distance.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MAEC Distance Measure-related Classes - BETA
2-
# Copyright (c) 2015, The MITRE Corporation
2+
# Copyright (c) 2018, The MITRE Corporation
33
# All rights reserved
44

55
# See LICENSE.txt for complete terms
@@ -139,7 +139,7 @@ def create_object_vector(self, object, static_feature_dict, callback_function =
139139
# Callback function parameters : feature name, existing feature value, new feature value
140140
elif callback_function:
141141
existing_value = static_feature_dict[feature_name]
142-
static_feature_dict[feature_name] = callback_function(feature_name, existing_value, feature_value)
142+
static_feature_dict[feature_name] = callback_function(feature_name, existing_value, feature_value)
143143

144144
else:
145145
static_feature_dict[feature_name] = feature_value
@@ -251,7 +251,7 @@ def bin_list(self, numeric_value, numeric_list, n=10):
251251
return bin_vector
252252
max_list = max(numeric_list)
253253
min_list = min(numeric_list)
254-
bucket_size = (max_list-min_list)/n
254+
bucket_size = (max_list-min_list)/n
255255
bin_value = int(math.floor((numeric_value - min_list)/bucket_size))
256256
if bin_value == n:
257257
bin_value -= 1
@@ -455,7 +455,7 @@ def create_static_result_vector(self, static_vector):
455455
bin = self.bin_list(normalized_value, normalized_items, feature_options_dict['number of bins'])
456456
else:
457457
bin = self.bin_list(normalized_value, normalized_items)
458-
results_vector.append(bin)
458+
results_vector.append(bin)
459459
elif normalized_value is not None:
460460
results_vector.append(normalized_value)
461461
else:
@@ -580,7 +580,7 @@ def calculate(self):
580580
self.perform_calculation()
581581

582582
def print_distances(self, file_object, default_label = 'md5', delimiter = ','):
583-
'''Print the distances between the Malware Subjects in delimited matrix format
583+
'''Print the distances between the Malware Subjects in delimited matrix format
584584
to a File-like object.
585585
586586
Try to use the MD5s of the Malware Subjects as the default label.
@@ -611,5 +611,3 @@ def print_distances(self, file_object, default_label = 'md5', delimiter = ','):
611611
for distance_string in distance_strings:
612612
file_object.write(distance_string + "\n")
613613
file_object.flush()
614-
615-

maec/analytics/static_features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# MAEC Static Features List
2-
# Copyright (c) 2015, The MITRE Corporation
2+
# Copyright (c) 2018, The MITRE Corporation
33
# All rights reserved
44

55
static_features_dict = {'file_name' : {'feature_name' : 'file_name'},

maec/bindings/maec_bundle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2015, The MITRE Corporation. All rights reserved.
1+
# Copyright (c) 2018, The MITRE Corporation. All rights reserved.
22
# See LICENSE.txt for complete terms.
33

44
import sys

maec/bindings/maec_container.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2015, The MITRE Corporation. All rights reserved.
1+
# Copyright (c) 2018, The MITRE Corporation. All rights reserved.
22
# See LICENSE.txt for complete terms.
33

44
import sys
@@ -266,5 +266,5 @@ def main():
266266

267267
GDSClassesMapping = {
268268
"ContainerType": ContainerType,
269-
"PackageListType": PackageListType
269+
"PackageListType": PackageListType
270270
}

maec/bindings/maec_package.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2015, The MITRE Corporation. All rights reserved.
1+
# Copyright (c) 2018, The MITRE Corporation. All rights reserved.
22
# See LICENSE.txt for complete terms.
33

44
import sys
@@ -1012,7 +1012,7 @@ def __init__(self, id=None, Malware_Instance_Object_Attributes=None, Label=None,
10121012
self.Malware_Instance_Object_Attributes = Malware_Instance_Object_Attributes
10131013
self.Configuration_Details = Configuration_Details
10141014
self.Minor_Variants = Minor_Variants
1015-
self.Development_Environment = Development_Environment
1015+
self.Development_Environment = Development_Environment
10161016
self.Field_Data = Field_Data
10171017
self.Analyses = Analyses
10181018
self.Findings_Bundles = Findings_Bundles

maec/bindings/mmdef_1_2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright (c) 2015, The MITRE Corporation. All rights reserved.
2+
# Copyright (c) 2018, The MITRE Corporation. All rights reserved.
33
# See LICENSE.txt for complete terms.
44

55
import sys
@@ -3256,7 +3256,7 @@ def parse(inFileName):
32563256
# Enable Python to collect the space used by the DOM.
32573257
doc = None
32583258
sys.stdout.write('<?xml version="1.0" ?>\n')
3259-
rootObj.export(sys.stdout, 0, name_=rootTag,
3259+
rootObj.export(sys.stdout, 0, name_=rootTag,
32603260
namespacedef_='')
32613261
return rootObj
32623262

maec/bundle/action_reference_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#MAEC Action Reference List Class
22

3-
#Copyright (c) 2015, The MITRE Corporation
3+
#Copyright (c) 2018, The MITRE Corporation
44
#All rights reserved
55

66
from cybox.core import ActionReference

0 commit comments

Comments
 (0)