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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/agh/abm/pps/gui/view/BoardView.kt | stefanik36 | 219,480,847 | false | {"Gradle": 2, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Java Properties": 1, "Kotlin": 39, "Java": 1} | package com.agh.abm.pps.gui.view
import com.agh.abm.pps.SimulationController
import com.agh.abm.pps.gui.*
import com.agh.abm.pps.gui.layout.BoardCanvas
import com.agh.abm.pps.model.species.Species
import com.agh.abm.pps.util.Benchmark
import javafx.beans.value.ObservableValue
import javafx.event.EventHandler
import ja... | 1 | null | 1 | 1 | 55ae03acb9d7c86ab703d6462f83551c267c4234 | 7,685 | Predator-Prey-Simulation | MIT License |
compiler/testData/compileKotlinAgainstCustomBinaries/dependencyOnItself/library/sample.kt | JetBrains | 3,432,266 | false | null | fun kotlin.String.exampleExtensionFunction() {}
class UserKlass
fun <T> T.erroneousExtensionFunction1() {}
fun kotlin.text.Appendable.erroneousExtensionFunction2() {}
fun test(
exampleReceiver: kotlin.String,
receiver1: UserKlass,
receiver2: kotlin.text.Appendable
) {
exampleReceiver.exampleExtension... | 180 | null | 5642 | 48,082 | 2742b94d9f4dbdb1064e65e05682cb2b0badf2fc | 421 | kotlin | Apache License 2.0 |
app/src/test/java/jp/mihailskuzmins/sugoinihongoapp/helpers/kanaKanjiDetectorTests/KanaKanjiDetectorTestsBase.kt | MihailsKuzmins | 240,947,625 | false | null | package jp.mihailskuzmins.sugoinihongoapp.helpers.kanaKanjiDetectorTests
abstract class KanaKanjiDetectorTestsBase {
protected val hiragana: List<Char> by lazy {
listOf('ぁ','あ','ぃ','い','ぅ','う','ぇ','え','ぉ','お','か','が','き','ぎ','く',
'ぐ','け','げ','こ','ご','さ','ざ','し','じ','す','ず','せ','ぜ','そ','ぞ','た',
'だ','ち','ぢ','っ... | 1 | null | 1 | 1 | 57e19b90b4291dc887a92f6d57f9be349373a444 | 983 | sugoi-nihongo-android | Apache License 2.0 |
multiple-stream-glview/src/main/java/com/knight/glview/util/MatrixUtil.kt | 296777513 | 89,126,189 | false | null | package com.knight.glview.util
import android.graphics.RectF
import android.opengl.Matrix
object MatrixUtil {
@JvmStatic
fun calculateMatrix(mMVP: FloatArray, rectF: RectF, screenWidth: Float, screenHeight: Float) {
Matrix.setIdentityM(mMVP, 0)
val scaleX = 1f / 4f
val scaleY = 1f / 4f... | 1 | null | 32 | 73 | 872313111cfee91943a4350b81204fd5311a7c73 | 613 | AndroidOpenGL | Apache License 2.0 |
VivaCoronia/app/src/main/java/de/tudarmstadt/iptk/foxtrot/vivacoronia/trading/models/Supermarket.kt | ckuessner | 313,282,198 | false | null | package de.tudarmstadt.iptk.foxtrot.vivacoronia.trading.models
import android.os.Parcel
import android.os.Parcelable
import com.google.android.gms.maps.model.LatLng
import de.tudarmstadt.iptk.foxtrot.vivacoronia.trading.supermarketInventory.SupermarketInventoryItemViewModel
class Supermarket(
var supermarketId: S... | 0 | Kotlin | 0 | 0 | 779a0382c2a3f06ed57f23b25777985bf80db5b8 | 3,326 | vivacoronia-frontend | Apache License 2.0 |
src/test/kotlin/no/nav/helse/flex/IntegrationTest.kt | navikt | 633,422,156 | false | null | package no.nav.helse.flex
import com.fasterxml.jackson.module.kotlin.readValue
import no.nav.helse.flex.api.FeedbackDto
import no.nav.helse.flex.repository.FeedbackRepository
import org.amshove.kluent.shouldBeEqualTo
import org.amshove.kluent.shouldBeLessOrEqualTo
import org.amshove.kluent.shouldHaveSize
import org.ju... | 4 | Kotlin | 0 | 0 | bc1e62944e24dc61a0d441fa5f4a4b1314bf01e9 | 4,132 | flexjar-backend | MIT License |
src/main/kotlin/macro/ZigZagWalker.kt | amollberg | 267,279,072 | false | null | import TurnDirection.LEFT
import TurnDirection.RIGHT
class ZigZagWalker(
val grid: Grid,
val startPosition: GridPosition,
val startingTurnDirection: TurnDirection
) : Walker {
override fun generate(): Path {
val path = Path(mutableListOf())
if (!grid.isInBounds(startPosition)) return p... | 0 | Kotlin | 0 | 0 | d08f85dbbb0537b386fb1810a1e2f1b86a92c925 | 2,498 | ArtisanTrace | Apache License 2.0 |
sudoemail/src/test/java/com/sudoplatform/sudoemail/types/transformers/UnsealerTest.kt | sudoplatform | 303,299,846 | false | {"Kotlin": 1477121} | /*
* Copyright © 2024 <NAME>, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sudoplatform.sudoemail.types.transformers
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import com.amazonaws.util.Base64
import com.sudoplatform.sudoemail.BaseTests
imp... | 0 | Kotlin | 0 | 1 | 74cc4eed3b2783ba3cf2cb699a6a8afd996d032c | 6,557 | sudo-email-android | Apache License 2.0 |
app/src/full/java/com/celzero/bravedns/ui/DetailedStatisticsActivity.kt | celzero | 270,683,546 | false | null | package com.celzero.bravedns.ui
import android.content.Context
import android.content.res.Configuration
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.LiveData
import androidx.paging.... | 293 | null | 92 | 2,129 | 48f1f7b66d47e108ee58481a7c2260c1f315d328 | 4,537 | rethink-app | Apache License 2.0 |
mysql-async/src/test/scala/com/github/mauricio/async/db/mysql/ExecuteManyQueriesSpec.kt | dougEfresh | 146,269,167 | false | {"Markdown": 6, "Gradle": 4, "Shell": 2, "Procfile": 1, "Ignore List": 1, "Text": 1, "YAML": 1, "INI": 1, "Kotlin": 317, "Scala": 1, "XML": 3, "Java": 4} | /*
* Copyright 2013 <NAME>
*
* <NAME> licenses this file to you 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... | 1 | null | 1 | 1 | c16a5772b46331c582c4d14939e6c4cad09edb98 | 1,699 | jasync-sql | Apache License 2.0 |
fileTemplates/Storage Local BD.kt | cobogt | 805,950,893 | false | {"Kotlin": 306286, "Java": 134} | // Storage Local BD DAO | 0 | Kotlin | 1 | 20 | 95ef68f3deb6c026f71c87bff0b9881411f93be8 | 23 | kortisan-android-framework | MIT License |
vss-processor/src/main/kotlin/org/eclipse/kuksa/vssprocessor/parser/VssParser.kt | eclipse-kuksa | 687,949,615 | false | {"Kotlin": 486057, "Java": 7211, "Shell": 2409} | /*
* Copyright (c) 2023 - 2024 Contributors to the Eclipse Foundation
*
* 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 re... | 19 | Kotlin | 1 | 2 | a03cf49b66d9f2116474cabdd5741f21a0511926 | 1,075 | kuksa-android-sdk | Apache License 2.0 |
nftkit/src/main/java/io/horizontalsystems/nftkit/core/db/Eip721EventDao.kt | horizontalsystems | 152,531,605 | false | null | package io.horizontalsystems.nftkit.core.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import io.horizontalsystems.nftkit.models.Eip721Event
@Dao
interface Eip721EventDao {
@Query("SELECT * FROM Eip721Event ORDER BY blockNumber DESC LIM... | 10 | null | 53 | 98 | f4957a971be56ed15719cf640d27e514909be123 | 666 | ethereum-kit-android | MIT License |
src/main/kotlin/de/l/oklab/klimawatch/inhabitant/InhabitantService.kt | CodeforLeipzig | 560,069,196 | false | {"Kotlin": 50118, "Shell": 362, "Dockerfile": 247} | package de.l.oklab.klimawatch.inhabitant
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service
import org.springframework.web.client.RestTemplate
@Service
class InhabitantService @Autowired constructor(internal val restTemplate: RestTemplate) {
fun downloadIn... | 0 | Kotlin | 0 | 2 | 3f3f61fdb79b47d55b4c41badfbe9252e2895438 | 368 | klimawatch-leipzig | MIT License |
kudoku/src/main/kotlin/io/github/ilikeyourhat/kudoku/solving/deduction/algorithm/HiddenSinglesAlgorithm.kt | ILikeYourHat | 139,063,649 | false | null | package io.github.ilikeyourhat.kudoku.solving.deduction.algorithm
import io.github.ilikeyourhat.kudoku.model.Field
import io.github.ilikeyourhat.kudoku.model.Region
import io.github.ilikeyourhat.kudoku.model.hint.SudokuHintGrid
class HiddenSinglesAlgorithm(
regions: List<Region>,
possibilities: SudokuHintGrid... | 6 | null | 1 | 1 | fa522856ed4dd07d5a49e2789fbc880494e83efd | 1,099 | SudokuSolver | Apache License 2.0 |
app/src/main/java/com/comunidadedevspace/imc/MainActivity.kt | GabrielaMoraesChaves | 860,630,284 | false | {"Kotlin": 1899} | package com.comunidadedevspace.imc
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.google.android.material.textfield.TextInputEditText
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onC... | 1 | Kotlin | 0 | 0 | 180fe04be40cd0368bc26d753d45baa6cd3aa63c | 868 | Calculadora-IMC | The Unlicense |
streaming/src/com/android/tools/idea/streaming/core/ZoomablePanel.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2022 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 app... | 5 | Kotlin | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 7,352 | android | Apache License 2.0 |
src/main/kotlin/com/example/model/dynamicModel/HTUData2.kt | a1008u | 98,803,702 | false | null | package com.example.model.dynamicModel
import javax.persistence.*
/**
* HTUDataテーブルのEntity.
* @param id 主キー
* @param name 名前
* @param age 年齢
* @param sex 性別 ( 0・・・ 女 1・・・男)
*/
@Entity
@Table(name = "htudata2")
data class HTUData2(@Id @GeneratedValue var id: Int = 0,
@Column(nullable = false)... | 0 | Kotlin | 0 | 0 | b3c7424ae4a15e20911e4cb8a985884635f31735 | 464 | demodemo | MIT License |
app/src/main/java/me/hufman/androidautoidrive/carapp/carinfo/CarDetailedInfo.kt | BimmerGestalt | 164,273,785 | false | null | package me.hufman.androidautoidrive.carapp.carinfo
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.map
import me.hufman.androidautoidrive.carapp.L
import me.hufman.androidautoidrive.cds.CDSMetrics
import me.hufman.androidautoidrive.cds.CDSVehicleUnits
... | 48 | Kotlin | 78 | 418 | 1f9e02492876a15b3b09007e932a5822f37b4d4d | 3,681 | AAIdrive | MIT License |
keel-core/src/main/kotlin/com/netflix/spinnaker/keel/core/api/EnvironmentSummary.kt | runlevel-six | 248,825,699 | true | {"Kotlin": 1476155, "Java": 9170, "Shell": 1471} | package com.netflix.spinnaker.keel.core.api
import com.fasterxml.jackson.annotation.JsonIgnore
import com.netflix.spinnaker.keel.api.Environment
import com.netflix.spinnaker.keel.api.artifacts.ArtifactStatus
import com.netflix.spinnaker.keel.api.artifacts.ArtifactType
import com.netflix.spinnaker.keel.api.artifacts.De... | 0 | null | 0 | 0 | c9cdf65d57826469e599edf6dee93d32f7ce31aa | 1,863 | keel | Apache License 2.0 |
mediator/src/main/kotlin/no/nav/dagpenger/soknad/personalia/Adresse.kt | navikt | 307,991,328 | false | {"Kotlin": 592352, "Dockerfile": 813, "HTML": 675} | package no.nav.dagpenger.soknad.personalia
import no.nav.dagpenger.pdl.adresse.AdresseMetadata
import no.nav.dagpenger.pdl.adresse.PDLAdresse
import no.nav.dagpenger.pdl.adresse.PostAdresseOrder
import no.nav.dagpenger.soknad.personalia.PDLAdresseMapper.LandDataOppslag.finnLand
import no.nav.dagpenger.soknad.personali... | 5 | Kotlin | 0 | 0 | 4859b5d2750bebfaec3db71e64cab43a24c97689 | 6,162 | dp-soknad | MIT License |
PoC/android/app/src/main/java/com/epam/crowdresitance/ui/MainActivity.kt | epam | 255,630,202 | false | null | // =========================================================================
// Copyright 2020 EPAM Systems, 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.o... | 1 | Kotlin | 2 | 6 | 48190bd062cdd7a78883f9ef6b5db70de5de1463 | 4,325 | covid-tracing-bluetooth-poc | Apache License 2.0 |
src/main/kotlin/com/intershop/gradle/icm/project/PluginConfig.kt | IntershopCommunicationsAG | 202,111,872 | false | null | /*
* Copyright 2019 Intershop Communications AG.
*
* 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 ... | 0 | null | 1 | 3 | 4a3a5df22a779cf76aa9d4d9147a1c8f96f5dc78 | 4,177 | icm-gradle-plugin | Apache License 2.0 |
app/src/main/java/com/kobrakid/retroachievements/viewmodel/GameImagesViewModel.kt | KobraKid | 194,746,591 | false | null | package com.kobrakid.retroachievements.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.kobrakid.retroachievements.model.Game
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Dis... | 3 | Kotlin | 0 | 1 | d62d3f1643f020b99f43ae663052ca181f797104 | 1,122 | RetroAchievements | MIT License |
gradle-versions-plugin/src/main/kotlin/com/github/benmanes/gradle/versions/updates/Coordinate.kt | ben-manes | 6,973,491 | false | {"Kotlin": 104344, "Groovy": 73287} | package com.github.benmanes.gradle.versions.updates
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.ExternalModuleDependency
import org.gradle.api.artifacts.ModuleVersionIdentifier
import org.gradle.api.artifacts.ModuleVersionSelector
import org.gradle.api.artifacts.component.ModuleComponent... | 95 | Kotlin | 206 | 3,811 | 2c7baf78a54e947434c142a0d148668cadfe6eda | 3,120 | gradle-versions-plugin | Apache License 2.0 |
app/src/main/java/me/billzangardi/kotlinstarter/KotlinStarterApplication.kt | BillZangardi | 119,428,802 | false | null | package me.billzangardi.kotlinstarter
import android.content.Context
import android.support.multidex.MultiDexApplication
import com.facebook.stetho.Stetho
import com.orhanobut.hawk.Hawk
import com.squareup.leakcanary.LeakCanary
import me.billzangardi.kotlinstarter.injection.component.ApplicationComponent
import me.bil... | 0 | Kotlin | 0 | 0 | 7df9c2fdc73c3f3edc18a0f4529f14d94177d1d4 | 1,682 | BaseKotlinProject | MIT License |
app/src/main/java/com/nafanya/mp3world/features/remoteSongs/songSearchers/HitmoTopSongSearcher.kt | AlexSoWhite | 445,900,000 | false | {"Kotlin": 324834} | package com.nafanya.mp3world.features.remoteSongs.songSearchers
import com.nafanya.mp3world.core.utils.timeConverters.TimeConverter
import com.nafanya.mp3world.core.wrappers.song.remote.RemoteSong
import com.nafanya.mp3world.core.wrappers.song.UriFactory
import javax.inject.Inject
import okhttp3.OkHttpClient
import or... | 0 | Kotlin | 0 | 0 | ee7cff2c21e4731caeb3064c21cc89fcfc8a49c2 | 1,825 | mp3world | MIT License |
app/src/main/java/com/example/githubuserapp/data/local/room/UserDatabase.kt | Prasetya25 | 561,119,698 | false | null | package com.example.githubuserapp.data.local.room
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.example.githubuserapp.data.local.entity.UserEntity
@Database(entities = [UserEntity::class], version = 1)
abstract class UserDatabase : ... | 0 | Kotlin | 0 | 0 | 296002b6dbfcac4dc7de0e021ca679a3fcc1a4b6 | 908 | TestLibrary | BSD Source Code Attribution |
src/main/java/com/example/a3_repository/RepositoryComponent.kt | aasitnikov | 255,038,339 | false | null | package com.example.a3_repository
import dagger.Component
import javax.inject.Inject
@Component
interface RepositoryComponent {
fun getRepository(): Repository
}
class Repository @Inject constructor(
apiService: ApiService
)
class ApiService @Inject constructor()
// After conversion
class KotlinReposito... | 0 | Kotlin | 1 | 2 | 5c5c5d0d6447e4711d2c8418e9cc9bfdcfebbfb6 | 418 | daggerinternals | Apache License 2.0 |
app/src/main/java/com/zqf/kotlinwanandroid/base/IBaseView.kt | zqf-dev | 484,351,347 | false | {"Kotlin": 130314, "Java": 98386} | package com.zqf.kotlinwanandroid.base
/**
* Author: zqf
* Date: 2021/10/08
*/
interface IBaseView {
} | 0 | Kotlin | 1 | 6 | d13eb0db92a608578943369b39221169b0098297 | 106 | KotlinWanAndroid | Apache License 2.0 |
lib-chain-eos/src/main/java/com/smallraw/chain/eos/model/account/CpuLimit.kt | QuincySx | 262,699,409 | false | null | package com.smallraw.chain.eos.model.account
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
class CpuLimit {
var used: Long? = null
var available: Long? = null
var max: Long? = null
} | 1 | C | 6 | 26 | 0beea2170ea56e2dd224fe0e174d5ac2951632ca | 255 | ChainWallet | Apache License 2.0 |
src/main/java/kr/pe/ecmaxp/openpython/arch/consts/ByteSizeConsts.kt | EcmaXp | 126,013,640 | false | null | package kr.pe.ecmaxp.openpython.arch.consts
const val KB = 1024
| 3 | Python | 7 | 42 | ddc36c39f119db8d7509d326a7ec0a2e327ffb07 | 65 | OpenPython | MIT License |
src/main/kotlin/ui/conciliar/tabs/procesar/TabEstadoProcesar.kt | claaj | 686,362,324 | false | {"Kotlin": 45033} | package ui.conciliar.tabs.procesar
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.snapshots.SnapshotStateList
import ui.conciliar.tabs.TabEstado
import ui.conciliar.tabs.TabTipo
import java.nio.file.Path
data class TabEstadoProcesar(
override val nombre: String,
override val ti... | 0 | Kotlin | 0 | 0 | 8dd4c5ad43110cd895fc7faa66cfe7fa83439818 | 485 | konci | MIT License |
scabbard-processor/src/main/java/dev/arunkumar/scabbard/plugin/processor/graphviz/RenderingContext.kt | ermolnik | 335,637,004 | true | {"Gradle": 22, "Java Properties": 2, "Shell": 2, "Text": 1, "Ignore List": 13, "Batchfile": 2, "YAML": 4, "Markdown": 9, "INI": 2, "Kotlin": 97, "SVG": 65, "XML": 29, "Dockerfile": 1, "Git Attributes": 2, "Proguard": 2, "Java": 14, "Maven POM": 1, "Gradle Kotlin DSL": 1, "CSS": 1} | package dev.arunkumar.scabbard.plugin.processor.graphviz
import dagger.model.Binding
import dagger.model.BindingGraph
import dagger.model.BindingGraph.Node
import dagger.model.BindingKind
import dagger.model.ComponentPath
import dev.arunkumar.dot.dsl.DotGraphBuilder
import dev.arunkumar.dot.dsl.directedGraph
import de... | 0 | null | 1 | 5 | 889081669419d73b1614f18a4d6fa02b891f4036 | 4,320 | scabbard | Apache License 2.0 |
src/main/kotlin/com/pivotstir/gogradle/tasks/GoEnv.kt | innobead | 146,837,567 | false | null | package com.pivotstir.gogradle.tasks
import com.pivotstir.gogradle.GoPlugin
import com.pivotstir.gogradle.GradleSupport
import com.pivotstir.gogradle.toURL
import org.gradle.api.Project
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Optional
import org.rauschig.jarchivelib.ArchiveFormat
import org.rausc... | 2 | Kotlin | 4 | 5 | 8b877e3d8a288dbf8be75f970ebabc7f74d1fa8b | 4,436 | gogradle | Apache License 2.0 |
shared/src/commonMain/kotlin/App.kt | Deepanshu-Sharma-18 | 722,584,358 | false | {"Kotlin": 29194, "Swift": 592, "Shell": 228} | import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import dev.icerock.moko.mvvm.compose.getViewModel
import dev.icerock.moko.mvvm.compose.viewModelFactory
import org.jetbrains.compose.resources.ExperimentalResourceApi
import presentation.MainScreen
import presentation.viewmodel.Pi... | 0 | Kotlin | 0 | 0 | ba813b3163f0f571dab18a3704ba2609336199d9 | 654 | PicturesApp | Apache License 2.0 |
data/src/main/java/com/j2kb/keez/data/NetModule.kt | boring-km | 529,601,619 | false | null | package com.j2kb.keez.data
import android.app.Application
import android.util.Log
import com.google.gson.FieldNamingPolicy
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import com.j2kb.keez.data.api.TestApiService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.h... | 0 | Kotlin | 0 | 0 | 127628ab7138cc063fffa16e733e3f2b8a2c60f6 | 1,997 | Android-MVI-Template | MIT License |
savedstate/savedstate/src/commonMain/kotlin/androidx/savedstate/SavedStateReader.kt | androidx | 256,589,781 | false | null | /*
* Copyright 2024 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... | 29 | null | 992 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 9,089 | androidx | Apache License 2.0 |
app/src/main/java/com/ekalips/cahscrowd/network/Api.kt | Ekalips | 125,216,504 | false | {"Gradle": 5, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 66, "Kotlin": 129, "JSON": 1, "Java": 2} | package com.ekalips.cahscrowd.network
import com.ekalips.cahscrowd.data.action.remote.RemoteAction
import com.ekalips.cahscrowd.data.event.remote.RemoteEvent
import com.ekalips.cahscrowd.data.statistics.RemoteStatisticData
import com.ekalips.cahscrowd.data.user.remote.model.RemoteBaseUser
import com.ekalips.cahscrowd.... | 0 | Kotlin | 0 | 0 | bf60ebbdf3149afbf60e935d599c2a62bdd83da2 | 2,718 | CashCrowd | Apache License 2.0 |
cropper/src/iosMain/kotlin/com/awesome/cropper/CroppingManager.kt | marwanm7moud | 694,594,343 | false | {"Kotlin": 43422, "Batchfile": 2675, "Swift": 923} | package com.awesome.cropper
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.ImageBitmap
import platform.UIKit.UIImage
import platform.UIKit.imageWithCGImage
import platform.CoreGraphics.CGRect
import platform.CoreGraphics.CGSizeMake
import platfor... | 0 | Kotlin | 1 | 4 | 36ff86832199fc8f66c3ccac870828884169874e | 1,538 | ImageCropper | MIT License |
src/test/kotlin/chapter3/solutions/ex10/listing.kt | DavidGomesh | 680,857,367 | false | {"Kotlin": 159910} | package chapter3.solutions.ex10
import chapter3.List
import chapter3.foldLeft
import io.kotest.matchers.shouldBe
import io.kotest.core.spec.style.WordSpec
// tag::init[]
fun sumL(xs: List<Int>): Int =
foldLeft(xs, 0, { x, y -> x + y })
fun productL(xs: List<Double>): Double =
foldLeft(xs, 1.0, { x, y -> x * ... | 0 | Kotlin | 0 | 0 | 6701481feba3a38cd96262c888e3f61e09bc85e6 | 862 | fp-kotlin | MIT License |
library/src/main/java/cloud/pace/sdk/api/pay/generated/model/PaymentMethodCreditCardCreate.kt | pace | 303,641,261 | false | null | /*
* PLEASE DO NOT EDIT!
*
* Generated by SwagGen with Kotlin template.
* https://github.com/pace/SwagGen
*/
package cloud.pace.sdk.api.pay.generated.model
import com.google.gson.annotations.SerializedName
import com.squareup.moshi.Json
import moe.banana.jsonapi2.HasMany
import moe.banana.jsonapi2.HasOne
import ... | 0 | null | 1 | 5 | c459c30690f3c2c480986312a3d837698ce028bc | 1,002 | cloud-sdk-android | MIT License |
src/main/kotlin/spring/Web.kt | gusrb415 | 173,694,769 | false | null | package spring
data class Web(var id: Long? = 0, var content: String? = "")
| 0 | Kotlin | 0 | 0 | ae6340567b091d29f4162f00fc889fd06739b0f7 | 77 | Kotlin-Search-Engine | MIT License |
src/main/kotlin/me/mrkirby153/KirBot/command/executors/rss/CommandRss.kt | mrkirby153 | 77,095,266 | false | null | package me.mrkirby153.KirBot.command.executors.rss
import com.mrkirby153.bfs.model.Model
import com.rometools.rome.io.FeedException
import me.mrkirby153.KirBot.Bot
import me.mrkirby153.KirBot.command.annotations.CommandDescription
import me.mrkirby153.KirBot.command.CommandCategory
import me.mrkirby153.KirBot.command.... | 0 | Kotlin | 1 | 6 | 32d929ccf02c647a7e0ba16d33718405b1cf6dc1 | 6,607 | KirBot | MIT License |
app/src/main/java/com/softdream/exposicily/data/local/LocalLocation.kt | alexfin90 | 562,225,398 | false | {"Kotlin": 41262} | package com.softdream.exposicily.data.local
import androidx.room.ColumnInfo
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.softdream.exposicily.domain.Location
import com.softdream.exposicily.domain.LocationProperty
@Entity(tableName = "locations")
data class Loc... | 0 | Kotlin | 0 | 1 | 8b92c800ff93ac21313747cb4c679f25ca89f812 | 633 | ExpoSicily | Apache License 2.0 |
src/main/kotlin/org/adligo/kt/jse/core/build/I_Ctx4JseDeps.kt | adligo | 466,558,382 | false | null | package org.adligo.kt.jse.core.build
import org.gradle.api.Project
import org.gradle.api.artifacts.Dependency
import org.gradle.kotlin.dsl.DependencyHandlerScope
/**
* This provides the dependencies for the
* {@link <a href="https://github.com/adligo/i_ctx.adligo.org">i_ctx</a>
* project and also exports the abil... | 0 | Kotlin | 0 | 0 | e12d932e49ed5a59a7573bb768b40131113e2dda | 1,569 | buildSrc.jse.core.kt.adligo.org | Apache License 2.0 |
ReferenceAppKotlin/app/src/main/java/com/android/tv/reference/shared/util/Result.kt | android | 192,011,831 | false | {"Kotlin": 902548, "Java": 783880, "Python": 72375, "TypeScript": 47533, "HTML": 9379, "JavaScript": 6342, "CSS": 5928} | /*
* Copyright 2020 Google LLC
*
* 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 applicable law or agreed to ... | 46 | Kotlin | 325 | 998 | dba6602e2543ad467b7d4b44e99d118635c21c97 | 899 | tv-samples | Apache License 2.0 |
serialization/src/main/kotlin/net/corda/serialization/internal/amqp/custom/OpaqueBytesSubSequenceSerializer.kt | corda | 70,137,417 | false | null | package net.corda.serialization.internal.amqp.custom
import net.corda.core.utilities.OpaqueBytes
import net.corda.core.utilities.OpaqueBytesSubSequence
import net.corda.serialization.internal.amqp.CustomSerializer
import net.corda.serialization.internal.amqp.SerializerFactory
/**
* A serializer for [OpaqueBytesSubSe... | 62 | null | 1077 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 1,056 | corda | Apache License 2.0 |
src/commonMain/kotlin/com/linecorp/abc/notifications/ABCNotifications.kt | line | 417,353,838 | false | null | package com.linecorp.abc.notifications
import com.linecorp.abc.notifications.model.NotificationElement
import kotlin.native.concurrent.ThreadLocal
typealias OnMessageReceivedBlock = (NotificationElement) -> Unit
typealias UnitBlock = () -> Unit
class ABCNotifications {
@ThreadLocal
companion object {
... | 2 | null | 3 | 49 | c0b033794ad3d0d9494f97f00f4e5b88107349e1 | 3,531 | abc-kmm-notifications | Apache License 2.0 |
stocks-remote/src/main/java/com/pyamsoft/tickertape/stocks/remote/api/YahooApi.kt | pyamsoft | 371,196,339 | false | null | package com.pyamsoft.tickertape.stocks.remote.api
import javax.inject.Qualifier
@Qualifier @Retention(AnnotationRetention.BINARY) internal annotation class YahooApi
| 1 | Kotlin | 0 | 6 | c5309984f17de290ce2fb82120b4699cc8227b65 | 167 | tickertape | Apache License 2.0 |
cli/src/main/kotlin/inkapplications/shade/cli/ShadeModule.kt | InkApplications | 183,111,240 | false | null | package inkapplications.shade.cli
import dagger.Module
import dagger.Provides
import dagger.Reusable
import inkapplications.shade.Shade
import inkapplications.shade.cli.auth.FileStorage
@Module
class ShadeModule {
@Provides
@Reusable
fun shade(fileStorage: FileStorage): Shade {
val url = fileStora... | 22 | Kotlin | 4 | 35 | a94bee26098d24b7612629c70614980d20023904 | 481 | Shade | MIT License |
src/main/kotlin/br/com/dillmann/restdb/domain/data/utils/PreparedStatementExtensions.kt | lucasdillmann | 252,721,649 | false | {"Handlebars": 392550, "Kotlin": 287315, "ANTLR": 1021, "Dockerfile": 334} | package br.com.dillmann.restdb.domain.data.utils
import br.com.dillmann.restdb.core.converter.ValueConverter
import br.com.dillmann.restdb.domain.data.exception.InvalidColumnNameException
import br.com.dillmann.restdb.domain.metadata.model.Column
import br.com.dillmann.restdb.domain.metadata.resolver.MetadataResolverF... | 0 | Handlebars | 0 | 0 | 24b0af68a53e75abcd2f7f7232a4294107db76ff | 2,776 | restdb | MIT License |
lib-chain-ethereum/src/main/java/com/smallraw/chain/ethereum/extensions/RLPElement.kt | Tinide | 314,498,832 | true | {"C": 642386, "Kotlin": 428035, "Java": 33202, "CMake": 10356, "C++": 9050} | package com.smallraw.chain.ethereum.extensions
import com.smallraw.chain.ethereum.rpl.RLPElement
import java.math.BigInteger
fun RLPElement?.toInt(): Int {
val rlpData = this?.rlpData
return if (this == null || rlpData == null || rlpData.isEmpty()) 0 else BigInteger(
1,
rlpData
).toInt()
}... | 0 | null | 0 | 0 | 9d128d8d70a3ca0f9f9e9a0af3f8d6f027678355 | 899 | ChainWallet | Apache License 2.0 |
src/test/kotlin/no/nav/omsorgspengerutbetaling/mellomlagring/MellomlagringTest.kt | navikt | 360,433,485 | false | null | package no.nav.omsorgspenger.mellomlagring
import com.github.fppt.jedismock.RedisServer
import no.nav.omsorgspenger.redis.RedisConfig
import no.nav.omsorgspenger.redis.RedisStore
import org.awaitility.Awaitility
import org.awaitility.Durations
import org.junit.jupiter.api.AfterAll
import org.slf4j.LoggerFactory
import... | 4 | Kotlin | 1 | 0 | bc7c5de59a0cdee96daf6d93527c82406fd2bbc2 | 3,592 | omsorgspengerutbetaling-api | MIT License |
app/src/main/java/com/genius/coroutinesphoto/CustomImageView.kt | GeniusRUS | 142,028,416 | false | null | package com.genius.coroutinesphoto
import android.content.Context
import android.util.AttributeSet
import android.widget.ImageView
import android.widget.Toast
import com.genius.cphoto.CRPhoto
import com.genius.cphoto.CancelOperationException
import com.genius.cphoto.NotPermissionException
import com.genius.cphoto.Type... | 1 | Kotlin | 1 | 2 | eb9e7a9c2970cda7081336059a9908876a1caecd | 1,157 | CPhoto | Apache License 2.0 |
ref_code/leetcode-main/kotlin/0056-merge-intervals.kt | yennanliu | 66,194,791 | false | null | class Solution {
fun merge(intervals: Array<IntArray>): Array<IntArray> {
intervals.sortBy{ it.first() }
val list = LinkedList<IntArray>()
for (interval in intervals) {
if (list.size == 0 || list.last[1] < interval[0]) {
list.add(interval)
} else {
... | 0 | null | 42 | 98 | 209db7daa15718f54f32316831ae269326865f40 | 452 | CS_basics | The Unlicense |
core/src/commonMain/kotlin/net/orandja/ktm/composition/parser/CharStream.kt | L-Briand | 648,186,850 | false | null | package net.orandja.ktm.composition.parser
/**
* Used by the [Parser] to read a mustache document.
* The parser will read each char one by one until it receives a null element.
*/
fun interface CharStream {
/** @return null if caller reaches the end. */
fun read(): Char?
} | 0 | null | 0 | 3 | ac72f8b1283b2e2dc14b5e356839ce3bc3ced67b | 285 | KTM | MIT License |
library/src/main/java/dev/chrisbanes/insetter/Insetter.kt | qwertyfinger | 342,648,970 | true | {"Kotlin": 106229, "Shell": 2193, "HTML": 1197} | /*
* Copyright 2019 Google LLC
*
* 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 i... | 0 | Kotlin | 0 | 0 | 6068a9a2f427c9dba0ca9aa590e52f19f10036cf | 24,555 | insetter | Apache License 2.0 |
app/src/main/java/com/github/fragivity/example/communicate/resultapi/CheckItemFragment.kt | vitaviva | 313,186,243 | false | {"Kotlin": 222347, "Java": 30352} | package com.github.fragivity.example.communicate.resultapi
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import com.github.fragivity.example.AbsBaseFragment
import com.github.fra... | 16 | Kotlin | 39 | 296 | fe4dcaae2dc5ca97dc030a8f0471c0f3fbadb824 | 2,055 | fragivity | MIT License |
app/src/test/java/com/peterstev/TomorrowViewModelTest.kt | peterslight | 590,860,857 | false | null | package com.peterstev
import com.peterstev.domain.mock.MockData
import com.peterstev.domain.usecase.LocalUseCase
import com.peterstev.domain.usecase.SearchUseCase
import com.peterstev.util.RxSchedulers
import com.peterstev.viewmodel.TomorrowViewModel
import com.peterstev.viewmodel.TomorrowViewModel.TomorrowState.*
imp... | 0 | Kotlin | 0 | 0 | f7eda0f5afc4ebb206165cdfa8a415169720e96d | 6,394 | OpenWeatherApp | MIT License |
idea/testData/formatter/IfElseWithLineBreak.kt | JakeWharton | 99,388,807 | false | null | fun main(args: Array<String>) {
if (true) {
false
} else if (false) {
true
} else {
}
if (true)
{
}
if (true)
{
}
}
// SET_TRUE: LBRACE_ON_NEXT_LINE | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 211 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/fooddeliveryapp/MainActivity.kt | MarvellinusVincent | 729,750,602 | false | {"Kotlin": 100572} | package com.example.fooddeliveryapp
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.widget.ImageView
import android.widget.TextView
import androidx.activity.vie... | 0 | Kotlin | 0 | 0 | cb50631c60328d32eb79940ae7fea346bd572ca6 | 8,100 | Food_Delivery | Apache License 2.0 |
btc/src/main/kotlin/com/d3/btc/provider/BtcRegisteredAddressesProvider.kt | d3ledger | 183,226,939 | false | null | /*
* Copyright D3 Ledger, Inc. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.d3.btc.provider
import com.d3.btc.model.AddressInfo
import com.d3.btc.model.BtcAddress
import com.d3.btc.provider.account.BTC_CURRENCY_NAME_KEY
import com.d3.commons.sidechain.iroha.util.IrohaQueryHelper
import... | 2 | Kotlin | 4 | 3 | f1b4b11e740951f3e2ab9e8dc958c5d8ce22f536 | 2,352 | d3-btc | Apache License 2.0 |
code/codegen/src/test/kotlin/com/android/gradle/replicator/codegen/CodeGenerationListenerTest.kt | ducrohet | 304,160,586 | true | {"Kotlin": 296306} | /*
* Copyright (C) 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 app... | 1 | Kotlin | 0 | 0 | 5695b9e1b315b0b048d78983b44fba02588a9c47 | 3,499 | project-replicator | Apache License 2.0 |
src/main/kotlin/com/quid/loan/user/repository/UserRepository.kt | QuiD-0 | 595,016,463 | false | null | package com.quid.loan.user.repository
import com.quid.loan.counsel.domain.Counsel
import com.quid.loan.loan.domain.Loan
import com.quid.loan.user.domain.User
import com.quid.loan.utils.StatusCode
import com.quid.loan.utils.StatusCode.COUNSEL_NOT_FOUND_ERROR
import com.quid.loan.utils.StatusCode.USER_NOT_FOUND_ERROR
im... | 0 | Kotlin | 0 | 0 | e73b1e36bb10aa07b74e28d7775372417d18c93f | 1,853 | Loan | MIT License |
linea/src/commonMain/kotlin/compose/icons/lineaicons/software/ReflectVertical.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineaicons.software
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 5,786 | compose-icons | MIT License |
idofront-nms/src/main/kotlin/com/mineinabyss/idofront/nms/SpawnHelpers.kt | MineInAbyss | 234,201,953 | false | null | package com.mineinabyss.idofront.nms
import com.mineinabyss.idofront.nms.aliases.NMSEntityType
import com.mineinabyss.idofront.nms.aliases.toBukkit
import com.mineinabyss.idofront.nms.aliases.toNMS
import com.mineinabyss.idofront.typealiases.BukkitEntity
import net.minecraft.core.BlockPosition
import net.minecraft.nbt... | 7 | Kotlin | 4 | 4 | 4d8807eadf8f6fb363770ccaa49b3a35842472e9 | 1,891 | Idofront | MIT License |
src/main/kotlin/com/darkyen/Util.kt | Darkyenus | 107,265,661 | false | {"Scala": 2, "Text": 3, "Ignore List": 1, "Markdown": 1, "Batchfile": 1, "Kotlin": 9, "Java": 1, "GLSL": 2, "JSON": 2, "SVG": 5, "INI": 1} | @file:Suppress("unused")
package com.darkyen
/**
*
*/
import com.badlogic.gdx.graphics.Pixmap
import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.utils.ByteArray as Bytes
import com.badlogic.gdx.utils.IntArray as Ints
typealias Objects<T> = com.badlogic.gdx.utils.Array<T>
typealias Floats = com.badlog... | 1 | null | 1 | 1 | 20d30934002d98d5507413b8a7dd547595c1f98f | 2,141 | FountainSimulator | MIT License |
app/src/main/java/com/tiixel/periodictableprofessor/presentation/base/MviViewModel.kt | remiberthoz | 135,941,479 | false | {"Kotlin": 213503} | package com.tiixel.periodictableprofessor.presentation.base
import io.reactivex.Observable
interface MviViewModel<I : MviIntent, S : MviViewState> {
fun processIntents(intents: Observable<I>)
fun states(): Observable<S>
} | 0 | Kotlin | 0 | 0 | c9b878171db42d7ed01852f144f32c35acb91816 | 234 | periodic-table-professor | MIT License |
kotlin/strings/Hashing.kt | polydisc | 281,633,906 | true | {"Java": 540473, "Kotlin": 515759, "C++": 265630, "CMake": 571} | package strings
import java.math.BigInteger
class Hashing(s: CharSequence) {
var hash1: IntArray
var hash2: IntArray
var p1: IntArray
var p2: IntArray
fun getHash(i: Int, len: Int): Long {
val h1 = (hash1[i + len] + hash1[i].toLong() * (mod1 - p1[len])) % mod1
val h2 = (hash2[i + l... | 1 | Java | 0 | 0 | 4566f3145be72827d72cb93abca8bfd93f1c58df | 2,420 | codelibrary | The Unlicense |
app/src/main/kotlin/ca/rmen/android/poetassistant/widget/CABEditText.kt | caarmen | 51,680,570 | false | {"Kotlin": 426739, "Java": 203042, "Python": 3455, "Shell": 1458} | package ca.rmen.android.poetassistant.widget
import android.content.Context
import androidx.appcompat.widget.AppCompatEditText
import android.util.AttributeSet
import android.view.KeyEvent
/**
* https://code.google.com/p/android/issues/detail?id=23381
*/
class CABEditText : AppCompatEditText, HackFor23381 {
in... | 22 | Kotlin | 11 | 83 | ed1ef7d8136c4d3dce0b8249a2d44c7bc3fbbaea | 1,417 | poet-assistant | Creative Commons Attribution 3.0 Unported |
playground/src/main/java/com/everli/designsystem/playground/MainActivity.kt | everli | 411,270,428 | false | {"Kotlin": 117203} | package com.everli.designsystem.playground
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Arrangement
import and... | 6 | Kotlin | 0 | 5 | ea83c308672c00fb1eea7034ccf1b0a980f84382 | 6,043 | design-system-android | Apache License 2.0 |
Android/feature-account-impl/src/main/java/ru/iandreyshev/featureAccount/network/parser/AccountJson.kt | iandreyshev | 149,519,715 | false | {"Markdown": 3, "Batchfile": 2, "Ignore List": 16, "Gradle": 14, "Java Properties": 2, "Shell": 1, "Proguard": 12, "Java": 19, "XML": 67, "Kotlin": 176, "JSON": 5, "YAML": 2, "Microsoft Visual Studio Solution": 1, "C#": 35, "Dockerfile": 1, "SQL": 1} | package ru.iandreyshev.featureAccount.network.parser
import com.google.gson.annotations.SerializedName
data class AccountJson(
@SerializedName("id")
val id: Long,
@SerializedName("name")
val name: String,
@SerializedName("avatar_url")
val avatarUrl: String?
)
| 0 | Kotlin | 0 | 1 | 5791228f3d7568883058f414a7cbafff561d58d5 | 310 | Dreamland | MIT License |
app/src/main/java/com/ishow/noah/modules/main/tab2/Tab2ViewModel.kt | i-show | 62,766,394 | false | null | package com.ishow.noah.modules.main.tab2
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.ishow.noah.modules.base.mvvm.viewmodel.AppBaseViewModel
/**
* Created by yuhaiyang on 2020-05-11.
*/
class Tab2ViewModel (app: Application) : AppBaseViewMod... | 1 | null | 1 | 1 | 0b823a69256345078a0c110798c8e9ac4ae2b565 | 436 | android-Common | Apache License 2.0 |
libraries/csm.cloud.common.web/src/main/kotlin/com/bosch/pt/csm/cloud/common/facade/rest/resource/request/VersionedIdentifier.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2018 - 2021
*
* ************************************************************************
*/
package com.bosch.pt.csm.cloud.common.facade.rest.resource.request
import java.util.UUID
data ... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 602 | bosch-pt-refinemysite-backend | Apache License 2.0 |
src/main/java/com/intellij/debugger/streams/lib/impl/TerminalOperations.kt | bibaev | 80,594,815 | false | {"Java": 354312, "Kotlin": 214968} | /*
* Copyright 2000-2017 JetBrains s.r.o.
*
* 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 agre... | 9 | Java | 5 | 7 | 1e4184d83eb0bbc99e878fccb59236937d50c7a1 | 1,985 | stream-debugger-plugin | Apache License 2.0 |
app/src/main/java/com/xhand/hnu/screens/Schedule.kt | JiaLiFuNia | 766,049,840 | false | {"Kotlin": 430690} | package com.xhand.hnu.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.ico... | 1 | Kotlin | 0 | 4 | fbeb9137c6071c5be334e4e7e60f1156e9f00c60 | 6,989 | SmartHNU | MIT License |
app/src/main/java/com/heyanle/easybangumi4/plugin/extension/ExtensionModule.kt | easybangumiorg | 413,723,669 | false | {"Kotlin": 1490799, "Java": 761739, "Shell": 450} | package com.heyanle.easybangumi4.plugin.extension
import android.app.Application
import com.heyanle.easybangumi4.utils.getCachePath
import com.heyanle.easybangumi4.utils.getFilePath
import com.heyanle.easybangumi4.utils.getInnerFilePath
import com.heyanle.extension_api.IconFactory
import com.heyanle.inject.api.InjectM... | 30 | Kotlin | 82 | 2,892 | e1f67cc997884e4f6e0e7074c2bae599d3996c9a | 1,381 | EasyBangumi | Apache License 2.0 |
app/src/main/java/com/sdapps/f1racecalendar/Model/ConstructorBO.kt | Sd023 | 518,118,096 | false | null | package com.sdapps.f1racecalendar.Model
class ConstructorBO {
var position: String? = null
var constructorName: String? = null
var nationality: String? = null
var points: String? = null
var wins: String? = null
var conId: String? = null
constructor() {}
constructor(
position: S... | 0 | Kotlin | 0 | 0 | b191b61979b433c855e1a0ade1683bb9afbe3056 | 678 | Formula1-Stat-App | MIT License |
src/main/kotlin/cn/labzen/javafx/animation/AnimationType.kt | labzen | 483,128,110 | false | null | package cn.labzen.javafx.animation
import animatefx.animation.*
/**
* 参考 [animate.style](https://animate.style/) 查看动画效果
*/
enum class AnimationType(val cls: Class<out AnimationFX>) {
NONE(AnimationFX::class.java),
/**
* 使用动画类 [Bounce]
*/
BOUNCE(Bounce::class.java),
/**
* 使用动画类 [BounceIn]
*/
... | 0 | Kotlin | 0 | 0 | 24779cd642341c92c917b12c3ff64d605014075c | 6,297 | javafx | Apache License 2.0 |
app/src/main/java/com/javalon/xpensewhiz/data/local/converter/DateConverter.kt | ezechuka | 472,029,227 | false | {"Kotlin": 333980} | package com.javalon.xpensewhiz.data.local.converter
import androidx.room.TypeConverter
import java.util.*
open class DateConverter {
@TypeConverter
fun toDate(dateLong: Long?): Date? {
return dateLong?.let { Date(it) }
}
@TypeConverter
fun fromDate(date: Date?): Long? {
return da... | 1 | Kotlin | 5 | 52 | 7876f00908cca4f8444ab8b4460f1e7edb4cfa1a | 336 | xpense-whiz | MIT License |
android/src/main/kotlin/px/mercadopago/JsonHelper.kt | juanagu | 259,101,904 | false | null | package px.mercadopago
import com.google.gson.Gson
class JsonHelper {
companion object {
fun toJson(src: Any): String {
return Gson().toJson(src)
}
}
} | 0 | Kotlin | 0 | 0 | fa89fa65e9745777157b4df5a82d58edeb6d1d9b | 189 | px-flutter | MIT License |
src/test/resources/test-compile-data/jvm/kotlin-web-site/basic-syntax/5ec261721162729866abc1e8f7293ef4.3.kt | AlexanderPrendota | 219,478,945 | false | null | fun main() {
//sampleStart
print("Hello ")
print("world!")
//sampleEnd
} | 14 | Kotlin | 47 | 89 | 95326951087813b6dea8b5ef4234fc06f252bd80 | 80 | kotlin-compiler-server | Apache License 2.0 |
payments-core/src/test/java/com/stripe/android/view/CardBrandSelectorTest.kt | stripe | 6,926,049 | false | {"Kotlin": 13814299, "Java": 102588, "Ruby": 45779, "HTML": 42045, "Shell": 23905, "Python": 21891} | package com.stripe.android.view
import com.google.common.truth.Truth.assertThat
import com.stripe.android.model.CardBrand.CartesBancaires
import com.stripe.android.model.CardBrand.MasterCard
import com.stripe.android.model.CardBrand.Unknown
import com.stripe.android.model.CardBrand.Visa
import org.junit.Test
class Ca... | 88 | Kotlin | 644 | 1,277 | 174b27b5a70f75a7bc66fdcce3142f1e51d809c8 | 2,260 | stripe-android | MIT License |
app/src/main/java/com/nishant/whatsappclone/ui/fragments/UsersFragment.kt | cybercoder-naj | 241,438,433 | false | null | package com.nishant.whatsappclone.ui.fragments
import android.os.Bundle
import android.text.Editable
import android.text.TextUtils
import android.text.TextWatcher
import android.view.View
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.firebase.auth.Fireb... | 0 | Kotlin | 1 | 1 | 9eeb34ff5b38d3d09e0cccda7f450074448f932c | 3,672 | WhatsappClone | Apache License 2.0 |
app/src/main/kotlin/io/mochadwi/ui/SplashActivity.kt | mochadwi | 202,173,260 | false | null | package io.mochadwi.ui
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import io.mochadwi.R
import io.mochadwi.util.ext.coroutineLaunch
import kotlinx.coroutines.delay
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bund... | 0 | Kotlin | 1 | 1 | e6f57882fb1723361dfc64d6a4c5d604c84c6eb5 | 603 | android-etalase-app | Apache License 2.0 |
src/jvmMain/kotlin/com/namtarr/aabinstaller/view/settings/SettingsView.kt | NamtarR | 515,413,273 | false | null | package com.namtarr.aabinstaller.view.settings
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.ui.Alignment
import ... | 0 | Kotlin | 0 | 2 | 2a5b4b7992b89168ffc3f5316e2539cbd2d827a8 | 1,822 | aab-installer | MIT License |
app/src/main/java/com/androidapp/navweiandroidv2/presentation/locationdetails/filters/adapters/CategoryAllListAdapter.kt | serifenuruysal | 239,270,875 | false | {"Kotlin": 410694, "Java": 337878, "Shell": 731, "Batchfile": 633} | package com.androidapp.navweiandroidv2.presentation.locationdetails.filters.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.androidapp.entity.models.Category
import com.androidapp.navweiandroidv2.R
import com... | 0 | Kotlin | 0 | 1 | 2547885c8349302617e219077a3ea0a8c4041601 | 2,281 | Navwei-Android-App | MIT License |
model/src/commonMain/kotlin/com/toxicbakery/game/dungeon/model/Locatable.kt | ToxicBakery | 224,311,645 | false | null | package com.toxicbakery.game.dungeon.model
import com.toxicbakery.game.dungeon.model.character.Location
interface Locatable {
val location: Location
}
| 0 | Kotlin | 0 | 0 | 1abadae585a2d1eb915e32604a83e5048afbc52a | 159 | dungeon | Apache License 2.0 |
decoder/wasm/src/commonMain/kotlin/io/github/charlietap/chasm/decoder/wasm/decoder/value/name/BinaryNameValueDecoder.kt | CharlieTap | 743,980,037 | false | {"Kotlin": 1667685, "WebAssembly": 75136} | package io.github.charlietap.chasm.decoder.wasm.decoder.value.name
import com.github.michaelbull.result.Err
import com.github.michaelbull.result.Ok
import com.github.michaelbull.result.Result
import com.github.michaelbull.result.binding
import io.github.charlietap.chasm.ast.value.NameValue
import io.github.charlietap.... | 2 | Kotlin | 2 | 43 | 4cb170e73e120a15de6397ad24d2f23c1fae3f87 | 1,264 | chasm | Apache License 2.0 |
sources-js/values/Transform.kt | fluidsonic | 312,071,668 | false | {"Kotlin": 257936} | @file:Suppress("NAME_CONTAINS_ILLEGAL_CHARS", "NESTED_CLASS_IN_EXTERNAL_INTERFACE", "NOTHING_TO_INLINE")
package io.fluidsonic.css
@JsName("0;0")
public external interface Transform : CssValue {
public companion object;
@JsName("0;0")
public interface Variable : Transform, CssVariable<Transform>
}
@CssDsl
pu... | 0 | Kotlin | 1 | 2 | 466c979ac1b547ab052c1415a6a166adb61a4ba6 | 1,130 | fluid-css | Apache License 2.0 |
app/src/main/java/com/testing/chatai/components/ChatHeader.kt | shivvrat12 | 790,853,459 | false | {"Kotlin": 12266} | package com.testing.chatai.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import andro... | 0 | Kotlin | 0 | 0 | afbeba94afa494a07452ec6d93944bfe3693768a | 793 | ChatAI | MIT License |
intellij-plugin/educational-core/src/com/jetbrains/edu/learning/marketplace/MarketplaceSolutionLoader.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.marketplace
import com.intellij.openapi.components.Service
import com.intellij.openapi.components.service
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.project.Project
import com.jetbrains.edu.learning.SolutionLoaderBase
import com.jetbrains.edu.learning.c... | 7 | null | 49 | 150 | 9cec6c97d896f4485e76cf9a2a95f8a8dd21c982 | 5,627 | educational-plugin | Apache License 2.0 |
testing/test-utils/src/main/kotlin/net/corda/testing/internal/LogHelper.kt | corda | 70,137,417 | false | null | package net.corda.testing.internal
import net.corda.core.internal.packageName
import org.apache.logging.log4j.Level
import org.apache.logging.log4j.LogManager
import org.apache.logging.log4j.core.LoggerContext
import org.apache.logging.log4j.core.config.Configurator
import org.apache.logging.log4j.core.config.LoggerCo... | 62 | null | 1077 | 3,989 | d27aa0e6850d3804d0982024054376d452e7073a | 2,632 | corda | Apache License 2.0 |
app/src/main/java/io/github/webcurate/networking/models/FeedResponse.kt | mubdiur | 306,222,135 | false | null | package io.github.webcurate.networking.models
import java.math.BigInteger
data class FeedResponse(
val id: BigInteger,
val title: String,
val description: String,
val updates: Int,
val notifyupdates: Int,
val notification: Int
)
| 0 | Kotlin | 0 | 1 | 9ce4e9316d08490af7debbf135e884648b7796d8 | 255 | webcurator | MIT License |
confluence-plugin/src/main/java/com/networkedassets/git4c/infrastructure/mocks/core/cache/InMemoryDocumentationsCache.kt | rpaasche | 321,741,515 | true | {"Kotlin": 798728, "JavaScript": 351426, "Java": 109291, "Groovy": 55451, "CSS": 37375, "ANTLR": 19544, "Gherkin": 15007, "HTML": 14268, "Shell": 4490, "Ruby": 1378, "Batchfile": 1337, "PowerShell": 716} | package com.networkedassets.git4c.infrastructure.mocks.core.cache
import com.networkedassets.git4c.core.datastore.cache.DocumentsViewCache
import com.networkedassets.git4c.data.macro.documents.DocumentationsMacro
import com.networkedassets.git4c.infrastructure.mocks.generic.InMemoryCache
internal class InMemoryDocume... | 0 | Kotlin | 0 | 0 | e55391b33cb70d66bbf5f36ba570fb8822f10953 | 393 | git4c | Apache License 2.0 |
components/bridge/impl/src/main/java/com/flipperdevices/bridge/impl/di/AndroidBleModule.kt | flipperdevices | 288,258,832 | false | {"Kotlin": 2760721, "FreeMarker": 10084, "CMake": 1780, "C++": 1152, "Fluent": 21} | package com.flipperdevices.bridge.impl.di
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothManager
import android.content.Context
import androidx.core.content.ContextCompat
import com.flipperdevices.core.di.AppGraph
import com.flipperdevices.core.ktx.android.getBluetoothAdapter
import com.sq... | 13 | Kotlin | 131 | 999 | ef27b6b6a78a59b603ac858de2c88f75b743f432 | 871 | Flipper-Android-App | MIT License |
app/src/main/java/com/ao/navigationfragment/MainActivity.kt | Ahmedomarpro | 245,748,727 | false | null | package com.ao.navigationfragment
import android.net.Uri
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.drawerlayout.widget.DrawerLayout
import androidx.navigation.*
import androidx.navigation.ui.AppBarConfigu... | 0 | Kotlin | 0 | 0 | 497921a97d98a90e2f9c9731514b61e7939510b2 | 1,870 | Udacity-TriviaNavigation-Kotlin | Apache License 2.0 |
jvm/src/main/java/com/github/kyuubiran/ezxhelper/ClassHelper.kt | KyuubiRan | 349,098,837 | false | null | @file:Suppress("unused")
package com.github.kyuubiran.ezxhelper
import com.github.kyuubiran.ezxhelper.annotations.KotlinOnly
/**
* The scoped helper for [Class] to quick do reflect things
* @see ClassUtils
*/
@KotlinOnly
class ClassHelper private constructor(private val clz: Class<*>) {
companion object {
... | 3 | Kotlin | 26 | 213 | e32d51cef4e8bc27a1e4cdf6bf6385e1470a8315 | 1,951 | EzXHelper | Apache License 2.0 |
src/main/kotlin/org/move/ide/inspections/MvUnusedImportInspection.kt | pontem-network | 279,299,159 | false | null | package org.move.ide.inspections
import com.intellij.codeInspection.ProblemHighlightType
import com.intellij.codeInspection.ProblemsHolder
import com.intellij.psi.PsiElement
import com.intellij.psi.util.descendantsOfType
import com.intellij.psi.util.parentOfType
import org.move.lang.core.psi.*
import org.move.lang.cor... | 0 | Kotlin | 7 | 14 | fbd0bfca84996cfe6178e994f65e219a37e73e66 | 5,983 | intellij-move | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.