Dataset Viewer
entities
listlengths 1
8.61k
| max_stars_repo_path
stringlengths 7
172
| max_stars_repo_name
stringlengths 5
89
| max_stars_count
int64 0
82k
| content
stringlengths 14
1.05M
| id
stringlengths 2
6
| new_content
stringlengths 15
1.05M
| modified
bool 1
class | references
stringlengths 29
1.05M
|
---|---|---|---|---|---|---|---|---|
[
{
"context": " checkMeeting presence.meeting\n connections[@connection.id] = presence.id\n presence.updated = new Date\n",
"end": 649,
"score": 0.7229645252227783,
"start": 636,
"tag": "EMAIL",
"value": "connection.id"
}
] |
lib/presence.coffee
|
diomidov/comingle
| 0 |
import {Mongo} from 'meteor/mongo'
import {check, Match} from 'meteor/check'
import {validId, checkId} from './id.coffee'
import {checkMeeting} from './meetings.coffee'
export Presence = new Mongo.Collection 'presence'
## Mapping from Meteor connection id to presenceId [server only]
export connections = {}
Meteor.methods
presenceUpdate: (presence) ->
check presence,
id: Match.Where validId
meeting: Match.Where validId
name: String
rooms:
visible: [Match.Where validId]
invisible: [Match.Where validId]
unless @isSimulation
checkMeeting presence.meeting
connections[@connection.id] = presence.id
presence.updated = new Date
Presence.update
id: presence.id
meeting: presence.meeting
,
$set:
name: presence.name
rooms: presence.rooms
$setOnInsert:
id: presence.id
meeting: presence.meeting
,
upsert: true
presenceRemove: (presenceId) ->
checkId presenceId
Presence.remove id: presenceId
|
199997
|
import {Mongo} from 'meteor/mongo'
import {check, Match} from 'meteor/check'
import {validId, checkId} from './id.coffee'
import {checkMeeting} from './meetings.coffee'
export Presence = new Mongo.Collection 'presence'
## Mapping from Meteor connection id to presenceId [server only]
export connections = {}
Meteor.methods
presenceUpdate: (presence) ->
check presence,
id: Match.Where validId
meeting: Match.Where validId
name: String
rooms:
visible: [Match.Where validId]
invisible: [Match.Where validId]
unless @isSimulation
checkMeeting presence.meeting
connections[@<EMAIL>] = presence.id
presence.updated = new Date
Presence.update
id: presence.id
meeting: presence.meeting
,
$set:
name: presence.name
rooms: presence.rooms
$setOnInsert:
id: presence.id
meeting: presence.meeting
,
upsert: true
presenceRemove: (presenceId) ->
checkId presenceId
Presence.remove id: presenceId
| true |
import {Mongo} from 'meteor/mongo'
import {check, Match} from 'meteor/check'
import {validId, checkId} from './id.coffee'
import {checkMeeting} from './meetings.coffee'
export Presence = new Mongo.Collection 'presence'
## Mapping from Meteor connection id to presenceId [server only]
export connections = {}
Meteor.methods
presenceUpdate: (presence) ->
check presence,
id: Match.Where validId
meeting: Match.Where validId
name: String
rooms:
visible: [Match.Where validId]
invisible: [Match.Where validId]
unless @isSimulation
checkMeeting presence.meeting
connections[@PI:EMAIL:<EMAIL>END_PI] = presence.id
presence.updated = new Date
Presence.update
id: presence.id
meeting: presence.meeting
,
$set:
name: presence.name
rooms: presence.rooms
$setOnInsert:
id: presence.id
meeting: presence.meeting
,
upsert: true
presenceRemove: (presenceId) ->
checkId presenceId
Presence.remove id: presenceId
|
[
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Chodorow, Stanley A. '\n FK_SPM_SPCL_MTG_CD: ' '\n ",
"end": 678,
"score": 0.9997825622558594,
"start": 659,
"tag": "NAME",
"value": "Chodorow, Stanley A"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Chodorow, Stanley A. '\n FK_SPM_SPCL_MTG_",
"end": 1545,
"score": 0.9835604429244995,
"start": 1537,
"tag": "NAME",
"value": "Chodorow"
},
{
"context": "_HEADROW: false\n PERSON_FULL_NAME: 'Chodorow, Stanley A. '\n FK_SPM_SPCL_MTG_CD: ' '\n ",
"end": 1556,
"score": 0.8761229515075684,
"start": 1547,
"tag": "NAME",
"value": "Stanley A"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Chodorow, Stanley A. '\n FK_SPM_SPCL_MTG_CD: ' '\n ",
"end": 2569,
"score": 0.9822962284088135,
"start": 2550,
"tag": "NAME",
"value": "Chodorow, Stanley A"
},
{
"context": " FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'MANDE'\n SECT_CREDI",
"end": 2638,
"score": 0.6179056763648987,
"start": 2637,
"tag": "USERNAME",
"value": "1"
},
{
"context": "FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'MANDE'\n SECT_CREDIT_HRS_P",
"end": 2645,
"score": 0.5529369115829468,
"start": 2643,
"tag": "USERNAME",
"value": "19"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Chodorow, Stanley A. '\n PB_FRIEND: true\n FK_SP",
"end": 3446,
"score": 0.9959011077880859,
"start": 3427,
"tag": "NAME",
"value": "Chodorow, Stanley A"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Miranda, Gregory Joseph '\n FK_SPM_SPCL_MTG_CD: ' '\n ",
"end": 4350,
"score": 0.95759516954422,
"start": 4327,
"tag": "NAME",
"value": "Miranda, Gregory Joseph"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Miranda, Gregory Joseph '\n FK_SPM_SPCL_MT",
"end": 5212,
"score": 0.9998000860214233,
"start": 5205,
"tag": "NAME",
"value": "Miranda"
},
{
"context": "D_HEADROW: false\n PERSON_FULL_NAME: 'Miranda, Gregory Joseph '\n FK_SPM_SPCL_MTG_CD: ' '\n ",
"end": 5228,
"score": 0.9911548495292664,
"start": 5214,
"tag": "NAME",
"value": "Gregory Joseph"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Miranda, Gregory Joseph '\n FK_SPM_SPCL_MTG_CD: ' '\n ",
"end": 6106,
"score": 0.9834927320480347,
"start": 6083,
"tag": "NAME",
"value": "Miranda, Gregory Joseph"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Miranda, Gregory Joseph '\n FK_SPM_SPCL_MT",
"end": 7101,
"score": 0.9997934103012085,
"start": 7094,
"tag": "NAME",
"value": "Miranda"
},
{
"context": "D_HEADROW: false\n PERSON_FULL_NAME: 'Miranda, Gregory Joseph '\n FK_SPM_SPCL_MTG_CD: ' '\n ",
"end": 7117,
"score": 0.9459205865859985,
"start": 7103,
"tag": "NAME",
"value": "Gregory Joseph"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Miranda, Gregory Joseph '\n PB_FRIEND: true",
"end": 7979,
"score": 0.9719293713569641,
"start": 7972,
"tag": "NAME",
"value": "Miranda"
},
{
"context": "D_HEADROW: false\n PERSON_FULL_NAME: 'Miranda, Gregory Joseph '\n PB_FRIEND: true\n FK_SPM_S",
"end": 7995,
"score": 0.9421898126602173,
"start": 7981,
"tag": "NAME",
"value": "Gregory Joseph"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Zelmanov, Efim I '\n FK_SPM_SPCL_MTG_CD: ' ",
"end": 8888,
"score": 0.9998642802238464,
"start": 8872,
"tag": "NAME",
"value": "Zelmanov, Efim I"
},
{
"context": "FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'RCLAS'\n SECT_CREDIT_HRS_P",
"end": 8967,
"score": 0.6369014978408813,
"start": 8965,
"tag": "USERNAME",
"value": "19"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Zelmanov, Efim I '\n FK_SPM_SPCL_MTG_CD: ' ",
"end": 9766,
"score": 0.9998514652252197,
"start": 9750,
"tag": "NAME",
"value": "Zelmanov, Efim I"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Zelmanov, Efim I '\n FK_SPM_SPCL_MTG_CD: ' ",
"end": 10644,
"score": 0.9996111392974854,
"start": 10628,
"tag": "NAME",
"value": "Zelmanov, Efim I"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Zelmanov, Efim I '\n FK_SPM_SPCL_MTG_CD: ' ",
"end": 11654,
"score": 0.9998490810394287,
"start": 11638,
"tag": "NAME",
"value": "Zelmanov, Efim I"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Zelmanov, Efim I '\n PB_FRIEND: true\n F",
"end": 12522,
"score": 0.9997847080230713,
"start": 12506,
"tag": "NAME",
"value": "Zelmanov, Efim I"
},
{
"context": "ue\n FK_SPM_SPCL_MTG_CD: ''\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'TBA'\n SECT_CREDIT_HRS_PL:",
"end": 12621,
"score": 0.9625036716461182,
"start": 12612,
"tag": "USERNAME",
"value": "A16948219"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Zelmanov, Efim I '\n PB_FRIEND: true\n F",
"end": 13418,
"score": 0.9998053312301636,
"start": 13402,
"tag": "NAME",
"value": "Zelmanov, Efim I"
},
{
"context": "\n FK_SPM_SPCL_MTG_CD: 'MI'\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'RCLAS'\n SECT_CREDIT_HRS",
"end": 13517,
"score": 0.8261004686355591,
"start": 13510,
"tag": "USERNAME",
"value": "A169482"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Zelmanov, Efim I '\n PB_FRIEND: true\n F",
"end": 14318,
"score": 0.9995726346969604,
"start": 14302,
"tag": "NAME",
"value": "Zelmanov, Efim I"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Staff'\n FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: ",
"end": 15209,
"score": 0.9978220462799072,
"start": 15204,
"tag": "NAME",
"value": "Staff"
},
{
"context": "\n FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'CENTR'\n SECT_CREDIT_HRS_P",
"end": 15269,
"score": 0.9873300194740295,
"start": 15260,
"tag": "USERNAME",
"value": "A16948219"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Staff'\n FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: ",
"end": 16059,
"score": 0.8590615391731262,
"start": 16054,
"tag": "USERNAME",
"value": "Staff"
},
{
"context": "\n FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'CENTR'\n SECT_CREDIT_HRS_P",
"end": 16119,
"score": 0.9769231081008911,
"start": 16110,
"tag": "USERNAME",
"value": "A16948219"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Staff'\n FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: ",
"end": 16909,
"score": 0.8691021800041199,
"start": 16904,
"tag": "USERNAME",
"value": "Staff"
},
{
"context": "\n FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'CENTR'\n SECT_CREDIT_HRS_P",
"end": 16969,
"score": 0.9789689183235168,
"start": 16960,
"tag": "USERNAME",
"value": "A16948219"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Staff'\n FK_SPM_SPCL_MTG_CD: ' '\n PERSON_ID: ",
"end": 17894,
"score": 0.9963168501853943,
"start": 17889,
"tag": "NAME",
"value": "Staff"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Staff'\n PB_FRIEND: true\n FK_SPM_SPCL_MTG_CD: ",
"end": 18744,
"score": 0.9993723034858704,
"start": 18739,
"tag": "NAME",
"value": "Staff"
},
{
"context": "\n FK_SPM_SPCL_MTG_CD: 'MI'\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'MOS '\n SECT_CREDIT_HRS_P",
"end": 18826,
"score": 0.8393670320510864,
"start": 18817,
"tag": "USERNAME",
"value": "A16948219"
},
{
"context": " NEED_HEADROW: false\n PERSON_FULL_NAME: 'Staff'\n PB_FRIEND: true\n FK_SPM_SPCL_MTG_CD: ",
"end": 19615,
"score": 0.9988808035850525,
"start": 19610,
"tag": "NAME",
"value": "Staff"
},
{
"context": "\n FK_SPM_SPCL_MTG_CD: 'FI'\n PERSON_ID: 'A16948219'\n BLDG_CODE: 'MOS '\n SECT_CREDIT_HRS_P",
"end": 19697,
"score": 0.9230296611785889,
"start": 19688,
"tag": "USERNAME",
"value": "A16948219"
}
] |
src/schedule.coffee
|
SheepTester/uxdy
| 1 |
# This is my schedule! I'm hard-coding it for now
window.schedule =
[
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 9
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '2'
BEGIN_MM_TIME: 30
NEED_HEADROW: false
PERSON_FULL_NAME: 'Chodorow, Stanley A. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 9
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 30
NEED_HEADROW: false
PERSON_FULL_NAME: 'Chodorow, Stanley A. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 17
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 17
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 12
END_DATE: '2021-12-03'
SECTION_NUMBER: 50717
STP_ENRLT_FLAG: 'N'
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
COUNT_ON_WAITLIST: null
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'B-146'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 12
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Chodorow, Stanley A. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MANDE'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'D07'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 8
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-12-09'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Chodorow, Stanley A. '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Miranda, Gregory Joseph '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Miranda, Gregory Joseph '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Miranda, Gregory Joseph '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 49
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 49
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 15
END_DATE: '2021-12-03'
SECTION_NUMBER: 53086
STP_ENRLT_FLAG: 'Y'
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: 10
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '120 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 15
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Miranda, Gregory Joseph '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'PCYNH'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'C01'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 15
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 11 '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Miranda, Gregory Joseph '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Zelmanov, Efim I '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Zelmanov, Efim I '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Zelmanov, Efim I '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 26
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 26
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 12
END_DATE: '2021-12-03'
SECTION_NUMBER: 59172
STP_ENRLT_FLAG: 'Y'
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: 1
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '3000A'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 12
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '2'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Zelmanov, Efim I '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'YORK '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'B21'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 0
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 0
SECTION_NUMBER: 51442
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'TBA'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 0
GRADE_OPTION: 'L'
START_DATE: 'TBA'
CRSE_CODE: ' 18 '
DAY_CODE: 'TBA'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Zelmanov, Efim I '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: ''
PERSON_ID: 'A16948219'
BLDG_CODE: 'TBA'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LA'
SECT_CODE: 'B50'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 20
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R07 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-11-01'
CRSE_CODE: ' 18 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Zelmanov, Efim I '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'MI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'MI'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 19
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R01 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 18 '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Zelmanov, Efim I '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 33
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 12
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 11
END_DATE: '2021-12-03'
SECTION_NUMBER: 51579
STP_ENRLT_FLAG: 'N'
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: null
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '3000A'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 11
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'YORK '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'E06'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 20
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '0113 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-11-02'
CRSE_CODE: ' 20C '
DAY_CODE: '2'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'MI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'MI'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 8
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '0113 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 20C '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
]
|
121041
|
# This is my schedule! I'm hard-coding it for now
window.schedule =
[
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 9
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '2'
BEGIN_MM_TIME: 30
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 9
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 30
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>, <NAME>. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 17
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 17
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 12
END_DATE: '2021-12-03'
SECTION_NUMBER: 50717
STP_ENRLT_FLAG: 'N'
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
COUNT_ON_WAITLIST: null
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'B-146'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 12
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MANDE'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'D07'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 8
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-12-09'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>. '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>, <NAME> '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 49
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 49
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 15
END_DATE: '2021-12-03'
SECTION_NUMBER: 53086
STP_ENRLT_FLAG: 'Y'
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: 10
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '120 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 15
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>, <NAME> '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'PCYNH'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'C01'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 15
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 11 '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>, <NAME> '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 26
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 26
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 12
END_DATE: '2021-12-03'
SECTION_NUMBER: 59172
STP_ENRLT_FLAG: 'Y'
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: 1
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '3000A'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 12
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '2'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'YORK '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'B21'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 0
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 0
SECTION_NUMBER: 51442
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'TBA'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 0
GRADE_OPTION: 'L'
START_DATE: 'TBA'
CRSE_CODE: ' 18 '
DAY_CODE: 'TBA'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: ''
PERSON_ID: 'A16948219'
BLDG_CODE: 'TBA'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LA'
SECT_CODE: 'B50'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 20
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R07 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-11-01'
CRSE_CODE: ' 18 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'MI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'MI'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 19
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R01 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 18 '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME> '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 33
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 12
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 11
END_DATE: '2021-12-03'
SECTION_NUMBER: 51579
STP_ENRLT_FLAG: 'N'
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: null
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '3000A'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 11
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'YORK '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'E06'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 20
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '0113 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-11-02'
CRSE_CODE: ' 20C '
DAY_CODE: '2'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>'
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'MI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'MI'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 8
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '0113 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 20C '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: '<NAME>'
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
]
| true |
# This is my schedule! I'm hard-coding it for now
window.schedule =
[
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 9
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '2'
BEGIN_MM_TIME: 30
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 9
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 30
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 17
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 17
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 12
END_DATE: '2021-12-03'
SECTION_NUMBER: 50717
STP_ENRLT_FLAG: 'N'
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
COUNT_ON_WAITLIST: null
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'B-146'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 12
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI. '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'MANDE'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'D07'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 8
SECTION_NUMBER: 50710
SUBJ_CODE: 'CAT '
GRADE_OPTN_CD_PLUS: ' '
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '0114 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Culture, Art & Technology 1 '
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-12-09'
CRSE_CODE: ' 1 '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI. '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 50717
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'D00'
FK_SEC_SCTN_NUM: 50717
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 16
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '119 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 16
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 49
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 49
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 15
END_DATE: '2021-12-03'
SECTION_NUMBER: 53086
STP_ENRLT_FLAG: 'Y'
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: 10
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '120 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 15
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 11 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'PCYNH'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'C01'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 15
SECTION_NUMBER: 53085
SUBJ_CODE: 'CSE '
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Accel. Intro to Programming '
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 11 '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI, PI:NAME:<NAME>END_PI '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 53086
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'C00'
FK_SEC_SCTN_NUM: 53086
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 13
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R107 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 13
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 26
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 26
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 12
END_DATE: '2021-12-03'
SECTION_NUMBER: 59172
STP_ENRLT_FLAG: 'Y'
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: 1
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: '3000A'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 12
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 18 '
DAY_CODE: '2'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'YORK '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'B21'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 0
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 0
SECTION_NUMBER: 51442
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'TBA'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 0
GRADE_OPTION: 'L'
START_DATE: 'TBA'
CRSE_CODE: ' 18 '
DAY_CODE: 'TBA'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: ''
PERSON_ID: 'A16948219'
BLDG_CODE: 'TBA'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LA'
SECT_CODE: 'B50'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 20
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R07 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-11-01'
CRSE_CODE: ' 18 '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'MI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'MI'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 19
SECTION_NUMBER: 51423
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'Y'
ROOM_CODE: 'R01 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Linear Algebra '
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 18 '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI '
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'RCLAS'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 59172
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'B00'
FK_SEC_SCTN_NUM: 59172
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '1'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '3'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 17
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '115 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 17
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '5'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'Staff'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'CENTR'
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'LE'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
SCTN_CPCTY_QTY: 33
TERM_CODE: 'FA21'
SCTN_ENRLT_QTY: 12
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 11
END_DATE: '2021-12-03'
SECTION_NUMBER: 51579
STP_ENRLT_FLAG: 'N'
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
COUNT_ON_WAITLIST: null
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '3000A'
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 11
GRADE_OPTION: 'L'
START_DATE: '2021-09-23'
CRSE_CODE: ' 20C '
DAY_CODE: '4'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI'
FK_SPM_SPCL_MTG_CD: ' '
PERSON_ID: 'A16948219'
BLDG_CODE: 'YORK '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'DI'
SECT_CODE: 'E06'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 50
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 20
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '0113 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 21
GRADE_OPTION: 'L'
START_DATE: '2021-11-02'
CRSE_CODE: ' 20C '
DAY_CODE: '2'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI'
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'MI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'MI'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
{
END_MM_TIME: 59
LONG_DESC: ' '
TERM_CODE: 'FA21'
SECT_CREDIT_HRS: 4
BEGIN_HH_TIME: 8
SECTION_NUMBER: 51573
SUBJ_CODE: 'MATH'
GRADE_OPTN_CD_PLUS: '+'
WT_POS: ''
PRIMARY_INSTR_FLAG: 'TBA'
ROOM_CODE: '0113 '
FK_PCH_INTRL_REFID: 2122934
CRSE_TITLE: 'Calculus&Analyt Geom/Sci&Engnr'
END_HH_TIME: 10
GRADE_OPTION: 'L'
START_DATE: '2021-12-04'
CRSE_CODE: ' 20C '
DAY_CODE: '6'
BEGIN_MM_TIME: 0
NEED_HEADROW: false
PERSON_FULL_NAME: 'PI:NAME:<NAME>END_PI'
PB_FRIEND: true
FK_SPM_SPCL_MTG_CD: 'FI'
PERSON_ID: 'A16948219'
BLDG_CODE: 'MOS '
SECT_CREDIT_HRS_PL: ' '
SECTION_HEAD: 51579
ENROLL_STATUS: 'EN'
FK_CDI_INSTR_TYPE: 'FI'
SECT_CODE: 'E00'
FK_SEC_SCTN_NUM: 51579
}
]
|
[
{
"context": "or form', ->\n @rendered.should.containEql 'Edit Halley Johnson'\n @rendered.should.containEql 'value=\"Halley J",
"end": 1254,
"score": 0.8815126419067383,
"start": 1240,
"tag": "NAME",
"value": "Halley Johnson"
},
{
"context": " Johnson'\n @rendered.should.containEql 'value=\"Halley Johnson\"'\n @rendered.should.containEql 'value=\"kanaabe",
"end": 1310,
"score": 0.9996806979179382,
"start": 1296,
"tag": "NAME",
"value": "Halley Johnson"
},
{
"context": "ponent, 'author-edit__twitter'\n input.value = 'artsyeditorial'\n r.simulate.change input\n @component.state",
"end": 1562,
"score": 0.7189214825630188,
"start": 1548,
"tag": "USERNAME",
"value": "artsyeditorial"
},
{
"context": "mponent.state.author.twitter_handle.should.equal 'artsyeditorial'\n\n it 'updates name state on input changes', ->\n",
"end": 1663,
"score": 0.8523440361022949,
"start": 1649,
"tag": "USERNAME",
"value": "artsyeditorial"
},
{
"context": "component, 'author-edit__name'\n input.value = 'Owen Dodd'\n r.simulate.change input\n @component.state",
"end": 1792,
"score": 0.9997873902320862,
"start": 1783,
"tag": "NAME",
"value": "Owen Dodd"
},
{
"context": "ut\n @component.state.author.name.should.equal 'Owen Dodd'\n\n it 'updates bio state on input changes', ->\n ",
"end": 1878,
"score": 0.9998088479042053,
"start": 1869,
"tag": "NAME",
"value": "Owen Dodd"
}
] |
src/client/apps/settings/test/client/authors/author_modal.test.coffee
|
craigspaeth/positron
| 76 |
_ = require 'underscore'
benv = require 'benv'
sinon = require 'sinon'
{ resolve } = require 'path'
fixtures = require '../../../../../../test/helpers/fixtures'
React = require 'react'
ReactDOM = require 'react-dom'
ReactTestUtils = require 'react-dom/test-utils'
ReactDOMServer = require 'react-dom/server'
r =
find: ReactTestUtils.findRenderedDOMComponentWithClass
simulate: ReactTestUtils.Simulate
describe 'AuthorModal', ->
beforeEach (done) ->
benv.setup =>
benv.expose $: benv.require 'jquery'
AuthorModal = benv.requireWithJadeify(
resolve(__dirname, '../../../client/authors/author_modal')
['icons']
)
AuthorModal.__set__ 'AuthorImage', @AuthorImage = sinon.stub()
props =
author: fixtures().authors
isOpen: true
onSave: @onSave = sinon.stub()
onClose: @onClose = sinon.stub()
@rendered = ReactDOMServer.renderToString(
React.createElement(AuthorModal, props)
)
@component = ReactDOM.render(
React.createElement(AuthorModal, props),
(@$el = $ "<div></div>")[0],
=>
)
done()
afterEach ->
benv.teardown()
it 'renders author form', ->
@rendered.should.containEql 'Edit Halley Johnson'
@rendered.should.containEql 'value="Halley Johnson"'
@rendered.should.containEql 'value="kanaabe"'
@rendered.should.containEql 'Writer based in NYC'
it 'updates twitter_handle state on input changes', ->
input = r.find @component, 'author-edit__twitter'
input.value = 'artsyeditorial'
r.simulate.change input
@component.state.author.twitter_handle.should.equal 'artsyeditorial'
it 'updates name state on input changes', ->
input = r.find @component, 'author-edit__name'
input.value = 'Owen Dodd'
r.simulate.change input
@component.state.author.name.should.equal 'Owen Dodd'
it 'updates bio state on input changes', ->
input = r.find @component, 'author-edit__bio'
input.value = 'This is a new bio.'
r.simulate.change input
@component.state.author.bio.should.equal 'This is a new bio.'
@component.state.remainingChars.should.equal 182
it 'updates image on change', ->
@component.onImageChange 'https://artsy.net/new-image.jpg'
@component.state.author.image_url.should.equal 'https://artsy.net/new-image.jpg'
|
82521
|
_ = require 'underscore'
benv = require 'benv'
sinon = require 'sinon'
{ resolve } = require 'path'
fixtures = require '../../../../../../test/helpers/fixtures'
React = require 'react'
ReactDOM = require 'react-dom'
ReactTestUtils = require 'react-dom/test-utils'
ReactDOMServer = require 'react-dom/server'
r =
find: ReactTestUtils.findRenderedDOMComponentWithClass
simulate: ReactTestUtils.Simulate
describe 'AuthorModal', ->
beforeEach (done) ->
benv.setup =>
benv.expose $: benv.require 'jquery'
AuthorModal = benv.requireWithJadeify(
resolve(__dirname, '../../../client/authors/author_modal')
['icons']
)
AuthorModal.__set__ 'AuthorImage', @AuthorImage = sinon.stub()
props =
author: fixtures().authors
isOpen: true
onSave: @onSave = sinon.stub()
onClose: @onClose = sinon.stub()
@rendered = ReactDOMServer.renderToString(
React.createElement(AuthorModal, props)
)
@component = ReactDOM.render(
React.createElement(AuthorModal, props),
(@$el = $ "<div></div>")[0],
=>
)
done()
afterEach ->
benv.teardown()
it 'renders author form', ->
@rendered.should.containEql 'Edit <NAME>'
@rendered.should.containEql 'value="<NAME>"'
@rendered.should.containEql 'value="kanaabe"'
@rendered.should.containEql 'Writer based in NYC'
it 'updates twitter_handle state on input changes', ->
input = r.find @component, 'author-edit__twitter'
input.value = 'artsyeditorial'
r.simulate.change input
@component.state.author.twitter_handle.should.equal 'artsyeditorial'
it 'updates name state on input changes', ->
input = r.find @component, 'author-edit__name'
input.value = '<NAME>'
r.simulate.change input
@component.state.author.name.should.equal '<NAME>'
it 'updates bio state on input changes', ->
input = r.find @component, 'author-edit__bio'
input.value = 'This is a new bio.'
r.simulate.change input
@component.state.author.bio.should.equal 'This is a new bio.'
@component.state.remainingChars.should.equal 182
it 'updates image on change', ->
@component.onImageChange 'https://artsy.net/new-image.jpg'
@component.state.author.image_url.should.equal 'https://artsy.net/new-image.jpg'
| true |
_ = require 'underscore'
benv = require 'benv'
sinon = require 'sinon'
{ resolve } = require 'path'
fixtures = require '../../../../../../test/helpers/fixtures'
React = require 'react'
ReactDOM = require 'react-dom'
ReactTestUtils = require 'react-dom/test-utils'
ReactDOMServer = require 'react-dom/server'
r =
find: ReactTestUtils.findRenderedDOMComponentWithClass
simulate: ReactTestUtils.Simulate
describe 'AuthorModal', ->
beforeEach (done) ->
benv.setup =>
benv.expose $: benv.require 'jquery'
AuthorModal = benv.requireWithJadeify(
resolve(__dirname, '../../../client/authors/author_modal')
['icons']
)
AuthorModal.__set__ 'AuthorImage', @AuthorImage = sinon.stub()
props =
author: fixtures().authors
isOpen: true
onSave: @onSave = sinon.stub()
onClose: @onClose = sinon.stub()
@rendered = ReactDOMServer.renderToString(
React.createElement(AuthorModal, props)
)
@component = ReactDOM.render(
React.createElement(AuthorModal, props),
(@$el = $ "<div></div>")[0],
=>
)
done()
afterEach ->
benv.teardown()
it 'renders author form', ->
@rendered.should.containEql 'Edit PI:NAME:<NAME>END_PI'
@rendered.should.containEql 'value="PI:NAME:<NAME>END_PI"'
@rendered.should.containEql 'value="kanaabe"'
@rendered.should.containEql 'Writer based in NYC'
it 'updates twitter_handle state on input changes', ->
input = r.find @component, 'author-edit__twitter'
input.value = 'artsyeditorial'
r.simulate.change input
@component.state.author.twitter_handle.should.equal 'artsyeditorial'
it 'updates name state on input changes', ->
input = r.find @component, 'author-edit__name'
input.value = 'PI:NAME:<NAME>END_PI'
r.simulate.change input
@component.state.author.name.should.equal 'PI:NAME:<NAME>END_PI'
it 'updates bio state on input changes', ->
input = r.find @component, 'author-edit__bio'
input.value = 'This is a new bio.'
r.simulate.change input
@component.state.author.bio.should.equal 'This is a new bio.'
@component.state.remainingChars.should.equal 182
it 'updates image on change', ->
@component.onImageChange 'https://artsy.net/new-image.jpg'
@component.state.author.image_url.should.equal 'https://artsy.net/new-image.jpg'
|
[
{
"context": "# Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public Li",
"end": 43,
"score": 0.9999141693115234,
"start": 29,
"tag": "EMAIL",
"value": "[email protected]"
}
] |
resources/assets/coffee/_classes/nav-button.coffee
|
osu-katakuna/osu-katakuna-web
| 5 |
# Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @NavButton
constructor: ->
@containers = document.getElementsByClassName 'js-nav-button--container'
@items = document.getElementsByClassName 'js-nav-button--item'
@main = document.getElementsByClassName 'js-nav-button'
addEventListener 'turbolinks:load', @load
load: =>
if !@listening
@listening = true
$(window).on 'throttled-resize', @hideOrShow
return if @main.length == 0
# assumes:
# - the width never changes once the page loads
# - items all have same width
@itemWidth = @items[0].offsetWidth
@defaultWidth = 0
@defaultWidth += c.offsetWidth for c in @containers
@hideOrShow()
hideOrShow: =>
return if @main.length == 0
currentMaxWidth = @main[0].offsetWidth
currentWidth = @defaultWidth
i.classList.remove 'hidden' for i in @items
if currentMaxWidth < currentWidth
for item in @items
currentWidth -= @itemWidth
item.classList.add 'hidden'
return if currentMaxWidth >= currentWidth
|
180467
|
# Copyright (c) ppy Pty Ltd <<EMAIL>>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @NavButton
constructor: ->
@containers = document.getElementsByClassName 'js-nav-button--container'
@items = document.getElementsByClassName 'js-nav-button--item'
@main = document.getElementsByClassName 'js-nav-button'
addEventListener 'turbolinks:load', @load
load: =>
if !@listening
@listening = true
$(window).on 'throttled-resize', @hideOrShow
return if @main.length == 0
# assumes:
# - the width never changes once the page loads
# - items all have same width
@itemWidth = @items[0].offsetWidth
@defaultWidth = 0
@defaultWidth += c.offsetWidth for c in @containers
@hideOrShow()
hideOrShow: =>
return if @main.length == 0
currentMaxWidth = @main[0].offsetWidth
currentWidth = @defaultWidth
i.classList.remove 'hidden' for i in @items
if currentMaxWidth < currentWidth
for item in @items
currentWidth -= @itemWidth
item.classList.add 'hidden'
return if currentMaxWidth >= currentWidth
| true |
# Copyright (c) ppy Pty Ltd <PI:EMAIL:<EMAIL>END_PI>. Licensed under the GNU Affero General Public License v3.0.
# See the LICENCE file in the repository root for full licence text.
class @NavButton
constructor: ->
@containers = document.getElementsByClassName 'js-nav-button--container'
@items = document.getElementsByClassName 'js-nav-button--item'
@main = document.getElementsByClassName 'js-nav-button'
addEventListener 'turbolinks:load', @load
load: =>
if !@listening
@listening = true
$(window).on 'throttled-resize', @hideOrShow
return if @main.length == 0
# assumes:
# - the width never changes once the page loads
# - items all have same width
@itemWidth = @items[0].offsetWidth
@defaultWidth = 0
@defaultWidth += c.offsetWidth for c in @containers
@hideOrShow()
hideOrShow: =>
return if @main.length == 0
currentMaxWidth = @main[0].offsetWidth
currentWidth = @defaultWidth
i.classList.remove 'hidden' for i in @items
if currentMaxWidth < currentWidth
for item in @items
currentWidth -= @itemWidth
item.classList.add 'hidden'
return if currentMaxWidth >= currentWidth
|
[
{
"context": "User({role: 'teacher'})\n# yield utils.loginUser(@teacher)\n# done()\n# \n# describe 'when recipientID is",
"end": 430,
"score": 0.9011542797088623,
"start": 422,
"tag": "USERNAME",
"value": "@teacher"
},
{
"context": "# done()\n# \n# describe 'when recipientID is \"[email protected]\"', ->\n# it 'sends to that email', utils.wrap (",
"end": 504,
"score": 0.9999277591705322,
"start": 482,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": "rl: getURL('/contact'), json: {\n# sender: '[email protected]'\n# message: 'A message'\n# recipient",
"end": 674,
"score": 0.999921977519989,
"start": 660,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": " message: 'A message'\n# recipientID: '[email protected]'\n# }})\n# expect(sendwithus.api.send).to",
"end": 751,
"score": 0.9999274015426636,
"start": 729,
"tag": "EMAIL",
"value": "[email protected]"
},
{
"context": "HaveBeenCalled()\n# user = yield User.findById(@teacher.id)\n# yield new Promise((resolve) -> setTime",
"end": 860,
"score": 0.8859381079673767,
"start": 852,
"tag": "USERNAME",
"value": "@teacher"
}
] |
spec/server/functional/contact.spec.coffee
|
johanvl/codecombat
| 2 |
utils = require '../utils'
sendwithus = require '../../../server/sendwithus'
request = require '../request'
User = require '../../../server/models/User'
# TODO: need to update this test since /contact calls external Close.io API now
#xdescribe 'POST /contact', ->
#
# beforeEach utils.wrap (done) ->
# spyOn(sendwithus.api, 'send')
# @teacher = yield utils.initUser({role: 'teacher'})
# yield utils.loginUser(@teacher)
# done()
#
# describe 'when recipientID is "[email protected]"', ->
# it 'sends to that email', utils.wrap (done) ->
# [res, body] = yield request.postAsync({url: getURL('/contact'), json: {
# sender: '[email protected]'
# message: 'A message'
# recipientID: '[email protected]'
# }})
# expect(sendwithus.api.send).toHaveBeenCalled()
# user = yield User.findById(@teacher.id)
# yield new Promise((resolve) -> setTimeout(resolve, 10))
# expect(user.get('enrollmentRequestSent')).toBe(true)
# done()
|
58558
|
utils = require '../utils'
sendwithus = require '../../../server/sendwithus'
request = require '../request'
User = require '../../../server/models/User'
# TODO: need to update this test since /contact calls external Close.io API now
#xdescribe 'POST /contact', ->
#
# beforeEach utils.wrap (done) ->
# spyOn(sendwithus.api, 'send')
# @teacher = yield utils.initUser({role: 'teacher'})
# yield utils.loginUser(@teacher)
# done()
#
# describe 'when recipientID is "<EMAIL>"', ->
# it 'sends to that email', utils.wrap (done) ->
# [res, body] = yield request.postAsync({url: getURL('/contact'), json: {
# sender: '<EMAIL>'
# message: 'A message'
# recipientID: '<EMAIL>'
# }})
# expect(sendwithus.api.send).toHaveBeenCalled()
# user = yield User.findById(@teacher.id)
# yield new Promise((resolve) -> setTimeout(resolve, 10))
# expect(user.get('enrollmentRequestSent')).toBe(true)
# done()
| true |
utils = require '../utils'
sendwithus = require '../../../server/sendwithus'
request = require '../request'
User = require '../../../server/models/User'
# TODO: need to update this test since /contact calls external Close.io API now
#xdescribe 'POST /contact', ->
#
# beforeEach utils.wrap (done) ->
# spyOn(sendwithus.api, 'send')
# @teacher = yield utils.initUser({role: 'teacher'})
# yield utils.loginUser(@teacher)
# done()
#
# describe 'when recipientID is "PI:EMAIL:<EMAIL>END_PI"', ->
# it 'sends to that email', utils.wrap (done) ->
# [res, body] = yield request.postAsync({url: getURL('/contact'), json: {
# sender: 'PI:EMAIL:<EMAIL>END_PI'
# message: 'A message'
# recipientID: 'PI:EMAIL:<EMAIL>END_PI'
# }})
# expect(sendwithus.api.send).toHaveBeenCalled()
# user = yield User.findById(@teacher.id)
# yield new Promise((resolve) -> setTimeout(resolve, 10))
# expect(user.get('enrollmentRequestSent')).toBe(true)
# done()
|
[
{
"context": "ength\n\t\t\tdeepEq {id: 3, sex: 'F', age: 34, name: 'Elaine Benes'}, res[2]\n\n\t\t# TODO\n\t\t# it.only 'date', ->\n\t\t# \tr",
"end": 849,
"score": 0.9998611211776733,
"start": 837,
"tag": "NAME",
"value": "Elaine Benes"
},
{
"context": "son: _ {name: {like: '%Mi%'}}\n\t\t\t\tdeepEq [{name: 'Michael Bolton'}, {name: 'Milton Waddams'}], res\n\n\t\t\tit 'ilike',",
"end": 1481,
"score": 0.9998971223831177,
"start": 1467,
"tag": "NAME",
"value": "Michael Bolton"
},
{
"context": "'}}\n\t\t\t\tdeepEq [{name: 'Michael Bolton'}, {name: 'Milton Waddams'}], res\n\n\t\t\tit 'ilike', ->\n\t\t\t\tres = f Person: _ ",
"end": 1507,
"score": 0.9998812079429626,
"start": 1493,
"tag": "NAME",
"value": "Milton Waddams"
},
{
"context": "on: _ {name: {ilike: '%Mi%'}}\n\t\t\t\tdeepEq [{name: 'Samir Nagheenanajar'},\n\t\t\t\t{name: 'Michael Bolton'}, {name: 'Milton W",
"end": 1620,
"score": 0.9998971819877625,
"start": 1601,
"tag": "NAME",
"value": "Samir Nagheenanajar"
},
{
"context": "eepEq [{name: 'Samir Nagheenanajar'},\n\t\t\t\t{name: 'Michael Bolton'}, {name: 'Milton Waddams'}], res\n\n\t\t\tit 'notlike",
"end": 1650,
"score": 0.9998884797096252,
"start": 1636,
"tag": "NAME",
"value": "Michael Bolton"
},
{
"context": "enanajar'},\n\t\t\t\t{name: 'Michael Bolton'}, {name: 'Milton Waddams'}], res\n\n\t\t\tit 'notlike', ->\n\t\t\t\tres = f Person: ",
"end": 1676,
"score": 0.9998825192451477,
"start": 1662,
"tag": "NAME",
"value": "Milton Waddams"
}
] |
src/test__ramda.coffee
|
Cottin/popsiql
| 0 |
{F, gt, gte, join, length, lt, lte, pluck, where} = R = require 'ramda' # auto_require: ramda
{$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ːid, ːtext, ːamount, ːage, ːsex, ːname, ːALL] = ['id', 'text', 'amount', 'age', 'sex', 'name', 'ALL'] #auto_sugar
{eq, deepEq} = require 'testhelp' #auto_require: testhelp
{read} = require './ramda'
model = require './testModel'
seed = require './testSeed'
f = (query) -> read query, seed, model
_ = (...xs) -> xs
describe 'ramda', ->
describe 'read', ->
it 'simple', ->
deepEq [{id: 1, sex: 'M'}], f Person: _ {id: 1, ːsex}
it 'no where', ->
res = f Person: _ {ːid, ːsex, ːage}
eq 18, $ res, length
deepEq {id: 3, sex: 'F', age: 34}, res[2]
it 'ALL', ->
res = f Person: _ {ːALL}
eq 18, $ res, length
deepEq {id: 3, sex: 'F', age: 34, name: 'Elaine Benes'}, res[2]
# TODO
# it.only 'date', ->
# res = f WorkEntry: _ {date: {gt: '1993-03-05', lt: '1993-03-21'}}
# console.log res
# eq 3, $ res, length
# # deepEq {id: 3, sex: 'F', age: 34}, res[2]
describe 'predicates', ->
it 'gt, lt, gte, lte', ->
deepEq [{id: 3, age: 34}], f Person: _ {id: {gt: 2, lt: 8}, age: {lte: 34, gte: 31}}
it 'ne', ->
deepEq [{sex: 'F'}, {sex: 'F'}], f Person: _ {sex: {ne: 'M'}}
it 'in', ->
deepEq [{age: 32}, {age: 32}, {age: 12}], f Person: _ {age: {in: [32, 12]}}
it 'like', ->
res = f Person: _ {name: {like: '%Mi%'}}
deepEq [{name: 'Michael Bolton'}, {name: 'Milton Waddams'}], res
it 'ilike', ->
res = f Person: _ {name: {ilike: '%Mi%'}}
deepEq [{name: 'Samir Nagheenanajar'},
{name: 'Michael Bolton'}, {name: 'Milton Waddams'}], res
it 'notlike', ->
res = f Person: _ {name: {notlike: '%S%'}, ːid}
deepEq [1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 18], pluck 'id', res
it 'notilike', ->
res = f Person: _ {name: {notilike: '%S%'}, ːid}
deepEq [1, 4, 6, 10, 13, 15, 16, 17, 18], pluck 'id', res
it 'deep join', ->
query =
Person: _ {id: {in: [3, 4]}, ːname},
roles: _ {name: 'Guest'},
project: _ {ːid, ːname},
company: _ {ːname}
entries: _ {date: {gt: '1993-02-03'}, ːamount}
res = f query
eq 1, res[0].roles.length
eq 2, res[0].entries.length
eq 'Vandelay Industries', res[1].roles[1].project.company.name
it 'multiple join', ->
query =
adults:
Person: _ {age: {gte: 18}, ːname},
roles: _ {ːname}
entries: _ {ːid, ːtext}
children:
Person: _ {age: {lt: 18}, ːname},
roles: _ {ːname}
entries: _ {ːid, ːtext}
res = f query
eq 14, res.adults.length
eq 4, res.children.length
eq 'Project leader', res.adults[4].roles[1].name
|
50738
|
{F, gt, gte, join, length, lt, lte, pluck, where} = R = require 'ramda' # auto_require: ramda
{$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ːid, ːtext, ːamount, ːage, ːsex, ːname, ːALL] = ['id', 'text', 'amount', 'age', 'sex', 'name', 'ALL'] #auto_sugar
{eq, deepEq} = require 'testhelp' #auto_require: testhelp
{read} = require './ramda'
model = require './testModel'
seed = require './testSeed'
f = (query) -> read query, seed, model
_ = (...xs) -> xs
describe 'ramda', ->
describe 'read', ->
it 'simple', ->
deepEq [{id: 1, sex: 'M'}], f Person: _ {id: 1, ːsex}
it 'no where', ->
res = f Person: _ {ːid, ːsex, ːage}
eq 18, $ res, length
deepEq {id: 3, sex: 'F', age: 34}, res[2]
it 'ALL', ->
res = f Person: _ {ːALL}
eq 18, $ res, length
deepEq {id: 3, sex: 'F', age: 34, name: '<NAME>'}, res[2]
# TODO
# it.only 'date', ->
# res = f WorkEntry: _ {date: {gt: '1993-03-05', lt: '1993-03-21'}}
# console.log res
# eq 3, $ res, length
# # deepEq {id: 3, sex: 'F', age: 34}, res[2]
describe 'predicates', ->
it 'gt, lt, gte, lte', ->
deepEq [{id: 3, age: 34}], f Person: _ {id: {gt: 2, lt: 8}, age: {lte: 34, gte: 31}}
it 'ne', ->
deepEq [{sex: 'F'}, {sex: 'F'}], f Person: _ {sex: {ne: 'M'}}
it 'in', ->
deepEq [{age: 32}, {age: 32}, {age: 12}], f Person: _ {age: {in: [32, 12]}}
it 'like', ->
res = f Person: _ {name: {like: '%Mi%'}}
deepEq [{name: '<NAME>'}, {name: '<NAME>'}], res
it 'ilike', ->
res = f Person: _ {name: {ilike: '%Mi%'}}
deepEq [{name: '<NAME>'},
{name: '<NAME>'}, {name: '<NAME>'}], res
it 'notlike', ->
res = f Person: _ {name: {notlike: '%S%'}, ːid}
deepEq [1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 18], pluck 'id', res
it 'notilike', ->
res = f Person: _ {name: {notilike: '%S%'}, ːid}
deepEq [1, 4, 6, 10, 13, 15, 16, 17, 18], pluck 'id', res
it 'deep join', ->
query =
Person: _ {id: {in: [3, 4]}, ːname},
roles: _ {name: 'Guest'},
project: _ {ːid, ːname},
company: _ {ːname}
entries: _ {date: {gt: '1993-02-03'}, ːamount}
res = f query
eq 1, res[0].roles.length
eq 2, res[0].entries.length
eq 'Vandelay Industries', res[1].roles[1].project.company.name
it 'multiple join', ->
query =
adults:
Person: _ {age: {gte: 18}, ːname},
roles: _ {ːname}
entries: _ {ːid, ːtext}
children:
Person: _ {age: {lt: 18}, ːname},
roles: _ {ːname}
entries: _ {ːid, ːtext}
res = f query
eq 14, res.adults.length
eq 4, res.children.length
eq 'Project leader', res.adults[4].roles[1].name
| true |
{F, gt, gte, join, length, lt, lte, pluck, where} = R = require 'ramda' # auto_require: ramda
{$} = RE = require 'ramda-extras' # auto_require: ramda-extras
[ːid, ːtext, ːamount, ːage, ːsex, ːname, ːALL] = ['id', 'text', 'amount', 'age', 'sex', 'name', 'ALL'] #auto_sugar
{eq, deepEq} = require 'testhelp' #auto_require: testhelp
{read} = require './ramda'
model = require './testModel'
seed = require './testSeed'
f = (query) -> read query, seed, model
_ = (...xs) -> xs
describe 'ramda', ->
describe 'read', ->
it 'simple', ->
deepEq [{id: 1, sex: 'M'}], f Person: _ {id: 1, ːsex}
it 'no where', ->
res = f Person: _ {ːid, ːsex, ːage}
eq 18, $ res, length
deepEq {id: 3, sex: 'F', age: 34}, res[2]
it 'ALL', ->
res = f Person: _ {ːALL}
eq 18, $ res, length
deepEq {id: 3, sex: 'F', age: 34, name: 'PI:NAME:<NAME>END_PI'}, res[2]
# TODO
# it.only 'date', ->
# res = f WorkEntry: _ {date: {gt: '1993-03-05', lt: '1993-03-21'}}
# console.log res
# eq 3, $ res, length
# # deepEq {id: 3, sex: 'F', age: 34}, res[2]
describe 'predicates', ->
it 'gt, lt, gte, lte', ->
deepEq [{id: 3, age: 34}], f Person: _ {id: {gt: 2, lt: 8}, age: {lte: 34, gte: 31}}
it 'ne', ->
deepEq [{sex: 'F'}, {sex: 'F'}], f Person: _ {sex: {ne: 'M'}}
it 'in', ->
deepEq [{age: 32}, {age: 32}, {age: 12}], f Person: _ {age: {in: [32, 12]}}
it 'like', ->
res = f Person: _ {name: {like: '%Mi%'}}
deepEq [{name: 'PI:NAME:<NAME>END_PI'}, {name: 'PI:NAME:<NAME>END_PI'}], res
it 'ilike', ->
res = f Person: _ {name: {ilike: '%Mi%'}}
deepEq [{name: 'PI:NAME:<NAME>END_PI'},
{name: 'PI:NAME:<NAME>END_PI'}, {name: 'PI:NAME:<NAME>END_PI'}], res
it 'notlike', ->
res = f Person: _ {name: {notlike: '%S%'}, ːid}
deepEq [1, 2, 3, 4, 5, 6, 10, 11, 12, 13, 14, 15, 16, 17, 18], pluck 'id', res
it 'notilike', ->
res = f Person: _ {name: {notilike: '%S%'}, ːid}
deepEq [1, 4, 6, 10, 13, 15, 16, 17, 18], pluck 'id', res
it 'deep join', ->
query =
Person: _ {id: {in: [3, 4]}, ːname},
roles: _ {name: 'Guest'},
project: _ {ːid, ːname},
company: _ {ːname}
entries: _ {date: {gt: '1993-02-03'}, ːamount}
res = f query
eq 1, res[0].roles.length
eq 2, res[0].entries.length
eq 'Vandelay Industries', res[1].roles[1].project.company.name
it 'multiple join', ->
query =
adults:
Person: _ {age: {gte: 18}, ːname},
roles: _ {ːname}
entries: _ {ːid, ːtext}
children:
Person: _ {age: {lt: 18}, ːname},
roles: _ {ːname}
entries: _ {ːid, ːtext}
res = f query
eq 14, res.adults.length
eq 4, res.children.length
eq 'Project leader', res.adults[4].roles[1].name
|
[
{
"context": "#\n knockback.js 0.19.1\n Copyright (c) 2011-2014 Kevin Malakoff.\n License: MIT (http://www.opensource.org/licens",
"end": 67,
"score": 0.9997554421424866,
"start": 53,
"tag": "NAME",
"value": "Kevin Malakoff"
},
{
"context": "ses/mit-license.php)\n Source: https://github.com/kmalakoff/knockback\n Dependencies: Knockout.js, Backbone.j",
"end": 175,
"score": 0.9929566383361816,
"start": 166,
"tag": "USERNAME",
"value": "kmalakoff"
},
{
"context": "rn trigger_count++\n# });\n# emitter.set(name: 'bob'); # trigger_count: 1\n# emitter.set(name:",
"end": 1001,
"score": 0.9992539286613464,
"start": 998,
"tag": "NAME",
"value": "bob"
},
{
"context": "; # trigger_count: 1\n# emitter.set(name: 'george'); # trigger_count: 2\n# emitter.set(last: 's",
"end": 1059,
"score": 0.9828139543533325,
"start": 1053,
"tag": "NAME",
"value": "george"
},
{
"context": "e'); # trigger_count: 2\n# emitter.set(last: 'smith'); # trigger_count: 3\nmodule.exports = class ",
"end": 1113,
"score": 0.9994263648986816,
"start": 1108,
"tag": "NAME",
"value": "smith"
}
] |
src/triggering/triggered-observable.coffee
|
metacommunications/knockback
| 0 |
###
knockback.js 0.19.1
Copyright (c) 2011-2014 Kevin Malakoff.
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/kmalakoff/knockback
Dependencies: Knockout.js, Backbone.js, and Underscore.js (or LoDash.js).
Optional dependencies: Backbone.ModelRef.js and BackboneORM.
###
{_, ko} = kb = require '../core/kb'
KEYS_PUBLISH = ['destroy']
# Class for observing emitter events.
#
# @example create an observable whose subscriptions are notified with the change event is triggered.
# var triggered_observable = kb.triggeredObservable(name, 'change');
#
# @example How to watch a emitter for events.
# var trigger_count = 0;
# var emitter = new Backbone.Model();
# var view_emitter = {
# triggered_observable: kb.triggeredObservable(emitter, 'change')
# };
# view_emitter.counter = ko.computed(function() {
# view_emitter.triggered_observable() // add a dependency
# return trigger_count++
# });
# emitter.set(name: 'bob'); # trigger_count: 1
# emitter.set(name: 'george'); # trigger_count: 2
# emitter.set(last: 'smith'); # trigger_count: 3
module.exports = class kb.TriggeredObservable
# Used to create a new kb.Observable.
#
# @param [Model] emitter the emitter to observe (can be null)
# @param [String] event_selector the event name to trigger Knockout subscriptions on.
# @return [ko.observable] the constructor does not return 'this' but a ko.observable
# @note the constructor does not return 'this' but a ko.observable
constructor: (emitter, @event_selector) ->
emitter or kb._throwMissing(this, 'emitter')
@event_selector or kb._throwMissing(this, 'event_selector')
# internal state
@vo = ko.observable()
observable = kb.utils.wrappedObservable(@, ko.computed(=> @vo()))
# publish public interface on the observable and return instead of this
kb.publishMethods(observable, @, KEYS_PUBLISH)
# create emitter observable
kb.utils.wrappedEventWatcher(@, new kb.EventWatcher(emitter, @, {emitter: _.bind(@emitter, @), update: _.bind(@update, @), event_selector: @event_selector}))
return observable
# Required clean up function to break cycles, release view models, etc.
# Can be called directly, via kb.release(object) or as a consequence of ko.releaseNode(element).
destroy: -> kb.utils.wrappedDestroy(@)
# Dual-purpose getter/setter for the observed emitter.
#
# @overload emitter()
# Gets the emitter or emitter reference
# @return [Model|ModelRef|Collection] the emitter whose events are being bound (can be null)
# @overload emitter(new_emitter)
# Sets the emitter or emitter reference
# @param [Model|ModelRef|Collection] new_emitter the emitter whose events will be bound (can be null)
emitter: (new_emitter) ->
# get or no change
return @ee if (arguments.length == 0) or (@ee is new_emitter)
@update() if (@ee = new_emitter)
####################################################
# Internal
####################################################
# @private
update: ->
return unless @ee # do not trigger if there is no emitter
if @vo() isnt @ee then @vo(@ee) else @vo.valueHasMutated() # manually trigger the dependable
# factory function
kb.triggeredObservable = (emitter, event_selector) -> return new kb.TriggeredObservable(emitter, event_selector)
|
46281
|
###
knockback.js 0.19.1
Copyright (c) 2011-2014 <NAME>.
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/kmalakoff/knockback
Dependencies: Knockout.js, Backbone.js, and Underscore.js (or LoDash.js).
Optional dependencies: Backbone.ModelRef.js and BackboneORM.
###
{_, ko} = kb = require '../core/kb'
KEYS_PUBLISH = ['destroy']
# Class for observing emitter events.
#
# @example create an observable whose subscriptions are notified with the change event is triggered.
# var triggered_observable = kb.triggeredObservable(name, 'change');
#
# @example How to watch a emitter for events.
# var trigger_count = 0;
# var emitter = new Backbone.Model();
# var view_emitter = {
# triggered_observable: kb.triggeredObservable(emitter, 'change')
# };
# view_emitter.counter = ko.computed(function() {
# view_emitter.triggered_observable() // add a dependency
# return trigger_count++
# });
# emitter.set(name: '<NAME>'); # trigger_count: 1
# emitter.set(name: '<NAME>'); # trigger_count: 2
# emitter.set(last: '<NAME>'); # trigger_count: 3
module.exports = class kb.TriggeredObservable
# Used to create a new kb.Observable.
#
# @param [Model] emitter the emitter to observe (can be null)
# @param [String] event_selector the event name to trigger Knockout subscriptions on.
# @return [ko.observable] the constructor does not return 'this' but a ko.observable
# @note the constructor does not return 'this' but a ko.observable
constructor: (emitter, @event_selector) ->
emitter or kb._throwMissing(this, 'emitter')
@event_selector or kb._throwMissing(this, 'event_selector')
# internal state
@vo = ko.observable()
observable = kb.utils.wrappedObservable(@, ko.computed(=> @vo()))
# publish public interface on the observable and return instead of this
kb.publishMethods(observable, @, KEYS_PUBLISH)
# create emitter observable
kb.utils.wrappedEventWatcher(@, new kb.EventWatcher(emitter, @, {emitter: _.bind(@emitter, @), update: _.bind(@update, @), event_selector: @event_selector}))
return observable
# Required clean up function to break cycles, release view models, etc.
# Can be called directly, via kb.release(object) or as a consequence of ko.releaseNode(element).
destroy: -> kb.utils.wrappedDestroy(@)
# Dual-purpose getter/setter for the observed emitter.
#
# @overload emitter()
# Gets the emitter or emitter reference
# @return [Model|ModelRef|Collection] the emitter whose events are being bound (can be null)
# @overload emitter(new_emitter)
# Sets the emitter or emitter reference
# @param [Model|ModelRef|Collection] new_emitter the emitter whose events will be bound (can be null)
emitter: (new_emitter) ->
# get or no change
return @ee if (arguments.length == 0) or (@ee is new_emitter)
@update() if (@ee = new_emitter)
####################################################
# Internal
####################################################
# @private
update: ->
return unless @ee # do not trigger if there is no emitter
if @vo() isnt @ee then @vo(@ee) else @vo.valueHasMutated() # manually trigger the dependable
# factory function
kb.triggeredObservable = (emitter, event_selector) -> return new kb.TriggeredObservable(emitter, event_selector)
| true |
###
knockback.js 0.19.1
Copyright (c) 2011-2014 PI:NAME:<NAME>END_PI.
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/kmalakoff/knockback
Dependencies: Knockout.js, Backbone.js, and Underscore.js (or LoDash.js).
Optional dependencies: Backbone.ModelRef.js and BackboneORM.
###
{_, ko} = kb = require '../core/kb'
KEYS_PUBLISH = ['destroy']
# Class for observing emitter events.
#
# @example create an observable whose subscriptions are notified with the change event is triggered.
# var triggered_observable = kb.triggeredObservable(name, 'change');
#
# @example How to watch a emitter for events.
# var trigger_count = 0;
# var emitter = new Backbone.Model();
# var view_emitter = {
# triggered_observable: kb.triggeredObservable(emitter, 'change')
# };
# view_emitter.counter = ko.computed(function() {
# view_emitter.triggered_observable() // add a dependency
# return trigger_count++
# });
# emitter.set(name: 'PI:NAME:<NAME>END_PI'); # trigger_count: 1
# emitter.set(name: 'PI:NAME:<NAME>END_PI'); # trigger_count: 2
# emitter.set(last: 'PI:NAME:<NAME>END_PI'); # trigger_count: 3
module.exports = class kb.TriggeredObservable
# Used to create a new kb.Observable.
#
# @param [Model] emitter the emitter to observe (can be null)
# @param [String] event_selector the event name to trigger Knockout subscriptions on.
# @return [ko.observable] the constructor does not return 'this' but a ko.observable
# @note the constructor does not return 'this' but a ko.observable
constructor: (emitter, @event_selector) ->
emitter or kb._throwMissing(this, 'emitter')
@event_selector or kb._throwMissing(this, 'event_selector')
# internal state
@vo = ko.observable()
observable = kb.utils.wrappedObservable(@, ko.computed(=> @vo()))
# publish public interface on the observable and return instead of this
kb.publishMethods(observable, @, KEYS_PUBLISH)
# create emitter observable
kb.utils.wrappedEventWatcher(@, new kb.EventWatcher(emitter, @, {emitter: _.bind(@emitter, @), update: _.bind(@update, @), event_selector: @event_selector}))
return observable
# Required clean up function to break cycles, release view models, etc.
# Can be called directly, via kb.release(object) or as a consequence of ko.releaseNode(element).
destroy: -> kb.utils.wrappedDestroy(@)
# Dual-purpose getter/setter for the observed emitter.
#
# @overload emitter()
# Gets the emitter or emitter reference
# @return [Model|ModelRef|Collection] the emitter whose events are being bound (can be null)
# @overload emitter(new_emitter)
# Sets the emitter or emitter reference
# @param [Model|ModelRef|Collection] new_emitter the emitter whose events will be bound (can be null)
emitter: (new_emitter) ->
# get or no change
return @ee if (arguments.length == 0) or (@ee is new_emitter)
@update() if (@ee = new_emitter)
####################################################
# Internal
####################################################
# @private
update: ->
return unless @ee # do not trigger if there is no emitter
if @vo() isnt @ee then @vo(@ee) else @vo.valueHasMutated() # manually trigger the dependable
# factory function
kb.triggeredObservable = (emitter, event_selector) -> return new kb.TriggeredObservable(emitter, event_selector)
|
[
{
"context": "put#user_email'\n username: '.js-form input#user_username'\n password: '.js-form input#user_password'\n ",
"end": 357,
"score": 0.77559494972229,
"start": 349,
"tag": "USERNAME",
"value": "username"
},
{
"context": "name: '.js-form input#user_username'\n password: '.js-form input#user_password'\n password_confirmation: '.js-fo",
"end": 388,
"score": 0.8451117277145386,
"start": 373,
"tag": "PASSWORD",
"value": "'.js-form input"
},
{
"context": "user_username'\n password: '.js-form input#user_password'\n password_confirmation: '.js-form input#user_",
"end": 402,
"score": 0.5600019693374634,
"start": 394,
"tag": "PASSWORD",
"value": "password"
},
{
"context": ":\n email: @ui.email.val()\n username: @ui.username.val()\n password: @ui.password.val()\n ",
"end": 974,
"score": 0.7905865907669067,
"start": 962,
"tag": "USERNAME",
"value": "@ui.username"
},
{
"context": " username: @ui.username.val()\n password: @ui.password.val()\n password_confirmation: @ui.password_con",
"end": 1015,
"score": 0.8963682651519775,
"start": 999,
"tag": "PASSWORD",
"value": "@ui.password.val"
},
{
"context": " @ui.password.val()\n password_confirmation: @ui.password_confirmation.val()\n terms_and_conditions: if @ui.terms_",
"end": 1074,
"score": 0.787919282913208,
"start": 1049,
"tag": "PASSWORD",
"value": "@ui.password_confirmation"
},
{
"context": " password_confirmation: @ui.password_confirmation.val()\n terms_and_conditions: if @ui.terms_and_",
"end": 1078,
"score": 0.6354895234107971,
"start": 1075,
"tag": "PASSWORD",
"value": "val"
}
] |
app/assets/javascripts/views/authentication/signup.coffee
|
brettclanton001/Dashous
| 4 |
class Dashous.Views.Authentication.Signup extends Dashous.Views.Authentication.Base
template: 'authentication/signup'
ui:
form: '.js-form'
inputs: '.js-form input'
submitButton: '.js-form input[type="submit"]'
errorMessages: '.js-form .js-error-message'
email: '.js-form input#user_email'
username: '.js-form input#user_username'
password: '.js-form input#user_password'
password_confirmation: '.js-form input#user_password_confirmation'
terms_and_conditions: '.js-form input#user_terms_and_conditions'
successMessage: '.js-success'
initialize: ->
@registration = new Backbone.Model
@registration.url = '/api/v1/authentication/registrations'
##################################################################
submitForm: (e) ->
e.preventDefault()
@disableSubmit()
@registration.save
authenticity_token: Dashous.formToken
user:
email: @ui.email.val()
username: @ui.username.val()
password: @ui.password.val()
password_confirmation: @ui.password_confirmation.val()
terms_and_conditions: if @ui.terms_and_conditions.is(':checked') then '1' else '0'
.fail (data) =>
@handleFailure(data)
.success =>
@handleSuccess()
handleSuccess: ->
@ui.form.hide()
@ui.successMessage.show()
handleFailure: (data) ->
@ui.errorMessages.text ''
@ui.inputs.removeClass 'error'
$.each data.responseJSON, (field, message) =>
@ui[field].addClass 'error'
@ui.form.find(".field[data-field-for='#{field}'] .js-error-message").text message[0]
@enableSubmit()
|
34765
|
class Dashous.Views.Authentication.Signup extends Dashous.Views.Authentication.Base
template: 'authentication/signup'
ui:
form: '.js-form'
inputs: '.js-form input'
submitButton: '.js-form input[type="submit"]'
errorMessages: '.js-form .js-error-message'
email: '.js-form input#user_email'
username: '.js-form input#user_username'
password: <PASSWORD>#user_<PASSWORD>'
password_confirmation: '.js-form input#user_password_confirmation'
terms_and_conditions: '.js-form input#user_terms_and_conditions'
successMessage: '.js-success'
initialize: ->
@registration = new Backbone.Model
@registration.url = '/api/v1/authentication/registrations'
##################################################################
submitForm: (e) ->
e.preventDefault()
@disableSubmit()
@registration.save
authenticity_token: Dashous.formToken
user:
email: @ui.email.val()
username: @ui.username.val()
password: <PASSWORD>()
password_confirmation: <PASSWORD>.<PASSWORD>()
terms_and_conditions: if @ui.terms_and_conditions.is(':checked') then '1' else '0'
.fail (data) =>
@handleFailure(data)
.success =>
@handleSuccess()
handleSuccess: ->
@ui.form.hide()
@ui.successMessage.show()
handleFailure: (data) ->
@ui.errorMessages.text ''
@ui.inputs.removeClass 'error'
$.each data.responseJSON, (field, message) =>
@ui[field].addClass 'error'
@ui.form.find(".field[data-field-for='#{field}'] .js-error-message").text message[0]
@enableSubmit()
| true |
class Dashous.Views.Authentication.Signup extends Dashous.Views.Authentication.Base
template: 'authentication/signup'
ui:
form: '.js-form'
inputs: '.js-form input'
submitButton: '.js-form input[type="submit"]'
errorMessages: '.js-form .js-error-message'
email: '.js-form input#user_email'
username: '.js-form input#user_username'
password: PI:PASSWORD:<PASSWORD>END_PI#user_PI:PASSWORD:<PASSWORD>END_PI'
password_confirmation: '.js-form input#user_password_confirmation'
terms_and_conditions: '.js-form input#user_terms_and_conditions'
successMessage: '.js-success'
initialize: ->
@registration = new Backbone.Model
@registration.url = '/api/v1/authentication/registrations'
##################################################################
submitForm: (e) ->
e.preventDefault()
@disableSubmit()
@registration.save
authenticity_token: Dashous.formToken
user:
email: @ui.email.val()
username: @ui.username.val()
password: PI:PASSWORD:<PASSWORD>END_PI()
password_confirmation: PI:PASSWORD:<PASSWORD>END_PI.PI:PASSWORD:<PASSWORD>END_PI()
terms_and_conditions: if @ui.terms_and_conditions.is(':checked') then '1' else '0'
.fail (data) =>
@handleFailure(data)
.success =>
@handleSuccess()
handleSuccess: ->
@ui.form.hide()
@ui.successMessage.show()
handleFailure: (data) ->
@ui.errorMessages.text ''
@ui.inputs.removeClass 'error'
$.each data.responseJSON, (field, message) =>
@ui[field].addClass 'error'
@ui.form.find(".field[data-field-for='#{field}'] .js-error-message").text message[0]
@enableSubmit()
|
[
{
"context": "disallow unnecessary curly braces in JSX\n# @author Jacky Ho\n###\n'use strict'\n\n# For better readability on tes",
"end": 104,
"score": 0.999799907207489,
"start": 96,
"tag": "NAME",
"value": "Jacky Ho"
}
] |
src/tests/rules/jsx-curly-brace-presence.coffee
|
helixbass/eslint-plugin-coffee
| 21 |
###*
# @fileoverview Enforce curly braces or disallow unnecessary curly braces in JSX
# @author Jacky Ho
###
'use strict'
# For better readability on tests involving quotes
### eslint-disable quotes ###
### eslint-disable coffee/no-template-curly-in-string ###
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence'
{RuleTester} = require 'eslint'
path = require 'path'
missingCurlyMessage = 'Need to wrap this literal in a JSX expression.'
unnecessaryCurlyMessage = 'Curly braces are unnecessary here.'
# ------------------------------------------------------------------------------
# Tests
# ------------------------------------------------------------------------------
ruleTester = new RuleTester parser: path.join __dirname, '../../..'
ruleTester.run 'jsx-curly-brace-presence', rule,
valid: [
code: '<App {...props}>foo</App>'
,
code: '<>foo</>'
,
# parser: 'babel-eslint'
code: '<App {...props}>foo</App>'
options: [props: 'never']
,
###
# There is no way to inject the space into JSX without an expression container
# so this format should always be allowed regardless of the `children` option.
###
code: "<App>{' '}</App>"
,
code: "<App>{' '}</App>"
,
code: "<App>{' '}</App>"
options: [children: 'never']
,
code: "<App>{' '}</App>"
options: [children: 'never']
,
code: "<App>{' '}</App>"
options: [children: 'always']
,
code: "<App>{' '}</App>"
options: [children: 'always']
,
code: '<App {...props}>foo</App>'
options: [props: 'always']
,
code: '<App>{"Hello #{word} World"}</App>'
options: [children: 'never']
,
code: '<App>{"Hello \\n World"}</App>'
options: [children: 'never']
,
code: '<App>{"Hello #{word} World"}{"foo"}</App>'
options: [children: 'never']
,
code: '<App prop={"foo #{word} bar"}>foo</App>'
options: [props: 'never']
,
code: '<App prop={"foo #{word} bar"} />'
options: [props: 'never']
,
code: '<App>{<myApp></myApp>}</App>'
options: [children: 'always']
,
code: '<App>{[]}</App>'
,
code: '<App>foo</App>'
,
code: '<App>{"foo"}{<Component>bar</Component>}</App>'
,
code: "<App prop='bar'>foo</App>"
,
code: '<App prop={true}>foo</App>'
,
code: '<App prop>foo</App>'
,
code: "<App prop='bar'>{'foo \\n bar'}</App>"
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: [props: 'never']
,
code: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'never']
,
code: '<MyComponent>foo</MyComponent>'
options: [children: 'never']
,
code: '<MyComponent>{<App/>}{"123"}</MyComponent>'
options: [children: 'never']
,
code: '<App>{"foo \'bar\' \\"foo\\" bar"}</App>'
options: [children: 'never']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [props: 'always']
,
code: "<MyComponent>{'foo'}</MyComponent>"
options: [children: 'always']
,
code: '<MyComponent prop={"bar"}>foo</MyComponent>'
options: [props: 'always']
,
code: '<MyComponent>{"foo"}</MyComponent>'
options: [children: 'always']
,
code: "<MyComponent>{'foo'}</MyComponent>"
options: [children: 'ignore']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [props: 'ignore']
,
code: '<MyComponent>foo</MyComponent>'
options: [children: 'ignore']
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: [props: 'ignore']
,
code: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'ignore']
,
code: "<MyComponent prop='bar'>{'foo'}</MyComponent>"
options: [children: 'always', props: 'never']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [children: 'never', props: 'always']
,
code: "<MyComponent prop={'bar'}>{'foo'}</MyComponent>"
options: ['always']
,
code: '<MyComponent prop={"bar"}>{"foo"}</MyComponent>'
options: ['always']
,
code: '<MyComponent prop={"bar"} attr={\'foo\'} />'
options: ['always']
,
code: '<MyComponent prop="bar" attr=\'foo\' />'
options: ['never']
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: ['never']
,
code: '<MyComponent prop={"bar #{word} foo"}>{"foo #{word}"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"div { margin-top: 0; }"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"<Foo />"}</MyComponent>'
options: ['never']
,
code: '<MyComponent prop={"Hello \\u1026 world"}>bar</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello \\u1026 world"}</MyComponent>'
options: ['never']
,
code: '<MyComponent prop={"Hello · world"}>bar</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello · world"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello \\n world"}</MyComponent>'
options: ['never']
,
code: ['<a a={"start\\', '\\', 'end"}/>'].join '/n'
options: ['never']
]
invalid: [
code: '<App prop={"foo"} />'
output: '<App prop="foo" />'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{<myApp></myApp>}</App>'
output: '<App><myApp></myApp></App>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{<myApp></myApp>}</App>'
output: '<App><myApp></myApp></App>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<App prop={'foo'}>foo</App>"
output: '<App prop="foo">foo</App>'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{"foo"}</App>'
output: '<App>foo</App>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
# TODO: uncomment once fragment transformation works
# ,
# code: '<>{"foo"}</>'
# output: '<>foo</>'
# # parser: 'babel-eslint'
# options: [children: 'never']
# errors: [message: unnecessaryCurlyMessage]
code: "<MyComponent>{'foo'}</MyComponent>"
output: '<MyComponent>foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent>{'foo'}</MyComponent>"
output: '<MyComponent>foo</MyComponent>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
output: '<MyComponent prop={"bar"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\'">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\'"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop=\'foo "bar"\'>foo</MyComponent>'
output: '<MyComponent prop={"foo \\"bar\\""}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\'">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\'"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar </MyComponent>'
output: '<MyComponent>{"foo bar "}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\' \\n ">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\' \\\\n "}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar \\r </MyComponent>'
output: '<MyComponent>{"foo bar \\\\r "}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent>foo bar 'foo'</MyComponent>"
output: '<MyComponent>{"foo bar \'foo\'"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar "foo"</MyComponent>'
output: '<MyComponent>{"foo bar \\"foo\\""}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar <App/></MyComponent>'
output: '<MyComponent>{"foo bar "}<App/></MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo \\n bar</MyComponent>'
output: '<MyComponent>{"foo \\\\n bar"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo \\u1234 bar</MyComponent>'
output: '<MyComponent>{"foo \\\\u1234 bar"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent prop='foo \\u1234 bar' />"
output: '<MyComponent prop={"foo \\\\u1234 bar"} />'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent prop={'bar'}>{'foo'}</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
options: ['never']
errors: [
message: unnecessaryCurlyMessage
,
message: unnecessaryCurlyMessage
]
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
output: '<MyComponent prop={"bar"}>{"foo"}</MyComponent>'
options: ['always']
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
,
code: '<App prop={\'foo\'} attr={" foo "} />'
output: '<App prop="foo" attr=" foo " />'
errors: [
message: unnecessaryCurlyMessage
,
message: unnecessaryCurlyMessage
]
options: [props: 'never']
,
code: '<App prop=\'foo\' attr="bar" />'
output: '<App prop={"foo"} attr={"bar"} />'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: [props: 'always']
,
code: '<App prop=\'foo\' attr={"bar"} />'
output: '<App prop={"foo"} attr={"bar"} />'
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: "<App prop={'foo'} attr='bar' />"
output: '<App prop={\'foo\'} attr={"bar"} />'
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: "<App prop='foo · bar' />"
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: '<App>foo · bar</App>'
errors: [message: missingCurlyMessage]
options: [children: 'always']
,
code: '<App>{\'foo "bar"\'}</App>'
output: '<App>foo "bar"</App>'
errors: [message: unnecessaryCurlyMessage]
options: [children: 'never']
,
code: '<App>{"foo \'bar\'"}</App>'
output: "<App>foo 'bar'</App>"
errors: [message: unnecessaryCurlyMessage]
options: [children: 'never']
,
code: [
'<App prop=" '
' a '
' b c'
' d'
'">'
' a'
' b c '
' d '
'</App>'
].join '\n'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: ['always']
,
code: [
"<App prop=' "
' a '
' b c'
' d'
"'>"
' a'
' b c '
' d '
'</App>'
].join '\n'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: ['always']
,
code: '<MyComponent prop={"{ style: true }"}>bar</MyComponent>'
output: '<MyComponent prop="{ style: true }">bar</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
options: ['never']
,
code: '<MyComponent prop={"< style: true >"}>foo</MyComponent>'
output: '<MyComponent prop="< style: true >">foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
options: ['never']
]
|
208015
|
###*
# @fileoverview Enforce curly braces or disallow unnecessary curly braces in JSX
# @author <NAME>
###
'use strict'
# For better readability on tests involving quotes
### eslint-disable quotes ###
### eslint-disable coffee/no-template-curly-in-string ###
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence'
{RuleTester} = require 'eslint'
path = require 'path'
missingCurlyMessage = 'Need to wrap this literal in a JSX expression.'
unnecessaryCurlyMessage = 'Curly braces are unnecessary here.'
# ------------------------------------------------------------------------------
# Tests
# ------------------------------------------------------------------------------
ruleTester = new RuleTester parser: path.join __dirname, '../../..'
ruleTester.run 'jsx-curly-brace-presence', rule,
valid: [
code: '<App {...props}>foo</App>'
,
code: '<>foo</>'
,
# parser: 'babel-eslint'
code: '<App {...props}>foo</App>'
options: [props: 'never']
,
###
# There is no way to inject the space into JSX without an expression container
# so this format should always be allowed regardless of the `children` option.
###
code: "<App>{' '}</App>"
,
code: "<App>{' '}</App>"
,
code: "<App>{' '}</App>"
options: [children: 'never']
,
code: "<App>{' '}</App>"
options: [children: 'never']
,
code: "<App>{' '}</App>"
options: [children: 'always']
,
code: "<App>{' '}</App>"
options: [children: 'always']
,
code: '<App {...props}>foo</App>'
options: [props: 'always']
,
code: '<App>{"Hello #{word} World"}</App>'
options: [children: 'never']
,
code: '<App>{"Hello \\n World"}</App>'
options: [children: 'never']
,
code: '<App>{"Hello #{word} World"}{"foo"}</App>'
options: [children: 'never']
,
code: '<App prop={"foo #{word} bar"}>foo</App>'
options: [props: 'never']
,
code: '<App prop={"foo #{word} bar"} />'
options: [props: 'never']
,
code: '<App>{<myApp></myApp>}</App>'
options: [children: 'always']
,
code: '<App>{[]}</App>'
,
code: '<App>foo</App>'
,
code: '<App>{"foo"}{<Component>bar</Component>}</App>'
,
code: "<App prop='bar'>foo</App>"
,
code: '<App prop={true}>foo</App>'
,
code: '<App prop>foo</App>'
,
code: "<App prop='bar'>{'foo \\n bar'}</App>"
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: [props: 'never']
,
code: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'never']
,
code: '<MyComponent>foo</MyComponent>'
options: [children: 'never']
,
code: '<MyComponent>{<App/>}{"123"}</MyComponent>'
options: [children: 'never']
,
code: '<App>{"foo \'bar\' \\"foo\\" bar"}</App>'
options: [children: 'never']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [props: 'always']
,
code: "<MyComponent>{'foo'}</MyComponent>"
options: [children: 'always']
,
code: '<MyComponent prop={"bar"}>foo</MyComponent>'
options: [props: 'always']
,
code: '<MyComponent>{"foo"}</MyComponent>'
options: [children: 'always']
,
code: "<MyComponent>{'foo'}</MyComponent>"
options: [children: 'ignore']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [props: 'ignore']
,
code: '<MyComponent>foo</MyComponent>'
options: [children: 'ignore']
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: [props: 'ignore']
,
code: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'ignore']
,
code: "<MyComponent prop='bar'>{'foo'}</MyComponent>"
options: [children: 'always', props: 'never']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [children: 'never', props: 'always']
,
code: "<MyComponent prop={'bar'}>{'foo'}</MyComponent>"
options: ['always']
,
code: '<MyComponent prop={"bar"}>{"foo"}</MyComponent>'
options: ['always']
,
code: '<MyComponent prop={"bar"} attr={\'foo\'} />'
options: ['always']
,
code: '<MyComponent prop="bar" attr=\'foo\' />'
options: ['never']
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: ['never']
,
code: '<MyComponent prop={"bar #{word} foo"}>{"foo #{word}"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"div { margin-top: 0; }"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"<Foo />"}</MyComponent>'
options: ['never']
,
code: '<MyComponent prop={"Hello \\u1026 world"}>bar</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello \\u1026 world"}</MyComponent>'
options: ['never']
,
code: '<MyComponent prop={"Hello · world"}>bar</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello · world"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello \\n world"}</MyComponent>'
options: ['never']
,
code: ['<a a={"start\\', '\\', 'end"}/>'].join '/n'
options: ['never']
]
invalid: [
code: '<App prop={"foo"} />'
output: '<App prop="foo" />'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{<myApp></myApp>}</App>'
output: '<App><myApp></myApp></App>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{<myApp></myApp>}</App>'
output: '<App><myApp></myApp></App>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<App prop={'foo'}>foo</App>"
output: '<App prop="foo">foo</App>'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{"foo"}</App>'
output: '<App>foo</App>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
# TODO: uncomment once fragment transformation works
# ,
# code: '<>{"foo"}</>'
# output: '<>foo</>'
# # parser: 'babel-eslint'
# options: [children: 'never']
# errors: [message: unnecessaryCurlyMessage]
code: "<MyComponent>{'foo'}</MyComponent>"
output: '<MyComponent>foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent>{'foo'}</MyComponent>"
output: '<MyComponent>foo</MyComponent>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
output: '<MyComponent prop={"bar"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\'">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\'"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop=\'foo "bar"\'>foo</MyComponent>'
output: '<MyComponent prop={"foo \\"bar\\""}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\'">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\'"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar </MyComponent>'
output: '<MyComponent>{"foo bar "}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\' \\n ">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\' \\\\n "}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar \\r </MyComponent>'
output: '<MyComponent>{"foo bar \\\\r "}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent>foo bar 'foo'</MyComponent>"
output: '<MyComponent>{"foo bar \'foo\'"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar "foo"</MyComponent>'
output: '<MyComponent>{"foo bar \\"foo\\""}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar <App/></MyComponent>'
output: '<MyComponent>{"foo bar "}<App/></MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo \\n bar</MyComponent>'
output: '<MyComponent>{"foo \\\\n bar"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo \\u1234 bar</MyComponent>'
output: '<MyComponent>{"foo \\\\u1234 bar"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent prop='foo \\u1234 bar' />"
output: '<MyComponent prop={"foo \\\\u1234 bar"} />'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent prop={'bar'}>{'foo'}</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
options: ['never']
errors: [
message: unnecessaryCurlyMessage
,
message: unnecessaryCurlyMessage
]
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
output: '<MyComponent prop={"bar"}>{"foo"}</MyComponent>'
options: ['always']
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
,
code: '<App prop={\'foo\'} attr={" foo "} />'
output: '<App prop="foo" attr=" foo " />'
errors: [
message: unnecessaryCurlyMessage
,
message: unnecessaryCurlyMessage
]
options: [props: 'never']
,
code: '<App prop=\'foo\' attr="bar" />'
output: '<App prop={"foo"} attr={"bar"} />'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: [props: 'always']
,
code: '<App prop=\'foo\' attr={"bar"} />'
output: '<App prop={"foo"} attr={"bar"} />'
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: "<App prop={'foo'} attr='bar' />"
output: '<App prop={\'foo\'} attr={"bar"} />'
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: "<App prop='foo · bar' />"
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: '<App>foo · bar</App>'
errors: [message: missingCurlyMessage]
options: [children: 'always']
,
code: '<App>{\'foo "bar"\'}</App>'
output: '<App>foo "bar"</App>'
errors: [message: unnecessaryCurlyMessage]
options: [children: 'never']
,
code: '<App>{"foo \'bar\'"}</App>'
output: "<App>foo 'bar'</App>"
errors: [message: unnecessaryCurlyMessage]
options: [children: 'never']
,
code: [
'<App prop=" '
' a '
' b c'
' d'
'">'
' a'
' b c '
' d '
'</App>'
].join '\n'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: ['always']
,
code: [
"<App prop=' "
' a '
' b c'
' d'
"'>"
' a'
' b c '
' d '
'</App>'
].join '\n'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: ['always']
,
code: '<MyComponent prop={"{ style: true }"}>bar</MyComponent>'
output: '<MyComponent prop="{ style: true }">bar</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
options: ['never']
,
code: '<MyComponent prop={"< style: true >"}>foo</MyComponent>'
output: '<MyComponent prop="< style: true >">foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
options: ['never']
]
| true |
###*
# @fileoverview Enforce curly braces or disallow unnecessary curly braces in JSX
# @author PI:NAME:<NAME>END_PI
###
'use strict'
# For better readability on tests involving quotes
### eslint-disable quotes ###
### eslint-disable coffee/no-template-curly-in-string ###
# ------------------------------------------------------------------------------
# Requirements
# ------------------------------------------------------------------------------
rule = require 'eslint-plugin-react/lib/rules/jsx-curly-brace-presence'
{RuleTester} = require 'eslint'
path = require 'path'
missingCurlyMessage = 'Need to wrap this literal in a JSX expression.'
unnecessaryCurlyMessage = 'Curly braces are unnecessary here.'
# ------------------------------------------------------------------------------
# Tests
# ------------------------------------------------------------------------------
ruleTester = new RuleTester parser: path.join __dirname, '../../..'
ruleTester.run 'jsx-curly-brace-presence', rule,
valid: [
code: '<App {...props}>foo</App>'
,
code: '<>foo</>'
,
# parser: 'babel-eslint'
code: '<App {...props}>foo</App>'
options: [props: 'never']
,
###
# There is no way to inject the space into JSX without an expression container
# so this format should always be allowed regardless of the `children` option.
###
code: "<App>{' '}</App>"
,
code: "<App>{' '}</App>"
,
code: "<App>{' '}</App>"
options: [children: 'never']
,
code: "<App>{' '}</App>"
options: [children: 'never']
,
code: "<App>{' '}</App>"
options: [children: 'always']
,
code: "<App>{' '}</App>"
options: [children: 'always']
,
code: '<App {...props}>foo</App>'
options: [props: 'always']
,
code: '<App>{"Hello #{word} World"}</App>'
options: [children: 'never']
,
code: '<App>{"Hello \\n World"}</App>'
options: [children: 'never']
,
code: '<App>{"Hello #{word} World"}{"foo"}</App>'
options: [children: 'never']
,
code: '<App prop={"foo #{word} bar"}>foo</App>'
options: [props: 'never']
,
code: '<App prop={"foo #{word} bar"} />'
options: [props: 'never']
,
code: '<App>{<myApp></myApp>}</App>'
options: [children: 'always']
,
code: '<App>{[]}</App>'
,
code: '<App>foo</App>'
,
code: '<App>{"foo"}{<Component>bar</Component>}</App>'
,
code: "<App prop='bar'>foo</App>"
,
code: '<App prop={true}>foo</App>'
,
code: '<App prop>foo</App>'
,
code: "<App prop='bar'>{'foo \\n bar'}</App>"
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: [props: 'never']
,
code: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'never']
,
code: '<MyComponent>foo</MyComponent>'
options: [children: 'never']
,
code: '<MyComponent>{<App/>}{"123"}</MyComponent>'
options: [children: 'never']
,
code: '<App>{"foo \'bar\' \\"foo\\" bar"}</App>'
options: [children: 'never']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [props: 'always']
,
code: "<MyComponent>{'foo'}</MyComponent>"
options: [children: 'always']
,
code: '<MyComponent prop={"bar"}>foo</MyComponent>'
options: [props: 'always']
,
code: '<MyComponent>{"foo"}</MyComponent>'
options: [children: 'always']
,
code: "<MyComponent>{'foo'}</MyComponent>"
options: [children: 'ignore']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [props: 'ignore']
,
code: '<MyComponent>foo</MyComponent>'
options: [children: 'ignore']
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: [props: 'ignore']
,
code: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'ignore']
,
code: "<MyComponent prop='bar'>{'foo'}</MyComponent>"
options: [children: 'always', props: 'never']
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
options: [children: 'never', props: 'always']
,
code: "<MyComponent prop={'bar'}>{'foo'}</MyComponent>"
options: ['always']
,
code: '<MyComponent prop={"bar"}>{"foo"}</MyComponent>'
options: ['always']
,
code: '<MyComponent prop={"bar"} attr={\'foo\'} />'
options: ['always']
,
code: '<MyComponent prop="bar" attr=\'foo\' />'
options: ['never']
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
options: ['never']
,
code: '<MyComponent prop={"bar #{word} foo"}>{"foo #{word}"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"div { margin-top: 0; }"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"<Foo />"}</MyComponent>'
options: ['never']
,
code: '<MyComponent prop={"Hello \\u1026 world"}>bar</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello \\u1026 world"}</MyComponent>'
options: ['never']
,
code: '<MyComponent prop={"Hello · world"}>bar</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello · world"}</MyComponent>'
options: ['never']
,
code: '<MyComponent>{"Hello \\n world"}</MyComponent>'
options: ['never']
,
code: ['<a a={"start\\', '\\', 'end"}/>'].join '/n'
options: ['never']
]
invalid: [
code: '<App prop={"foo"} />'
output: '<App prop="foo" />'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{<myApp></myApp>}</App>'
output: '<App><myApp></myApp></App>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{<myApp></myApp>}</App>'
output: '<App><myApp></myApp></App>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<App prop={'foo'}>foo</App>"
output: '<App prop="foo">foo</App>'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: '<App>{"foo"}</App>'
output: '<App>foo</App>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
# TODO: uncomment once fragment transformation works
# ,
# code: '<>{"foo"}</>'
# output: '<>foo</>'
# # parser: 'babel-eslint'
# options: [children: 'never']
# errors: [message: unnecessaryCurlyMessage]
code: "<MyComponent>{'foo'}</MyComponent>"
output: '<MyComponent>foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent>{'foo'}</MyComponent>"
output: '<MyComponent>foo</MyComponent>'
options: [children: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop={'bar'}>foo</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
options: [props: 'never']
errors: [message: unnecessaryCurlyMessage]
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
output: '<MyComponent prop={"bar"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\'">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\'"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop=\'foo "bar"\'>foo</MyComponent>'
output: '<MyComponent prop={"foo \\"bar\\""}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\'">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\'"}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar </MyComponent>'
output: '<MyComponent>{"foo bar "}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent prop="foo \'bar\' \\n ">foo</MyComponent>'
output: '<MyComponent prop={"foo \'bar\' \\\\n "}>foo</MyComponent>'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar \\r </MyComponent>'
output: '<MyComponent>{"foo bar \\\\r "}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent>foo bar 'foo'</MyComponent>"
output: '<MyComponent>{"foo bar \'foo\'"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar "foo"</MyComponent>'
output: '<MyComponent>{"foo bar \\"foo\\""}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo bar <App/></MyComponent>'
output: '<MyComponent>{"foo bar "}<App/></MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo \\n bar</MyComponent>'
output: '<MyComponent>{"foo \\\\n bar"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: '<MyComponent>foo \\u1234 bar</MyComponent>'
output: '<MyComponent>{"foo \\\\u1234 bar"}</MyComponent>'
options: [children: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent prop='foo \\u1234 bar' />"
output: '<MyComponent prop={"foo \\\\u1234 bar"} />'
options: [props: 'always']
errors: [message: missingCurlyMessage]
,
code: "<MyComponent prop={'bar'}>{'foo'}</MyComponent>"
output: '<MyComponent prop="bar">foo</MyComponent>'
options: ['never']
errors: [
message: unnecessaryCurlyMessage
,
message: unnecessaryCurlyMessage
]
,
code: "<MyComponent prop='bar'>foo</MyComponent>"
output: '<MyComponent prop={"bar"}>{"foo"}</MyComponent>'
options: ['always']
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
,
code: '<App prop={\'foo\'} attr={" foo "} />'
output: '<App prop="foo" attr=" foo " />'
errors: [
message: unnecessaryCurlyMessage
,
message: unnecessaryCurlyMessage
]
options: [props: 'never']
,
code: '<App prop=\'foo\' attr="bar" />'
output: '<App prop={"foo"} attr={"bar"} />'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: [props: 'always']
,
code: '<App prop=\'foo\' attr={"bar"} />'
output: '<App prop={"foo"} attr={"bar"} />'
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: "<App prop={'foo'} attr='bar' />"
output: '<App prop={\'foo\'} attr={"bar"} />'
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: "<App prop='foo · bar' />"
errors: [message: missingCurlyMessage]
options: [props: 'always']
,
code: '<App>foo · bar</App>'
errors: [message: missingCurlyMessage]
options: [children: 'always']
,
code: '<App>{\'foo "bar"\'}</App>'
output: '<App>foo "bar"</App>'
errors: [message: unnecessaryCurlyMessage]
options: [children: 'never']
,
code: '<App>{"foo \'bar\'"}</App>'
output: "<App>foo 'bar'</App>"
errors: [message: unnecessaryCurlyMessage]
options: [children: 'never']
,
code: [
'<App prop=" '
' a '
' b c'
' d'
'">'
' a'
' b c '
' d '
'</App>'
].join '\n'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: ['always']
,
code: [
"<App prop=' "
' a '
' b c'
' d'
"'>"
' a'
' b c '
' d '
'</App>'
].join '\n'
errors: [{message: missingCurlyMessage}, {message: missingCurlyMessage}]
options: ['always']
,
code: '<MyComponent prop={"{ style: true }"}>bar</MyComponent>'
output: '<MyComponent prop="{ style: true }">bar</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
options: ['never']
,
code: '<MyComponent prop={"< style: true >"}>foo</MyComponent>'
output: '<MyComponent prop="< style: true >">foo</MyComponent>'
errors: [message: unnecessaryCurlyMessage]
options: ['never']
]
|
[
{
"context": "ERRORS_KEY = \"signinErrors\"\n\nTemplate.signin.created = ->\n Session.se",
"end": 20,
"score": 0.5901243090629578,
"start": 14,
"tag": "KEY",
"value": "signin"
},
{
"context": "l is required\" unless email\n errors.password = \"Password is required\" unless password\n Session.set ERRORS_KEY, error",
"end": 514,
"score": 0.9718301296234131,
"start": 494,
"tag": "PASSWORD",
"value": "Password is required"
}
] |
client/templates/auth-signin.coffee
|
mcgwier/workhandle
| 0 |
ERRORS_KEY = "signinErrors"
Template.signin.created = ->
Session.set ERRORS_KEY, {}
Template.signin.helpers
errorMessages: ->
_.values Session.get(ERRORS_KEY)
errorClass: (key) ->
Session.get(ERRORS_KEY)[key] and "error"
Template.signin.events submit: (event, template) ->
event.preventDefault()
email = template.$("[name=email]").val()
password = template.$("[name=password]").val()
errors = {}
errors.email = "Email is required" unless email
errors.password = "Password is required" unless password
Session.set ERRORS_KEY, errors
return if _.keys(errors).length
Meteor.loginWithPassword email, password, (error) ->
if error
Session.set(ERRORS_KEY, none: error.reason)
else
Router.go "home"
|
191523
|
ERRORS_KEY = "<KEY>Errors"
Template.signin.created = ->
Session.set ERRORS_KEY, {}
Template.signin.helpers
errorMessages: ->
_.values Session.get(ERRORS_KEY)
errorClass: (key) ->
Session.get(ERRORS_KEY)[key] and "error"
Template.signin.events submit: (event, template) ->
event.preventDefault()
email = template.$("[name=email]").val()
password = template.$("[name=password]").val()
errors = {}
errors.email = "Email is required" unless email
errors.password = "<PASSWORD>" unless password
Session.set ERRORS_KEY, errors
return if _.keys(errors).length
Meteor.loginWithPassword email, password, (error) ->
if error
Session.set(ERRORS_KEY, none: error.reason)
else
Router.go "home"
| true |
ERRORS_KEY = "PI:KEY:<KEY>END_PIErrors"
Template.signin.created = ->
Session.set ERRORS_KEY, {}
Template.signin.helpers
errorMessages: ->
_.values Session.get(ERRORS_KEY)
errorClass: (key) ->
Session.get(ERRORS_KEY)[key] and "error"
Template.signin.events submit: (event, template) ->
event.preventDefault()
email = template.$("[name=email]").val()
password = template.$("[name=password]").val()
errors = {}
errors.email = "Email is required" unless email
errors.password = "PI:PASSWORD:<PASSWORD>END_PI" unless password
Session.set ERRORS_KEY, errors
return if _.keys(errors).length
Meteor.loginWithPassword email, password, (error) ->
if error
Session.set(ERRORS_KEY, none: error.reason)
else
Router.go "home"
|
End of preview. Expand
in Data Studio
- Downloads last month
- 3