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 { Dictionary, Entry, entries, dict } from './Dictionary'; | |
import { KVPair, kvPair } from './object'; | |
import { identity } from './utils'; | |
type Transformer<C, X> = (c: C, context?: X) => C; | |
type Getter<S, C> = (s: S) => C; | |
type Setter<S, C> = (s: S, v: C) => S; | |
type Reducer<R, C, X> = (sum: R, value: C, context: X) => R; |
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
module Main where | |
import Data.Generic | |
import Prelude | |
import Control.Monad.Free (Free, liftF, runFreeM) | |
import Control.Monad.Eff | |
import Control.Monad.Eff.Console (log, CONSOLE) | |
import Control.Monad.Eff.Random (randomBool, RANDOM) | |
data Action = |
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
const request = require('request-promise-native'); | |
const parseLinkHeader = require('parse-link-header'); | |
const fs = require('fs'); | |
/* | |
* This is an idempotent script for downloading pr & review data for a single repository | |
* Set the repo and auth variables below, then run and wait. its not speedy, but it works | |
* | |
* If you stop the script or it dies or you trigger abuse detection, it is safe to restart. | |
* it will only download the remaining data, any requests that were pending at the time of |
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 { Assistant } from "openai/resources/beta/assistants/assistants"; | |
import { Message } from "openai/resources/beta/threads/messages/messages"; | |
import { RequiredActionFunctionToolCall } from "openai/resources/beta/threads/runs/runs"; | |
import { Thread } from "openai/resources/beta/threads/threads"; | |
import { searchInput } from "src/handlers/search"; | |
import { adminUpdateAiThreadExtra } from "src/operations/ai_thread"; | |
import { openai } from "../lib/openai"; | |
import { | |
getMessageContent, | |
parsePlain, |
OlderNewer