path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
timeselectview/src/main/java/com/ndhzs/timeselectview/layout/ChildLayout.kt | 985892345 | 349,440,488 | false | null | package com.ndhzs.timeselectview.layout
import android.annotation.SuppressLint
import android.content.Context
import android.widget.FrameLayout
import com.ndhzs.timeselectview.utils.TSViewAttrs
import com.ndhzs.timeselectview.viewinterface.IChildLayout
/**
* @author 985892345
* @date 2021/3/20
* @description [Pare... | 0 | Kotlin | 0 | 5 | 74e9502cc553c8c8ddc9de765931e6547b6a5283 | 1,216 | TimeSelectView_Library | Apache License 2.0 |
src/conventions/7_Invoke.kt | stakenschneider | 224,120,914 | false | null | package conventions
class Pp {
var numberOfInvocations: Int = 0
private set
operator fun invoke(): Pp {
numberOfInvocations++
return this
}
}
fun invokeTwice(invokable: Pp) = invokable()()
fun main() {
print(invokeTwice(Pp()).numberOfInvocations)
Pp()()()()()()
} | 0 | Kotlin | 0 | 1 | 91b752e1e83b22075e9ac48d8638677c105ac763 | 311 | Kotlin-stepik | Apache License 2.0 |
validator-android/src/main/kotlin/by/shostko/validator/android/CollectionValidator.kt | shostko | 212,552,006 | false | null | @file:Suppress("unused")
package by.shostko.validator.android
class NotEmptyCollectionValidator<T>(
private val tag: String? = null,
private val reason: ((Collection<T>) -> Int?)? = null,
) : BaseValidator<Collection<T>>(tag) {
override fun validate(value: Collection<T>) {
if (value.isEmpty()) {
... | 0 | Kotlin | 0 | 0 | 87e7fc495375507a45ddcde37955f4847f1b2e3c | 3,265 | validator | Apache License 2.0 |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/GrinTongueWink.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,029 | icons | MIT License |
src/main/kotlin/io/arct/arctlib/extensions/EntityTypeExtensions.kt | aeuu-archive | 275,284,611 | false | null | @file:Suppress("unused")
package io.arct.arctlib.extensions
import org.bukkit.entity.EntityType
/**
* Check if a [EntityType] is a skeleton.
*
* @return Whether the [EntityType] is of type skeleton.
*/
val EntityType.isSkeleton: Boolean
get() = when (this) {
EntityType.SKELETON,
EntityType.WI... | 2 | Kotlin | 1 | 2 | 29100cc3dbe81962904a1fc99fc47de4585ac9c1 | 2,892 | arctlib | MIT License |
ktx/src/main/java/com/kotlin/android/ktx/ext/TextViewExt.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.ktx.ext
import android.text.Html
import android.text.Spannable
import android.text.SpannableString
import android.text.style.ForegroundColorSpan
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.annotation.StringRes
import com.kotlin.android.ktx.ext.core.getS... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 1,203 | Mtime | Apache License 2.0 |
app/src/androidTest/java/com/oscarliang/gitfinder/ui/search/SearchFragmentTest.kt | iamoscarliang | 771,415,562 | false | {"Kotlin": 85207} | package com.oscarliang.gitfinder.ui.search
import android.content.Context
import android.view.KeyEvent
import androidx.annotation.StringRes
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.lifecycle.MutableLiveData
import androidx.navigation.NavController
import androidx.navigation.Naviga... | 0 | Kotlin | 0 | 0 | 4f662f9dc36d349fa147fcda44c55426dfb20bf2 | 7,851 | git-finder | MIT License |
app/src/main/java/app/evolute/compose/ui/theme/Theme.kt | hello-there-kenobi | 521,856,064 | false | null | package app.evolute.compose.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
import andro... | 0 | Kotlin | 0 | 0 | c805116388f6d14a217c76fae451ee9691bb7214 | 1,677 | compose | Apache License 2.0 |
web/src/main/kotlin/world/phantasmal/web/core/rendering/conversion/MeshBuilder.kt | DaanVandenBosch | 189,066,992 | false | null | package world.phantasmal.web.core.rendering.conversion
import org.khronos.webgl.Float32Array
import org.khronos.webgl.Uint16Array
import org.khronos.webgl.set
import world.phantasmal.core.asArray
import world.phantasmal.core.jsArrayOf
import world.phantasmal.core.unsafe.UnsafeMap
import world.phantasmal.psolib.fileFor... | 2 | Kotlin | 5 | 20 | 62a49b067c50a4862198e18f96159826c2ed66af | 7,582 | phantasmal-world | MIT License |
core/src/main/java/io/android/todarch/core/dagger/ScopeFragment.kt | todarch | 152,471,665 | false | null | /*
* Copyright 2018 Todarch
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 3 | 34e25e9cf457379e5cb0c8e6e7793d249767b2a1 | 826 | todarch-android | Apache License 2.0 |
app/src/main/kotlin/io/github/tonyguyot/flagorama/ui/home/HomeAdapter.kt | TonyGuyot | 272,160,703 | false | null | /*
* Copyright (C) 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 1 | 0 | 8b5adf2039fd9dcbd73ff558974e61a6dd357a75 | 2,699 | flagorama-app | Apache License 2.0 |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/TengeSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36756847} | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... | 15 | Kotlin | 20 | 460 | 651badc4ace0137c5541f859f61ffa91e5242b83 | 2,542 | compose-icons | MIT License |
geojson/src/commonMain/kotlin/io/github/elcolto/geokjson/geojson/serialization/FeatureSerializer.kt | elcolto | 807,275,879 | false | {"Kotlin": 174678} | package io.github.elcolto.geokjson.geojson.serialization
import io.github.elcolto.geokjson.geojson.Feature
import io.github.elcolto.geokjson.geojson.Geometry
import io.github.elcolto.geokjson.geojson.serialization.BoundingBoxSerializer.toJsonArray
import io.github.elcolto.geokjson.geojson.serialization.GeometrySeriali... | 60 | Kotlin | 0 | 1 | 441bcf7fadea923706ecb426f2a4c29aacd0dbb7 | 1,448 | GeoKJSON | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/assessments/api/answers/CheckboxGroupDto.kt | ministryofjustice | 289,880,556 | false | {"Kotlin": 467156, "Dockerfile": 1341, "Shell": 181} | package uk.gov.justice.digital.assessments.api.answers
import io.swagger.v3.oas.annotations.media.Schema
import uk.gov.justice.digital.assessments.api.groups.GroupContentDto
import uk.gov.justice.digital.assessments.jpa.entities.refdata.GroupEntity
import java.util.UUID
data class CheckboxGroupDto(
@Schema(descript... | 5 | Kotlin | 1 | 2 | 4a4460e335d1b893e1b80c8ce5afd85b89d0b7c4 | 1,335 | hmpps-assessments-api | MIT License |
client/src/main/java/ru/memebattle/feature/SemesterFragment.kt | Onotole1 | 242,397,687 | false | null | package ru.memebattle.feature
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import kotlinx.android.synthetic.main.fragment_semester.*
import ru.memebattle.ARGS_SEMESTER
import ru.memebattle.R
import ru.memebattle... | 0 | Kotlin | 0 | 3 | fd2b1e526af65649b734810ef3bcdb9d4ea7539a | 1,490 | memebattle-template | Apache License 2.0 |
references/src/main/java/com/iniongungroup/mobile/android/references/fragments/BooksFragment.kt | IniongunIsaac | 222,639,477 | false | null | package com.iniongungroup.mobile.android.references.fragments
import android.graphics.Typeface
import android.os.Bundle
import androidx.core.widget.addTextChangedListener
import androidx.lifecycle.Observer
import com.iniongun.tivbible.common.base.BaseFragment
import com.iniongun.tivbible.common.utils.liveDataEvent.Liv... | 0 | Kotlin | 2 | 7 | 63da6ec716325a23b24d7071e53d5845ba56fa3c | 2,897 | Tiv-Bible | MIT License |
src/main/kotlin/icu/windea/pls/script/structureView/ParadoxScriptFileTreeElement.kt | DragonKnightOfBreeze | 328,104,626 | false | null | package icu.windea.pls.script.structureView
import com.intellij.ide.structureView.*
import com.intellij.ide.structureView.impl.common.*
import com.intellij.util.*
import icu.windea.pls.*
import icu.windea.pls.script.psi.*
import icu.windea.pls.util.*
class ParadoxScriptFileTreeElement(
element: ParadoxScriptFile
) :... | 1 | Kotlin | 1 | 7 | 037b9b4ba467ed49ea221b99efb0a26cd630bb67 | 1,857 | Paradox-Language-Support | MIT License |
client/android/api-generator-test/src/test/java/com/yandex/generator/EntityWithOptionalStringEnumPropertyTest.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.generator
import com.yandex.div.json.expressions.ExpressionResolver
import com.yandex.testing.EntityWithOptionalStringEnumProperty
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunne... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 1,008 | divkit | Apache License 2.0 |
app/src/main/java/com/techlads/composetv/utils/extensions.kt | UmairKhalid786 | 586,631,597 | false | {"Kotlin": 158319} | package com.techlads.composetv.utils
import android.view.KeyEvent
import android.view.KeyEvent.KEYCODE_DPAD_CENTER
import android.view.KeyEvent.KEYCODE_DPAD_LEFT
import android.view.KeyEvent.KEYCODE_DPAD_RIGHT
import android.view.KeyEvent.KEYCODE_ENTER
import android.view.KeyEvent.KEYCODE_NUMPAD_ENTER
import android.v... | 7 | Kotlin | 17 | 95 | d6d710c2ac9276a3a15c895a176afc78145d976b | 1,970 | ComposeTv | Apache License 2.0 |
app/src/main/java/com/berger/baseapp/data/di/EpisodesModule.kt | Shaikot35 | 612,941,885 | false | null | package com.berger.baseapp.data.di
import androidx.compose.runtime.Stable
import com.berger.baseapp.data.remote.api.EpisodesService
import com.berger.baseapp.data.remote.source.EpisodesRemoteDataSource
import com.berger.baseapp.data.remote.source.impl.EpisodesRemoteDataSourceImpl
import com.berger.baseapp.data.reposit... | 0 | Kotlin | 0 | 0 | 448d02d0ca8334ac7dd72fccb751f5c44517aab4 | 1,194 | BaseApp | Apache License 2.0 |
common/src/commonMain/kotlin/com.chrynan.chat/model/contact/PhoneNumber.kt | chRyNaN | 206,982,352 | false | null | package com.chrynan.chat.model.contact
import com.chrynan.chat.model.core.ID
import com.chrynan.chat.model.core.Node
import com.chrynan.chat.model.core.TimeMoment
data class PhoneNumber(
override val id: ID,
val number: String,
val formattedNumber: String,
val name: String,
val type: String? = nul... | 0 | Kotlin | 0 | 3 | 8269e4bcecad6ba4ef10e211ca4cb52e1cdff4b8 | 468 | Chat | Apache License 2.0 |
database/src/main/java/ru/merkulyevsasha/database/dao/ArticleCommentsDao.kt | sashamerkulev | 72,357,607 | false | {"Gradle": 13, "HTML": 2, "Java Properties": 3, "YAML": 1, "Shell": 2, "Ignore List": 8, "Batchfile": 1, "Text": 1, "Markdown": 1, "Proguard": 7, "Java": 13, "XML": 46, "Kotlin": 113} | package ru.merkulyevsasha.database.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Transaction
import androidx.room.Update
import io.reactivex.Single
import ru.merkulyevsasha.database.entities.ArticleCommentEntity
@Dao
in... | 1 | null | 1 | 1 | fc8ab8149c34bbda3cce9a7002d203ff62f52bd6 | 1,071 | news | Apache License 2.0 |
metrics/core/src/main/kotlin/io/wavebeans/metrics/Metrics.kt | WaveBeans | 174,378,458 | false | {"Kotlin": 1263856, "Shell": 6924, "Dockerfile": 408} | package io.wavebeans.metrics
const val tableTag = "table"
const val bitDepthTag = "bitDepth"
const val formatTag = "format"
const val limitTag = "limit"
const val offsetTag = "offset"
const val clazzTag = "class"
const val typeTag = "type"
val audioStreamRequestMetric = MetricObject.counter(
"io.wavebeans.htt... | 26 | Kotlin | 0 | 21 | 2a0eb6b481f0f848a7e66f7cb4c395ddb47952d1 | 2,532 | wavebeans | Apache License 2.0 |
app/src/main/java/com/skt/nugu/sampleapp/player/SamplePlayerFactory.kt | nugu-developers | 214,067,023 | false | null | /**
* Copyright (c) 2020 SK Telecom Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 3 | null | 18 | 27 | 53ebf6b8b17afeff6fdb3a8741f345f2fbe0d649 | 1,984 | nugu-android | Apache License 2.0 |
src/jvmMain/kotlin/baaahs/geom/Matrix4FJvm.kt | baaahs | 174,897,412 | false | {"Kotlin": 4817815, "C": 1529197, "C++": 661363, "GLSL": 412779, "JavaScript": 61944, "HTML": 56277, "CMake": 30499, "CSS": 4340, "Shell": 2381, "Python": 1450} | package baaahs.geom
import kotlinx.serialization.Serializable
import org.joml.Matrix4f as NativeMatrix4F
import org.joml.Matrix4fc as NativeMatrix4FC
import org.joml.Quaternionf as NativeQuaternionF
import org.joml.Vector3f as NativeVector3F
@Serializable(Matrix4FSerializer::class)
actual class Matrix4F(private val n... | 111 | Kotlin | 13 | 40 | 77ad22b042fc0ac440410619dd27b468c3b3a600 | 8,326 | sparklemotion | MIT License |
src/main/kotlin/org/rust/ide/actions/ToggleExternalLinterOnTheFlyAction.kt | intellij-rust | 42,619,487 | false | {"Gradle Kotlin DSL": 2, "Java Properties": 5, "Markdown": 11, "TOML": 19, "Shell": 2, "Text": 124, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "XML": 140, "Kotlin": 2284, "INI": 3, "ANTLR": 1, "Rust": 362, "YAML": 131, "RenderScript": 1, "JSON": 6, "HTML": 198, "SVG": 136, "JFlex": 1, "Java": 1, "Python": 37} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.actions
import com.intellij.openapi.actionSystem.ActionUpdateThread
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.ToggleAction
import org.ru... | 1,841 | Kotlin | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 1,117 | intellij-rust | MIT License |
app/src/main/java/com/arturostrowski/quiz/app/ui/chat/interactor/ChatMVPInteractor.kt | Mesti193 | 215,134,193 | false | null | package com.arturostrowski.quiz.app.ui.chat.interactor
import com.arturostrowski.quiz.app.data.database.repository.user.User
import com.arturostrowski.quiz.app.data.network.request.GetChatRequest
import com.arturostrowski.quiz.app.data.network.response.GetChatResponse
import com.arturostrowski.quiz.app.ui.base.interac... | 0 | Kotlin | 0 | 0 | 1c0cef0108b0b90a4074f18b4690e5533214b41c | 533 | QuizApp | Apache License 2.0 |
kondor-examples/src/main/kotlin/Http4kHelpers.kt | uberto | 343,412,601 | false | {"Kotlin": 342010, "Java": 46239, "Shell": 922} | import com.ubertob.kondor.json.JConverter
import org.http4k.asString
import org.http4k.core.Body
import org.http4k.core.ContentType
import org.http4k.core.ContentType.Companion.APPLICATION_JSON
import org.http4k.core.Request
import org.http4k.core.Response
import org.http4k.lens.BiDiBodyLens
import org.http4k.lens.Cont... | 1 | Kotlin | 14 | 81 | b186b1693d422c9ac9a4c70beb30403d7ede80c3 | 1,404 | kondor-json | Apache License 2.0 |
src/main/kotlin/io/fdeitylink/util/fx/FileEditTab.kt | fdeitylink | 96,371,360 | false | null | /*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 1 | 2 | a33c53f89d1a4e6c8c0f91fedb8445c09f761b70 | 3,896 | kotlin-utils | Apache License 2.0 |
bitgouel-domain/src/main/kotlin/team/msg/domain/lecture/repository/custom/impl/CustomLectureRepositoryImpl.kt | School-of-Company | 700,741,727 | false | null | package team.msg.domain.lecture.repository.custom.impl
import com.querydsl.core.types.dsl.BooleanExpression
import com.querydsl.jpa.impl.JPAQueryFactory
import org.springframework.data.domain.Page
import org.springframework.data.domain.PageImpl
import org.springframework.data.domain.Pageable
import org.springframework... | 4 | null | 0 | 17 | 90d788c3e7393290e0f09860af78aebc084ef571 | 3,306 | Bitgouel-Server | MIT License |
bootstrap/src/main/kotlin/net/dontdrinkandroot/wicket/bootstrap/css/Breakpoint.kt | dontdrinkandroot | 7,002,436 | false | null | package net.dontdrinkandroot.wicket.bootstrap.css
import net.dontdrinkandroot.wicket.css.CssClass
enum class Breakpoint(override val classString: String) : CssClass {
SMALL("sm"),
MEDIUM("md"),
LARGE("lg"),
EXTRA_LARGE("xl"),
EXTRA_EXTRA_LARGE("xxl");
} | 34 | Kotlin | 1 | 3 | eaf007cfe70a136a334bd9cb22b5cc0e2fa50ff3 | 275 | wicket.java | Apache License 2.0 |
src/ko/navercomic/src/eu/kanade/tachiyomi/extension/ko/navercomic/NaverComic.kt | mangacat | 190,679,694 | true | {"Kotlin": 1307203, "Java": 4615, "Shell": 1729} | package eu.kanade.tachiyomi.extension.ko.navercomic
import android.annotation.SuppressLint
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.Request
import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
clas... | 0 | Kotlin | 0 | 2 | 1d538bb2fec19417c69c0799526469fb7799e33e | 3,020 | tachiyomi-extensions | Apache License 2.0 |
app/src/main/java/com/apps/nabungemas/ui/theme/Theme.kt | artfath | 482,567,125 | false | {"Kotlin": 113363} | package com.kj_bagwatgeeta.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
private val DarkColorPalette = darkColors(
p... | 0 | Kotlin | 0 | 2 | a7a4f9644ccdfd06e9548e83187dc01ea25293f1 | 1,129 | Nabung-Emas-App | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/resource/RestrictedPatientSearchResource.kt | ministryofjustice | 256,501,813 | false | null | package uk.gov.justice.digital.hmpps.prisonersearch.search.resource
import io.swagger.v3.oas.annotations.Operation
import io.swagger.v3.oas.annotations.Parameter
import io.swagger.v3.oas.annotations.tags.Tag
import org.springdoc.core.annotations.ParameterObject
import org.springframework.data.domain.Pageable
import or... | 3 | Kotlin | 3 | 5 | 46816e4d23e9c201740d05df2c6d21fd21ee3bad | 1,811 | prisoner-offender-search | MIT License |
app/src/main/java/com/near/android/charg2earn/ui/home/compose/NFTCollection.kt | ebatteSZ | 567,559,700 | false | {"Kotlin": 276355, "Rust": 10522} | package com.near.android.charg2earn.ui.home.compose
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonColors
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
impo... | 0 | Kotlin | 0 | 0 | 79bebc1672acde9519d4bf1fcbb93cfb2963dd33 | 4,391 | near_charge2earn_demo | MIT License |
app/src/main/java/com/myscript/iink/app/mathpad/MainActivity.kt | jingkecn | 181,008,191 | false | null | /*
* Copyright (c) MyScript. All rights reserved.
*/
package com.myscript.iink.app.mathpad
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.Toast
import com.myscript.iink.*
import com.myscrip... | 1 | null | 3 | 16 | 1897040d46ef84df77d265dba5dc8437babfb486 | 3,888 | interactive-math-pad-android | MIT License |
app/src/main/java/com/thezayin/chatbottesting/domain/model/Message.kt | thezayin | 770,338,666 | false | {"Kotlin": 21702} | package com.thezayin.chatbottesting.domain.model
data class Message(
val sender:String?,
val cnt: String
) | 0 | Kotlin | 0 | 1 | ff1b19a7cc8bd640116f2d857a0cd538430886b1 | 115 | Brainshop-chatbot-app | MIT License |
src/main/kotlin/net/illuc/kontraption/container/IonThrusterEnergyContainer.kt | illucc | 692,191,268 | false | {"Kotlin": 106933, "Java": 31921} | package net.illuc.kontraption.container
import mekanism.api.AutomationType
import mekanism.api.IContentsListener
import mekanism.api.NBTConstants
import mekanism.api.math.FloatingLong
import mekanism.common.capabilities.energy.MachineEnergyContainer
import mekanism.common.util.NBTUtils
import net.illuc.kontraption.blo... | 5 | Kotlin | 9 | 8 | 55bbf9a1630ee55ddc9310c72b0fe9eb67252869 | 1,812 | Kontraption | Apache License 2.0 |
src/test/kotlin/dev/shtanko/di/stopwatch/StopwatchTest.kt | ashtanko | 203,993,092 | false | {"Kotlin": 5328917, "Shell": 1158, "Makefile": 469} | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 4 | Kotlin | 0 | 18 | 7dfef253726f8fafab960e5c6e298c4e243c38a0 | 990 | kotlab | Apache License 2.0 |
datasource/datasource-remote/src/main/java/com/example/data_remote/di/ApiModule.kt | arunkarshan | 540,678,357 | false | {"Kotlin": 127353, "Java": 310} | package com.example.data_remote.di
import com.example.data_remote.network.LoginApi
import com.example.data_remote.network.OrderApi
import org.koin.core.annotation.Factory
import org.koin.core.annotation.Module
import org.koin.core.annotation.Single
import retrofit2.Retrofit
/*****************************************... | 0 | Kotlin | 0 | 2 | 2a32ca5357099792321f7c811521011f277edf5a | 894 | SampleCleanArchitecture | Apache License 2.0 |
src/main/kotlin/io/pcast/helpers/Helpers.kt | pcast-player | 859,558,028 | false | {"Kotlin": 15061} | package io.pcast.helpers
import com.fasterxml.uuid.Generators
import java.util.UUID
fun generateUuidV7(): UUID = Generators.timeBasedEpochGenerator().generate() | 0 | Kotlin | 0 | 0 | 4f43b6ac548010b215e2308b976ecd6bbc830393 | 162 | pcast-api-kt | MIT License |
feature/account/server/certificate/src/main/kotlin/app/k9mail/feature/account/server/certificate/ServerCertificateModule.kt | thunderbird | 1,326,671 | false | {"Kotlin": 4414732, "Java": 2272898, "Shell": 6333, "AIDL": 1946} | package app.k9mail.feature.account.server.certificate
import app.k9mail.feature.account.server.certificate.data.InMemoryServerCertificateErrorRepository
import app.k9mail.feature.account.server.certificate.domain.ServerCertificateDomainContract
import app.k9mail.feature.account.server.certificate.domain.usecase.AddSer... | 732 | Kotlin | 2441 | 8,913 | d02c7c0a45638357e1ce933dff3421c8fb6aa12a | 1,093 | thunderbird-android | Apache License 2.0 |
src/main/kotlin/com/github/kerubistan/kerub/data/ispn/VirtualStorageDeviceDaoImpl.kt | kerubistan | 19,528,622 | false | null | package com.github.kerubistan.kerub.data.ispn
import com.github.kerubistan.kerub.audit.AuditManager
import com.github.kerubistan.kerub.data.EventListener
import com.github.kerubistan.kerub.data.VirtualStorageDeviceDao
import com.github.kerubistan.kerub.model.VirtualStorageDevice
import org.infinispan.Cache
import java... | 109 | Kotlin | 4 | 14 | 99cb43c962da46df7a0beb75f2e0c839c6c50bda | 677 | kerub | Apache License 2.0 |
typescript-kotlin/src/main/kotlin/typescript/getTrailingCommentRanges.fun.kt | turansky | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
/*
external fun getTrailingCommentRanges(text: string, pos: number): CommentRange[] | undefined
*/
| 0 | Kotlin | 1 | 10 | bcf03704c0e7670fd14ec4ab01dff8d7cca46bf0 | 212 | react-types-kotlin | Apache License 2.0 |
app/src/main/java/io/heckel/ntfy/service/JsonConnection.kt | binwiederhier | 421,237,780 | false | null | package io.heckel.ntfy.service
import android.util.Log
import io.heckel.ntfy.data.ConnectionState
import io.heckel.ntfy.data.Notification
import io.heckel.ntfy.data.Repository
import io.heckel.ntfy.data.Subscription
import io.heckel.ntfy.msg.ApiService
import io.heckel.ntfy.util.topicUrl
import kotlinx.coroutines.*
im... | 5 | null | 97 | 92 | 66c4eece013518a9147f235627c22a5bcee7df30 | 5,486 | ntfy-android | Apache License 2.0 |
backend/src/main/kotlin/de/mcella/spring/learntool/security/oauth2/user/OAuth2UserInfoFactory.kt | sitMCella | 251,022,990 | false | null | package de.mcella.spring.learntool.security.oauth2.user
import de.mcella.spring.learntool.security.oauth2.user.exceptions.OAuth2AuthenticationProcessingException
import de.mcella.spring.learntool.user.AuthProvider
import org.springframework.stereotype.Service
@Service
class OAuth2UserInfoFactory {
fun getOAuth2Us... | 1 | Kotlin | 0 | 0 | 01c434e43eb302365f58ea665285a91600a083cd | 674 | learn-tool | MIT License |
app/src/main/java/com/mrostami/geckoincompose/data/local/dao/PreferencesDao.kt | MosRos | 639,811,989 | false | null | package com.mrostami.geckoincompose.data.local.dao
import kotlinx.coroutines.flow.Flow
interface PreferencesDao {
suspend fun changeTheme(mode: Int)
suspend fun getThemeMode() : Flow<Int>
fun setAuthToken(token: String)
fun getAuthToken() : String?
fun setLastSyncDate(time: Long)
fun getLas... | 0 | Kotlin | 5 | 17 | 8e396051f6acc17fa2eba8745285fdf800832c60 | 340 | Geckoin-Compose | Apache License 2.0 |
plugins/kapt3/kapt3-compiler/testData/converter/invalidFieldName.kt | JetBrains | 3,432,266 | false | {"Kotlin": 73968610, "Java": 6672141, "Swift": 4257498, "C": 2622360, "C++": 1898765, "Objective-C": 641056, "Objective-C++": 167134, "JavaScript": 135706, "Python": 48402, "Shell": 31423, "TypeScript": 22754, "Lex": 18369, "Groovy": 17265, "Batchfile": 11693, "CSS": 11368, "Ruby": 6922, "EJS": 5241, "Dockerfile": 5136... | // FIR_BLOCKED: LC don't support illegal java identifiers
enum class Color {
BLACK, `WHI-TE`
}
@Anno(Color.`WHI-TE`)
annotation class Anno(val color: Color)
// EXPECTED_ERROR: (kotlin:6:1) an enum annotation value must be an enum constant
// EXPECTED_ERROR: (other:-1:-1) 'WHI-TE' is an invalid Java enum value nam... | 162 | Kotlin | 5729 | 46,436 | c902e5f56504e8572f9bc13f424de8bfb7f86d39 | 322 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/moviedatabase/toggleFavourite/data/ToggleFavouriteRepositoryImpl.kt | ali-gevari | 838,166,478 | false | {"Kotlin": 192241} | package com.example.moviedatabase.toggleFavourite.data
import com.example.moviedatabase.toggleFavourite.data.network.ToggleFavouriteApi
import com.example.moviedatabase.toggleFavourite.domain.ToggleFavouriteRepository
import com.example.moviedatabase.toggleFavourite.data.entity.ToggleFavouriteBody
import com.example.m... | 1 | Kotlin | 0 | 0 | 764509e150c28857d2992f2d2e1b427faaa0c5f7 | 1,339 | MovieDatabase | Apache License 2.0 |
api/src/main/kotlin/org/web3j/corda/api/VaultQueryResource.kt | iantstaley | 733,498,695 | false | null | /*
* Copyright 2019 Web3 Labs Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 1 | null | 1 | 3 | c5786f5e822cf95d3e5e17e167217f75db2eba3d | 970 | web3j-corda | Apache License 2.0 |
library/src/main/kotlin/com/connectrpc/ServerOnlyStreamInterface.kt | connectrpc | 604,763,682 | false | null | // Copyright 2022-2023 The Connect Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | 6 | null | 6 | 56 | d54b0c9a052a7fc22b40c90b67b1e4eca43bffa4 | 2,073 | connect-kotlin | Apache License 2.0 |
skirmish/src/main/kotlin/com/seanshubin/game_4x/skirmish/Intent.kt | SeanShubin | 204,213,077 | false | {"XML": 1, "Maven POM": 13, "Ignore List": 1, "Shell": 1, "Text": 9, "HTML": 12, "Kotlin": 245, "Java": 12} | package com.seanshubin.game_4x.skirmish
interface Intent {
companion object {
data class AttackCommanderNamed(val defenderName: String) : Intent
}
}
| 0 | Kotlin | 0 | 0 | a05479651479b5ab1470b925c015c7fa74cd59cb | 166 | game-4x | The Unlicense |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/ui/settings/notification/NotificationSettingsFragmentViewModelTest.kt | si-covid-19 | 286,833,811 | false | null | package de.rki.coronawarnapp.ui.settings.notification
import android.content.Context
import de.rki.coronawarnapp.ui.settings.notifications.NotificationSettings
import de.rki.coronawarnapp.ui.settings.notifications.NotificationSettingsFragmentViewModel
import de.rki.coronawarnapp.ui.settings.notifications.NotificationS... | 6 | Kotlin | 8 | 15 | 5a3b4be63b5b030da49216a0132a3979cad89af1 | 3,149 | ostanizdrav-android | Apache License 2.0 |
app/src/main/java/de/eso/weather/ui/shared/livedatacommand/LiveDataCommandObserver.kt | e-solutions-GmbH | 506,562,385 | false | null | package de.eso.weather.ui.shared.livedatacommand
import androidx.lifecycle.Observer
class LiveDataCommandObserver(private val action: () -> Unit) : Observer<LiveDataCommand> {
override fun onChanged(command: LiveDataCommand) {
if (!command.hasBeenHandled) {
command.hasBeenHandled = true
... | 0 | Kotlin | 1 | 1 | d054b0a902cd1b6392ff0d31a2e7f8751f5fdf0c | 353 | sample-weather-compose | MIT License |
app/src/main/java/com/oky2abbas/sms2html/about/AboutView.kt | oky2abbas | 165,665,044 | false | null | package com.oky2abbas.sms2html.about
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.oky2abbas.sms2html.R
class AboutView : Fragment() {
override fun onCreateView(
inflater: LayoutInflater,... | 0 | Kotlin | 0 | 2 | 61b8e151d1fa09a9744405842b693618d90184b2 | 474 | smsExtraction | MIT License |
app/src/main/java/com/breezefsmhmhcorporation/features/dashboard/presentation/api/submithomeloc/SubmitHomeLocationRepo.kt | DebashisINT | 654,125,604 | false | null | package com.breezefsmhmhcorporation.features.dashboard.presentation.api.submithomeloc
import com.breezefsmhmhcorporation.base.BaseResponse
import com.breezefsmhmhcorporation.features.dashboard.presentation.model.SubmitHomeLocationInputModel
import io.reactivex.Observable
/**
* Created by Saikat on 13-03-2019.
*/
cl... | 0 | Kotlin | 0 | 0 | 855a26194f21b9b24780e0c3d26914bc1725bb60 | 563 | HMHCorporation | Apache License 2.0 |
mediation_adapter_mopub/src/main/java/com/hmscl/huawei/ads/mediation_adapter_mopub/utils/HuaweiAdsMediaLayout.kt | Explore-In-HMS | 402,729,985 | false | {"Kotlin": 99921} | package com.test.huawei.ads.mopub_mediation_library.utils
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.graphics.drawable.GradientDrawable
import android.util.AttributeSet
import android.view.TextureView
import android.view.TextureView.SurfaceText... | 1 | Kotlin | 1 | 6 | 1ddf7ec0f462e8111a49d44386cf88181ba7be40 | 14,140 | huawei.ads.mopub_mediation | Apache License 2.0 |
android/poker/src/main/java/nl/entreco/scrumpoker/poker/ui/poker/PokerCardModel.kt | Entreco | 155,434,723 | false | null | package nl.entreco.scrumpoker.poker.ui.poker
import androidx.databinding.ObservableField
import nl.entreco.scrumpoker.poker.model.PokerCard
data class PokerCardModel(private val pokerCard: PokerCard){
val value = ObservableField<String>(pokerCard.value)
} | 0 | Kotlin | 0 | 0 | 8395ca6b6292be3db8e57262c3bd598b55c5f7fb | 261 | Scrum-Poker | Apache License 2.0 |
observer/src/main/java/com/xingray/observer/field/BooleanField.kt | XingRay | 207,265,131 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 18, "Java": 2, "Kotlin": 45} | package com.xingray.observer.field
/**
* 可观察的`Boolean`字段
*
* @author : leixing
* @date : 2019/11/22 14:29
* @version : 1.0.0
* mail : <EMAIL>
*
*/
class BooleanField(private var value: Boolean) {
constructor() : this(false)
fun get(): Boolean {
return value
}
fun set(value: Boolean):... | 0 | Kotlin | 0 | 1 | 8326f6b7c50bb73c0372350beb97ecf7bb13abb9 | 589 | Observer | Apache License 2.0 |
actions/java/com/squareup/tools/sqldelight/cli/Utils.kt | square | 360,699,920 | false | {"Starlark": 32578, "Kotlin": 8248, "Shell": 1841} | /*
* Copyright (C) 2020 Square, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 3 | Starlark | 5 | 6 | f63e79a3a105079b55d9c4d27943c33faa7f6e80 | 779 | sqldelight_bazel_rules | Apache License 2.0 |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsresettlementpassportapi/integration/SubjectAccessRequestIntegrationTest.kt | ministryofjustice | 665,659,688 | false | {"Kotlin": 1542825, "Dockerfile": 1995} | package uk.gov.justice.digital.hmpps.hmppsresettlementpassportapi.integration
import net.javacrumbs.jsonunit.assertj.assertThatJson
import net.javacrumbs.jsonunit.core.Option.IGNORING_ARRAY_ORDER
import org.junit.jupiter.api.Test
import org.springframework.test.context.jdbc.Sql
import java.time.LocalDate
class Subjec... | 2 | Kotlin | 2 | 1 | cc205590e7bce4b8790e20dab9d89c77bedab85d | 2,326 | hmpps-resettlement-passport-api | MIT License |
designtokens/src/main/java/com/seljabali/designtokens/spacings/spacingselector/SpacingsLandingPageViewHolder.kt | whether-jacket | 183,982,379 | false | null | package com.seljabali.designtokens.spacings.spacingselector
import android.view.View
import android.widget.ImageView
import com.google.android.material.textview.MaterialTextView
import androidx.recyclerview.widget.RecyclerView
import com.seljabali.designtokens.R
import com.seljabali.designtokens.LandingItem
class Spa... | 22 | Kotlin | 1 | 16 | ec0d1390c86f11a49ee8023285d6842649d4b85b | 852 | weather-app-2020-android | Creative Commons Zero v1.0 Universal |
subprojects/common/report-viewer/src/testFixtures/kotlin/com/avito/report/StubReportsApi.kt | StanlyT | 344,157,673 | true | {"Kotlin": 2773538, "HTML": 121161, "Shell": 17522, "Python": 14168, "Makefile": 7187, "Dockerfile": 7134} | package com.avito.report
import com.avito.android.Result
import com.avito.report.model.AndroidTest
import com.avito.report.model.CreateResult
import com.avito.report.model.CrossDeviceSuite
import com.avito.report.model.GetReportResult
import com.avito.report.model.Report
import com.avito.report.model.ReportCoordinates... | 0 | Kotlin | 0 | 0 | 96463f7714c0550e331d2a37fb32ad98fac9d62d | 4,449 | avito-android | MIT License |
octicons/src/commonMain/kotlin/compose/icons/octicons/Grabber16.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.octicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import a... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,437 | compose-icons | MIT License |
src/main/kotlin/com/github/santosleijon/frugalfennecbackend/users/domain/User.kt | santosleijon | 490,805,467 | false | null | package com.github.santosleijon.frugalfennecbackend.users.domain
import com.github.santosleijon.frugalfennecbackend.common.AggregateRoot
import com.github.santosleijon.frugalfennecbackend.common.DomainEvent
import com.github.santosleijon.frugalfennecbackend.users.domain.events.UserCreatedEvent
import java.util.*
clas... | 0 | Kotlin | 0 | 0 | ab566b6ea6438238751e51a64a537d710de181bb | 1,193 | frugal-fennec-expense-manager | MIT License |
example-speech-recognition/src/main/java/com/dailystudio/tflite/example/speech/recognition/AudioInferenceInfo.kt | dailystudio | 267,263,865 | false | null | package com.dailystudio.tflite.example.speech.recognition
import android.content.Context
import com.dailystudio.tflite.example.common.InferenceInfo
import com.dailystudio.tflite.example.common.InferenceInfoItem
class AudioInferenceInfo(var sampleRate: Int = 0,
var bufferSize: Int = 0,
... | 1 | Kotlin | 6 | 47 | 1ce173bdc6dd2ac2a0c83197ff27ded3ed381df2 | 1,303 | tensorflow-lite-examples-android | Apache License 2.0 |
transport-eta-android/presentation/src/main/java/com/joaquimley/transporteta/presentation/home/favorite/FavoritesViewModelFactory.kt | JoaquimLey | 93,657,822 | false | null | package com.joaquimley.transporteta.presentation.home.favorite
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.joaquimley.transporteta.domain.interactor.transport.favorites.ClearAllTransportsAsFavoriteUseCase
import com.joaquimley.transporteta.domain.interactor.transport.favo... | 34 | Kotlin | 45 | 224 | 7c841a3b4e7f296e5b5e53eab6c7a9e84c2b3c61 | 2,645 | transport-eta | Apache License 2.0 |
app/src/main/java/com/sleepysoft/gaminglife/activities/GLIDGenerationActivity.kt | SleepySoft | 537,375,480 | false | {"Kotlin": 363016, "Python": 3483} | package com.sleepysoft.gaminglife.activities
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.text.method.ScrollingMovementMethod
import android.widget.Button
import android.widget.SeekBar
import android.widget.TextView
import androidx.annotation.Requir... | 0 | Kotlin | 1 | 1 | ec89ed131c8363329d664ab25eb4e7654ac0083f | 5,663 | GamingLife | Apache License 2.0 |
compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/linkage/partial/MissingDeclarationStubGenerator.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.backend.common.linkage.partial
import org.jetbrains.kotlin.backend.common.linkag... | 182 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 7,013 | kotlin | Apache License 2.0 |
app/src/main/java/be/digitalia/fosdem/activities/ExternalBookmarksActivity.kt | cbeyls | 15,915,146 | false | null | package be.digitalia.fosdem.activities
import android.os.Bundle
import androidx.fragment.app.add
import androidx.fragment.app.commit
import be.digitalia.fosdem.R
import be.digitalia.fosdem.fragments.ExternalBookmarksListFragment
import be.digitalia.fosdem.utils.extractNfcAppData
import be.digitalia.fosdem.utils.hasNfc... | 21 | Kotlin | 91 | 131 | 5095210e4e2530d4e6be773f499749ffdbf520bb | 1,188 | fosdem-companion-android | Apache License 2.0 |
tests/unit/src/test/kotlin/test/java/failure/core/method/style/named/QueryTest.kt | zcdsg | 462,998,363 | true | {"Kotlin": 206989, "Java": 106166, "ANTLR": 1321, "Shell": 111} | package test.java.failure.core.method.style.named
import org.junit.Test
import test.BaseTest
import test.Person
import test.java.failure.core.method.style.named.prefix.QueryNotReturnCollectionBadDao
import test.java.failure.core.method.style.named.prefix.QueryNotReturnEntityCollectionBadDao
import test.java.failure.co... | 0 | null | 0 | 1 | 162536681775ccc02d8fa707bdc68287fd92abbe | 1,209 | freedao | Apache License 2.0 |
kotlin-node/src/jsMain/generated/node/crypto/CipherCCMSetAADOptions.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package node.crypto
sealed external interface CipherCCMSetAADOptions {
var plaintextLength: Double
}
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 160 | kotlin-wrappers | Apache License 2.0 |
Corona-Warn-App/src/deviceForTesters/java/de/rki/coronawarnapp/test/submission/ui/SubmissionTestFragmentViewModel.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.test.submission.ui
import android.app.Activity
import android.content.Intent
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.liveData
import com.google.android.gms.nearby.exposurenotification.TemporaryExposureKey
import com.google.gson.Gson
import dagger.assisted.Assist... | 6 | Kotlin | 504 | 2,486 | 7b0eee8d53a090ee0ca585c6a90c4cec570e51d6 | 6,626 | cwa-app-android | Apache License 2.0 |
Patterns/CreationMode/singleton_mode/src/com/fausto/singleton/SingletonType.kt | FaustoFan-FB | 417,426,537 | false | {"Kotlin": 37636, "Java": 7800} | package com.fausto.singleton
import java.lang.reflect.Method
import kotlin.concurrent.thread
/**
* @author: fausto
* @date: 2021/10/16 14:50
* @description: 饿汉式与懒汉式单例模式
*/
/**
* 饿汉式线程安全
*/
object Singleton0
/**
* 懒汉式线程不安全(违背单例模式,不推荐使用)
*/
class Singleton1 private constructor(){
companion obje... | 0 | Kotlin | 0 | 0 | 5a91cfbdfd981914e88c64679439754af76bc8c0 | 2,311 | DesignPattern | Apache License 2.0 |
app/src/main/java/com/vaibhav/nextlife/ui/homeScreen/feedScreen/FeedFragment.kt | Vaibhav2002 | 351,128,652 | false | null | package com.vaibhav.nextlife.ui.homeScreen.feedScreen
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.widget.Toast
import androidx.core.view.isVisible
import androidx.fragment.app.Fragm... | 0 | Kotlin | 0 | 3 | 5a8a68e365f9ae9d703a884ab610d6c48f2e8c39 | 4,848 | NextLife | Apache License 2.0 |
fileboxlib/src/main/java/com/lyrebirdstudio/fileboxlib/security/ConcealInitializer.kt | lyrebirdstudio | 238,207,373 | false | null | package com.lyrebirdstudio.fileboxlib.security
import android.content.Context
import com.facebook.android.crypto.keychain.AndroidConceal
import com.facebook.android.crypto.keychain.SharedPrefsBackedKeyChain
import com.facebook.crypto.Crypto
import com.facebook.crypto.CryptoConfig
import com.facebook.soloader.SoLoader
... | 3 | Kotlin | 24 | 312 | 0cfaa0d0b05ed5d25d87eed88de224f630ba91e6 | 1,106 | filebox | Apache License 2.0 |
src/main/kotlin/com/github/ivan_osipov/clabo/api/model/CallbackGame.kt | ivan-osipov | 92,181,671 | false | null | package com.github.ivan_osipov.clabo.api.model
class CallbackGame | 31 | Kotlin | 3 | 6 | 943583bce73aad8479c1be8d7e6f6fe74807058e | 66 | Clabo | Apache License 2.0 |
kafka-reference-impl/judge/src/main/kotlin/validateMove.kt | Terkwood | 191,042,808 | false | null | fun MoveCommandGameState.isValid(): Boolean {
val move = this.moveCmd
val game = this.gameState
val correctPlayer = move.player == game.playerUp
val coord = move.coord
val passing = coord == null
val coordExists: Boolean by lazy {
if (coord != null) {
val size = game.board.si... | 83 | Rust | 7 | 66 | ec01dc3dae54e1e248d540d442caa1731f2822e4 | 594 | BUGOUT | MIT License |
zircon.jvm.libgdx/src/main/kotlin/org/hexworks/zircon/api/LibgdxApplications.kt | Xanik | 282,687,897 | false | null | package org.hexworks.zircon.api
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
import org.hexworks.zircon.api.application.AppConfig
import org.hexworks.zircon.api.application.Application
import org.hexworks.zircon.api.grid.TileGrid
import org.hexworks.zircon.internal.application.LibgdxApplication... | 1 | null | 1 | 2 | bf435cddeb55f7c3a9da5dd5c29be13af8354d0f | 3,663 | zircon | Apache License 2.0 |
app/src/main/java/com/example/pockedex/ui/MainActivity.kt | gilsonMartins | 535,386,240 | false | null | package com.example.pockedex.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.pockedex.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCreate(savedInstanceState: Bundle?) ... | 0 | Kotlin | 0 | 2 | 20ddf324db4f8e4c22e3512abf99e6a28d327fc1 | 472 | pokedex-e | Apache License 2.0 |
app/src/main/java/com/hdev/qrcode/barcode/reader/ui/screens/create/ListCreateItem.kt | Hendriyawan | 538,512,765 | false | null | package com.hdev.qrcode.barcode.reader.ui.screens.create
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Card
import androidx.comp... | 0 | Kotlin | 0 | 0 | 9784769016de40a5d673194000c82cfa6789c660 | 1,270 | ComposeQRReader | Apache License 2.0 |
app/src/main/java/com/breezelinktelecom/features/viewAllOrder/interf/NewOrderSizeQtyDelOnClick.kt | DebashisINT | 851,532,207 | false | {"Kotlin": 15739075, "Java": 1026627} | package com.breezelinktelecom.features.viewAllOrder.interf
import com.breezelinktelecom.app.domain.NewOrderGenderEntity
import com.breezelinktelecom.features.viewAllOrder.model.ProductOrder
import java.text.FieldPosition
interface NewOrderSizeQtyDelOnClick {
fun sizeQtySelListOnClick(product_size_qty: ArrayList<P... | 0 | Kotlin | 0 | 0 | 6b0e10f53cfab02f3790b9064bd705ee3dc87fef | 408 | LinkTelecom | Apache License 2.0 |
tracing/tracing-ktx/src/main/java/androidx/tracing/Trace.kt | RikkaW | 389,105,112 | true | {"Java": 49060640, "Kotlin": 36832495, "Python": 336507, "AIDL": 179831, "Shell": 150493, "C++": 38342, "ANTLR": 19860, "HTML": 10802, "TypeScript": 6933, "CMake": 3330, "JavaScript": 1343} | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Java | 0 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,655 | androidx | Apache License 2.0 |
kotlin/android/app/src/main/java/dev/firezone/android/tunnel/data/TunnelRepositoryImpl.kt | firezone | 257,787,813 | false | {"Elixir": 2035829, "Rust": 551474, "HCL": 192926, "TypeScript": 183237, "Swift": 165447, "Kotlin": 98421, "HTML": 34599, "JavaScript": 18522, "Dockerfile": 14089, "Shell": 11136, "CSS": 2434, "Makefile": 1525, "C": 334} | /* Licensed under Apache 2.0 (C) 2023 Firezone, Inc. */
package dev.firezone.android.tunnel.data
import android.content.SharedPreferences
import com.squareup.moshi.Moshi
import com.squareup.moshi.adapter
import dev.firezone.android.tunnel.data.TunnelRepository.Companion.CONFIG_KEY
import dev.firezone.android.tunnel.da... | 170 | Elixir | 243 | 5,756 | 6113effb5e12011435e21c2be50e7d23fb28e802 | 4,450 | firezone | Apache License 2.0 |
app/src/main/java/io/aethibo/rollback/framework/mvibase/IModel.kt | primepixel | 383,722,476 | false | null | package io.aethibo.rollback.framework.mvibase
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.StateFlow
interface IModel<S : IState, I : IIntent> {
val intents: Channel<I>
val state: StateFlow<S>
} | 0 | Kotlin | 1 | 1 | f65162bb7ebb53828eb48b42c7a913e10ca66b9e | 233 | Rollback | Apache License 2.0 |
ontrack-kdsl/src/main/java/net/nemerosa/ontrack/kdsl/spec/extension/stash/BitbucketServerProjectConfigurationPropertyExtensions.kt | nemerosa | 19,351,480 | false | {"Git Config": 1, "Gradle Kotlin DSL": 67, "Markdown": 46, "Ignore List": 22, "Java Properties": 3, "Shell": 9, "Text": 3, "Batchfile": 2, "Groovy": 145, "JSON": 31, "JavaScript": 792, "JSON with Comments": 4, "GraphQL": 79, "Kotlin": 3960, "Java": 649, "HTML": 269, "PlantUML": 25, "AsciiDoc": 288, "XML": 9, "YAML": 33... | package net.nemerosa.ontrack.kdsl.spec.extension.stash
import net.nemerosa.ontrack.json.parse
import net.nemerosa.ontrack.kdsl.spec.Project
import net.nemerosa.ontrack.kdsl.spec.deleteProperty
import net.nemerosa.ontrack.kdsl.spec.getProperty
import net.nemerosa.ontrack.kdsl.spec.setProperty
/**
* Sets a Bitbucket S... | 44 | Kotlin | 25 | 96 | 759f17484c9b507204e5a89524e07df871697e74 | 1,176 | ontrack | MIT License |
krate-moshi-reflect/src/test/java/hu/autsoft/krate/moshi/TestModel.kt | AutSoft | 143,710,217 | false | null | package hu.autsoft.krate.moshi
internal data class TestModel(val x: Int, val y: Double, val z: String)
| 1 | Kotlin | 12 | 278 | 7d9149463ca95d18778d03cdaeedb92c33e5fbfc | 104 | Krate | Apache License 2.0 |
core/src/ru/serdjuk/zxsna/app/windows/CancelDialog.kt | vito-Z80 | 302,118,445 | false | {"Gradle": 4, "INI": 2, "Shell": 1, "Text": 5, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "JAR Manifest": 1, "Java": 2, "Kotlin": 70, "Assembly": 1, "XML": 1} | package ru.serdjuk.zxsna.app.windows
import com.badlogic.gdx.Gdx
import com.badlogic.gdx.scenes.scene2d.ui.Dialog
import ru.serdjuk.zxsna.app.system.module
@ExperimentalUnsignedTypes
class CancelDialog(text: String) : Dialog("", module.skin) {
init {
isModal = true
text(" \n$text")
row()... | 1 | null | 1 | 1 | 8e19849cb1d6f71fc6a155940a2c3180db98e89d | 588 | ZXSNAv2 | Apache License 2.0 |
library/src/main/kotlin/com/freakyaxel/emvparser/tlv/TLVParser.kt | alexpopa95 | 507,649,584 | false | {"Kotlin": 29848, "Shell": 707} | package com.freakyaxel.emvparser.tlv
internal object TLVParser {
fun getData(recv: ByteArray): ByteArray {
val recvSize = recv.size
return if (recvSize >= 2) {
recv.copyOfRange(0, recvSize - 2)
} else ByteArray(0)
}
} | 0 | Kotlin | 2 | 0 | fb6cb7ec51acba42890240151b1c9740c600c77e | 262 | emv-card-reader | MIT License |
app/src/main/java/com/brins/lightmusic/api/service/MusicVideoService.kt | BrinsLee | 193,304,333 | false | null | package com.brins.lightmusic.api.service
import com.brins.lightmusic.common.AppConfig
import com.brins.lightmusic.model.musicvideo.LastestMvDataBean
import com.brins.lightmusic.model.musicvideo.MvCommentsResult
import com.brins.lightmusic.model.musicvideo.MvMetaResult
import com.brins.lightmusic.model.musicvideo.MvRes... | 1 | Kotlin | 3 | 20 | f0be073b901efdee40d38824bc3c0cc4d6aa426d | 1,002 | LightMusic | Apache License 2.0 |
shared/src/commonMain/kotlin/com.github.nagatsukaakiya.osuapi/models/GameMode.kt | dmitry-stakhov | 626,238,572 | false | null | package com.github.nagatsukaakiya.osuapi.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.decodeFromJsonElement
import kotlinx.serialization.json.encodeToJsonElement
@Serializable
enum class GameMode {
... | 1 | Kotlin | 0 | 0 | 9ee37d56093fd9092bad0225ba2a8163a7488969 | 562 | osu-API-wrapper | Apache License 2.0 |
src/main/kotlin/no/nav/nada/SchemaApp.kt | navikt | 275,420,244 | false | null | package no.nav.nada
import io.ktor.application.Application
import io.ktor.application.call
import io.ktor.application.install
import io.ktor.config.ApplicationConfig
import io.ktor.features.CallLogging
import io.ktor.features.ContentNegotiation
import io.ktor.features.DefaultHeaders
import io.ktor.http.ContentType
imp... | 11 | null | 1 | 1 | 23badf652733f33a57a14da8eea99de11f9f250e | 3,244 | kafka-schema-backup | MIT License |
app/src/main/java/com/example/worldcapitalsquiz/CountriesData.kt | cosmin-oros | 509,459,475 | false | null | package com.example.worldcapitalsquiz
data class CountriesData(
val country: String,
val capital: String,
val flagId: Int,
val hint: String,
val order: Int
)
| 0 | Kotlin | 0 | 2 | 87732f32a9f51446484de90f111cf1d4085e0d64 | 179 | World-Capitals-Quiz-App | MIT License |
app/src/main/java/com/example/androiddevchallenge/viewmodel/TimerViewModel.kt | gszesiek | 346,160,442 | false | null | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | ae239a0bda3ad4a03aad494d4bdaf5e2eee2d46a | 3,398 | Week-2-Countdown-timer | Apache License 2.0 |
net.akehurst.language/bug-test/src/commonTest/kotlin/test_BuggyClass.kt | dhakehurst | 197,245,665 | false | {"Kotlin": 3541898, "ANTLR": 64742, "Rascal": 17698, "Java": 14313, "PEG.js": 6866, "JavaScript": 5287, "BASIC": 22} | /*
* Copyright (C) 2023 Dr. <NAME> (http://dr.david.h.akehurst.net)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 3 | Kotlin | 7 | 45 | 177abcb60c51efcfc2432174f5d6620a7db89928 | 775 | net.akehurst.language | Apache License 2.0 |
src/test/kotlin/days/Day18Test.kt | hughjdavey | 725,972,063 | false | {"Kotlin": 76988} | package days
import days.Day14.Direction
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.hasSize
import org.hamcrest.Matchers.`in`
import org.hamcrest.Matchers.`is`
import org.junit.jupiter.api.Test
class Day18Test {
private val day18 = Day18()
@Test
fun testPartOne() {
... | 0 | Kotlin | 0 | 0 | 330f13d57ef8108f5c605f54b23d04621ed2b3de | 1,955 | aoc-2023 | Creative Commons Zero v1.0 Universal |
domain/src/test/kotlin/no/nav/su/se/bakover/domain/grunnlag/BosituasjonTest.kt | navikt | 227,366,088 | false | null | package no.nav.su.se.bakover.domain.grunnlag
import io.kotest.matchers.shouldBe
import no.nav.su.se.bakover.common.desember
import no.nav.su.se.bakover.common.februar
import no.nav.su.se.bakover.common.januar
import no.nav.su.se.bakover.common.juni
import no.nav.su.se.bakover.common.mars
import no.nav.su.se.bakover.co... | 3 | Kotlin | 0 | 0 | b0864f973c8986f58af07c4bc7f601caa602dbfc | 6,848 | su-se-bakover | MIT License |
src/main/kotlin/com/kryptonkoins/repository/KryptonRepository.kt | laguiar | 106,131,582 | false | null | package com.kryptonkoins.repository
import com.kryptonkoins.domain.Krypton
import org.springframework.data.mongodb.repository.ReactiveMongoRepository
import java.util.*
interface KryptonRepository : ReactiveMongoRepository<Krypton, UUID> | 0 | Kotlin | 0 | 2 | 3fdda6a9dab55c128cc182087e67bd2cf6ca8458 | 239 | kryptonkoins | MIT License |
app/src/main/java/com/tasomaniac/devwidget/main/MainNavigation.kt | fkorotkov | 119,068,308 | false | {"Gradle": 3, "YAML": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 76, "XML": 45, "Java": 10, "HTML": 1, "SVG": 3} | package com.tasomaniac.devwidget.main
import android.content.Context
import android.os.Build.VERSION_CODES.O
import android.support.annotation.RequiresApi
import com.tasomaniac.devwidget.configure.ConfigureActivity
import javax.inject.Inject
class MainNavigation @Inject constructor() {
@RequiresApi(O)
fun na... | 1 | null | 1 | 1 | 738a7678d37db5abece32421072b3b8b7627cf73 | 474 | DevWidget | Apache License 2.0 |
app/src/main/java/com/techlads/composetv/features/home/HomeViewModel.kt | UmairKhalid786 | 586,631,597 | false | {"Kotlin": 192563} | package com.techlads.composetv.features.home
import androidx.lifecycle.ViewModel
import com.techlads.composetv.features.home.leftmenu.data.MenuData
import com.techlads.composetv.features.home.leftmenu.model.MenuItem
import com.techlads.composetv.utils.toMutable
import dagger.hilt.android.lifecycle.HiltViewModel
import... | 4 | Kotlin | 30 | 190 | 194476db43143b3a74ff8baae089b1e5ec60142c | 1,079 | ComposeTv | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.