Skip to content

Commit

Permalink
fixes license years
Browse files Browse the repository at this point in the history
  • Loading branch information
sud335 committed Feb 22, 2024
1 parent a7287a2 commit a5fc2ba
Show file tree
Hide file tree
Showing 59 changed files with 82 additions and 134 deletions.
2 changes: 1 addition & 1 deletion benchmarking-tools/BD-Performance-Test/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Shreyas Nagare
Copyright (c) 2024 Carnegie Mellon University

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion benchmarking-tools/functional-testing-tool/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2021 Carnegie Mellon University
Copyright (c) 2024 Carnegie Mellon University

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 1 addition & 2 deletions buildingdepot/CentralReplica/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
Contains the definitions for all the RPC's that the DataService
calls in order to avoid talking to the CentralService all the time.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

import redis
from config import Config
from models import *
from mongoengine import connect
from socketserver import ThreadingMixIn
Expand Down
7 changes: 2 additions & 5 deletions buildingdepot/CentralReplica/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@
these tables can have any of the parameters defined within the class. Needs
them for the RPCs
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: See License file for details.
"""

from config import Config

from flask import current_app
from flask_login import UserMixin
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from mongoengine import *
from werkzeug.security import check_password_hash
from werkzeug.security import generate_password_hash, check_password_hash


Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
config file or falls back to the default one.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
services such as the main centralservice,auth service are
registered as blueprints.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/app/auth/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Contains all the forms for the CentralService authorization functions.
The two forms that are used are for login and for creating a new user.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
3 changes: 1 addition & 2 deletions buildingdepot/CentralService/app/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
The functionalities available are for registering a new user,logging in and
logging out.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

import binascii
import os
import sys
from datetime import datetime, timedelta
from flask import render_template, redirect, request
from flask import session, url_for, flash, make_response
Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/app/central/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
in the frontend of the CentralService such as the form to create new buildings,
tags,dataserivces etc.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/app/central/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Contains the definitions for all helper functions that are used by
the main CentralService.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/app/central/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
For example opening up http://localhost:81/central/tagtype on your installation
of BD will call the tagtype() function
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/app/models/cs_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Each class here is a Table in MongoDB where each value that is inserted into
these tables can have any of the paramteres defined within the class
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
9 changes: 1 addition & 8 deletions buildingdepot/CentralService/app/oauth_bd/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,17 @@
Contains all the class and method definitions required for the OAuth
token generation and verification
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

import binascii
import os
import sys
from bson.objectid import ObjectId
from datetime import datetime, timedelta
from flask import Flask, current_app, Blueprint
from flask import render_template, redirect, jsonify
from flask import session, request
from flask_oauthlib.client import OAuth
from mongoengine import *
from mongoengine.context_managers import switch_db
from uuid import uuid4
from werkzeug.security import gen_salt
from xmlrpc.client import ServerProxy

from . import oauth_bd
from .. import oauth, r
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
defined for any of the tagtypes that the template it is based on contains.
Buildings can also have metadata attached to them.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand All @@ -16,7 +16,6 @@

from .. import responses
from ..helper import gen_update, check_oauth
from ... import oauth
from ...auth.access_control import super_required
from ...models.cs_models import Building, BuildingTemplate, DataService

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,17 @@
For each of the tagtypes present in the template on which this building is
based on, can have multiple unique values defined for them.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

from flask import request, jsonify
from flask.views import MethodView

from .. import responses
from ..helper import get_email, check_oauth
from ... import oauth
from ...auth.access_control import super_required
from ..helper import check_oauth
from ...models.cs_models import Building, BuildingTemplate
from ...models.cs_models import TagType, DataService, User
from ...models.cs_models import TagType


class BuildingTagsService(MethodView):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
can be used by all buildings that are based on that specific building
template.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""
from flask import jsonify, request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This module handles the interactions with the buildingtemplate tagtypes. Takes care
of all the CRUD operations on buildingtemplate tagtypes.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
of all the CRUD operations on dataservices. Each dataservice will have a list
of buildings and admins that belong to it.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand All @@ -15,7 +15,6 @@

from .. import responses
from ..helper import xstr, gen_update, check_oauth
from ... import oauth
from ...auth.access_control import super_required
from ...models.cs_models import DataService

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
dataservice. It handles all the CRUD operations for the admins list
present in each dataservice.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand All @@ -15,9 +15,8 @@

from .. import responses
from ..helper import check_oauth
from ... import oauth
from ...auth.access_control import super_required
from ...models.cs_models import Building, DataService, User
from ...models.cs_models import DataService, User


class DataserviceAdminService(MethodView):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
dataservice. It handles all the CRUD operations for the buildings list
present in each dataservice.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand All @@ -15,7 +15,6 @@

from .. import responses
from ..helper import check_oauth
from ... import oauth
from ...auth.access_control import super_required
from ...models.cs_models import Building, DataService

Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/app/rest_api/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This module contains all the helper functions needed for the api's
such as conversion of timestamps, strings etc.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""
import base64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
This module handles setting up and managing notifications for a given ID.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand All @@ -13,7 +13,6 @@

from .. import responses
from ..helper import check_oauth, get_email
from ...auth.views import Client, Token
from ...models.cs_models import NotificationClientId


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
then this class must be extended in another file. After extending this class and implementing
'send', you must update cs_config to point to the implementation that should be loaded.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This module handles interacting with the underlying permission models.
It handles the required CRUD operations for permissions.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""
import sys
Expand All @@ -14,7 +14,7 @@

from .. import responses
from ..helper import get_email, check_oauth
from ... import r, oauth, permissions
from ... import r, permissions
from ...auth.access_control import permission_allowed
from ...auth.acl_cache import invalidate_permission
from ...models.cs_models import UserGroup, SensorGroup, Permission
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,19 @@
This module handles interacting with the underlying permission models.
It handles the required CRUD operations for permissions.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

import hashlib
import json
import os
import pika
import traceback
from flask import request, jsonify, Flask
from flask.views import MethodView
from pymongo import MongoClient

from .. import responses
from ..helper import form_query, create_response, check_oauth, get_email
from ..helper import check_oauth, get_email
from ..notifications.notification import get_notification_client_id
from ..notifications.push_notifications import PushNotification
from ... import oauth, app
from ...auth.views import Client, Token
from ...models.cs_models import Sensor, User, PermissionRequest


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@
This module handles interacting with the underlying permission models.
It handles the required CRUD operations for permissions.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

import hashlib
import json
import traceback
import uuid

from flask import request, jsonify, Flask
from flask.views import MethodView

from .. import responses
from ..helper import form_query, create_response, check_oauth, get_email
from ... import oauth
from ..helper import check_oauth, get_email
from ...models.cs_models import User


Expand Down
2 changes: 1 addition & 1 deletion buildingdepot/CentralService/app/rest_api/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
to the user under certain failure and success conditions are
defined here in this file
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,15 @@
list of the sensors that fall in this group. This list is further used
for acl's and other purposes.
@copyright: (c) 2021 SynergyLabs
@copyright: (c) 2024 SynergyLabs
@license: CMU License. See License file for details.
"""
import sys

from flask import request, jsonify, current_app
from flask.views import MethodView

from .. import responses
from ..helper import xstr, get_building_choices, get_email, check_oauth
from ... import r, oauth
from ...models.cs_models import SensorGroup
from ...rpc import defs

Expand Down
Loading

0 comments on commit a5fc2ba

Please sign in to comment.