Skip to content

Instantly share code, notes, and snippets.

@tuler
tuler / gist:02aa42c423e5a627a0ea5fa5b9381f7b
Created January 8, 2025 22:07
community notes execution log
This file has been truncated, but you can view the full file.
$ python3 main.py -e ../input/userEnrollment-00000.tsv -n ../input/notes-00000.tsv -r ../input/ratings -s ../input/noteStatusHistory-00000.tsv -o ../output --seed 0 --parallel
INFO:birdwatch.runner:scorer python version: 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0]
INFO:birdwatch.runner:scorer pandas version: 2.2.2
INFO:birdwatch.runner:beginning scorer execution
INFO:birdwatch.process_data:Timestamp of latest rating in data: 2025-01-04 01:01:21.258000
INFO:birdwatch.process_data:Timestamp of latest note in data: 2025-01-04 01:01:14.426000
CONCAT ERROR(S) AT: /home/ubuntu/communitynotes/sourcecode/scoring/note_status_history.py, in merge_note_info, at line 31: newNoteStatusHistory = oldNoteStatusHistory.merge(
PandasTypeError: Type expectation mismatch on noteId: found=float64 expected=int64
@tuler
tuler / factory.ts
Last active August 21, 2023 22:06
Factories and interfaces
interface IShape {}
class Shape implements IShape {}
// Option A
interface IShapeFactory {
create(): Shape;
}
// Option B
interface IShapeFactory {
@tuler
tuler / .block
Last active April 3, 2016 05:40 — forked from mbostock/.block
Zoom to Bounding Box II
license: gpl-3.0
@tuler
tuler / affirmation
Created July 29, 2014 00:06
MuleSoft Contributor Agreement Acceptance by Danilo Tuler
I, Danilo Tuler, have read and do accept the MuleSoft Contributor Agreement
at http://www.mulesoft.org/legal/contributor-agreement.html
Accepted on Mon Jul 28 2014 21:06:00 GMT-0300 (BRT)
@tuler
tuler / strip
Created June 5, 2013 11:15
groovy script to generate a film strip
@Grab( 'commons-io:commons-io:2.1' )
import org.apache.commons.io.FilenameUtils
// filename of video
def filename = this.args[0]
// base of filename
def basename = FilenameUtils.getBaseName(filename)
// width of final strip
@tuler
tuler / thumbnail_xuggler
Created June 5, 2013 11:14
Script to generate video thumbnails using xuggler
@GrabResolver(name='xuggle', root='http://xuggle.googlecode.com/svn/trunk/repo/share/java/')
@Grab( 'xuggle:xuggle-xuggler:5.2' )
import javax.imageio.ImageIO;
import java.io.File;
import java.awt.image.BufferedImage;
import com.xuggle.xuggler.Global;
import com.xuggle.xuggler.IContainer;
import com.xuggle.xuggler.IPacket;
@tuler
tuler / redmine_svn_to_git_migrator.rb
Created May 5, 2012 04:31 — forked from rca/redmine_svn_to_git_migrator.rb
Redmine SVN to Git Migrator
#!/usr/bin/ruby
#
# Migration Tool for Redmine issue and time entry comments from SVN revisions to Git (i.e. r1234 => commit:abcdef789)
# ==============================
# (c) 2009 Christoph Olszowka & Sebastian Georgi, Capita Unternehmensberatung
#
# We used this when we migrated two of our main repositories from svn to git (see http://gist.github.com/139478)
# and wanted to have our revision links in Redmine reflect that change, too.
#