This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"label": "geneva-conventions-full-evaluation-v1.1", | |
"description": "Geneva Conventions Evaluations, including all four Geneva Conventions (GC1, GC2, GC3, GC4) and the Common Article 2.", | |
"models": [ | |
"openrouter:anthropic/claude-sonnet-4", | |
"openai:gpt-4o-mini", | |
"openai:gpt-4o", | |
"openai:gpt-4.1", | |
"openai:gpt-4.1-nano", | |
"openai:gpt-4.1-mini", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default [ | |
{ | |
"title": "Instruction / Perspective Adherence", | |
"description": "Evaluates how well the response follows the specific perspective, role, or system instructions given (e.g., adopting a certain cultural, philosophical, or professional stance). High scores show faithful and consistent alignment with the requested vantage, framework, or domain. Low scores ignore or contradict the instructed perspective.", | |
"scores": [ | |
{ | |
"title": "Ignores Prompt", | |
"description": "Disregards the specified perspective or role entirely. Offers a generic or off-topic response with no real sign of adapting to the requested stance.", | |
"example": "System says: 'You are a Confucian scholar advising on ethics.' Response: 'I'm just a regular person, so do whatever you want. Everyone's perspective is equally valid, so there's not much to say.'", | |
"score": 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Law n. 13,709/2018 – Provides for the | |
protection of personal data and changes Law | |
n. 12,965/2014 (Brazilian Civil Rights | |
Framework for the Internet) | |
THE NATIONAL CONGRESS decrees: | |
CHAPTER I | |
PRELIMINARY PROVISIONS | |
Article 1 This Law provides on the processing of personal data, including by digital means, by a natural | |
person or legal entity governed by public or private law, for the purpose of protecting the essential rights | |
of freedom and privacy and the free development of the personality of the individuals. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TagStreamProcessor { | |
constructor(startTag, endTag, placeholder, processFn) { | |
this.startTag = startTag; | |
this.endTag = endTag; | |
this.placeholder = placeholder; | |
this.process = processFn; | |
this.buffer = ''; | |
this.tagOpen = false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import re | |
import base64 | |
import openai | |
from openai import OpenAI | |
from threading import Lock | |
with open('keys.json', 'r') as file: | |
api_keys = json.load(file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Creating a new MutationObserver to watch for changes in the attributes of an image element | |
new MutationObserver(changes => { | |
// Iterating through each change detected by the observer | |
changes.forEach(change => { | |
// Check if the change is related to the 'src' attribute of the image | |
if(change.attributeName.includes('src')){ | |
console.log(change.target.src); // Logging the new source of the image | |
// Attempt to find an existing clone image by its ID | |
let i = document.querySelector('#img-clone-transparent'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import threading | |
import time | |
import csv | |
import os | |
import random | |
from collections import defaultdict | |
api_key = os.environ.get('OPENAI_API_KEY') | |
word_freq = defaultdict(int) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Mastodon Link To Own Instance | |
// @version 0.1 | |
// @description Adds link to your own instance next to a mastadon | |
// @author You | |
// @match *://*/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* I reckon computed member access in JS, i.e. ...[...], | |
* could be a tonne more powerful. This is an example of that. | |
* =========================================================== | |
* This is a filthy hack. Probably don't use it... | |
* =========================================================== | |
* It sets up a proxy that'll catch member access to arrays. | |
* Upon member-access, toString will be natively called and | |
* intercepted; the intercepted value will be used within our | |
* proxy to return a filtered version of the array. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Number.prototype.to = function*(n) { | |
let finish = n.valueOf(); | |
let start = this.valueOf(); | |
let finishLessThan = start >= finish; | |
for ( | |
let i = start; | |
finishLessThan ? i >= finish: i <= finish; | |
i += finishLessThan ? -1 : +1 | |
) yield i; | |
}; |
NewerOlder