<commit_before>package com.xhachi.gae4s.datastore

import com.google.appengine.api.datastore.{KeyFactory, Key => LLKey}

import scala.reflect.ClassTag

object EntityMeta {

  import scala.language.experimental.macros

  implicit def createMeta[E <: Entity[E]]: EntityMeta[E] = macro EntityMacro.createMeta[E]
}

abstract class EntityMeta[E <: Entity[E] : ClassTag] extends Serializable {

  type Entity = E

  def entityType: Class[_] = implicitly[ClassTag[E]].runtimeClass

  def kind: String = implicitly[ClassTag[E]].runtimeClass.getName

  val key = new KeyProperty[Entity]("key")

  def properties: Seq[Property[_]] = Seq(key)

  def property(name: String): Option[Property[_]] = properties.find(_.name == name)<commit_msg>keyでフィルタが動くようにしました。<commit_after>package com.xhachi.gae4s.datastore

import com.google.appengine.api.datastore.{KeyFactory, Key => LLKey}

import scala.reflect.ClassTag

object EntityMeta {

  import scala.language.experimental.macros

  implicit def createMeta[E <: Entity[E]]: EntityMeta[E] = macro EntityMacro.createMeta[E]
}

abstract class EntityMeta[E <: Entity[E] : ClassTag] extends Serializable {

  type Entity = E

  def entityType: Class[_] = implicitly[ClassTag[E]].runtimeClass

  def kind: String = implicitly[ClassTag[E]].runtimeClass.getName

  val key = new KeyProperty[Entity]("__key__")

  def properties: Seq[Property[_]] = Seq(key)

  def property(name: String): Option[Property[_]] = properties.find(_.name == name)
{'fraction_non_alphanumeric': 0.126193724420191, 'fraction_numerical': 0.001364256480218281, 'mean_word_length': 5.52, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2560084', 'n_tokens_mistral': 503, 'n_tokens_neox': 476, 'n_words': 101}