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
| 'use server' | |
| import {getTokenActivities, TokenActivity} from "@/client/pichart/tokenclient"; | |
| import Rendering from "@/app/view/pichart/[tokenId]/rendering"; | |
| export default async function Page({ params: { tokenId } }: { params: { tokenId: bigint } }) { | |
| const tokenActivities = await getTokenActivities(tokenId); | |
| return ( | |
| <div> |
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
| digraph lock_wait_graph { | |
| 5414473825 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; | |
| 5414473294 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; | |
| 5414473369 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; | |
| 5414451829 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; | |
| 5414473358 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; | |
| 5414473782 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; | |
| 5414473140 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; | |
| 5414473357 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; | |
| 5414474116 [label = "UPDATE XXXXXXXXXXX SET XXXXXXXXXXX"]; |
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 java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Scanner; | |
| import java.util.Set; | |
| import java.util.regex.Pattern; | |
| import java.util.stream.Collectors; | |
| import java.util.stream.Stream; | |
| import lombok.Value; |
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 java.util.ArrayList; | |
| import java.util.List; | |
| import org.apache.commons.lang3.StringUtils; | |
| import org.apache.commons.lang3.tuple.Pair; | |
| public class UUIDUtil { | |
| public static List<Pair<String, String>> uuidSplit(int n) { | |
| if (n < 2 || n > 256) { |
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 java.util.concurrent.TimeUnit | |
| import org.openqa.selenium.By.{ByClassName, ByCssSelector, ByTagName} | |
| import org.openqa.selenium.chrome.{ChromeDriver, ChromeOptions} | |
| import org.openqa.selenium.interactions.Actions | |
| import scala.jdk.CollectionConverters._ | |
| import scala.util.Try | |
| object Main { |
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 scala.collection.mutable.ArrayBuffer | |
| object GRL3C { | |
| trait DisjointSet { | |
| def same(x: Int, y: Int): Boolean | |
| } | |
| class UnionFind(par: Array[Int]) extends DisjointSet { |
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 scala.collection.mutable.ArrayBuffer | |
| object GRL7A { | |
| case class Edge(to: Int, capacity: Short, rev: Int) { | |
| def removed: Edge = copy(capacity = 0) | |
| def added: Edge = copy(capacity = 1) | |
| } | |
| def main(args: Array[String]): Unit = { |
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 scala.collection.mutable.ArrayBuffer | |
| object FordFolkerson { | |
| case class Edge(to: Int, capacity: Int, rev: Int) { | |
| def pour(flow: Int): Edge = copy(capacity = capacity - flow) | |
| def reverse(flow: Int): Edge = copy(capacity = capacity + flow) | |
| } | |
| def maxFlow(V: Int, G: Array[ArrayBuffer[Edge]], source: Int, sink: Int): 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
| object Main { | |
| trait Monoid[A] { | |
| def zero: A | |
| def op(a1: A, a2: A): A | |
| } | |
| trait Group[A] extends Monoid[A] { | |
| def inverse(a: A): A | |
| } |
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
| object Main { | |
| trait Monoid[A] { | |
| def zero: A | |
| def op(a1: A, a2: A): A | |
| } | |
| class SegmentTree[A: Monoid] private (n: Int) { | |
| private[this] val m = implicitly[Monoid[A]] |
NewerOlder