file_path
stringlengths
11
219
num_changed_lines
int64
0
58.4k
code
stringlengths
0
3.52M
repo_name
stringclasses
25 values
commit_date
stringdate
2017-01-24 00:00:00
2017-01-28 00:00:00
sha
stringclasses
25 values
services/web/public/js/ace-1.2.5/mode-razor.js
2,793
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/worker-php.js
7,019
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; if (!window.console) { window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: ms...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/mode-luapage.js
2,924
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/worker-latex.js
3,204
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; if (!window.console) { window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: ms...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/libs/sigma-master/sigma.require.js
12,184
;(function(undefined) { 'use strict'; var __instances = {}; /** * This is the sigma instances constructor. One instance of sigma represent * one graph. It is possible to represent this grapĥ with several renderers * at the same time. By default, the default renderer (WebGL + Canvas * polyfill) will ...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/worker-latex_beta.js
3,207
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; if (!window.console) { window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: ms...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/worker-html.js
11,605
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; if (!window.console) { window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: ms...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/worker-javascript.js
12,528
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; if (!window.console) { window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: ms...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace/mode-markdown.js
2,819
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace/worker-javascript.js
11,614
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: msgs}); }; window.console.error = win...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/mode-html_elixir.js
3,005
ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./text_highlight_rules").TextHi...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace/mode-luapage.js
2,935
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/mode-markdown.js
2,812
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/mode-php.js
12,803
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace/worker-html.js
11,606
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: msgs}); }; window.console.error = win...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/libs/chai.js
3,464
!function (name, definition) { if (typeof define == 'function' && typeof define.amd == 'object') define(definition); else this[name] = definition(); }('chai', function () { // CommonJS require() function require(p){ var path = require.resolve(p) , mod = require.modules[path]; if (!mod) throw new Er...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace/mode-ejs.js
2,961
ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./text_highlight_rules").TextHi...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace/mode-php.js
3,612
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/libs/pdfjs-1.6.210p2/pdf.js
11,515
/* Copyright 2012 Mozilla Foundation * * 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...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/libs/fineuploader.js
3,761
/** * http://github.com/Valums-File-Uploader/file-uploader * * Multiple file upload component with progress-bar, drag-and-drop, support for all modern browsers. * * Original version: 1.0 © 2010 Andrew Valums ( andrew(at)valums.com ) * Current Maintainer (2.0+): © 2012, Ray Nicholus ( fineuploader(at)garstasio.com...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/worker-xml.js
3,887
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; if (!window.console) { window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: ms...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/libs/pdfjs-1.3.91/pdf.js
9,534
/* Copyright 2012 Mozilla Foundation * * 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...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/mode-ejs.js
2,941
ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./text_highlight_rules").TextHi...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/libs/pdfjs-1.6.210p1/pdf.js
11,515
/* Copyright 2012 Mozilla Foundation * * 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...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/worker-lua.js
3,632
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; if (!window.console) { window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: ms...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace-1.2.5/mode-html_ruby.js
2,958
ace.define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./text_highlight_rules").TextHi...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace/mode-jsoniq.js
2,956
ace.define("ace/mode/xquery/jsoniq_lexer",["require","exports","module"], function(require, exports, module) { module.exports = (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/libs/sinon.js
4,081
/** * Sinon.JS 1.4.2, 2012/07/11 * * @author Christian Johansen (christian@cjohansen.no) * @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS * * (The BSD License) * * Copyright (c) 2010-2012, Christian Johansen, christian@cjohansen.no * All rights reserved. * * Redistribution ...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/libs/pdfjs-1.3.91p1/pdf.js
9,534
/* Copyright 2012 Mozilla Foundation * * 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...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
services/web/public/js/ace/worker-lua.js
3,633
"no use strict"; ;(function(window) { if (typeof window.window != "undefined" && window.document) return; if (window.require && window.define) return; window.console = function() { var msgs = Array.prototype.slice.call(arguments, 0); postMessage({type: "log", data: msgs}); }; window.console.error = win...
overleaf_overleaf
2017-01-27
30618d33db61295a9c0c9f2467a80a25fe74abb7
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksFragment.java
329
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailPresenter.java
146
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/test/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailPresenterTest.java
203
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/test/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksPresenterTest.java
197
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/addedittask/AddEditTaskPresenter.java
129
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/statistics/StatisticsPresenter.java
100
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailFragment.java
143
/* * Copyright (C) 2015 The Android Open Source Project * * 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 app...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/tasks/TasksContract.java
89
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/statistics/StatisticsFragment.java
41
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/taskdetail/TaskDetailContract.java
64
/* * Copyright 2016, The Android Open Source Project * * 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 applic...
android_architecture-samples
2017-01-27
06a71078fafeb6cf8bf43b5cd166295be4405407
caffe2/python/hypothesis_test.py
2,093
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import copy from functools import reduce from hypothesis import assume, given, settings import hypothesis.strategies as st from functools import partial import unittest from caffe2.python im...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/pipeline.py
315
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, queue_util from caffe2.python.dataio import Reader, Writer from caffe2.python.net_builder import NetBuilder from caffe2.python.schema impo...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/segment_ops_test.py
310
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core from functools import partial from hypothesis import given import caffe2.python.hypothesis_test_util as hu import numpy as np class Teste...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/conv_test.py
348
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from hypothesis import assume, given import hypothesis.strategies as st import collections from caffe2.python import core, workspace import caffe2.python.hypothesis_test_util as hu class T...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/cnn.py
809
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, scope from caffe2.python.model_helper import ModelHelperBase from caffe2.proto import caffe2_pb2 class CNNModelHelper(ModelHelperBase): ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/dataset.py
315
""" Implementation of an in-memory dataset with structured schema. Use this to store and iterate through datasets with complex schema that fit in memory. Iterating through entries of this dataset is very fast since the dataset is stored as a set of native Caffe2 tensors, thus no type conversion or deserialization is ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/core.py
1,909
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import namedtuple from collections import OrderedDict from caffe2.proto import caffe2_pb2 from collections import defaultdict from caffe2.python import ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/schema.py
857
""" Defines a minimal set of data types that allow to represent datasets with arbitrary nested structure, including objects of variable length, such as maps and lists. This defines a columnar storage format for such datasets on top of caffe2 tensors. In terms of capacity of representation, it can represent most of the...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/examples/resnet50_trainer.py
307
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import logging import numpy as np from caffe2.python import workspace, experiment_util, data_parallel_model from caffe2.python import timeout_guard, cnn ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/net_builder.py
364
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, context from caffe2.python.task import Task @context.define_context() class NetBuilder(object): """ Scope-driven mechanism for b...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/experiments/python/convnet_benchmarks.py
683
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals """ Benchmark for common convnets. (NOTE: Numbers below prior with missing parameter=update step, TODO to update) Speed on Titan X, with 10 warmup steps and 10 main step...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/dataio.py
334
""" Defines the base interface for reading and writing operations. Readers/Writers are objects that produce operations that read/write sequences of data. Each operation reads or writes a list of BlobReferences. Readers and Writers must be implemented such that read and write operations are atomic and thread safe. Ex...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/hsm_test.py
250
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hypothesis import given import numpy as np import unittest from caffe2.proto import caffe2_pb2, hsm_pb2 from caffe2.python import workspace, core, gradient_checker i...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/model_helper.py
328
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, scope import numpy as np import logging class ParameterType(object): DENSE = 'dense' SPARSE = 'sparse' class ParameterInfo(ob...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/contrib/nccl/nccl_ops_test.py
172
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import hypothesis.strategies as st from hypothesis import given, assume import numpy as np import time import os from caffe2.proto import caffe2_pb2 from ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/convnet_benchmarks.py
658
""" Benchmark for common convnets. Speed on Titan X, with 10 warmup steps and 10 main steps and with different versions of cudnn, are as follows (time reported below is per-batch time, forward / forward+backward): CuDNN V3 CuDNN v4 AlexNet 32.5 / 108.0 27.4 / 90.1 OverFeat ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/recurrent.py
256
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core from caffe2.python.cnn import CNNModelHelper def recurrent_net( net, cell_net, inputs, initial_cell_inputs, links, scratc...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/experiments/python/train.py
331
""" Benchmark for ads based model. To run a benchmark with full forward-backward-update, do e.g. OMP_NUM_THREADS=8 _build/opt/caffe2/caffe2/fb/ads/train_cpu.lpar \ --batchSize 100 \ --hidden 128-64-32 \ --loaderConfig /mnt/vol/gfsdataswarm-global/namespaces/ads/fblearner/users/ \ dzhulgakov/caffe2/tests/tes...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/core_gradients_test.py
763
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hypothesis import given import hypothesis.strategies as st import unittest from caffe2.proto import caffe2_pb2 from caffe2.python import core, test_util from caffe2...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/control.py
572
""" Implement functions for controlling execution of nets and steps, including Do DoParallel For-loop While-loop Do-While-loop Switch If """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.py...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/visualize.py
173
"""Functions that could be used to visualize Tensors. This is adapted from the old-time iceberk package that Yangqing wrote... Oh gold memories. Before decaf and caffe. Why iceberk? Because I was at Berkeley, bears are vegetarian, and iceberg lettuce has layers of leaves. (This joke is so lame.) """ import numpy as ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/control_test.py
331
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import control, core, test_util, workspace import logging logger = logging.getLogger(__name__) class TestControl(test_util.TestCase): def setUp(...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/experiments/python/SparseTransformer.py
189
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import workspace import scipy.sparse class NetDefNode(): def __init__(self, name, optype, p=None, op=None): self.name = name self...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/checkpoint.py
272
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import os import logging from caffe2.python import core, context from caffe2.python.task import Node, Task, TaskGroup, TaskOutput, WorkspaceType logger = logging.getLogg...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/experiments/python/cifar10_training.py
507
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import os import sys from libfb import pyinit from caffe2.python import core, cnn, workspace from caffe2.python import SparseTransformer import caffe2.python.models.resnet as resnet def Ad...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/core_test.py
280
import unittest import numpy as np from caffe2.proto import caffe2_pb2 from caffe2.python import core, workspace, test_util class TestScopes(test_util.TestCase): def testBlobReferenceIsIndependentFromNameScope(self): blob_v = core.BlobReference("v") with core.NameScope("foo"): blob_w ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/workspace_test.py
473
import numpy as np import os import unittest from caffe2.proto import caffe2_pb2 from caffe2.python import core, test_util, workspace import caffe2.python.hypothesis_test_util as htu import hypothesis.strategies as st from hypothesis import given from caffe2.proto import caffe2_pb2 class TestWorkspace(unittest.Test...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/caffe_translator.py
552
#!/usr/bin/env python2 import argparse import copy import logging import numpy as np from caffe2.proto import caffe2_pb2, caffe2_legacy_pb2 from caffe.proto import caffe_pb2 from caffe2.python import core, utils, workspace from google.protobuf import text_format logging.basicConfig() log = logging.getLogger("caffe_t...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/mint/app.py
185
import argparse import flask import glob import numpy as np import nvd3 import os import sys import tornado.httpserver import tornado.wsgi __folder__ = os.path.abspath(os.path.dirname(__file__)) app = flask.Flask( __name__, template_folder=os.path.join(__folder__, "templates"), static_folder=os.path.join(...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/task.py
506
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, context from caffe2.python.schema import Field, from_blob_list from collections import defaultdict @context.define_context(allow_default...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/instance_norm_test.py
261
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from hypothesis import given import hypothesis.strategies as st from itertools import izip from caffe2.python import core, cnn import caffe2.python.hypothesis_test_util as hu class TestIns...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/mpi_test.py
198
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from hypothesis import given import hypothesis.strategies as st import numpy as np import unittest from caffe2.python import core, workspace, dyndep import caffe2.pytho...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/utils.py
182
from caffe2.proto import caffe2_pb2 from google.protobuf.message import DecodeError, Message from google.protobuf import text_format import collections import functools import numpy as np import sys if sys.version_info > (3,): # This is python 3. We will define a few stuff that we used. basestring = str l...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/data_parallel_model.py
563
from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import OrderedDict import logging from caffe2.python import model_helper, dyndep, scope, workspace, core, memonger from caffe2.proto import caffe2_pb2 dyndep.InitOpsLibrary("@/caffe2/caffe2/c...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/hypothesis_test_util.py
489
""" The Hypothesis library uses *property-based testing* to check invariants about the code under test under a variety of random inputs. The key idea here is to express properties of the code under test (e.g. that it passes a gradient check, that it implements a reference function, etc), and then generate random inst...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/recurrent_network_test.py
283
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, recurrent, workspace from caffe2.python.utils import debug from caffe2.python.model_helper import ModelHelperBase from caffe2.python.cnn i...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/tt_core.py
239
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np """ The following methods are various utility methods for using the Tensor-Train decomposition, or TT-decomposition introduced by I. V. Oseledets (2011) in his paper (http://epubs.siam.org/d...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/memonger.py
286
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import networkx as nx import collections import time import copy from caffe2.python import workspace import logging log = logging.getLogger("memonger") log.setLevel(log...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/dataset_ops_test.py
416
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from caffe2.python import core, workspace, dataset from caffe2.python.dataset import Const from caffe2.python.schema import ( List, Field, Struct, S...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/gradient_check_test.py
296
# TODO(jiayq): as more and more tests are moving to hypothesis test, we # can gradually remove this test script. DO NOT ADD MORE TESTS TO THIS # FILE. from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/data_workers.py
298
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals ''' This module provides a python-land multithreaded data input mechanism for Caffe2 nets. Basic usage is as follows: coordinator = data_workers.init_data_input_work...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/net_drawer.py
376
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import json from collections import defaultdict from caffe2.python import utils try: import pydot except ImportError: print( 'Cannot impor...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/contrib/prof/htrace_to_chrome.py
199
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import json import re import sys display_levels = ["network", "worker", "operator", "kernel"] def stop_display(limit, curr): return display_levels....
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/workspace.py
468
import contextlib from google.protobuf.message import Message from multiprocessing import Process import os import shutil import socket import tempfile import logging import numpy as np from caffe2.proto import caffe2_pb2 from caffe2.python import scope, utils import caffe2.python._import_c_extension as C logger = l...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/sequence_ops_test.py
292
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core from hypothesis import given import caffe2.python.hypothesis_test_util as hu import hypothesis.strategies as st import numpy as np from func...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/conv_transpose_test.py
236
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from hypothesis import assume, given, settings import hypothesis.strategies as st from caffe2.python import core import caffe2.python.hypothesis_test_util as hu class TestConvolutionTransp...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/muji.py
202
"""muji.py does multi-gpu training for caffe2 with no need to change the c++ side code. Everything is defined on the computation graph level. Currently, here are the assumptions: we only support the following use cases: - 2 gpus, where peer access is enabled between them. - 4 gpus, where peer access are enabled be...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/layer_model_helper.py
306
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, model_helper, schema from caffe2.python.layers import layers from functools import partial import logging import numpy as np logger = lo...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/operator_test/softmax_ops_test.py
369
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python import core, workspace from hypothesis import given import caffe2.python.hypothesis_test_util as hu import hypothesis.strategies as st import numpy as n...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
caffe2/python/models/resnet.py
296
from __future__ import absolute_import from __future__ import division from __future__ import print_function ''' Utility for creating ResNets See "Deep Residual Learning for Image Recognition" by He, Zhang et. al. 2015 ''' class ResNetBuilder(): ''' Helper class for constructing residual blocks. ''' ...
pytorch_pytorch
2017-01-28
14a5b3580555f7aabae4524556962db5e831e333
src/app/app.cpp
457
// Aseprite // Copyright (C) 2001-2016 David Capello // // This program is distributed under the terms of // the End-User License Agreement for Aseprite. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "app/app.h" #include "app/app_options.h" #include "app/check_update.h" #include "app/color_utils.h" #incl...
aseprite_aseprite
2017-01-28
90624bbc22b486e5303ddd710855267feeadbd80
src/app/commands/cmd_goto_layer.cpp
82
// Aseprite // Copyright (C) 2001-2015 David Capello // // This program is distributed under the terms of // the End-User License Agreement for Aseprite. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "app/app.h" #include "app/commands/command.h" #include "app/context_access.h" #include "app/modules/editor...
aseprite_aseprite
2017-01-28
90624bbc22b486e5303ddd710855267feeadbd80
src/app/document_range_ops.cpp
256
// Aseprite // Copyright (C) 2001-2016 David Capello // // This program is distributed under the terms of // the End-User License Agreement for Aseprite. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "app/document_range_ops.h" #include "app/app.h" // TODO remove this dependency #include "app/c...
aseprite_aseprite
2017-01-28
90624bbc22b486e5303ddd710855267feeadbd80
src/app/commands/cmd_new_layer_set.cpp
86
// Aseprite // Copyright (C) 2001-2015 David Capello // // This program is distributed under the terms of // the End-User License Agreement for Aseprite. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "app/app.h" #include "app/commands/command.h" #include "app/context_access.h" #include "app/document_api.h...
aseprite_aseprite
2017-01-28
90624bbc22b486e5303ddd710855267feeadbd80
src/doc/layers_range.cpp
56
// Aseprite Document Library // Copyright (c) 2001-2015 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "doc/layers_range.h" #include "doc/cel.h" #include "doc/layer.h" #include "doc/sprit...
aseprite_aseprite
2017-01-28
90624bbc22b486e5303ddd710855267feeadbd80
src/gfx/clip.cpp
64
// Aseprite Gfx Library // Copyright (c) 2001-2014 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "gfx/clip.h" namespace gfx { bool Clip::clip( int avail_dst_w, int avail_dst_h, in...
aseprite_aseprite
2017-01-28
90624bbc22b486e5303ddd710855267feeadbd80
public/js/app.js
41
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t...
laravel_laravel
2017-01-28
1078776e953d35bd67af0971fe78efa037d8fb83
public/css/app.css
6
@import url(https://fonts.googleapis.com/css?family=Raleway:300,400,600);/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */h...
laravel_laravel
2017-01-28
1078776e953d35bd67af0971fe78efa037d8fb83
app/Http/Middleware/TrimStrings.php
18
<?php namespace App\Http\Middleware; use Illuminate\Foundation\Http\Middleware\TrimStrings as BaseTrimmer; class TrimStrings extends BaseTrimmer { /** * The names of the attributes that should not be trimmed. * * @var array */ protected $except = [ 'password', 'password_co...
laravel_laravel
2017-01-28
1078776e953d35bd67af0971fe78efa037d8fb83
webpack.mix.js
15
const { mix } = require('laravel-mix'); /* |-------------------------------------------------------------------------- | Mix Asset Management |-------------------------------------------------------------------------- | | Mix provides a clean, fluent API for defining some Webpack build steps | for your Laravel a...
laravel_laravel
2017-01-28
1078776e953d35bd67af0971fe78efa037d8fb83