- ์ฐ๋ ๋๊ฐ N๊ฐ์ธ ์ฐ๋ ๋ ํ์ด ์์ต๋๋ค.
- ๋ค์ด์ค๋ ํ์คํฌ์๋ Key๊ฐ ์์ด์, Key๊ฐ ๊ฐ์ ํ์คํฌ๋ผ๋ฆฌ๋ ๋ค์ด์ค๋ ์์๋๋ก ์คํ๋์ด์ผ ํฉ๋๋ค.
์:
Pool Size = 4
import re | |
import tiktoken | |
from collections import defaultdict | |
from textwrap import fill | |
pattern = re.compile(r"[๊ฐ-ํฃ]") | |
def get_vocabs(t): | |
for i in range(t.n_vocab): |
interface X<T> { | |
// m(o: T): void; // is ok | |
(o: T): void; | |
} | |
class A { | |
f: X<this>; | |
} | |
class B extends A { |
package org.sapzil; | |
import java.io.Serializable; | |
import javax.persistence.Entity; | |
import javax.persistence.FetchType; | |
import javax.persistence.Id; | |
import javax.persistence.IdClass; | |
import javax.persistence.ManyToOne; |
package org.sapzil | |
import org.springframework.boot.autoconfigure.SpringBootApplication | |
@SpringBootApplication | |
open class Application |
import java.io._ | |
def sizeOf[T](x:T, y:T): (Long, Long) = { | |
val buf = new ByteArrayOutputStream | |
val oos = new ObjectOutputStream(buf) | |
oos.writeObject(x) | |
val initSize = buf.size | |
oos.writeObject(y) | |
val size = buf.size - initSize | |
oos.close |
import sys | |
from ctypes import * | |
from math import isfinite | |
''' | |
1) ์์์ ํ์ด์ฌ ๋ฐ์ดํธ์ฝ๋๋ก ์ปดํ์ผ | |
์์์ด ๋ฐ์ดํธ์ฝ๋๋ก ์ปดํ์ผ ๋ ๋ constant folding์ด ๋ผ์ ๋๋ฌด ๊ฐ๋จํด์ ธ ๋ฒ๋ฆฌ์ง ์๋๋ก ํจ | |
lineno table์์ ์ฐ์๋ ๋ ๋ฐ์ดํธ์ฝ๋์ ์ค์ ์ฝ๋์ ๋ผ์ธ ๋ฒํธ๊ฐ 255 ์ด์ ์ฐจ์ด๋๋ฉด ์ต์ ํํ์ง ์๋ ๊ฒ์ ์ด์ฉ | |
์ฐธ๊ณ : https://github.com/python/cpython/blob/e4091c77026088cb0611b6e896b1579805253f5b/Python/peephole.c#L403 |
import static react.ReactDOM.*; | |
class TodoList extends ReactComponent { | |
public static final ReactProp<List<TodoItem>> ITEMS = ReactProp.create(); | |
public static ReactElement.Builder<TodoList> builder() { | |
return ReactElement.builder(TodoList.class); | |
} | |
public ReactElement render() { |
์:
Pool Size = 4
Relay.QL`...
`import sys | |
from wand.image import Image | |
from wand.color import Color | |
from wand.drawing import Drawing | |
with Image(filename=sys.argv[1]) as img: | |
pixels = [] | |
for row in img: | |
for col in row: | |
pixels.append(col) |