Skip to content

Instantly share code, notes, and snippets.

import re
import logging
from xml.dom.minidom import parse as xmlparse
class FileError(Exception):
pass
class FileIOError(IOError):
import os
import logging
import sys
import re
import urllib.request
import urllib.error
from src.utils import Pair
_logger = logging.getLogger('codediff')
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')
import logging
import difflib
import itertools
import inspect
_logger = logging.getLogger('codediff')
class BaseMatcher:
def __init__(self, report1, report2):
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
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")
const https = require("https");
const symbols = ["TWLO", "SQ", "FB"];
module.exports = {
getResponse: async function getResponse() {
var results = await fetchSymbolData();
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
const https = require("https");
const symbols = ["TWLO", "SQ", "FB"];
async function getResponse() {
var results = await fetchSymbolData();
var now = new Date();
var hours = now.getHours();
var minutes = now.getMinutes();
var output = "";
This file has been truncated, but you can view the full file.
From fairest creatures we desire increase,
That thereby beauty's rose might never die,
But as the riper should by time decease,
His tender heir might bear his memory:
But thou contracted to thine own bright eyes,
Feed'st thy light's flame with self-substantial fuel,
Making a famine where abundance lies,
Thy self thy foe, to thy sweet self too cruel:
Thou that art now the world's fresh ornament,
And only herald to the gaudy spring,
var fs = require("fs");
var file = "sampleText.txt";
var text;
var qwerty = ["q","w","e","r","t","y","u","i","o","p",
"a","s","d","f","g","h","j","k","l",
"z","x","c","v","b","n","m"];
var mine = ["c","w","b","m","f","g","l","d","u","y",
"n","h","r","o","i","s","e","t","a",