I hereby claim:
- I am paulfryzel on github.
- I am paulfryzel (https://keybase.io/paulfryzel) on keybase.
- I have a public key whose fingerprint is D94F 8B6B 1A65 73E0 6B98 176D 8E25 9C22 50E6 1BF1
To claim this, I am signing this object:
#!/usr/bin/env bash | |
# mostly from http://word.bitly.com/post/31921713978/static-analysis | |
function cfmt { | |
if [[ $# -ne 1 ]]; then | |
echo "Usage: cfmt <file>" | |
else | |
astyle \ | |
--style=1tbs \ | |
--lineend=linux \ | |
--convert-tabs \ |
[info] welcome to sbt 1.3.13 (AdoptOpenJDK Java 11.0.7) | |
[info] loading global plugins from C:\Users\paul\.sbt\1.0\plugins | |
[info] loading settings for project sparksql-scalapb-build from plugins.sbt ... | |
[info] loading project definition from C:\Users\paul\Documents\GitHub\forks\sparksql-scalapb\project | |
[info] loading settings for project root from build.sbt,sonatype.sbt,version.sbt ... | |
[info] set current project to root (in build file:/C:/Users/paul/Documents/GitHub/forks/sparksql-scalapb/) | |
[info] Executing in batch mode. For better performance use sbt's shell | |
[success] Total time: 0 s, completed Sep 29, 2020, 4:12:35 PM | |
[info] Compiling 9 Scala sources to C:\Users\paul\Documents\GitHub\forks\sparksql-scalapb\sparksql-scalapb\target\scala-2.12\classes ... | |
[info] Done compiling. |
[info] PersonSpec: | |
[info] mapping datasets | |
[info] - should work *** FAILED *** | |
[info] org.apache.spark.sql.AnalysisException: Try to map struct<name:string,age:int,tags:array<string>,address:struct<street:string,city:string>,nums:array<int>> to Tuple1, but failed as the number of fields does not line up.; | |
[info] at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveDeserializer$.fail(Analyzer.scala:3057) | |
[info] at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveDeserializer$.org$apache$spark$sql$catalyst$analysis$Analyzer$ResolveDeserializer$$validateTopLevelTupleFields(Analyzer.scala:3074) | |
[info] at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveDeserializer$$anonfun$apply$31$$anonfun$applyOrElse$172.applyOrElse(Analyzer.scala:3026) | |
[info] at org.apache.spark.sql.catalyst.analysis.Analyzer$ResolveDeserializer$$anonfun$apply$31$$anonfun$applyOrElse$172.applyOrElse(Analyzer.scala:3018) | |
[info] at org.apache.spark.sql.catalyst.trees.TreeNode.$anonfun$transformDown$1(TreeNode.scala: |
$ sbt clean compile | |
[info] welcome to sbt 1.3.13 (Private Build Java 1.8.0_265) | |
[info] loading global plugins from /home/pfryzel/.sbt/1.0/plugins | |
[info] loading settings for project sparksql-scalapb-build from plugins.sbt ... | |
[info] loading project definition from /home/pfryzel/workspace/github/sparksql-scalapb/project | |
[info] loading settings for project root from version.sbt,build.sbt,sonatype.sbt ... | |
[info] set current project to root (in build file:/home/pfryzel/workspace/github/sparksql-scalapb/) | |
[info] Executing in batch mode. For better performance use sbt's shell | |
[success] Total time: 0 s, completed Sep 3, 2020 2:20:15 PM | |
[info] Compiling 9 Scala sources to /home/pfryzel/workspace/github/sparksql-scalapb/sparksql-scalapb/target/scala-2.12/classes ... |
var _scripts = [ | |
'/vendor/javascripts/jquery.js', | |
'/vendor/javascripts/moment.js', | |
'/vendor/javascripts/mixpanel.js', | |
'/javascripts/main.js' | |
]; | |
(function (scripts) { | |
'use strict'; | |
function downloadJSAtOnload() { |
I hereby claim:
To claim this, I am signing this object:
function Foo(obj) { | |
this.obj = obj; | |
this.time = Date.now(); | |
} | |
function create() { | |
for (var i = 0; i < 1e6; i++) { | |
var f = new Foo({ foo: 42 }); | |
} | |
} |
Concurrent recompilation has been disabled for tracing. | |
[marking 0x3e1853b6e1b1 <JS Function IsPrimitive (SharedFunctionInfo 0x3e1853b38c39)> for recompilation, reason: small function, ICs with typeinfo: 0/0 (100%)] | |
----------------------------------------------------------- | |
Compiling method IsPrimitive using hydrogen | |
[optimizing 0x3e1853b6e1b1 <JS Function IsPrimitive (SharedFunctionInfo 0x3e1853b38c39)> - took 0.026, 123.850, 8.967 ms] | |
[marking 0x3e1853b68f91 <JS Function Instantiate (SharedFunctionInfo 0x3e1853b39121)> for recompilation, reason: small function, ICs with typeinfo: 6/8 (75%)] | |
[marking 0x3db4d560e649 <JS Function valueOf (SharedFunctionInfo 0x3e1853b30899)> for recompilation, reason: small function, ICs with typeinfo: 1/1 (100%)] | |
[marking 0x3db4d560ce51 <JS Function toString (SharedFunctionInfo 0x3e1853b336f1)> for recompilation, reason: small function, ICs with typeinfo: 1/1 (100%)] | |
----------------------------------------------------------- | |
Compiling method valueOf using hydrogen |
var parse = require('esprima').parse; | |
var generate = require('escodegen').generate; | |
function foo() { | |
var a = 1; | |
(function () { | |
var b = 2; | |
console.log(a); | |
})(); |
test('POST /photos', function (t) { | |
var payload = JSON.stringify(sample); | |
var route = { method: 'POST', url: '/photos', payload: payload}; | |
server.inject(route, function (res) { | |
t.equal(200, res.statusCode, 'Should respond with 200'); | |
t.ok(res.result, 'Should return a result'); | |
sample._id = res.result.fields._id; | |
t.end(); | |
}); | |
}); |