from __future__ import absolute_import
from typing import Any, List, Dict, Optional, Text

from django.conf import settings
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect, HttpResponse, HttpRequest
from django.shortcuts import redirect
from django.utils import translation
from django.utils.cache import patch_cache_control
from six.moves import zip_longest, zip, range

from zerver.decorator import zulip_login_required, process_client
from zerver.forms import ToSForm
from zerver.lib.realm_icon import realm_icon_url
from zerver.models import Message, UserProfile, Stream, Subscription, Huddle, \
    Recipient, Realm, UserMessage, DefaultStream, RealmEmoji, RealmAlias, \
    RealmFilter, PreregistrationUser, UserActivity, \
    UserPresence, get_recipient, name_changes_disabled, email_to_username, \
    list_of_domains_for_realm
from zerver.lib.events import do_events_register
from zerver.lib.actions import update_user_presence, do_change_tos_version, \
    do_update_pointer, get_cross_realm_dicts, realm_user_count
from zerver.lib.avatar import avatar_url
from zerver.lib.i18n import get_language_list, get_language_name, \
    get_language_list_for_templates
from zerver.lib.push_notifications import num_push_devices_for_user
from zerver.lib.streams import access_stream_by_name
from zerver.lib.utils import statsd, get_subdomain
from zproject.backends import password_auth_enabled
from zproject.jinja2 import render_to_response

import calendar
import datetime
import logging
import os
import re
import simplejson
import time

@zulip_login_required
def accounts_accept_terms(request):
    # type: (HttpRequest) -> HttpResponse
    if request.method == "POST":
        form = ToSForm(request.POST)
        if form.is_valid():
            do_change_tos_version(request.user, settings.TOS_VERSION)
            return redirect(home)
    else:
        form = ToSForm()

    email = request.user.email
    special_message_template = None
    if request.user.tos_version is None and settings.FIRST_TIME_TOS_TEMPLATE is not None:
        special_message_template = 'zerver/' + settings.FIRST_TIME_TOS_TEMPLATE
    return render_to_response(
        'zerver/accounts_accept_terms.html',
        {'form': form,
         'email': email,
         'special_message_template': special_message_template},
        request=request)

def approximate_unread_count(user_profile):
    # type: (UserProfile) -> int
    not_in_home_view_recipients = [sub.recipient.id for sub in
                                   Subscription.objects.filter(
                                       user_profile=user_profile, in_home_view=False)]

    # TODO: We may want to exclude muted messages from this count.
    #       It was attempted in the past, but the original attempt
    #       was broken.  When we re-architect muting, we may
    #       want to to revisit this (see git issue #1019).
    return UserMessage.objects.filter(
        user_profile=user_profile, message_id__gt=user_profile.pointer).exclude(
        message__recipient__type=Recipient.STREAM,
        message__recipient__id__in=not_in_home_view_recipients).exclude(
        flags=UserMessage.flags.read).count()

def sent_time_in_epoch_seconds(user_message):
    # type: (UserMessage) -> Optional[float]
    # user_message is a UserMessage object.
    if not user_message:
        return None
    # We have USE_TZ = True, so our datetime objects are timezone-aware.
    # Return the epoch seconds in UTC.
    return calendar.timegm(user_message.message.pub_date.utctimetuple())

def home(request):
    # type: (HttpRequest) -> HttpResponse
    if settings.DEVELOPMENT and os.path.exists('var/handlebars-templates/compile.error'):
        response = render_to_response('zerver/handlebars_compilation_failed.html',
                                      request=request)
        response.status_code = 500
        return response
    if not settings.SUBDOMAINS_HOMEPAGE:
        return home_real(request)

    # If settings.SUBDOMAINS_HOMEPAGE, sends the user the landing
    # page, not the login form, on the root domain

    subdomain = get_subdomain(request)
    if subdomain != "":
        return home_real(request)

    return render_to_response('zerver/hello.html',
                              request=request)

@zulip_login_required
def home_real(request):
    # type: (HttpRequest) -> HttpResponse
    # We need to modify the session object every two weeks or it will expire.
    # This line makes reloading the page a sufficient action to keep the
    # session alive.
    request.session.modified = True

    user_profile = request.user

    # If a user hasn't signed the current Terms of Service, send them there
    if settings.TERMS_OF_SERVICE is not None and settings.TOS_VERSION is not None and \
       int(settings.TOS_VERSION.split('.')[0]) > user_profile.major_tos_version():
        return accounts_accept_terms(request)

    narrow = [] # type: List[List[Text]]
    narrow_stream = None
    narrow_topic = request.GET.get("topic")
    if request.GET.get("stream"):
        try:
            narrow_stream_name = request.GET.get("stream")
            (narrow_stream, ignored_rec, ignored_sub) = access_stream_by_name(
                user_profile, narrow_stream_name)
            narrow = [["stream", narrow_stream.name]]
        except Exception:
            logging.exception("Narrow parsing")
        if narrow_stream is not None and narrow_topic is not None:
            narrow.append(["topic", narrow_topic])

    register_ret = do_events_register(user_profile, request.client,
                                      apply_markdown=True, narrow=narrow)
    user_has_messages = (register_ret['max_message_id'] != -1)

    # Reset our don't-spam-users-with-email counter since the
    # user has since logged in
    if user_profile.last_reminder is not None:
        user_profile.last_reminder = None
        user_profile.save(update_fields=["last_reminder"])

    # Brand new users get the tutorial
    needs_tutorial = settings.TUTORIAL_ENABLED and \
        user_profile.tutorial_status != UserProfile.TUTORIAL_FINISHED

    first_in_realm = realm_user_count(user_profile.realm) == 1
    # If you are the only person in the realm and you didn't invite
    # anyone, we'll continue to encourage you to do so on the frontend.
    prompt_for_invites = first_in_realm and \
        not PreregistrationUser.objects.filter(referred_by=user_profile).count()

    if user_profile.pointer == -1 and user_has_messages:
        # Put the new user's pointer at the bottom
        #
        # This improves performance, because we limit backfilling of messages
        # before the pointer.  It's also likely that someone joining an
        # organization is interested in recent messages more than the very
        # first messages on the system.

        register_ret['pointer'] = register_ret['max_message_id']
        user_profile.last_pointer_updater = request.session.session_key

    if user_profile.pointer == -1:
        latest_read = None
    else:
        try:
            latest_read = UserMessage.objects.get(user_profile=user_profile,
                                                  message__id=user_profile.pointer)
        except UserMessage.DoesNotExist:
            # Don't completely fail if your saved pointer ID is invalid
            logging.warning("%s has invalid pointer %s" % (user_profile.email, user_profile.pointer))
            latest_read = None

    desktop_notifications_enabled = user_profile.enable_desktop_notifications
    if narrow_stream is not None:
        desktop_notifications_enabled = False

    if user_profile.realm.notifications_stream:
        notifications_stream = user_profile.realm.notifications_stream.name
    else:
        notifications_stream = ""

    # Set default language and make it persist
    default_language = register_ret['default_language']
    url_lang = '/{}'.format(request.LANGUAGE_CODE)
    if not request.path.startswith(url_lang):
        translation.activate(default_language)

    request.session[translation.LANGUAGE_SESSION_KEY] = default_language

    # Pass parameters to the client-side JavaScript code.
    # These end up in a global JavaScript Object named 'page_params'.
    page_params = dict(
        # Server settings.
        share_the_love        = settings.SHARE_THE_LOVE,
        development_environment = settings.DEVELOPMENT,
        debug_mode            = settings.DEBUG,
        test_suite            = settings.TEST_SUITE,
        poll_timeout          = settings.POLL_TIMEOUT,
        login_page            = settings.HOME_NOT_LOGGED_IN,
        server_uri            = settings.SERVER_URI,
        maxfilesize           = settings.MAX_FILE_UPLOAD_SIZE,
        max_avatar_file_size  = settings.MAX_AVATAR_FILE_SIZE,
        server_generation     = settings.SERVER_GENERATION,
        use_websockets        = settings.USE_WEBSOCKETS,
        save_stacktraces      = settings.SAVE_FRONTEND_STACKTRACES,

        # realm data.
        # TODO: Move all of these data to register_ret and pull from there
        realm_uri             = user_profile.realm.uri,
        password_auth_enabled = password_auth_enabled(user_profile.realm),
        domains               = list_of_domains_for_realm(user_profile.realm),
        name_changes_disabled = name_changes_disabled(user_profile.realm),
        mandatory_topics      = user_profile.realm.mandatory_topics,
        show_digest_email     = user_profile.realm.show_digest_email,
        realm_presence_disabled = user_profile.realm.presence_disabled,
        is_zephyr_mirror_realm = user_profile.realm.is_zephyr_mirror_realm,

        # user_profile data.
        # TODO: Move all of these data to register_ret and pull from there
        fullname              = user_profile.full_name,
        email                 = user_profile.email,
        enter_sends           = user_profile.enter_sends,
        user_id               = user_profile.id,
        is_admin              = user_profile.is_realm_admin,
        can_create_streams    = user_profile.can_create_streams(),
        autoscroll_forever = user_profile.autoscroll_forever,
        default_desktop_notifications = user_profile.default_desktop_notifications,
        avatar_url            = avatar_url(user_profile),
        avatar_url_medium     = avatar_url(user_profile, medium=True),
        avatar_source         = user_profile.avatar_source,
        timezone              = user_profile.timezone,

        # Stream message notification settings:
        stream_desktop_notifications_enabled = user_profile.enable_stream_desktop_notifications,
        stream_sounds_enabled = user_profile.enable_stream_sounds,

        # Private message and @-mention notification settings:
        desktop_notifications_enabled = desktop_notifications_enabled,
        sounds_enabled = user_profile.enable_sounds,
        enable_offline_email_notifications = user_profile.enable_offline_email_notifications,
        pm_content_in_desktop_notifications = user_profile.pm_content_in_desktop_notifications,
        enable_offline_push_notifications = user_profile.enable_offline_push_notifications,
        enable_online_push_notifications = user_profile.enable_online_push_notifications,
        enable_digest_emails  = user_profile.enable_digest_emails,

        # Realm foreign key data from register_ret.
        # TODO: Rename these to match register_ret values.
        subbed_info           = register_ret['subscriptions'],
        unsubbed_info         = register_ret['unsubscribed'],
        neversubbed_info      = register_ret['never_subscribed'],
        people_list           = register_ret['realm_users'],
        bot_list              = register_ret['realm_bots'],
        initial_pointer       = register_ret['pointer'],
        initial_presences     = register_ret['presences'],
        event_queue_id        = register_ret['queue_id'],

        # Misc. extra data.
        have_initial_messages = user_has_messages,
        initial_servertime    = time.time(), # Used for calculating relative presence age
        default_language_name = get_language_name(register_ret['default_language']),
        language_list_dbl_col = get_language_list_for_templates(register_ret['default_language']),
        language_list         = get_language_list(),
        needs_tutorial        = needs_tutorial,
        first_in_realm        = first_in_realm,
        prompt_for_invites    = prompt_for_invites,
        notifications_stream  = notifications_stream,
        cross_realm_bots      = list(get_cross_realm_dicts()),
        unread_count          = approximate_unread_count(user_profile),
        furthest_read_time    = sent_time_in_epoch_seconds(latest_read),
        has_mobile_devices    = num_push_devices_for_user(user_profile) > 0,
    )

    # These fields will be automatically copied from register_ret into
    # page_params.  It is a goal to move more of the page_params list
    # into this sort of cleaner structure.
    page_params_core_fields = [
        'alert_words',
        'attachments',
        'default_language',
        'emoji_alt_code',
        'last_event_id',
        'left_side_userlist',
        'max_icon_file_size',
        'max_message_id',
        'muted_topics',
        'realm_add_emoji_by_admins_only',
        'realm_allow_message_editing',
        'realm_authentication_methods',
        'realm_bot_domain',
        'realm_create_stream_by_admins_only',
        'realm_default_language',
        'realm_default_streams',
        'realm_email_changes_disabled',
        'realm_emoji',
        'realm_filters',
        'realm_icon_source',
        'realm_icon_url',
        'realm_invite_by_admins_only',
        'realm_invite_required',
        'realm_message_content_edit_limit_seconds',
        'realm_name',
        'realm_name_changes_disabled',
        'realm_restricted_to_domain',
        'realm_waiting_period_threshold',
        'referrals',
        'twenty_four_hour_time',
        'zulip_version',
    ]

    for field_name in page_params_core_fields:
        page_params[field_name] = register_ret[field_name]

    if narrow_stream is not None:
        # In narrow_stream context, initial pointer is just latest message
        recipient = get_recipient(Recipient.STREAM, narrow_stream.id)
        try:
            initial_pointer = Message.objects.filter(recipient=recipient).order_by('id').reverse()[0].id
        except IndexError:
            initial_pointer = -1
        page_params["narrow_stream"] = narrow_stream.name
        if narrow_topic is not None:
            page_params["narrow_topic"] = narrow_topic
        page_params["narrow"] = [dict(operator=term[0], operand=term[1]) for term in narrow]
        page_params["max_message_id"] = initial_pointer
        page_params["initial_pointer"] = initial_pointer
        page_params["have_initial_messages"] = (initial_pointer != -1)

    statsd.incr('views.home')
    show_invites = True

    # Some realms only allow admins to invite users
    if user_profile.realm.invite_by_admins_only and not user_profile.is_realm_admin:
        show_invites = False

    request._log_data['extra'] = "[%s]" % (register_ret["queue_id"],)
    response = render_to_response('zerver/index.html',
                                  {'user_profile': user_profile,
                                   'page_params': simplejson.encoder.JSONEncoderForHTML().encode(page_params),
                                   'nofontface': is_buggy_ua(request.META.get("HTTP_USER_AGENT", "Unspecified")),
                                   'avatar_url': avatar_url(user_profile),
                                   'show_debug':
                                       settings.DEBUG and ('show_debug' in request.GET),
                                   'pipeline': settings.PIPELINE_ENABLED,
                                   'show_invites': show_invites,
                                   'is_admin': user_profile.is_realm_admin,
                                   'show_webathena': user_profile.realm.webathena_enabled,
                                   'enable_feedback': settings.ENABLE_FEEDBACK,
                                   'embedded': narrow_stream is not None,
                                   },
                                  request=request)
    patch_cache_control(response, no_cache=True, no_store=True, must_revalidate=True)
    return response

@zulip_login_required
def desktop_home(request):
    # type: (HttpRequest) -> HttpResponse
    return HttpResponseRedirect(reverse('zerver.views.home.home'))

def is_buggy_ua(agent):
    # type: (str) -> bool
    """Discrimiate CSS served to clients based on User Agent

    Due to QTBUG-3467, @font-face is not supported in QtWebKit.
    This may get fixed in the future, but for right now we can
    just serve the more conservative CSS to all our desktop apps.
    """
    return ("Humbug Desktop/" in agent or "Zulip Desktop/" in agent or "ZulipDesktop/" in agent) and \
        "Mac" not in agent


Question: Which is more likely?
A. Andrew is a scientist and is smart.
B. Andrew is a scientist.
Answer:


Q: Which is more likely?
1. Michael is an accountant.
2. Michael is an accountant and is careful.
A:


Q: Which is more likely to be true?
1. Jessica is a teacher.
2. Jessica is a teacher and is patient.
A:


Hoe...


Context: It is a common misconception to ascribe the stiffness and rigidity of solid matter to the repulsion of like charges under the influence of the electromagnetic force. However, these characteristics actually result from the Pauli exclusion principle.[citation needed] Since electrons are fermions, they cannot occupy the same quantum mechanical state as other electrons. When the electrons in a material are densely packed together, there are not enough lower energy quantum mechanical states for them all, so some of them must be in higher energy states. This means that it takes energy to pack them together. While this effect is manifested macroscopically as a structural force, it is technically only the result of the existence of a finite set of electron states.

Question: How rare is the misconception that solid matter is rigid because of like charges?


Context: Breathing pure O2 in space applications, such as in some modern space suits, or in early spacecraft such as Apollo, causes no damage due to the low total pressures used. In the case of spacesuits, the O2 partial pressure in the breathing gas is, in general, about 30 kPa (1.4 times normal), and the resulting O2 partial pressure in the astronaut's arterial blood is only marginally more than normal sea-level O2 partial pressure (for more information on this, see space suit and arterial blood gas).

Question: Aside from spacecrafts, where else is it safe to breathe in O2 if you are an astronaut?


Context: Apollo 8 was planned to be the D mission in December 1968, crewed by McDivitt, Scott and Schweickart, launched on a Saturn V instead of two Saturn IBs. In the summer it had become clear that the LM would not be ready in time. Rather than waste the Saturn V on another simple Earth-orbiting mission, ASPO Manager George Low suggested the bold step of sending Apollo 8 to orbit the Moon instead, deferring the D mission to the next mission in March 1969, and eliminating the E mission. This would keep the program on track. The Soviet Union had sent animals around the Moon on September 15, 1968, aboard Zond 5, and it was believed they might soon repeat the feat with human cosmonauts. The decision was not announced publicly until successful completion of Apollo 7. Gemini veterans Frank Borman and James Lovell, and rookie William Anders captured the world's attention by making 10 lunar orbits in 20 hours, transmitting television pictures of the lunar surface on Christmas Eve, and returning safely to Earth.

Question: Which of the following is not an astronaut: McDivitt, Low, or Schweickart?


Context: Warsaw's first stock exchange was established in 1817 and continued trading until World War II. It was re-established in April 1991, following the end of the post-war communist control of the country and the reintroduction of a free-market economy. Today, the Warsaw Stock Exchange (WSE) is, according to many indicators, the largest market in the region, with 374 companies listed and total capitalization of 162 584 mln EUR as of 31 August 2009. From 1991 until 2000, the stock exchange was, ironically, located in the building previously used as the headquarters of the Polish United Workers' Party (PZPR).

Question: What was reappropriated for use?


Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad

Provides ``mapping`` of url paths to request handlers.


Module Expr Str Import alias Import alias If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str ImportFrom alias Expr Call NameLoad AttributeLoad NameLoad attr


Module Expr Str Import alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Str attr attr TryExcept body ImportFrom alias alias handlers ExceptHandler type NameLoad body ImportFrom alias Expr Call NameLoad ImportFrom alias alias Expr Call NameLoad keyword Str keyword Str keyword Call AttributeLoad Call NameLoad Str attr keyword NameLoad keyword Str keyword Str keyword Str keyword Call NameLoad keyword ListLoad Str keyword Call AttributeLoad Call NameLoad Str attr keyword Dict Str ListLoad Str keyword NameLoad keyword Dict Str Call AttributeLoad Call NameLoad Str attr keyword Dict Str ListLoad Str keyword Str


Module Import alias Import alias If CompareEq NameLoad Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Str ImportFrom alias Expr Call NameLoad AttributeLoad NameLoad attr


Module ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad Assign NameStore ListLoad Call AttributeLoad NameLoad attr keyword Str keyword ListLoad TupleLoad Str Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad keyword NameLoad TupleLoad Str Call AttributeLoad NameLoad attr keyword Str keyword Num TupleLoad Str Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str keyword NameLoad keyword Dict Str Str TupleLoad Str Str keyword TupleLoad AttributeLoad NameLoad attr decorator_list

__future__
unicode_literals
django.db
models
migrations
Migration
migrations
Migration
dependencies
operations
migrations
CreateModel
name
Category
fields
id
models
AutoField
verbose_name
ID
serialize
False
auto_created
True
primary_key
True
name
models
CharField
help_text
The name of the category.
max_length
40
image
models
ImageField
help_text
A representative image.
True
upload_to
categories
blank
True
options
ordering
verbose_name_plural
name
Categories
bases
models
Model


Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMod Str SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str orelse Expr Call AttributeLoad NameLoad attr NameLoad Str Return Call NameLoad Str orelse Assign NameStore Call NameLoad Return Call NameLoad NameLoad Str Dict Str Str Str Str Str NameLoad Str Str decorator_list Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr

Enter the details for the news item below.


Module Expr Str Assign NameStore TupleLoad Str Str ClassDef bases NameLoad body Expr Str Pass decorator_list ClassDef bases NameLoad body Expr Str Pass decorator_list

Exceptions raised by :mod:`django_wsgi.`

Base class for exceptions raised by :mod:`django_wsgi`.

Exception raised when an embedded WSGI application was not called properly.


Module Import alias Import alias ImportFrom alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args defaults body If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list

Connecting to {}, with secure connection is {}


Module ImportFrom alias Import alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list

N/A django.db models N/A datetime common.models Project Stage N/A N/A models Model N/A N/A name N/A N/A models CharField max_length 128 N/A project N/A N/A models ForeignKey Project N/A text N/A N/A models TextField default blank True N/A link N/A N/A models URLField default None blank True null True N/A state N/A N/A models CharField max_length 24 default info blank True N/A weight N/A N/A models IntegerField default 0 N/A updated N/A N/A models DateTimeField default N/A N/A N/A datetime datetime now save N/A N/A self N/A args kwargs N/A N/A N/A self updated N/A N/A N/A datetime datetime now N/A N/A N/A N/A super Stage self save args kwargs N/A __str__ N/A N/A self N/A N/A N/A N/A self name N/A N/A


Alternatively , fibroblasts were plated sparsely so that they did not touch each other and induced into quiescence by serum starvation and monitored after 4 d ( serum - starved for 4 d [ SS4 ] ) or 7 d ( serum - starved for 7 d [ SS7 ] ) .


Study - specific risk ratios ( RRs ) and mean BW differences were calculated using linear and log - binomial regression models controlling for confounding using inverse probability of treatment weights ( IPTW ) truncated at the 1st and 99th percentiles .


Neurological complications of cancer include direct tumour compression or infiltration , paraneoplastic neurological syndromes ( PNS ) , metabolic and nutritional deficiencies and chemotherapy induced peripheral neuropathy ( CIPN ) [ 1 ] .


Reference values ( RVs ) of each analyte were set as an objective variable , while set as explanatory variables were volunteers ' region , age , body mass index ( BMI ) , levels of cigarette smoking , exercise , consumption of soft drinks .


We next undertook a large case study of all 88,835 articles published by NIH investigators who maintained continuous R01 funding from fiscal year ( FY ) 2003 through FY2010 to ask how the RCR of publications from individual investigators changed over this 8 - y interval .


A : Phosphatidylinositol 3 - kinaseand ( Pi3k ) mRNA level in liver ; B : Protein kinase B ( Akt ) mRNA level in liver .


D1R , D1 dopamine receptor ; D2R , D2 dopamine receptor ; MSN , medium spiny neuron ; NF1 , neurofibromin 1 ; RM - ANOVA , repeated measures analysis of variance .


Recently , we established an animal model demonstrating that intranasal inhalation of organic dust extract ( ODE ) collected from large animal ( swine ) confinement facilities and its microbial components induce systemic bone loss [ 13 ] .


Context: In the United States, the industry in 2014 has around $960 billion in annual revenue according to statistics tracked by the Census Bureau, of which $680 billion is private (split evenly between residential and nonresidential) and the remainder is government. As of 2005, there were about 667,000 firms employing 1 million contractors (200,000 general contractors, 38,000 heavy, and 432,000 specialty); the average contractor employed fewer than 10 employees. As a whole, the industry employed an estimated 5.8 million as of April 2013, with a 13.2% unemployment rate. In the United States, approximately 828,000 women were employed in the construction industry as of 2011.

Question: What is the annual construction industry revenue in 2014?


Context:
Trioxygen (O
3) is usually known as ozone and is a very reactive allotrope of oxygen that is damaging to lung tissue. Ozone is produced in the upper atmosphere when O
2 combines with atomic oxygen made by the splitting of O
2 by ultraviolet (UV) radiation. Since ozone absorbs strongly in the UV region of the spectrum, the ozone layer of the upper atmosphere functions as a protective radiation shield for the planet. Near the Earth's surface, it is a pollutant formed as a by-product of automobile exhaust. The metastable molecule tetraoxygen (O
4) was discovered in 2001, and was assumed to exist in one of the six phases of solid oxygen. It was proven in 2006 that this phase, created by pressurizing O
2 to 20 GPa, is in fact a rhombohedral O
8 cluster. This cluster has the potential to be a much more powerful oxidizer than either O
2 or O
3 and may therefore be used in rocket fuel. A metallic phase was discovered in 1990 when solid oxygen is subjected to a pressure of above 96 GPa and it was shown in 1998 that at very low temperatures, this phase becomes superconducting.

Question: What  does ozone's characteristic to cause damage effect?

lung tissue
lung tissue
lung tissue
lung tissue
lung


Context: Following the treaty, King George III issued the Royal Proclamation of 1763 on October 7, 1763, which outlined the division and administration of the newly conquered territory, and to some extent continues to govern relations between the government of modern Canada and the First Nations. Included in its provisions was the reservation of lands west of the Appalachian Mountains to its Indian population, a demarcation that was at best a temporary impediment to a rising tide of westward-bound settlers. The proclamation also contained provisions that prevented civic participation by the Roman Catholic Canadians. When accommodations were made in the Quebec Act in 1774 to address this and other issues, religious concerns were raised in the largely Protestant Thirteen Colonies over the advance of "popery"; the Act maintained French Civil law, including the seigneurial system, a medieval code soon to be removed from France within a generation by the French Revolution.

Question: What lands were reserved for natives?

west of the Appalachian Mountains
west of the Appalachian Mountains
lands west of the Appalachian Mountains
west of the Appalachian Mountains
west of the Appalachian Mountains


Context: The best, worst and average case complexity refer to three different ways of measuring the time complexity (or any other complexity measure) of different inputs of the same size. Since some inputs of size n may be faster to solve than others, we define the following complexities:

Question: What are the three secondary expressions used to represent case complexity?


Context: The Social Charter was subsequently adopted in 1989 by 11 of the then 12 member states. The UK refused to sign the Social Charter and was exempt from the legislation covering Social Charter issues unless it agreed to be bound by the legislation. The UK subsequently was the only member state to veto the Social Charter being included as the "Social Chapter" of the 1992 Maastricht Treaty - instead, an Agreement on Social Policy was added as a protocol. Again, the UK was exempt from legislation arising from the protocol, unless it agreed to be bound by it. The protocol was to become known as "Social Chapter", despite not actually being a chapter of the Maastricht Treaty. To achieve aims of the Agreement on Social Policy the European Union was to "support and complement" the policies of member states. The aims of the Agreement on Social Policy are:

Question: Who did not adopt the Social Charter?


Context: DECnet is a suite of network protocols created by Digital Equipment Corporation, originally released in 1975 in order to connect two PDP-11 minicomputers. It evolved into one of the first peer-to-peer network architectures, thus transforming DEC into a networking powerhouse in the 1980s. Initially built with three layers, it later (1982) evolved into a seven-layer OSI-compliant networking protocol. The DECnet protocols were designed entirely by Digital Equipment Corporation. However, DECnet Phase II (and later) were open standards with published specifications, and several implementations were developed outside DEC, including one for Linux.

Question: What did DECnet phase 2 become


Context: Harvard is a large, highly residential research university. The nominal cost of attendance is high, but the University's large endowment allows it to offer generous financial aid packages. It operates several arts, cultural, and scientific museums, alongside the Harvard Library, which is the world's largest academic and private library system, comprising 79 individual libraries with over 18 million volumes. Harvard's alumni include eight U.S. presidents, several foreign heads of state, 62 living billionaires, 335 Rhodes Scholars, and 242 Marshall Scholars. To date, some 150 Nobel laureates, 18 Fields Medalists and 13 Turing Award winners have been affiliated as students, faculty, or staff.

Question: How many US Presidents once campaigned in Cambridge?


Context: The first buildings of the University of Chicago campus, which make up what is now known as the Main Quadrangles, were part of a "master plan" conceived by two University of Chicago trustees and plotted by Chicago architect Henry Ives Cobb. The Main Quadrangles consist of six quadrangles, each surrounded by buildings, bordering one larger quadrangle. The buildings of the Main Quadrangles were designed by Cobb, Shepley, Rutan and Coolidge, Holabird & Roche, and other architectural firms in a mixture of the Victorian Gothic and Collegiate Gothic styles, patterned on the colleges of the University of Oxford. (Mitchell Tower, for example, is modeled after Oxford's Magdalen Tower, and the university Commons, Hutchinson Hall, replicates Christ Church Hall.)

Question: The second buildings of the U of C are known as what?


Input: [Name] Outcome [Type] Outcome [Description]

Output: The BioAssay activity outcome

AID 490156 - Induction of human NQO1 activity in mouse Hepa-1c1c7 cells at 25 uM after 48 hrs relative to control - PubChem BioAssay Summary


Input: [TID] 1 [Name] Fold change activity comment [Type] String [Description]

Output: Fold change activity comment

AID 490156 - Induction of human NQO1 activity in mouse Hepa-1c1c7 cells at 25 uM after 48 hrs relative to control - PubChem BioAssay Summary


Input: [TID] 2 [Name] Fold change standard flag [Type] Integer [Description]

Output: Fold change standard flag

AID 490156 - Induction of human NQO1 activity in mouse Hepa-1c1c7 cells at 25 uM after 48 hrs relative to control - PubChem BioAssay Summary


Input: [TID] 3 [Name] Fold change qualifier [Type] String [Description]

Output: Fold change qualifier

AID 490156 - Induction of human NQO1 activity in mouse Hepa-1c1c7 cells at 25 uM after 48 hrs relative to control - PubChem BioAssay Summary


Input: [TID] 4 [Name] Fold change published value [Type] Float [Description]

Output: Fold change published value

AID 490156 - Induction of human NQO1 activity in mouse Hepa-1c1c7 cells at 25 uM after 48 hrs relative to control - PubChem BioAssay Summary


Input: [TID] 5 [Name] Fold change standard value [Type] Float [Description]

Output: Fold change standard value

AID 490156 - Induction of human NQO1 activity in mouse Hepa-1c1c7 cells at 25 uM after 48 hrs relative to control - PubChem BioAssay Summary


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is James Anderson batsman name is Shikhar Dhawan over runs is 2 dismissal is False dismissal type is  dismissal text is 0.0 innings wickets is 0 <end_of_table>  commentary short of a length and some shape into off stump. Allows it come on and dabs with soft hands in front of point


<start_of_table> play type description is run batting team is India bowling team is England total runs on delivery is 2 bowler name is James Anderson batsman name is Shikhar Dhawan over runs is 2 dismissal is False dismissal type is  dismissal text is 6.0 innings wickets is 0 <end_of_table>  commentary length on leg stump, stays back and clips it through square leg off the back foot


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is James Anderson batsman name is Shikhar Dhawan over runs is 2 dismissal is False dismissal type is  dismissal text is 4.0 innings wickets is 0 <end_of_table>  commentary full and just outside off, no swing back this time, just angle. Watches it carefully and taps to point on the front foot


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is James Anderson batsman name is Shikhar Dhawan over runs is 2 dismissal is False dismissal type is  dismissal text is 3.0 innings wickets is 0 <end_of_table>  commentary good length inswinger starts on leg and curves further down. Early exercise for Bairstow


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is James Anderson batsman name is Shikhar Dhawan over runs is 2 dismissal is False dismissal type is  dismissal text is 2.4 innings wickets is 0 <end_of_table>  commentary short of a length and slanting across the corridor, left alone


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is James Anderson batsman name is Shikhar Dhawan over runs is 2 dismissal is False dismissal type is  dismissal text is 2.0 innings wickets is 0 <end_of_table>  commentary short of a length and angled across off, left alone


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is Stuart Broad batsman name is KL Rahul over runs is 0 dismissal is False dismissal type is  dismissal text is 1.71 innings wickets is 0 <end_of_table>  commentary some wobble for Broad outside off. Good length and skidding through nicely just outside off. Left alone


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is Stuart Broad batsman name is KL Rahul over runs is 0 dismissal is False dismissal type is  dismissal text is 1.5 innings wickets is 0 <end_of_table>  commentary short of a length and just outside off. Left alone


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is Stuart Broad batsman name is KL Rahul over runs is 0 dismissal is False dismissal type is  dismissal text is 1.33 innings wickets is 0 <end_of_table>  commentary short of a length on off stump, defended off the back foot


<start_of_table> play type description is no run batting team is India bowling team is England total runs on delivery is 0 bowler name is Stuart Broad batsman name is KL Rahul over runs is 0 dismissal is False dismissal type is  dismissal text is 1.2 innings wickets is 0 <end_of_table>  commentary <b>beats him.</b> That's a great line, he's hit it consistently. Just outside off, draws him forward for the angle and gets it to cut past the outside edge


i start to feel emotional


i believe feeling duality suffering soul growth tells of an ending or a decline or a change of direction often one associated with emotions and it offers one possible response to that decline or change moving on


i hostage negotiator on her case has her feeling hopeful about her future


im feeling a little dirty


i can cope with his presence without feeling distressed if i can force myself into a quiet and resigned friendship


i had the feeling that it might not have been taken as the truthful and sincere compliment it would have been


i asked some girls what it meant to them to be valued and for the most part the response was that they felt valued when the people around them made them feel valued and treated them in a loving and caring manner


i feel if i completely hated things i d exercise my democratic right speak my mind in what ever ways possible and try to enact a change


i could almost feel her gentle touch in the moonbeam she sent to shine over me he added touching his face dreamily


i woke up very early this morning feeling joyful


Context: Provided is a universal Ku band LNB (9.75/10.600 GHz) which is fitted at the end of the dish and pointed at the correct satellite constellation; most digital receivers will receive the free to air channels. Some broadcasts are free-to-air and unencrypted, some are encrypted but do not require a monthly subscription (known as free-to-view), some are encrypted and require a monthly subscription, and some are pay-per-view services. To view the encrypted content a VideoGuard UK equipped receiver (all of which are dedicated to the Sky service, and cannot be used to decrypt other services) needs to be used. Unofficial CAMs are now available to view the service, although use of them breaks the user's contract with Sky and invalidates the user's rights to use the card.

Question: What is the universal band that digital recievers will receive free to air channels on?

9.75/10.600 GHz
universal Ku band
Ku band


Context: At the beginning of the 20th century, important advancement in geological science was facilitated by the ability to obtain accurate absolute dates to geologic events using radioactive isotopes and other methods. This changed the understanding of geologic time. Previously, geologists could only use fossils and stratigraphic correlation to date sections of rock relative to one another. With isotopic dates it became possible to assign absolute ages to rock units, and these absolute dates could be applied to fossil sequences in which there was datable material, converting the old relative ages into new absolute ages.

Question: What did using fossils help change for scientists?


Context: Packet mode communication may be implemented with or without intermediate forwarding nodes (packet switches or routers). Packets are normally forwarded by intermediate network nodes asynchronously using first-in, first-out buffering, but may be forwarded according to some scheduling discipline for fair queuing, traffic shaping, or for differentiated or guaranteed quality of service, such as weighted fair queuing or leaky bucket. In case of a shared physical medium (such as radio or 10BASE5), the packets may be delivered according to a multiple access scheme.

Question: If there is no radio or 10BASE5, how are the packets delivered?


Context: Many complexity classes are defined using the concept of a reduction. A reduction is a transformation of one problem into another problem. It captures the informal notion of a problem being at least as difficult as another problem. For instance, if a problem X can be solved using an algorithm for Y, X is no more difficult than Y, and we say that X reduces to Y. There are many different types of reductions, based on the method of reduction, such as Cook reductions, Karp reductions and Levin reductions, and the bound on the complexity of reductions, such as polynomial-time reductions or log-space reductions.

Question: What are two examples of different types of reduction?

Karp reductions and Levin reductions
Cook reductions, Karp reductions


Context: In 1096, Crusaders passing by the siege of Amalfi were joined by Bohemond of Taranto and his nephew Tancred with an army of Italo-Normans. Bohemond was the de facto leader of the Crusade during its passage through Asia Minor. After the successful Siege of Antioch in 1097, Bohemond began carving out an independent principality around that city. Tancred was instrumental in the conquest of Jerusalem and he worked for the expansion of the Crusader kingdom in Transjordan and the region of Galilee.[citation needed]

Question: When did Tancred lay siege to Antioch?


Context: In October 2010, the open-access scientific journal PLoS Pathogens published a paper by a multinational team who undertook a new investigation into the role of Yersinia pestis in the Black Death following the disputed identification by Drancourt and Raoult in 1998. They assessed the presence of DNA/RNA with Polymerase Chain Reaction (PCR) techniques for Y. pestis from the tooth sockets in human skeletons from mass graves in northern, central and southern Europe that were associated archaeologically with the Black Death and subsequent resurgences. The authors concluded that this new research, together with prior analyses from the south of France and Germany, ". . . ends the debate about the etiology of the Black Death, and unambiguously demonstrates that Y. pestis was the causative agent of the epidemic plague that devastated Europe during the Middle Ages".

Question: What scientific journal in France published a prior analysis of the Black Death?


Extreme homophobia+incessant poop jokes=Worst Movie Ever

I feel my title really explains my feelings about this movie. I enjoy an absurd off-color comedy as much as the next guy, but this movie was absolutely horrible. The jokes could be seen a mile away, except for a fountain of diarrhea we get to witness. That was a surprise.The worst part was the extreme homophobia throughout the film. The film makes light of, and reinforces the "homosexual-as-blackmailer" stereotype which most directors would have the good taste to avoid. The directors' ham-fisted attempt at excusing these outrages with a trite "Live and let live" blurb at the end is completely ridiculous. Literally the worst movie I have ever seen. Avoid at all costs!


Not As Suspenseful as K-19, But Great Thriller Nonetheless!

I wanted to catch this flick when it was at the theatres, but missed my chance and it went away far too quickly. Decided to pick it up based on the plot and the fact that Twohy was directing and am very pleased that I did. Great thriller and quite creepy in it's presentation. Thought that the ending could have been a bit better, but it's generally a tough thing to get an awesome ending these days. Also, the one thing that I really had trouble with, was the fact that for a sub, this one sure was pretty immaculate and sterile. Needed more noise from the steel, that sort of thing. Subs generally groan and expand/shrink in varying water temps. But, that is a bit nitpicky for this definitely must see rental!!! Pick it up, you will be glad that you did!!


This book is a great display of imagination and creativity...but my dictionary does not have any entry for "whangoodle"...then again, it also does not have an entry for "disestablishmentarianism". My 10-yr old daughter & I love reading this, and I've noticed my 14-year old son listening in as well!


This book is unlike anything I have ever read. It has a neat twist to the story that is worth reading


I agree with Dundee, MI. I ordered this piece and the cornice, two of the doors and a shelf were damaged. Not sure if it was due to shipping, poor packaging, or poor handling within the warehouse. I have contacted the manufacturer/distributor 3x with no response. Still waiting for the replacement parts. Due to the complicated packaging, I have no desire to send it back. But, I will I if I have to. I think Target needs to create a liason for we the customer and the furniture source. I believe this entertainment center could be a 4 star piece but, a an initial 1 star experience. Frustration is the bottom line.


I HATE that you have to select an episode each and every time one is over... I thought it would run continueously, back to back. BUT, nope... Other than that, It is enjoyable. :)


Excellent exploration of percussion through sight and sound.

A delight to behold, the photographs are exciting and the layout of the book makes the reader want to touch and hear all the instruments described. The CD is an added bonus for lovers of world music.


I suspect that this book was a chilling read when it was published in the 1980's, but it is especially disturbing in 2008. The threats Atwood identified then-- religious fundamentalism, an environmental apocalypse, spying and terror committed by governments, increasing control over women's bodies-- seem even more pertinent today. Atwood's humor keeps the book from ever becoming too bleak.


I cannot say whether technically this recording and artistry is better than the so called standard by Vengerov but I can say that it leaves one breathless.The Vengerov version is also beautiful but this seems to sparkle.


Not something I'd like my 12 year-old to read!

My 12 year-old asked for this book for Christmas. I like to check out the books she wants to read before getting them for her, as so many books that are aimed at kids these days are DEFINITELY not sending messages that I want my daughter absorbing. By the reviews, it sounds like a great book, but when I got into reading it, I found a lot of negativity. Teens and preteens do have a big struggle on their hands, and though this may be "reinforcement" for some older teens, I feel that it lays out a course that I don't want my girl on. It totally dispels any notion of enchantment, which is one of the great things about childhood, right on the first pages. Kids are growing up way too fast- this book will certainly help speed it up. How sad.


The counselor helped the laborer because

he is a very kind person.
she is a very kind person.


The lawyer talked with the counselor because

she needed to gather additional evidence for the case.


The driver offered a ride to the teacher but

he refused the offer.
she refused the offer.


The cleaner got mad at the farmer because

she brought lots of dirt.
he brought lots of dirt.


The carpenter met with the teacher so that

she could fix the cabinets in the classroom.


The salesperson met with the counselor because


The receptionist reminded the cook to wear suits because


The sheriff told the counselor that

he was under investigation.
she was under investigation.


The supervisor was impressed by the tailor because

she is easily impressed.
he is easily impressed.


The driver picked up bread from the baker because


Context: Within southern California are two major cities, Los Angeles and San Diego, as well as three of the country's largest metropolitan areas. With a population of 3,792,621, Los Angeles is the most populous city in California and the second most populous in the United States. To the south and with a population of 1,307,402 is San Diego, the second most populous city in the state and the eighth most populous in the nation.

Question: Which city is the most populous in California?


Context: Between Bingen and Bonn, the Middle Rhine flows through the Rhine Gorge, a formation which was created by erosion. The rate of erosion equaled the uplift in the region, such that the river was left at about its original level while the surrounding lands raised. The gorge is quite deep and is the stretch of the river which is known for its many castles and vineyards. It is a UNESCO World Heritage Site (2002) and known as "the Romantic Rhine", with more than 40 castles and fortresses from the Middle Ages and many quaint and lovely country villages.

Question: What is the section of the Rhine Gorge recognized by UNESCO called?

Romantic Rhine
the Romantic Rhine
the Romantic Rhine


Context: There were many religions practiced during the Yuan dynasty, such as Buddhism, Islam, and Christianity. The establishment of the Yuan dynasty had dramatically increased the number of Muslims in China. However, unlike the western khanates, the Yuan dynasty never converted to Islam. Instead, Kublai Khan, the founder of the Yuan dynasty, favored Buddhism, especially the Tibetan variants. As a result, Tibetan Buddhism was established as the de facto state religion. The top-level department and government agency known as the Bureau of Buddhist and Tibetan Affairs (Xuanzheng Yuan) was set up in Khanbaliq (modern Beijing) to supervise Buddhist monks throughout the empire. Since Kublai Khan only esteemed the Sakya sect of Tibetan Buddhism, other religions became less important. He and his successors kept a Sakya Imperial Preceptor (Dishi) at court. Before the end of the Yuan dynasty, 14 leaders of the Sakya sect had held the post of Imperial Preceptor, thereby enjoying special power. Furthermore, Mongol patronage of Buddhism resulted in a number of monuments of Buddhist art. Mongolian Buddhist translations, almost all from Tibetan originals, began on a large scale after 1300. Many Mongols of the upper class such as the Jalayir and the Oronar nobles as well as the emperors also patronized Confucian scholars and institutions. A considerable number of Confucian and Chinese historical works were translated into the Mongolian language.

Question: What government agency supervised Buddhist monks?


Context: In between the French and the British, large areas were dominated by native tribes. To the north, the Mi'kmaq and the Abenaki were engaged in Father Le Loutre's War and still held sway in parts of Nova Scotia, Acadia, and the eastern portions of the province of Canada, as well as much of present-day Maine. The Iroquois Confederation dominated much of present-day Upstate New York and the Ohio Country, although the latter also included Algonquian-speaking populations of Delaware and Shawnee, as well as Iroquoian-speaking Mingo. These tribes were formally under Iroquois rule, and were limited by them in authority to make agreements.

Question: In between French and British, what groups controlled land?

native tribes
native tribes
native tribes
native tribes
native tribes


Context: The war was fought primarily along the frontiers between New France and the British colonies, from Virginia in the South to Nova Scotia in the North. It began with a dispute over control of the confluence of the Allegheny and Monongahela rivers, called the Forks of the Ohio, and the site of the French Fort Duquesne and present-day Pittsburgh, Pennsylvania. The dispute erupted into violence in the Battle of Jumonville Glen in May 1754, during which Virginia militiamen under the command of 22-year-old George Washington ambushed a French patrol.

Question: When did violence start in war?

May 1754
May 1754
May 1754
May 1754
Battle of Jumonville Glen in May 1754,


Context: There are eleven LEA-funded 11 to 18 schools and seven independent schools with sixth forms in Newcastle. There are a number of successful state schools, including Walker Technology College, Gosforth High School, Heaton Manor School, St Cuthbert's High School, St. Mary's Catholic Comprehensive School, Kenton School, George Stephenson High School, Sacred Heart and Benfield School. The largest co-ed independent school is the Royal Grammar School. The largest girls' independent school is Newcastle High School for Girls. Both schools are located on the same street in Jesmond. Newcastle School for Boys is the only independent boys' only school in the city and is situated in Gosforth. Newcastle College is the largest general further education college in the North East and is a beacon status college; there are two smaller colleges in the Newcastle area. St Cuthbert's High School and Sacred Heart are the two primary state-Catholic run high schools, and are both achieving results on par with the independent schools in Newcastle.

Question: How many LEA-funded 11 to 18 schools are there in Newcastle?


Context: Due to pressure from film studios wanting to increase their production, as the major networks began airing theatrically released films, ABC joined CBS and NBC in broadcasting films on Sunday nights in 1962, with the launch of the ABC Sunday Night Movie, which debuted a year behind its competitors and was initially presented in black-and-white. Despite a significant increase in viewership (with its audience share having increased to 33% from the 15% share it had in 1953), ABC remained in third place; the company had a total revenue of $15.5 million, a third of the revenue pulled in by CBS at the same period. To catch up, ABC followed up The Flintstones with another animated series from Hanna-Barbera, The Jetsons, which debuted on September 23, 1962 as the first television series to be broadcast in color on the network. On April 1, 1963, ABC debuted the soap opera General Hospital, which would go on to become the television network's long-running entertainment program. That year also saw the premiere of The Fugitive (on September 17), a drama series centering on a man on the run after being accused of committing a murder he did not commit.

Question: When did General Hospital first debut on ABC?


Here are Thursday's biggest analyst calls: Apple, Amazon, Tesla, Palantir, DocuSign, Exxon & more  https://t.co/QPN8Gwl7Uh


Buy Las Vegas Sands as travel to Singapore builds, Wells Fargo says  https://t.co/fLS2w57iCz


Piper Sandler downgrades DocuSign to sell, citing elevated risks amid CEO transition  https://t.co/1EmtywmYpr


Analysts react to Tesla's latest earnings, break down what's next for electric car maker  https://t.co/kwhoE6W06u


Barclays believes earnings for these underperforming stocks may surprise Wall Street  https://t.co/PHbsyVGAyE


Bernstein upgrades Alibaba, says shares can rally more than 20% from here  https://t.co/m3ApoPRGU0


Analysts react to Netflix's strong quarter, with some pointing to a potential bottom for the stock  https://t.co/cQngJsyefD


Buy Chevron as shares look attractive at these levels, HSBC says  https://t.co/GkDpFvxjEP


town in Tianjin, China

Yangliuqing () is a market town in Xiqing District, in the western suburbs of Tianjin, People's Republic of China. Despite its relatively small size, it has been named since 2006 in the "famous historical and cultural market towns in China". It is best known in China for creating nianhua or Yangliuqing nianhua. For more than 400 years, Yangliuqing has in effect specialised in the creation of these woodcuts for the New Year. wood block prints using vivid colourschemes to portray traditional scenes of children's games often interwoven with auspiciouse objects. , it had 27 residential communities () and 25 villages

Yangliuqing


town in Tianjin, China

located in the administrative territorial entity

Yangliuqing


town in Tianjin, China

1,200 square meters, incorporates the elegance of imperial garden and delicacy of south garden. Now the courtyard of Shi family covers about 10,000 square meters, which is called the first mansion in North China. Now it serves as the folk custom museum in Yangliuqing, which has a large collection of folk custom museum in Yanliuqing, which has a large collection of folk art pieces like Yanliuqing New Year pictures, brick sculpture. Shi's ancestor came from Dong'e County in Shandong Province, engaged in water transport of grain. As the wealth gradually accumulated, the Shi Family moved to Yangliuqing and bought large

Yangliuqing


town in Tianjin, China

the living area for the Shi Family. The rooms on north side were the accountants' office. On the west are the major constructions including the family hall for worshipping Buddha, theater and the south reception room. On both sides of the residence are side yard rooms for maids and servants. Today, the Shi mansion, located in the township of Yangliuqing to the west of central Tianjin, stands as a surprisingly well-preserved monument to China's pre-revolution mercantile spirit. It also serves as an on-location shoot for many of China's popular historical dramas. Many of the rooms feature period furniture, paintings and

Yangliuqing


Serge Ibaka -- the Oklahoma City Thunder forward who was born in the Congo but played in Spain -- has been granted Spanish citizenship and will play for the country in EuroBasket this summer, the event where spots in the 2012 Olympics will be decided.

Serge Ibaka has been granted Spanish citizenship and will play in EuroBasket.


MILAN -Catania held Roma to a 1-1 draw in Serie A on Wednesday as the teams played out the remaining 25 minutes of a game that was called off last month.

Catania held Roma to a 1 1 draw in Serie A.


State Street Corporation, a provider of investment servicing, investment management and investment research and trading services, has launched a new investment servicing solution to support small to mid-sized asset managers with their investment operations needs.

State Street Corporation, has launched a new investment servicing solution.


Massey Energy, the fourth largest coal company in the country, could have its corporate charter revoked if public interest organizations have their way.

Massey Energy, the coal company, could have its corporate charter revoked.


Foundation for MetroWest has awarded $55,000 in grants to 37 food pantries across the region, drawing on two of its funds that provide winter assistance to families in need.

Foundation for MetroWest has awarded $ 55,000 in grants to 37 food pantries across the region.


Wong won't rule out super raid Updated: 08:17, Tuesday March 26, 2013 Finance Minister Penny Wong has declined to rule out axing tax concessions for superannuation in the May budget.


TINY 'robots' that can be dropped into an industrial process to report any problems are being developed by a Woolston company.

TINY robots are being developed by a company.


Jordan and South Korea have pledged to cooperate on nuclear regulatory issues as part of an agreement signed on Saturday.

Jordan and South Korea have pledged to cooperate on regulatory issues.


Just after the Fourth of July holiday, and only a week after the city's budget has been completed, City Council Member Robert Jackson will hold two town hall meetings in cooperation with several other Northern Manhattan elected officials.

Robert Jackson will hold two town hall meetings.


Tim Cowlishaw made a bad joke and now the MMA blogosphere is lighting torches and sharpening pitchforks.


FIVE RIVERS MEDICAL CTR

FIVE RIVERS MEDICAL CTR PSYCH

Located in Pocahontas, FIVE RIVERS MEDICAL CTR PSYCH specializes in mental treatments.

When you or a loved one requires treatment for psychological problems, FIVE RIVERS MEDICAL CTR PSYCH is a safe place for healing with treatments like Psychiatric Hospitals.

Five Rivers Medical Ctr

Five Rivers Medical Ctr is a hospital located in Pocahontas.

When you or a loved one requires treatment for psychological problems, Five Rivers Medical Ctr is a safe place for healing with treatments like Mental Health Services.

Fulton County Hospital

Fulton County Hospital

Located in Salem, Fulton County Hospital specializes in senior people services.

People of advanced age can be interested in Fulton County Hospital's services of Hospices.

On top of other services, the following are offered in Fulton County Hospital: Vocational Rehabilitation.

White River Med Ctr North

DISCLAIMER:
Hospitals Near Me Ltd attempts to provide accurate and up-to-date information in good faith, however cannot guarantee the information will always be accurate, complete and up-to-date.

The map data and directions information is provided by a third party, Hospitals Near Me has no control over this information.

Hospitals Near Me accepts no liability for any loss, damage or inconvenience caused by reliance on any information in this system.

NOTE: The information provided should under no circumstances be relied upon as accurate, especially in any urgent or emergency situations.


Q:

How to add if statement in anonymous class?

If I have this :
SubMenuList=new object[]
{
    new
    {
        transKey = "PERSONAL_INFORMATION",
        stateName="account.personalinformation",
        displayUrl = "/account/personalinformation"
    },
    new
    {
        tranKey = "NOTIFICATIONS",
        stateName = "account.notificationsettings",
        displayUrl = "/account/notifications"
    }
}

Can I somehow add an if statement to this and say for example:
if (something !

= null)
{
    new
    {
        transKey = "PERSONAL_INFORMATION",
        stateName="account.personalinformation",
        displayUrl = "/account/personalinformation"
    }
}

A:

For this purpose is better to use List<Object>:
var list = new List<object>
{
    new
    {
        transKey = "PERSONAL_INFORMATION",
        stateName="account.personalinformation",
        displayUrl = "/account/personalinformation"
    }
};
if (something !

Add(new
             {
                 tranKey = "NOTIFICATIONS",
                 stateName = "account.notificationsettings",
                 displayUrl = "/account/notifications"
             });
}

if you want to get an array, you can invoke ToArray() on the link:
SubMenuList = list.

ToArray();

It is better to introduce non anonymous type here, because these objects have the same structure, and without the context it is hard to guess why you do not use named types.


Q:

How to create a hole in a polygon in QGIS?

I'm trying to use the tool "delete ring" in order to create a hole in a polygon.

The geometry of the hole is another feature of the same shapefile
I cannot manage to delete the part of the polygone.

Does someone have a tutorial or some explanation?

A:

You should be using "Add Ring" tool to create a hole in the polygon.

Just Select the "Add Ring" tool and digitize a hole inside the polygon.

It will remove that part and create a hole.


Order                                                                                Michigan Supreme Court
                                                                                Lansing, Michigan

  July 10, 2019                                                                                Bridget M. McCormack,
                                                                                Chief Justice

                                                                                David F. Viviano,
                                                                                Chief Justice Pro Tem
  159160(42)(43)
  159201                                                                                Stephen J. Markman
                                                                                Brian K. Zahra
                                                                                Richard H. Bernstein
                                                                                Elizabeth T. Clement
  In re HOUSE OF REPRESENTATIVES                                                                       Megan K. Cavanagh,
  REQUEST FOR ADVISORY OPINION                                                                                Justices
  REGARDING CONSTITUTIONALITY OF
  2018 PA 368 & 369                                                           SC: 159160

  __________________________________________/

  In re SENATE REQUEST FOR ADVISORY
  OPINION REGARDING CONSTITUTIONALITY
  OF 2018 PA 368 & 369                                                        SC: 159201
  __________________________________________/

          On order of the Chief Justice, the motion of the Legislature to file a reply to the
  briefs filed in opposition to the constitutionality of 2018 PA 368 and 2018 PA 369 and the
  motion of the Legislature to exceed the page limitation for the reply are GRANTED.

The
  15-page reply submitted on July 3, 2019, is accepted for filing.

                           I, Larry S. Royster, Clerk of the Michigan Supreme Court, certify that the
                     foregoing is a true and complete copy of the order entered at the direction of the Court.

                                   July 10, 2019

                                                                               Clerk


Batch3.BridgeIssues
{
    [Category(Constants.

MODULE_ISSUES)]
    [TestFixture(TestNameFormat = "#2591 - {0}")]
    public class Bridge2591
    {
        private static bool run = false;
        [Convention(Notation.

UpperCase)]
        public static void Main()
        {
            run = true;
        }

        [Test]
        public static void TestEntryPointCustomName()
        {
            Assert.

True(Bridge2591.run);
            Assert.

NotNull(typeof(Bridge2591)["MAIN"]);
        }
    }
}


The counselor helped the laborer because


The lawyer talked with the counselor because


The driver offered a ride to the teacher but


The cleaner got mad at the farmer because


The carpenter met with the teacher so that


The salesperson met with the counselor because


The receptionist reminded the cook to wear suits because


The sheriff told the counselor that


The supervisor was impressed by the tailor because


The driver picked up bread from the baker because


Jackie accompanied Rose.


They should pen the letter quickly.


There is a seat available.


Mary thinks that she is smart.


We investigated the area for bombs.


A wonderful opportunity presented itself to him yesterday.


I'm even sure we got these tickets!


John believes it that Bill is here.


What additional categories and rules would be required to handle these verbs?


I remembered having kissed Mary.


Magnolia flower and leaf drawing illustration with line art on white backgrounds. Design decor for card, save the date, wedding invitation cards, poster royalty free illustration


A stretch of Diamond Lake Road collapsed Friday where Indian Creek flows under the pavement. The road remains closed between Gilmer Road and Route 83 in Long Grove.


Smack Apparel Milwaukee Baseball Fans. A Drinking Town with A Baseball Problem Navy T-Shirt (Sm-5X)


Calgary-based Canadian Pacific Railway said in a letter to Norfolk Southern's CEO that under the amended bid, his company's shareholders would own 47 per cent of the newly merged company, up from 41 per cent.


Top 100 Most-Creative Acrylic Nail Art Designs and Tutorials I remember when I was growing up that there wasn't a whole lot that women did with their nails. Usually you just painted on some conservative shade of polish for a clean look, and that Pretty Nail Designs, Colorful Nail Designs, Acrylic Nail Designs, Nail Art Designs, Summer Nail Designs, Peacock Nail Designs, Peacock Nails, Colorful Nails, Pink Gold Nails


A kitchen or kitchenette at Casa Viva


Line Tracking for an amount of time In this section you will modify the code for line tracking so it will go for a set amount of time.


Children reading books in the room vector


Juncos Racing's <PERSON> (32) rounds turn two during practice for the IndyCar Grand Prix at the Indianapolis Motor Speedway on Friday, May 11, 2018.


Craft The World screenshot, No-1


Two men in green shirts are standing in a yard.

Two young, White males are outside near many bushes.

Two young guys with shaggy hair look at their hands while hanging out in the yard.

A man in a blue shirt standing in a garden.


Workers look down from up above on a piece of equipment.

Several men in hard hats are operating a giant pulley system.

Two men working on a machine wearing hard hats.


A child in a pink dress is climbing up a set of stairs in an entry way.

A little girl climbing into a wooden playhouse

A little girl in a pink dress going into a wooden cabin.

A little girl climbing the stairs to her playhouse.


Someone in a blue shirt and hat is standing on stair and leaning against a window.

man in blue shirt and jeans on ladder cleaning windows

A man in a blue shirt is standing on a ladder cleaning a window.

A man on a ladder cleans the window of a tall building.


Two men, one in a gray shirt, one in a black shirt, standing near a stove.

Two men in a kitchen cooking food on a stove.

Two men are at the stove preparing food.

Two guy cooking and joking around with the camera.


A man in green holds a guitar while the other man observes his shirt.

Two people in the photo are playing the guitar and the other is poking at him.

A man is fixing the guitar players costume.


A man completes the finishing touches on a stuffed lion.

A man is sitting on a chair holding a large stuffed animal.

A man sits in a chair while holding a large stuffed animal of a lion.


A trendy girl talking on her cellphone while gliding slowly down the street.

Woman talking on cellphone and wearing rollerskates.

there is a young girl on her cellphone while skating.

A young adult wearing rollerblades, holding a cellular phone to her ear.

A girl is on rollerskates talking on her cellphone standing in a parking lot.


A young woman walks past two young people dressed in hip black outfits.

A woman with a large purse is walking by a gate.

Three people are standing outside near large pipes and a metal railing.

An asian man wearing a black suit stands near a dark-haired woman and a brown-haired woman.

Several people standing outside a building.


Boys dancing on poles in the middle of the night.

Two youths are jumping over a roadside railing, at night.

Two men in Germany jumping over a rail at the same time without shirts.

Two men with no shirts jumping over a rail.


Answer: Lincoln

Question: List all the people names in the context

Context: Lincoln 's notation on the letter read : " If his colonel will say in writing on this sheet he is willing to receive this man back to the regiment , I will pardon and send him . "


Question: List all the organizations in the context


Question: List all the locations in the context


Answer: Dalglish

Question: List all the people names in the context

Context: In a telephone call to a local newspaper from his holiday home in Spain , Dalglish said : " We came to the same opinion , albeit the club came to it a little bit earlier than me . "


Question: List all the organizations in the context


Answer: Spain

Question: List all the locations in the context


Question: List all the people names in the context

Context: The greatest declines in the volume of help-wanted advertising were in the New England , Mountain and West South Central regions .


Question: List all the organizations in the context


Answer: West South Central

Answer: New England

Answer: Mountain

Question: List all the locations in the context


Answer: Kwasniewski

Question: List all the people names in the context

Context: " We expect our cooperation will help both countries towards entering the European Union and NATO , " Kwasniewski said .


Lower Bhavani Project Canal

Lower Bhavani Project Canal is a  long irrigation canal which runs in Erode district in Tamil Nadu, India.  The canal is a valley-side contour canal, fed by Bhavanisagar Dam and irrigates 2.07 lakh hectares of land. The main canal feeds Thadapalli and Arakkankottai channels which irrigate the cultivable lands. The canal was the brainchild M.A Eswaran, member of the legislative assembly of the Erode constituency in the early 1950s.

References

See also
Kalingarayan Canal

Erode district
Canals in Tamil Nadu
Gobichettipalayam
Bhavani River


Mornington Peninsula Regional Gallery Works on Paper Award

The National Works on Paper Award is a catch-all term for a body of related awards for contemporary art made on, or with, paper. First awarded in 1998, it is the successor event to the Spring Festival of Drawing and the Prints Acquisitive. The award is made biennially, except during the years 1998 to 2000, and 2002 to 2004, when it was made annually. The award and its concomitant exhibition are hosted by the Mornington Peninsula Regional Gallery, located in Mornington, Australia.

In 2008, the total prize pool of the National Works on Paper award was worth A$45,000 and had three components:
The John Tallis Acquisitive Award, valued at A$15,000;
The Mornington Peninsula Regional Shire Acquisition Fund awards, valued at up to A$20,000; and
The Friends of the Mornington Peninsula Regional Gallery Acquisition Fund awards, valued at up to A$10,000.

Winners (major award only)
1998 - Christopher Hodges
1999 - Jennifer Buntine
2000 - Matthew Butterworth
2002 - eX de Medici
2003 - Lisa Roet
2004 - Paul Boston
2006 - Gareth Sansom
2008 - Danie Mellor
2010 - Richard Lewer
2014 - Jess Johnson

References

External links
 Mornington Peninsula Regional Gallery website
 Mornington Peninsula Regional Gallery - 2008 NWOP Award
 MPRG - NWOP Past Exhibitions

Australian art awards
Mornington Peninsula
Awards established in 1998
1998 establishments in Australia


Rennington

Rennington is a village in Northumberland, England about  north of Alnwick.

Governance
Rennington is in the parliamentary constituency of Berwick-upon-Tweed.

References

External links

GENUKI (Accessed: 27 November 2008)

Villages in Northumberland


Try installing the Ubuntu restricted extras package.

You may be missing some of the required codecs.

You can install through the software center as shown below:

Or you can install via the command line with sudo apt-get install ubuntu-restricted-extras


Q:

How to implement "close all tabs" for tabcontrol

How would I implement "close all other tabs" function for a tab control using Context menu strip?

A:

I made a small app with just one tabcontrol in the main window and a context menu connected to that tabcontrol.

The following is the handler for the context menu item:
        private void closeAllOtherToolStripMenuItem_Click(object sender, EventArgs e)
    {
        for (int i = 0; i < this.tabControl1.TabCount; i++)
            if (i !

= tabControl1.SelectedIndex)
                tabControl1.TabPages.


Q:

Google Sheets - color any cell in a specific range if it contains a comment

I need a script to color any cell in AE4:last row in AE, orange if it contains a comment (not a note) in the sheet named is "Events".

I realized I need a more obvious way to tell if cells have comments in them, so coloring the cell instead of having just an orange arrow would be much more useful for me.

A:

Interacting with Comments doesn't seem to be possible.

See the google-apps-script-issue here, which appears to have been merged into this issue.

You could consider starring the issue(s) to follow possible updates and / or fixes.


Q:

 or  actions in a JSP needs buffering to be enabled?

I came across a post which says that, <jsp:forward> or <jsp:include> actions in a JSP, needs buffering to be enabled.

A:

The JSP that contains the <jsp:forward> action stops processing, clears its buffer, and forwards the request to the target resource.

Note that the calling JSP should not write anything to the response prior to the  action
The include action, on the other hand, executes for each client request of the JSP, which means the file is not parsed but included in place.

This provides the capability to dynamically change not only the content that you want to include, but also the output of that content.

The syntax for the include action is <jsp:include page="some-filename" flush="true" />.

Note that the flush attribute must always be included (in JSP 1.1) to force a flush of the buffer in the output stream.


Morten Skaug

Morten Skaug is a Norwegian curler and curling coach.

Teams

Record as a coach of national teams

References

External links

Category:Living people
Category:Norwegian male curlers
Category:Norwegian curling coaches
Category:Year of birth missing (living people)


On 24-10-2010 1:15, Nicolas Riendeau wrote:
> Hi!

>> On 10/22/2010 1:23 PM, Nicolas Riendeau wrote:
>> I haven't tried Pootle yet... It does look like it support Qt files
>> natively which makes it interesting...
>> I had a chance to play with it and its overall a nice program...
>> It does currently have one major blocker as far as usage with MythTV is
> concerned, it is currently unable to deal with plurals in Qt ts files.

>> re: http://bugs.locamotion.org/show_bug.cgi?id=1727
I know, I am subscribed to it as well.

I found that the same day while
testing on my local installation.

It seems they are thinking of a
temporary solution, until their release schedule allows for a
fundamental change and a more permanent fix.

> There are other things that must be looked into but this is the major
> issue I can see with this application right now.

Is there a public list of things that we would like for a translation
interface?

> The point there was more than Qt Linguist is easy to work with and gets
> the job done.

>
> It is however a lot more difficult to distribute work with it as
> everybody has its own little copy of the translation on his pc.

> That doesn't mean its impossible to do though (for the French
> translation we had to exchange a lot of emails (using a mailing list)
> and we have our own SVN repository which send us a diff file after each
> commit).

Since we are now mostly in maintenance more we mostly rely on
> the diff files to see what the other has committed and possibly comment.

Yes, but this is overhead that unfortunately needs to be set up for
every translation team, by the members them self mostly.

> Most of the sentences we have to translate now resemble sentences we
> already have translated and Qt Linguist notices this and proposes us
> possible translations.

Pootle does suggest as well, but on a per word base IIRC.

> I can easily understand however that some people would prefer using a
> web application with a single copy of the translation that many users
> can update at the same time.

For translations which still have a lot of
> strings left to translate I can see this as a definite advantage.

I think collaboration is easier indeed as everybody is seeing the actual
items to translate instead of possibly duplicating work other
translators still have in their local tree.

> We have to make sure the applications we are looking at produces files
> which are 100% compatible with Qt, that they don't cause translations
> issues or even worse, application issues...
My testing so far has lead to a working file, although the first diff is
quite large for all ts files.

Most differences are comsetical ones,
however there is the issue of the pauscal/plural issue.

The other major difference is that Qt Linguist (or translators) seem to
escape special charachters.

So far my testing with the Pootle generated
ts file (that does not escape special characters) seems to work fine.

Do
you know what is the reason that the escape sequences are present in the
current .ts files?

> Anything that supports Qt ts files natively has a big advantage over the
> rest as far as I am concerned.

Pootle does that, apart from the pauscal/plural bug.

> I am sure both Kenni and I will take a closer look at Pootle once the
> plural problem will have been fixed.

Please do so, judging from the bug the developers hope to have a hack in
place soonish as they are mantioning release 2.1.


Input:
TEXT: [Scene: Manor. Paige's room. Paige is there lying on her bed, talking on the phone.] Paige: Hey, it's so good to talk to you. I was getting worried about you. You've been gone for far too long, Glen. Glen: Yeah, I'm sorry, I-I should've called and let you know that I was alright. I guess I, uh, ended up staying a little longer than I thought. Paige: That's okay, you'll just have to take me to dinner tomorrow night to make it up to me. Glen: Dinner... I-I can't tomorrow night, Paige, I got plans. Paige: Oh. Glen: I still wanna meet you though, I mean, I really wanna see you. (Paige flips through a photo album with pictures of her and Glen inside.) Paige: Good, 'cause, um, there's actually something I really want to talk to you about. Glen: Really? Sounds mysterious. That's actually great because there's something that I really wanna talk to you about too. Paige: Great. Then it's a date. (The room creeks and Paige ignores it.) Uh, so I'll see you at 11:00. Glen: 11:00 is good, 11:00 is great. (The phone cradle starts to slide across the side table by itself.) Usual place at the lake? Paige: (to the moving phone) Damn it, no! Glen: Or we can meet wherever. (The phone floats into the air.) Paige: Stop it I said. Glen: Stop what? Paige: Uh, nothing, I'll just, um, yeah, see you tomorrow, it'll be great. (Paige pulls the phone out of the wall and sighs.) [Cut to Piper's bedroom. Leo is asleep in bed. Piper is in the nursery mumbling to herself. Leo reaches over to Piper's side of the bed and wakes when he feels she's not there.] Piper: I am so sick of this. Leo: Piper? Piper: Hm?
SUMMARY:

Output: When residue left from demonic vanquishes builds up in the manor, the sisters lose sleep and it takes over their lives. They call upon the Witch Doctor, whom Leo does not trust. The Witch Doctor makes a house call to the Charmed Ones but because of the massive amount of demonic energy he believes they are evil. It turns out that Leo was right not to trust him, as he tries to kill the sisters by using voodoo dolls to make them obsess and lead them down various paths of destruction. Piper becomes obsessed with cleaning, Paige becomes obsessed with marrying her ex-boyfriend Glen, and Phoebe becomes obsessed with eliminating her work rivals.


Input:
TEXT: [INT. SCOTT REDISENCE - BATHROOM - DAY] (There's a green towel wrapped around Lucas' waist and he's wearing a white t-shirt. He's standing in front of a steamed up mirror and looking down into the sink basin.) LUCAS: (v.o) Octavio Paz once wrote; Solitude is the profoundest fact of the human condition... (He wipes the steam off the mirror with a hand. He studies himself.) man is the only being who knows he is alone. (Lucas continues to look at himself. His hair's grown. He turns to exit. [SCENE_BREAK] [INT. SCOTT RESIDENCE - KITCHEN - DAY] (Shot of the table with breakfast on it. Dan is standing and reading the paper. Lucas walks in, rubbing his eyes.) DAN: (Folds the paper and puts it away.) You know, if Bogans keeps drilling threes, the Cats will be tough to beat. How'd you sleep? LUCAS: Fine. DAN: Great, grab a plate. LUCAS: Ah, actually, uh... (Points back.) I usually grab something on the way to school. DAN: Come on, sit. We're civilised here. (Smiles and raises his mug to drink.) (The door opens.) DEB: (Still outside. Lucas looks back.) Dan? (She walks in.) I'm home. DAN: We're in the kitchen, Deb. (Deb sees Lucas as she walks in.) DEB: Oh,... Lucas. LUCAS: (Looking down.) Hey. (Deb is extremely confused.) DEB: Uh,... where-where's Nathan? DAN: Nathan's not here, Deb. Lucas is gonna be staying with us for a while. DEB: Wh-what?(!) (Lucas glares at Dan.) LUCAS: You didn't tell her. DAN: (Smirking) You better get to school. (Lucas scoffs and
SUMMARY:

Output: As his marriage with Haley continues to get worse, Nathan has an emotional crisis and reverts to his old ways. Karen continues to struggle, trying to figure out what would cause Lucas to move in with Dan. Peyton and Jake's relationship grows deeper. This episode is named after a song by Brand New .


Input:
TEXT: [Salvatore's house] (Elena is waiting for Elijah to wake up. Suddenly he wakes up. Elena rushes over him. He's in choc when sees her.) Elijah: Katerina! England, 1492 [A House] (Trevor is speaking with a woman. He rejoins Elijah) Elijah: Ah, good evening, Trevor. I am pleased you could join us Trevor: I could not miss the birthday celebration Elijah: No, considering the gift you claim to bear. Where is this mystery girl of which you speak? Trevor: Right this way (Elijah follows him. They rejoin Katherine) Trevor: My dear Katherine: Hello (Elijah is in choc) Nowadays [Salvatore's house] Elena: Elijah! It's me, it's Elena Elijah: Oh, my God England, 1492 [A house] Elijah: Forgive me. You remind me of someone Trevor: Katerina, may I introduce the lord Elijah (She takes his hand and bows) Katherine: Pleasure, my lord Elijah: The pleasure's mine. Katerina (He kisses her hand) Nowadays [Salvatore's house] (He closes her eyes. Elena gets closer but his body writhes. He gets up) Elijah: I can't-- I can't breathe! What's happening to me? (He rushes over the door but stammers the door. She rushes over him and holds him) Elijah: I can't... I can't be in this house (She realizes something) Elena: You're not invited in Elijah: I can't be in here (He stammers another wall and disappears. Elena runs after him and goes to the front door. Elijah is outside. He tries to enter but he can't enter) Elijah: What happened? Elena: Shh! (She shows him that Stefan and Damon can hear and she whispers) Elena: I'll tell you. Not here. Can I trust you? (He whispers too) Elijah: Can I trust
SUMMARY:

Output: After Elena removed the dagger, Elijah wakes, and Elena makes another deal with him. In a flashback to 1492 England, Katherine meets Elijah and Klaus for the first time. Elijah and Klaus were raised as brothers, but Klaus was the result of their mother's affair with a man from a werewolf bloodline. Elijah's father hunted down the man and had him and his family killed, beginning the schism between werewolves and vampires. As a vampire/werewolf hybrid, Klaus can only be killed by a witch. The sun and moon curse was fake - the real curse is that Klaus's werewolf side had been forced into dormancy by witches. Jenna finally finds out about the vampires from Stefan and Klaus/Alaric. Elsewhere, Katherine is being held captive by Klaus. Damon finds her and gives her a vial of vervain to protect her from further compulsion. At the end of the episode, Maddox and Greta (Luka's sister) perform a ritual to release Klaus's spirit from Alaric's body and put it back into his own.


Input:
TEXT: Clarke (V.O.): I was born in space. I've never felt the sun on my face or breathed real air or floated in the water. None of us have. For three generations, The Ark has kept what's left of the human race alive, but now our home is dying, and we are the last hope of mankind, desperate mission to the ground. Each of us was sent here because we broke the law. On the ground, there is no law. All we have to do is survive, but we will be tested by the earth, by the secrets it hides, and, most of all, by each other. Clarke: Previously on "The 100"... Jaha: Who shot me? Kane: Bellamy Blake. He stowed away on the dropship. We're still investigating who helped him. Shumway: Kill the Chancellor. Clarke: That's why you took the wristbands; you needed everyone to think we're dead. Bellamy: The Ark finds out we're alive, they'll come down, and when they do, I'm dead. Jaha: Earth is survivable. Mankind is going home. Bellamy: Hey, why were you defending him? Octavia: Because he saved my life. I never wanted any of this to happen to you. Lincoln: Thank you. ( Scene goes to black ) [SCENE_BREAK] [ Dropship ] ( Bellamy watches over a captive and bloody Lincoln ) ( Hatch opens as Miller walks in ) Miller: Did you talk to The Ark? I told Digg's mom the news, John's dad. I'm supposed to talk to Roma's parents later. Bellamy: Thanks for doing that. I owe you. ( Miller turns to face Lincoln ) Miller: Telling all these parents that their kids were murdered by Grounders, I just wish I could say we were getting some justice. Bellamy: We're not killing him. Miller: You were a lot scarier when you had that face paint on. ( Miller smears something on Lincoln's face ) ( Lincoln headbutts Miller, knocking him to the ground ) ( Bellamy looks up at Lincoln while
SUMMARY:

Output: Video connection is established with The Ark. The Ark informs the 100 of a nearby underground depot that may serve as a winter home. Bellamy and Clarke investigate and discover a stockpile of weapons and supplies. Dax, whom Commander Shumway is coercing to kill Bellamy, follows them. Octavia takes advantage of the camp's suffering from the effects of hallucinogenic nuts gathered as rations and frees the grounder, whose name is Lincoln. Bellamy, also hallucinating, is wracked with guilt for the culling and almost killed by Dax; Bellamy manages to kill Dax with Clarke's help. Clarke appeals to Jaha to pardon Bellamy for his crime using his actions on the ground; Jaha agrees in exchange for the name of the person who hired Bellamy. This leads to the arrest and imprisonment of Shumway. He is visited by Diana Sydney, and it is revealed that Jaha's assassination was her idea. Diana then has Shumway killed in his cell and framed to look like a suicide .


Input:
TEXT: THE ROMANS DENNIS SPOONER 5:40pm - 6:05pm [SCENE_BREAK] 1: INT. VILLA AT ASSESSIUM. OUTSIDE THE DOCTOR'S ROOM (ASCARIS approaches a curtained doorway. The DOCTOR can be heard inside, strumming on the Lyre.) DOCTOR: (OOV: Laughing.) I'm sure even Nero can play better than that! (ASCARIS pulls out a sword, looks round and starts to pull aside the curtain...) [SCENE_BREAK] 2: INT. VILLA AT ASSESSIUM. DOCTOR'S ROOM (The DOCTOR sits alone with his back to the doorway as ASCARIS enters.) DOCTOR: The answer is of course, is not to be caught playing it! (He laughs again, stands and turns as ASCARIS lunges at him. The DOCTOR parries the lunge with the Lyre.) DOCTOR: Ohhh! So you want to fight do you? (Laughing, he throws ASCARIS and the Lyre onto the bed. He then grabs a pot plant and smashes down on the assassin's head.) DOCTOR: Come on, my friend. Eh, what's the matter with you? (The DOCTOR then throws the bedclothes over ASCARIS as he struggles to stand. Totally caught up in the blankets, the DOCTOR tosses him over the other side of the bed. ASCARIS gets to his feet, grabs his sword and again lunges at the DOCTOR who grabs an amphora of wine from a stand and throws the contents in the man's face. As ASCARIS falls back, the DOCTOR smashes the amphora over his head. The DOCTOR laughs as ASCARIS again lunges at him but easily avoids the sword thrust. He tries again but the DOCTOR grabs his arm and throws him over his shoulder as VICKI runs into the room.) VICKI: Doctor, what's happening? (This
SUMMARY:

Output: Landing in Rome, A.D. 64 the travellers take a rare holiday. While Ian and Barbara are happy to relax, the Doctor and Vicki set off to pursue adventure. However, adventure soon finds Ian and Barbara too as they are kidnapped by slave traders, and the Doctor's imitation of Maximus Pettulian sees him taken to the court of Emperor Nero where he inadvertently plays a part in deciding the course of history...


Input:
TEXT: Teleplay by: Sherry Bilsing & Ellen Plummer Story by: Seth Kurland [Scene: Central Perk, Joey is giving Rachel, Chandler, Phoebe, and Ross their bills.] Joey: Okay Rach, that muffin and espresso, $4.50. Ross, double latte, $2.75. Chandler, coffee and a scone, $4.25. And Pheebs, herbal tea, $1.25. So, all together that's (pauses to figure the total) $12.75. Chandler: This coming from the man who couldn't split our 80 dollar phone bill in half. (A good-looking woman approaches.) Woman: Hi! Joey: Hi! Woman: How much do I owe you for the muffin and the latte? Joey: Oh that's on the house courtesy of Joey Tribbiani. Woman: Oh great! Well, tell him thanks. And since uh, Joey seems like such a nice guy, maybe we could go on a date sometime? Joey: Well, he's not used to women being so forward with him; but uh, I good check with him-He says it's okay. (She hands him her card.) Great! Thanks! Bye-bye! Ross: Hey Joey, how come our stuff isn't free? Joey: It will be when you look like that in a tight skirt! This is great! I'm getting more dates than ever! Rachel: Wait a minute, you're only giving free stuff away to the pretty girls? Phoebe: Yeah Joey that is so gross! Joey: How about a scone on the house baby? Phoebe: (giggles) I'm pretty. Opening Credits [Scene: Monica and Chandler's, everyone but Monica is there playing Monopoly.] Ross: Hey does anyone have any gum? Phoebe: Oh I do! (She grabs her huge purse and starts rummaging through it and taking out various items in a futile search for the gum.) Oh, y'know what? No. (Pause) Wait a second. (
SUMMARY:

Output: Joey uses his position as waiter to give all the pretty female customers free things at the coffee house, but quickly gets in trouble with Gunther. Monica refuses to admit she is sick when she gets a bad cold. Rachel's sister Jill ( Reese Witherspoon ) shows up after their father financially cuts her off, and she now has to make it on her own.