id
stringlengths
34
124
type
stringclasses
4 values
prompt
stringlengths
0
4.95k
response
stringlengths
21
4.89k
source_lang
stringclasses
3 values
target_lang
stringclasses
2 values
repo
stringclasses
75 values
path
stringlengths
10
88
license
stringclasses
1 value
commit
stringlengths
40
40
stars
int64
431
18.7k
source_url
stringlengths
86
176
line_start
int64
1
214
line_end
int64
3
253
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:1:completion
completion
should = require 'should' limbo = require 'limbo' uuid = require 'uuid' db = limbo.use 'talk' async = require 'async' jwt = require 'jsonwebtoken' util = require '../../server/util' config = require 'config' app = require '../app' {prepare, clear, request} = app { MemberModel UserModel } = db describe 'User#ReadO...
url: 'users/me' qs: _sessionUserId: app.user1._id request options, (err, res, user) -> user.should.have.properties 'name', 'avatarUrl', 'email', 'phoneForLogin', 'mobile' done(err) after clear describe 'User#Read', -> before prepare it 'should read the users by email', (done) -> ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
1
47
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:2:raw_corpus
raw_corpus
it 'should read the users by mobile number', (done) -> options = method: 'GET' url: '/users' qs: _sessionUserId: app.user1._id q: '13388888881' request options, (err, res, users) -> users.length.should.eql 1 done err it 'should read the users by mobiles', (done) ...
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
49
98
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'should read the users by mobile number', (done) -> options = method: 'GET' url: '/users' qs: _sessionUserId: app.user1._id q: '13388888881' request options, (err, res, users) -> users.length.should.eql 1 d...
it('should read the users by mobile number', function(done) { var options; options = { method: 'GET', url: '/users', qs: { _sessionUserId: app.user1._id, q: '13388888881' } }; return request(options, function(err, res, users) { users.length.should.eql(1); return done(err); ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
49
98
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('should read the users by mobile number', function(done) { var options; options = { method: 'GET', url: '/users', qs: { _sessionUserId: app.user1._id, q: '13388888881' } }; return request(options, function(err, res, users) { ...
it 'should read the users by mobile number', (done) -> options = method: 'GET' url: '/users' qs: _sessionUserId: app.user1._id q: '13388888881' request options, (err, res, users) -> users.length.should.eql 1 done err it 'should read the users by mobiles', (done) ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
49
98
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:2:completion
completion
it 'should read the users by mobile number', (done) -> options = method: 'GET' url: '/users' qs: _sessionUserId: app.user1._id q: '13388888881' request options, (err, res, users) -> users.length.should.eql 1 done err it 'should read the users by mobiles', (done) ...
before prepare it 'should update user name to xjx', (done) -> async.auto broadcast: (callback) -> app.broadcast = (room, event, data, socketId) -> if event is 'user:update' data.should.have.properties 'name', 'avatarUrl' data.name.should.eql 'xjx' call...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
49
98
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:4:raw_corpus
raw_corpus
after clear describe 'User#Subscribe', -> before prepare it 'should subscribe to the user channel', (done) -> options = method: 'post' url: 'users/subscribe' headers: "X-Socket-Id": uuid.v1() body: _sessionUserId: app.user1._id app.request options, (err, res, result) -> ...
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
101
147
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:4:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript after clear describe 'User#Subscribe', -> before prepare it 'should subscribe to the user channel', (done) -> options = method: 'post' url: 'users/subscribe' headers: "X-Socket-Id": uuid.v1() body: _sessionUserId: app.us...
after(clear); describe('User#Subscribe', function() { before(prepare); it('should subscribe to the user channel', function(done) { var options; options = { method: 'post', url: 'users/subscribe', headers: { "X-Socket-Id": uuid.v1() }, body: { _sessionUserId: ap...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
101
147
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:4:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript after(clear); describe('User#Subscribe', function() { before(prepare); it('should subscribe to the user channel', function(done) { var options; options = { method: 'post', url: 'users/subscribe', headers: { "X-Socket-Id": uuid...
after clear describe 'User#Subscribe', -> before prepare it 'should subscribe to the user channel', (done) -> options = method: 'post' url: 'users/subscribe' headers: "X-Socket-Id": uuid.v1() body: _sessionUserId: app.user1._id app.request options, (err, res, result) -> ...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
101
147
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:4:completion
completion
after clear describe 'User#Subscribe', -> before prepare it 'should subscribe to the user channel', (done) -> options = method: 'post' url: 'users/subscribe' headers: "X-Socket-Id": uuid.v1() body: _sessionUserId: app.user1._id app.request options, (err, res, result) -> ...
it 'should unsubscribe to the user channel', (done) -> options = method: 'post' url: 'users/unsubscribe' headers: "X-Socket-Id": uuid.v1() body: _sessionUserId: app.user1._id app.request options, (err, res, result) -> result.should.eql ok: 1 done err after clear describe ...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
101
147
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:5:raw_corpus
raw_corpus
createUser: (callback) -> user = new UserModel name: "jianliao" accountId: "55f7d19c85efe377996a1232" app.user = user user.$save().nodeify callback gettoken: ['createUser', (callback) -> options = method: 'get' url: '/union/github/landing' ...
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
149
166
jianliaoim/talk-os:talk-api2x/test/controllers/user.coffee:5:completion
completion
createUser: (callback) -> user = new UserModel name: "jianliao" accountId: "55f7d19c85efe377996a1232" app.user = user user.$save().nodeify callback gettoken: ['createUser', (callback) -> options =
method: 'get' url: '/union/github/landing' body: JSON.stringify _sessionUserId: app.user._id accountToken: 'OKKKKKKK' app.request options, callback ] , done after clear
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/test/controllers/user.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/test/controllers/user.coffee
149
166
mojs/mojs:spec/mojs.coffee:1:raw_corpus
raw_corpus
describe 'mojs ->', -> it 'should have revision', -> expect(typeof mojs.revision).toBe 'string' it 'should have isDebug = true', -> expect(mojs.isDebug).toBe true it 'should have helpers defined', -> expect(mojs.helpers).toBeDefined() it 'should expose helpers to h variable', -> expect(mojs.h).t...
CoffeeScript
mojs/mojs
spec/mojs.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/mojs.coffee
1
50
mojs/mojs:spec/mojs.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'mojs ->', -> it 'should have revision', -> expect(typeof mojs.revision).toBe 'string' it 'should have isDebug = true', -> expect(mojs.isDebug).toBe true it 'should have helpers defined', -> expect(mojs.helpers).toBeDefined() it 'shou...
describe('mojs ->', function() { it('should have revision', function() { return expect(typeof mojs.revision).toBe('string'); }); it('should have isDebug = true', function() { return expect(mojs.isDebug).toBe(true); }); it('should have helpers defined', function() { return expect(mojs.helpers).toBe...
CoffeeScript
JavaScript
mojs/mojs
spec/mojs.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/mojs.coffee
1
50
mojs/mojs:spec/mojs.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('mojs ->', function() { it('should have revision', function() { return expect(typeof mojs.revision).toBe('string'); }); it('should have isDebug = true', function() { return expect(mojs.isDebug).toBe(true); }); it('should have helpers defi...
describe 'mojs ->', -> it 'should have revision', -> expect(typeof mojs.revision).toBe 'string' it 'should have isDebug = true', -> expect(mojs.isDebug).toBe true it 'should have helpers defined', -> expect(mojs.helpers).toBeDefined() it 'should expose helpers to h variable', -> expect(mojs.h).t...
JavaScript
CoffeeScript
mojs/mojs
spec/mojs.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/mojs.coffee
1
50
mojs/mojs:spec/mojs.coffee:1:completion
completion
describe 'mojs ->', -> it 'should have revision', -> expect(typeof mojs.revision).toBe 'string' it 'should have isDebug = true', -> expect(mojs.isDebug).toBe true it 'should have helpers defined', -> expect(mojs.helpers).toBeDefined() it 'should expose helpers to h variable', -> expect(mojs.h).t...
it 'should have Swirl alias', -> expect(mojs.Swirl).toBe mojs.ShapeSwirl it 'should have stagger', -> expect(mojs.stagger).toBeDefined() it 'should have Spriter', -> expect(mojs.Spriter).toBeDefined() it 'should have MotionPath', -> expect(mojs.MotionPath).toBeDefined() it 'should have Timeline'...
CoffeeScript
CoffeeScript
mojs/mojs
spec/mojs.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/mojs.coffee
1
50
mojs/mojs:spec/mojs.coffee:2:raw_corpus
raw_corpus
expect(mojs.shapesMap).toBeDefined() it 'should have _pool', -> expect(typeof mojs._pool).toBe 'object' expect(mojs._pool).toBe mojs._pool it 'should have delta', -> expect(mojs._pool.Delta).toBeDefined() it 'should have deltas', -> expect(mojs._pool.Deltas).toBeDefined()
CoffeeScript
mojs/mojs
spec/mojs.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/mojs.coffee
51
59
mojs/mojs:spec/mojs.coffee:2:completion
completion
expect(mojs.shapesMap).toBeDefined() it 'should have _pool', -> expect(typeof mojs._pool).toBe 'object'
expect(mojs._pool).toBe mojs._pool it 'should have delta', -> expect(mojs._pool.Delta).toBeDefined() it 'should have deltas', -> expect(mojs._pool.Deltas).toBeDefined()
CoffeeScript
CoffeeScript
mojs/mojs
spec/mojs.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/spec/mojs.coffee
51
59
mojs/mojs:src/shapes/equal.coffee:1:raw_corpus
raw_corpus
# ignore coffescript sudo code Bit = require('./bit').default class Equal extends Bit # shape: 'path' # ratio: 1.43 _declareDefaults:-> super() this._defaults.tag = 'path' this._defaults.points = 2 _draw:-> super() p = @_props return if !@_props.points radiusX = if @_props.radiusX...
CoffeeScript
mojs/mojs
src/shapes/equal.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/equal.coffee
1
44
mojs/mojs:src/shapes/equal.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript # ignore coffescript sudo code Bit = require('./bit').default class Equal extends Bit # shape: 'path' # ratio: 1.43 _declareDefaults:-> super() this._defaults.tag = 'path' this._defaults.points = 2 _draw:-> super() p = @_props re...
// ignore coffescript sudo code var Bit, Equal; Bit = require('./bit').default; Equal = class Equal extends Bit { // shape: 'path' // ratio: 1.43 _declareDefaults() { super._declareDefaults(); this._defaults.tag = 'path'; return this._defaults.points = 2; } _draw() { var d, i, isPoints, isR...
CoffeeScript
JavaScript
mojs/mojs
src/shapes/equal.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/equal.coffee
1
44
mojs/mojs:src/shapes/equal.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript // ignore coffescript sudo code var Bit, Equal; Bit = require('./bit').default; Equal = class Equal extends Bit { // shape: 'path' // ratio: 1.43 _declareDefaults() { super._declareDefaults(); this._defaults.tag = 'path'; return this._defaults.p...
# ignore coffescript sudo code Bit = require('./bit').default class Equal extends Bit # shape: 'path' # ratio: 1.43 _declareDefaults:-> super() this._defaults.tag = 'path' this._defaults.points = 2 _draw:-> super() p = @_props return if !@_props.points radiusX = if @_props.radiusX...
JavaScript
CoffeeScript
mojs/mojs
src/shapes/equal.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/equal.coffee
1
44
mojs/mojs:src/shapes/equal.coffee:1:completion
completion
# ignore coffescript sudo code Bit = require('./bit').default class Equal extends Bit # shape: 'path' # ratio: 1.43 _declareDefaults:-> super() this._defaults.tag = 'path' this._defaults.points = 2 _draw:-> super() p = @_props return if !@_props.points radiusX = if @_props.radiusX...
# skip if nothing changed return if ( isRadiusX and isRadiusY and isPoints ) x = @_props.width/2; y = @_props.height/2 x1 = x-radiusX; x2 = x+radiusX d = ''; yStep = 2*radiusY/(@_props.points-1) yStart = y-radiusY for i in [0...@_props.points] y = "#{i*yStep + yStart}" d += "M#{x1},...
CoffeeScript
CoffeeScript
mojs/mojs
src/shapes/equal.coffee
MIT
0a9cf9a87dd5637e6fa770755e79048489bcf817
18,698
https://github.com/mojs/mojs/blob/0a9cf9a87dd5637e6fa770755e79048489bcf817/src/shapes/equal.coffee
1
44
mojs/mojs:src/shapes/equal.coffee:1:raw_corpus
raw_corpus
# ignore coffescript sudo code Bit = require('./bit').default class Equal extends Bit # shape: 'path' # ratio: 1.43 _declareDefaults:-> super this._defaults.tag = 'path' this._defaults.points = 2 _draw:-> super p = @_props return if !@_props.points radiusX = if @_props.radiusX? th...
CoffeeScript
mojs/mojs
src/shapes/equal.coffee
MIT
7c34e766d9b361898a59adbc753862fa95de182a
18,698
https://github.com/mojs/mojs/blob/7c34e766d9b361898a59adbc753862fa95de182a/src/shapes/equal.coffee
1
44
mojs/mojs:src/shapes/equal.coffee:1:completion
completion
# ignore coffescript sudo code Bit = require('./bit').default class Equal extends Bit # shape: 'path' # ratio: 1.43 _declareDefaults:-> super this._defaults.tag = 'path' this._defaults.points = 2 _draw:-> super p = @_props return if !@_props.points radiusX = if @_props.radiusX? th...
# skip if nothing changed return if ( isRadiusX and isRadiusY and isPoints ) x = @_props.width/2; y = @_props.height/2 x1 = x-radiusX; x2 = x+radiusX d = ''; yStep = 2*radiusY/(@_props.points-1) yStart = y-radiusY for i in [0...@_props.points] y = "#{i*yStep + yStart}" d += "M#{x1},...
CoffeeScript
CoffeeScript
mojs/mojs
src/shapes/equal.coffee
MIT
7c34e766d9b361898a59adbc753862fa95de182a
18,698
https://github.com/mojs/mojs/blob/7c34e766d9b361898a59adbc753862fa95de182a/src/shapes/equal.coffee
1
44
mojs/mojs:src/shapes/equal.coffee:1:raw_corpus
raw_corpus
# ignore coffescript sudo code Bit = require('./bit').default or require('./bit'); class Equal extends Bit # shape: 'path' # ratio: 1.43 _declareDefaults:-> super this._defaults.tag = 'path' this._defaults.points = 2 _draw:-> super p = @_props return if !@_props.points radiusX = i...
CoffeeScript
mojs/mojs
src/shapes/equal.coffee
MIT
768850a20165488e3098a3003b153e905266dac8
18,698
https://github.com/mojs/mojs/blob/768850a20165488e3098a3003b153e905266dac8/src/shapes/equal.coffee
1
44
mojs/mojs:src/shapes/equal.coffee:1:completion
completion
# ignore coffescript sudo code Bit = require('./bit').default or require('./bit'); class Equal extends Bit # shape: 'path' # ratio: 1.43 _declareDefaults:-> super this._defaults.tag = 'path' this._defaults.points = 2 _draw:-> super p = @_props return if !@_props.points radiusX = i...
# skip if nothing changed return if ( isRadiusX and isRadiusY and isPoints ) x = @_props.width/2; y = @_props.height/2 x1 = x-radiusX; x2 = x+radiusX d = ''; yStep = 2*radiusY/(@_props.points-1) yStart = y-radiusY for i in [0...@_props.points] y = "#{i*yStep + yStart}" d += "M#{x1},...
CoffeeScript
CoffeeScript
mojs/mojs
src/shapes/equal.coffee
MIT
768850a20165488e3098a3003b153e905266dac8
18,698
https://github.com/mojs/mojs/blob/768850a20165488e3098a3003b153e905266dac8/src/shapes/equal.coffee
1
44
jianliaoim/talk-os:talk-api2x/server/schemas/voip.coffee:1:raw_corpus
raw_corpus
### # Sub accounts from http://www.yuntongxun.com/ # * Indexes: # * - db.voips.ensureIndex({user: 1}, {unique: true, background: true}) ### Err = require 'err1st' {Schema} = require 'mongoose' util = require '../util' module.exports = VoipSchema = new Schema user: type: Schema.Types.ObjectId, ref: 'User' voipAccou...
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/voip.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/voip.coffee
1
29
jianliaoim/talk-os:talk-api2x/server/schemas/voip.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript ### # Sub accounts from http://www.yuntongxun.com/ # * Indexes: # * - db.voips.ensureIndex({user: 1}, {unique: true, background: true}) ### Err = require 'err1st' {Schema} = require 'mongoose' util = require '../util' module.exports = VoipSchema = new Schema u...
/* * Sub accounts from http://www.yuntongxun.com/ * * Indexes: * * - db.voips.ensureIndex({user: 1}, {unique: true, background: true}) */ var Err, Schema, VoipSchema, util; Err = require('err1st'); ({Schema} = require('mongoose')); util = require('../util'); module.exports = VoipSchema = new Schema({ user: { ...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-api2x/server/schemas/voip.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/voip.coffee
1
29
jianliaoim/talk-os:talk-api2x/server/schemas/voip.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript /* * Sub accounts from http://www.yuntongxun.com/ * * Indexes: * * - db.voips.ensureIndex({user: 1}, {unique: true, background: true}) */ var Err, Schema, VoipSchema, util; Err = require('err1st'); ({Schema} = require('mongoose')); util = require('../util');...
### # Sub accounts from http://www.yuntongxun.com/ # * Indexes: # * - db.voips.ensureIndex({user: 1}, {unique: true, background: true}) ### Err = require 'err1st' {Schema} = require 'mongoose' util = require '../util' module.exports = VoipSchema = new Schema user: type: Schema.Types.ObjectId, ref: 'User' voipAccou...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/voip.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/voip.coffee
1
29
jianliaoim/talk-os:talk-api2x/server/schemas/voip.coffee:1:completion
completion
### # Sub accounts from http://www.yuntongxun.com/ # * Indexes: # * - db.voips.ensureIndex({user: 1}, {unique: true, background: true}) ### Err = require 'err1st' {Schema} = require 'mongoose' util = require '../util' module.exports = VoipSchema = new Schema user: type: Schema.Types.ObjectId, ref: 'User' voipAccou...
subAccountSid: String createdAt: type: Date, default: Date.now updatedAt: type: Date, default: Date.now , read: 'secondaryPreferred' toObject: virtuals: true getters: true toJSON: virtuals: true getters: true VoipSchema.virtual '_userId' .get -> @user?._id or @user .set (_id) -> @user = _...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-api2x/server/schemas/voip.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-api2x/server/schemas/voip.coffee
1
29
Glavin001/atom-beautify:src/beautifiers/align-yaml.coffee:1:raw_corpus
raw_corpus
"use strict" Beautifier = require('./beautifier') module.exports = class AlignYaml extends Beautifier name: "align-yaml" link: "https://github.com/jonschlinkert/align-yaml" options: { YAML: padding: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> a...
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/align-yaml.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/align-yaml.coffee
1
18
Glavin001/atom-beautify:src/beautifiers/align-yaml.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript "use strict" Beautifier = require('./beautifier') module.exports = class AlignYaml extends Beautifier name: "align-yaml" link: "https://github.com/jonschlinkert/align-yaml" options: { YAML: padding: true } beautify: (text, language, options...
"use strict"; var AlignYaml, Beautifier; Beautifier = require('./beautifier'); module.exports = AlignYaml = (function() { class AlignYaml extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { var align, result; align = require('align-y...
CoffeeScript
JavaScript
Glavin001/atom-beautify
src/beautifiers/align-yaml.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/align-yaml.coffee
1
18
Glavin001/atom-beautify:src/beautifiers/align-yaml.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript "use strict"; var AlignYaml, Beautifier; Beautifier = require('./beautifier'); module.exports = AlignYaml = (function() { class AlignYaml extends Beautifier { beautify(text, language, options) { return new this.Promise(function(resolve, reject) { ...
"use strict" Beautifier = require('./beautifier') module.exports = class AlignYaml extends Beautifier name: "align-yaml" link: "https://github.com/jonschlinkert/align-yaml" options: { YAML: padding: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> a...
JavaScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/align-yaml.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/align-yaml.coffee
1
18
Glavin001/atom-beautify:src/beautifiers/align-yaml.coffee:1:completion
completion
"use strict" Beautifier = require('./beautifier') module.exports = class AlignYaml extends Beautifier name: "align-yaml" link: "https://github.com/jonschlinkert/align-yaml" options: { YAML:
padding: true } beautify: (text, language, options) -> return new @Promise((resolve, reject) -> align = require('align-yaml') result = align(text, options.padding) resolve(result) )
CoffeeScript
CoffeeScript
Glavin001/atom-beautify
src/beautifiers/align-yaml.coffee
MIT
41d5051b399f7fe11efd149504a232df16179d60
1,503
https://github.com/Glavin001/atom-beautify/blob/41d5051b399f7fe11efd149504a232df16179d60/src/beautifiers/align-yaml.coffee
1
18
gandm/language-babel:lib/auto-complete-jsx.coffee:1:raw_corpus
raw_corpus
module.exports = selector: ".meta.tag.jsx" inclusionPriority: 10000 excludeLowerPriority: false getSuggestions: (opts) -> {editor, bufferPosition, scopeDescriptor, prefix} = opts jsxTag = @getTriggerTag editor, bufferPosition return if not jsxTag? # build autocomplete list suggestions = ...
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/lib/auto-complete-jsx.coffee
15
64
gandm/language-babel:lib/auto-complete-jsx.coffee:1:completion
completion
module.exports = selector: ".meta.tag.jsx" inclusionPriority: 10000 excludeLowerPriority: false getSuggestions: (opts) -> {editor, bufferPosition, scopeDescriptor, prefix} = opts jsxTag = @getTriggerTag editor, bufferPosition return if not jsxTag? # build autocomplete list suggestions = ...
else if jsxTag is JSXENDTAGSTART startOfJSX = @getStartOfJSX editor, bufferPosition jsxRange = new Range(startOfJSX, bufferPosition) tagNameStack = @buildTagStack(editor, jsxRange) while ( tagName = tagNameStack.pop())? suggestions.push snippet: "#{tagName}>" type: "...
CoffeeScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/lib/auto-complete-jsx.coffee
15
64
gandm/language-babel:lib/auto-complete-jsx.coffee:2:raw_corpus
raw_corpus
if elementObj.name is tagName then break attributes = elementObj.attributes.concat COMPLETIONS.globalAttributes attributes = attributes.concat COMPLETIONS.events filteredAttributes = filter(attributes, prefix, {key: "name"}) for attribute in filteredAttributes if score(attribute.name, pr...
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/lib/auto-complete-jsx.coffee
65
114
gandm/language-babel:lib/auto-complete-jsx.coffee:2:completion
completion
if elementObj.name is tagName then break attributes = elementObj.attributes.concat COMPLETIONS.globalAttributes attributes = attributes.concat COMPLETIONS.events filteredAttributes = filter(attributes, prefix, {key: "name"}) for attribute in filteredAttributes if score(attribute.name, pr...
while (( match = TAGREGEXP.exec(rowText)) isnt null ) # save this match if it a valid tag scopes = editor.scopeDescriptorForBufferPosition([row, match.index+1]).getScopesArray() if "entity.name.tag.open.jsx" in scopes then matches.push match[1] # return the tag that is the last one found ...
CoffeeScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/lib/auto-complete-jsx.coffee
65
114
gandm/language-babel:lib/auto-complete-jsx.coffee:3:raw_corpus
raw_corpus
# find previous start of row that has no jsx tag while row >= 0 break if "meta.tag.jsx" not in editor.scopeDescriptorForBufferPosition([row, 0]).getScopesArray() row-- if row < 0 then row = 0 # maybe jsx appaears later in row columnLen = editor.lineTextForBufferRow(row).length column = 0...
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/lib/auto-complete-jsx.coffee
115
161
gandm/language-babel:lib/auto-complete-jsx.coffee:3:completion
completion
# find previous start of row that has no jsx tag while row >= 0 break if "meta.tag.jsx" not in editor.scopeDescriptorForBufferPosition([row, 0]).getScopesArray() row-- if row < 0 then row = 0 # maybe jsx appaears later in row columnLen = editor.lineTextForBufferRow(row).length column = 0...
if row is range.end.row line = line.substr 0, range.end.column while (( match = JSXREGEXP.exec(line)) isnt null ) matchColumn = match.index matchPointStart = new Point(row, matchColumn) matchPointEnd = new Point(row, matchColumn + match[0].length - 1) matchRange = new Range...
CoffeeScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
d7d260522eb0f6528ea8558beb1bda54c5d25eba
474
https://github.com/gandm/language-babel/blob/d7d260522eb0f6528ea8558beb1bda54c5d25eba/lib/auto-complete-jsx.coffee
115
161
gandm/language-babel:lib/auto-complete-jsx.coffee:3:raw_corpus
raw_corpus
# find previous start of row that has no jsx tag while row >= 0 break if "meta.tag.jsx" not in editor.scopeDescriptorForBufferPosition([row, 0]).getScopesArray() row-- if row < 0 then row = 0 # maybe jsx appaears later in row columnLen = editor.lineTextForBufferRow(row).length column = 0...
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
23b47273071a581331b4dc2cd891e3dcf353b69b
474
https://github.com/gandm/language-babel/blob/23b47273071a581331b4dc2cd891e3dcf353b69b/lib/auto-complete-jsx.coffee
115
158
gandm/language-babel:lib/auto-complete-jsx.coffee:3:completion
completion
# find previous start of row that has no jsx tag while row >= 0 break if "meta.tag.jsx" not in editor.scopeDescriptorForBufferPosition([row, 0]).getScopesArray() row-- if row < 0 then row = 0 # maybe jsx appaears later in row columnLen = editor.lineTextForBufferRow(row).length column = 0...
line = editor.lineTextForBufferRow row if row is range.end.row line = line.substr 0, range.end.column while (( match = JSXREGEXP.exec(line)) isnt null ) matchColumn = match.index matchPointStart = new Point(row, matchColumn) matchPointEnd = new Point(row, matchColumn + match[...
CoffeeScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
23b47273071a581331b4dc2cd891e3dcf353b69b
474
https://github.com/gandm/language-babel/blob/23b47273071a581331b4dc2cd891e3dcf353b69b/lib/auto-complete-jsx.coffee
115
158
gandm/language-babel:lib/auto-complete-jsx.coffee:2:raw_corpus
raw_corpus
if elementObj.name is tagName then break elementObj.attributes = elementObj.attributes.concat COMPLETIONS.globalAttributes elementObj.attributes = elementObj.attributes.concat COMPLETIONS.events filteredAttributes = filter(elementObj.attributes, prefix, {key: "name"}) for attribute in filteredAt...
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
c3641b84cd3a46a5c6cf7aff27337e5396992687
474
https://github.com/gandm/language-babel/blob/c3641b84cd3a46a5c6cf7aff27337e5396992687/lib/auto-complete-jsx.coffee
65
114
gandm/language-babel:lib/auto-complete-jsx.coffee:2:completion
completion
if elementObj.name is tagName then break elementObj.attributes = elementObj.attributes.concat COMPLETIONS.globalAttributes elementObj.attributes = elementObj.attributes.concat COMPLETIONS.events filteredAttributes = filter(elementObj.attributes, prefix, {key: "name"}) for attribute in filteredAt...
while (( match = TAGREGEXP.exec(rowText)) isnt null ) # save this match if it a valid tag scopes = editor.scopeDescriptorForBufferPosition([row, match.index+1]).getScopesArray() if "entity.name.tag.open.jsx" in scopes then matches.push match[1] # return the tag that is the last one found ...
CoffeeScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
c3641b84cd3a46a5c6cf7aff27337e5396992687
474
https://github.com/gandm/language-babel/blob/c3641b84cd3a46a5c6cf7aff27337e5396992687/lib/auto-complete-jsx.coffee
65
114
gandm/language-babel:lib/auto-complete-jsx.coffee:1:raw_corpus
raw_corpus
module.exports = selector: ".meta.tag.jsx" inclusionPriority: 10000 excludeLowerPriority: false getSuggestions: (opts) -> {editor, bufferPosition, scopeDescriptor, prefix} = opts return if editor.getGrammar().packageName isnt "language-babel" jsxTag = @getTriggerTag editor, bufferPosition ret...
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/lib/auto-complete-jsx.coffee
15
64
gandm/language-babel:lib/auto-complete-jsx.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript module.exports = selector: ".meta.tag.jsx" inclusionPriority: 10000 excludeLowerPriority: false getSuggestions: (opts) -> {editor, bufferPosition, scopeDescriptor, prefix} = opts return if editor.getGrammar().packageName isnt "language-babel" ...
module.exports = { selector: ".meta.tag.jsx", inclusionPriority: 10000, excludeLowerPriority: false, getSuggestions: function(opts) { var bufferPosition, editor, htmlElement, htmlElements, i, jsxRange, jsxTag, len, prefix, results, results1, results2, scopeDescriptor, startOfJSX, suggestions, tagName, tagNa...
CoffeeScript
JavaScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/lib/auto-complete-jsx.coffee
15
64
gandm/language-babel:lib/auto-complete-jsx.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript module.exports = { selector: ".meta.tag.jsx", inclusionPriority: 10000, excludeLowerPriority: false, getSuggestions: function(opts) { var bufferPosition, editor, htmlElement, htmlElements, i, jsxRange, jsxTag, len, prefix, results, results1, results2, s...
module.exports = selector: ".meta.tag.jsx" inclusionPriority: 10000 excludeLowerPriority: false getSuggestions: (opts) -> {editor, bufferPosition, scopeDescriptor, prefix} = opts return if editor.getGrammar().packageName isnt "language-babel" jsxTag = @getTriggerTag editor, bufferPosition ret...
JavaScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/lib/auto-complete-jsx.coffee
15
64
gandm/language-babel:lib/auto-complete-jsx.coffee:1:completion
completion
module.exports = selector: ".meta.tag.jsx" inclusionPriority: 10000 excludeLowerPriority: false getSuggestions: (opts) -> {editor, bufferPosition, scopeDescriptor, prefix} = opts return if editor.getGrammar().packageName isnt "language-babel" jsxTag = @getTriggerTag editor, bufferPosition ret...
else if jsxTag is JSXENDTAGSTART startOfJSX = @getStartOfJSX editor, bufferPosition jsxRange = new Range(startOfJSX, bufferPosition) tagNameStack = @buildTagStack(editor, jsxRange) while ( tagName = tagNameStack.pop())? suggestions.push snippet: "#{tagName}>" type: "...
CoffeeScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/lib/auto-complete-jsx.coffee
15
64
gandm/language-babel:lib/auto-complete-jsx.coffee:2:raw_corpus
raw_corpus
for elementObj in COMPLETIONS.htmlElements if elementObj.name is tagName then break elementObj.attributes = elementObj.attributes.concat COMPLETIONS.globalAttributes elementObj.attributes = elementObj.attributes.concat COMPLETIONS.events filteredAttributes = filter(elementObj.attributes, prefi...
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/lib/auto-complete-jsx.coffee
65
114
gandm/language-babel:lib/auto-complete-jsx.coffee:2:completion
completion
for elementObj in COMPLETIONS.htmlElements if elementObj.name is tagName then break elementObj.attributes = elementObj.attributes.concat COMPLETIONS.globalAttributes elementObj.attributes = elementObj.attributes.concat COMPLETIONS.events filteredAttributes = filter(elementObj.attributes, prefi...
matches = [] while (( match = TAGREGEXP.exec(rowText)) isnt null ) # save this match if it a valid tag scopes = editor.scopeDescriptorForBufferPosition([row, match.index+1]).getScopesArray() if "entity.name.tag.open.jsx" in scopes then matches.push match[1] # return the tag that is t...
CoffeeScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/lib/auto-complete-jsx.coffee
65
114
gandm/language-babel:lib/auto-complete-jsx.coffee:3:raw_corpus
raw_corpus
row = bufferPosition.row # find previous start of row that has no jsx tag while row >= 0 break if "meta.tag.jsx" not in editor.scopeDescriptorForBufferPosition([row, 0]).getScopesArray() row-- if row < 0 then row = 0 # maybe jsx appaears later in row columnLen = editor.lineTextForBufferR...
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/lib/auto-complete-jsx.coffee
115
159
gandm/language-babel:lib/auto-complete-jsx.coffee:3:completion
completion
row = bufferPosition.row # find previous start of row that has no jsx tag while row >= 0 break if "meta.tag.jsx" not in editor.scopeDescriptorForBufferPosition([row, 0]).getScopesArray() row-- if row < 0 then row = 0 # maybe jsx appaears later in row columnLen = editor.lineTextForBufferR...
while row <= range.end.row line = editor.lineTextForBufferRow row if row is range.end.row line = line.substr 0, range.end.column while (( match = JSXREGEXP.exec(line)) isnt null ) matchColumn = match.index matchPointStart = new Point(row, matchColumn) matchPointEnd = ne...
CoffeeScript
CoffeeScript
gandm/language-babel
lib/auto-complete-jsx.coffee
MIT
2a687553b7f81e5b904b3b0c778236076428634b
474
https://github.com/gandm/language-babel/blob/2a687553b7f81e5b904b3b0c778236076428634b/lib/auto-complete-jsx.coffee
115
159
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:1:raw_corpus
raw_corpus
describe 'socket', -> networkHandler = null beforeEach -> require 'config' @TALK = 'X-Socket-Id': 'x-socket-id' 'sockHost': 'fake host' require.cache[require.resolve('config')].exports = @TALK networkHandler = require 'handlers/network' spyOn(networkHandler, 'newConnection') s...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
1
41
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'socket', -> networkHandler = null beforeEach -> require 'config' @TALK = 'X-Socket-Id': 'x-socket-id' 'sockHost': 'fake host' require.cache[require.resolve('config')].exports = @TALK networkHandler = require 'handlers/...
describe('socket', function() { var networkHandler; networkHandler = null; beforeEach(function() { require('config'); this.TALK = { 'X-Socket-Id': 'x-socket-id', 'sockHost': 'fake host' }; require.cache[require.resolve('config')].exports = this.TALK; networkHandler = require('handl...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
1
41
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('socket', function() { var networkHandler; networkHandler = null; beforeEach(function() { require('config'); this.TALK = { 'X-Socket-Id': 'x-socket-id', 'sockHost': 'fake host' }; require.cache[require.resolve('config')].e...
describe 'socket', -> networkHandler = null beforeEach -> require 'config' @TALK = 'X-Socket-Id': 'x-socket-id' 'sockHost': 'fake host' require.cache[require.resolve('config')].exports = @TALK networkHandler = require 'handlers/network' spyOn(networkHandler, 'newConnection') s...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
1
41
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:1:completion
completion
describe 'socket', -> networkHandler = null beforeEach -> require 'config' @TALK = 'X-Socket-Id': 'x-socket-id' 'sockHost': 'fake host' require.cache[require.resolve('config')].exports = @TALK networkHandler = require 'handlers/network' spyOn(networkHandler, 'newConnection') s...
describe 'method: connect', -> it 'should be defined', -> expect(@socket.connect).toBeDefined() it 'should connect primus', -> @socket.connect() expect(@Primus.connect).toHaveBeenCalledWith @TALK.sockHost it 'should not connect primus twice', -> @socket.connect() @socket.conn...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
1
41
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:2:raw_corpus
raw_corpus
describe 'on "reconnect scheduled" handler', -> it 'should broadcast disconnection if disconnected', -> deviceActions = require 'actions/device' actions = require 'actions' spyOn deviceActions, 'networkDisconnect' spyOn actions, 'outdateStore' primus.emit 'reconnect schedul...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
43
82
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:2:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript describe 'on "reconnect scheduled" handler', -> it 'should broadcast disconnection if disconnected', -> deviceActions = require 'actions/device' actions = require 'actions' spyOn deviceActions, 'networkDisconnect' spyOn actio...
describe('on "reconnect scheduled" handler', function() { return it('should broadcast disconnection if disconnected', function() { var actions, deviceActions; deviceActions = require('actions/device'); actions = require('actions'); spyOn(deviceActions, 'networkDisconnect'); spyOn(actions, 'outdate...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
43
82
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:2:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript describe('on "reconnect scheduled" handler', function() { return it('should broadcast disconnection if disconnected', function() { var actions, deviceActions; deviceActions = require('actions/device'); actions = require('actions'); spyOn(deviceAct...
describe 'on "reconnect scheduled" handler', -> it 'should broadcast disconnection if disconnected', -> deviceActions = require 'actions/device' actions = require 'actions' spyOn deviceActions, 'networkDisconnect' spyOn actions, 'outdateStore' primus.emit 'reconnect schedul...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
43
82
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:2:completion
completion
describe 'on "reconnect scheduled" handler', -> it 'should broadcast disconnection if disconnected', -> deviceActions = require 'actions/device' actions = require 'actions' spyOn deviceActions, 'networkDisconnect' spyOn actions, 'outdateStore' primus.emit 'reconnect schedul...
describe 'on "data" handler', -> describe 'handle message data', -> it 'should emit', -> socketData = a: 'message:create' d: 'data' primus.emit 'data', socketData expect(@socket.emit).toHaveBeenCalledWith socketData.a, socketData.d describe 'new...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
43
82
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:3:raw_corpus
raw_corpus
it 'should make new connection requests', -> expect(networkHandler.newConnection).toHaveBeenCalled() it 'should call firstConnectionCB', -> expect(firstConnectionCB).toHaveBeenCalled() describe 'reconnection', -> beforeEach -> primus.emit 'data', socketId: 'socket i...
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
84
108
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:3:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript it 'should make new connection requests', -> expect(networkHandler.newConnection).toHaveBeenCalled() it 'should call firstConnectionCB', -> expect(firstConnectionCB).toHaveBeenCalled() describe 'reconnection', -> before...
it('should make new connection requests', function() { return expect(networkHandler.newConnection).toHaveBeenCalled(); }); it('should call firstConnectionCB', function() { return expect(firstConnectionCB).toHaveBeenCalled(); }); describe('reconnection', function() { beforeEach(function() { return primus.emi...
CoffeeScript
JavaScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
84
108
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:3:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript it('should make new connection requests', function() { return expect(networkHandler.newConnection).toHaveBeenCalled(); }); it('should call firstConnectionCB', function() { return expect(firstConnectionCB).toHaveBeenCalled(); }); describe('reconnection', funct...
it 'should make new connection requests', -> expect(networkHandler.newConnection).toHaveBeenCalled() it 'should call firstConnectionCB', -> expect(firstConnectionCB).toHaveBeenCalled() describe 'reconnection', -> beforeEach -> primus.emit 'data', socketId: 'socket i...
JavaScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
84
108
jianliaoim/talk-os:talk-web/test/spec/network/socket.spec.coffee:3:completion
completion
it 'should make new connection requests', -> expect(networkHandler.newConnection).toHaveBeenCalled() it 'should call firstConnectionCB', -> expect(firstConnectionCB).toHaveBeenCalled() describe 'reconnection', -> beforeEach -> primus.emit 'data', socketId: 'socket i...
expect(networkHandler.longReconnection).toHaveBeenCalled() it 'should clear reconnection notification after 5 seconds', -> notifyBannerActions = require 'actions/notify-banner' spyOn notifyBannerActions, 'success' spyOn notifyBannerActions, 'clear' primus.emit 'data', so...
CoffeeScript
CoffeeScript
jianliaoim/talk-os
talk-web/test/spec/network/socket.spec.coffee
MIT
2545c4497865779a55762e03963a39237df9046b
2,703
https://github.com/jianliaoim/talk-os/blob/2545c4497865779a55762e03963a39237df9046b/talk-web/test/spec/network/socket.spec.coffee
84
108
nicolaskruchten/pivottable:locales/pivot.jp.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.jp.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.jp.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.jp.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain brow...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery"], pivotModule); } else { // Plain br...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
locales/pivot.jp.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.jp.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.jp.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return defi...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.jp.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.jp.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.jp.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
filterResults: "項目を検索する" totals: "合計" vs: "vs" by: "per" apply: "適用する" cancel: "キャンセル" aggregators: "件数": tpl.count(jpFmtInt) "件数(ユニーク)": tpl.countUnique(jpFmtInt) "ユニーク値を表示 (CSV...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.jp.coffee
MIT
838ec2fc38747749c28d2fd1cb6c4ace9e9cc520
4,440
https://github.com/nicolaskruchten/pivottable/blob/838ec2fc38747749c28d2fd1cb6c4ace9e9cc520/locales/pivot.jp.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.jp.coffee:1:raw_corpus
raw_corpus
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.jp.coffee
MIT
ce0e20c7790223a746707d0ea6cc696402612dbc
4,440
https://github.com/nicolaskruchten/pivottable/blob/ce0e20c7790223a746707d0ea6cc696402612dbc/locales/pivot.jp.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.jp.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain brow...
var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return define(["jquery"], pivotModule); } else { // Plain br...
CoffeeScript
JavaScript
nicolaskruchten/pivottable
locales/pivot.jp.coffee
MIT
ce0e20c7790223a746707d0ea6cc696402612dbc
4,440
https://github.com/nicolaskruchten/pivottable/blob/ce0e20c7790223a746707d0ea6cc696402612dbc/locales/pivot.jp.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.jp.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var callWithJQuery; callWithJQuery = function(pivotModule) { if (typeof exports === "object" && typeof module === "object") { // CommonJS return pivotModule(require("jquery")); } else if (typeof define === "function" && define.amd) { // AMD return defi...
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
JavaScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.jp.coffee
MIT
ce0e20c7790223a746707d0ea6cc696402612dbc
4,440
https://github.com/nicolaskruchten/pivottable/blob/ce0e20c7790223a746707d0ea6cc696402612dbc/locales/pivot.jp.coffee
1
50
nicolaskruchten/pivottable:locales/pivot.jp.coffee:1:completion
completion
callWithJQuery = (pivotModule) -> if typeof exports is "object" and typeof module is "object" # CommonJS pivotModule require("jquery") else if typeof define is "function" and define.amd # AMD define ["jquery"], pivotModule # Plain browser env else pivotModule jQuery callWithJQue...
filterResults: "項目を検索する" totals: "合計" vs: "vs" by: "per" apply: "適用する" cancel: "キャンセル" aggregators: "件数": tpl.count(jpFmtInt) "件数(ユニーク)": tpl.countUnique(jpFmtInt) "ユニーク値を表示 (CSV...
CoffeeScript
CoffeeScript
nicolaskruchten/pivottable
locales/pivot.jp.coffee
MIT
ce0e20c7790223a746707d0ea6cc696402612dbc
4,440
https://github.com/nicolaskruchten/pivottable/blob/ce0e20c7790223a746707d0ea6cc696402612dbc/locales/pivot.jp.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:raw_corpus
raw_corpus
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' # This is an incredibly important object because the majority of the layer information # is contained in layer info blocks. The keys of this object define how the layer info # can be accessed. Each layer info block contains different data, ...
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' # This is an incredibly important object because the majority of the layer information # is contained in layer info blocks. The keys of this object define how the layer info # can be ...
var LAYER_INFO, LazyExecute, Util; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); // This is an incredibly important object because the majority of the layer information // is contained in layer info blocks. The keys of this object define how the layer info // can be accessed. Eac...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var LAYER_INFO, LazyExecute, Util; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); // This is an incredibly important object because the majority of the layer information // is contained in layer info blocks. The keys of this o...
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' # This is an incredibly important object because the majority of the layer information # is contained in layer info blocks. The keys of this object define how the layer info # can be accessed. Each layer info block contains different data, ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:completion
completion
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' # This is an incredibly important object because the majority of the layer information # is contained in layer info blocks. The keys of this object define how the layer info # can be accessed. Each layer info block contains different data, ...
locked: require('../layer_info/locked.coffee') metadata: require('../layer_info/metadata.coffee') name: require('../layer_info/unicode_name.coffee') nestedSectionDivider: require('../layer_info/nested_section_divider.coffee') objectEffects: require('../...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:2:raw_corpus
raw_corpus
keyParseable = false for own name, klass of LAYER_INFO continue unless klass.shouldParse(key) # Once we find the right class to handle the layer info block, we create it and # register it with LazyExecute. This allows us to parse the PSD significantly # faster because we don't bot...
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/info.coffee
51
76
meltingice/psd.js:lib/psd/layer/info.coffee:2:completion
completion
keyParseable = false for own name, klass of LAYER_INFO continue unless klass.shouldParse(key) # Once we find the right class to handle the layer info block, we create it and # register it with LazyExecute. This allows us to parse the PSD significantly # faster because we don't bot...
# We create a function that lets us easily access the data. unless @[name]? do (name) => @[name] = => @adjustments[name] # For debugging purposes, we store every key that we can parse. @infoKeys.push key keyParseable = true break # If we don't know how to parse ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
7e8392d20fd5d66ad70ddda7309661b9a0ca67c8
2,846
https://github.com/meltingice/psd.js/blob/7e8392d20fd5d66ad70ddda7309661b9a0ca67c8/lib/psd/layer/info.coffee
51
76
meltingice/psd.js:lib/psd/layer/info.coffee:1:raw_corpus
raw_corpus
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' # This is an incredibly important object because the majority of the layer information # is contained in layer info blocks. The keys of this object define how the layer info # can be accessed. Each layer info block contains different data, ...
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
236752c511d16ddd41dcdbd81e82c478336c1d73
2,846
https://github.com/meltingice/psd.js/blob/236752c511d16ddd41dcdbd81e82c478336c1d73/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' # This is an incredibly important object because the majority of the layer information # is contained in layer info blocks. The keys of this object define how the layer info # can be ...
var LAYER_INFO, LazyExecute, Util; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); // This is an incredibly important object because the majority of the layer information // is contained in layer info blocks. The keys of this object define how the layer info // can be accessed. Eac...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
236752c511d16ddd41dcdbd81e82c478336c1d73
2,846
https://github.com/meltingice/psd.js/blob/236752c511d16ddd41dcdbd81e82c478336c1d73/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var LAYER_INFO, LazyExecute, Util; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); // This is an incredibly important object because the majority of the layer information // is contained in layer info blocks. The keys of this o...
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' # This is an incredibly important object because the majority of the layer information # is contained in layer info blocks. The keys of this object define how the layer info # can be accessed. Each layer info block contains different data, ...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
236752c511d16ddd41dcdbd81e82c478336c1d73
2,846
https://github.com/meltingice/psd.js/blob/236752c511d16ddd41dcdbd81e82c478336c1d73/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:completion
completion
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' # This is an incredibly important object because the majority of the layer information # is contained in layer info blocks. The keys of this object define how the layer info # can be accessed. Each layer info block contains different data, ...
locked: require('../layer_info/locked.coffee') metadata: require('../layer_info/metadata.coffee') name: require('../layer_info/unicode_name.coffee') nestedSectionDivider: require('../layer_info/nested_section_divider.coffee') objectEffects: require('../...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
236752c511d16ddd41dcdbd81e82c478336c1d73
2,846
https://github.com/meltingice/psd.js/blob/236752c511d16ddd41dcdbd81e82c478336c1d73/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:raw_corpus
raw_corpus
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
2d92133484116ec91b6e496bbd780a917fc4e2f9
2,846
https://github.com/meltingice/psd.js/blob/2d92133484116ec91b6e496bbd780a917fc4e2f9/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fi...
var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorElements: require('../layer_info/blend_interior_elements...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
2d92133484116ec91b6e496bbd780a917fc4e2f9
2,846
https://github.com/meltingice/psd.js/blob/2d92133484116ec91b6e496bbd780a917fc4e2f9/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorE...
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
2d92133484116ec91b6e496bbd780a917fc4e2f9
2,846
https://github.com/meltingice/psd.js/blob/2d92133484116ec91b6e496bbd780a917fc4e2f9/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:completion
completion
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
module.exports = parseLayerInfo: -> while @file.tell() < @layerEnd @file.seek 4, true # sig key = @file.readString(4) length = Util.pad2 @file.readInt() pos = @file.tell() keyParseable = false for own name, klass of LAYER_INFO continue unless klass.shouldParse(key) ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
2d92133484116ec91b6e496bbd780a917fc4e2f9
2,846
https://github.com/meltingice/psd.js/blob/2d92133484116ec91b6e496bbd780a917fc4e2f9/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:raw_corpus
raw_corpus
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
f82e5525ab0197c9cc7ae21baeec6f6e59d46028
2,846
https://github.com/meltingice/psd.js/blob/f82e5525ab0197c9cc7ae21baeec6f6e59d46028/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fi...
var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorElements: require('../layer_info/blend_interior_elements...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
f82e5525ab0197c9cc7ae21baeec6f6e59d46028
2,846
https://github.com/meltingice/psd.js/blob/f82e5525ab0197c9cc7ae21baeec6f6e59d46028/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorE...
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
f82e5525ab0197c9cc7ae21baeec6f6e59d46028
2,846
https://github.com/meltingice/psd.js/blob/f82e5525ab0197c9cc7ae21baeec6f6e59d46028/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:completion
completion
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
module.exports = parseLayerInfo: -> while @file.tell() < @layerEnd @file.seek 4, true # sig key = @file.readString(4) length = Util.pad2 @file.readInt() pos = @file.tell() keyParseable = false for own name, klass of LAYER_INFO continue unless klass.shouldParse(key) ...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
f82e5525ab0197c9cc7ae21baeec6f6e59d46028
2,846
https://github.com/meltingice/psd.js/blob/f82e5525ab0197c9cc7ae21baeec6f6e59d46028/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:raw_corpus
raw_corpus
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
d30e31006f131410e38ac72c3f523614134b7adb
2,846
https://github.com/meltingice/psd.js/blob/d30e31006f131410e38ac72c3f523614134b7adb/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fi...
var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorElements: require('../layer_info/blend_interior_elements...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
d30e31006f131410e38ac72c3f523614134b7adb
2,846
https://github.com/meltingice/psd.js/blob/d30e31006f131410e38ac72c3f523614134b7adb/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorE...
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
d30e31006f131410e38ac72c3f523614134b7adb
2,846
https://github.com/meltingice/psd.js/blob/d30e31006f131410e38ac72c3f523614134b7adb/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:completion
completion
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
while @file.tell() < @layerEnd @file.seek 4, true # sig key = @file.readString(4) length = Util.pad2 @file.readInt() pos = @file.tell() keyParseable = false for own name, klass of LAYER_INFO continue unless klass.shouldParse(key) i = new klass(@, length) @a...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
d30e31006f131410e38ac72c3f523614134b7adb
2,846
https://github.com/meltingice/psd.js/blob/d30e31006f131410e38ac72c3f523614134b7adb/lib/psd/layer/info.coffee
1
50
meltingice/psd.js:lib/psd/layer/info.coffee:1:raw_corpus
raw_corpus
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
4ce0325116dc84818b820d2723fb45e7fd5fafa1
2,846
https://github.com/meltingice/psd.js/blob/4ce0325116dc84818b820d2723fb45e7fd5fafa1/lib/psd/layer/info.coffee
1
49
meltingice/psd.js:lib/psd/layer/info.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fi...
var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorElements: require('../layer_info/blend_interior_elements...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
4ce0325116dc84818b820d2723fb45e7fd5fafa1
2,846
https://github.com/meltingice/psd.js/blob/4ce0325116dc84818b820d2723fb45e7fd5fafa1/lib/psd/layer/info.coffee
1
49
meltingice/psd.js:lib/psd/layer/info.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorE...
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
4ce0325116dc84818b820d2723fb45e7fd5fafa1
2,846
https://github.com/meltingice/psd.js/blob/4ce0325116dc84818b820d2723fb45e7fd5fafa1/lib/psd/layer/info.coffee
1
49
meltingice/psd.js:lib/psd/layer/info.coffee:1:completion
completion
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
while @file.tell() < @layerEnd @file.seek 4, true # sig key = @file.readString(4) length = Util.pad2 @file.readInt() pos = @file.tell() keyParseable = false for own name, klass of LAYER_INFO continue unless klass.shouldParse(key) i = new klass(@, length) @a...
CoffeeScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
4ce0325116dc84818b820d2723fb45e7fd5fafa1
2,846
https://github.com/meltingice/psd.js/blob/4ce0325116dc84818b820d2723fb45e7fd5fafa1/lib/psd/layer/info.coffee
1
49
meltingice/psd.js:lib/psd/layer/info.coffee:1:raw_corpus
raw_corpus
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
c3e53bea91d69045c5c0eb31e605cfc15ecf5f92
2,846
https://github.com/meltingice/psd.js/blob/c3e53bea91d69045c5c0eb31e605cfc15ecf5f92/lib/psd/layer/info.coffee
1
48
meltingice/psd.js:lib/psd/layer/info.coffee:1:coffee_to_js
coffee_to_js
Convert this CoffeeScript to JavaScript. ```coffeescript LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fi...
var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorElements: require('../layer_info/blend_interior_elements...
CoffeeScript
JavaScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
c3e53bea91d69045c5c0eb31e605cfc15ecf5f92
2,846
https://github.com/meltingice/psd.js/blob/c3e53bea91d69045c5c0eb31e605cfc15ecf5f92/lib/psd/layer/info.coffee
1
48
meltingice/psd.js:lib/psd/layer/info.coffee:1:js_to_coffee
js_to_coffee
Convert this JavaScript to CoffeeScript. ```javascript var LAYER_INFO, LazyExecute, Util, hasProp = {}.hasOwnProperty; LazyExecute = require('../lazy_execute.coffee'); Util = require('../util.coffee'); LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee'), blendInteriorE...
LazyExecute = require '../lazy_execute.coffee' Util = require '../util.coffee' LAYER_INFO = { blendClippingElements: require('../layer_info/blend_clipping_elements.coffee') blendInteriorElements: require('../layer_info/blend_interior_elements.coffee') fillOpacity: require('../layer_info/fill_opacity...
JavaScript
CoffeeScript
meltingice/psd.js
lib/psd/layer/info.coffee
MIT
c3e53bea91d69045c5c0eb31e605cfc15ecf5f92
2,846
https://github.com/meltingice/psd.js/blob/c3e53bea91d69045c5c0eb31e605cfc15ecf5f92/lib/psd/layer/info.coffee
1
48