This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const Alexa = require("ask-sdk"); | |
| const Stocks = require("./stocks"); | |
| const GetNewFactHandler = { | |
| canHandle(handlerInput) { | |
| const request = handlerInput.requestEnvelope.request; | |
| return ( | |
| request.type === "LaunchRequest" || | |
| (request.type === "IntentRequest" && | |
| request.intent.name === "GetNewFactIntent") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| canvas_files/hanleypriya_late_15311_link.xml, canvas_files/normansally_14162_link.xml - 4% similar | |
| canvas_files/karppeyton_late_15063_link.xml, canvas_files/normansally_14162_link.xml - 4% similar | |
| canvas_files/normansally_14162_link.xml, canvas_files/parkscecily_15184_link.xml - 4% similar | |
| canvas_files/hanleypriya_late_15311_link.xml, canvas_files/hazardjessica_12420_link.xml - 4% similar | |
| canvas_files/hazardjessica_12420_link.xml, canvas_files/karppeyton_late_15063_link.xml - 4% similar | |
| canvas_files/hazardjessica_12420_link.xml, canvas_files/parkscecily_15184_link.xml - 4% similar | |
| canvas_files/arizininicolaas_15136_link.xml, canvas_files/hanleypriya_late_15311_link.xml - 4% similar | |
| canvas_files/arizininicolaas_15136_link.xml, canvas_files/karppeyton_late_15063_link.xml - 4% similar | |
| canvas_files/arizininicolaas_15136_link.xml, canvas_files/parkscecily_15184_link.xml - 4% similar | |
| canvas_files/hanleypriya_late_15311_link.xml, canvas_files/viottipaige_15306_link.xml - 4% similar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import difflib | |
| import itertools | |
| import inspect | |
| _logger = logging.getLogger('codediff') | |
| class BaseMatcher: | |
| def __init__(self, report1, report2): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import logging | |
| import xml.etree.ElementTree as et | |
| from xml.etree.ElementTree import ParseError | |
| from src.validators import PathValidator | |
| from src.report import FileReport | |
| from src.report.snap_report import SnapReport | |
| from src.utils import NotEnoughFilesError, Pair | |
| _logger = logging.getLogger('codediff') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import logging | |
| import sys | |
| import re | |
| import urllib.request | |
| import urllib.error | |
| from src.utils import Pair | |
| _logger = logging.getLogger('codediff') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import logging | |
| from xml.dom.minidom import parse as xmlparse | |
| class FileError(Exception): | |
| pass | |
| class FileIOError(IOError): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import logging | |
| from src.utils import UnsupportedFiletypeError | |
| _logger = logging.getLogger('codediff') | |
| class PathValidator: | |
| def validate_dir(self, file_paths): | |
| _logger.warning('This validator does nothing. Use a subclass such as `XmlPathValidator`') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import itertools | |
| from src.report import BaseFileReport | |
| from src.utils import dict_verify | |
| # Currently we simply do a shallow parse. | |
| class SnapReport(BaseFileReport): | |
| def __init__(self, path, **kwargs): | |
| # Turn etree elements into snap reports | |
| super(SnapReport, self).__init__(path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var express = require("express"); | |
| var app = express(); | |
| app.use(express.static("spotifyMosaic")); //directory of website files | |
| app.listen(8888); | |
| console.log("Listening on port 8888"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var stateKey = "spotify_auth_state"; | |
| function getHashParams() { | |
| var hashParams = {}; | |
| var e, | |
| r = /([^&;=]+)=?([^&;]*)/g, | |
| q = window.location.hash.substring(1); | |
| while ((e = r.exec(q))) { | |
| hashParams[e[1]] = decodeURIComponent(e[2]); | |
| } |