Skip to content

Instantly share code, notes, and snippets.

65127931 function calls (64637170 primitive calls) in 72.823 seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 0.000 0.000 <string>:1(<module>)
1 0.000 0.000 0.000 0.000 <string>:1(Match)
1 0.000 0.000 0.000 0.000 <string>:1(Mismatch)
1 0.000 0.000 0.000 0.000 <string>:2(<module>)
1 0.000 0.000 0.000 0.000 <string>:6(Chebyshev)
Last login: Mon Jun 30 15:50:02 on ttys005
Gabimac:Projeto-Classificacao chs$ python -m cProfile -s time classificacao3D.py
Executando banda = 100% para 3 dimensões:
Banda Sakoe-­Chiba: 0 \%
Acertos: 669 Erros: 135
Porcentagem total de acurácia: 83.2089552239 %
Arquivos gerados: matriz_de_confusao_3D_0.png e matriz_de_porcentagens_3D_0.png
128649793 function calls (128640702 primitive calls) in 5999.299 seconds
noflo = require 'noflo'
jsfeat = require 'jsfeat'
if noflo.isBrowser()
requestAnimationFrame =
window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
noflo = require 'noflo'
unless noflo.isBrowser()
chai = require 'chai' unless chai
GetCannyEdges = require '../components/GetCannyEdges.coffee'
testutils = require './testutils'
else
GetCannyEdges = require 'noflo-image/components/GetCannyEdges.js'
testutils = require 'noflo-image/spec/testutils.js'
@GabiThume
GabiThume / noflo.json
Created October 4, 2014 20:33
Demo Canny Edges
{
"properties": {
"name": "main",
"id": "canny/main",
"project": "canny",
"environment": {
"type": "noflo-browser",
"content": "<canvas id=\"can\" width=\"640\" height=\"480\"></canvas>\n<video id=\"vid\" width=\"640\" height=\"480\" autoplay></video>"
},
"changed": true,
@GabiThume
GabiThume / ControlMirobot.coffee
Last active August 29, 2015 14:11
MozFest code
noflo = require 'noflo'
Mirobot = null
sleep = (ms) ->
start = new Date().getTime()
continue while new Date().getTime() - start < ms
class ControlMirobot extends noflo.Component
description: 'Control Mirobot.'
icon: 'pencil'
@GabiThume
GabiThume / error
Created April 23, 2013 04:24
error in permission
======================================================================
FAIL: test_util_versions_info (socorro.unittest.middleware.test_middleware_app.TestMiddlewareApp)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chs/Desktop/CODE/repos/socorro/socorro/unittest/middleware/test_middleware_app.py", line 868, in test_util_versions_info
'/util/versions_info/versions/Firefox:9.0a1+Fennec:7.0/'
File "/Users/chs/Desktop/CODE/repos/socorro/socorro/unittest/middleware/test_middleware_app.py", line 298, in get
response = a.get(url, expect_errors=expect_errors)
File "/Users/chs/Desktop/CODE/repos/socorro/socorro-virtualenv/lib/python2.6/site-packages/paste/fixture.py", line 208, in get
return self.do_request(req, status=status)
{"hits": {"WaterWolf": [{"product": "WaterWolf", "throttle": 100.0, "end_date": "2013-05-28", "featured": true, "version": "5.0a1", "release": "Nightly", "has_builds": true, "start_date": "2013-03-26"}, {"product": "WaterWolf", "throttle": 100.0, "end_date": "2013-05-28", "featured": true, "version": "4.0a2", "release": "Aurora", "has_builds": true, "start_date": "2013-03-26"}, {"product": "WaterWolf", "throttle": 100.0, "end_date": "2013-05-28", "featured": false, "version": "4.0a1", "release": "Nightly", "has_builds": true, "start_date": "2013-03-26"}, {"product": "WaterWolf", "throttle": 100.0, "end_date": "2013-05-28", "featured": false, "version": "3.0a2", "release": "Aurora", "has_builds": true, "start_date": "2013-03-26"}, {"product": "WaterWolf", "throttle": 10.0, "end_date": "2013-08-27", "featured": true, "version": "2.1", "release": "Release", "has_builds": false, "start_date": "2013-04-23"}, {"product": "WaterWolf", "throttle": 10.0, "end_date": "2013-08-27", "featured": false, "version": "2.0", "
# GNU MediaGoblin -- federated, autonomous media hosting
# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
<Elrond> paroneayea - Hi back. [13:42]
<paroneayea> hey Elrond !
<Elrond> paroneayea - Reprocessing? [13:44]
<paroneayea> Elrond: yeah, let's talk about it :) [13:45]
ERC> /query joar [13:46]
<Elrond> I think, it's quite easy, IF media-types use the proc_state tools.
[13:47]
<Elrond> proc_state.get_queue_file() -- get from queue for normal, get from
main storage for reprocessing.
<Elrond> proc_state.delete_queue_file() -- delete if the queufile was on the