content
stringlengths 4
1.04M
| lang
stringclasses 358
values | score
int64 0
5
| repo_name
stringlengths 5
114
| repo_path
stringlengths 4
229
| repo_licenses
listlengths 1
8
|
---|---|---|---|---|---|
QT.3dlogic_private.VERSION = 5.9.4
QT.3dlogic_private.name = Qt3DLogic
QT.3dlogic_private.module =
QT.3dlogic_private.libs = $$QT_MODULE_LIB_BASE
QT.3dlogic_private.includes = $$QT_MODULE_INCLUDE_BASE/Qt3DLogic/5.9.4 $$QT_MODULE_INCLUDE_BASE/Qt3DLogic/5.9.4/Qt3DLogic
QT.3dlogic_private.frameworks =
QT.3dlogic_private.depends = core_private gui_private 3dcore_private 3dlogic
QT.3dlogic_private.uses =
QT.3dlogic_private.module_config = v2 internal_module
QT.3dlogic_private.enabled_features =
QT.3dlogic_private.disabled_features =
| QMake | 1 | PLohrmannAMD/renderdoc | qrenderdoc/3rdparty/qt/x64/mkspecs/modules/qt_lib_3dlogic_private.pri | [
"MIT"
] |
package opal: import *;
package random: import randint, uniform;
new <Vector> RESOLUTION = Vector(1280, 720);
new int DROP_QTY = 200,
MIN_DROP_LEN = 5,
MAX_DROP_LEN = 30,
MIN_DROP_SIZE = 1,
MAX_DROP_SIZE = 3,
MIN_OFFSCREEN = 100,
MAX_OFFSCREEN = 1000,
MIN_Z = 0,
MAX_Z = 20,
MIN_SPEED = 4,
MAX_SPEED = 10,
ALPHA_CHANGE = 100,
PARTICLE_SIZE = 1,
LIFESPAN_DECREASE = 3,
MIN_PARTICLE_QTY = 5,
MAX_PARTICLE_QTY = 15;
new float PARTICLE_VELOCITY_MULTIPLIER = 0.98,
PARTICLE_MAX_INIT_VELOCITY = 5,
MIN_GRAVITY = 0.08,
MAX_GRAVITY = 0.2,
WIND_FORCE_X = 0.5,
WIND_FORCE_Y = 0.03;
new tuple RAIN_COLOR = (196, 211, 255),
BG = (100, 100, 120);
new <Vector> GRAVITY = Vector(0, 0.2);
new <Graphics> graphics = Graphics(RESOLUTION, caption = "Rain");
new class Particle {
new method __init__(pos) {
this.pos = pos;
this.acceleration = Vector();
this.velocity = Vector(uniform(-1, 1), uniform(-1, 0));
this.velocity *= uniform(1, PARTICLE_MAX_INIT_VELOCITY);
this.lifeSpan = 255;
this.alive = True;
}
new method applyForce(f) {
this.acceleration += f;
}
new method update() {
this.velocity *= PARTICLE_VELOCITY_MULTIPLIER;
this.lifeSpan -= LIFESPAN_DECREASE;
this.velocity += this.acceleration;
this.pos += this.velocity;
this.acceleration *= 0;
if this.pos.y >= RESOLUTION.y or this.pos.x < 0 or this.pos.x >= RESOLUTION.x {
this.alive = False;
}
}
new method isAlive() {
return this.lifeSpan >= 0 and this.alive;
}
new method show() {
graphics.circle(this.pos, PARTICLE_SIZE, RAIN_COLOR, this.lifeSpan);
}
}
new class Explosion {
new method __init__(pos) {
this.pos = pos;
this.particles = [];
}
new method explode(pos = None) {
if pos is not None {
this.pos = pos;
}
repeat randint(MIN_PARTICLE_QTY, MAX_PARTICLE_QTY) {
this.particles.append(Particle(this.pos));
}
}
new method update() {
for particle in this.particles {
particle.applyForce(GRAVITY);
particle.update();
}
this.particles = [particle for particle in this.particles if particle.isAlive()];
}
new method isAlive() {
return len(this.particles) > 0;
}
new method show() {
for particle in this.particles {
particle.show();
}
}
}
new class Drop {
new method __init__() {
this.__reset();
this.explosion = Explosion(this.pos);
}
new method __reset() {
this.pos = Vector(randint(0, RESOLUTION.x), randint(-MAX_OFFSCREEN, -MIN_OFFSCREEN));
this.z = randint(MIN_Z, MAX_Z);
this.len = Utils.translate(this.z, MIN_Z, MAX_Z, MAX_DROP_LEN, MIN_DROP_LEN);
this.gravity = Utils.translate(this.z, MIN_Z, MAX_Z, MAX_GRAVITY, MIN_GRAVITY);
this.speed = Vector(0, Utils.translate(this.z, MIN_Z, MAX_Z, MAX_SPEED, MIN_SPEED));
this.thickness = round(Utils.translate(this.z, MIN_Z, MAX_Z, MAX_DROP_SIZE, MIN_DROP_SIZE));
}
new method applyForce(f) {
this.speed += f;
}
new method update() {
if this.explosion.isAlive() {
this.explosion.update();
this.explosion.show();
} else {
this.pos += this.speed;
this.speed.y += this.gravity;
if this.pos.y >= RESOLUTION.y - this.speed.y {
this.explosion.explode(Vector(this.pos.x, RESOLUTION.y));
this.__reset();
}
this.pos.x = Utils.limitToRange(this.pos.x, 0, RESOLUTION.x, True);
graphics.line(this.pos, this.pos + this.speed.magnitude(this.len), RAIN_COLOR, this.thickness);
}
}
}
new list drops = [Drop() for _ in range(DROP_QTY)];
@graphics.update;
new function draw() {
new dynamic wind;
wind = Vector(uniform(-WIND_FORCE_X, WIND_FORCE_X), uniform(0, WIND_FORCE_Y));
for drop in drops {
drop.applyForce(wind);
drop.update();
}
graphics.fillAlpha(BG, ALPHA_CHANGE);
}
main {
graphics.fill(BG);
graphics.run(drawBackground = False);
}
| Opal | 4 | thatsOven/opal-lang | examples/rain.opal | [
"MIT"
] |
package io.swagger.model;
import groovy.transform.Canonical
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
@Canonical
class User {
Long id = null
String username = null
String firstName = null
String lastName = null
String email = null
String password = null
String phone = null
/* User Status */
Integer userStatus = null
}
| Groovy | 3 | wwadge/swagger-codegen | samples/client/petstore/groovy/src/main/groovy/io/swagger/model/User.groovy | [
"Apache-2.0"
] |
<svg height="16pt" preserveAspectRatio="xMidYMid meet" viewBox="0 0 16 16" width="16pt" xmlns="http://www.w3.org/2000/svg"><path d="m18 46618c45-75 122-207 122-211 0-2 25-45 55-95s55-96 55-102c0-5 5-10 10-10 6 0 10-4 10-9s73-135 161-288c89-153 173-298 187-323s32-57 41-72c88-149 187-324 189-335 2-7 8-13 13-13s9-4 9-10c0-5 46-89 103-187 175-302 490-846 507-876 8-16 20-36 25-45 28-46 290-498 339-585 13-23 74-129 136-236 61-107 123-215 137-240s29-50 33-56c5-5 23-37 40-70 18-33 38-67 44-75 11-16 21-33 63-109 14-25 29-50 33-56 4-5 21-35 38-65 55-100 261-455 269-465 4-5 14-21 20-35 15-29 41-75 103-180 24-41 52-88 60-105 9-16 57-100 107-185 112-193 362-626 380-660 8-14 23-38 33-55 11-16 23-37 27-45s26-46 48-85c23-38 53-90 67-115 46-81 64-113 178-310 62-107 121-210 132-227 37-67 56-99 85-148 16-27 32-57 36-65s15-27 25-42c9-15 53-89 96-165 44-76 177-307 296-513 120-206 268-463 330-570 131-227 117-203 200-348 36-62 73-125 82-140 10-15 21-34 25-42s20-37 36-65c17-27 38-65 48-82 49-85 64-111 87-153 13-25 28-49 32-55 4-5 78-134 165-285s166-288 176-305c10-16 26-43 35-59 9-17 125-217 257-445 132-229 253-441 270-471s45-79 64-108c18-29 33-54 33-57 0-2 20-37 44-77s123-212 221-383c97-170 190-330 205-355 16-25 39-65 53-90 13-25 81-144 152-265 70-121 137-238 150-260 12-22 37-65 55-95s43-73 55-95 48-85 80-140c77-132 163-280 190-330 13-22 71-123 130-225s116-199 126-217c10-17 29-50 43-72 15-22 26-43 26-45s27-50 60-106 60-103 60-105 55-98 90-155c8-14 182-316 239-414 13-22 45-79 72-124 27-46 49-86 49-89 0-2 14-24 30-48s30-46 30-49c0-5 74-135 100-176 5-8 24-42 43-75 50-88 58-101 262-455 104-179 199-345 213-370s28-49 32-55c4-5 17-26 28-45 10-19 62-109 114-200 114-197 133-230 170-295 16-27 33-57 38-65 17-28 96-165 103-180 4-8 16-28 26-45 10-16 77-131 148-255 72-124 181-313 243-420s121-209 131-227c35-62 323-560 392-678 38-66 83-145 100-175 16-30 33-59 37-65 4-5 17-27 29-47 34-61 56-100 90-156 17-29 31-55 31-57s17-32 39-67c21-35 134-229 251-433 117-203 235-407 261-451 27-45 49-85 49-88 0-4 8-19 19-34 15-21 200-341 309-533 10-19 33-58 51-87 17-29 31-54 31-56s25-44 55-94 55-95 55-98c0-4 6-15 14-23 7-9 27-41 43-71 17-30 170-297 342-594 171-296 311-542 311-547s5-9 10-9c6 0 10-4 10-10 0-5 22-47 49-92 27-46 58-99 68-118 24-43 81-140 93-160 5-8 66-114 135-235s130-227 135-235c12-21 259-447 283-490 10-19 28-47 38-62 11-14 19-29 19-32s37-69 83-148c99-170 305-526 337-583 13-22 31-53 41-70 11-16 22-37 26-45 7-14 82-146 103-180 14-24 181-311 205-355 13-22 46-80 75-130 29-49 64-110 78-135s51-88 82-140 59-102 63-110 18-33 31-55c205-353 284-489 309-535 17-30 45-78 62-106 18-28 36-60 39-72 4-12 12-22 17-22s9-4 9-10c0-5 109-197 241-427 133-230 250-431 259-448 51-90 222-385 280-485 37-63 78-135 92-160s67-117 118-205 101-175 111-193c34-58 55-95 149-257 51-88 101-173 110-190 9-16 76-131 147-255 72-124 140-241 151-260 61-108 281-489 355-615 38-66 77-133 87-150 35-63 91-161 100-175 14-23 99-169 128-220 54-97 135-235 142-245 4-5 20-32 35-60 26-48 238-416 276-480 10-16 26-46 37-65 30-53 382-661 403-695 10-16 22-37 26-45s26-48 50-88c24-41 43-75 43-77s22-40 50-85c27-45 50-84 50-86 0-3 38-69 83-147 84-142 302-520 340-587 10-19 34-60 52-90s44-75 57-100c14-25 45-79 70-120s56-96 70-121 77-133 138-240c62-107 122-210 132-229 25-43 310-535 337-581 11-19 26-45 34-59 17-32 238-414 266-460 11-19 24-41 28-49 3-7 75-133 160-278 84-146 153-269 153-274s5-9 10-9c6 0 10-4 10-10 0-5 82-150 181-322 182-314 201-346 240-415 12-21 80-139 152-263 71-124 141-245 155-270s28-49 32-55c6-8 145-248 220-380 37-66 209-362 229-395 11-19 24-42 28-49 4-8 67-118 140-243s133-230 133-233c0-2 15-28 33-57 19-29 47-78 64-108s53-93 79-139c53-90 82-141 157-272 82-142 115-199 381-659 142-245 268-463 281-485 12-22 71-125 132-230 60-104 172-298 248-430s146-253 156-270c11-16 22-36 26-44 3-8 30-54 60-103 29-49 53-91 53-93 0-3 18-34 40-70s40-67 40-69 37-66 81-142c45-77 98-168 119-204 20-36 47-81 58-100 12-19 27-47 33-62 6-16 15-28 20-28s9-4 9-9c0-6 63-118 140-251s140-243 140-245 18-33 41-70c22-37 49-83 60-101 10-19 29-51 40-71 25-45 109-189 126-218 7-11 17-29 22-40 6-11 22-38 35-60 14-22 37-62 52-90 14-27 35-62 45-77 11-14 19-29 19-32s18-35 40-71 40-67 40-69 19-35 42-72c23-38 55-94 72-124 26-47 139-244 171-298 6-9 21-36 34-60 28-48 37-51 51-19 6 12 19 36 29 52 10 17 27 46 38 65s104 181 208 360c103 179 199 345 213 370s42 74 64 109c21 34 38 65 38 67s18 33 40 69 40 67 40 69c0 3 177 310 199 346 16 26 136 234 140 244 2 5 25 44 52 88s49 81 49 84c0 2 18 34 40 70s40 67 40 69 20 36 43 77c35 58 169 289 297 513 9 17 50 86 90 155s86 150 103 180c16 30 35 62 41 70s16 24 22 35c35 64 72 129 167 293 59 100 116 199 127 220 11 20 30 53 41 72 43 72 1070 1850 1121 1940 14 25 65 113 113 195 48 83 96 166 107 185 10 19 28 50 38 68 11 18 73 124 137 235s175 303 246 427 173 299 225 390 116 202 143 248c27 45 49 85 49 89s6 14 14 22c7 9 28 43 46 76 26 47 251 436 378 655 11 19 29 51 40 70s101 176 201 348c99 172 181 317 181 323 0 5 5 9 10 9 6 0 10 5 10 11s8 23 18 37c11 15 32 52 49 82 16 30 130 228 253 440 122 212 234 405 248 430 13 25 39 70 57 100 39 65 69 117 130 225 25 44 50 87 55 95 12 19 78 134 220 380 61 107 129 224 150 260 161 277 222 382 246 425 15 28 47 83 71 123 24 41 43 78 43 83s4 9 8 9 13 12 19 28c7 15 23 45 36 67 66 110 277 478 277 483 0 3 6 13 14 21 7 9 27 41 43 71 17 30 45 80 63 110 34 57 375 649 394 685 6 11 16 27 22 35s26 42 44 75 41 74 51 90c10 17 24 41 32 55 54 97 72 128 88 152 11 14 19 28 19 30 0 3 79 141 175 308s175 305 175 308 6 13 14 21c7 9 26 39 41 66 33 60 276 483 338 587 24 40 46 80 50 88s13 24 20 35c14 23 95 163 125 215 11 19 52 91 92 160s80 139 90 155c9 17 103 179 207 360 105 182 200 346 211 365 103 181 463 802 489 845 7 11 15 27 19 35s29 51 55 95c64 110 828 1433 848 1470 9 17 24 41 33 55s29 48 45 77c15 28 52 93 82 145 30 51 62 107 71 123 17 30 231 398 400 690 51 88 103 179 115 202s26 48 32 55 24 38 40 68c17 30 61 107 98 170s84 144 103 180 41 72 48 81c8 8 14 18 14 21 0 4 27 51 59 106s72 124 89 154c16 29 71 125 122 213s104 180 118 205c13 25 28 50 32 55 4 6 17 26 28 45s45 80 77 135c31 55 66 116 77 135s88 152 171 295c401 694 620 1072 650 1125 11 19 87 152 170 295s158 273 166 288c9 16 21 36 26 45 6 9 31 52 55 96 25 43 54 94 66 115 11 20 95 164 186 321s173 299 182 315c9 17 26 46 37 65 12 19 66 114 121 210 56 96 108 186 117 200 8 14 24 40 34 59 24 45 383 664 412 713 5 9 17 29 26 45 15 28 120 210 241 419 36 61 68 117 72 125s12 23 19 34c35 57 245 420 262 453 11 20 35 61 53 90 17 29 32 54 32 56 0 3 28 51 62 108 33 57 70 119 80 138s23 42 28 50 32 53 59 100 149 258 271 470 234 405 248 430c30 53 62 108 80 135 6 11 15 27 19 35s85 150 181 315 187 323 202 350c31 56 116 202 130 225 5 8 25 42 43 75 19 33 92 159 162 280 149 257 157 271 202 350 19 33 38 67 43 75 9 14 228 392 275 475 12 22 55 96 95 165s80 139 90 155c24 42 202 350 221 383 9 15 27 47 41 72s75 131 136 236c61 106 121 210 134 232 99 172 271 470 279 482 5 8 23 40 40 70 18 30 81 141 142 245 60 105 121 210 135 235s71 124 127 220 143 247 194 335 96 167 102 175c14 24 180 311 204 355 23 43 340 590 356 615 5 8 50 87 101 175 171 301 517 898 582 1008 25 43 46 81 46 83s12 23 27 47c14 23 40 67 56 97s35 62 42 70 15 22 18 30c4 8 20 38 37 65 16 28 33 57 37 65 6 12 111 196 143 250 5 8 55 95 112 193s113 195 126 215c12 20 27 46 32 57 6 11 14 27 20 35 5 8 76 130 156 270s165 287 187 325c23 39 52 90 66 115 13 25 30 52 37 61 8 8 14 18 14 21 0 4 41 77 92 165 50 87 175 302 276 478s208 360 236 408c28 49 67 117 86 152s41 70 48 77c6 6 12 15 12 19 0 7 124 224 167 291 12 21 23 40 23 42s21 40 46 83c26 43 55 92 64 109 54 95 327 568 354 614 19 30 45 75 59 100 71 128 82 145 89 148 4 2 8 8 8 13s42 82 94 172c311 538 496 858 518 897 14 25 40 70 58 100s42 71 53 90c10 19 79 139 152 265 73 127 142 246 153 265 10 19 43 76 72 125 29 50 63 108 75 130 65 116 80 140 87 143 4 2 8 8 8 12 0 8 114 212 140 250 6 8 14 24 20 35 5 11 54 97 108 190l100 170-9611 3c-5286 1-9614-1-9618-5-5-6-419-719-619-1068-89-155-267-463-323-560-38-66-81-140-95-165-31-56-263-457-526-910-110-190-224-388-254-440-29-52-61-109-71-125-23-39-243-420-268-465-11-19-204-352-428-740s-477-826-563-975c-85-148-185-322-222-385s-120-207-185-320-177-306-248-430c-72-124-172-297-222-385-51-88-142-245-202-350-131-226-247-427-408-705-65-113-249-432-410-710-160-278-388-673-506-877-118-205-216-373-219-373s-52 82-109 183c-58 100-144 250-192 332-95 164-402 696-647 1120-85 149-228 396-317 550-212 365-982 1700-1008 1745-10 19-43 76-72 125-29 50-64 110-77 135-14 25-63 110-110 190s-96 165-110 190-99 171-188 325-174 300-188 325c-13 25-64 113-112 195-48 83-140 242-205 355s-183 317-263 454c-79 137-152 264-163 282-50 89-335 583-354 614-12 19-34 58-50 85-15 28-129 226-253 440-124 215-235 408-247 430s-69 121-127 220-226 389-373 645c-148 256-324 561-392 678-67 117-134 232-147 255s-33 59-46 80l-22 37h-9615-9615z" transform="matrix(.00032 0 0 -.00032 0 16)"/></svg> | SVG | 1 | gh-oss-contributor/graphql-engine-1 | community/sample-apps/vuetify-vuex-todo-graphql/public/img/icons/safari-pinned-tab.svg | [
"Apache-2.0",
"MIT"
] |
#ifndef Py_TRACEMALLOC_H
#define Py_TRACEMALLOC_H
#ifndef Py_LIMITED_API
/* Track an allocated memory block in the tracemalloc module.
Return 0 on success, return -1 on error (failed to allocate memory to store
the trace).
Return -2 if tracemalloc is disabled.
If memory block is already tracked, update the existing trace. */
PyAPI_FUNC(int) PyTraceMalloc_Track(
unsigned int domain,
uintptr_t ptr,
size_t size);
/* Untrack an allocated memory block in the tracemalloc module.
Do nothing if the block was not tracked.
Return -2 if tracemalloc is disabled, otherwise return 0. */
PyAPI_FUNC(int) PyTraceMalloc_Untrack(
unsigned int domain,
uintptr_t ptr);
/* Get the traceback where a memory block was allocated.
Return a tuple of (filename: str, lineno: int) tuples.
Return None if the tracemalloc module is disabled or if the memory block
is not tracked by tracemalloc.
Raise an exception and return NULL on error. */
PyAPI_FUNC(PyObject*) _PyTraceMalloc_GetTraceback(
unsigned int domain,
uintptr_t ptr);
#endif
#endif /* !Py_TRACEMALLOC_H */
| C | 5 | shawwn/cpython | Include/tracemalloc.h | [
"0BSD"
] |
lines(0);
ilib_verbose(0);
ierr = exec('loader.sce', 'errcatch');
if ierr <> 0 then
disp(lasterror());
exit(ierr);
end
// Call our gcd() function
x = 42;
y = 105;
g = gcd(x, y);
printf("The gcd of %d and %d is %d\n", x, y, g);
// Call our fact() function
x = 5;
g = fact(x);
printf("The fact of %d is %d\n", x, g);
// Manipulate the Foo global variable
// Output its current value
printf("Foo = %f\n", Foo_get());
// Change its value
Foo_set(3.1415926);
// See if the change took effect
printf("Foo = %f\n", Foo_get());
// Check error messages when violating contract
ierr = execstr('gcd(-42, 105)', 'errcatch');
if ierr <> 20003 then
error("gcd(-42, 105) must provoke a RunTimeError")
end
ierr = execstr('fact(-4)', 'errcatch');
if ierr <> 20003 then
error("fact(-4) must provoke a RunTimeError")
end
exit
| Scilab | 4 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/scilab/contract/runme.sci | [
"BSD-3-Clause"
] |
require meta-python-image-base.bb
SUMMARY = "meta-python ptest test image"
IMAGE_INSTALL += "packagegroup-meta-python3-ptest"
| BitBake | 3 | nunojsa/meta-openembedded | meta-python/recipes-core/images/meta-python-ptest-image.bb | [
"MIT"
] |
# Checks if an ESTree AST is valid, but prunes errors about where nodes are
# positioned in the tree.
require! \esvalid
module.exports = ->
return null if it is null
it
|> esvalid.errors
|> -> it.filter ->
# Disregard errors to do with where things are allowed to appear. Eslisp
# compiles stuff incrementally and takes care that the context makes sense.
it.message not in [
"given AST node should be of type Program"
"ReturnStatement must be nested within a FunctionExpression or FunctionDeclaration node"
"BreakStatement must have an IterationStatement or SwitchStatement as an ancestor"
"ContinueStatement must have an IterationStatement as an ancestor"
]
|> -> | it.length => it
| _ => null
| LiveScript | 4 | 0xflotus/eslisp | src/esvalid-partial.ls | [
"ISC"
] |
$! BUILD_XSLT.COM
$!
$! Build the XSLT library
$!
$! Arguments:
$!
$! p1 - "DEBUG" is you want to build with debug
$!
$! This package requires libxml to have already been installed. You need
$! to ensure that the logical name LIBXML is defined and points to the
$! directory containing libxml's .h files
$!
$! This procedure creates the object libraries
$!
$! XML_LIBDIR:LIBXSLT.OLB
$! XML_LIBDIR:LIBEXSLT.OLB
$!
$! and the program
$!
$! XSLTPROC
$!
$! After the library is built, you can link these routines into
$! your code with the command
$!
$! LINK your_modules,XML_LIBDIR:LIBEXSLT/LIB,LIBXSLT/LIBRARY,LIBXML/LIB
$!
$! Change History
$! --------------
$! Command file author : John A Fotheringham ([email protected])
$! Last update : 2 Nov 2001
$!
$!- configuration -------------------------------------------------------------
$!
$!- compile command.
$!
$ cc_opts = "/INCLUDE=([],XML_SRCDIR:,[-.libxslt])/NAMES=(SHORTENED)/FLOAT=IEEE/IEEE_MODE=DENORM_RESULTS"
$!
$ if p1.eqs."DEBUG"
$ then
$ debug = "Y"
$ cc_command = "CC''cc_opts'/DEBUG/NOOPTIMIZE/LIST/SHOW=ALL"
$ else
$ debug = "N"
$ cc_command = "CC''cc_opts'"
$ endif
$!
$!- configure multiple build passes for each library. -------------------------
$!
$! For each pass:
$!
$! "libname" is the name of the library or module being created
$!
$! "progname" is the name of the program being created
$!
$! "src" is the list of sources to be built into the library or program
$! - This should be compared to the definition of
$! "<NAME>_la_SOURCES" in the MAKEFILE.IN file in
$! corresponding directory.
$!
$ num_passes = 3 ! two libraries and a program
$!
$!- pass 1 - library LIBXSLT
$!
$ libname_1 = "LIBXSLT"
$ h_file_1 = "xslt.h"
$ progname_1 = ""
$!
$ ! see "libxslt_la_SOURCES" in [.libxslt]makefile.in
$ src_1 = "xslt.c xsltutils.c pattern.c templates.c variables.c keys.c"
$ src_1 = src_1 + " numbers.c extensions.c extra.c functions.c"
$ src_1 = src_1 + " namespaces.c imports.c attributes.c documents.c"
$ src_1 = src_1 + " preproc.c transform.c security.c"
$!
$!- pass 2 - library LIBEXSLT
$!
$ libname_2 = "LIBEXSLT"
$ h_file_2 = "exslt.h"
$ progname_2 = ""
$!
$ ! see "libexslt_la_SOURCES" in [.libexslt]makefile.in
$ src_2 = "exslt.c common.c math.c sets.c functions.c strings.c date.c saxon.c dynamic.c"
$!
$!- pass 3 - program XSLTPROC
$!
$ libname_3 = ""
$ h_file_3 = ""
$ progname_3 = "XSLTPROC"
$!
$ ! see "xsltproc_SOURCES" in [.xsltproc]makefile.in
$ src_3 = "xsltproc.c"
$!
$!- set up and check logicals -----------------------------------------------
$!
$! XML_LIBDIR - object library directory
$! XML_SRCDIR - top-level build directory of libxml package -- needed for config.h and trio.h
$! LIBXML - source directory containing .h files for libxml package
$!
$ if f$trnlnm("XML_LIBDIR").eqs.""
$ then
$ on error then continue
$ globfile = f$search("[--...]libxml.olb")
$ if globfile.eqs.""
$ then
$ write sys$output ""
$ write sys$output " You need to define the XML_LIBDIR logical name to"
$ write sys$output " point to the directory containing your object"
$ write sys$output " libraries. This should already contain LIBXML.OLB"
$ write sys$output " from the libxml package, and will be the directory"
$ write sys$output " the new LIBXSLT.OLB library will be placed in"
$ write sys$output ""
$ exit
$ else
$ srcdir = f$parse(globfile,,,"DEVICE") + f$parse(globfile,,,"DIRECTORY")
$ define/process XML_LIBDIR "''srcdir'"
$ write sys$output "Defining XML_LIBDIR as ""''srcdir'"""
$ endif
$ endif
$!
$ if f$trnlnm("libxml").eqs.""
$ then
$ ! look for globals.h in a directory installed paralle to this one
$ on error then continue
$ globfile = f$search("[--...]globals.h")
$ if globfile.eqs.""
$ then
$ write sys$output ""
$ write sys$output " You need to define a LIBXML logical directory to"
$ write sys$output " point to the directory containing the .h files"
$ write sys$output " for the libxml package"
$ write sys$output ""
$ exit
$ else
$ srcdir = f$element(0,"]",globfile)+ "]"
$ define/process LIBXML "''srcdir'"
$ write sys$output "Defining LIBXML as ""''srcdir'"""
$ endif
$ endif
$!
$ if f$trnlnm("XML_SRCDIR").eqs.""
$ then
$ globfile = f$search("[--...]globals.c")
$ if globfile.eqs.""
$ then
$ write sys$output "Can't locate globals.c. You need to manually define a XML_SRCDIR logical"
$ exit
$ else
$ srcdir = f$parse(globfile,,,"DEVICE") + f$parse(globfile,,,"DIRECTORY")
$ define/process XML_SRCDIR "''srcdir'"
$ write sys$output "Defining XML_SRCDIR as ""''srcdir'"""
$ endif
$ endif
$!
$!- set up some working logicals -------------------
$!
$ pass_no = 1
$ set_pass_logical:
$!
$ if pass_no.le.num_passes
$ then
$!
$ Libname = libname_'pass_no'
$ progname = progname_'pass_no'
$ if libname.nes.""
$ then
$ logname = "''libname'_SRCDIR"
$ else
$ logname = "''progname'_SRCDIR"
$ endif
$ findfile = f$element(0," ",src_'pass_no')
$!
$!--- set up a source directory logical
$!
$ if f$trnlnm("''logname'").eqs.""
$ then
$ ! look for the target file in a parallel subdirectory
$ globfile = f$search("[-...]''findfile'")
$ if globfile.eqs.""
$ then
$ write sys$output "Can't locate ''findfile'. You need to manually define a ''logname' logical"
$ exit
$ else
$ srcdir = f$element(0,"]",globfile)+ "]"
$ define/process 'logname' "''srcdir'"
$ write sys$output "Defining ''logname' as ""''srcdir'"""
$ endif
$ endif
$!
$!--- if it's a library, set up a logical pointing to the .h files
$!
$ if libname.nes.""
$ then
$ if f$trnlnm("''libname'").eqs.""
$ then
$ ! look for the target .h file in a parallel subdirectory
$ h_file = h_file_'pass_no'
$ globfile = f$search("[-...]''h_file'")
$ if globfile.eqs.""
$ then
$ write sys$output "Can't locate ''h_file'. You need to manually define a ''libname' logical"
$ exit
$ else
$ includedir = f$element(0,"]",globfile)+ "]"
$ define/process 'libname' "''includedir'"
$ write sys$output "Defining ''libname' as ""''includedir'"""
$ endif
$ endif
$ endif
$!
$ pass_no = pass_no +1
$ goto set_pass_logical
$!
$ endif ! for each pass
$!
$!- set up error handling (such as it is) -------------------------------------
$!
$ exit_status = 1
$ saved_default = f$environment("default")
$ on error then goto ERROR_OUT
$ on control_y then goto ERROR_OUT
$!
$ goto start_here
$ start_here: ! move this line to debug/rerun parts of this command file
$!
$!- compile modules into the library ------------------------------------------
$!
$!
$ pass_no = 1 ! make three passes, one for each library, one for XSLTPROC
$ pass_loop:
$!
$ if pass_no.le.num_passes
$ then
$ Libname = libname_'pass_no'
$ progname = progname_'pass_no'
$ if libname.nes.""
$ then
$ logname = "''libname'_SRCDIR"
$ pass_description = "the XML_LIBDIR:''libname'.OLB object library"
$ else
$ logname = "''progname'_SRCDIR"
$ pass_description = "the programs in ''progname'"
$ endif
$ src = src_'pass_no'
$!
$!- create the library if need
$!
$ if libname.nes.""
$ then
$ if f$search("XML_LIBDIR:''libname'.OLB").eqs.""
$ then
$ write sys$output "Creating new object library XML_LIBDIR:''libname'.OLB..."
$ library/create XML_LIBDIR:'libname'.OLB
$ endif
$ endif
$!
$!- move to the source directory
$!
$ set def 'logname'
$!
$!- define the library and link commands (link command not used as is)
$!
$ if libname.nes.""
$ then
$ lib_command = "LIBRARY/REPLACE XML_LIBDIR:''libname'.OLB"
$ link_command = ""
$ else
$ lib_command = ""
$ link_command = "LINK"
$ endif
$!
$ write sys$output ""
$ write sys$output "Building ''pass_description'
$ write sys$output ""
$!
$ s_no = 0
$ src = f$edit(src,"COMPRESS")
$!
$ source_loop:
$!
$ next_source = f$element (S_no," ",src)
$ if next_source.nes."" .and. next_source.nes." "
$ then
$ call build 'next_source'
$ s_no = s_no + 1
$ goto source_loop
$ endif
$!
$ pass_no = pass_no + 1
$ goto pass_loop
$!
$ endif ! for each pass
$!
$!- Th-th-th-th-th-that's all folks! ------------------------------------------
$!
$EXIT_OUT:
$!
$ set def 'saved_default
$ exit 'exit_status
$!
$
$ERROR_OUT:
$ exit_status = $status
$ write sys$output "''f$message(exit_status)'"
$ goto EXIT_OUT
$!
$!- the BUILD subroutine. Compile then insert into library or link as required
$!
$BUILD: subroutine
$ on warning then goto EXIT_BUILD
$ source_file = p1
$ name = f$element(0,".",source_file)
$ object_file = f$fao("XML_LIBDIR:!AS.OBJ",name)
$!
$!- compile
$ write sys$output "Compiling ",p1,p2,"..."
$ cc_command /object='object_file 'source_file' 'p2'
$!
$!- insert into library if command defined
$!
$ if lib_command.nes.""
$ then
$ lib_command 'object_file'
$ delete/nolog 'object_file';*
$ endif
$!
$!- link module if command defined
$!
$ if link_command.nes.""
$ then
$ text = f$element(0,".",p1) ! lose the ".c"
$ write sys$output "Linking ",text,"..."
$ dbgopts = ""
$ if debug then dbgopts = "/DEBUG"
$ link_command'dbgopts' 'object_file',-
XML_LIBDIR:libexslt/lib,-
XML_LIBDIR:libxslt/lib,-
XML_LIBDIR:libxml/library
$ endif
$!
$EXIT_BUILD:
$ exit $status
$!
$endsubroutine
| DIGITAL Command Language | 4 | JavascriptID/sourcerer-app | src/test/resources/samples/langs/DIGITAL Command Language/libxslt_build.com | [
"MIT"
] |
#include "script_component.hpp"
#include "XEH_PREP.sqf"
if (!hasInterface) exitWith {}; //Don't need on Headless and dedicated Servers
GVAR(radioTowerList) = [] call CBA_fnc_hashCreate;
["TFAR_ConfigRefresh",{
#ifdef DEBUG_MODE_FULL
systemChat "TFAR_ConfigRefresh";
#endif
([(GVAR(radioTowerList))] call CBA_fnc_hashKeys) call FUNC(pluginAddRadioTower);
}] call CBA_fnc_addEventHandler;
| SQF | 3 | MrDj200/task-force-arma-3-radio | addons/antennas/XEH_preInit.sqf | [
"RSA-MD"
] |
" Vim compiler file
" Compiler: Compaq Visual Fortran
" Maintainer: Joh.-G. Simon ([email protected])
" Last Change: 11/05/2002
if exists("current_compiler")
finish
endif
let current_compiler = "fortran_cv"
if exists(":CompilerSet") != 2 " older Vim always used :setlocal
command -nargs=* CompilerSet setlocal <args>
endif
let s:cposet = &cpoptions
set cpoptions-=C
" A workable errorformat for Compaq Visual Fortran
CompilerSet errorformat=
\%E%f(%l)\ :\ Error:%m,
\%W%f(%l)\ :\ Warning:%m,
\%-Z%p%^%.%#,
\%-G%.%#,
" Compiler call
CompilerSet makeprg=df\ /nologo\ /noobj\ /c\ %:S
" Visual fortran defaults to printing output on stderr
" Adjust option shellpipe accordingly
let &cpoptions = s:cposet
unlet s:cposet
| VimL | 4 | uga-rosa/neovim | runtime/compiler/fortran_cv.vim | [
"Vim"
] |
particle 0.1
i: i + 0.1
box i
end
| Cycript | 0 | Psykopear/cyril | bin/data/code/3.cy | [
"MIT"
] |
import { DebugElement } from '@angular/core';
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { SearchResult } from 'app/search/interfaces';
import { SearchResultsComponent } from './search-results.component';
describe('SearchResultsComponent', () => {
let component: SearchResultsComponent;
let fixture: ComponentFixture<SearchResultsComponent>;
let guideA: SearchResult;
let apiD: SearchResult;
let guideB: SearchResult;
let guideAC: SearchResult;
let apiC: SearchResult;
let guideN: SearchResult;
let guideM: SearchResult;
let guideL: SearchResult;
let guideK: SearchResult;
let guideJ: SearchResult;
let guideI: SearchResult;
let guideH: SearchResult;
let guideG: SearchResult;
let guideF: SearchResult;
let guideE: SearchResult;
let standardResults: SearchResult[];
/** Get all text from component element. */
function getText() { return fixture.debugElement.nativeElement.textContent; }
/** Pass the given search results to the component and trigger change detection. */
function setSearchResults(query: string, results: SearchResult[]) {
component.searchResults = {query, results};
component.ngOnChanges();
fixture.detectChanges();
}
/** Get a full set of test results. "Take" what you need */
beforeEach(() => {
/* eslint-disable max-len */
apiD = { path: 'api/d', title: 'API D', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
apiC = { path: 'api/c', title: 'API C', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideA = { path: 'guide/a', title: 'Guide A', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideB = { path: 'guide/b', title: 'Guide B', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideAC = { path: 'guide/a/c', title: 'Guide A - C', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideE = { path: 'guide/e', title: 'Guide e', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideF = { path: 'guide/f', title: 'Guide f', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideG = { path: 'guide/g', title: 'Guide g', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideH = { path: 'guide/h', title: 'Guide h', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideI = { path: 'guide/i', title: 'Guide i', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideJ = { path: 'guide/j', title: 'Guide j', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideK = { path: 'guide/k', title: 'Guide k', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideL = { path: 'guide/l', title: 'Guide l', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideM = { path: 'guide/m', title: 'Guide m', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
guideN = { path: 'guide/n', title: 'Guide n', deprecated: false, keywords: '', titleWords: '', type: '', topics: '' };
/* eslint-enable max-len */
standardResults = [
guideA,
apiD,
guideB,
guideAC,
apiC,
guideN,
guideM,
guideL,
guideK,
guideJ,
guideI,
guideH,
guideG,
guideF,
guideE,
];
});
beforeEach(() => {
TestBed.configureTestingModule({
declarations: [ SearchResultsComponent ]
});
});
beforeEach(() => {
fixture = TestBed.createComponent(SearchResultsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should map the search results into groups based on their containing folder', () => {
const startA = {
path: 'start/a',
title: 'Start A',
deprecated: false,
keywords: '',
titleWords: '',
type: '',
topics: '',
};
const tutorialA = {
path: 'tutorial/a',
title: 'Tutorial A',
deprecated: false,
keywords: '',
titleWords: '',
type: '',
topics: '',
};
setSearchResults('', [guideA, apiD, guideB, startA, tutorialA]);
expect(component.searchAreas).toEqual([
{ name: 'api', priorityPages: [apiD], pages: [] },
{ name: 'guides', priorityPages: [guideA, guideB], pages: [] },
{ name: 'tutorials', priorityPages: [startA, tutorialA], pages: [] },
]);
});
it('should special case results that are top level folders', () => {
setSearchResults('', [
{
path: 'docs',
title: 'Docs introduction',
type: '',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
},
{
path: 'start',
title: 'Getting started',
type: '',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
},
{
path: 'tutorial',
title: 'Tutorial index',
type: '',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
},
{
path: 'tutorial/toh-pt1',
title: 'Tutorial - part 1',
type: '',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
},
]);
expect(component.searchAreas).toEqual([
{
name: 'guides',
priorityPages: [
{
path: 'docs',
title: 'Docs introduction',
type: '',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
},
],
pages: [],
},
{
name: 'tutorials',
priorityPages: [
{
path: 'start',
title: 'Getting started',
type: '',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
},
{
path: 'tutorial',
title: 'Tutorial index',
type: '',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
},
{
path: 'tutorial/toh-pt1',
title: 'Tutorial - part 1',
type: '',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
},
],
pages: [],
},
]);
});
it('should put, at most, the first 5 results for each area into priorityPages, not sorted', () => {
setSearchResults('', standardResults);
expect(component.searchAreas[0].priorityPages).toEqual([apiD, apiC]);
expect(component.searchAreas[1].priorityPages).toEqual([guideA, guideB, guideAC, guideN, guideM]);
});
it('should put the nonPriorityPages into the pages array, sorted by title', () => {
setSearchResults('', standardResults);
expect(component.searchAreas[0].pages).toEqual([]);
expect(component.searchAreas[1].pages).toEqual([
guideE, guideF, guideG, guideH, guideI, guideJ, guideK, guideL
]);
});
it('should put a total count in the header of each area of search results', () => {
setSearchResults('', standardResults);
fixture.detectChanges();
const headers = fixture.debugElement.queryAll(By.css('h3'));
expect(headers.length).toEqual(2);
expect(headers[0].nativeElement.textContent).toContain('(2)');
expect(headers[1].nativeElement.textContent).toContain('(13)');
});
it('should put search results with no containing folder into the default area (other)', () => {
const results = [
{ path: 'news', title: 'News', type: 'marketing', keywords: '', titleWords: '', deprecated: false, topics: '' }
];
setSearchResults('', results);
expect(component.searchAreas).toEqual([
{ name: 'other', priorityPages: [
{ path: 'news', title: 'News', type: 'marketing', keywords: '', titleWords: '', deprecated: false, topics: '' }
], pages: [] }
]);
});
it('should omit search results with no title', () => {
const results = [
{ path: 'news', title: '', type: 'marketing', keywords: '', titleWords: '', deprecated: false, topics: '' }
];
setSearchResults('something', results);
expect(component.searchAreas).toEqual([]);
});
describe('when there are deprecated items', () => {
beforeEach(() => {
apiD.deprecated = true;
guideAC.deprecated = true;
guideJ.deprecated = true;
guideE.deprecated = true;
setSearchResults('something', standardResults);
});
// eslint-disable-next-line max-len
it('should include deprecated items in priority pages unless there are fewer than 5 non-deprecated priority pages', () => {
// Priority pages do not include deprecated items:
expect(component.searchAreas[1].priorityPages).not.toContain(guideAC);
expect(component.searchAreas[1].priorityPages).not.toContain(guideJ);
// Except where there are too few priority pages:
expect(component.searchAreas[0].priorityPages).toContain(apiD);
});
it('should move the non-priority deprecated pages to the bottom of the pages list, unsorted', () => {
// Bottom pages are the deprecated ones (in original order)
expect(component.searchAreas[1].pages.slice(-3)).toEqual([guideAC, guideJ, guideE]);
});
it('should sort the non-deprecated, non-priority pages by title', () => {
// The rest of the pages are non-deprecated, sorted by title
expect(component.searchAreas[1].pages.slice(0, -3)).toEqual([
guideF, guideG, guideH, guideI, guideK,
]);
});
});
it('should display "Searching ..." while waiting for search results', () => {
fixture.detectChanges();
expect(getText()).toContain('Searching ...');
});
it('should not display default links while searching', () => {
fixture.detectChanges();
const resultLinks = fixture.debugElement.queryAll(By.css('.search-page a'));
expect(resultLinks.length).toEqual(0);
});
describe('when a search result anchor is clicked', () => {
let searchResult: SearchResult;
let selected: SearchResult|null;
let anchor: DebugElement;
beforeEach(() => {
component.resultSelected.subscribe((result: SearchResult) => selected = result);
selected = null;
searchResult = {
path: 'news',
title: 'News',
type: 'marketing',
keywords: '',
titleWords: '',
deprecated: false,
topics: '',
};
setSearchResults('something', [searchResult]);
fixture.detectChanges();
anchor = fixture.debugElement.query(By.css('a'));
expect(selected).toBeNull();
});
it('should emit a "resultSelected" event', () => {
anchor.triggerEventHandler('click', {button: 0, ctrlKey: false, metaKey: false});
fixture.detectChanges();
expect(selected).toBe(searchResult);
});
it('should not emit an event if mouse button is not zero (middle or right)', () => {
anchor.triggerEventHandler('click', {button: 1, ctrlKey: false, metaKey: false});
fixture.detectChanges();
expect(selected).toBeNull();
});
it('should not emit an event if the `ctrl` key is pressed', () => {
anchor.triggerEventHandler('click', {button: 0, ctrlKey: true, metaKey: false});
fixture.detectChanges();
expect(selected).toBeNull();
});
it('should not emit an event if the `meta` key is pressed', () => {
anchor.triggerEventHandler('click', {button: 0, ctrlKey: false, metaKey: true});
fixture.detectChanges();
expect(selected).toBeNull();
});
});
describe('when no query results', () => {
beforeEach(() => {
setSearchResults('something', []);
});
it('should display "not found" message', () => {
expect(getText()).toContain('No results');
});
it('should contain reference links', () => {
const resultLinks = fixture.debugElement.queryAll(By.css('.search-page a'));
const resultHrefs = resultLinks.map(a => a.nativeNode.getAttribute('href'));
expect(resultHrefs.length).toEqual(5);
expect(resultHrefs).toEqual([
'api',
'resources',
'guide/glossary',
'guide/cheatsheet',
'https://blog.angular.io/',
]);
});
});
});
| TypeScript | 5 | John-Cassidy/angular | aio/src/app/shared/search-results/search-results.component.spec.ts | [
"MIT"
] |
; RUN: opt -mtriple=amdgcn-unknown-amdhsa -mcpu=hawaii -loop-unroll -S < %s | FileCheck %s
; CHECK-LABEL: @test_unroll_convergent_barrier(
; CHECK: call void @llvm.amdgcn.s.barrier()
; CHECK: call void @llvm.amdgcn.s.barrier()
; CHECK: call void @llvm.amdgcn.s.barrier()
; CHECK: call void @llvm.amdgcn.s.barrier()
; CHECK-NOT: br
define amdgpu_kernel void @test_unroll_convergent_barrier(i32 addrspace(1)* noalias nocapture %out, i32 addrspace(1)* noalias nocapture %in) #0 {
entry:
br label %for.body
for.body: ; preds = %for.body, %entry
%indvars.iv = phi i32 [ %indvars.iv.next, %for.body ], [ 0, %entry ]
%sum.02 = phi i32 [ %add, %for.body ], [ 0, %entry ]
%arrayidx.in = getelementptr inbounds i32, i32 addrspace(1)* %in, i32 %indvars.iv
%arrayidx.out = getelementptr inbounds i32, i32 addrspace(1)* %out, i32 %indvars.iv
%load = load i32, i32 addrspace(1)* %arrayidx.in
call void @llvm.amdgcn.s.barrier() #1
%add = add i32 %load, %sum.02
store i32 %add, i32 addrspace(1)* %arrayidx.out
%indvars.iv.next = add i32 %indvars.iv, 1
%exitcond = icmp eq i32 %indvars.iv.next, 4
br i1 %exitcond, label %for.end, label %for.body
for.end: ; preds = %for.body, %entry
ret void
}
declare void @llvm.amdgcn.s.barrier() #1
attributes #0 = { nounwind }
attributes #1 = { nounwind convergent }
| LLVM | 4 | medismailben/llvm-project | llvm/test/Transforms/LoopUnroll/AMDGPU/unroll-barrier.ll | [
"Apache-2.0"
] |
--TEST--
Test chr() function : basic functionality
--FILE--
<?php
echo "*** Testing chr() : basic functionality ***\n";
echo chr(72). chr(101) . chr(108) . chr(108). chr(111); // Hello
echo chr(10); // "\n"
echo "World";
echo "\n";
?>
--EXPECT--
*** Testing chr() : basic functionality ***
Hello
World
| PHP | 3 | NathanFreeman/php-src | ext/standard/tests/strings/chr_basic.phpt | [
"PHP-3.01"
] |
# Check the handling of output files.
#
# We run the build in a sandbox in the temp directory to ensure we don't
# interact with the source dirs.
# Check that we always run commands that don't produce output files.
#
# RUN: rm -rf %t.build
# RUN: mkdir -p %t.build
# RUN: cp %s %t.build/build.ninja
# RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build no-output &> %t.out
# RUN: %{FileCheck} --check-prefix=CHECK-FIRST < %t.out %s
# RUN: %{llbuild} ninja build --jobs 1 --chdir %t.build no-output &> %t.out
# RUN: %{FileCheck} --check-prefix=CHECK-SECOND < %t.out %s
# CHECK-FIRST: [1/{{.*}}] echo "built no-output"
# CHECK-FIRST: built no-output
# CHECK-SECOND: [1/{{.*}}] echo "built no-output"
# CHECK-SECOND: built no-output
rule CUSTOM
command = ${COMMAND}
build no-output: CUSTOM
command = echo "built no-output"
| Ninja | 4 | uraimo/swift-llbuild | tests/Ninja/Build/outputs.ninja | [
"Apache-2.0"
] |
// Copyright (c) 2020 Slack Technologies, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/common/v8_value_serializer.h"
#include <utility>
#include <vector>
#include "gin/converter.h"
#include "shell/common/api/electron_api_native_image.h"
#include "shell/common/gin_helper/microtasks_scope.h"
#include "skia/public/mojom/bitmap.mojom.h"
#include "third_party/blink/public/common/messaging/cloneable_message.h"
#include "ui/gfx/image/image_skia.h"
#include "v8/include/v8.h"
namespace electron {
namespace {
enum SerializationTag { kNativeImageTag = 'i', kVersionTag = 0xFF };
} // namespace
class V8Serializer : public v8::ValueSerializer::Delegate {
public:
explicit V8Serializer(v8::Isolate* isolate)
: isolate_(isolate), serializer_(isolate, this) {}
~V8Serializer() override = default;
bool Serialize(v8::Local<v8::Value> value, blink::CloneableMessage* out) {
gin_helper::MicrotasksScope microtasks_scope(
isolate_, v8::MicrotasksScope::kDoNotRunMicrotasks);
WriteBlinkEnvelope(19);
serializer_.WriteHeader();
bool wrote_value;
if (!serializer_.WriteValue(isolate_->GetCurrentContext(), value)
.To(&wrote_value)) {
isolate_->ThrowException(v8::Exception::Error(
gin::StringToV8(isolate_, "An object could not be cloned.")));
return false;
}
DCHECK(wrote_value);
std::pair<uint8_t*, size_t> buffer = serializer_.Release();
DCHECK_EQ(buffer.first, data_.data());
out->encoded_message = base::make_span(buffer.first, buffer.second);
out->owned_encoded_message = std::move(data_);
return true;
}
// v8::ValueSerializer::Delegate
void* ReallocateBufferMemory(void* old_buffer,
size_t size,
size_t* actual_size) override {
DCHECK_EQ(old_buffer, data_.data());
data_.resize(size);
*actual_size = data_.capacity();
return data_.data();
}
void FreeBufferMemory(void* buffer) override {
DCHECK_EQ(buffer, data_.data());
data_ = {};
}
v8::Maybe<bool> WriteHostObject(v8::Isolate* isolate,
v8::Local<v8::Object> object) override {
api::NativeImage* native_image;
if (gin::ConvertFromV8(isolate, object, &native_image)) {
// Serialize the NativeImage
WriteTag(kNativeImageTag);
gfx::ImageSkia image = native_image->image().AsImageSkia();
std::vector<gfx::ImageSkiaRep> image_reps = image.image_reps();
serializer_.WriteUint32(image_reps.size());
for (const auto& rep : image_reps) {
serializer_.WriteDouble(rep.scale());
const SkBitmap& bitmap = rep.GetBitmap();
std::vector<uint8_t> bytes =
skia::mojom::InlineBitmap::Serialize(&bitmap);
serializer_.WriteUint32(bytes.size());
serializer_.WriteRawBytes(bytes.data(), bytes.size());
}
return v8::Just(true);
} else {
return v8::ValueSerializer::Delegate::WriteHostObject(isolate, object);
}
}
void ThrowDataCloneError(v8::Local<v8::String> message) override {
isolate_->ThrowException(v8::Exception::Error(message));
}
private:
void WriteTag(SerializationTag tag) { serializer_.WriteRawBytes(&tag, 1); }
void WriteBlinkEnvelope(uint32_t blink_version) {
// Write a dummy blink version envelope for compatibility with
// blink::V8ScriptValueSerializer
WriteTag(kVersionTag);
serializer_.WriteUint32(blink_version);
}
v8::Isolate* isolate_;
std::vector<uint8_t> data_;
v8::ValueSerializer serializer_;
};
class V8Deserializer : public v8::ValueDeserializer::Delegate {
public:
V8Deserializer(v8::Isolate* isolate, base::span<const uint8_t> data)
: isolate_(isolate),
deserializer_(isolate, data.data(), data.size(), this) {}
V8Deserializer(v8::Isolate* isolate, const blink::CloneableMessage& message)
: V8Deserializer(isolate, message.encoded_message) {}
v8::Local<v8::Value> Deserialize() {
v8::EscapableHandleScope scope(isolate_);
auto context = isolate_->GetCurrentContext();
uint32_t blink_version;
if (!ReadBlinkEnvelope(&blink_version))
return v8::Null(isolate_);
bool read_header;
if (!deserializer_.ReadHeader(context).To(&read_header))
return v8::Null(isolate_);
DCHECK(read_header);
v8::Local<v8::Value> value;
if (!deserializer_.ReadValue(context).ToLocal(&value))
return v8::Null(isolate_);
return scope.Escape(value);
}
v8::MaybeLocal<v8::Object> ReadHostObject(v8::Isolate* isolate) override {
uint8_t tag = 0;
if (!ReadTag(&tag))
return v8::ValueDeserializer::Delegate::ReadHostObject(isolate);
switch (tag) {
case kNativeImageTag:
if (api::NativeImage* native_image = ReadNativeImage(isolate))
return native_image->GetWrapper(isolate);
break;
}
// Throws an exception.
return v8::ValueDeserializer::Delegate::ReadHostObject(isolate);
}
private:
bool ReadTag(uint8_t* tag) {
const void* tag_bytes = nullptr;
if (!deserializer_.ReadRawBytes(1, &tag_bytes))
return false;
*tag = *reinterpret_cast<const uint8_t*>(tag_bytes);
return true;
}
bool ReadBlinkEnvelope(uint32_t* blink_version) {
// Read a dummy blink version envelope for compatibility with
// blink::V8ScriptValueDeserializer
uint8_t tag = 0;
if (!ReadTag(&tag) || tag != kVersionTag)
return false;
if (!deserializer_.ReadUint32(blink_version))
return false;
return true;
}
api::NativeImage* ReadNativeImage(v8::Isolate* isolate) {
gfx::ImageSkia image_skia;
uint32_t num_reps = 0;
if (!deserializer_.ReadUint32(&num_reps))
return nullptr;
for (uint32_t i = 0; i < num_reps; i++) {
double scale = 0.0;
if (!deserializer_.ReadDouble(&scale))
return nullptr;
uint32_t bitmap_size_bytes = 0;
if (!deserializer_.ReadUint32(&bitmap_size_bytes))
return nullptr;
const void* bitmap_data = nullptr;
if (!deserializer_.ReadRawBytes(bitmap_size_bytes, &bitmap_data))
return nullptr;
SkBitmap bitmap;
if (!skia::mojom::InlineBitmap::Deserialize(bitmap_data,
bitmap_size_bytes, &bitmap))
return nullptr;
image_skia.AddRepresentation(gfx::ImageSkiaRep(bitmap, scale));
}
gfx::Image image(image_skia);
return new api::NativeImage(isolate, image);
}
v8::Isolate* isolate_;
v8::ValueDeserializer deserializer_;
};
bool SerializeV8Value(v8::Isolate* isolate,
v8::Local<v8::Value> value,
blink::CloneableMessage* out) {
return V8Serializer(isolate).Serialize(value, out);
}
v8::Local<v8::Value> DeserializeV8Value(v8::Isolate* isolate,
const blink::CloneableMessage& in) {
return V8Deserializer(isolate, in).Deserialize();
}
v8::Local<v8::Value> DeserializeV8Value(v8::Isolate* isolate,
base::span<const uint8_t> data) {
return V8Deserializer(isolate, data).Deserialize();
}
} // namespace electron
| C++ | 4 | TarunavBA/electron | shell/common/v8_value_serializer.cc | [
"MIT"
] |
/* Copyright libuv contributors. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include "uv.h"
#include "internal.h"
#include <string.h>
#include <sys/process.h>
#include <sys/neutrino.h>
#include <sys/memmsg.h>
#include <sys/syspage.h>
#include <sys/procfs.h>
static void
get_mem_info(uint64_t* totalmem, uint64_t* freemem) {
mem_info_t msg;
memset(&msg, 0, sizeof(msg));
msg.i.type = _MEM_INFO;
msg.i.fd = -1;
if (MsgSend(MEMMGR_COID, &msg.i, sizeof(msg.i), &msg.o, sizeof(msg.o))
!= -1) {
*totalmem = msg.o.info.__posix_tmi_total;
*freemem = msg.o.info.posix_tmi_length;
} else {
*totalmem = 0;
*freemem = 0;
}
}
void uv_loadavg(double avg[3]) {
avg[0] = 0.0;
avg[1] = 0.0;
avg[2] = 0.0;
}
int uv_exepath(char* buffer, size_t* size) {
char path[PATH_MAX];
if (buffer == NULL || size == NULL || *size == 0)
return UV_EINVAL;
realpath(_cmdname(NULL), path);
strlcpy(buffer, path, *size);
*size = strlen(buffer);
return 0;
}
uint64_t uv_get_free_memory(void) {
uint64_t totalmem;
uint64_t freemem;
get_mem_info(&totalmem, &freemem);
return freemem;
}
uint64_t uv_get_total_memory(void) {
uint64_t totalmem;
uint64_t freemem;
get_mem_info(&totalmem, &freemem);
return totalmem;
}
uint64_t uv_get_constrained_memory(void) {
return 0;
}
int uv_resident_set_memory(size_t* rss) {
int fd;
procfs_asinfo asinfo;
fd = uv__open_cloexec("/proc/self/ctl", O_RDONLY);
if (fd == -1)
return UV__ERR(errno);
if (devctl(fd, DCMD_PROC_ASINFO, &asinfo, sizeof(asinfo), 0) == -1) {
uv__close(fd);
return UV__ERR(errno);
}
uv__close(fd);
*rss = asinfo.rss;
return 0;
}
int uv_uptime(double* uptime) {
struct qtime_entry* qtime = _SYSPAGE_ENTRY(_syspage_ptr, qtime);
*uptime = (qtime->nsec / 1000000000.0);
return 0;
}
int uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {
struct cpuinfo_entry* cpuinfo =
(struct cpuinfo_entry*)_SYSPAGE_ENTRY(_syspage_ptr, new_cpuinfo);
size_t cpuinfo_size = _SYSPAGE_ELEMENT_SIZE(_syspage_ptr, cpuinfo);
struct strings_entry* strings = _SYSPAGE_ENTRY(_syspage_ptr, strings);
int num_cpus = _syspage_ptr->num_cpu;
int i;
*count = num_cpus;
*cpu_infos = uv__malloc(num_cpus * sizeof(**cpu_infos));
if (*cpu_infos == NULL)
return UV_ENOMEM;
for (i = 0; i < num_cpus; i++) {
(*cpu_infos)[i].model = strdup(&strings->data[cpuinfo->name]);
(*cpu_infos)[i].speed = cpuinfo->speed;
SYSPAGE_ARRAY_ADJ_OFFSET(cpuinfo, cpuinfo, cpuinfo_size);
}
return 0;
}
| C | 4 | libcat/libuv | src/unix/qnx.c | [
"CC-BY-4.0",
"MIT"
] |
sleep 4
t app button shutter PR
sleep X
t app button shutter PR
sleep 2
t app led red_front on
sleep 10
t app led red_front off
sleep 1
deletedir d:\DCIM
reboot yes
| AGS Script | 0 | waltersgrey/autoexechack | deletemedia/deletevideo/HERO3PlusSilver/autoexec.ash | [
"MIT"
] |
query Viewer {
viewer {
...Partial
status
}
}
fragment Partial on User {
id
name
}
| GraphQL | 3 | nazarepiedady/next.js | examples/with-typescript-graphql/lib/documents/viewer.graphql | [
"MIT"
] |
#import <ATen/native/metal/MetalCommandBuffer.h>
#import <ATen/native/metal/MetalTensorImpl.h>
#import <ATen/native/metal/MetalTensorImplStorage.h>
#import <ATen/native/metal/MetalTensorUtils.h>
#import <ATen/native/metal/MetalContext.h>
#import <ATen/native/metal/mpscnn/MPSCNNUtils.h>
#import <ATen/native/metal/mpscnn/MPSImage+Tensor.h>
#import <ATen/native/metal/mpscnn/MPSImageUtils.h>
#include <ATen/Tensor.h>
#include <ATen/native/UpSample.h>
#include <torch/library.h>
namespace at {
namespace native {
namespace metal {
Tensor cat_batch(const TensorList tensors, MetalTensorImplStorage& mt) {
at::Tensor tensor = tensors[0];
MetalCommandBuffer* commandBuffer = getCommandBuffer(tensor);
MPSImage* Y = mt.texture()->image();
ushort cat_dim4_pointer = 0;
for (int i = 0; i < tensors.size(); ++i) {
const auto& t = tensors[i];
MPSImage* X = imageFromTensor(t);
MetalCommandBuffer* Xcb = getCommandBuffer(t);
TORCH_CHECK(
[commandBuffer isEqual:Xcb],
@"inputs have different Metal command buffers");
id<MTLComputeCommandEncoder> encoder =
[commandBuffer.buffer computeCommandEncoder];
id<MTLComputePipelineState> state = [[MetalContext sharedInstance]
pipelineState:mpscnn::kernelFor(
X, "copy_offset", "copy_offset_nonarray")];
id<MTLBuffer> offsetBuffer = [[MetalContext sharedInstance].device
newBufferWithLength:1 * sizeof(ushort)
options:MTLResourceOptionCPUCacheModeWriteCombined];
ushort* offsetBufferPtr = (ushort*)[offsetBuffer contents];
offsetBufferPtr[0] = cat_dim4_pointer;
[encoder setComputePipelineState:state];
[encoder setTexture:[X texture] atIndex:0];
[encoder setTexture:[Y texture] atIndex:1];
[encoder setBuffer:offsetBuffer offset:0 atIndex:0];
const auto& launchParams =
mpscnn::spatialPointwiseKernelLaunchParams(state, X);
[encoder dispatchThreadgroups:launchParams.threadgroupsPerGrid
threadsPerThreadgroup:launchParams.threadsPerThreadgroup];
[encoder endEncoding];
cat_dim4_pointer += t.size(0) * ((t.size(1) + 3) / 4);
}
auto output = makeTensor(std::move(mt), tensor.options());
return output;
}
Tensor cat_feature(const TensorList tensors, MetalTensorImplStorage& mt) {
at::Tensor tensor = tensors[0];
MetalCommandBuffer* commandBuffer = getCommandBuffer(tensor);
MPSImage* Y = mt.texture()->image();
ushort channel_offset = 0;
auto temp_size = tensor.sizes().vec();
temp_size[1] = 4;
MetalTensorImplStorage tt{temp_size};
tt.texture()->setCommandBuffer(commandBuffer);
tt.texture()->allocateTemporaryStorage(temp_size, commandBuffer);
MPSImage* T = tt.texture()->image();
for (int i = 0; i < tensors.size(); ++i) {
MPSImage* X = imageFromTensor(tensors[i]);
MetalCommandBuffer* Xcb = getCommandBuffer(tensors[i]);
TORCH_CHECK(
[commandBuffer isEqual:Xcb],
@"inputs have different Metal command buffers");
ushort tex_offset = channel_offset % 4;
std::string kernelString = tex_offset == 0 ? "append_features" : "append_features_off";
{
id<MTLComputeCommandEncoder> encoder =
[commandBuffer.buffer computeCommandEncoder];
id<MTLComputePipelineState> state = [[MetalContext sharedInstance]
specializedPipelineState:kernelString
Constants:@[
@(T.height),
@(T.width),
@(T.featureChannels),
@(T.numberOfImages),
@(X.height),
@(X.width),
@(X.featureChannels),
@(X.numberOfImages),
]];
id<MTLBuffer> offsetBuffer = [[MetalContext sharedInstance].device
newBufferWithLength:6 * sizeof(ushort)
options:MTLResourceOptionCPUCacheModeWriteCombined];
ushort* offsetBufferPtr = (ushort*)[offsetBuffer contents];
offsetBufferPtr[0] = (X.featureChannels + tex_offset + 3) / 4;
offsetBufferPtr[1] = (Y.featureChannels + 3) / 4;
offsetBufferPtr[2] = channel_offset / 4;
offsetBufferPtr[3] = (X.featureChannels + 3) / 4;
offsetBufferPtr[4] = X.numberOfImages * offsetBufferPtr[0];
offsetBufferPtr[5] = tex_offset;
[encoder setComputePipelineState:state];
if (tex_offset == 0) {
[encoder setTexture:[X texture] atIndex:0];
[encoder setTexture:[Y texture] atIndex:1];
[encoder setBuffer:offsetBuffer offset:0 atIndex:0];
}
else {
[encoder setTexture:[X texture] atIndex:0];
[encoder setTexture:[T texture] atIndex:1];
[encoder setTexture:[Y texture] atIndex:2];
[encoder setBuffer:offsetBuffer offset:0 atIndex:0];
}
ushort featureChannels = X.featureChannels;
if (channel_offset % 4 > 0) {
featureChannels += tex_offset;
}
const auto& launchParams =
metal::mpscnn::spatialPointwiseKernelLaunchParams(
state, X.numberOfImages, featureChannels, X.height, X.width);
[encoder dispatchThreadgroups:launchParams.threadgroupsPerGrid
threadsPerThreadgroup:launchParams.threadsPerThreadgroup];
[encoder endEncoding];
}
channel_offset += X.featureChannels;
{
id<MTLComputeCommandEncoder> encoder =
[commandBuffer.buffer computeCommandEncoder];
id<MTLComputePipelineState> state = [[MetalContext sharedInstance]
specializedPipelineState:"store_features"
Constants:@[
@(T.height),
@(T.width),
@(T.featureChannels),
@(T.numberOfImages),
]];
id<MTLBuffer> offsetBuffer = [[MetalContext sharedInstance].device
newBufferWithLength:2 * sizeof(ushort)
options:MTLResourceOptionCPUCacheModeWriteCombined];
ushort* offsetBufferPtr = (ushort*)[offsetBuffer contents];
offsetBufferPtr[0] = channel_offset / 4;
offsetBufferPtr[1] = (Y.featureChannels + 3) / 4;
[encoder setComputePipelineState:state];
[encoder setTexture:[Y texture] atIndex:0];
[encoder setTexture:[T texture] atIndex:1];
[encoder setBuffer:offsetBuffer offset:0 atIndex:0];
const auto& launchParams =
metal::mpscnn::spatialPointwiseKernelLaunchParams(state, T);
[encoder dispatchThreadgroups:launchParams.threadgroupsPerGrid
threadsPerThreadgroup:launchParams.threadsPerThreadgroup];
[encoder endEncoding];
}
}
auto output = makeTensor(std::move(mt), tensor.options());
return output;
}
Tensor cat(const TensorList tensors, int64_t dim) {
TORCH_CHECK(
dim == 0 || dim == 1,
"Metal cat is implemented only for batch dimension");
int64_t cat_dim_size = 0;
at::Tensor tensor = tensors[0];
MetalCommandBuffer* commandBuffer = getCommandBuffer(tensor);
for (int i = 0; i < tensors.size(); ++i) {
const auto& t = tensors[i];
TORCH_CHECK(t.dim() == 4, "Metal cat expects 4 dimensional inputs");
TORCH_CHECK(t.is_metal(), "Metal cat expects metal tensors");
for (int d = 0; d < 4; ++d) {
if (d == dim) {
continue;
}
TORCH_CHECK(
t.size(d) == tensor.size(d),
"Metal cat inputs must have matching sizes except concatenated dimension");
}
cat_dim_size += t.size(dim);
}
auto result_size = tensor.sizes().vec();
result_size[dim] = cat_dim_size;
TORCH_CHECK(
result_size[0] * ((result_size[1] + 3) / 4) > 1,
"Output tensor must be a texture array");
MetalTensorImplStorage mt{result_size};
mt.texture()->setCommandBuffer(commandBuffer);
mt.texture()->allocateTemporaryStorage(result_size, commandBuffer);
if (dim == 1) {
return cat_feature(tensors, mt);
}
return cat_batch(tensors, mt);
}
TORCH_LIBRARY_IMPL(aten, Metal, m) {
m.impl("_cat", TORCH_FN(cat));
}
}
}
}
| Objective-C++ | 4 | Hacky-DH/pytorch | aten/src/ATen/native/metal/ops/MetalConcat.mm | [
"Intel"
] |
package com.baeldung.find
class Person {
private String firstname
private String lastname
private Integer age
Person(String firstname, String lastname, Integer age) {
this.firstname = firstname
this.lastname = lastname
this.age = age
}
String getFirstname() {
return firstname
}
void setFirstname(String firstname) {
this.firstname = firstname
}
String getLastname() {
return lastname
}
void setLastname(String lastname) {
this.lastname = lastname
}
Integer getAge() {
return age
}
void setAge(Integer age) {
this.age = age
}
}
| Groovy | 4 | DBatOWL/tutorials | core-groovy-collections/src/test/groovy/com/baeldung/find/Person.groovy | [
"MIT"
] |
insert into car_maker(id,name) values (1,'Special Motors');
insert into car_maker(id,name) values (2,'BWM');
insert into car_maker(id,name) values (3,'Dolores');
insert into car_model(id,maker_fk,name,sku,year) values(1,1,'Muze','SM001',2018);
insert into car_model(id,maker_fk,name,sku,year) values(2,1,'Empada','SM002',2008);
insert into car_model(id,maker_fk,name,sku,year) values(4,2,'BWM-100','BWM100',2008);
insert into car_model(id,maker_fk,name,sku,year) values(5,2,'BWM-200','BWM200',2009);
insert into car_model(id,maker_fk,name,sku,year) values(6,2,'BWM-300','BWM300',2008);
alter sequence hibernate_sequence restart with 100; | SQL | 2 | DBatOWL/tutorials | apache-olingo/src/main/resources/data.sql | [
"MIT"
] |
<HTML>
<HEAD>
<TITLE> AUT </TITLE>
<META HTTP-EQUIV="Content-Language" CONTENT="en">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
<FRAMESET ROWS="40,*,81" cols="100%" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0">
<FRAME SRC="test_fast_reloader.html" NAME="topFrame" SCROLLING="NO" NORESIZE >
<FRAME SRC="test_slow_reloader.html" APPLICATION="yes" NAME="slow">
</FRAMESET>
<NOFRAMES>
<BODY>
</BODY>
</NOFRAMES>
</HTML>
| HTML | 2 | weilandia/selenium | common/src/web/rc/tests/html/FastLoadingFrameWithSlowLoadingFrame.html | [
"Apache-2.0"
] |
// run-pass
#![allow(dead_code)]
use std::iter::{Fuse, Zip};
fn fuse_covariant<'a, I>(iter: Fuse<&'static I>) -> Fuse<&'a I> { iter }
fn zip_covariant<'a, A, B>(iter: Zip<&'static A, &'static B>) -> Zip<&'a A, &'a B> { iter }
fn main() { }
| Rust | 3 | Eric-Arellano/rust | src/test/ui/variance-iterators-in-libcore.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
// 16级迭代流水线,实现 UInt#(32) 的开方运算
package Sqrt_v1;
import DReg::*;
module mkTb();
// ----- sqrt 实现 --------------------------------------------------------------------------------------------------------------------------
// 进行单次迭代的函数(组合逻辑电路),该函数会被部署 16 次,分别在流水线的 16 个级
function Tuple2#(UInt#(32), UInt#(32)) sqrtIteration( Tuple2#(UInt#(32), UInt#(32)) data, int n );
match {.x, .y} = data;
let t = (y<<1<<n) + (1<<n<<n);
if(x >= t) begin
x = x - t;
y = y + (1<<n);
end
return tuple2(x, y);
endfunction
// 17 个 DReg,用于传递流水线各级的中间结果(也叫流水线段寄存器 Stage Register)
Reg#( Tuple2#(UInt#(32), UInt#(32)) ) dregs [17];
// 实例化这 17 个 DReg
for(int n=16; n>=0; n=n-1)
dregs[n] <- mkDReg( tuple2(0, 0) );
// 放置 16 个 rule ,每个都部署一个 sqrtIteration 函数,实现了各级流水线的计算
for(int n=15; n>=0; n=n-1)
rule pipe_stages;
dregs[n] <= sqrtIteration( dregs[n+1] , n );
endrule
// ----- sqrt 测试 --------------------------------------------------------------------------------------------------------------------------
Reg#(UInt#(32)) cnt <- mkReg(1);
rule sqrter_input;
UInt#(32) x = cnt * 10000000; // x 是待开方的数据
dregs[16] <= tuple2(x, 0); // 把 x=x, y=0 写入最前级流水段寄存器
$display("input:%d output:%d", x, tpl_2(dregs[0])); // 从流水线最末级寄存器拿出数据
cnt <= cnt + 1;
if(cnt > 40) $finish;
endrule
endmodule
endpackage | Bluespec | 5 | Xiefengshang/BSV_Tutorial_cn | src/15.Sqrt/Sqrt_v1.bsv | [
"MIT"
] |
;; Simple test of defining multiple flavors in one file.
;; We use module macro interface instead of including the macro
;; definition file.
(flavors:defflavor f1 (a b c)
(f2)
settable-instance-variables)
(flavors:defmethod (bert) (x)
(f1-local x))
(defun f1-local (x)
(tuple 'f1 x))
(flavors:endflavor f1)
(flavors:defflavor f2 (a x y)
()
settable-instance-variables
abstract-flavor)
(flavors:defmethod (sune) (x)
(f2-local x))
(defun f2-local (x)
(tuple 'f2 x))
(flavors:endflavor f2)
| LFE | 4 | rvirding/flavors | test/f-multi.lfe | [
"Apache-2.0"
] |
import React, {Component, PropTypes} from 'react'
import {Actions, Utils, FileDownloadStore} from 'nylas-exports'
import {AttachmentItem, ImageAttachmentItem} from 'nylas-component-kit'
class MessageAttachments extends Component {
static displayName = 'MessageAttachments'
static containerRequired = false
static propTypes = {
files: PropTypes.array,
downloads: PropTypes.object,
messageClientId: PropTypes.string,
filePreviewPaths: PropTypes.object,
canRemoveAttachments: PropTypes.bool,
}
static defaultProps = {
downloads: {},
filePreviewPaths: {},
}
onOpenAttachment = (file) => {
Actions.fetchAndOpenFile(file)
}
onRemoveAttachment = (file) => {
const {messageClientId} = this.props
Actions.removeFile({
file: file,
messageClientId: messageClientId,
})
}
onDownloadAttachment = (file) => {
Actions.fetchAndSaveFile(file)
}
onAbortDownload = (file) => {
Actions.abortFetchFile(file)
}
renderAttachment(AttachmentRenderer, file) {
const {canRemoveAttachments, downloads, filePreviewPaths} = this.props
const download = downloads[file.id]
const filePath = FileDownloadStore.pathForFile(file)
const fileIconName = `file-${file.displayExtension()}.png`
const displayName = file.displayName()
const displaySize = file.displayFileSize()
const contentType = file.contentType
const displayFilePreview = NylasEnv.config.get('core.attachments.displayFilePreview')
const filePreviewPath = displayFilePreview ? filePreviewPaths[file.id] : null;
return (
<AttachmentRenderer
key={file.id}
focusable
previewable
filePath={filePath}
download={download}
contentType={contentType}
displayName={displayName}
displaySize={displaySize}
fileIconName={fileIconName}
filePreviewPath={filePreviewPath}
onOpenAttachment={() => this.onOpenAttachment(file)}
onDownloadAttachment={() => this.onDownloadAttachment(file)}
onAbortDownload={() => this.onAbortDownload(file)}
onRemoveAttachment={canRemoveAttachments ? () => this.onRemoveAttachment(file) : null}
/>
)
}
render() {
const {files} = this.props;
const nonImageFiles = files.filter((f) => !Utils.shouldDisplayAsImage(f));
const imageFiles = files.filter((f) => Utils.shouldDisplayAsImage(f));
return (
<div>
{nonImageFiles.map((file) =>
this.renderAttachment(AttachmentItem, file)
)}
{imageFiles.map((file) =>
this.renderAttachment(ImageAttachmentItem, file)
)}
</div>
)
}
}
export default MessageAttachments
| JSX | 4 | cnheider/nylas-mail | packages/client-app/internal_packages/attachments/lib/message-attachments.jsx | [
"MIT"
] |
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.spark.sql.catalyst.statsEstimation
import org.apache.spark.sql.catalyst.expressions.{AttributeMap, AttributeReference}
import org.apache.spark.sql.catalyst.plans.logical
import org.apache.spark.sql.catalyst.plans.logical.{ColumnStat, Union}
import org.apache.spark.sql.types._
class UnionEstimationSuite extends StatsEstimationTestBase {
test("test row size estimation") {
val attrInt = AttributeReference("cint", IntegerType)()
val sz = Some(BigInt(1024))
val child1 = StatsTestPlan(
outputList = Seq(attrInt),
rowCount = 2,
attributeStats = AttributeMap(Nil),
size = sz)
val child2 = StatsTestPlan(
outputList = Seq(attrInt),
rowCount = 2,
attributeStats = AttributeMap(Nil),
size = sz)
val union = Union(Seq(child1, child2))
val expectedStats = logical.Statistics(sizeInBytes = 2 * 1024, rowCount = Some(4))
assert(union.stats === expectedStats)
}
test("col stats estimation") {
val sz = Some(BigInt(1024))
val attrInt = AttributeReference("cint", IntegerType)()
val attrDouble = AttributeReference("cdouble", DoubleType)()
val attrShort = AttributeReference("cshort", ShortType)()
val attrLong = AttributeReference("clong", LongType)()
val attrByte = AttributeReference("cbyte", ByteType)()
val attrFloat = AttributeReference("cfloat", FloatType)()
val attrDecimal = AttributeReference("cdecimal", DecimalType(5, 4))()
val attrDate = AttributeReference("cdate", DateType)()
val attrTimestamp = AttributeReference("ctimestamp", TimestampType)()
val s1 = 1.toShort
val s2 = 4.toShort
val b1 = 1.toByte
val b2 = 4.toByte
val columnInfo = AttributeMap(
Seq(
attrInt -> ColumnStat(
distinctCount = Some(2),
min = Some(1),
max = Some(4),
nullCount = Some(1),
avgLen = Some(4),
maxLen = Some(4)),
attrDouble -> ColumnStat(
distinctCount = Some(2),
min = Some(5.0),
max = Some(4.0),
nullCount = Some(2),
avgLen = Some(4),
maxLen = Some(4)),
attrShort -> ColumnStat(min = Some(s1), max = Some(s2)),
attrLong -> ColumnStat(min = Some(1L), max = Some(4L)),
attrByte -> ColumnStat(min = Some(b1), max = Some(b2)),
attrFloat -> ColumnStat(min = Some(1.1f), max = Some(4.1f)),
attrDecimal -> ColumnStat(min = Some(Decimal(13.5)), max = Some(Decimal(19.5))),
attrDate -> ColumnStat(min = Some(1), max = Some(4)),
attrTimestamp -> ColumnStat(min = Some(1L), max = Some(4L))))
val s3 = 2.toShort
val s4 = 6.toShort
val b3 = 2.toByte
val b4 = 6.toByte
val columnInfo1: AttributeMap[ColumnStat] = AttributeMap(
Seq(
AttributeReference("cint1", IntegerType)() -> ColumnStat(
distinctCount = Some(2),
min = Some(3),
max = Some(6),
nullCount = Some(1),
avgLen = Some(8),
maxLen = Some(8)),
AttributeReference("cdouble1", DoubleType)() -> ColumnStat(
distinctCount = Some(2),
min = Some(2.0),
max = Some(7.0),
nullCount = Some(2),
avgLen = Some(8),
maxLen = Some(8)),
AttributeReference("cshort1", ShortType)() -> ColumnStat(min = Some(s3), max = Some(s4)),
AttributeReference("clong1", LongType)() -> ColumnStat(min = Some(2L), max = Some(6L)),
AttributeReference("cbyte1", ByteType)() -> ColumnStat(min = Some(b3), max = Some(b4)),
AttributeReference("cfloat1", FloatType)() -> ColumnStat(
min = Some(2.2f),
max = Some(6.1f)),
AttributeReference("cdecimal1", DecimalType(5, 4))() -> ColumnStat(
min = Some(Decimal(14.5)),
max = Some(Decimal(19.9))),
AttributeReference("cdate1", DateType)() -> ColumnStat(min = Some(3), max = Some(6)),
AttributeReference("ctimestamp1", TimestampType)() -> ColumnStat(
min = Some(3L),
max = Some(6L))))
val child1 = StatsTestPlan(
outputList = columnInfo.keys.toSeq.sortWith(_.exprId.id < _.exprId.id),
rowCount = 2,
attributeStats = columnInfo,
size = sz)
val child2 = StatsTestPlan(
outputList = columnInfo1.keys.toSeq.sortWith(_.exprId.id < _.exprId.id),
rowCount = 2,
attributeStats = columnInfo1,
size = sz)
val union = Union(Seq(child1, child2))
val expectedStats = logical.Statistics(
sizeInBytes = 2 * 1024,
rowCount = Some(4),
attributeStats = AttributeMap(
Seq(
attrInt -> ColumnStat(min = Some(1), max = Some(6), nullCount = Some(2)),
attrDouble -> ColumnStat(min = Some(2.0), max = Some(7.0), nullCount = Some(4)),
attrShort -> ColumnStat(min = Some(s1), max = Some(s4)),
attrLong -> ColumnStat(min = Some(1L), max = Some(6L)),
attrByte -> ColumnStat(min = Some(b1), max = Some(b4)),
attrFloat -> ColumnStat(min = Some(1.1f), max = Some(6.1f)),
attrDecimal -> ColumnStat(min = Some(Decimal(13.5)), max = Some(Decimal(19.9))),
attrDate -> ColumnStat(min = Some(1), max = Some(6)),
attrTimestamp -> ColumnStat(min = Some(1L), max = Some(6L)))))
assert(union.stats === expectedStats)
}
test("col stats estimation when min max stats not present for one child") {
val sz = Some(BigInt(1024))
val attrInt = AttributeReference("cint", IntegerType)()
val columnInfo = AttributeMap(
Seq(
attrInt -> ColumnStat(
distinctCount = Some(2),
min = Some(2),
max = Some(2),
nullCount = Some(0),
avgLen = Some(4),
maxLen = Some(4))))
val columnInfo1 = AttributeMap(
Seq(
AttributeReference("cint1", IntegerType)() -> ColumnStat(
distinctCount = Some(2),
nullCount = Some(0),
avgLen = Some(8),
maxLen = Some(8))))
val child1 = StatsTestPlan(
outputList = columnInfo.keys.toSeq,
rowCount = 2,
attributeStats = columnInfo,
size = sz)
val child2 = StatsTestPlan(
outputList = columnInfo1.keys.toSeq,
rowCount = 2,
attributeStats = columnInfo1,
size = sz)
val union = Union(Seq(child1, child2))
// Only null count is present in the attribute stats
val expectedStats = logical.Statistics(
sizeInBytes = 2 * 1024,
rowCount = Some(4),
attributeStats = AttributeMap(
Seq(attrInt -> ColumnStat(nullCount = Some(0)))))
assert(union.stats === expectedStats)
}
test("col stats estimation when null count stats are not present for one child") {
val sz = Some(BigInt(1024))
val attrInt = AttributeReference("cint", IntegerType)()
val columnInfo = AttributeMap(
Seq(
attrInt -> ColumnStat(
distinctCount = Some(2),
min = Some(1),
max = Some(2),
nullCount = Some(2),
avgLen = Some(4),
maxLen = Some(4))))
// No null count
val columnInfo1 = AttributeMap(
Seq(
AttributeReference("cint1", IntegerType)() -> ColumnStat(
distinctCount = Some(2),
min = Some(3),
max = Some(4),
avgLen = Some(8),
maxLen = Some(8))))
val child1 = StatsTestPlan(
outputList = columnInfo.keys.toSeq,
rowCount = 2,
attributeStats = columnInfo,
size = sz)
val child2 = StatsTestPlan(
outputList = columnInfo1.keys.toSeq,
rowCount = 2,
attributeStats = columnInfo1,
size = sz)
val union = Union(Seq(child1, child2))
// Null count should not present in the stats.
val expectedStats = logical.Statistics(
sizeInBytes = 2 * 1024,
rowCount = Some(4),
attributeStats = AttributeMap(
Seq(attrInt -> ColumnStat(min = Some(1), max = Some(4), nullCount = None))))
assert(union.stats === expectedStats)
}
}
| Scala | 5 | akhalymon-cv/spark | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/statsEstimation/UnionEstimationSuite.scala | [
"Apache-2.0"
] |
'reach 0.1';
const testIntervalEq = () => {
assert(intervalEq( intervalOO(+1, +1), intervalOO(+1, +1) ));
assert(intervalEq( intervalCC(+1, +1), intervalCC(+1, +1) ));
}
const testIntervalLt = () => {
assert(intervalLt( intervalOO(+1, +2), intervalOO(+3, +5) ));
assert(intervalLt( intervalCC(+1, +2), intervalCC(+3, +5) ));
}
const testIntersect = () => {
const i1 = intervalOO(+3, +11);
const i2 = intervalCC(+7, +9);
const ii = intervalCO(+7, +11);
assert(intervalIntersection(i1, i2) == ii);
}
const testUnion = () => {
const i1 = intervalOO(+3, +9);
const i2 = intervalCC(+7, +11);
const iu = intervalOC(+3, +11);
assert(intervalUnion(i1, i2) == iu);
}
const testWidth = () => {
const i = intervalOO(+4, +45);
assert(intervalWidth(i) == +41);
}
const testAbs = () => {
const i = intervalCC(+1, +10);
assert(intervalAbs(i) == +10);
}
const testAdd = () => {
const i1 = intervalCC(+3, +1);
const i2 = intervalCC(+43, +14);
const ex = intervalCC(+46, +15);
assert(intervalAdd(i1, i2) == ex);
}
const testSub = () => {
const i1 = intervalCC(+30, +18);
const i2 = intervalCC(+15, +4);
const ex = intervalCC(+26, +3);
assert(intervalSub(i1, i2) == ex);
}
const testMul = () => {
const i1 = intervalCC(+2, +4);
const i2 = intervalCC(+8, +12);
const ex = intervalCC(+16, +48);
assert(intervalMul(i1, i2) == ex);
}
const testDiv = () => {
const i1 = intervalCC(+24, +12);
const i2 = intervalCC(+6, +3);
const ex = intervalCC(+2, +8);
assert(intervalDiv(i1, i2) == ex);
}
export const main =
Reach.App(
{},
[Participant('A', {})],
(A) => {
testIntervalEq();
testIntervalLt();
testIntersect();
testUnion();
testWidth();
testAbs();
testAdd();
testSub();
testMul();
testDiv();
});
| RenderScript | 4 | chikeabuah/reach-lang | hs/t/y/intervals.rsh | [
"Apache-2.0"
] |
//SPDX-License-Identifier: MIT
pragma solidity ^0.5.0;
contract Version5Pragma {
uint x;
constructor() public {
x = 5;
}
}
| Solidity | 3 | santanaluiz/truffle | packages/compile-solidity/test/sources/v0.5.x/Version5Pragma.sol | [
"MIT"
] |
a { color: #ABBBCC } | CSS | 2 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/CQiowK9DjojqKtlpQifemA/input.css | [
"Apache-2.0",
"MIT"
] |
/*
Copyright (c) 2014 by Contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package ml.dmlc.xgboost4j.scala.rabit.util
import java.nio.{ByteOrder, ByteBuffer}
import akka.util.ByteString
private[rabit] object RabitTrackerHelpers {
implicit class ByteStringHelplers(bs: ByteString) {
// Java by default uses big endian. Enforce native endian so that
// the byte order is consistent with the workers.
def asNativeOrderByteBuffer: ByteBuffer = {
bs.asByteBuffer.order(ByteOrder.nativeOrder())
}
}
implicit class ByteBufferHelpers(buf: ByteBuffer) {
def getString: String = {
val len = buf.getInt()
val stringBuffer = ByteBuffer.allocate(len).order(ByteOrder.nativeOrder())
buf.get(stringBuffer.array(), 0, len)
new String(stringBuffer.array(), "utf-8")
}
}
}
| Scala | 4 | puneetjain-iclp/xgboost | jvm-packages/xgboost4j/src/main/scala/ml/dmlc/xgboost4j/scala/rabit/util/RabitTrackerHelpers.scala | [
"Apache-2.0"
] |
demo.string.value=demo
| INI | 0 | Martin-real/spring-boot-2.1.0.RELEASE | spring-boot-samples/spring-boot-sample-war/src/main/webapp/WEB-INF/custom.properties | [
"Apache-2.0"
] |
object_relationships:
- name: option
using:
manual_configuration:
column_mapping:
option_id: id
remote_table:
name: option
schema: public
- name: poll
using:
manual_configuration:
column_mapping:
poll_id: id
remote_table:
name: poll
schema: public
table:
name: poll_results
schema: public
| YAML | 3 | gh-oss-contributor/graphql-engine-1 | community/sample-apps/realtime-poll/hasura/metadata/databases/default/tables/public_poll_results.yaml | [
"Apache-2.0",
"MIT"
] |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
#include "pch.h"
#include "LanguageProfileNotifier.h"
using namespace winrt::TerminalApp::implementation;
LanguageProfileNotifier::LanguageProfileNotifier(std::function<void()>&& callback) :
_callback{ std::move(callback) },
_currentKeyboardLayout{ GetKeyboardLayout(0) }
{
const auto manager = wil::CoCreateInstance<ITfThreadMgr>(CLSID_TF_ThreadMgr);
_source = manager.query<ITfSource>();
if (FAILED(_source->AdviseSink(IID_ITfInputProcessorProfileActivationSink, static_cast<ITfInputProcessorProfileActivationSink*>(this), &_cookie)))
{
_cookie = TF_INVALID_COOKIE;
THROW_LAST_ERROR();
}
}
LanguageProfileNotifier::~LanguageProfileNotifier()
{
if (_cookie != TF_INVALID_COOKIE)
{
_source->UnadviseSink(_cookie);
}
}
STDMETHODIMP LanguageProfileNotifier::OnActivated(DWORD /*dwProfileType*/, LANGID /*langid*/, REFCLSID /*clsid*/, REFGUID /*catid*/, REFGUID /*guidProfile*/, HKL hkl, DWORD /*dwFlags*/)
{
if (hkl && hkl != _currentKeyboardLayout)
{
_currentKeyboardLayout = hkl;
try
{
_callback();
}
CATCH_RETURN();
}
return S_OK;
}
| C++ | 4 | rasc0l/terminal | src/cascadia/TerminalApp/LanguageProfileNotifier.cpp | [
"MIT"
] |
#ifdef ECERE_STATIC
public import static "ecere"
#else
public import "ecere"
#endif
enum KeywordType { regular, preprocessor };
class SyntaxColorScheme
{
public:
Color commentColor;
Color charLiteralColor;
Color stringLiteralColor;
Color preprocessorColor;
Color numberColor;
Color typeColor;
Color defColor;
Color fnColor;
commentColor = dimGray;
charLiteralColor = crimson;
stringLiteralColor = crimson;
preprocessorColor = green;
numberColor = teal;
property::keywordColors = [ blue, blue ];
typeColor = 0x15CE4C;
defColor = 0xFFCE7A;
fnColor = 0x9CB7FF;
private Array<Color> keywordColors { }; // For each KeywordType
public property Container<Color> keywordColors
{
set
{
keywordColors.Copy((void *)value);
// JSON/ECON Parser expects we'll hang on to this... Better solution with improved ref counting model?
if(value && value._class != class(BuiltInContainer) && !value._refCount)
delete value;
}
get { return keywordColors; }
}
};
| eC | 4 | mingodad/ecere-sdk | ide/src/designer/SyntaxColorScheme.ec | [
"BSD-3-Clause"
] |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/css/ink.css">
<link rel="stylesheet" href="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/css/styles.css">
<style type="text/css">
@media only screen and (max-width: 600px){
table[class=body] img{
width:auto !important;
height:auto !important;
}
} @media only screen and (max-width: 600px){
table[class=body] center{
min-width:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .container{
width:95% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .row{
width:100% !important;
display:block !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .wrapper{
display:block !important;
padding-right:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns,table[class=body] .column{
table-layout:fixed !important;
float:none !important;
width:100% !important;
padding-right:0px !important;
padding-left:0px !important;
display:block !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .wrapper.first .columns,table[class=body] .wrapper.first .column{
display:table !important;
}
} @media only screen and (max-width: 600px){
table[class=body] table.columns td,table[class=body] table.column td{
width:100% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.one,table[class=body] .column td.one{
width:8.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.two,table[class=body] .column td.two{
width:16.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.three,table[class=body] .column td.three{
width:25% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.four,table[class=body] .column td.four{
width:33.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.five,table[class=body] .column td.five{
width:41.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.six,table[class=body] .column td.six{
width:50% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.seven,table[class=body] .column td.seven{
width:58.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.eight,table[class=body] .column td.eight{
width:66.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.nine,table[class=body] .column td.nine{
width:75% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.ten,table[class=body] .column td.ten{
width:83.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.eleven,table[class=body] .column td.eleven{
width:91.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.twelve,table[class=body] .column td.twelve{
width:100% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] td.offset-by-one,table[class=body] td.offset-by-two,table[class=body] td.offset-by-three,table[class=body] td.offset-by-four,table[class=body] td.offset-by-five,table[class=body] td.offset-by-six,table[class=body] td.offset-by-seven,table[class=body] td.offset-by-eight,table[class=body] td.offset-by-nine,table[class=body] td.offset-by-ten,table[class=body] td.offset-by-eleven{
padding-left:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] table.columns td.expander{
width:1px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .right-text-pad,table[class=body] .text-pad-right{
padding-left:10px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .left-text-pad,table[class=body] .text-pad-left{
padding-right:10px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .hide-for-small,table[class=body] .show-for-desktop{
display:none !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .show-for-small,table[class=body] .hide-for-desktop{
display:inherit !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .row.footer .wrapper .seven.column,table[class=body] .row.footer .wrapper .five.column.last{
width:90% !important;
padding-left:10px !important;
padding-right:10px !important;
}
}</style></head>
<body style="width: 100% !important;min-width: 100%;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;margin: 0;padding: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;text-align: left;line-height: 19px;font-size: 14px;">
<table class="body" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;height: 100%;width: 100%;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="center" align="center" valign="top" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: center;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<center style="width: 100%; min-width: 580px;">
<!-- Email Content START -->
<table class="row header" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="center" align="center" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: center;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<center style="width: 100%; min-width: 580px;">
<table class="container" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: inherit;width: 580px;margin: 0 auto;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;padding-top: 0px;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;padding-bottom: 0px;">
<tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;padding-bottom: 0px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=b9e275f098&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;">
<img src="http://mta.mit.edu/sites/default/files/public/styles/600x210/public/mit_newsletter_header_image/collierheader_0.jpg" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr>
<tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns sub-header" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;padding-bottom: 0px;">
<div class="date" style="background: #ed1c24; text-align: center; text-transform: uppercase; padding: 10px; color: white; font-weight: bold; font-size: 16px;">Upcoming Events</div>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr>
</table>
</td>
</tr></table>
</center>
</td>
</tr></table>
<table class="container" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: inherit;width: 580px;margin: 0 auto;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<table class="row" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;padding-right: 0px;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="welcome-wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;padding-bottom: 0px;">
<div class="welcome-text" style="margin: 5px 5px 0px 5px; padding: 5px 5px 14px 5px; border-bottom: 1px solid #cfd2d4;">
</div>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr></table>
<table class="row" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;">
<tr class="item node-post post-nid-5434" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=8b1591aed3&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/jacobcollier09_web.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 07, 2016<span style="font-weight: normal;"> | </span>5:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=7f32b83c84&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Jacob Collier</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">The Creative Process of Jacob Collier</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
This lecture demonstration by Jacob Collier will provide insight into his unique creative process. Collier will join the MIT Festival Jazz... <a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=203f900ada&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=54357f88c1&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">MIT Lecture Hall, 6-120</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;">Reservations not required</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5292" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=d4bea63f2f&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/ams_0.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 07, 2016<span style="font-weight: normal;"> | </span>5:15pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=b0a150ad63&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">COSMOGONY AND MUSIC</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">The Banquet Song of Iopas in Virgil's Aeneid</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
MIT's Ancient & Medieval Studies Colloquium Series presents:
Cosmogony and Music, The Banquet Song of Iopas in Virgil's Aeneid.
Evan MacCarthy... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=12c6c02097&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="whereis.mit.edu" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">MIT Rm. 14E-304</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5438" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=71338cec11&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/mat_logo.png" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 10, 2016<span style="font-weight: normal;"> | </span>6:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=d584ac0e9a&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">MAT Confessions: #Thisis2016</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">Asian American Theater, 21M.846/847</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
A performance by 20 students in Claire Conceison's Asian American Theater class, composed from their own journal writings, inspired by their... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=fac3f9cd37&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;">Rehearsal Room A, Kresge Auditorium</span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5300" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=adf65a1196&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/jc.thumbnail_0.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 10, 2016<span style="font-weight: normal;"> | </span>8:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=60cc84b632&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Jacob Collier: Imagination Off The Charts</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">a collaborative performance with FJE</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
A concert featuring musical phenom Jacob Collier, MIT Visiting Artist
Who is Jacob Collier?
Hailed by The Guardian as “Jazz’s New... <a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=41b616b433&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=fad94c9deb&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Kresge Auditorium</a></span> | <span style="font-weight: bold;">$5</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=b1dacd94fc&e=46b88902b8" target="_blank" style="color: rgb(237, 28, 36) !important; text-decoration: underline; font-weight: bold; font-size: 12px;">Reserve a Seat</a></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5372" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=e0e7374068&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/mit-mta-deveau-10-18-16-3.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">From 12/11 to 12/14; times vary</p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=b7a7a319f8&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">MIT Chamber Music Society</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">Student Concert Series</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
DECEMBER 11, 3PM
SMETANA String Quartet No. 1, "From My Life"
Lisa Kong '18, violin; Michelle Noh '18, violin; Aria Shi '18, viola; Courtney Guo... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=42d8050eed&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=fedc2465c3&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Killian Hall</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;">Reservations not required</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5287" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=f22419ea7c&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/snowflakes.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 13, 2016<span style="font-weight: normal;"> | </span>7:30pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=375d0806b6&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Holiday Pops Concert</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">MITSOLite, Adam Boyles, director</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
This concert will feature holiday season music including: Praetorius/arr. Treybig, In dulci jubilo, Morton Gould, It came upon a midnight clear;... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=4f88922d9c&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=02dd1ca873&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Kresge Auditorium</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="last node-post post-nid-5439" style="border-bottom: none;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=94b8c3f626&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/beethoven.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 17, 2016<span style="font-weight: normal;"> | </span>8:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=cef0f548c2&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Pathos Ensemble</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">MIT Student Chamber Orchestra</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
Beethoven's Symphony No. 3 will be performed by a student chamber orchestra conducted by MIT graduate student Dominique Hoskin.
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=16ee20a53e&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=a63cabae3c&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Kresge Auditorium</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
</table>
<table class="row footer" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 30px 0px 10px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;background: #606a71;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="seven column" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 58.333333%;padding-left: 10px;">
<p class="footer-logo-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 12px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/footer_logo.png" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: none; clear: both; display: block; margin-left: 5px;"></p>
<p class="copyright-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 17px;">Copyright © 2015 MIT Music and Theater Arts,<br> All rig hts reserved.</p>
<p class="address-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 18px;font-size: 13px;margin-bottom: 10px;"><strong>MIT Music and Theater Arts</strong><br>
77 Massachusetts Avenue 4-243<br>
Cambridge, Massachusetts 02139<br><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=1f365a5a91&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">Campus map</a> | <a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=68404bf123&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">Parking</a>
</p>
</td>
<td class="five column last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;padding-right: 10px;width: 41.666666%;padding-left: 0px;">
<p style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 10px;">You are receiving this email because you have requested to receive the MIT Music and Theater Arts Calendar of Events.</p>
<p class="links-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 3px;margin-top: 15px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=edf051bcb9&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">add us to your address book</a><br><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=65659ae644&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">unsubscribe from this list</a><br><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=2fbcd2f88d&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">forward to a friend</a>
</p>
<p class="follow-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 10px;margin-top: 13px;">
<span style="display: inline-block; margin-top: 2px; vertical-align: middle;">Follow MTA</span>
<a class="twitter-link" href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=e3e5120754&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; display: inline-block; width: 26px; height: 26px; vertical-align: middle; margin-left: 20px; font-size: 13px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/twitter_logo.png" alt="twitter" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
<a class="facebook-link" href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=6b7ae0bd6f&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; display: inline-block; width: 26px; height: 26px; vertical-align: middle; margin-left: 20px; font-size: 13px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/facebook_logo.png" alt="facebook" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr></table>
<!-- container end below -->
</td>
</tr></table>
<!-- Email Content END -->
</center>
</td>
</tr></table>
<center>
<br />
<br />
<br />
<br />
<br />
<br />
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="canspamBarWrapper" style="background-color:#FFFFFF; border-top:1px solid #E5E5E5;">
<tr>
<td align="center" valign="top" style="padding-top:20px; padding-bottom:20px;">
<table border="0" cellpadding="0" cellspacing="0" id="canspamBar">
<tr>
<td align="center" valign="top" style="color:#606060; font-family:Helvetica, Arial, sans-serif; font-size:11px; line-height:150%; padding-right:20px; padding-bottom:5px; padding-left:20px; text-align:center;">
This email was sent to <a href="mailto:[email protected]" target="_blank" style="color:#404040 !important;">[email protected]</a>
<br />
<a href="http://mit.us2.list-manage.com/about?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8&c=e75824be34" target="_blank" style="color:#404040 !important;"><em>why did I get this?</em></a> <a href="http://mit.us2.list-manage1.com/unsubscribe?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8&c=e75824be34" style="color:#404040 !important;">unsubscribe from this list</a> <a href="http://mit.us2.list-manage1.com/profile?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8" style="color:#404040 !important;">update subscription preferences</a>
<br />
MIT Music and Theater Arts · 77 Massachusetts Avenue · 4-243 · Cambridge, Massachusetts 02139 · USA
<br />
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
<style type="text/css">
@media only screen and (max-width: 480px){
table#canspamBar td{font-size:14px !important;}
table#canspamBar td a{display:block !important; margin-top:10px !important;}
}
</style>
</center><img src="http://mit.us2.list-manage.com/track/open.php?u=9a8caadec06a0edf712df1a5e&id=e75824be34&e=46b88902b8" height="1" width="1"></body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/css/ink.css">
<link rel="stylesheet" href="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/css/styles.css">
<style type="text/css">
@media only screen and (max-width: 600px){
table[class=body] img{
width:auto !important;
height:auto !important;
}
} @media only screen and (max-width: 600px){
table[class=body] center{
min-width:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .container{
width:95% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .row{
width:100% !important;
display:block !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .wrapper{
display:block !important;
padding-right:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns,table[class=body] .column{
table-layout:fixed !important;
float:none !important;
width:100% !important;
padding-right:0px !important;
padding-left:0px !important;
display:block !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .wrapper.first .columns,table[class=body] .wrapper.first .column{
display:table !important;
}
} @media only screen and (max-width: 600px){
table[class=body] table.columns td,table[class=body] table.column td{
width:100% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.one,table[class=body] .column td.one{
width:8.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.two,table[class=body] .column td.two{
width:16.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.three,table[class=body] .column td.three{
width:25% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.four,table[class=body] .column td.four{
width:33.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.five,table[class=body] .column td.five{
width:41.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.six,table[class=body] .column td.six{
width:50% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.seven,table[class=body] .column td.seven{
width:58.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.eight,table[class=body] .column td.eight{
width:66.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.nine,table[class=body] .column td.nine{
width:75% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.ten,table[class=body] .column td.ten{
width:83.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.eleven,table[class=body] .column td.eleven{
width:91.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.twelve,table[class=body] .column td.twelve{
width:100% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] td.offset-by-one,table[class=body] td.offset-by-two,table[class=body] td.offset-by-three,table[class=body] td.offset-by-four,table[class=body] td.offset-by-five,table[class=body] td.offset-by-six,table[class=body] td.offset-by-seven,table[class=body] td.offset-by-eight,table[class=body] td.offset-by-nine,table[class=body] td.offset-by-ten,table[class=body] td.offset-by-eleven{
padding-left:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] table.columns td.expander{
width:1px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .right-text-pad,table[class=body] .text-pad-right{
padding-left:10px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .left-text-pad,table[class=body] .text-pad-left{
padding-right:10px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .hide-for-small,table[class=body] .show-for-desktop{
display:none !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .show-for-small,table[class=body] .hide-for-desktop{
display:inherit !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .row.footer .wrapper .seven.column,table[class=body] .row.footer .wrapper .five.column.last{
width:90% !important;
padding-left:10px !important;
padding-right:10px !important;
}
}</style></head>
<body style="width: 100% !important;min-width: 100%;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;margin: 0;padding: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;text-align: left;line-height: 19px;font-size: 14px;">
<table class="body" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;height: 100%;width: 100%;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="center" align="center" valign="top" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: center;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<center style="width: 100%; min-width: 580px;">
<!-- Email Content START -->
<table class="row header" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="center" align="center" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: center;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<center style="width: 100%; min-width: 580px;">
<table class="container" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: inherit;width: 580px;margin: 0 auto;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;padding-top: 0px;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;padding-bottom: 0px;">
<tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;padding-bottom: 0px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=ce81b0e66e&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;">
<img src="http://mta.mit.edu/sites/default/files/public/styles/600x210/public/mit_newsletter_header_image/sumieheader.jpg" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr>
<tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns sub-header" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;padding-bottom: 0px;">
<div class="date" style="background: #ed1c24; text-align: center; text-transform: uppercase; padding: 10px; color: white; font-weight: bold; font-size: 16px;">Upcoming Events</div>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr>
</table>
</td>
</tr></table>
</center>
</td>
</tr></table>
<table class="container" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: inherit;width: 580px;margin: 0 auto;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<table class="row" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;padding-right: 0px;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="welcome-wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;padding-bottom: 0px;">
<div class="welcome-text" style="margin: 5px 5px 0px 5px; padding: 5px 5px 14px 5px; border-bottom: 1px solid #cfd2d4;">
</div>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr></table>
<table class="row" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;">
<tr class="item node-post post-nid-5398" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=d37e232bd7&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/guitar.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">November 29, 2016<span style="font-weight: normal;"> | </span>8:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=5a920b9f64&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">CMS Jazz Combos Concert</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">Keala Kaumeheiwa, coach</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
The MIT Chamber Music Society Jazz Combos Concert Program will include:
Fascinating Rhythm - George & Ira Gershwin
Dizzy Moods - Charles... <a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=15e2e3b314&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=2675cbf116&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Killian Hall</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;">Reservations not required</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5284" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=9cd866ac27&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/kaneko.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 01, 2016<span style="font-weight: normal;"> | </span>5:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=1c6ced6686&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">MTA Composer Forum: Sumie Kaneko</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;"></p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
Japanese Koto and Shamisen player and jazz singer/songwriter Sumie (Sumi-é) Kaneko is known for her fusion of jazz with her Japanese roots. ... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=06c592400e&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=c817b6c2cb&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Lewis Music Library, 14E-109</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;">Reservations not required</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5285" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=24e45e3a54&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/prism_0.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 02, 2016<span style="font-weight: normal;"> | </span>8:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=f301bc8c61&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">MIT Wind Ensemble</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">Prism II: Concert </p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
The Second Annual Prism Concert Spectacular, a concert by the MIT Wind Ensemble, Frederick Harris, Jr. Music Director; Kenneth Amis, Assistant... <a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=8a7604d0ec&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=c0bfd71ea2&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Kresge Auditorium</a></span> | <span style="font-weight: bold;">$5</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=f4b23ca5be&e=46b88902b8" target="_blank" style="color: rgb(237, 28, 36) !important; text-decoration: underline; font-weight: bold; font-size: 12px;">Reserve a Seat</a></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5286" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=6c5ac1365d&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/gamelan_0.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 03, 2016<span style="font-weight: normal;"> | </span>4:30pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=b7d9eb62dd&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Gamelan Galak Tika</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">WORLD MUSIC DAY</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
A showcase of MIT's world music ensembles and their non-western cultures, World Music Day begins with a 4:30pm Concert by MIT Gamelan Galak Tika in... <a href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=b92cde5365&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=13f5533343&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Kresge Auditorium</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5288" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=ce83e477eb&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/lamine_2.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 03, 2016<span style="font-weight: normal;"> | </span>7:30pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=a2ce625395&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Rambax, Senegalese Drumming Ensemble</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">WORLD MUSIC DAY</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
This Rambax performance under the direction of Lamine Touré is part of MIT World Music Day, a showcase of MIT's World Music ensembles and celebration... <a href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=f7bce5003d&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=b72741bc92&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Lobdell, MIT Student Center</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;">Reservations not required</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5289" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=4f4e3d84dd&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/daviddeveau.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 04, 2016<span style="font-weight: normal;"> | </span>4:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=33c8e61d2e&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Pianist David Deveau</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">Schubert Sonatas</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
Deveau's all-Schubert program will include: Sonata in A major, D.959 and Sonata in B-flat major, D. 960.
Program Note
Franz Schubert (... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=cb08810f98&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=43c8c3e8d7&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Kresge Auditorium</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;">Reservations not required</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="last node-post post-nid-5292" style="border-bottom: none;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=0ed0889c47&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/ams_0.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">December 07, 2016<span style="font-weight: normal;"> | </span>5:15pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=ec1a412a2c&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">COSMOGONY AND MUSIC</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">The Banquet Song of Iopas in Virgil's Aeneid</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
MIT's Ancient & Medieval Studies Colloquium Series presents:
Cosmogony and Music, The Banquet Song of Iopas in Virgil's Aeneid.
Evan MacCarthy... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=a1aa4f71dc&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="whereis.mit.edu" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">MIT Rm. 14E-304</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
</table>
<table class="row footer" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 30px 0px 10px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;background: #606a71;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="seven column" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 58.333333%;padding-left: 10px;">
<p class="footer-logo-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 12px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/footer_logo.png" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: none; clear: both; display: block; margin-left: 5px;"></p>
<p class="copyright-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 17px;">Copyright © 2015 MIT Music and Theater Arts,<br> All rig hts reserved.</p>
<p class="address-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 18px;font-size: 13px;margin-bottom: 10px;"><strong>MIT Music and Theater Arts</strong><br>
77 Massachusetts Avenue 4-243<br>
Cambridge, Massachusetts 02139<br><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=bcec305433&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">Campus map</a> | <a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=b42f1c8844&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">Parking</a>
</p>
</td>
<td class="five column last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;padding-right: 10px;width: 41.666666%;padding-left: 0px;">
<p style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 10px;">You are receiving this email because you have requested to receive the MIT Music and Theater Arts Calendar of Events.</p>
<p class="links-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 3px;margin-top: 15px;">
<a href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=fd09fccee9&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">add us to your address book</a><br><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=617a026974&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">unsubscribe from this list</a><br><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=1400e5d550&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">forward to a friend</a>
</p>
<p class="follow-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 10px;margin-top: 13px;">
<span style="display: inline-block; margin-top: 2px; vertical-align: middle;">Follow MTA</span>
<a class="twitter-link" href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=43c4454aaf&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; display: inline-block; width: 26px; height: 26px; vertical-align: middle; margin-left: 20px; font-size: 13px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/twitter_logo.png" alt="twitter" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
<a class="facebook-link" href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=ef70b5b5bf&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; display: inline-block; width: 26px; height: 26px; vertical-align: middle; margin-left: 20px; font-size: 13px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/facebook_logo.png" alt="facebook" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr></table>
<!-- container end below -->
</td>
</tr></table>
<!-- Email Content END -->
</center>
</td>
</tr></table>
<center>
<br />
<br />
<br />
<br />
<br />
<br />
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="canspamBarWrapper" style="background-color:#FFFFFF; border-top:1px solid #E5E5E5;">
<tr>
<td align="center" valign="top" style="padding-top:20px; padding-bottom:20px;">
<table border="0" cellpadding="0" cellspacing="0" id="canspamBar">
<tr>
<td align="center" valign="top" style="color:#606060; font-family:Helvetica, Arial, sans-serif; font-size:11px; line-height:150%; padding-right:20px; padding-bottom:5px; padding-left:20px; text-align:center;">
This email was sent to <a href="mailto:[email protected]" target="_blank" style="color:#404040 !important;">[email protected]</a>
<br />
<a href="http://mit.us2.list-manage.com/about?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8&c=4567355d2a" target="_blank" style="color:#404040 !important;"><em>why did I get this?</em></a> <a href="http://mit.us2.list-manage1.com/unsubscribe?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8&c=4567355d2a" style="color:#404040 !important;">unsubscribe from this list</a> <a href="http://mit.us2.list-manage1.com/profile?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8" style="color:#404040 !important;">update subscription preferences</a>
<br />
MIT Music and Theater Arts · 77 Massachusetts Avenue · 4-243 · Cambridge, Massachusetts 02139 · USA
<br />
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
<style type="text/css">
@media only screen and (max-width: 480px){
table#canspamBar td{font-size:14px !important;}
table#canspamBar td a{display:block !important; margin-top:10px !important;}
}
</style>
</center><img src="http://mit.us2.list-manage.com/track/open.php?u=9a8caadec06a0edf712df1a5e&id=4567355d2a&e=46b88902b8" height="1" width="1"></body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/css/ink.css">
<link rel="stylesheet" href="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/css/styles.css">
<style type="text/css">
@media only screen and (max-width: 600px){
table[class=body] img{
width:auto !important;
height:auto !important;
}
} @media only screen and (max-width: 600px){
table[class=body] center{
min-width:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .container{
width:95% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .row{
width:100% !important;
display:block !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .wrapper{
display:block !important;
padding-right:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns,table[class=body] .column{
table-layout:fixed !important;
float:none !important;
width:100% !important;
padding-right:0px !important;
padding-left:0px !important;
display:block !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .wrapper.first .columns,table[class=body] .wrapper.first .column{
display:table !important;
}
} @media only screen and (max-width: 600px){
table[class=body] table.columns td,table[class=body] table.column td{
width:100% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.one,table[class=body] .column td.one{
width:8.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.two,table[class=body] .column td.two{
width:16.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.three,table[class=body] .column td.three{
width:25% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.four,table[class=body] .column td.four{
width:33.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.five,table[class=body] .column td.five{
width:41.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.six,table[class=body] .column td.six{
width:50% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.seven,table[class=body] .column td.seven{
width:58.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.eight,table[class=body] .column td.eight{
width:66.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.nine,table[class=body] .column td.nine{
width:75% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.ten,table[class=body] .column td.ten{
width:83.333333% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.eleven,table[class=body] .column td.eleven{
width:91.666666% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .columns td.twelve,table[class=body] .column td.twelve{
width:100% !important;
}
} @media only screen and (max-width: 600px){
table[class=body] td.offset-by-one,table[class=body] td.offset-by-two,table[class=body] td.offset-by-three,table[class=body] td.offset-by-four,table[class=body] td.offset-by-five,table[class=body] td.offset-by-six,table[class=body] td.offset-by-seven,table[class=body] td.offset-by-eight,table[class=body] td.offset-by-nine,table[class=body] td.offset-by-ten,table[class=body] td.offset-by-eleven{
padding-left:0 !important;
}
} @media only screen and (max-width: 600px){
table[class=body] table.columns td.expander{
width:1px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .right-text-pad,table[class=body] .text-pad-right{
padding-left:10px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .left-text-pad,table[class=body] .text-pad-left{
padding-right:10px !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .hide-for-small,table[class=body] .show-for-desktop{
display:none !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .show-for-small,table[class=body] .hide-for-desktop{
display:inherit !important;
}
} @media only screen and (max-width: 600px){
table[class=body] .row.footer .wrapper .seven.column,table[class=body] .row.footer .wrapper .five.column.last{
width:90% !important;
padding-left:10px !important;
padding-right:10px !important;
}
}</style></head>
<body style="width: 100% !important;min-width: 100%;-webkit-text-size-adjust: 100%;-ms-text-size-adjust: 100%;margin: 0;padding: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;text-align: left;line-height: 19px;font-size: 14px;">
<table class="body" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;height: 100%;width: 100%;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="center" align="center" valign="top" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: center;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<center style="width: 100%; min-width: 580px;">
<!-- Email Content START -->
<table class="row header" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="center" align="center" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: center;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<center style="width: 100%; min-width: 580px;">
<table class="container" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: inherit;width: 580px;margin: 0 auto;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;padding-top: 0px;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;padding-bottom: 0px;">
<tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;padding-bottom: 0px;">
<a href="http://mit.us2.list-manage2.com/track/click?u=9a8caadec06a0edf712df1a5e&id=17f378c63c&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;">
<img src="http://mta.mit.edu/sites/default/files/public/styles/600x210/public/mit_newsletter_header_image/bassplayerheader_1.jpg" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr>
<tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns sub-header" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;padding-bottom: 0px;">
<div class="date" style="background: #ed1c24; text-align: center; text-transform: uppercase; padding: 10px; color: white; font-weight: bold; font-size: 16px;">Upcoming Events</div>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr>
</table>
</td>
</tr></table>
</center>
</td>
</tr></table>
<table class="container" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: inherit;width: 580px;margin: 0 auto;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;">
<table class="row" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;padding-right: 0px;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="welcome-wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;padding-bottom: 0px;">
<div class="welcome-text" style="margin: 5px 5px 0px 5px; padding: 5px 5px 14px 5px; border-bottom: 1px solid #cfd2d4;">
</div>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr></table>
<table class="row" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;">
<tr class="item node-post post-nid-5264" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=89a5ed01de&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/tod.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">November 17, 2016<span style="font-weight: normal;"> | </span>5:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=c3b788cb92&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Tod Machover</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">MTA Composer Forum</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
Recent Music for Pianos, Hyperensemble and Cities
Tod Machover, Muriel R. Cooper Professor of Music and Media, MIT Media Lab
About... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=acea59efd1&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=09845a2796&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Lewis Music Library, 14E-109</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5293" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=e3ad77895b&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/icecream.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">November 17, 2016<span style="font-weight: normal;"> | </span>7:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=0b537f6016&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">UNITING THROUGH VOICE AND MUSIC</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">Celebrating MIT Values</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
In a time of change, we celebrate the enduring values that unite us at MIT. Join us for musical performances and reflections from MIT students and... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=6209dee8dc&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;">MIT Lobby 10</span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5260" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=033db5de66&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/mitso_thumb.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">November 18, 2016<span style="font-weight: normal;"> | </span>8:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=53084078a2&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">MIT Symphony Orchestra</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">Adam K. Boyles, music director</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
The program will feature:
Mozart, Overture to Così fan tutte; (Thus Do All Women, or The School for Lovers) an Italian opera buffa.
Puccini,... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=c0840d0c78&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=9b647d6c0f&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Kresge Auditorium</a></span> | <span style="font-weight: bold;">$5</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=32c3f52145&e=46b88902b8" target="_blank" style="color: rgb(237, 28, 36) !important; text-decoration: underline; font-weight: bold; font-size: 12px;">Reserve a Seat</a></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="item node-post post-nid-5261" style="border-bottom: 1px solid #cfd2d4;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=870de9d49e&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/cutter_copy.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">November 19, 2016<span style="font-weight: normal;"> | </span>8:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=175677fae9&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">MIT Chamber Chorus</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">William Cutter, director</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
The program will feature Händel, The ways of Zion do mourn (HWV 264), a Funeral Anthem for Queen Caroline; Bach, Komm, du Süsse Todesstunde, BWV 161... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=1213378c68&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=0b38b784d1&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">MIT Chapel</a></span> | <span style="font-weight: bold;">$5</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=fafc38164d&e=46b88902b8" target="_blank" style="color: rgb(237, 28, 36) !important; text-decoration: underline; font-weight: bold; font-size: 12px;">Reserve a Seat</a></p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
<tr class="last node-post post-nid-5266" style="border-bottom: none;padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0px 5px;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="four sub-columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 10px;width: 33.333333%;padding-left: 5px;padding-bottom: 13px;padding-top: 3px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=3536f5cca4&e=46b88902b8" style="color: black; text-decoration: underline; font-weight: bold;"><img src="http://mta.mit.edu/sites/default/files/public/styles/180x180/public/field_event_thumbnail/vje_0.jpg" width="180" height="180" alt="" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none; height: auto !important;"></a>
</td>
<td class="eight sub-columns last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;min-width: 0px;padding-right: 5px;width: 66.666666%;padding-left: 10px;padding-top: 3px;">
<p class="date" style="margin: 0;color: rgb(96, 106, 113);font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 1em;font-size: 12px;margin-bottom: 6px;">November 20, 2016<span style="font-weight: normal;"> | </span>7:00pm </p>
<p class="title" style="margin: 0;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px;margin-bottom: 0;"><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=4ca68144b2&e=46b88902b8" style="color: rgb(237, 28, 36) !important; text-decoration: none; font-weight: bold; font-size: 16px;">Vocal Jazz Ensemble</a></p>
<p class="sub-title" style="margin: 0;color: rgb(237, 28, 36) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 16px;margin-bottom: 0px;text-decoration: none;">Standards with a Twist</p>
<p class="teaser" style="margin: 0;color: rgb(96, 106, 113) !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 21px;font-size: 15px;margin-bottom: 0px;margin-top: 5px;">
This program by the MIT Vocal Jazz Ensemble will feature Standards with a Twist, arrangements created by the members of the Vocal Jazz Ensemble and... <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=61b7ef1928&e=46b88902b8" class="read-more" style="color: rgb(96, 106, 113) !important; text-decoration: none; font-weight: normal; font-size: 15px; margin-top: 5px; line-height: 21px;">Read More</a> </p>
<p class="location-price" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;margin-top: 12px;text-decoration: none;">
<span style="font-weight: bold;"><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=4c5f876205&e=46b88902b8" target="_blank" style="color: #606a71 !important; text-decoration: none; font-weight: bold; font-size: 12px;">Killian Hall</a></span> | <span style="font-weight: bold;">free</span> </p>
<p class="reservation" style="margin: 0;color: #606a71 !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: bold;padding: 0;text-align: left;line-height: 19px;font-size: 12px;margin-bottom: 0px;text-decoration: none;margin-top: 4px;text-transform: uppercase;">Reservations not required</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr>
</table>
<table class="row footer" style="border-spacing: 0;border-collapse: collapse;padding: 0px;vertical-align: top;text-align: left;width: 100%;position: relative;display: block;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="wrapper" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 10px 20px 0px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;position: relative;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="twelve columns" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 30px 0px 10px 0px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 100%;background: #606a71;">
<table class="twelve columns" style="border-spacing: 0;border-collapse: collapse;padding: 0;vertical-align: top;text-align: left;margin: 0 auto;width: 580px;"><tr style="padding: 0;vertical-align: top;text-align: left;">
<td class="seven column" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;width: 58.333333%;padding-left: 10px;">
<p class="footer-logo-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 12px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/footer_logo.png" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: none; clear: both; display: block; margin-left: 5px;"></p>
<p class="copyright-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 17px;">Copyright © 2015 MIT Music and Theater Arts,<br> All rig hts reserved.</p>
<p class="address-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 18px;font-size: 13px;margin-bottom: 10px;"><strong>MIT Music and Theater Arts</strong><br>
77 Massachusetts Avenue 4-243<br>
Cambridge, Massachusetts 02139<br><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=709e6cfca0&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">Campus map</a> | <a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=f0e01c15c2&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">Parking</a>
</p>
</td>
<td class="five column last" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;padding-right: 10px;width: 41.666666%;padding-left: 0px;">
<p style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 10px;">You are receiving this email because you have requested to receive the MIT Music and Theater Arts Calendar of Events.</p>
<p class="links-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 3px;margin-top: 15px;">
<a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=ba3c76d3a3&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">add us to your address book</a><br><a href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=0347d2e871&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">unsubscribe from this list</a><br><a href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=8104a607a9&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; font-size: 13px;">forward to a friend</a>
</p>
<p class="follow-wrapper" style="margin: 0;color: white !important;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 13px;margin-bottom: 10px;margin-top: 13px;">
<span style="display: inline-block; margin-top: 2px; vertical-align: middle;">Follow MTA</span>
<a class="twitter-link" href="http://mit.us2.list-manage.com/track/click?u=9a8caadec06a0edf712df1a5e&id=ea1fb7c132&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; display: inline-block; width: 26px; height: 26px; vertical-align: middle; margin-left: 20px; font-size: 13px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/twitter_logo.png" alt="twitter" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
<a class="facebook-link" href="http://mit.us2.list-manage1.com/track/click?u=9a8caadec06a0edf712df1a5e&id=d33d557aae&e=46b88902b8" style="color: white !important; text-decoration: underline; font-weight: normal; display: inline-block; width: 26px; height: 26px; vertical-align: middle; margin-left: 20px; font-size: 13px;">
<img src="http://mta.mit.edu/sites/all/modules/custom/mit_newsletter/templates/assets/images/facebook_logo.png" alt="facebook" style="outline: none; text-decoration: none; -ms-interpolation-mode: bicubic; width: auto; max-width: 100%; float: left; clear: both; display: block; border: none;"></a>
</p>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
<td class="expander" style="word-break: break-word;-webkit-hyphens: auto;-moz-hyphens: auto;hyphens: auto;border-collapse: collapse !important;padding: 0px 0px 10px;vertical-align: top;text-align: left;color: #222222;font-family: 'Helvetica', 'Arial', sans-serif;font-weight: normal;margin: 0;line-height: 19px;font-size: 14px;visibility: hidden;width: 0px;"></td>
</tr></table>
</td>
</tr></table>
<!-- container end below -->
</td>
</tr></table>
<!-- Email Content END -->
</center>
</td>
</tr></table>
<center>
<br />
<br />
<br />
<br />
<br />
<br />
<table border="0" cellpadding="0" cellspacing="0" width="100%" id="canspamBarWrapper" style="background-color:#FFFFFF; border-top:1px solid #E5E5E5;">
<tr>
<td align="center" valign="top" style="padding-top:20px; padding-bottom:20px;">
<table border="0" cellpadding="0" cellspacing="0" id="canspamBar">
<tr>
<td align="center" valign="top" style="color:#606060; font-family:Helvetica, Arial, sans-serif; font-size:11px; line-height:150%; padding-right:20px; padding-bottom:5px; padding-left:20px; text-align:center;">
This email was sent to <a href="mailto:[email protected]" target="_blank" style="color:#404040 !important;">[email protected]</a>
<br />
<a href="http://mit.us2.list-manage2.com/about?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8&c=c94d4a5dcf" target="_blank" style="color:#404040 !important;"><em>why did I get this?</em></a> <a href="http://mit.us2.list-manage.com/unsubscribe?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8&c=c94d4a5dcf" style="color:#404040 !important;">unsubscribe from this list</a> <a href="http://mit.us2.list-manage2.com/profile?u=9a8caadec06a0edf712df1a5e&id=cdbb4f57b1&e=46b88902b8" style="color:#404040 !important;">update subscription preferences</a>
<br />
MIT Music and Theater Arts · 77 Massachusetts Avenue · 4-243 · Cambridge, Massachusetts 02139 · USA
<br />
<br />
</td>
</tr>
</table>
</td>
</tr>
</table>
<style type="text/css">
@media only screen and (max-width: 480px){
table#canspamBar td{font-size:14px !important;}
table#canspamBar td a{display:block !important; margin-top:10px !important;}
}
</style>
</center><img src="http://mit.us2.list-manage.com/track/open.php?u=9a8caadec06a0edf712df1a5e&id=c94d4a5dcf&e=46b88902b8" height="1" width="1"></body>
</html>
| HTML | 2 | cnheider/nylas-mail | packages/client-sync/spec/fixtures/MessageUtils/parseSnippet/mit_events.html | [
"MIT"
] |
## QuickSelect -- Linear-time k-th order statistic
## (i.e. select the k-th smallest element in an unsorted array)
## https://en.wikipedia.org/wiki/Quickselect
def partition(array, start, end, pivot):
"""Partitions by a pivot value, which might not necessarily be in the array.
This variant is useful when you want to bound your recursion depth by the
range of the input values, and not the length of the array."""
pivot_index = start
for i in range(start, end):
if array[i] <= pivot:
array[i], array[pivot_index] = array[pivot_index], array[i]
pivot_index += 1
return pivot_index
import random
def partition_first(array, start, end):
"""Selects the first element as pivot. Returns the index where the pivot went to.
In this variant, we can guarantee that the pivot will be in its final sorted position.
We need this guarantee for QuickSelect."""
if start + 1 == end:
return start
pivot = array[start]
pivot_index = start + 1
for i in range(start + 1, end):
if array[i] <= pivot:
array[i], array[pivot_index] = array[pivot_index], array[i]
pivot_index += 1
# Move pivot to front
array[start], array[pivot_index - 1] = array[pivot_index - 1], array[start]
return pivot_index - 1
def quick_select(array, k):
"""NOTE: k-th smallest element counts from 0!"""
left = 0
right = len(array)
while True:
random_index = random.sample(range(left, right), 1)[0]
array[left], array[random_index] = array[random_index], array[left]
pivot_index = partition_first(array, left, right)
if k == pivot_index:
return array[pivot_index]
if k < pivot_index:
right = pivot_index
else:
left = pivot_index + 1
print(quick_select([0], 0) == 0)
print(quick_select([0, 1, 2, 3, 4], 2) == 2)
print(quick_select([4, 3, 2, 1, 0], 2) == 2)
print(quick_select([1, 3, 4, 2, 0], 2) == 2)
# Large test case, for randomized tests
lst = list(range(1000))
for _ in range(10):
k = random.randint(0, 999)
random.shuffle(lst)
print(quick_select(lst, k) == k)
| Python | 5 | liuhoward/tech-interview-handbook | experimental/utilities/python/quick_select.py | [
"MIT"
] |
#version 100
precision mediump float;
// Input vertex attributes (from vertex shader)
varying vec2 fragTexCoord;
varying vec4 fragColor;
uniform vec2 screenDims; // Dimensions of the screen
uniform vec2 c; // c.x = real, c.y = imaginary component. Equation done is z^2 + c
uniform vec2 offset; // Offset of the scale.
uniform float zoom; // Zoom of the scale.
// NOTE: Maximum number of shader for-loop iterations depend on GPU,
// for example, on RasperryPi for this examply only supports up to 60
const int MAX_ITERATIONS = 48; // Max iterations to do
// Square a complex number
vec2 ComplexSquare(vec2 z)
{
return vec2(
z.x * z.x - z.y * z.y,
z.x * z.y * 2.0
);
}
// Convert Hue Saturation Value (HSV) color into RGB
vec3 Hsv2rgb(vec3 c)
{
vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);
vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);
return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);
}
void main()
{
/**********************************************************************************************
Julia sets use a function z^2 + c, where c is a constant.
This function is iterated until the nature of the point is determined.
If the magnitude of the number becomes greater than 2, then from that point onward
the number will get bigger and bigger, and will never get smaller (tends towards infinity).
2^2 = 4, 4^2 = 8 and so on.
So at 2 we stop iterating.
If the number is below 2, we keep iterating.
But when do we stop iterating if the number is always below 2 (it converges)?
That is what MAX_ITERATIONS is for.
Then we can divide the iterations by the MAX_ITERATIONS value to get a normalized value that we can
then map to a color.
We use dot product (z.x * z.x + z.y * z.y) to determine the magnitude (length) squared.
And once the magnitude squared is > 4, then magnitude > 2 is also true (saves computational power).
*************************************************************************************************/
// The pixel coordinates are scaled so they are on the mandelbrot scale
// NOTE: fragTexCoord already comes as normalized screen coordinates but offset must be normalized before scaling and zoom
vec2 z = vec2((fragTexCoord.x + offset.x/screenDims.x)*2.5/zoom, (fragTexCoord.y + offset.y/screenDims.y)*1.5/zoom);
int iter = 0;
for (int iterations = 0; iterations < 60; iterations++)
{
z = ComplexSquare(z) + c; // Iterate function
if (dot(z, z) > 4.0) break;
iter = iterations;
}
// Another few iterations decreases errors in the smoothing calculation.
// See http://linas.org/art-gallery/escape/escape.html for more information.
z = ComplexSquare(z) + c;
z = ComplexSquare(z) + c;
// This last part smooths the color (again see link above).
float smoothVal = float(iter) + 1.0 - (log(log(length(z)))/log(2.0));
// Normalize the value so it is between 0 and 1.
float norm = smoothVal/float(MAX_ITERATIONS);
// If in set, color black. 0.999 allows for some float accuracy error.
if (norm > 0.999) gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
else gl_FragColor = vec4(Hsv2rgb(vec3(norm, 1.0, 1.0)), 1.0);
}
| F# | 5 | chrisws/raylib | examples/shaders/resources/shaders/glsl100/julia_set.fs | [
"Zlib"
] |
foo = 0
' count to five
while foo < 5
print foo
foo = foo + 1
end while
' count down to zero
while foo > 0
print foo
foo = foo - 1
' but stop at three
if foo = 3 then exit while
end while
' nested while loops to compute 4 * 2
total = 0
i = 0
while i < 5
j = 0
while j < 3
total++
j++
end while
i++
end while
print total | Brightscript | 3 | lkipke/brs | test/e2e/resources/while-loops.brs | [
"MIT"
] |
../compile-config/util.jq | JSONiq | 2 | onthway/deepdive | compiler/compile-code/util.jq | [
"Apache-2.0"
] |
:- set_prolog_flag(double_quotes, codes).
:- object(json).
:- info([
version is 0:0:0,
author is 'Paulo Moura',
date is 2019-02-20,
comment is 'JSON encoding and decoding predicates.'
]).
:- public(encode/2).
:- mode(encode(+nonvar, -list(character_code)), one_or_error).
:- info(encode/2, [
comment is 'Converts a structure representing a JSON object into a string (list of character codes).',
argnames is ['Structure', 'String']
]).
:- public(decode/2).
:- mode(decode(+list(character_code), -nonvar), one_or_error).
:- info(decode/2, [
comment is 'Converts a string (list of character codes) into a structure representing a JSON object.',
argnames is ['String', 'Structure']
]).
:- uses(list, [append/3]).
:- uses(user, [format/3]).
encode({}, [0'{, 0'}]).
encode({Pairs}, [0'{| Encoding]) :-
encode_pairs(Pairs, Encoding, [0'}]).
encode(json(Pairs), [0'{| Encoding]) :-
encode_pairs(Pairs, Encoding, [0'}]).
encode(object(Pairs), [0'{| Encoding]) :-
encode_pairs(Pairs, Encoding, [0'}]).
encode_pairs((Pair, Pairs), Encoding, Tail) :-
encode_pairs(Pairs, Pair, Encoding, Tail).
encode_pairs([Pair| Pairs], Encoding, Tail) :-
encode_pairs(Pairs, Pair, Encoding, Tail).
encode_pairs([], Encoding, Encoding).
encode_pairs(Key-Value, Encoding, Tail) :-
encode_pair(Key-Value, PairEncoding),
append(PairEncoding, Tail, Encoding).
encode_pairs(Key=Value, Encoding, Tail) :-
encode_pairs(Key-Value, Encoding, Tail).
encode_pairs(Key:Value, Encoding, Tail) :-
encode_pairs(Key-Value, Encoding, Tail).
encode_pairs((Next, Pairs), Pair, Encoding, Tail) :-
encode_pair(Pair, PairEncoding),
append(PairEncoding, [0',| PairEncodings], Encoding),
encode_pairs(Pairs, Next, PairEncodings, Tail).
encode_pairs([Next| Pairs], Pair, Encoding, Tail) :-
encode_pair(Pair, PairEncoding),
append(PairEncoding, [0',| PairEncodings], Encoding),
encode_pairs(Pairs, Next, PairEncodings, Tail).
encode_pairs([], Pair, Encoding, Tail) :-
encode_pair(Pair, PairEncoding),
append(PairEncoding, Tail, Encoding).
encode_pairs(Key:Value, Pair, Encoding, Tail) :-
encode_pairs([Key:Value], Pair, Encoding, Tail).
encode_pairs(Key-Value, Pair, Encoding, Tail) :-
encode_pairs([Key-Value], Pair, Encoding, Tail).
encode_pair(Key-Value, Encoding) :-
encode_key(Key, KeyEncoding),
encode_element(Value, ElementEncoding),
append(KeyEncoding, [0':| ElementEncoding], Encoding).
encode_pair(Key=Value, Encoding) :-
encode_pair(Key-Value, Encoding).
encode_pair(Key:Value, Encoding) :-
encode_pair(Key-Value, Encoding).
encode_key(Key, Encoding) :-
encode_atom(Key, Encoding).
encode_element({}, [0'{, 0'}]) :-
!.
encode_element({Pairs}, [0'{| Encoding]) :-
!,
encode_pairs(Pairs, Encoding, [0'}]).
encode_element(json(Pairs), [0'{| Encoding]) :-
!,
encode_pairs(Pairs, Encoding, [0'}]).
encode_element(object(Pairs), [0'{| Encoding]) :-
!,
encode_pairs(Pairs, Encoding, [0'}]).
encode_element([], [0'[, 0']]) :-
!.
encode_element([Element| Elements], Encoding) :-
encode_array(Elements, Element, ArrayEncoding),
append([0'[| ArrayEncoding], [0']], Encoding).
encode_element(Value, Encoding) :-
atom(Value),
!,
encode_atom(Value, Encoding).
encode_element(Value, Encoding) :-
integer(Value),
!,
number_codes(Value, Encoding0),
append(Encoding0, [0'., 0'0], Encoding).
encode_element(Value, Encoding) :-
float(Value),
!,
number_codes(Value, Encoding).
encode_array([], Element, Encoding) :-
encode_element(Element, Encoding).
encode_array([Next| Elements], Element, Encoding) :-
encode_element(Element, ElementEncoding),
append(ElementEncoding, [0',| ElementsEncoding], Encoding),
encode_array(Elements, Next, ElementsEncoding).
encode_atom(Atom, Encoding) :-
atom_codes(Atom, Codes),
escape_codes(Codes, EscapedCodes),
append([0'"| EscapedCodes], [0'"], Encoding).
escape_codes([], []).
escape_codes([Code| Codes], [0'\\, EscapedCode| EscapedCodes]) :-
escaped_code(Code, EscapedCode),
!,
escape_codes(Code, Codes, EscapedCodes).
escape_codes([Code| Codes], [Code| EscapedCodes]) :-
escape_codes(Codes, EscapedCodes).
escaped_code(34, 0'").
escaped_code(92, 0'\\).
escaped_code(34, 0'/).
escaped_code( 8, 0'b).
escaped_code( 9, 0't).
escaped_code(10, 0'n).
escaped_code(12, 0'f).
escaped_code(13, 0'r).
decode(String, JSON) :-
phrase(json(JSON), String).
json(json(Pairs)) -->
json_white_space, "{", json_pairs(Pairs), "}", json_white_space.
json_pairs([Pair| Pairs]) -->
json_white_space,
json_pair(Pair),
",",
json_white_space,
json_pairs(Pairs).
json_pair(Key-Value) -->
json_string(Key),
json_white_space,
":",
json_white_space,
json_value(Value).
json_array(Elements) -->
json_white_space, "[", json_elements(Elements), "]", json_white_space.
json_white_space -->
[Code], {Code =< 32; Code >= 127},
json_white_space.
json_white_space -->
[].
json_elements(Acc, Elements) -->
json_skipws,
(
json_value(V), json_skipws, ",", json_skipws,
!,
json_elements([V | Acc], Elements)
)
;
(
(
json_value(V)
->
{
All = [V | Acc],
reverse(All, Elements)
}
;
%% Dangling comma, take what we have.
{reverse(Acc, Elements)}
)
).
%%--------------------------------------------------------------------
%% json_members//2.
%%
%% Extraction of "members" of an object. A member is a sequence of one
%% or more comma separated "pairs". The order of extraction is
%% maintained in case it is important at a higher application level.
%%--------------------------------------------------------------------
json_members(Acc, Members) -->
json_skipws,
(
json_pair(P), json_skipws, ",", json_skipws,
!,
json_members([P | Acc], Members)
)
;
(
(
json_pair(P)
->
{
All = [P | Acc],
reverse(All, Members)
}
;
{reverse(Acc, Members)}
)
).
%%--------------------------------------------------------------------
%% json_value//1.
%%
%% Extraction of high-level objects for structure building. The cut is
%% to commit to the parsed term. Take it out, watch it go slower. Much
%% slower! Like, an order of magnitude slower. I think this is the
%% first time I appreciate what a well placed cut can actually do in
%% terms of performance.
%%--------------------------------------------------------------------
json_value(V) -->
json_skipws,
(
json_string(V), !
;
json_number(V), !
;
"true", {V = true}, !
;
"false", {V = false}, !
;
"null", {V = null}, !
;
json_object(V), !
;
json_array(V), !
).
string(String) -->
(
[34], [34], {Str = str([])}, !
)
;
(
[34], json_strget([], Tmp), [34], !,
{Str = str(Tmp)}
).
%%--------------------------------------------------------------------
%% json_strget//2
%%
%% Extraction of a single character. We have three predicates, the
%% first manages the sequence (backslash, double-quote), the second
%% manages generic characters and the final predicate is when we have
%% consumed the contents of the string and need to reverse the
%% accumulator for presentation.
%%--------------------------------------------------------------------
json_strget(Acc, Out) -->
[92, Chr],
json_strget([Chr, 92 | Acc], Out).
json_strget(Acc, Out) -->
json_char(Chr),
json_strget([Chr | Acc], Out).
json_strget(Acc, Str) --> [],
{reverse(Acc, Str)}, !.
%%--------------------------------------------------------------------
%% json_char//1.
%%
%% Within the context of our DCG ruleset, we allow any thing into a
%% string except the double quote character. The only exception we
%% recognise is the sequence '\"' used to escape a double quote within
%% the string. The json_strget//2 predicate handles that situation.
%% anything BUT a double-quote character is a valid character
%%--------------------------------------------------------------------
json_char(C) --> [C], {C \= 34}.
json_number(Number) -->
json_skipws,
json_int(N), json_frac(F), json_exp(E, Exp),
{json_make_number("~d.~d~s~d", [N, F, E, Exp], Number)}, !.
json_number(Number) -->
json_skipws,
json_int(N), json_frac(F),
{json_make_number("~d.~d",[N, F], Number)}, !.
json_number(Number) -->
json_skipws,
json_int(N), json_exp(E, Exp),
{json_make_number("~d.~s~d",[N, E, Exp], Number)}, !.
json_number(Number) -->
json_skipws, json_int(Number), !.
%%--------------------------------------------------------------------
%% json_int//1
%%
%% Extraction of integers only, positive and negative.
%%--------------------------------------------------------------------
json_int(Val) -->
( %% positive digit, > 0
json_digit19(D1),
json_digsum(D1, Val), !
)
;
( %% negative multiple digits
"-",
json_digit19(D1),
json_digsum(D1, Total),
{Val is -Total}, !
)
;
( %% negative single digit
"-",
json_digit(D1),
{Val is -D1};
json_digit(Val), !
).
%%--------------------------------------------------------------------
%% json_frac//1.
%% json_exp//2.
%%
%% Extraction of fractional part and exponent for floating point
%% numbers.
%%--------------------------------------------------------------------
json_frac(Frac) --> ".", json_digits(Frac).
json_exp(E, Exp) --> json_e(E), json_digits(Exp).
%%--------------------------------------------------------------------
%% json_e//1.
%%
%% Consume an exponent introducer for positive and negative values.
%%--------------------------------------------------------------------
json_e("E+") --> "e+", !.
json_e("E+") --> "E+", !.
json_e("E-") --> "e-", !.
json_e("E-") --> "E-", !.
json_e("E+") --> "e", !.
json_e("E+") --> "E", !.
%%--------------------------------------------------------------------
%% json_digit//1.
%%
%% Scan a single digit 0-9 or 1-9
%%--------------------------------------------------------------------
json_digit(D) --> [Chr], { "0"=<Chr, Chr=<"9", D is Chr-"0"}.
json_digit19(D) --> json_digit(D), {D > 0}.
%%--------------------------------------------------------------------
%% json_digits//1.
%% Scan a a series of digits, returns actual value
%%--------------------------------------------------------------------
json_digits(Val) --> json_digit(D0), json_digsum(D0, Val).
json_digits(Val) --> json_digit(Val).
%%--------------------------------------------------------------------
%% json_digsum//2.
%%
%% Scan/consume digits returning decimal value to json_digits//1.
%%--------------------------------------------------------------------
json_digsum(Acc, N) -->
json_digit(D),
{Acc1 is Acc*10 + D},
json_digsum(Acc1, N).
json_digsum(N, N) --> [], !.
:- end_object.
| Logtalk | 5 | PaulBrownMagic/logtalk3 | library/json.lgt | [
"Apache-2.0"
] |
/*************************************************************************
> File Name: linklist_stack.c
> Author: jinshaohui
> Mail: [email protected]
> Time: 18-10-12
> Desc:
************************************************************************/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include "./linklist_stack.h"
linklist_stack * stack_create()
{
linklist_stack * stack = NULL;
stack = (linklist_stack *)malloc(sizeof(linklist_stack));
if (stack == NULL)
{
return NULL;
}
stack->next = NULL;
return stack;
}
void stack_destory(linklist_stack* stack)
{
linklist_stack * ptmp = NULL;
while(!stack_is_empty(stack))
{
ptmp = stack->next;
stack->next = stack->next->next;
free(ptmp);
}
free(stack);
return;
}
int stack_push(linklist_stack *stack,int data)
{
linklist_stack * ptmp = NULL;
ptmp = (linklist_stack *)malloc(sizeof(linklist_stack));
if (ptmp == NULL)
{
return -1;
}
ptmp->data = data;
ptmp->next = stack->next;
stack->next = ptmp;
return 0;
}
int stack_pop(linklist_stack*stack,int *data)
{
linklist_stack *ptmp = NULL;
if (data == NULL)
{
return -1;
}
if(stack_is_empty(stack))
{
return -1;
}
*data = stack->next->data;
ptmp = stack->next;
stack->next = ptmp->next;
free(ptmp);
return 0;
}
void stack_dump(linklist_stack *stack)
{
linklist_stack * ptmp = stack->next;
while(ptmp != NULL)
{
printf("\r\n data = %d",ptmp->data);
ptmp = ptmp->next;
}
return;
}
int main()
{
int i = 0;
int ret = 0;
int data = 0;
linklist_stack * stack = NULL;
stack = stack_create();
if (stack == NULL)
{
printf("\r\n stack create falied.");
return 0;
}
for (i = 0; i < 4; i++)
{
ret = stack_push(stack,i);
if(ret != 0)
{
printf("\r\n stack push %d falied.",i);
}
}
stack_dump(stack);
for (i = 0; i < 5; i++)
{
ret = stack_pop(stack,&data);
if(ret != 0)
{
printf("\r\n stack pop%d falied.", i);
}
else
{
printf("\r\n data = %d,",data);
}
}
stack_destory(stack);
return 0;
}
| C | 4 | shipan3452/algo | c-cpp/08_stack/linkList/linklist_stack.c | [
"Apache-2.0"
] |
int quux=10;
| Unified Parallel C | 0 | maurizioabba/rose | projects/UpcTranslation/tests/extern.upc | [
"BSD-3-Clause"
] |
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/38.0.2125.102 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/38.0.2125.102 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.105 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.83 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.95 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.91 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.111 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.68 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.94 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/37.0.0.0 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.93 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.94 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.137 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.98 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.116 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.124 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/42.0.2311.137 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.83 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.133 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36
Mozilla/5.0 (Linux; U; Android 5.1.1; en-us; LGMS345 Build/LMY47V) AppleWebKit/537.16 (KHTML, like Gecko) Version/4.0 Mobile Safari/537.16 Chrome/33.0.0.0
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/46.0.2490.76 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.85 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.158 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.98 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.76 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.97 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.84 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.89 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/60.0.3112.116 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.84 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.91 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.81 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/42.0.2311.137 Mobile Safari/537.36 [Pinterest/Android]
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/51.0.2704.81 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV/80.0.0.21.65;]
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.126 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.132 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.76 Mobile Safari/537.36
* Mozilla/5.0 (Linux; U; Android 5.1.1; en-US; LGMS345 Build/LMY47V) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/10.7.0.636 U3/0.8.0 Mobile Safari/534.30-
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.86 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.83 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.93 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.85 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Mobile Safari/537.36 OPR/37.0.2192.105088
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/45.0.2454.95 Mobile Safari/537.36 [Pinterest/Android]
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.91 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/44.0.2403.117 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.123 Mobile Safari/537.36
Dalvik/2.1.0 (Linux; U; Android 5.1.1; LGMS345 Build/LMY47V)
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.95 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/59.0.3071.125 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY48G; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/49.0.2623.105 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.1.1; LGMS345 Build/LMY47V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.84 Mobile Safari/537.36
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.133 Mobile Safari/537.36
Mozilla/5.0 (Linux; U; Android 5.1.1; en-US; LGMS345 Build/LMY47V) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 UCBrowser/10.7.0.636 U3/0.8.0 Mobile Safari/534.30
Mozilla/5.0 (Linux; Android 5.0.2; LGMS345 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Mobile Safari/537.36
| Text | 0 | 5tr1x/SecLists | Fuzzing/User-Agents/operating-platform/lg-ms345.txt | [
"MIT"
] |
/*
Account := {email : "[email protected]"
, smtpserver : "smtp.gmail.com"
, smtpserverport : 465
, sendusername : "[email protected]"
, sendpassword : "password"
, smtpauthenticate : 1
, smtpusessl : 1
, smtpconnectiontimeout : 60
, sendusing : 2}
*/
CDO(Account, To, Subject := "", Msg := "", Html := false, Attach := "", CC := "", BCC := "")
{
MsgObj := ComObjCreate("CDO.Message")
MsgObj.From := Account.email
MsgObj.To := StrReplace(To, ",", ";")
MsgObj.BCC := StrReplace(BCC, ",", ";")
MsgObj.CC := StrReplace(CC, ",", ";")
MsgObj.Subject := Subject
If (Html)
MsgObj.HtmlBody := Msg
Else
MsgObj.TextBody := Msg
Schema := "http://schemas.microsoft.com/cdo/configuration/"
Pfld := MsgObj.Configuration.Fields
For Field, Value in Account
(Field != "email") ? Pfld.Item(Schema . Field) := Value : ""
Pfld.Update()
Attach := StrReplace(Attach, ",", ";")
Loop, Parse, Attach, `;, %A_Space%%A_Tab%
MsgObj.AddAttachment(A_LoopField)
MsgObj.Send()
}
| AutoHotkey | 4 | standardgalactic/PuloversMacroCreator | LIB/CDO.ahk | [
"Unlicense"
] |
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
Function GetFileMock () {
$objs = @( [pscustomobject]@{ Size=4533816; Mode="-a---l"; LastWriteTime="9/1/2015 11:15 PM"; Name="explorer.exe" },
[pscustomobject]@{ Size=994816; Mode="-a---l"; LastWriteTime="9/1/2015 11:13 PM"; Name="HelpPane.exe" },
[pscustomobject]@{ Size=316640; Mode="-a---l"; LastWriteTime="9/1/2015 11:17 PM"; Name="WMSysPr9.prx" },
[pscustomobject]@{ Size=215040; Mode="-a---l"; LastWriteTime="9/1/2015 11:20 PM"; Name="notepad.exe" },
[pscustomobject]@{ Size=207239; Mode="-a----"; LastWriteTime="10/7/2015 2:37 PM"; Name="setupact.log" },
[pscustomobject]@{ Size=181064; Mode="-a----"; LastWriteTime="9/9/2015 11:54 PM"; Name="PSEXESVC.EXE" })
return $objs
}
filter addOneToSizeProperty() {
$_.Size += 1
$_
}
filter pipelineConsume() {
$_
}
| PowerShell | 4 | rdtechie/PowerShell | test/powershell/Modules/Microsoft.PowerShell.Utility/Test-Mocks.ps1 | [
"MIT"
] |
[\6es|attr] {} | CSS | 0 | kitsonk/swc | css/parser/tests/fixture/esbuild/misc/e_FDMPgmGFzIY3W0EbjxHA/input.css | [
"Apache-2.0",
"MIT"
] |
:- use_module( library(python) ).
:- := import(pandas)).
pred2panda(Pred, Obj) :-
| Prolog | 0 | ryandesign/yap | packages/python/pandas.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>fastText: /data/users/cpuhrsch/fbsource/fbcode/deeplearning/fastText/src/qmatrix.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="favicon.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">fastText
 <span id="projectnumber">d00d36476b15</span>
</div>
<div id="projectbrief">Fast text processing tool/library</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('qmatrix_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="headertitle">
<div class="title">qmatrix.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="qmatrix_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#ifndef FASTTEXT_QMATRIX_H</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#define FASTTEXT_QMATRIX_H</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> </div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <cstdint></span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="preprocessor">#include <istream></span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <ostream></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> </div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <vector></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include <memory></span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="real_8h.html">real.h</a>"</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="matrix_8h.html">matrix.h</a>"</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="vector_8h.html">vector.h</a>"</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "<a class="code" href="productquantizer_8h.html">productquantizer.h</a>"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="keyword">namespace </span><a class="code" href="namespacefasttext.html">fasttext</a> {</div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html"> 29</a></span> <span class="keyword">class </span><a class="code" href="classfasttext_1_1QMatrix.html">QMatrix</a> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html#a6c62644a138ed88863088dcdeb32dbd7"> 31</a></span>  std::unique_ptr<ProductQuantizer> <a class="code" href="classfasttext_1_1QMatrix.html#a6c62644a138ed88863088dcdeb32dbd7">pq_</a>;</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html#a8203216a4cb2b721697f7dc2b509f25a"> 32</a></span>  std::unique_ptr<ProductQuantizer> <a class="code" href="classfasttext_1_1QMatrix.html#a8203216a4cb2b721697f7dc2b509f25a">npq_</a>;</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> </div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html#acc957d3d66b58cb9381f6a0556096c93"> 34</a></span>  uint8_t* <a class="code" href="classfasttext_1_1QMatrix.html#acc957d3d66b58cb9381f6a0556096c93">codes_</a>;</div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html#a17f22153d042c64052a3468faec70fce"> 35</a></span>  uint8_t* <a class="code" href="classfasttext_1_1QMatrix.html#a17f22153d042c64052a3468faec70fce">norm_codes_</a>;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html#aadc6e4d399442555f3c2993b97285143"> 37</a></span>  <span class="keywordtype">bool</span> <a class="code" href="classfasttext_1_1QMatrix.html#aadc6e4d399442555f3c2993b97285143">qnorm_</a>;</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> </div><div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html#ad2457490bb9a531740187fffb63cace2"> 39</a></span>  int64_t <a class="code" href="classfasttext_1_1QMatrix.html#ad2457490bb9a531740187fffb63cace2">m_</a>;</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html#a54082c819b9939e2d49fc0733a609cea"> 40</a></span>  int64_t <a class="code" href="classfasttext_1_1QMatrix.html#a54082c819b9939e2d49fc0733a609cea">n_</a>;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classfasttext_1_1QMatrix.html#a4a69f60ba96c0b1a9da22c3951eca759"> 42</a></span>  int32_t <a class="code" href="classfasttext_1_1QMatrix.html#a4a69f60ba96c0b1a9da22c3951eca759">codesize_</a>;</div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> </div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <a class="code" href="classfasttext_1_1QMatrix.html#a976442aaed5b1afee2f2cd4473c0d62b">QMatrix</a>();</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <a class="code" href="classfasttext_1_1QMatrix.html#a976442aaed5b1afee2f2cd4473c0d62b">QMatrix</a>(<span class="keyword">const</span> <a class="code" href="classfasttext_1_1Matrix.html">Matrix</a>&, int32_t, <span class="keywordtype">bool</span>);</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="classfasttext_1_1QMatrix.html#a7de6d212bec1c4028ee30e968b5d030d">~QMatrix</a>();</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  int64_t <a class="code" href="classfasttext_1_1QMatrix.html#a16350455c02cf5f00175b1b0c6a310cd">getM</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  int64_t <a class="code" href="classfasttext_1_1QMatrix.html#ad969042dfc46a64e386f12616a4d6bcb">getN</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">void</span> <a class="code" href="classfasttext_1_1QMatrix.html#a0e4d84be1c6cd0cbfc4568f905961017">quantizeNorm</a>(<span class="keyword">const</span> <a class="code" href="classfasttext_1_1Vector.html">Vector</a>&);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">void</span> <a class="code" href="classfasttext_1_1QMatrix.html#ab9ae1914dc1b72e305880a8c22626afc">quantize</a>(<span class="keyword">const</span> <a class="code" href="classfasttext_1_1Matrix.html">Matrix</a>&);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">void</span> <a class="code" href="classfasttext_1_1QMatrix.html#ad8f153a45f69530aeef171bebbce93fc">addToVector</a>(<a class="code" href="classfasttext_1_1Vector.html">Vector</a>& x, int32_t t) <span class="keyword">const</span>;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="namespacefasttext.html#a7afdad102f318271c14154b8e65e5ea3">real</a> <a class="code" href="classfasttext_1_1QMatrix.html#ad1671bceb60d87492b662331cc084c56">dotRow</a>(<span class="keyword">const</span> <a class="code" href="classfasttext_1_1Vector.html">Vector</a>&, int64_t) <span class="keyword">const</span>;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">void</span> <a class="code" href="classfasttext_1_1QMatrix.html#a00267b43ee5eefc92948c654fb9fc9f1">save</a>(std::ostream&);</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">void</span> <a class="code" href="classfasttext_1_1QMatrix.html#a03c039b81b5aaed30d95149de9379998">load</a>(std::istream&);</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span> };</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> }</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span> </div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="classfasttext_1_1QMatrix_html_a4a69f60ba96c0b1a9da22c3951eca759"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a4a69f60ba96c0b1a9da22c3951eca759">fasttext::QMatrix::codesize_</a></div><div class="ttdeci">int32_t codesize_</div><div class="ttdef"><b>Definition:</b> qmatrix.h:42</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a16350455c02cf5f00175b1b0c6a310cd"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a16350455c02cf5f00175b1b0c6a310cd">fasttext::QMatrix::getM</a></div><div class="ttdeci">int64_t getM() const</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:83</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_ad2457490bb9a531740187fffb63cace2"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#ad2457490bb9a531740187fffb63cace2">fasttext::QMatrix::m_</a></div><div class="ttdeci">int64_t m_</div><div class="ttdef"><b>Definition:</b> qmatrix.h:39</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_acc957d3d66b58cb9381f6a0556096c93"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#acc957d3d66b58cb9381f6a0556096c93">fasttext::QMatrix::codes_</a></div><div class="ttdeci">uint8_t * codes_</div><div class="ttdef"><b>Definition:</b> qmatrix.h:34</div></div>
<div class="ttc" id="namespacefasttext_html"><div class="ttname"><a href="namespacefasttext.html">fasttext</a></div><div class="ttdef"><b>Definition:</b> args.cc:17</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_ad1671bceb60d87492b662331cc084c56"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#ad1671bceb60d87492b662331cc084c56">fasttext::QMatrix::dotRow</a></div><div class="ttdeci">real dotRow(const Vector &, int64_t) const</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:72</div></div>
<div class="ttc" id="classfasttext_1_1Vector_html"><div class="ttname"><a href="classfasttext_1_1Vector.html">fasttext::Vector</a></div><div class="ttdef"><b>Definition:</b> vector.h:23</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a17f22153d042c64052a3468faec70fce"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a17f22153d042c64052a3468faec70fce">fasttext::QMatrix::norm_codes_</a></div><div class="ttdeci">uint8_t * norm_codes_</div><div class="ttdef"><b>Definition:</b> qmatrix.h:35</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_ab9ae1914dc1b72e305880a8c22626afc"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#ab9ae1914dc1b72e305880a8c22626afc">fasttext::QMatrix::quantize</a></div><div class="ttdeci">void quantize(const Matrix &)</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:49</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a00267b43ee5eefc92948c654fb9fc9f1"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a00267b43ee5eefc92948c654fb9fc9f1">fasttext::QMatrix::save</a></div><div class="ttdeci">void save(std::ostream &)</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:91</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a7de6d212bec1c4028ee30e968b5d030d"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a7de6d212bec1c4028ee30e968b5d030d">fasttext::QMatrix::~QMatrix</a></div><div class="ttdeci">~QMatrix()</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:34</div></div>
<div class="ttc" id="real_8h_html"><div class="ttname"><a href="real_8h.html">real.h</a></div></div>
<div class="ttc" id="matrix_8h_html"><div class="ttname"><a href="matrix_8h.html">matrix.h</a></div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_ad969042dfc46a64e386f12616a4d6bcb"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#ad969042dfc46a64e386f12616a4d6bcb">fasttext::QMatrix::getN</a></div><div class="ttdeci">int64_t getN() const</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:87</div></div>
<div class="ttc" id="productquantizer_8h_html"><div class="ttname"><a href="productquantizer_8h.html">productquantizer.h</a></div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a8203216a4cb2b721697f7dc2b509f25a"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a8203216a4cb2b721697f7dc2b509f25a">fasttext::QMatrix::npq_</a></div><div class="ttdeci">std::unique_ptr< ProductQuantizer > npq_</div><div class="ttdef"><b>Definition:</b> qmatrix.h:32</div></div>
<div class="ttc" id="vector_8h_html"><div class="ttname"><a href="vector_8h.html">vector.h</a></div></div>
<div class="ttc" id="namespacefasttext_html_a7afdad102f318271c14154b8e65e5ea3"><div class="ttname"><a href="namespacefasttext.html#a7afdad102f318271c14154b8e65e5ea3">fasttext::real</a></div><div class="ttdeci">float real</div><div class="ttdef"><b>Definition:</b> real.h:15</div></div>
<div class="ttc" id="classfasttext_1_1Matrix_html"><div class="ttname"><a href="classfasttext_1_1Matrix.html">fasttext::Matrix</a></div><div class="ttdef"><b>Definition:</b> matrix.h:23</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_aadc6e4d399442555f3c2993b97285143"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#aadc6e4d399442555f3c2993b97285143">fasttext::QMatrix::qnorm_</a></div><div class="ttdeci">bool qnorm_</div><div class="ttdef"><b>Definition:</b> qmatrix.h:37</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_ad8f153a45f69530aeef171bebbce93fc"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#ad8f153a45f69530aeef171bebbce93fc">fasttext::QMatrix::addToVector</a></div><div class="ttdeci">void addToVector(Vector &x, int32_t t) const</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:64</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a03c039b81b5aaed30d95149de9379998"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a03c039b81b5aaed30d95149de9379998">fasttext::QMatrix::load</a></div><div class="ttdeci">void load(std::istream &)</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:104</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a6c62644a138ed88863088dcdeb32dbd7"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a6c62644a138ed88863088dcdeb32dbd7">fasttext::QMatrix::pq_</a></div><div class="ttdeci">std::unique_ptr< ProductQuantizer > pq_</div><div class="ttdef"><b>Definition:</b> qmatrix.h:31</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html"><div class="ttname"><a href="classfasttext_1_1QMatrix.html">fasttext::QMatrix</a></div><div class="ttdef"><b>Definition:</b> qmatrix.h:29</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a976442aaed5b1afee2f2cd4473c0d62b"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a976442aaed5b1afee2f2cd4473c0d62b">fasttext::QMatrix::QMatrix</a></div><div class="ttdeci">QMatrix()</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:17</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a0e4d84be1c6cd0cbfc4568f905961017"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a0e4d84be1c6cd0cbfc4568f905961017">fasttext::QMatrix::quantizeNorm</a></div><div class="ttdeci">void quantizeNorm(const Vector &)</div><div class="ttdef"><b>Definition:</b> qmatrix.cc:41</div></div>
<div class="ttc" id="classfasttext_1_1QMatrix_html_a54082c819b9939e2d49fc0733a609cea"><div class="ttname"><a href="classfasttext_1_1QMatrix.html#a54082c819b9939e2d49fc0733a609cea">fasttext::QMatrix::n_</a></div><div class="ttdeci">int64_t n_</div><div class="ttdef"><b>Definition:</b> qmatrix.h:40</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="qmatrix_8h.html">qmatrix.h</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>
| HTML | 2 | KatyaKos/fastText | website/static/docs/en/html/qmatrix_8h_source.html | [
"MIT"
] |
<?php
$this->layout('main', [
'title' => __('Log Viewer'),
'manual' => true
]);
?>
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header bg-primary-dark">
<h2 class="card-title"><?=__('Available Logs') ?></h2>
</div>
<div class="list-group list-group-flush">
<?php foreach($logs as $log_key => $log_info): ?>
<a class="list-group-item list-group-item-action log-item" href="<?=$router->fromHere('stations:logs:view', ['log' => $log_key]) ?>">
<span class="log-name"><?=$log_info['name'] ?></span><br>
<small class="text-secondary"><?=$log_info['path'] ?></small>
</a>
<?php endforeach; ?>
</div>
</div>
</div>
<div class="col-md-4">
<?=$this->fetch('partials/log_help_card') ?>
</div>
</div>
<?=$this->fetch('partials/log_viewer') ?>
| HTML+PHP | 3 | lamasbr/AzuraCast | templates/stations/logs/index.phtml | [
"Apache-2.0"
] |
<header class="page_heading">
<h1><%= @title |> raw %></h1>
</header>
| HTML+EEX | 0 | PsOverflow/changelog.com | lib/changelog_web/templates/shared/_page_heading.html.eex | [
"MIT"
] |
function binadd(a, b) {
res = a + b;
return res;
}
function main() {
println("2 + 4 Executed inside SL: " + binadd(2,4));
}
| Slash | 1 | lucapele/pele-c | zippy/benchmarks/src/micro/add.sl | [
"BSD-3-Clause"
] |
package com.baeldung.jaxws.server.bottomup;
import java.util.List;
import javax.inject.Inject;
import javax.jws.WebMethod;
import javax.jws.WebService;
import com.baeldung.jaxws.server.bottomup.exception.EmployeeAlreadyExists;
import com.baeldung.jaxws.server.bottomup.exception.EmployeeNotFound;
import com.baeldung.jaxws.server.bottomup.model.Employee;
import com.baeldung.jaxws.server.repository.EmployeeRepository;
@WebService(serviceName = "EmployeeService", endpointInterface = "com.baeldung.jaxws.server.bottomup.EmployeeService")
public class EmployeeServiceImpl implements EmployeeService {
@Inject
private EmployeeRepository employeeRepositoryImpl;
@WebMethod
public Employee getEmployee(int id) throws EmployeeNotFound {
return employeeRepositoryImpl.getEmployee(id);
}
@WebMethod
public Employee updateEmployee(int id, String name) throws EmployeeNotFound {
return employeeRepositoryImpl.updateEmployee(id, name);
}
@WebMethod
public boolean deleteEmployee(int id) throws EmployeeNotFound {
return employeeRepositoryImpl.deleteEmployee(id);
}
@WebMethod
public Employee addEmployee(int id, String name) throws EmployeeAlreadyExists {
return employeeRepositoryImpl.addEmployee(id, name);
}
@WebMethod
public int countEmployees() {
return employeeRepositoryImpl.count();
}
@WebMethod
public List<Employee> getAllEmployees() {
return employeeRepositoryImpl.getAllEmployees();
}
}
| Java | 4 | zeesh49/tutorials | jee-7/src/main/java/com/baeldung/jaxws/server/bottomup/EmployeeServiceImpl.java | [
"MIT"
] |
Var GoCDServiceName
Var ServiceWasRunningBeforeUpgradeOrUninstall
!macro StopServiceIfRunning maybePrefix
; function "shared" between uninstaller and installer code.
; See https://nsis.sourceforge.io/Sharing_functions_between_Installer_and_Uninstaller
Function "${maybePrefix}StopServiceIfRunning"
${LogText} "Stopping service $GoCDServiceName if running..."
${If} $ServiceWasRunningBeforeUpgradeOrUninstall == "true"
${LogText} "Stopping service $GoCDServiceName because it was running"
SimpleSC::StopService $GoCDServiceName 30 30
Pop $0 ; returns an errorcode (<>0) otherwise success (0)
${If} $0 != 0 ;
${ShowMessageAndExit} "Unable to stop service $GoCDServiceName (err: $0)!"
${EndIf}
${LogText} "Sleeping 3 seconds to wait for file locks to be released..."
Sleep 3000
${LogText} "Continuing after sleep..."
${ElseIf} $ServiceWasRunningBeforeUpgradeOrUninstall == "false"
; do nothing
${LogText} "Service $GoCDServiceName was not running"
${Else}
${ShowMessageAndExit} "Cannot determine if service was running!"
${EndIf}
FunctionEnd
!macroend
!macro RememberIfServiceWasRunning maybePrefix
; function "shared" between uninstaller and installer code.
; See https://nsis.sourceforge.io/Sharing_functions_between_Installer_and_Uninstaller
Function "${maybePrefix}RememberIfServiceWasRunning"
${LogText} "Remembering if service $GoCDServiceName is running"
SimpleSC::ServiceIsRunning $GoCDServiceName
Pop $0 ; returns an errorcode (<>0) otherwise success (0)
Pop $1 ; returns 1 (service is running) - returns 0 (service is not running)
${If} $1 == 1
${LogText} "Service $GoCDServiceName is running"
StrCpy $ServiceWasRunningBeforeUpgradeOrUninstall "true"
${Else}
${LogText} "Service $GoCDServiceName is not running"
StrCpy $ServiceWasRunningBeforeUpgradeOrUninstall "false"
${EndIf}
ClearErrors
FunctionEnd
!macroend
!insertmacro StopServiceIfRunning ""
!insertmacro StopServiceIfRunning "un."
!insertmacro RememberIfServiceWasRunning ""
!insertmacro RememberIfServiceWasRunning "un."
!macro UninstallService maybePrefix
Function "${maybePrefix}UninstallService"
${LogText} "Removing Service $GoCDServiceName"
SimpleSC::RemoveService $GoCDServiceName
FunctionEnd
!macroend
!insertmacro UninstallService ""
!insertmacro UninstallService "un."
Function "StartService"
${LogText} "Starting service $GoCDServiceName"
SimpleSC::StartService $GoCDServiceName "" 30
Pop $0 ; returns an errorcode (<>0) otherwise success (0)
${If} $0 == 0
${LogText} "Successfully started service $GoCDServiceName"
${Else}
${ShowMessageAndExit} "Failed to start service $GoCDServiceName (err: $0)!"
${EndIf}
ClearErrors
FunctionEnd
Function "StartServiceIfRunningBeforeUpgrade"
${If} $ServiceWasRunningBeforeUpgradeOrUninstall == "true"
${LogText} "Starting service $GoCDServiceName because it was running before upgrade..."
Call StartService
${ElseIf} $ServiceWasRunningBeforeUpgradeOrUninstall == "false"
${LogText} "Not starting $GoCDServiceName because it was not running before upgrade..."
; do nothing
${Else}
${ShowMessageAndExit} "Cannot determine if service was running!"
${EndIf}
FunctionEnd
Function "InstallService"
${LogText} "Installing ${COMPONENT_NAME} service..."
nsExec::ExecToLog /TIMEOUT=60000 '"$INSTDIR\bin\install-go-${COMPONENT_NAME}-service.bat"'
Pop $0 ;error code
${If} $0 != 0
${ShowMessageAndExit} "Failed to install service $GoCDServiceName (err: $0)!"
${EndIf}
ClearErrors
FunctionEnd
| NSIS | 5 | JeroenOortwijn/gocd | installers/windows/service-helpers.nsi | [
"Apache-2.0"
] |
/*
Copyright © 2011 MLstate
This file is part of Opa.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* @author Adam Koprowski
**/
import stdlib.web.canvas
type WBarChart.config = {
bg_style : Canvas.style
bar_fill_style : Canvas.style
margins : WChart.percentage
bar_spacing : WChart.percentage
}
WBarChart = {{
default_config : WBarChart.config =
{ bg_style = {color = Color.black}
; bar_fill_style = {color = Color.black}
; margins = 0.1
; bar_spacing = 0.1
}
// @private
draw(config, data, canvas, w, h) =
if List.is_empty(data.data)
then {success}
else
hf = Float.of_int(h)
wf = Float.of_int(w)
n = WChartData.length(data)
x_weight(i) = Float.of_int(i) + (Float.of_int(i + 1) * config.bar_spacing)
fx = WChartData.generate_scaler((0., x_weight(n)), (0., wf))
fy = WChartData.generate_scaler(WChartData.get_min_max(data),
(0., hf - hf * (2. * config.margins)))
generate_bar(i, v) =
x1 = fx(x_weight(i))
x2 = fx(x_weight(i + 1) - config.bar_spacing)
ys = fy(v)
y2 = hf * (1. - config.margins)
px = Int.of_float
Canvas.fill_rect(canvas, px(x1), px(y2 - ys), px(x2 - x1), px(y2))
do Canvas.set_fill_style(canvas, config.bar_fill_style)
do List.iteri(generate_bar, data.data)
{success}
}}
| Opa | 4 | Machiaweliczny/oppailang | lib/stdlib/widgets/chart/bar.opa | [
"MIT"
] |
Format: Coff Little-endian 32-bit
Kind: Relocatable
Architecture: I386
Flags: Coff { characteristics: 0 }
Relative Address Base: 0
Entry Address: 0
Segment { name: ".drectve", address: 0, size: 0 }
Segment { name: ".debug$S", address: 0, size: 0 }
Segment { name: ".text$mn", address: 0, size: 0 }
Segment { name: ".text$mn", address: 0, size: 0 }
Segment { name: ".text$mn", address: 0, size: 0 }
Segment { name: ".text$mn", address: 0, size: 0 }
Segment { name: ".data", address: 0, size: 0 }
Segment { name: ".chks64", address: 0, size: 0 }
1: Section { name: ".drectve", address: 0, size: 2f, align: 1, kind: Linker, flags: Coff { characteristics: 100a00 } }
2: Section { name: ".debug$S", address: 0, size: 7c, align: 1, kind: Other, flags: Coff { characteristics: 42100040 } }
3: Section { name: ".text$mn", address: 0, size: 14, align: 10, kind: Text, flags: Coff { characteristics: 60500020 } }
4: Section { name: ".text$mn", address: 0, size: a, align: 10, kind: Text, flags: Coff { characteristics: 60501020 } }
5: Section { name: ".text$mn", address: 0, size: 29, align: 10, kind: Text, flags: Coff { characteristics: 60501020 } }
6: Section { name: ".text$mn", address: 0, size: 3a, align: 10, kind: Text, flags: Coff { characteristics: 60501020 } }
7: Section { name: ".data", address: 0, size: d, align: 4, kind: Data, flags: Coff { characteristics: c0300040 } }
8: Section { name: ".chks64", address: 0, size: 40, align: 10, kind: Linker, flags: Coff { characteristics: a00 } }
Comdat { symbol: SymbolIndex(14), name: "___local_stdio_printf_options", kind: Any } Sections: 4
Comdat { symbol: SymbolIndex(17), name: "__vfprintf_l", kind: Any } Sections: 5
Comdat { symbol: SymbolIndex(18), name: "_printf", kind: Any } Sections: 6
Symbols
0: Symbol { name: "@comp.id", address: 0, size: 0, kind: Data, section: Absolute, scope: Compilation, weak: false, flags: None }
1: Symbol { name: "@feat.00", address: 0, size: 0, kind: Data, section: Absolute, scope: Compilation, weak: false, flags: None }
2: Symbol { name: ".drectve", address: 0, size: 2f, kind: Section, section: Section(SectionIndex(1)), scope: Compilation, weak: false, flags: CoffSection { selection: 0, associative_section: None } }
4: Symbol { name: ".debug$S", address: 0, size: 7c, kind: Section, section: Section(SectionIndex(2)), scope: Compilation, weak: false, flags: CoffSection { selection: 0, associative_section: None } }
6: Symbol { name: ".text$mn", address: 0, size: 14, kind: Section, section: Section(SectionIndex(3)), scope: Compilation, weak: false, flags: CoffSection { selection: 0, associative_section: None } }
8: Symbol { name: ".text$mn", address: 0, size: a, kind: Section, section: Section(SectionIndex(4)), scope: Compilation, weak: false, flags: CoffSection { selection: 2, associative_section: None } }
10: Symbol { name: ".text$mn", address: 0, size: 29, kind: Section, section: Section(SectionIndex(5)), scope: Compilation, weak: false, flags: CoffSection { selection: 2, associative_section: None } }
12: Symbol { name: ".text$mn", address: 0, size: 3a, kind: Section, section: Section(SectionIndex(6)), scope: Compilation, weak: false, flags: CoffSection { selection: 2, associative_section: None } }
14: Symbol { name: "___local_stdio_printf_options", address: 0, size: 0, kind: Text, section: Section(SectionIndex(4)), scope: Linkage, weak: false, flags: None }
15: Symbol { name: "___acrt_iob_func", address: 0, size: 0, kind: Text, section: Undefined, scope: Linkage, weak: false, flags: None }
16: Symbol { name: "___stdio_common_vfprintf", address: 0, size: 0, kind: Text, section: Undefined, scope: Linkage, weak: false, flags: None }
17: Symbol { name: "__vfprintf_l", address: 0, size: 0, kind: Text, section: Section(SectionIndex(5)), scope: Linkage, weak: false, flags: None }
18: Symbol { name: "_printf", address: 0, size: 0, kind: Text, section: Section(SectionIndex(6)), scope: Linkage, weak: false, flags: None }
19: Symbol { name: "_main", address: 0, size: 0, kind: Text, section: Section(SectionIndex(3)), scope: Linkage, weak: false, flags: None }
20: Symbol { name: "?_OptionsStorage@?1??__local_stdio_printf_options@@9@9", address: 0, size: 8, kind: Data, section: Common, scope: Linkage, weak: false, flags: None }
21: Symbol { name: ".data", address: 0, size: d, kind: Section, section: Section(SectionIndex(7)), scope: Compilation, weak: false, flags: CoffSection { selection: 0, associative_section: None } }
23: Symbol { name: "$SG9248", address: 0, size: 0, kind: Data, section: Section(SectionIndex(7)), scope: Compilation, weak: false, flags: None }
24: Symbol { name: ".chks64", address: 0, size: 40, kind: Section, section: Section(SectionIndex(8)), scope: Compilation, weak: false, flags: CoffSection { selection: 0, associative_section: None } }
.text$mn relocations
(4, Relocation { kind: Absolute, encoding: Generic, size: 20, target: Symbol(SymbolIndex(17)), addend: 0, implicit_addend: true })
(9, Relocation { kind: Relative, encoding: Generic, size: 20, target: Symbol(SymbolIndex(12)), addend: fffffffffffffffc, implicit_addend: true })
.text$mn relocations
(4, Relocation { kind: Absolute, encoding: Generic, size: 20, target: Symbol(SymbolIndex(14)), addend: 0, implicit_addend: true })
.text$mn relocations
(14, Relocation { kind: Relative, encoding: Generic, size: 20, target: Symbol(SymbolIndex(e)), addend: fffffffffffffffc, implicit_addend: true })
(20, Relocation { kind: Relative, encoding: Generic, size: 20, target: Symbol(SymbolIndex(10)), addend: fffffffffffffffc, implicit_addend: true })
.text$mn relocations
(19, Relocation { kind: Relative, encoding: Generic, size: 20, target: Symbol(SymbolIndex(f)), addend: fffffffffffffffc, implicit_addend: true })
(22, Relocation { kind: Relative, encoding: Generic, size: 20, target: Symbol(SymbolIndex(11)), addend: fffffffffffffffc, implicit_addend: true })
Dynamic symbols
| ObjDump | 1 | sunfishcode/object | crates/examples/testfiles/pe/base.obj.objdump | [
"Apache-2.0",
"MIT"
] |
a(X) :- X.
b(X) :- X, writeln(X).
c(X) :- X, X.
| Prolog | 3 | ryandesign/yap | regression/metaconj.yap | [
"Artistic-1.0-Perl",
"ClArtistic"
] |
extern record containingAnonUnnamedUnion {
var x: real(32);
var y: real(64);
var z: int(64);
}
var myUnion: containingAnonUnnamedUnion;
myUnion.x = 1.5: real(32);
writeln("myUnion.x = ", myUnion.x);
myUnion.y = -2.6: real(64);
writeln("myUnion.y = ", myUnion.y);
var myA: [1..5] containingAnonUnnamedUnion;
for i in 1..5 {
myA[i].x = i: real(32);
writeln("myA", "[", i, "]", ".x = ", myA[i].x);
myA[i].y = -i: real(64) / (5.0: real(64));
writeln("myA", "[", i, "]", ".y = ", myA[i].y);
}
| Chapel | 4 | jhh67/chapel | test/extern/unions/externAnonUnnamedUnionLLVM.chpl | [
"ECL-2.0",
"Apache-2.0"
] |
-- 2010-11-21
-- testing correct implementation of eta for records with higher-order fields
module Issue366 where
data Bool : Set where
true false : Bool
record R (A : Set) : Set where
constructor r
field
unR : A
open R
foo : Bool
foo = unR (r (unR (r (λ (_ : Bool) → false))
true))
-- before 2010-11-21, an incorrect implementation of eta-contraction
-- reduced foo to (unR true)
-- Error message was (due to clause compilation):
-- Incomplete pattern matching
data _==_ {A : Set}(a : A) : A -> Set where
refl : a == a
test : foo == false
test = refl
| Agda | 5 | shlevy/agda | test/Succeed/Issue366.agda | [
"BSD-3-Clause"
] |
--TEST--
Passing empty filename to exif_read_data() and exif_thumnail()
--EXTENSIONS--
exif
--FILE--
<?php
try {
exif_read_data("");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
try {
exif_thumbnail("");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
try {
exif_read_data("foo\0bar");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
try {
exif_thumbnail("foo\0bar");
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
exif_read_data(): Argument #1 ($file) cannot be empty
exif_thumbnail(): Argument #1 ($file) cannot be empty
exif_read_data(): Argument #1 ($file) must not contain any null bytes
exif_thumbnail(): Argument #1 ($file) must not contain any null bytes
| PHP | 3 | NathanFreeman/php-src | ext/exif/tests/filename_empty.phpt | [
"PHP-3.01"
] |
% my $c = shift;
% $c->stash(handler => 'epl');
Hello Mojo from the template <%= $c->url_for %>! <%= $c->stash('msg') %>
| XProc | 3 | reneeb/mojo | t/mojolicious/templates/foo/index.html.xpl | [
"Artistic-2.0"
] |
CLASS zcl_abapgit_syntax_factory DEFINITION
PUBLIC
ABSTRACT
CREATE PUBLIC .
PUBLIC SECTION.
CLASS-METHODS create
IMPORTING
!iv_filename TYPE string
!iv_hidden_chars TYPE abap_bool DEFAULT abap_false
RETURNING
VALUE(ro_instance) TYPE REF TO zcl_abapgit_syntax_highlighter .
PROTECTED SECTION.
PRIVATE SECTION.
ENDCLASS.
CLASS zcl_abapgit_syntax_factory IMPLEMENTATION.
METHOD create.
" Create instance of highighter dynamically dependent on syntax type
IF iv_filename CP '*.abap'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_abap.
ELSEIF iv_filename CP '*.xml' OR iv_filename CP '*.html'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_xml.
ELSEIF iv_filename CP '*.css'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_css.
ELSEIF iv_filename CP '*.js'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_js.
ELSEIF iv_filename CP '*.json' OR iv_filename CP '*.jsonc'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_json.
ELSEIF iv_filename CP '*.txt' OR iv_filename CP '*.ini' OR iv_filename CP '*.text'.
CREATE OBJECT ro_instance TYPE zcl_abapgit_syntax_txt.
ELSE.
CLEAR ro_instance.
ENDIF.
IF ro_instance IS BOUND.
ro_instance->set_hidden_chars( iv_hidden_chars ).
ENDIF.
ENDMETHOD.
ENDCLASS.
| ABAP | 4 | gepparta/abapGit | src/syntax/zcl_abapgit_syntax_factory.clas.abap | [
"MIT"
] |
\documentclass{minimal}
\begin{document}
\begin{tabular}{cc}
\begin{tabular}{c}
Cell 1
\end{tabular} &
\begin{tabular}{c}
Cell 2
\end{tabular}
\end{tabular}
\begin{equation}
\begin{aligned}
1 &
& 2 \\
3 &
& 4 \\
\end{aligned}
\end{equation}
\begin{environ*}
A &= 10
\\&= \command{
something
}
\\&= 20
\end{environ*}
\end{document}
| TeX | 2 | tiagoboldt/vimtex | test/tests/test-indentation/test_ampersands_reference.tex | [
"MIT"
] |
#pragma once
#pragma comment (lib, "Secur32.Lib")
/**
This module is a plain C class emulation. The POC written by decoder was in cpp and used some classes
in particular for the local negotiator.
See https://stackoverflow.com/questions/40992945/convert-a-cpp-class-cpp-file-into-a-c-structure-c-file
for how I emulated a class in pure C.
The local negotiator is an object used to handle security an client-server negotiation data. In this
exploit, it is used by elevatorService.c (Rogue WinRM service) in order to store security context
obtained when BITS shoots the Rogue WinRM service, and is required by this service to authenticate.
*/
struct _LocalNegotiator;
typedef void (*negConstructor) (struct _LocalNegotiator*);
typedef void (*negDestructor) (struct _LocalNegotiator*);
typedef void (*Initialize) (struct _LocalNegotiator*);
typedef int (*handle1) (struct _LocalNegotiator*, char*, unsigned short);
typedef int (*handle3) (struct _LocalNegotiator*, char*, unsigned short);
typedef char* (*returnType) (struct _LocalNegotiator*, unsigned short*);
typedef int (*processBytes) (struct _LocalNegotiator*, char*, unsigned short);
typedef struct _LocalNegotiator
{
// Methods as pointer to functions
negConstructor construct;
negDestructor destruct;
handle1 handleType1;
handle3 handleType3;
returnType returnType2;
processBytes processNtlmBytes;
// Arguments
int authResult;
PCtxtHandle phContext;
CredHandle hCred;
SecBufferDesc secClientBufferDesc;
SecBufferDesc secServerBufferDesc;
SecBuffer secClientBuffer;
SecBuffer secServerBuffer;
} LocalNegotiator;
// Constructor and destructor
void Init(LocalNegotiator* this);
void destructNegotiator(LocalNegotiator* this);
// Methods of emulated classes
static int processNtlmBytes(LocalNegotiator* this, char* ntlmBytes, unsigned short len);
static int HandleType1(LocalNegotiator* this, char* ntlmBytes, unsigned short len);
static int HandleType3(LocalNegotiator* this, char* ntlmBytes, unsigned short len);
static char* ReturnType2(LocalNegotiator* this, unsigned short* outbuffer_len);
// Static function
static void InitTokenContextBuffer(PSecBufferDesc pSecBufferDesc, PSecBuffer pSecBuffer);
| C | 4 | OsmanDere/metasploit-framework | external/source/exploits/drunkpotato/Common_Src_Files/LocalNegotiator.h | [
"BSD-2-Clause",
"BSD-3-Clause"
] |
RMF -skipTrash $inData;
RMF -skipTrash $outData;
copyFromLocal $inDataLocal $inData;
| PigLatin | 2 | chekore/azkaban | az-hadoop-jobtype-plugin/src/examples/java-wc/src/upload.pig | [
"Apache-2.0"
] |
module Decorators
function times = |n| -> |f| -> |a, b| {
let r = f(a, b)
return r * n
}
@times(123)
function add = |v, n| -> v + n
| Golo | 3 | golo-lang/golo-jmh-benchmarks | src/main/resources/snippets/golo/decorators.golo | [
"Apache-2.0"
] |
//===--- weak.mm - Weak-pointer tests -------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#include <Foundation/NSObject.h>
#include <objc/runtime.h>
#include "swift/Runtime/HeapObject.h"
#include "swift/Runtime/Metadata.h"
#include "gtest/gtest.h"
using namespace swift;
// A fake definition of Swift runtime's WeakReference.
// This has the proper size and alignment which is all we need.
namespace swift {
class WeakReference { void *value __attribute__((unused)); };
}
// Declare some Objective-C stuff.
extern "C" void objc_release(id);
static unsigned DestroyedObjCCount = 0;
/// A trivial class that increments DestroyedObjCCount when deallocated.
@interface ObjCClass : NSObject @end
@implementation ObjCClass
- (void) dealloc {
DestroyedObjCCount++;
[super dealloc];
}
@end
static HeapObject *make_objc_object() {
return (HeapObject*) [ObjCClass new];
}
// Make a Native Swift object by calling a Swift function.
// _swift_StdlibUnittest_make_swift_object is implemented in StdlibUnittest.
SWIFT_CC(swift) extern "C"
HeapObject *_swift_StdlibUnittest_make_swift_object();
static HeapObject *make_swift_object() {
return _swift_StdlibUnittest_make_swift_object();
}
static unsigned getUnownedRetainCount(HeapObject *object) {
return swift_unownedRetainCount(object) - 1;
}
static void unknown_release(void *value) {
objc_release((id) value);
}
TEST(WeakTest, preconditions) {
swift_release(make_swift_object());
unknown_release(make_objc_object());
}
TEST(WeakTest, simple_swift) {
HeapObject *o1 = make_swift_object();
HeapObject *o2 = make_swift_object();
ASSERT_NE(o1, o2);
ASSERT_NE(o1, nullptr);
ASSERT_NE(o2, nullptr);
WeakReference ref1;
auto res = swift_weakInit(&ref1, o1);
ASSERT_EQ(res, &ref1);
HeapObject *tmp = swift_weakLoadStrong(&ref1);
ASSERT_EQ(tmp, o1);
swift_release(tmp);
tmp = swift_weakLoadStrong(&ref1);
ASSERT_EQ(o1, tmp);
swift_release(tmp);
res = swift_weakAssign(&ref1, o2);
ASSERT_EQ(res, &ref1);
tmp = swift_weakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
swift_release(tmp);
tmp = swift_weakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
swift_release(tmp);
swift_release(o1);
tmp = swift_weakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
swift_release(tmp);
swift_release(o2);
tmp = swift_weakLoadStrong(&ref1);
ASSERT_EQ(nullptr, tmp);
swift_release(tmp);
WeakReference ref2;
res = swift_weakCopyInit(&ref2, &ref1);
ASSERT_EQ(res, &ref2);
WeakReference ref3;
res = swift_weakTakeInit(&ref3, &ref2);
ASSERT_EQ(res, &ref3);
HeapObject *o3 = make_swift_object();
WeakReference ref4; // ref4 = init
res = swift_weakInit(&ref4, o3);
ASSERT_EQ(res, &ref4);
res = swift_weakCopyAssign(&ref4, &ref3);
ASSERT_EQ(res, &ref4);
res = swift_weakTakeAssign(&ref4, &ref3);
ASSERT_EQ(res, &ref4);
swift_weakDestroy(&ref4);
swift_weakDestroy(&ref1);
swift_release(o3);
}
TEST(WeakTest, simple_objc) {
void *o1 = make_objc_object();
void *o2 = make_objc_object();
ASSERT_NE(o1, o2);
ASSERT_NE(o1, nullptr);
ASSERT_NE(o2, nullptr);
DestroyedObjCCount = 0;
WeakReference ref1;
swift_unknownObjectWeakInit(&ref1, o1);
void *tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(tmp, o1);
unknown_release(tmp);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o1, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
swift_unknownObjectWeakAssign(&ref1, o2);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
unknown_release(o1);
ASSERT_EQ(1U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(1U, DestroyedObjCCount);
unknown_release(o2);
ASSERT_EQ(2U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(nullptr, tmp);
unknown_release(tmp);
ASSERT_EQ(2U, DestroyedObjCCount);
swift_unknownObjectWeakDestroy(&ref1);
}
TEST(WeakTest, simple_swift_as_unknown) {
void *o1 = make_swift_object();
void *o2 = make_swift_object();
ASSERT_NE(o1, o2);
ASSERT_NE(o1, nullptr);
ASSERT_NE(o2, nullptr);
WeakReference ref1;
swift_unknownObjectWeakInit(&ref1, o1);
void *tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(tmp, o1);
unknown_release(tmp);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o1, tmp);
unknown_release(tmp);
swift_unknownObjectWeakAssign(&ref1, o2);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
unknown_release(o1);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
unknown_release(o2);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(nullptr, tmp);
unknown_release(tmp);
swift_unknownObjectWeakDestroy(&ref1);
}
TEST(WeakTest, simple_swift_and_objc) {
void *o1 = make_swift_object();
void *o2 = make_objc_object();
ASSERT_NE(o1, o2);
ASSERT_NE(o1, nullptr);
ASSERT_NE(o2, nullptr);
DestroyedObjCCount = 0;
WeakReference ref1;
swift_unknownObjectWeakInit(&ref1, o1);
void *tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(tmp, o1);
unknown_release(tmp);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o1, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
swift_unknownObjectWeakAssign(&ref1, o2);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
unknown_release(o1);
ASSERT_EQ(0U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
unknown_release(o2);
ASSERT_EQ(1U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(nullptr, tmp);
unknown_release(tmp);
ASSERT_EQ(1U, DestroyedObjCCount);
swift_unknownObjectWeakDestroy(&ref1);
}
TEST(WeakTest, simple_objc_and_swift) {
void *o1 = make_objc_object();
void *o2 = make_swift_object();
ASSERT_NE(o1, o2);
ASSERT_NE(o1, nullptr);
ASSERT_NE(o2, nullptr);
DestroyedObjCCount = 0;
WeakReference ref1;
auto res = swift_unknownObjectWeakInit(&ref1, o1);
ASSERT_EQ(&ref1, res);
void *tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(tmp, o1);
unknown_release(tmp);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o1, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
swift_unknownObjectWeakAssign(&ref1, o2);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(0U, DestroyedObjCCount);
unknown_release(o1);
ASSERT_EQ(1U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(o2, tmp);
unknown_release(tmp);
ASSERT_EQ(1U, DestroyedObjCCount);
unknown_release(o2);
ASSERT_EQ(1U, DestroyedObjCCount);
tmp = swift_unknownObjectWeakLoadStrong(&ref1);
ASSERT_EQ(nullptr, tmp);
unknown_release(tmp);
ASSERT_EQ(1U, DestroyedObjCCount);
swift_unknownObjectWeakDestroy(&ref1);
}
TEST(WeakTest, objc_unowned_basic) {
UnownedReference ref;
void *objc1 = make_objc_object();
void *objc2 = make_objc_object();
HeapObject *swift1 = make_swift_object();
HeapObject *swift2 = make_swift_object();
ASSERT_NE(objc1, objc2);
ASSERT_NE(swift1, swift2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
ASSERT_EQ(0U, getUnownedRetainCount(swift2));
void *result;
// ref = swift1
swift_unknownObjectUnownedInit(&ref, swift1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref);
ASSERT_EQ(swift1, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
swift_unknownObjectUnownedDestroy(&ref);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
// ref = objc1
swift_unknownObjectUnownedInit(&ref, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref = objc1 (objc self transition)
swift_unknownObjectUnownedAssign(&ref, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref = objc2 (objc -> objc transition)
swift_unknownObjectUnownedAssign(&ref, objc2);
result = swift_unknownObjectUnownedLoadStrong(&ref);
ASSERT_EQ(objc2, result);
swift_unknownObjectRelease(result);
// ref = swift1 (objc -> swift transition)
swift_unknownObjectUnownedAssign(&ref, swift1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref);
ASSERT_EQ(swift1, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
// ref = swift1 (swift self transition)
swift_unknownObjectUnownedAssign(&ref, swift1);
result = swift_unknownObjectUnownedLoadStrong(&ref);
ASSERT_EQ(swift1, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
// ref = swift2 (swift -> swift transition)
swift_unknownObjectUnownedAssign(&ref, swift2);
result = swift_unknownObjectUnownedLoadStrong(&ref);
ASSERT_EQ(swift2, result);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
ASSERT_EQ(1U, getUnownedRetainCount(swift2));
swift_unknownObjectRelease(result);
// ref = objc1 (swift -> objc transition)
swift_unknownObjectUnownedAssign(&ref, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref);
ASSERT_EQ(objc1, result);
ASSERT_EQ(0U, getUnownedRetainCount(swift2));
swift_unknownObjectRelease(result);
swift_unknownObjectUnownedDestroy(&ref);
swift_unknownObjectRelease(objc1);
swift_unknownObjectRelease(objc2);
swift_unknownObjectRelease(swift1);
swift_unknownObjectRelease(swift2);
}
TEST(WeakTest, objc_unowned_takeStrong) {
UnownedReference ref;
void *objc1 = make_objc_object();
HeapObject *swift1 = make_swift_object();
void *result;
// ref = objc1
swift_unknownObjectUnownedInit(&ref, objc1);
result = swift_unknownObjectUnownedTakeStrong(&ref);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref = swift1
swift_unknownObjectUnownedInit(&ref, swift1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedTakeStrong(&ref);
ASSERT_EQ(swift1, result);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
swift_unknownObjectRelease(objc1);
swift_unknownObjectRelease(swift1);
}
TEST(WeakTest, objc_unowned_copyInit_nil) {
UnownedReference ref1;
UnownedReference ref2;
void *result;
// ref1 = nil
swift_unknownObjectUnownedInit(&ref1, nullptr);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(nullptr, result);
// ref2 = ref1 (nil -> nil)
auto res = swift_unknownObjectUnownedCopyInit(&ref2, &ref1);
ASSERT_EQ(&ref2, res);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(nullptr, result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(nullptr, result);
swift_unknownObjectUnownedDestroy(&ref2);
}
TEST(WeakTest, objc_unowned_copyInit_objc) {
UnownedReference ref1;
UnownedReference ref2;
void *result;
void *objc1 = make_objc_object();
// ref1 = objc1
swift_unknownObjectUnownedInit(&ref1, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref2 = ref1 (objc -> objc)
swift_unknownObjectUnownedCopyInit(&ref2, &ref1);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
swift_unknownObjectUnownedDestroy(&ref2);
swift_unknownObjectUnownedDestroy(&ref1);
swift_unknownObjectRelease(objc1);
}
TEST(WeakTest, objc_unowned_copyInit_swift) {
UnownedReference ref1;
UnownedReference ref2;
void *result;
HeapObject *swift1 = make_swift_object();
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
// ref1 = swift1
swift_unknownObjectUnownedInit(&ref1, swift1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
// ref2 = ref1 (swift -> swift)
swift_unknownObjectUnownedCopyInit(&ref2, &ref1);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
swift_unknownObjectUnownedDestroy(&ref2);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
// ref2 = ref1
// ref2 = nil
swift_unknownObjectUnownedCopyInit(&ref2, &ref1);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
swift_unknownObjectUnownedAssign(&ref2, nullptr);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(nullptr, result);
swift_unknownObjectRelease(result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectUnownedDestroy(&ref2);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectUnownedDestroy(&ref1);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(swift1);
}
TEST(WeakTest, objc_unowned_takeInit_nil) {
UnownedReference ref1;
UnownedReference ref2;
void *result;
// ref1 = nil
swift_unknownObjectUnownedInit(&ref1, nullptr);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(nullptr, result);
// ref2 = ref1 (nil -> nil)
auto res = swift_unknownObjectUnownedTakeInit(&ref2, &ref1);
ASSERT_EQ(&ref2, res);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(nullptr, result);
swift_unknownObjectUnownedDestroy(&ref2);
}
TEST(WeakTest, objc_unowned_takeInit_objc) {
UnownedReference ref1;
UnownedReference ref2;
void *result;
void *objc1 = make_objc_object();
// ref1 = objc1
swift_unknownObjectUnownedInit(&ref1, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref2 = ref1 (objc -> objc)
swift_unknownObjectUnownedTakeInit(&ref2, &ref1);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
swift_unknownObjectUnownedDestroy(&ref2);
swift_unknownObjectRelease(objc1);
}
TEST(WeakTest, objc_unowned_takeInit_swift) {
UnownedReference ref1;
UnownedReference ref2;
void *result;
HeapObject *swift1 = make_swift_object();
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
// ref1 = swift1
swift_unknownObjectUnownedInit(&ref1, swift1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
// ref2 = ref1 (swift -> swift)
swift_unknownObjectUnownedTakeInit(&ref2, &ref1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectUnownedDestroy(&ref2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
// ref1 = swift1
swift_unknownObjectUnownedInit(&ref1, swift1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
// ref2 = ref1
// ref2 = nil
swift_unknownObjectUnownedTakeInit(&ref2, &ref1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectUnownedAssign(&ref2, nullptr);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(nullptr, result);
swift_unknownObjectUnownedDestroy(&ref2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(swift1);
}
TEST(WeakTest, objc_unowned_copyAssign) {
UnownedReference ref1;
UnownedReference ref2;
void *objc1 = make_objc_object();
void *objc2 = make_objc_object();
HeapObject *swift1 = make_swift_object();
HeapObject *swift2 = make_swift_object();
ASSERT_NE(objc1, objc2);
ASSERT_NE(swift1, swift2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
ASSERT_EQ(0U, getUnownedRetainCount(swift2));
void *result;
// ref1 = objc1
swift_unknownObjectUnownedInit(&ref1, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref2 = objc1
swift_unknownObjectUnownedInit(&ref2, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref1 = ref2 (objc self transition)
auto res = swift_unknownObjectUnownedCopyAssign(&ref1, &ref2);
ASSERT_EQ(&ref1, res);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref2 = objc2
swift_unknownObjectUnownedAssign(&ref2, objc2);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc2, result);
swift_unknownObjectRelease(result);
// ref1 = ref2 (objc -> objc transition)
swift_unknownObjectUnownedCopyAssign(&ref1, &ref2);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc2, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc2, result);
swift_unknownObjectRelease(result);
// ref2 = swift1
swift_unknownObjectUnownedAssign(&ref2, swift1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift1, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
// ref1 = ref2 (objc -> swift transition)
swift_unknownObjectUnownedCopyAssign(&ref1, &ref2);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
// ref2 = swift1
swift_unknownObjectUnownedAssign(&ref2, swift1);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
// ref1 = ref2 (swift self transition)
swift_unknownObjectUnownedCopyAssign(&ref1, &ref2);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift1, result);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
// ref2 = swift2
swift_unknownObjectUnownedAssign(&ref2, swift2);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
ASSERT_EQ(1U, getUnownedRetainCount(swift2));
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift2, result);
swift_unknownObjectRelease(result);
// ref1 = ref2 (swift -> swift transition)
swift_unknownObjectUnownedCopyAssign(&ref1, &ref2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
ASSERT_EQ(2U, getUnownedRetainCount(swift2));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift2, result);
ASSERT_EQ(2U, getUnownedRetainCount(swift2));
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift2, result);
ASSERT_EQ(2U, getUnownedRetainCount(swift2));
swift_unknownObjectRelease(result);
// ref2 = objc1
swift_unknownObjectUnownedAssign(&ref2, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc1, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift2));
swift_unknownObjectRelease(result);
// ref1 = ref2 (swift -> objc transition)
swift_unknownObjectUnownedCopyAssign(&ref1, &ref2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
ASSERT_EQ(0U, getUnownedRetainCount(swift2));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
swift_unknownObjectUnownedDestroy(&ref1);
swift_unknownObjectUnownedDestroy(&ref2);
swift_unknownObjectRelease(objc1);
swift_unknownObjectRelease(objc2);
swift_unknownObjectRelease(swift1);
swift_unknownObjectRelease(swift2);
}
TEST(WeakTest, objc_unowned_takeAssign) {
UnownedReference ref1;
UnownedReference ref2;
void *objc1 = make_objc_object();
void *objc2 = make_objc_object();
HeapObject *swift1 = make_swift_object();
HeapObject *swift2 = make_swift_object();
ASSERT_NE(objc1, objc2);
ASSERT_NE(swift1, swift2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
ASSERT_EQ(0U, getUnownedRetainCount(swift2));
void *result;
// ref1 = objc1
auto res = swift_unknownObjectUnownedInit(&ref1, objc1);
ASSERT_EQ(&ref1, res);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref2 = objc1
swift_unknownObjectUnownedInit(&ref2, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref1 = ref2 (objc self transition)
res = swift_unknownObjectUnownedTakeAssign(&ref1, &ref2);
ASSERT_EQ(&ref1, res);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
// ref2 = objc2
swift_unknownObjectUnownedInit(&ref2, objc2);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc2, result);
swift_unknownObjectRelease(result);
// ref1 = ref2 (objc -> objc transition)
swift_unknownObjectUnownedTakeAssign(&ref1, &ref2);
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc2, result);
swift_unknownObjectRelease(result);
// ref2 = swift1
swift_unknownObjectUnownedInit(&ref2, swift1);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift1, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
// ref1 = ref2 (objc -> swift transition)
swift_unknownObjectUnownedTakeAssign(&ref1, &ref2);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
// ref2 = swift1
swift_unknownObjectUnownedInit(&ref2, swift1);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift1, result);
swift_unknownObjectRelease(result);
ASSERT_EQ(2U, getUnownedRetainCount(swift1));
// ref1 = ref2 (swift self transition)
swift_unknownObjectUnownedTakeAssign(&ref1, &ref2);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift1, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
swift_unknownObjectRelease(result);
// ref2 = swift2
swift_unknownObjectUnownedInit(&ref2, swift2);
ASSERT_EQ(1U, getUnownedRetainCount(swift1));
ASSERT_EQ(1U, getUnownedRetainCount(swift2));
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(swift2, result);
swift_unknownObjectRelease(result);
// ref1 = ref2 (swift -> swift transition)
swift_unknownObjectUnownedTakeAssign(&ref1, &ref2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
ASSERT_EQ(1U, getUnownedRetainCount(swift2));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(swift2, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift2));
swift_unknownObjectRelease(result);
// ref2 = objc1
swift_unknownObjectUnownedInit(&ref2, objc1);
result = swift_unknownObjectUnownedLoadStrong(&ref2);
ASSERT_EQ(objc1, result);
ASSERT_EQ(1U, getUnownedRetainCount(swift2));
swift_unknownObjectRelease(result);
// ref1 = ref2 (swift -> objc transition)
swift_unknownObjectUnownedTakeAssign(&ref1, &ref2);
ASSERT_EQ(0U, getUnownedRetainCount(swift1));
ASSERT_EQ(0U, getUnownedRetainCount(swift2));
result = swift_unknownObjectUnownedLoadStrong(&ref1);
ASSERT_EQ(objc1, result);
swift_unknownObjectRelease(result);
swift_unknownObjectUnownedDestroy(&ref1);
swift_unknownObjectRelease(objc1);
swift_unknownObjectRelease(objc2);
swift_unknownObjectRelease(swift1);
swift_unknownObjectRelease(swift2);
}
TEST(WeakTest, objc_unowned_isEqual_DeathTest) {
::testing::FLAGS_gtest_death_test_style = "threadsafe";
DestroyedObjCCount = 0;
UnownedReference ref1;
UnownedReference ref2;
void *objc1 = make_objc_object();
void *objc2 = make_objc_object();
HeapObject *swift1 = make_swift_object();
HeapObject *swift2 = make_swift_object();
// ref1 = swift1
swift_unownedInit(&ref1, swift1);
ASSERT_EQ(true, swift_unownedIsEqual(&ref1, swift1));
ASSERT_EQ(false, swift_unownedIsEqual(&ref1, swift2));
ASSERT_EQ(true, swift_unknownObjectUnownedIsEqual(&ref1, swift1));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref1, swift2));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref1, objc1));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref1, objc2));
// ref2 = objc1
swift_unknownObjectUnownedInit(&ref2, objc1);
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref2, swift1));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref2, swift2));
ASSERT_EQ(true, swift_unknownObjectUnownedIsEqual(&ref2, objc1));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref2, objc2));
// Deinit the assigned objects, invalidating ref1 and ref2
swift_release(swift1);
ASSERT_DEATH(swift_unownedCheck(swift1),
"Attempted to read an unowned reference");
ASSERT_EQ(0U, DestroyedObjCCount);
swift_unknownObjectRelease(objc1);
ASSERT_EQ(1U, DestroyedObjCCount);
// Unequal does not abort, even after invalidation
// Equal but invalidated does abort (Swift)
// Formerly equal but now invalidated returns unequal (ObjC)
ASSERT_DEATH(swift_unownedIsEqual(&ref1, swift1),
"Attempted to read an unowned reference");
ASSERT_EQ(false, swift_unownedIsEqual(&ref1, swift2));
ASSERT_DEATH(swift_unknownObjectUnownedIsEqual(&ref1, swift1),
"Attempted to read an unowned reference");
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref1, swift2));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref1, objc1));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref1, objc2));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref2, swift1));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref2, swift2));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref2, objc1));
ASSERT_EQ(false, swift_unknownObjectUnownedIsEqual(&ref2, objc2));
swift_release(swift2);
swift_unknownObjectRelease(objc2);
swift_unownedDestroy(&ref1);
swift_unknownObjectUnownedDestroy(&ref2);
}
TEST(WeakTest, unknownWeak) {
void *objc1 = make_objc_object();
HeapObject *swift1 = make_swift_object();
WeakReference ref1;
auto res = swift_unknownObjectWeakInit(&ref1, objc1);
ASSERT_EQ(&ref1, res);
WeakReference ref2;
res = swift_unknownObjectWeakCopyInit(&ref2, &ref1);
ASSERT_EQ(&ref2, res);
WeakReference ref3; // ref2 dead.
res = swift_unknownObjectWeakTakeInit(&ref3, &ref2);
ASSERT_EQ(&ref3, res);
res = swift_unknownObjectWeakAssign(&ref3, swift1);
ASSERT_EQ(&ref3, res);
res = swift_unknownObjectWeakCopyAssign(&ref3, &ref1);
ASSERT_EQ(&ref3, res);
res = swift_unknownObjectWeakTakeAssign(&ref3, &ref1);
ASSERT_EQ(&ref3, res);
swift_unknownObjectWeakDestroy(&ref3);
swift_release(swift1);
swift_unknownObjectRelease(objc1);
}
| Objective-C++ | 5 | lwhsu/swift | unittests/runtime/weak.mm | [
"Apache-2.0"
] |
module TestPsci.CommandTest where
import Prelude ()
import Prelude.Compat
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Trans.RWS.Strict (get)
import Language.PureScript (moduleNameFromString)
import Language.PureScript.Interactive
import System.FilePath ((</>))
import System.Directory (getCurrentDirectory)
import Test.Hspec
import TestPsci.TestEnv
specPSCi :: String -> TestPSCi () -> Spec
specPSCi label = specify label . execTestPSCi
commandTests :: Spec
commandTests = context "commandTests" $ do
specPSCi ":clear" $ do
run "import Prelude"
run "import Data.Functor"
run "import Control.Monad"
ms <- psciImportedModules <$> get
length ms `equalsTo` 3
run ":clear"
ms' <- psciImportedModules <$> get
length ms' `equalsTo` 0
specPSCi ":reload" $ do
run "import Prelude"
run "import Data.Functor"
run "import Control.Monad"
ms <- psciImportedModules <$> get
length ms `equalsTo` 3
run ":reload"
ms' <- psciImportedModules <$> get
length ms' `equalsTo` 3
specPSCi ":complete" $ do
":complete ma" `prints` []
":complete Data.Functor.ma" `prints` []
run "import Data.Functor"
":complete ma" `prints` unlines ["map", "mapFlipped"]
run "import Control.Monad as M"
":complete M.a" `prints` unlines ["M.ap", "M.apply"]
specPSCi ":browse" $ do
":browse Data.Void" `printed` flip shouldContain "data Void"
":browse Data.Void" `printed` flip shouldContain "absurd ::"
specPSCi ":reload, :browse" $ do
cwd <- liftIO getCurrentDirectory
let new = cwd </> "tests" </> "support" </> "psci" </> "Reload.edit"
":browse Reload" `printed` flip shouldContain "reload ::"
":browse Reload" `printed` flip shouldNotContain "edited ::"
simulateModuleEdit (moduleNameFromString "Reload") new $ do
run ":reload"
":browse Reload" `printed` flip shouldNotContain "reload ::"
":browse Reload" `printed` flip shouldContain "edited ::"
":browse Mirp" `printed` flip shouldContain "is not valid"
":browse Prim" `printed` flip shouldContain "class Partial"
specPSCi ":print" $ do
let failMsg = "Unable to set the repl's printing function"
let interactivePrintModuleShouldBe modName = do
modName' <- fst . psciInteractivePrint <$> get
modName' `equalsTo` modName
run "import Prelude"
":print Prelude.show" `printed` flip shouldContain failMsg
interactivePrintModuleShouldBe (moduleNameFromString "PSCI.Support")
":print InteractivePrint.unsafeEval" `printed` flip shouldNotContain failMsg
"(identity :: _ -> _)" `printed` flip shouldContain "[Function]"
interactivePrintModuleShouldBe (moduleNameFromString "InteractivePrint")
":print" `printed` flip shouldContain "InteractivePrint"
| Haskell | 5 | dunhamsteve/purescript | tests/TestPsci/CommandTest.hs | [
"BSD-3-Clause"
] |
#ifndef TH_GENERIC_FILE
#error "You must define TH_GENERIC_FILE before including THGenerateCharType.h"
#endif
#define scalar_t int8_t
#define accreal int64_t
#define Real Char
#define TH_REAL_IS_CHAR
#line 1 TH_GENERIC_FILE
#include TH_GENERIC_FILE
#undef scalar_t
#undef accreal
#undef Real
#undef TH_REAL_IS_CHAR
#ifndef THGenerateManyTypes
#undef TH_GENERIC_FILE
#endif
| C | 2 | Hacky-DH/pytorch | aten/src/TH/THGenerateCharType.h | [
"Intel"
] |
#define TORCH_ASSERT_NO_OPERATORS
#include <ATen/native/TensorIterator.h>
#include <ATen/native/cuda/Reduce.cuh>
#include <ATen/native/DispatchStub.h>
#include <ATen/native/SharedReduceOps.h>
#include <ATen/native/ReduceOps.h>
#include <ATen/Dispatch.h>
namespace at { namespace native {
void and_kernel_cuda(TensorIterator& iter) {
AT_DISPATCH_ALL_TYPES_AND_COMPLEX_AND3(
kHalf, kBFloat16, kBool, iter.common_dtype(), "and_cuda", [&]() {
gpu_reduce_kernel<scalar_t, bool>(
iter,
func_wrapper<bool>([] GPU_LAMBDA(scalar_t a, scalar_t b) -> bool {
return (static_cast<bool>(a) && static_cast<bool>(b));
}),
true);
});
}
void or_kernel_cuda(TensorIterator& iter) {
AT_DISPATCH_ALL_TYPES_AND_COMPLEX_AND3(
kHalf, kBFloat16, kBool, iter.common_dtype(), "or_cuda", [&]() {
gpu_reduce_kernel<scalar_t, bool>(
iter,
func_wrapper<bool>([] GPU_LAMBDA(scalar_t a, scalar_t b) -> bool {
return (static_cast<bool>(a) || static_cast<bool>(b));
}),
false);
});
}
REGISTER_DISPATCH(and_stub, &and_kernel_cuda);
REGISTER_DISPATCH(or_stub, &or_kernel_cuda);
}} // namespace at::native
| Cuda | 4 | xiaohanhuang/pytorch | aten/src/ATen/native/cuda/ReduceLogicKernel.cu | [
"Intel"
] |
abstract class A1 : CharSequence {}
abstract class A2 : CharSequence {
override fun get(index: Int) = 'z';
}
// 2 public final bridge charAt | Kotlin | 3 | qussarah/declare | compiler/testData/codegen/bytecodeText/builtinFunctions/charSequence.kt | [
"Apache-2.0"
] |
# Fails in 0.5.0-dev+3385, probably because the parser has changed
T ==(2,2) # is an expression with Head '=='
T [1,2,3][2] == 2
## Head of Mxpr is Julia function
ClearAll(f,g,x,c)
# We use an anonymous function to avoid the redefinition warning if this test
# is run more than once.
g = J( (x) -> mpow(x,2) ) # g is SJulia Symbol bound to Julia Function
# Creates Mxpr with head of type Function.
# The apprule for head Function is to call it on the args
T g(3) == 9
T g(c) == c^2
ClearAll(f,g,x,c)
## SetDelay for SJSym
Clear(a,b,c)
T a == a
## Remove these, I think
# T (a == b) != False
# T (a != b) != True
# T (a != b) != False
T Head(a == b) == Equal
T Head(a != b) == Unequal
T (1 < 2) == True
T (1 < 2 < 3) == True
T (1 < 3 < 2) == False
T Head(a == a != b) == Unequal
T (a != a == b) == False
(a = 1)
(b = a)
(c := a)
(a = 2)
T (b) == 1
T (c) == 2
Clear(a,b,res)
res = a * b
a = 1
T res == b # test fix for bug in commit 6565
Clear(a,b,c,g)
a = g
T a(b) == g(b)
Clear(a,g)
ClearAll(a,b,x,y)
## Destructured
[a,b] = [1,2]
T [a,b] == [1,2]
[a,b] = [b,a]
T [a,b] == [2,1]
# Test non-Symbol Head for Mxpr
ClearAll(a,c,f,b)
a = f(c)
b = ReplaceAll(a, f => 4) # Parser will not allow us to construct 4(c)
T Head(b) == 4
T Head(Apply(5.0,[1,2,3])) == 5.0
ClearAll(a,c,f,b)
ClearAll(g,h,x,m,y)
m = [g,h]
g(x_) := x^2
h(x_) := x^3
T m[1](y) == y^2
T m[2](y) == y^3
ClearAll(g,h,x,m,y)
# Test replacement
ClearAll(a,b,c,g)
cossinrule = Cos(x_)^2 + Sin(x_)^2 => 1
# Does not match
T (Replace( Cos(a+b)^2 + Sin(a+c)^2, cossinrule)) == (Cos(a+b)^2 + Sin(a+c)^2)
# Does not match
T (Replace( Cos(a+b)^2 + Sin(a+b)^2, cossinrule)) == 1
# One level down. Does not match
T Replace( g(Cos(a+b)^2 + Sin(a+b)^2), cossinrule) == g(Cos(a + b)^2 + Sin(a + b)^2)
# Match at every level
T ReplaceAll( g(Cos(a+b)^2 + Sin(a+b)^2), cossinrule) == g(1)
ClearAll(cossinrule)
T Replace( a , a => 1) == 1
T Replace( b , a => 1) == b
# ClearAll(a,b)
## Set a Julia variable
(SetJ(a,"cat"))
T J( Main.a == "cat" )
## Test compound expression
Clear(a)
res = ( a = 3, 4)
T a == 3
T res == 4
Clear(a,res)
ClearAll(f,a,b)
f(x_) := ( a = 1, x + 1 )
T f(b) == b + 1
ClearAll(f,a,b)
## Special rule
T Cos(ArcCos(x)) == x
T Attributes(Plus) == [Flat,Listable,NumericFunction,OneIdentity,Orderless,Protected]
## Orderless
ClearAll(f,a,c,z)
T Apply(List,f(z,c,a)) == [z,c,a]
ClearAll(f,a,c,z,g,res,x)
| Objective-J | 4 | UnofficialJuliaMirrorSnapshots/Symata.jl-a906b1d5-d016-55c4-aab3-8a20cba0db2a | symata_test/mxpr_test.sj | [
"MIT"
] |
#pragma rtGlobals=3
Function FooBar()
return 0
End
Function FooBarSubType() : ButtonControl
return 0
End
Function/D FooBarVar()
return 0
End
static Function FooBarStatic()
return 0
End
threadsafe static Function FooBarStaticThreadsafe()
return 0
End
threadsafe Function FooBarThread()
return 0
End
Function CallOperationsAndBuiltInFuncs(string var)
string someDQString = "abcd"
Make/N=(1,2,3,4) root:myWave/WAVE=myWave
Redimension/N=(-1,-1,-1,5) myWave
print strlen(someDQString)
return 0
End
| IGOR Pro | 4 | gunterkoenigsmann/linguist | samples/IGOR Pro/functions.ipf | [
"MIT"
] |
[{
"@id": "http://example.org/test#example1",
"http://example.org/vocab#date": [{
"@value": "2011-01-25T00:00:00Z",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
}],
"http://example.org/vocab#embed": [{
"@id": "http://example.org/test#example2",
"http://example.org/vocab#parent": [{
"@id": "http://example.org/test#example1"
}]
}]
}] | JSONLD | 2 | fsteeg/json-ld-api | tests/expand/0007-out.jsonld | [
"W3C"
] |
#! /bin/sh /usr/share/dpatch/dpatch-run
## 05_amd64_fix.dpatch by Steve Kemp <[email protected]>
##
## DP: Compile under AMD64, Closes #254002.
@DPATCH@
diff -urNad --exclude=CVS --exclude=.svn ./configure /tmp/dpep-work.GyEpgc/dsniff-2.4b1/configure
--- ./configure 2005-06-23 03:30:37.000000000 +0000
+++ /tmp/dpep-work.GyEpgc/dsniff-2.4b1/configure 2005-06-23 04:15:59.000000000 +0000
@@ -2667,15 +2667,62 @@
echo "$ac_t""no" 1>&6
fi
+echo $ac_n "checking for __dn_expand in -lresolv""... $ac_c" 1>&6
+echo "configure:2672: checking for __dn_expand in -lresolv" >&5
+ac_lib_var=`echo resolv'_'__dn_expand | sed 'y%./+-%__p_%'`
+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+else
+ ac_save_LIBS="$LIBS"
+LIBS="-lresolv $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 2680 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char __dn_expand();
+
+int main() {
+__dn_expand()
+; return 0; }
+EOF
+if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
+ cat >> confdefs.h <<EOF
+#define $ac_tr_lib 1
+EOF
+
+ LIBS="-lresolv $LIBS"
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+
for ac_func in dirname strlcpy strlcat strsep
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2674: checking for $ac_func" >&5
+echo "configure:2721: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2679 "configure"
+#line 2726 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2698,7 +2745,7 @@
; return 0; }
EOF
-if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2728,12 +2775,12 @@
for ac_func in MD5Update
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2732: checking for $ac_func" >&5
+echo "configure:2779: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2737 "configure"
+#line 2784 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2756,7 +2803,7 @@
; return 0; }
EOF
-if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2788,12 +2835,12 @@
for ac_func in warnx
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2792: checking for $ac_func" >&5
+echo "configure:2839: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2797 "configure"
+#line 2844 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2816,7 +2863,7 @@
; return 0; }
EOF
-if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2848,12 +2895,12 @@
for ac_func in ether_ntoa
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2852: checking for $ac_func" >&5
+echo "configure:2899: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 2857 "configure"
+#line 2904 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -2876,7 +2923,7 @@
; return 0; }
EOF
-if { (eval echo configure:2880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -2912,7 +2959,7 @@
fi
echo $ac_n "checking for Berkeley DB with 1.85 compatibility""... $ac_c" 1>&6
-echo "configure:2916: checking for Berkeley DB with 1.85 compatibility" >&5
+echo "configure:2963: checking for Berkeley DB with 1.85 compatibility" >&5
# Check whether --with-db or --without-db was given.
if test "${with_db+set}" = set; then
withval="$with_db"
@@ -3015,7 +3062,7 @@
echo $ac_n "checking for libpcap""... $ac_c" 1>&6
-echo "configure:3019: checking for libpcap" >&5
+echo "configure:3066: checking for libpcap" >&5
# Check whether --with-libpcap or --without-libpcap was given.
if test "${with_libpcap+set}" = set; then
withval="$with_libpcap"
@@ -3063,7 +3110,7 @@
echo $ac_n "checking for libnet""... $ac_c" 1>&6
-echo "configure:3067: checking for libnet" >&5
+echo "configure:3114: checking for libnet" >&5
# Check whether --with-libnet or --without-libnet was given.
if test "${with_libnet+set}" = set; then
withval="$with_libnet"
@@ -3110,7 +3157,7 @@
echo $ac_n "checking for libnids""... $ac_c" 1>&6
-echo "configure:3114: checking for libnids" >&5
+echo "configure:3161: checking for libnids" >&5
# Check whether --with-libnids or --without-libnids was given.
if test "${with_libnids+set}" = set; then
withval="$with_libnids"
@@ -3152,9 +3199,9 @@
save_cppflags="$CPPFLAGS"
CPPFLAGS="$NIDSINC"
echo $ac_n "checking whether libnids version is good""... $ac_c" 1>&6
-echo "configure:3156: checking whether libnids version is good" >&5
+echo "configure:3203: checking whether libnids version is good" >&5
cat > conftest.$ac_ext <<EOF
-#line 3158 "configure"
+#line 3205 "configure"
#include "confdefs.h"
#include <nids.h>
EOF
@@ -3173,7 +3220,7 @@
echo $ac_n "checking for OpenSSL""... $ac_c" 1>&6
-echo "configure:3177: checking for OpenSSL" >&5
+echo "configure:3224: checking for OpenSSL" >&5
# Check whether --with-openssl or --without-openssl was given.
if test "${with_openssl+set}" = set; then
withval="$with_openssl"
diff -urNad --exclude=CVS --exclude=.svn ./configure.in /tmp/dpep-work.GyEpgc/dsniff-2.4b1/configure.in
--- ./configure.in 2005-06-23 03:30:37.000000000 +0000
+++ /tmp/dpep-work.GyEpgc/dsniff-2.4b1/configure.in 2005-06-23 04:16:01.000000000 +0000
@@ -57,6 +57,7 @@
AC_CHECK_LIB(nsl, gethostbyname)
dnl XXX - feh, everything except OpenBSD sux.
AC_CHECK_LIB(resolv, dn_expand)
+AC_CHECK_LIB(resolv, __dn_expand)
AC_REPLACE_FUNCS(dirname strlcpy strlcat strsep)
needmd5=no
AC_CHECK_FUNCS(MD5Update, , [needmd5=yes])
| Darcs Patch | 3 | acheong08/dsniff | debian/patches/05_amd64_fix.dpatch | [
"BSD-3-Clause"
] |
.class public stack_var4
.super java/lang/Object
.method public <init>()V
aload_0
invokenonvirtual java/lang/Object/<init>()V
return
.end method
.method public f()I
.limit stack 5
.limit locals 4
;; 0->var1
;; 1->var2
;; 2->var3
iconst_0
istore_1
iconst_1
istore_2
iconst_2
istore_3
;; push local var3 / var2 / var1
iload_3
iload_2
iload_1
;; push var1 in front of var3
dup_x2
;; add one to local var 1
iinc 1 1
pop
pop
pop
;; incremented copy on stack
ireturn
.end method
| Jasmin | 4 | mauguignard/cbmc | jbmc/regression/jbmc/stack_var4/stack_var4.j | [
"BSD-4-Clause"
] |
set map732five(s,ns73) "Mapping fra 73 til 5 brancher" /
cBol . (68203,68204)
cPub . (72002,84101,84202,85202,86000,87880,90920)
CCON . (41430)
cVar . (19000,
35001,35002,35003,36000,
01000,02000,03000,
0600a,0600b,08090,
10120,
13150,16000,17000,18000,20000,21000,22000,23000,
24000,25000,26000,27000,28000,29000,30000,31320,33000)
cTje . (50000,
64000,65000,66000,
37390,45000,47000,49000,52000,55560,59600,68100,
68300,69700,71000,72001,73000,74750,77000,78000,
85101,93000,94000,95000,96000,97000,
46000,51000,53000,58000,61000,62630,79000,80820)
/;
# set mapj2ps(ps,j) "Mapping commodities to producer" /
# ND . (01000, 02000, 03000, 0600a, 0600b, 08090, 10120,
# 13150, 16000, 17000, 18000, 20000, 21000, 22000,
# 23000, 24000, 25000, 26000, 27000, 28000, 29000,
# 30000, 31320, 33000, 19000, 35001, 35002, 35003,
# 36000, 37390, 45000, 47000, 49000, 52000, 55560,
# 59600, 69700, 71000, 72001, 73000, 74750, 77000,
# 78000, 85101, 93000, 94000, 95000, 96000, 97000,
# 41430, 46000, 51000, 53000, 58000, 61000, 62630,
# 79000, 80820, 50000, 64000, 65000, 66000, 68100,
# 68300, 72002, 84101, 84202, 85202, 86000, 87880,
# 90920)
# D . (68203, 68204)
# /;
set mapnum52five(s,num5) "Mapping unclassified imports" /
cPub . (o)
cVar . [e,p]
cTje . (t,qs)
/; | GAMS | 3 | gemal/MAKRO | Model/Sets/five.mapping.gms | [
"MIT"
] |
package com.alibaba.json.bvt.parser;
import org.junit.Assert;
import junit.framework.TestCase;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
public class TestUTF8 extends TestCase {
public void test_utf() throws Exception {
JSONObject obj = (JSONObject) JSON.parse("{'name':'刘大'}".getBytes("UTF-8"));
Assert.assertEquals(1, obj.size());
Assert.assertEquals("刘大", obj.get("name"));
}
public void test_utf_cn() throws Exception {
String content = "首先来到村委会,走进农家书屋,认真翻看各种图书和报刊。他拿起一份藏文版《人民日报》,询问村民读书读报的情况,并和正在读书的几位藏族青年亲切交谈,勉励他们好好学习,学以致用,培养致富本领。在党支部活动室,村支部书记桑杰介绍了支部建设情况。当听到全村36名党员发挥先锋模范作用";
JSONObject json = new JSONObject();
json.put("content", content);
JSONObject obj = (JSONObject) JSON.parse(json.toJSONString().getBytes("UTF-8"));
Assert.assertEquals(1, obj.size());
Assert.assertEquals(content, obj.get("content"));
}
public void test_utf_de() throws Exception {
String content = "Beim Griechenland-Gipfel gibt es viele Gewinner. Kanzlerin Merkel bekommt die Bankenbeteiligung, Frankreichs Präsident Sarkozy den Aufkauf von Staatsanleihen. \\nEinzig EZB-Präsident Jean-Claude Trichet gilt als Verlierer. Er zog im Machtkampf den Kürzeren";
JSONObject json = new JSONObject();
json.put("content", content);
JSONObject obj = (JSONObject) JSON.parse(json.toJSONString().getBytes("UTF-8"));
Assert.assertEquals(1, obj.size());
Assert.assertEquals(content, obj.get("content"));
}
public void test_utf_jp() throws Exception {
String content = "菅首相がマニフェストで陳謝";
JSONObject json = new JSONObject();
json.put("content", content);
JSONObject obj = (JSONObject) JSON.parse(json.toJSONString().getBytes("UTF-8"));
Assert.assertEquals(1, obj.size());
Assert.assertEquals(content, obj.get("content"));
}
public void test_utf_() throws Exception {
String content = "Viel Spaß mit Java 7 und Eclipse!";
JSONObject json = new JSONObject();
json.put("content", content);
JSONObject obj = (JSONObject) JSON.parse(json.toJSONString().getBytes("UTF-8"));
Assert.assertEquals(1, obj.size());
Assert.assertEquals(content, obj.get("content"));
}
public void test_utf_7() throws Exception {
String content = "薄扶林水塘,《香港雜記》叫百步林水塘,係香港一水塘,亦係全港第一個水塘。水塘喺香港島西嘅薄扶林,近薄扶林村。佢集有薄扶林谷地中咁多條河涌嘅水。涌水出自扯旗山、西高山、爐峯峽、歌賦山、奇力山。水塘分上下兩塘,儲水量約為廿六萬立方米,約莫六千八百萬加侖。水塘溢水會經薄扶林村流入瀑布灣";
JSONObject json = new JSONObject();
json.put("content", content);
JSONObject obj = (JSONObject) JSON.parse(json.toJSONString().getBytes("UTF-8"));
Assert.assertEquals(1, obj.size());
Assert.assertEquals(content, obj.get("content"));
}
}
| Java | 4 | Czarek93/fastjson | src/test/java/com/alibaba/json/bvt/parser/TestUTF8.java | [
"Apache-2.0"
] |
frequency,raw
20.00,-17.18
20.20,-17.12
20.40,-17.05
20.61,-16.99
20.81,-16.93
21.02,-16.86
21.23,-16.76
21.44,-16.66
21.66,-16.57
21.87,-16.47
22.09,-16.37
22.31,-16.26
22.54,-16.16
22.76,-16.06
22.99,-15.95
23.22,-15.80
23.45,-15.64
23.69,-15.48
23.92,-15.32
24.16,-15.24
24.40,-15.19
24.65,-15.15
24.89,-15.10
25.14,-15.03
25.39,-14.94
25.65,-14.85
25.91,-14.76
26.16,-14.64
26.43,-14.50
26.69,-14.36
26.96,-14.21
27.23,-14.12
27.50,-14.04
27.77,-13.96
28.05,-13.89
28.33,-13.83
28.62,-13.76
28.90,-13.70
29.19,-13.60
29.48,-13.47
29.78,-13.34
30.08,-13.22
30.38,-13.12
30.68,-13.02
30.99,-12.92
31.30,-12.78
31.61,-12.63
31.93,-12.48
32.24,-12.36
32.57,-12.24
32.89,-12.12
33.22,-12.03
33.55,-11.95
33.89,-11.88
34.23,-11.81
34.57,-11.76
34.92,-11.70
35.27,-11.55
35.62,-11.37
35.97,-11.19
36.33,-11.17
36.70,-11.15
37.06,-11.12
37.43,-11.03
37.81,-10.94
38.19,-10.81
38.57,-10.66
38.95,-10.50
39.34,-10.47
39.74,-10.46
40.14,-10.39
40.54,-10.22
40.94,-10.05
41.35,-9.97
41.76,-9.89
42.18,-9.80
42.60,-9.68
43.03,-9.56
43.46,-9.46
43.90,-9.36
44.33,-9.34
44.78,-9.34
45.23,-9.27
45.68,-9.14
46.13,-9.03
46.60,-8.95
47.06,-8.87
47.53,-8.75
48.01,-8.62
48.49,-8.53
48.97,-8.44
49.46,-8.33
49.96,-8.22
50.46,-8.19
50.96,-8.16
51.47,-8.07
51.99,-7.98
52.51,-7.86
53.03,-7.75
53.56,-7.75
54.10,-7.75
54.64,-7.75
55.18,-7.71
55.74,-7.58
56.29,-7.52
56.86,-7.52
57.42,-7.52
58.00,-7.52
58.58,-7.39
59.16,-7.25
59.76,-7.12
60.35,-6.99
60.96,-6.85
61.57,-6.84
62.18,-6.80
62.80,-6.65
63.43,-6.57
64.07,-6.50
64.71,-6.38
65.35,-6.27
66.01,-6.15
66.67,-6.15
67.33,-6.08
68.01,-5.93
68.69,-5.91
69.37,-5.82
70.07,-5.68
70.77,-5.52
71.48,-5.47
72.19,-5.47
72.91,-5.47
73.64,-5.47
74.38,-5.47
75.12,-5.47
75.87,-5.47
76.63,-5.47
77.40,-5.47
78.17,-5.47
78.95,-5.47
79.74,-5.64
80.54,-5.62
81.35,-5.52
82.16,-5.47
82.98,-5.47
83.81,-5.47
84.65,-5.47
85.50,-5.41
86.35,-5.30
87.22,-5.19
88.09,-5.01
88.97,-5.01
89.86,-4.86
90.76,-4.78
91.66,-4.63
92.58,-4.48
93.51,-4.37
94.44,-4.33
95.39,-4.23
96.34,-4.10
97.30,-4.10
98.28,-4.05
99.26,-3.85
100.25,-3.65
101.25,-3.65
102.27,-3.62
103.29,-3.50
104.32,-3.42
105.37,-3.36
106.42,-3.23
107.48,-3.19
108.56,-3.19
109.64,-3.05
110.74,-2.96
111.85,-2.96
112.97,-2.94
114.10,-2.74
115.24,-2.71
116.39,-2.58
117.55,-2.51
118.73,-2.51
119.92,-2.50
121.12,-2.28
122.33,-2.28
123.55,-2.18
124.79,-2.06
126.03,-2.05
127.29,-2.05
128.57,-2.00
129.85,-1.84
131.15,-1.82
132.46,-1.82
133.79,-1.68
135.12,-1.59
136.48,-1.54
137.84,-1.39
139.22,-1.37
140.61,-1.37
142.02,-1.37
143.44,-1.36
144.87,-1.18
146.32,-1.15
147.78,-1.14
149.26,-1.14
150.75,-1.04
152.26,-0.95
153.78,-0.91
155.32,-0.91
156.88,-0.91
158.44,-0.91
160.03,-0.97
161.63,-1.11
163.24,-1.14
164.88,-1.14
166.53,-1.32
168.19,-1.37
169.87,-1.42
171.57,-1.56
173.29,-1.60
175.02,-1.60
176.77,-1.60
178.54,-1.60
180.32,-1.52
182.13,-1.42
183.95,-1.37
185.79,-1.37
187.65,-1.20
189.52,-0.97
191.42,-0.86
193.33,-0.73
195.27,-0.68
197.22,-0.68
199.19,-0.54
201.18,-0.32
203.19,-0.23
205.23,-0.23
207.28,-0.15
209.35,-0.03
211.44,0.00
213.56,0.00
215.69,0.00
217.85,0.21
220.03,0.23
222.23,0.23
224.45,0.34
226.70,0.45
228.96,0.46
231.25,0.46
233.57,0.49
235.90,0.67
238.26,0.68
240.64,0.68
243.05,0.69
245.48,0.85
247.93,0.91
250.41,1.10
252.92,1.14
255.45,1.14
258.00,1.28
260.58,1.37
263.19,1.37
265.82,1.37
268.48,1.42
271.16,1.55
273.87,1.60
276.61,1.60
279.38,1.60
282.17,1.60
284.99,1.60
287.84,1.60
290.72,1.67
293.63,1.80
296.57,1.82
299.53,1.82
302.53,1.83
305.55,2.02
308.61,2.05
311.69,2.05
314.81,2.19
317.96,2.27
321.14,2.29
324.35,2.46
327.59,2.51
330.87,2.51
334.18,2.61
337.52,2.73
340.90,2.74
344.30,2.91
347.75,3.02
351.23,3.15
354.74,3.19
358.28,3.30
361.87,3.39
365.49,3.42
369.14,3.42
372.83,3.42
376.56,3.42
380.33,3.33
384.13,3.22
387.97,3.04
391.85,2.96
395.77,2.76
399.73,2.50
403.72,2.24
407.76,1.98
411.84,1.72
415.96,1.61
420.12,1.60
424.32,1.58
428.56,1.43
432.85,1.37
437.18,1.26
441.55,1.17
445.96,1.14
450.42,1.14
454.93,1.14
459.48,1.14
464.07,1.14
468.71,1.14
473.40,1.00
478.13,0.92
482.91,0.91
487.74,0.91
492.62,0.91
497.55,0.91
502.52,0.91
507.55,0.91
512.62,1.08
517.75,1.14
522.93,1.14
528.16,1.14
533.44,1.14
538.77,1.14
544.16,1.14
549.60,0.95
555.10,0.69
560.65,0.50
566.25,0.36
571.92,0.13
577.64,-0.13
583.41,-0.22
589.25,-0.39
595.14,-0.46
601.09,-0.52
607.10,-0.66
613.17,-0.68
619.30,-0.68
625.50,-0.68
631.75,-0.70
638.07,-0.88
644.45,-0.91
650.89,-0.91
657.40,-0.91
663.98,-0.91
670.62,-0.91
677.32,-0.91
684.10,-0.91
690.94,-0.91
697.85,-0.91
704.83,-0.91
711.87,-0.91
718.99,-0.88
726.18,-0.73
733.44,-0.68
740.78,-0.68
748.19,-0.68
755.67,-0.68
763.23,-0.68
770.86,-0.68
778.57,-0.68
786.35,-0.68
794.22,-0.68
802.16,-0.68
810.18,-0.68
818.28,-0.68
826.46,-0.66
834.73,-0.51
843.08,-0.46
851.51,-0.46
860.02,-0.46
868.62,-0.46
877.31,-0.44
886.08,-0.27
894.94,-0.23
903.89,-0.23
912.93,-0.23
922.06,-0.23
931.28,-0.23
940.59,-0.23
950.00,-0.18
959.50,-0.04
969.09,0.00
978.78,0.00
988.57,0.00
998.46,0.00
1008.44,0.00
1018.53,0.00
1028.71,0.00
1039.00,0.00
1049.39,0.00
1059.88,0.17
1070.48,0.23
1081.19,0.23
1092.00,0.23
1102.92,0.23
1113.95,0.23
1125.09,0.23
1136.34,0.23
1147.70,0.23
1159.18,0.23
1170.77,0.23
1182.48,0.23
1194.30,0.23
1206.25,0.23
1218.31,0.05
1230.49,0.00
1242.80,0.00
1255.22,0.00
1267.78,0.00
1280.45,0.00
1293.26,-0.17
1306.19,-0.23
1319.25,-0.23
1332.45,-0.29
1345.77,-0.42
1359.23,-0.46
1372.82,-0.60
1386.55,-0.67
1400.41,-0.68
1414.42,-0.73
1428.56,-0.87
1442.85,-0.91
1457.28,-0.91
1471.85,-0.91
1486.57,-1.09
1501.43,-1.14
1516.45,-1.14
1531.61,-1.14
1546.93,-1.14
1562.40,-1.14
1578.02,-0.98
1593.80,-0.91
1609.74,-0.72
1625.84,-0.62
1642.10,-0.45
1658.52,-0.18
1675.10,0.12
1691.85,0.22
1708.77,0.40
1725.86,0.46
1743.12,0.46
1760.55,0.46
1778.15,0.58
1795.94,0.66
1813.90,0.68
1832.03,0.68
1850.36,0.68
1868.86,0.68
1887.55,0.79
1906.42,0.89
1925.49,1.07
1944.74,1.14
1964.19,1.14
1983.83,1.14
2003.67,1.14
2023.71,1.14
2043.94,1.14
2064.38,1.14
2085.03,1.14
2105.88,1.14
2126.94,1.14
2148.20,1.14
2169.69,1.26
2191.38,1.35
2213.30,1.37
2235.43,1.37
2257.78,1.37
2280.36,1.37
2303.17,1.47
2326.20,1.58
2349.46,1.60
2372.95,1.60
2396.68,1.77
2420.65,1.82
2444.86,1.91
2469.31,2.02
2494.00,2.05
2518.94,2.05
2544.13,2.23
2569.57,2.32
2595.27,2.53
2621.22,2.71
2647.43,2.86
2673.90,2.94
2700.64,3.14
2727.65,3.31
2754.93,3.63
2782.48,3.83
2810.30,3.98
2838.40,4.21
2866.79,4.47
2895.46,4.65
2924.41,4.97
2953.65,5.20
2983.19,5.24
3013.02,5.24
3043.15,5.38
3073.58,5.46
3104.32,5.48
3135.36,5.65
3166.72,5.76
3198.38,5.89
3230.37,5.93
3262.67,5.93
3295.30,6.10
3328.25,6.15
3361.53,6.15
3395.15,6.15
3429.10,6.15
3463.39,6.15
3498.03,6.00
3533.01,5.93
3568.34,5.71
3604.02,5.34
3640.06,4.95
3676.46,4.50
3713.22,4.05
3750.36,3.57
3787.86,3.06
3825.74,2.68
3864.00,2.46
3902.64,2.31
3941.66,2.16
3981.08,2.07
4020.89,1.88
4061.10,1.82
4101.71,1.87
4142.73,2.05
4184.15,2.30
4226.00,2.78
4268.26,3.33
4310.94,3.87
4354.05,4.27
4397.59,4.56
4441.56,4.82
4485.98,5.09
4530.84,5.35
4576.15,5.54
4621.91,5.95
4668.13,6.37
4714.81,6.84
4761.96,7.26
4809.58,7.60
4857.67,7.87
4906.25,7.97
4955.31,7.80
5004.87,7.71
5054.91,7.56
5105.46,7.43
5156.52,7.31
5208.08,7.14
5260.16,6.90
5312.77,6.84
5365.89,6.84
5419.55,6.76
5473.75,6.64
5528.49,6.48
5583.77,6.24
5639.61,6.16
5696.00,5.98
5752.96,5.87
5810.49,5.65
5868.60,5.39
5927.28,5.26
5986.56,5.24
6046.42,5.05
6106.89,4.77
6167.96,4.41
6229.64,3.97
6291.93,3.46
6354.85,2.94
6418.40,2.41
6482.58,1.89
6547.41,1.45
6612.88,0.95
6679.01,0.43
6745.80,-0.03
6813.26,-0.43
6881.39,-0.83
6950.21,-1.19
7019.71,-1.43
7089.91,-1.78
7160.81,-2.12
7232.41,-2.39
7304.74,-2.50
7377.79,-2.70
7451.56,-2.95
7526.08,-3.21
7601.34,-3.47
7677.35,-3.74
7754.13,-3.85
7831.67,-3.87
7909.98,-3.85
7989.08,-3.67
8068.98,-3.44
8149.67,-3.13
8231.16,-2.98
8313.47,-2.81
8396.61,-2.57
8480.57,-2.21
8565.38,-1.90
8651.03,-1.57
8737.54,-1.23
8824.92,-0.86
8913.17,-0.38
9002.30,0.14
9092.32,0.68
9183.25,1.30
9275.08,1.96
9367.83,2.56
9461.51,3.02
9556.12,3.09
9651.68,2.74
9748.20,1.70
9845.68,0.35
9944.14,-1.28
10043.58,-2.96
10144.02,-4.71
10245.46,-6.44
10347.91,-8.78
10451.39,-11.50
10555.91,-14.44
10661.46,-17.33
10768.08,-19.75
10875.76,-21.42
10984.52,-21.55
11094.36,-20.32
11205.31,-18.57
11317.36,-17.08
11430.53,-16.49
11544.84,-16.34
11660.29,-15.31
11776.89,-13.29
11894.66,-10.60
12013.60,-7.73
12133.74,-5.44
12255.08,-3.72
12377.63,-2.54
12501.41,-1.85
12626.42,-1.92
12752.68,-2.34
12880.21,-2.98
13009.01,-3.65
13139.10,-4.33
13270.49,-5.09
13403.20,-6.16
13537.23,-7.52
13672.60,-8.85
13809.33,-10.03
13947.42,-10.94
14086.90,-11.68
14227.77,-12.34
14370.04,-12.47
14513.74,-11.58
14658.88,-9.97
14805.47,-8.00
14953.52,-6.08
15103.06,-4.45
15254.09,-3.24
15406.63,-2.54
15560.70,-2.49
15716.30,-2.58
15873.47,-2.71
16032.20,-2.86
16192.52,-2.95
16354.45,-2.96
16517.99,-2.66
16683.17,-2.26
16850.01,-1.83
17018.51,-1.37
17188.69,-0.90
17360.58,-0.31
17534.18,0.34
17709.53,1.10
17886.62,1.86
18065.49,2.49
18246.14,2.97
18428.60,3.16
18612.89,3.02
18799.02,2.58
18987.01,2.21
19176.88,2.00
19368.65,1.76
19562.33,1.62
19757.96,1.60
19955.54,1.60
| CSV | 0 | vinzmc/AutoEq | measurements/headphonecom/data/onear/Sennheiser HD 218/Sennheiser HD 218.csv | [
"MIT"
] |
// BSD Code included in AGPL code is compatible with AGPL.
//This code is based on original code from Xundra Snowpaw which was licensed on a new BSD License: http://www.opensource.org/licenses/bsd-license.php
//A FreeBSD license of this type must remain with the original code and allows modifications and relicensing provided that the original authors license is included.
//Copyright (c) 2010, Xundra Snowpaw
//All rights reserved.
//Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
//* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
//* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentationand/or other materials provided with the distribution.
//THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
//THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS
//BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
//SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
//WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
//EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
integer ENCRYPT = 1; // set to 0 to not encryptm use plain text only
// DON'T CHANGE THE FOLLOWING! (Unless you know what you are doing!)
integer XTEA_DELTA = 0x9E3779B9; // (sqrt(5) - 1) * 2^31
integer xtea_num_rounds = 6;
list xtea_key = [0, 0, 0, 0];
integer hex2int(string hex) {
if(llGetSubString(hex,0,1) == "0x")
return (integer)hex;
if(llGetSubString(hex,0,0) == "x")
return (integer)("0"+hex);
return(integer)("0x"+hex);
}
// Convers any string to a 32 char MD5 string and then to a list of
// 4 * 32 bit integers = 128 bit Key. MD5 ensures always a specific
// 128 bit key is generated for any string passed.
list xtea_key_from_string( string str )
{
str = llMD5String(str,0); // Use Nonce = 0
return [ hex2int(llGetSubString( str, 0, 7)),
hex2int(llGetSubString( str, 8, 15)),
hex2int(llGetSubString( str, 16, 23)),
hex2int(llGetSubString( str, 24, 31))];
}
// Encipher two integers and return the result as a 12-byte string
// containing two base64-encoded integers.
string xtea_encipher( integer v0, integer v1 )
{
integer num_rounds = xtea_num_rounds;
integer sum = 0;
do {
// LSL does not have unsigned integers, so when shifting right we
// have to mask out sign-extension bits.
v0 += (((v1 << 4) ^ ((v1 >> 5) & 0x07FFFFFF)) + v1) ^ (sum + llList2Integer(xtea_key, sum & 3));
sum += XTEA_DELTA;
v1 += (((v0 << 4) ^ ((v0 >> 5) & 0x07FFFFFF)) + v0) ^ (sum + llList2Integer(xtea_key, (sum >> 11) & 3));
} while( num_rounds = ~-num_rounds );
//return only first 6 chars to remove "=="'s and compact encrypted text.
return llGetSubString(llIntegerToBase64(v0),0,5) +
llGetSubString(llIntegerToBase64(v1),0,5);
}
// Decipher two base64-encoded integers and return the FIRST 30 BITS of
// each as one 10-byte base64-encoded string.
string xtea_decipher( integer v0, integer v1 )
{
integer num_rounds = xtea_num_rounds;
integer sum = XTEA_DELTA*xtea_num_rounds;
do {
// LSL does not have unsigned integers, so when shifting right we
// have to mask out sign-extension bits.
v1 -= (((v0 << 4) ^ ((v0 >> 5) & 0x07FFFFFF)) + v0) ^ (sum + llList2Integer(xtea_key, (sum>>11) & 3));
sum -= XTEA_DELTA;
v0 -= (((v1 << 4) ^ ((v1 >> 5) & 0x07FFFFFF)) + v1) ^ (sum + llList2Integer(xtea_key, sum & 3));
} while ( num_rounds = ~-num_rounds );
return llGetSubString(llIntegerToBase64(v0), 0, 4) +
llGetSubString(llIntegerToBase64(v1), 0, 4);
}
// Encrypt a full string using XTEA.
string xtea_encrypt_string( string str )
{
if (! ENCRYPT)
return str;
// encode string
str = llStringToBase64(str);
// remove trailing =s so we can do our own 0 padding
integer i = llSubStringIndex( str, "=" );
if ( i != -1 )
str = llDeleteSubString( str, i, -1 );
// we don't want to process padding, so get length before adding it
integer len = llStringLength(str);
// zero pad
str += "AAAAAAAAAA=";
string result;
i = 0;
do {
// encipher 30 (5*6) bits at a time.
result += xtea_encipher(llBase64ToInteger(llGetSubString(str, i, i + 4) + "A="), llBase64ToInteger(llGetSubString(str, i+5, i + 9) + "A="));
i+=10;
} while ( i < len );
return result;
}
// Decrypt a full string using XTEA
string xtea_decrypt_string( string str ) {
if (! ENCRYPT)
return str;
integer len = llStringLength(str);
integer i=0;
string result;
//llOwnerSay(str);
do {
integer v0;
integer v1;
v0 = llBase64ToInteger(llGetSubString(str, i, i + 5) + "==");
i+= 6;
v1 = llBase64ToInteger(llGetSubString(str, i, i + 5) + "==");
i+= 6;
result += xtea_decipher(v0, v1);
} while ( i < len );
// Replace multiple trailing zeroes with a single one
i = llStringLength(result) - 1;
while ( llGetSubString(result, i - 1, i) == "AA" ){
result = llDeleteSubString(result, i, i);
i--;
}
i = llStringLength(result) - 1;
// while (llGetSubString(result, i, i + 1) == "A" ) {
// i--;
// }
result = llGetSubString(result, 0, i+1);
i = llStringLength(result);
integer mod = i%4; //Depending on encoded length diffrent appends are needed
if(mod == 1) result += "A==";
else if(mod == 2 ) result += "==";
else if(mod == 3) result += "=";
return llBase64ToString(result);
}
string base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
// END XUNDRA SNOWPAW CODE
default
{
state_entry()
{
llSay(0, "Hello, touch to encrypt and decrypt!");
}
touch_start(integer total_number)
{
string c = xtea_encrypt_string("Touched");
string o = xtea_decrypt_string(c);
llSay(0,o);
}
} | LSL | 5 | seriesumei/test-Ruth2 | Contrib/Fred Beckhusen/XTEA encryption test program/XTEA/Object/XTEA test program.lsl | [
"MIT"
] |
{
"Version" : 0.2,
"ModuleName" : "cameraDemo",
"Options" : {
"Warnings" : "All",
"Debug" : true,
"Profile" : false,
"Optimization" : "None",
"PreprocessorDefinitions" : [
"IMPORT_STATIC=\"\""
],
"IncludeDirs" : [
"..\\eModel"
],
"TargetType" : "Executable",
"TargetFileName" : "cameraDemo",
"Libraries" : [
"ecere"
]
},
"Platforms" : [
{
"Name" : "linux",
"Options" : {
"Libraries" : [
"m"
]
}
}
],
"Configurations" : [
{
"Name" : "Debug",
"Options" : {
"Console" : true,
"FastMath" : false
}
},
{
"Name" : "Release",
"Options" : {
"Optimization" : "Speed",
"FastMath" : true
}
}
],
"Files" : [
"demo.ec",
"terrain.ec",
"dna.ec",
"../../../extras/BinaryTriangle.ec"
],
"ResourcesPath" : "res",
"Resources" : [
{
"Folder" : "./skycube",
"Files" : [
"../ModelViewer/skycube/bk.jpg",
"../ModelViewer/skycube/dn.jpg",
"../ModelViewer/skycube/fr.jpg",
"../ModelViewer/skycube/lf.jpg",
"../ModelViewer/skycube/rt.jpg",
"../ModelViewer/skycube/up.jpg"
]
},
{
"Folder" : "aircraft",
"Files" : [
"06 17 09.png",
"aircraft.3DS"
]
},
"texture1.pcx",
"../ModelViewer/res/ecere.png",
"N45W110.hgt",
"texture.png"
]
}
| Ecere Projects | 3 | N-eil/ecere-sdk | samples/3D/terrainCameraDemo/cameraDemo.epj | [
"BSD-3-Clause"
] |
--TEST--
Bug #80901 (Info leak in ftp extension)
--EXTENSIONS--
ftp
pcntl
--FILE--
<?php
$bug80901 = true;
require 'server.inc';
$ftp = ftp_connect("127.0.0.1", $port);
if (!$ftp) die("Couldn't connect to the server");
var_dump(ftp_login($ftp, 'user', 'pass'));
ftp_systype($ftp);
?>
--EXPECTF--
bool(true)
Warning: ftp_systype(): **************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************** in %s on line %d
| PHP | 3 | NathanFreeman/php-src | ext/ftp/tests/bug80901.phpt | [
"PHP-3.01"
] |
/*
Copyright 2021 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package v1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
// BootstrapToken describes one bootstrap token, stored as a Secret in the cluster
// +k8s:deepcopy-gen=true
type BootstrapToken struct {
// Token is used for establishing bidirectional trust between nodes and control-planes.
// Used for joining nodes in the cluster.
Token *BootstrapTokenString `json:"token" datapolicy:"token"`
// Description sets a human-friendly message why this token exists and what it's used
// for, so other administrators can know its purpose.
// +optional
Description string `json:"description,omitempty"`
// TTL defines the time to live for this token. Defaults to 24h.
// Expires and TTL are mutually exclusive.
// +optional
TTL *metav1.Duration `json:"ttl,omitempty"`
// Expires specifies the timestamp when this token expires. Defaults to being set
// dynamically at runtime based on the TTL. Expires and TTL are mutually exclusive.
// +optional
Expires *metav1.Time `json:"expires,omitempty"`
// Usages describes the ways in which this token can be used. Can by default be used
// for establishing bidirectional trust, but that can be changed here.
// +optional
Usages []string `json:"usages,omitempty"`
// Groups specifies the extra groups that this token will authenticate as when/if
// used for authentication
// +optional
Groups []string `json:"groups,omitempty"`
}
// BootstrapTokenString is a token of the format abcdef.abcdef0123456789 that is used
// for both validation of the practically of the API server from a joining node's point
// of view and as an authentication method for the node in the bootstrap phase of
// "kubeadm join". This token is and should be short-lived
type BootstrapTokenString struct {
ID string `json:"-"`
Secret string `json:"-" datapolicy:"token"`
}
| Go | 4 | 767829413/kubernetes | cmd/kubeadm/app/apis/bootstraptoken/v1/types.go | [
"Apache-2.0"
] |
--TEST--
Bug #30875 (xml_parse_into_struct() does not resolve entities)
--EXTENSIONS--
xml
--FILE--
<?php
$xml = <<<XML
<!DOCTYPE dtd [
<!ENTITY ref "ent">
]>
<elt att="&ref;">a&ref;</elt>
XML;
$parser = xml_parser_create();
xml_parse_into_struct($parser, $xml, $vals);
xml_parser_free($parser);
var_dump($vals);
?>
--EXPECT--
array(1) {
[0]=>
array(5) {
["tag"]=>
string(3) "ELT"
["type"]=>
string(8) "complete"
["level"]=>
int(1)
["attributes"]=>
array(1) {
["ATT"]=>
string(3) "ent"
}
["value"]=>
string(4) "aent"
}
}
| PHP | 3 | NathanFreeman/php-src | ext/xml/tests/bug30875.phpt | [
"PHP-3.01"
] |
---
title: Test Title
date: "2016-01-01T06:00-06:00"
---
# Test 1
| Liquid | 0 | binyamin/eleventy | test/stubs/reuse-permalink/test1.liquid | [
"MIT"
] |
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='text'/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="test-run">
<xsl:text>NUnit Version </xsl:text>
<xsl:value-of select="environment/@nunit-version"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@start-time"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@end-time"/>
<xsl:text>

</xsl:text>
<xsl:text>Runtime Environment -
</xsl:text>
<xsl:text> OS Version: </xsl:text>
<xsl:value-of select="environment/@os-version"/>
<xsl:text>
</xsl:text>
<xsl:text> CLR Version: </xsl:text>
<xsl:value-of select="environment/@clr-version"/>
<xsl:text>

</xsl:text>
<xsl:text>Tests Run: </xsl:text>
<xsl:value-of select="@total"/>
<xsl:text>, Passed: </xsl:text>
<xsl:value-of select="@passed"/>
<xsl:text>, Failed: </xsl:text>
<xsl:value-of select="@failed"/>
<xsl:text>, Inconclusive: </xsl:text>
<xsl:value-of select="@inconclusive"/>
<xsl:text>, Skipped: </xsl:text>
<xsl:value-of select="@skipped"/>
<xsl:text>, Elapsed Time: </xsl:text>
<xsl:value-of select="@duration"/>
</xsl:template>
</xsl:stylesheet>
| XSLT | 4 | weilandia/selenium | third_party/dotnet/nunit.console-3.10.0/bin/netcoreapp2.0/TextSummary.xslt | [
"Apache-2.0"
] |
"Gente" by Grendelkhan (in spanish)
[ejemplo de librería Patrollers; con sujeto moviendose de forma random]
Include Basic Screen Effects Sp by Emily Short.
Include Basic Help Menu SP by Emily Short.
Include Patrollers Sp by Michael Callaghan.
The centrocomercial is a region. The Centro, the Centro2, the Centro3 and the Centro4 are in the centrocomercial.
The tiendas is a backdrop in the centrocomercial. The description is "Multitud de tiendas de todo tipo.". Understand "tienda", "centro", "centro comercial", "comercios" and "comercio" as the tiendas.
The gente is a backdrop. The gente is everywhere. The description is "Hay gente por todos lados, entrando y saliendo de todas las tiendas y comercios.".
Centro is a room. The printed name of Centro is "Centro comercial". The description is "Estás en un centro comercial repleto de gente y tiendas de todo tipo.".
Centro2 is west of Centro and east of Centro4. The printed name of Centro2 is "Centro comercial". The description is "Estás en un centro comercial repleto de gente y tiendas de todo tipo.".
Centro3 is west of Centro4 and east of Centro. The printed name of Centro3 is "Centro comercial". The description is "Estás en un centro comercial repleto de gente y tiendas de todo tipo.".
Centro4 is east of Centro3 and west of Centro2. The printed name of Centro4 is "Centro comercial". The description is "Estás en un centro comercial repleto de gente y tiendas de todo tipo.".
La chica robot is a female in the Centro. La chica is a patroller. The chica is aimless. The drive of the chica is 50.
When play begins:
activate the chica.
Instead of kissing the chica:
say "¡Muacs!";
deactivate the chica. | Inform 7 | 4 | brtl-fhc/I7-Spanish | EJEMPLOS/XaviTutorial/Cap06.21.ni | [
"Artistic-2.0"
] |
(ns swagger-petstore.api.store-test
(:require [clojure.test :refer :all]
[swagger-petstore.core :refer [with-api-context]]
[swagger-petstore.api.store :refer :all])
(:import (java.util Date)))
(defn credentials-fixture [f]
(with-api-context {:auths {"api_key" "special-key"}}
(f)))
(use-fixtures :once credentials-fixture)
(defn- make-random-order []
{:id (+ 90000 (rand-int 10000))
:petId 200
:quantity 13
:shipDate (Date.)
:status "placed"
:complete true})
(deftest test-get-inventory
(let [inventory (get-inventory)]
(is (pos? (count inventory)))))
(deftest test-place-and-delete-order
(let [order (make-random-order)
order-id (:id order)
_ (place-order {:body order})
fetched (get-order-by-id order-id)]
(doseq [attr [:id :petId :quantity]]
(is (= (attr order) (attr fetched))))
(delete-order order-id)
(comment "it seems that delete-order does not really delete the order"
(is (thrown? RuntimeException (get-order-by-id order-id))))))
| Clojure | 4 | wwadge/swagger-codegen | samples/client/petstore/clojure/test/swagger_petstore/api/store_test.clj | [
"Apache-2.0"
] |
$TTL 300
@ IN A 10.3.3.3
www IN A 10.4.4.4
| DNS Zone | 3 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/028-dextend/bar.foo.com.zone | [
"MIT"
] |
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M21,2L3,2c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h7v2L9,20c-0.55,0 -1,0.45 -1,1s0.45,1 1,1h6c0.55,0 1,-0.45 1,-1s-0.45,-1 -1,-1h-1v-2h7c1.1,0 2,-0.9 2,-2L23,4c0,-1.1 -0.9,-2 -2,-2zM20,16L4,16c-0.55,0 -1,-0.45 -1,-1L3,5c0,-0.55 0.45,-1 1,-1h16c0.55,0 1,0.45 1,1v10c0,0.55 -0.45,1 -1,1z"/>
</vector>
| XML | 3 | semoro/androidx | compose/material/material/icons/generator/raw-icons/rounded/desktop_windows.xml | [
"Apache-2.0"
] |
make id := (\ X x -> x) : (X : Set) -> X -> X ;
make A := ? : Set ;
elm id _ A ;
make f := ? : ?a ;
elm f Set ;
jump f.a ;
give Set -> Set ;
root ;
elab elab ;
make x := ? : id _ Set ;
make B := _ : Set ;
make C := _ : Prop ;
make p := _ : :- (B == C) ;
make q := _ : :- (B == (: _) Set) ;
show state ; | PigLatin | 1 | mietek/epigram | test/Elab.pig | [
"MIT"
] |
# @ECLASS: export-funcs-before-inherit.eclass
# @MAINTAINER:
# Random Person <[email protected]>
# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 7
# @BLURB: Stub eclass for testing EclassExportFuncsBeforeInherit.
EXPORT_FUNCTIONS src_prepare
inherit another-src_prepare
# @FUNCTION: export-funcs-before-inherit_src_prepare
# @DESCRIPTION:
# My src_prepare.
export-funcs-before-inherit_src_prepare() {
:
}
| Gentoo Eclass | 3 | floppym/pkgcheck | testdata/repos/eclass/eclass/export-funcs-before-inherit.eclass | [
"BSD-3-Clause"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime");
var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
d: "m24 18-3.86-6H22L15 2l-3 4.29L9 2 2 12h1.86L0 18h7v4h4v-4h2v4h4v-4h7zM15 5.49 18.16 10h-1.68l3.86 6h-3.62l-2.57-4H16l-2.78-3.97L15 5.49zM3.66 16l3.86-6H5.84L9 5.49 12.16 10h-1.68l3.86 6H3.66z"
}), 'ForestOutlined');
exports.default = _default; | JavaScript | 3 | dany-freeman/material-ui | packages/mui-icons-material/lib/ForestOutlined.js | [
"MIT"
] |
--TEST--
Bug #78151 Segfault caused by indirect expressions in PHP 7.4a1
--FILE--
<?php
class Arr
{
private $foo = '';
public function __construct(array $array = [])
{
$property = 'foo';
$this->{$property} = &$array[$property];
\var_dump($this->foo);
}
}
$arr = new Arr(['foo' => 'bar']);
?>
--EXPECT--
string(3) "bar"
| PHP | 3 | thiagooak/php-src | Zend/tests/bug78151.phpt | [
"PHP-3.01"
] |
4 metro 0.5 maytrig
400 0.99 streson
| SourcePawn | 0 | aleatoricforest/Sporth | examples/streson.sp | [
"MIT"
] |
%require "3.5"
%{
#define YYDEBUG 1
%}
%code requires {
#include "parser-util.h"
#include "debug/pront.h"
#include <malloc.h>
#include <string.h>
extern int yylex (parser_ctx_t *ctx);
extern void yyerror(parser_ctx_t *ctx, char *msg);
}
%param { parser_ctx_t *ctx };
%union {
pos_t pos;
ival_t ival;
strval_t strval;
ident_t ident;
idents_t idents;
funcdef_t func;
expr_t expr;
exprs_t exprs;
stmt_t stmt;
stmts_t stmts;
iasm_qual_t asm_qual;
iasm_regs_t asm_regs;
iasm_reg_t asm_reg;
ival_t simple_type;
strval_t garbage;
}
%token <pos> TKN_UNSIGNED "unsigned" TKN_SIGNED "signed" TKN_FLOAT "float" TKN_DOUBLE "double" TKN_BOOL "_Bool"
%token <pos> TKN_CHAR "char" TKN_SHORT "short" TKN_INT "int" TKN_LONG "long"
%token <pos> TKN_VOID "void"
%token <pos> TKN_VOLATILE "volatile" TKN_INLINE "inline" TKN_GOTO "goto"
%token <pos> TKN_IF "if" TKN_ELSE "else" TKN_WHILE "while" TKN_RETURN "return" TKN_ASM "asm"
%token TKN_THEN "then"
%token <pos> TKN_LPAR "(" TKN_RPAR ")" TKN_LBRAC "{" TKN_RBRAC "}" TKN_LSBRAC "[" TKN_RSBRAC "]"
%token <pos> TKN_SEMI ";" TKN_COLON ":" TKN_COMMA ","
%token <ival> TKN_IVAL
%token <strval> TKN_STRVAL
%token <strval> TKN_IDENT
%token <garbage> TKN_GARBAGE
%token <pos> TKN_ASSIGN_ADD "+=" TKN_ASSIGN_SUB "-="
%token <pos> TKN_ASSIGN_SHL "<<=" TKN_ASSIGN_SHR ">>="
%token <pos> TKN_ASSIGN_MUL "*=" TKN_ASSIGN_DIV "/=" TKN_ASSIGN_REM "%="
%token <pos> TKN_ASSIGN_AND "&=" TKN_ASSIGN_OR "|=" TKN_ASSIGN_XOR "^="
%token <pos> TKN_INC "++" TKN_DEC "--"
%token <pos> TKN_LOGIC_AND "&&" TKN_LOGIC_OR "||"
%token <pos> TKN_ADD "+" TKN_SUB "-" TKN_ASSIGN "=" TKN_AMP "&"
%token <pos> TKN_MUL "*" TKN_DIV "/" TKN_REM "%"
%token <pos> TKN_NOT "!" TKN_INV "~" TKN_XOR "^" TKN_OR "|"
%token <pos> TKN_SHL "<<" TKN_SHR ">>"
%token <pos> TKN_LT "<" TKN_LE "<=" TKN_GT ">" TKN_GE ">=" TKN_EQ "==" TKN_NE "!="
%type <idents> opt_params
%type <idents> params
%type <idents> idents
%type <func> funcdef
%type <expr> expr
%type <exprs> opt_exprs
%type <exprs> exprs
%type <stmts> stmts
%type <stmt> stmt
%type <stmt> inline_asm
%type <stmt> asm_code
%type <asm_qual> asm_qual
%type <asm_regs> opt_asm_regs
%type <asm_regs> asm_regs
%type <asm_reg> asm_reg
%type <simple_type> simple_long
%type <simple_type> simple_type
%type <idents> vardecls
%type <pos> opt_int opt_signed
// Precedence: lowest.
%right "=" "+=" "-=" "*=" "/=" "%=" "&=" "|=" "^=" "<<=" ">>="
%left "||"
%left "&&"
%left "|"
%left "^"
//%left "&"
%left "==" "!="
%left "<" ">" "<=" ">="
%left "<<" ">>"
%left "+" //"-"
%left "%" "/" //"*"
%right "!" "~" "*" "&" "-"
%precedence "(" "["
%precedence "then"
%precedence "else"
// Precedence: highest.
%%
library: global library
| %empty;
// Everything that could happen in a global scope.
global: funcdef {function_added(ctx, &$1);}
| vardecls;
opt_int: "int" {$$=$1;}
| %empty {$$=pos_empty(ctx->tokeniser_ctx);};
opt_signed: "signed" {$$=$1;}
| %empty {$$=pos_empty(ctx->tokeniser_ctx);};
// Used to disambiguate the presense of "long".
simple_long: opt_int {$$.pos=$1; $$.ival=CTYPE_S_LONG;}
| "double" {$$.pos=$1; $$.ival=CTYPE_LONG_DOUBLE;}
| "long" opt_int {$$.pos=pos_merge($1, $2); $$.ival=CTYPE_S_LONGER;};
// Simple types: Non-pointer, non-array types.
simple_type: "char" {$$.pos=$1; $$.ival=CTYPE_CHAR;}
| "signed" "char" {$$.pos=pos_merge($1, $2); $$.ival=CTYPE_S_CHAR;}
| "unsigned" "char" {$$.pos=pos_merge($1, $2); $$.ival=CTYPE_U_CHAR;}
| opt_signed "short" opt_int {$$.pos=pos_merge($1, $3); $$.ival=CTYPE_S_SHORT;}
| opt_signed "int" {$$.pos=pos_merge($1, $2); $$.ival=CTYPE_S_INT;}
| "signed" "long" opt_int {$$.pos=pos_merge($1, $3); $$.ival=CTYPE_S_LONG;}
| "long" simple_long {$$=$2; $$.pos=pos_merge($1, $2.pos);}
| "signed" "long" "long" opt_int {$$.pos=pos_merge($1, $4); $$.ival=CTYPE_S_LONGER;}
| "unsigned" "short" opt_int {$$.pos=pos_merge($1, $3); $$.ival=CTYPE_U_SHORT;}
| "unsigned" "int" {$$.pos=pos_merge($1, $2); $$.ival=CTYPE_U_INT;}
| "unsigned" "long" opt_int {$$.pos=pos_merge($1, $3); $$.ival=CTYPE_U_LONG;}
| "unsigned" "long" "long" opt_int {$$.pos=pos_merge($1, $4); $$.ival=CTYPE_U_LONGER;}
| "float" {$$.pos=$1; $$.ival=CTYPE_FLOAT;}
| "double" {$$.pos=$1; $$.ival=CTYPE_DOUBLE;}
| "_Bool" {$$.pos=$1; $$.ival=CTYPE_BOOL;}
| "void" {$$.pos=$1; $$.ival=CTYPE_VOID;};
// A function definition (with code).
funcdef: simple_type TKN_IDENT "(" opt_params ")"
"{" stmts "}" {$$=funcdef_decl(&$2, &$4, &$7); $$.pos=pos_merge($1.pos, $8);}
// A function definition (without code).
| simple_type TKN_IDENT "(" opt_params ")"
";" {$$=funcdef_def(&$2, &$4); $$.pos=pos_merge($1.pos, $6);};
// One or more variable declarations.
vardecls: simple_type idents ";" {$$=$2; idents_settype(&$$, $1.ival); $$.pos=pos_merge($1.pos, $3);};
// Function parameters.
opt_params: params {$$=$1;}
| %empty {$$=idents_empty(); $$.pos=pos_empty(ctx->tokeniser_ctx);};
params: params "," simple_type TKN_IDENT {$$=idents_cat (&$1, &$3.ival, &$4); $$.pos=pos_merge($1.pos, $4.pos);}
| simple_type TKN_IDENT {$$=idents_one (&$1.ival, &$2); $$.pos=pos_merge($1.pos, $2.pos);};
idents: idents "," TKN_IDENT {$$=idents_cat (&$1, NULL, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| TKN_IDENT {$$=idents_one (NULL, &$1); $$.pos=$1.pos;};
// Statements.
stmts: stmts stmt {$$=stmts_cat (&$1, &$2); $$.pos=pos_merge($1.pos, $2.pos);}
| %empty {$$=stmts_empty (); $$.pos=pos_empty(ctx->tokeniser_ctx);};
stmt: "{" stmts "}" {$$=stmt_multi (&$2); $$.pos=pos_merge($1, $3);}
| "if" "(" expr ")" stmt %prec "then" {$$=stmt_if (&$3, &$5, NULL); $$.pos=pos_merge($1, $5.pos);}
| "if" "(" expr ")" stmt
"else" stmt {$$=stmt_if (&$3, &$5, &$7); $$.pos=pos_merge($1, $7.pos);}
| "while" "(" expr ")" stmt {$$=stmt_while (&$3, &$5); $$.pos=pos_merge($1, $5.pos);}
| "return" ";" {$$=stmt_ret (NULL); $$.pos=pos_merge($1, $2);}
| "return" expr ";" {$$=stmt_ret (&$2); $$.pos=pos_merge($1, $3);}
| vardecls {$$=stmt_var (&$1); $$.pos=$1.pos;}
| expr ";" {$$=stmt_expr (&$1); $$.pos=pos_merge($1.pos, $2);}
| inline_asm ";" {$$=$1; $$.pos=pos_merge($1.pos, $2);};
// Expressions.
opt_exprs: exprs {$$=$1;}
| %empty {$$=exprs_empty();};
exprs: exprs "," expr {$$=exprs_cat(&$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr {$$=exprs_one(&$1); $$.pos=$1.pos;};
expr: TKN_IVAL {$$=expr_icnst(&$1); $$.pos=$1.pos;}
| TKN_STRVAL {$$=expr_scnst(&$1); $$.pos=$1.pos;}
| TKN_IDENT {$$=expr_ident(&$1); $$.pos=$1.pos;}
| expr "(" opt_exprs ")" {$$=expr_call (&$1, &$3); $$.pos=pos_merge($1.pos, $4);}
| expr "[" expr "]" {$$=expr_math2(OP_INDEX, &$1, &$3); $$.pos=pos_merge($1.pos, $4);}
| "(" expr ")" {$$=$2; $$.pos=pos_merge($1, $3);}
| "-" expr {$$=expr_math1(OP_0_MINUS, &$2); $$.pos=pos_merge($1, $2.pos);}
| "!" expr {$$=expr_math1(OP_LOGIC_NOT, &$2); $$.pos=pos_merge($1, $2.pos);}
| "~" expr {$$=expr_math1(OP_BIT_NOT, &$2); $$.pos=pos_merge($1, $2.pos);}
| "&" expr {$$=expr_math1(OP_ADROF, &$2); $$.pos=pos_merge($1, $2.pos);}
| "*" expr {$$=expr_math1(OP_DEREF, &$2); $$.pos=pos_merge($1, $2.pos);}
| expr "*" expr {$$=expr_math2(OP_MUL, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "/" expr %prec "*" {$$=expr_math2(OP_DIV, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "%" expr %prec "*" {$$=expr_math2(OP_MOD, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "+" expr {$$=expr_math2(OP_ADD, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "-" expr %prec "+" {$$=expr_math2(OP_SUB, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "<" expr {$$=expr_math2(OP_LT, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "<=" expr %prec "<" {$$=expr_math2(OP_LE, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr ">" expr %prec "<" {$$=expr_math2(OP_GT, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr ">=" expr %prec "<" {$$=expr_math2(OP_GE, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "==" expr {$$=expr_math2(OP_NE, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "!=" expr %prec "==" {$$=expr_math2(OP_EQ, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "&" expr {$$=expr_math2(OP_BIT_AND, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "^" expr {$$=expr_math2(OP_BIT_XOR, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "|" expr {$$=expr_math2(OP_BIT_OR, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "<<" expr {$$=expr_math2(OP_SHIFT_L, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr ">>" expr %prec "<<" {$$=expr_math2(OP_SHIFT_R, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "&&" expr {$$=expr_math2(OP_LOGIC_AND, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "||" expr {$$=expr_math2(OP_LOGIC_OR, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "=" expr {$$=expr_math2(OP_ASSIGN, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "+=" expr %prec "=" {$$=expr_matha(OP_ADD, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "-=" expr %prec "=" {$$=expr_matha(OP_SUB, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "*=" expr %prec "=" {$$=expr_matha(OP_MUL, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "/=" expr %prec "=" {$$=expr_matha(OP_DIV, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "%=" expr %prec "=" {$$=expr_matha(OP_MOD, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "&=" expr %prec "=" {$$=expr_matha(OP_BIT_AND, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "|=" expr %prec "=" {$$=expr_matha(OP_BIT_OR, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "^=" expr %prec "=" {$$=expr_matha(OP_BIT_XOR, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr "<<=" expr %prec "=" {$$=expr_matha(OP_SHIFT_L, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);}
| expr ">>=" expr %prec "=" {$$=expr_matha(OP_SHIFT_R, &$1, &$3); $$.pos=pos_merge($1.pos, $3.pos);};
// Inline assembly snippets.
inline_asm: "asm" asm_qual asm_code {$$=$3; $$.iasm->qualifiers=$2; $$.iasm->qualifiers.is_volatile |= !$$.iasm->outputs; };
asm_qual: %empty {$$=(iasm_qual_t) {.is_volatile=0, .is_inline=0, .is_goto=0}; $$.pos=pos_empty(ctx->tokeniser_ctx);}
| asm_qual "volatile" {$$=$1; $$.is_volatile=1; $$.pos=pos_merge($1.pos, $2);}
| asm_qual "inline" {$$=$1; $$.is_inline=1; $$.pos=pos_merge($1.pos, $2);}
| asm_qual "goto" {$$=$1; $$.is_goto=1; $$.pos=pos_merge($1.pos, $2);};
asm_code: "(" TKN_STRVAL
":" opt_asm_regs
":" opt_asm_regs
":" opt_asm_strs ")" {$$=stmt_iasm(&$2, &$4, &$6, NULL); $$.pos=pos_merge($1, $9);}
| "(" TKN_STRVAL
":" opt_asm_regs
":" opt_asm_regs ")" {$$=stmt_iasm(&$2, &$4, &$6, NULL); $$.pos=pos_merge($1, $7);}
| "(" TKN_STRVAL
":" opt_asm_regs ")" {$$=stmt_iasm(&$2, &$4, NULL, NULL); $$.pos=pos_merge($1, $5);}
| "(" TKN_STRVAL ")" {$$=stmt_iasm(&$2, NULL, NULL, NULL); $$.pos=pos_merge($1, $3);};
opt_asm_strs: asm_strs
| %empty;
asm_strs: TKN_STRVAL "," asm_strs
| TKN_STRVAL;
opt_asm_regs: asm_regs {$$=$1;}
| %empty {$$=iasm_regs_empty(); $$.pos=pos_empty(ctx->tokeniser_ctx);};
asm_regs: asm_reg "," asm_regs {$$=iasm_regs_cat(&$3, &$1); $$.pos=pos_merge($1.pos, $3.pos);}
| asm_reg {$$=iasm_regs_one(&$1); $$.pos=$1.pos;};
asm_reg: "[" TKN_IDENT "]" TKN_STRVAL "(" expr ")" {$$=stmt_iasm_reg(&$2, &$4, &$6); $$.pos=pos_merge($1, $7);}
| TKN_STRVAL "(" expr ")" {$$=stmt_iasm_reg(NULL, &$1, &$3); $$.pos=pos_merge($1.pos, $4);};
%%
void *make_copy(void *mem, size_t size) {
if (!mem) return NULL;
void *copy = malloc(size);
memcpy(copy, mem, size);
return copy;
}
| Bison | 5 | robotman2412/compilertest | src/parser.bison | [
"MIT"
] |
import "regent"
local timing_mod = {}
--Timing functionality for dl_meso
--TODO: NYI
task timing_mod.timchk( config : region(ispace(int1d), config_type) ) where writes(config.tzero, config.time), reads(config.tzero, config.time)
do
--TODO NYI
end
return timing_mod
| Rouge | 3 | stfc/RegentParticleDSL | src/io_modules/dl_meso/dl_meso_timing.rg | [
"MIT"
] |
unique template features/personality/config_override/config;
"/metadata/features" = append(TEMPLATE);
include if_exists("personality/"+ PERSONALITY + "/config_override");
| Pan | 2 | ned21/aquilon | tests/templates/vmhost/features/personality/config_override/config.pan | [
"Apache-2.0"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.