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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
configuration/src/main/kotlin/com/malinskiy/marathon/config/vendor/android/AllureConfiguration.kt | MarathonLabs | 129,365,301 | false | null | package com.malinskiy.marathon.config.vendor.android
/**
* @param relativeResultsDirectory path of allure results relative to $EXTERNAL_STORAGE (Environment.getExternalStorageDirectory())
*/
data class AllureConfiguration(
var enabled: Boolean = false,
var relativeResultsDirectory: String = "/allure-results"... | 59 | Kotlin | 83 | 325 | 9e36e76bd46e83bfe078d8dda41c3439afc8118b | 323 | marathon | Apache License 2.0 |
common/common_base/src/main/java/com/cl/common_base/util/Prefs.kt | aaaaaaaazmx | 528,318,389 | false | {"Kotlin": 4055704, "Java": 891577} | package com.cl.common_base.util
import android.os.Build
import androidx.annotation.RequiresApi
import com.cl.common_base.bean.PresetData
import com.cl.common_base.constants.Constants
import com.cl.common_base.util.json.GSON
import com.google.gson.reflect.TypeToken
import com.tencent.mmkv.MMKV
object Prefs {
priv... | 0 | Kotlin | 0 | 0 | ef616ab37c42ad8a6b98d887e2e8deae58cedc29 | 3,286 | abby | Apache License 2.0 |
hook/FieldHook.kt | PolarBearJun | 532,747,474 | false | null | package me.simpleHook.hook
import android.content.Context
import com.google.gson.Gson
import de.robv.android.xposed.XC_MethodHook
import de.robv.android.xposed.XposedBridge
import de.robv.android.xposed.XposedHelpers
import me.simpleHook.bean.LogBean
import me.simpleHook.hook.Tip.getTip
import me.simpleHook.util.Langu... | 0 | Kotlin | 1 | 2 | 249ecebb085a567a8cce0006629d7ea0d7254738 | 10,602 | SimpleHook-M | Apache License 2.0 |
app/src/main/kotlin/co/anitrend/support/markdown/core/AbstractActivity.kt | AniTrend | 165,279,958 | false | {"Kotlin": 131686} | package co.anitrend.support.markdown.core
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.viewbinding.ViewBinding
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.MainScope
import org.koin.androidx.fragment.android.setupKoinFragmentFactory
import org.koin.andr... | 5 | Kotlin | 1 | 2 | a63b3242463ba08e2b7cf3a1cbf810986faa599c | 991 | support-markdown | Apache License 2.0 |
src/main/kotlin/com/felipecosta/microservice/frontcontroller/impl/NotesFrontCommand.kt | bigkahuna1uk | 70,923,994 | true | {"Kotlin": 17872, "Shell": 1067, "HTML": 184} | package com.felipecosta.microservice.frontcontroller.impl
import com.felipecosta.microservice.frontcontroller.SparkFrontCommand
import spark.Request
import spark.Response
class NotesFrontCommand(request: Request, response: Response) : SparkFrontCommand(request, response) {
override fun process() {
render(... | 0 | Kotlin | 0 | 0 | dc37426c9cdd86c8719814279597c3c113abce70 | 473 | kotlin-microservice | MIT License |
src/main/kotlin/pw/dotdash/township/plugin/command/CommandTownLeave.kt | Arvenwood | 239,849,867 | false | {"Kotlin": 125324, "Java": 46717} | package pw.dotdash.township.plugin.command
import org.spongepowered.api.command.CommandException
import org.spongepowered.api.command.CommandResult
import org.spongepowered.api.command.CommandSource
import org.spongepowered.api.entity.living.player.Player
import org.spongepowered.api.text.Text
import org.spongepowered... | 1 | Kotlin | 1 | 2 | bb476a9bbd8659f6474316caee22be73dc1d5ba2 | 1,355 | Township | MIT License |
app/src/main/kotlin/me/sweetll/tucao/business/home/adapter/PlayHistoryAdapter.kt | xiaole0310 | 91,590,492 | true | {"Java Properties": 3, "YAML": 1, "Gradle": 5, "Shell": 1, "Markdown": 2, "Batchfile": 1, "Text": 2, "Ignore List": 3, "Git Config": 1, "Proguard": 2, "Java": 90, "XML": 127, "INI": 3, "Ant Build System": 1, "Kotlin": 131} | package me.sweetll.tucao.business.home.adapter
import android.widget.ImageView
import com.chad.library.adapter.base.BaseItemDraggableAdapter
import com.chad.library.adapter.base.BaseViewHolder
import me.sweetll.tucao.R
import me.sweetll.tucao.extension.load
import me.sweetll.tucao.model.json.Result
class PlayHistoryA... | 1 | Java | 0 | 2 | f83d75ac9747f2df2ede4b8f3a8c12d701327fb5 | 729 | Tucao | MIT License |
src/main/kotlin/magicsquare/quartumbackend/persistance/entity/User.kt | MagicSquareTeam | 458,905,234 | false | null | package magicsquare.quartumbackend.persistance.entity
import com.fasterxml.jackson.annotation.JsonIgnore
import org.hibernate.annotations.GenericGenerator
import javax.persistence.*
import java.time.LocalDate
/**
* User - модель представляет сущность пользователя
*
* @property id
* @property name
* @property sur... | 0 | Kotlin | 0 | 0 | 35ed0f9594da403a9d39f7fe481a5669d6599df2 | 5,648 | quartum-backend | MIT License |
pluginApi/src/main/java/com/su/mediabox/pluginapi/components/IHomePageDataComponent.kt | RyensX | 459,571,889 | false | {"Kotlin": 43532} | package com.su.mediabox.pluginapi.components
import com.su.mediabox.pluginapi.data.BaseData
/**
* 首页页面数据组件
*/
interface IHomePageDataComponent : IBasePageDataComponent {
/**
* 获取数据
* @param page 由宿主控制的页码,在刷新时重置,在上拉时递增
*/
suspend fun getData(page: Int): List<BaseData>?
} | 0 | Kotlin | 8 | 41 | 4616843a940b018865e2a5fb70d4e078d61dd652 | 297 | MediaBoxPlugin | Apache License 2.0 |
compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/transformers/ReturnTypeCalculator.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.fir.resolve.transformers
import org.jetbrains.kotlin.fir.declarations.FirTypedDe... | 135 | Kotlin | 4980 | 40,442 | 817f9f13b71d4957d8eaa734de2ac8369ad64770 | 711 | kotlin | Apache License 2.0 |
deeplinkdispatch-base/src/main/java/com/airbnb/deeplinkdispatch/DeepLinkEntry.kt | hashlin | 257,585,724 | true | {"INI": 4, "YAML": 1, "Markdown": 5, "Gradle": 10, "Shell": 2, "Batchfile": 1, "Ignore List": 7, "XML": 16, "Java": 41, "Proguard": 2, "Kotlin": 14, "Text": 1, "Java Properties": 1} | /*
* Copyright (C) 2015 Airbnb, 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... | 0 | null | 0 | 0 | 97591883b53bc51cac0f5c550128a857c78aafc4 | 1,628 | DeepLinkDispatch | Apache License 2.0 |
app/src/main/java/com/stocksexchange/android/database/tables/TradeHistoryTable.kt | nscoincommunity | 277,168,471 | true | {"Kotlin": 2814235} | package com.stocksexchange.android.database.tables
import com.stocksexchange.api.model.rest.Trade
import com.stocksexchange.android.database.daos.TradeHistoryDao
import com.stocksexchange.android.database.model.DatabaseTrade
import com.stocksexchange.android.database.tables.base.BaseTable
import com.stocksexchange.and... | 0 | null | 0 | 0 | 52766afab4f96506a2d9ed34bf3564b6de7af8c3 | 1,609 | Android-app | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/LampDesk.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
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 | 2,359 | icons | MIT License |
app/src/main/java/com/hammer/talkbbokki/domain/repository/PushRepository.kt | Nexters | 588,815,777 | false | null | package com.hammer.talkbbokki.domain.repository
import kotlinx.coroutines.flow.Flow
interface PushRepository {
fun postDeviceToken(id: String, pushToken: String): Flow<Unit>
}
| 10 | Kotlin | 1 | 1 | 0654b098fbee3fd5b2c538c098cf8f028cb9078b | 182 | talkbbokki-android | Apache License 2.0 |
tictactoe/adapter-vdm/src/main/kotlin/com/anaplan/engineering/azuki/tictactoe/adapter/vdm/declaration/PlayOrderDeclarationBuilder.kt | anaplan-engineering | 458,253,960 | false | null | package com.anaplan.engineering.azuki.tictactoe.adapter.vdm.declaration
import com.anaplan.engineering.azuki.tictactoe.adapter.declaration.Declaration
import com.anaplan.engineering.azuki.tictactoe.adapter.declaration.declaration.PlayOrderDeclaration
import com.anaplan.engineering.azuki.tictactoe.adapter.vdm.XOModule
... | 0 | Kotlin | 0 | 2 | 4c193f89b0d692d95388c6a628e49c81355275d5 | 1,075 | azuki | MIT License |
library/src/main/kotlin/com/daniloaraujosilva/mathemagika/library/common/mathematica/functions/ImageChannels.kt | Danilo-Araujo-Silva | 271,904,885 | false | null | package com.daniloaraujosilva.mathemagika.library.common.mathematica.functions
import com.daniloaraujosilva.mathemagika.library.common.mathematica.MathematicaFunction
/**
*````
*
* Name: ImageChannels
*
* Full name: System`ImageChannels
*
* Usage: ImageChannels[image] gives the nu... | 2 | Kotlin | 0 | 3 | 4fcf68af14f55b8634132d34f61dae8bb2ee2942 | 1,009 | mathemagika | Apache License 2.0 |
baselibrary/src/main/kotlin/com/huawen/baselibrary/adapter/animation/BaseAnimation.kt | cc17236 | 297,074,446 | false | null | package com.huawen.baselibrary.adapter.animation
import android.animation.Animator
import android.view.View
/**
* https://github.com/CymChad/BaseRecyclerViewAdapterHelper
*/
interface BaseAnimation {
fun getAnimators(view: View): Array<out Animator>
}
| 0 | Kotlin | 0 | 0 | 219c6d63fee41a9f28e9f935a3d222159d12d5e3 | 260 | AnroidKotlinSample | Apache License 2.0 |
compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/FirTypedDeclaration.kt | cr8tpro | 189,964,139 | true | {"Kotlin": 37481242, "Java": 7489008, "JavaScript": 157778, "HTML": 74773, "Lex": 23159, "TypeScript": 21255, "IDL": 10895, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | /*
* Copyright 2000-2018 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.fir.declarations
import org.jetbrains.kotlin.fir.expressions.FirAnnotationContai... | 0 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 1,003 | kotlin | Apache License 2.0 |
modules/ui/src/main/kotlin/com/harleyoconnor/gitdesk/ui/repository/editor/EditorTabController.kt | Harleyoc1 | 437,374,163 | false | {"Kotlin": 627023, "CSS": 15559, "Java": 5354} | package com.harleyoconnor.gitdesk.ui.repository.editor
import com.harleyoconnor.gitdesk.data.local.LocalRepository
import com.harleyoconnor.gitdesk.ui.UIResource
import com.harleyoconnor.gitdesk.ui.repository.RepositoryWindow
import com.harleyoconnor.gitdesk.ui.translation.TRANSLATIONS_BUNDLE
import com.harleyoconnor.... | 0 | Kotlin | 0 | 0 | 88e49e1e3f1072fd16e7651dc716b891c50cfa71 | 3,829 | GitDesk | MIT License |
online_services/src/main/java/com/infinitepower/newquiz/online_services/ui/login/LoginScreen.kt | joaomanaia | 443,198,327 | false | null | package com.infinitepower.newquiz.online_services.ui.login
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Co... | 0 | Kotlin | 14 | 99 | 4741a80f1db8073c7d33499523117b446489bbf0 | 8,683 | newquiz | Apache License 2.0 |
android/src/main/kotlin/com/svenjacobs/zen/android/state/LiveDataStateMutator.kt | svenjacobs | 235,808,759 | false | null | package com.svenjacobs.zen.android.state
import androidx.lifecycle.MutableLiveData
import com.svenjacobs.zen.core.state.State
import com.svenjacobs.zen.core.state.StateMutator
import kotlinx.coroutines.withContext
import kotlin.coroutines.CoroutineContext
class LiveDataStateMutator<S : State>(
private val state: ... | 1 | Kotlin | 0 | 2 | 8d7f20d62fbc67f1af3133f7e17379f7b4f429e4 | 678 | zen | MIT License |
app/src/main/java/io/betterapps/graysky/data/models/RainUnit.kt | raychenon | 290,579,350 | false | null | package io.betterapps.graysky.data.models
import com.google.gson.annotations.SerializedName
data class RainUnit(
// https://openweathermap.org/api/one-call-api
// Rain volume for last hour, mm
@SerializedName("1h") val precipitationVolumeForecast1h: Float,
)
| 5 | Kotlin | 1 | 1 | a99094c666a56640c947b0b0b65e654f0caacf37 | 273 | gray-sky-weather | Apache License 2.0 |
ContactListApp/app/src/main/java/com/crocsandcoffee/contactlist/main/ui/model/ContactItem.kt | crocsandcoffee | 323,012,003 | false | null | package com.crocsandcoffee.contactlist.main.ui.model
import android.net.Uri
import androidx.recyclerview.widget.DiffUtil
/**
* @author Omid
*
* UI model for holding metadata for a single contact
*
* @param id unique ID of the contact
* @param name full name of the contact
* @param lastModifiedDate last modifie... | 0 | Kotlin | 0 | 1 | 056e23b3733a17de1725c02792a78a3aba961d6a | 1,064 | medium | Apache License 2.0 |
kotlinDHash.kt | cloudbank | 142,939,143 | false | null |
fun dhash(oldWidth: Int, oldHeight: Int, newWidth: Int, newHeight: Int, ib: IntArray): Long {
//val newBitmapPixels = IntArray(newWidth * newHeight)
var x2: Int
var y2: Int
val end = (newWidth * newHeight) - 1;
var index = 0
var firstpix... | 0 | Kotlin | 0 | 0 | 2bb2b93b4b26deaa9f05e18b515c10f33e8b5a62 | 2,190 | 3SS | Apache License 2.0 |
mailserver/smtp/src/commonMain/kotlin/io/smtp/reader/AsyncSmtpReader.kt | lost-illusi0n | 563,231,184 | false | {"Kotlin": 245200, "Astro": 3842, "Dockerfile": 404, "JavaScript": 109} | package dev.sitar.kmail.smtp.io.smtp.reader
import dev.sitar.kio.async.readers.AsyncReader
public interface AsyncSmtpReader : AsyncReader {
public suspend fun readIsFinal(): Boolean {
return read() == ' '.code.toByte()
}
} | 0 | Kotlin | 1 | 6 | 0e823e71d5bb55334602d669f4a6c8f8718e5347 | 240 | kmail | MIT License |
src/main/kotlin/kotlinmud/test/service/MakeItemService.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.test.service
import kotlinmud.item.model.Item
import kotlinmud.item.service.ItemService
import kotlinmud.item.type.ItemType
import kotlinmud.item.type.Material
import kotlinmud.mob.model.Mob
class MakeItemService(private val itemService: ItemService, private val amount: Int) {
var item: Item? = ... | 0 | Kotlin | 1 | 9 | b7ee0d21ae813990896b1b8c6703da9bd1f1fc5b | 762 | kotlinmud | MIT License |
app/src/main/java/com/exmple/baseprojectmvp/mvp/view/MainActivity.kt | mouxuefei | 142,122,834 | false | null | package com.exmple.baseprojectmvp.mvp.view
import com.exmple.baseprojectmvp.R
import com.exmple.baseprojectmvp.mvp.adapter.DemoAdapter
import com.exmple.baseprojectmvp.mvp.contract.IMainContact
import com.exmple.baseprojectmvp.mvp.presenter.MainPresenter
import com.exmple.corelib.mvp.BaseMvpListActivity
import com.exm... | 0 | null | 9 | 55 | b5cd9bbc917db31b028c0cc0a442d62418c98b15 | 1,264 | KotlinMvpExample | Apache License 2.0 |
app/src/main/java/net/numa08/gochisou/data/service/EsaService.kt | numa08 | 50,542,826 | false | null | package net.numa08.gochisou.data.service
import net.numa08.gochisou.data.model.PageNation
import net.numa08.gochisou.data.model.Token
import net.numa08.gochisou.data.model.TokenInfo
import retrofit2.http.*
import rx.Observable
interface EsaService {
@GET("/v1/teams")
fun teams(@Header("Authorization") token: ... | 1 | Kotlin | 1 | 9 | efa95482507026e6c4c2e9d114de75c385f0266a | 1,169 | Gochisou | MIT License |
app/src/main/java/com/example/bulkesfet/viewModel/UserCommentViewModel.kt | AdemSoner | 653,350,015 | false | {"Kotlin": 176548} | package com.example.bulkesfet.viewModel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.bulkesfet.model.Comments
import com.example.bulkesfet.model.MyDate
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.googl... | 0 | Kotlin | 0 | 0 | 2df72fad7b83a2a3bbdc252786198a79b1ce8810 | 3,149 | BulKesfet-AndroidAPP | Apache License 2.0 |
shared/src/androidTest/kotlin/co/touchlab/kampkit/KoinTest.kt | samuele794 | 503,669,379 | false | {"Kotlin": 143475, "Swift": 9815, "Ruby": 1831} | package co.touchlab.kampkit
//import android.app.Application
//import android.content.Context
//import androidx.test.core.app.ApplicationProvider.getApplicationContext
//import co.touchlab.kermit.Logger
//import it.samuele794.scala.AppInfo
//import org.junit.experimental.categories.Category
//import org.koin.core.cont... | 0 | Kotlin | 0 | 0 | dee8f78050a22d19300b8e793160aa87b68b72bc | 1,191 | kamp-scala | Apache License 2.0 |
app/src/main/java/com/naftarozklad/repo/internal/db/RozkladDatabase.kt | bshvets8 | 115,192,251 | false | null | package com.naftarozklad.repo.internal.db
import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import com.naftarozklad.repo.models.Group
import com.naftarozklad.repo.models.Lesson
/**
* Created by bohdan on 10/7/17
*/
@Database(entities = arrayOf(Group::class, Lesson::cla... | 0 | Kotlin | 0 | 0 | 1cfa23ba5ea09539f684bdecee22c445a1d2e00d | 554 | NaftaRozkladAndroid | MIT License |
app/src/main/java/open/geosolve/geosolve/view/MvpFragmentX.kt | mikelarshin | 254,889,708 | false | null | package open.geosolve.geosolve.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import moxy.MvpAppCompatFragment
open class MvpFragmentX(val layoutRes: Int) : MvpAppCompatFragment() {
protected lateinit var layout: View
override fun onCr... | 1 | Kotlin | 1 | 9 | 394697b3bd102f8035d39824a787aa624795f471 | 853 | GeoSolve | MIT License |
app/src/main/java/open/geosolve/geosolve/view/MvpFragmentX.kt | mikelarshin | 254,889,708 | false | null | package open.geosolve.geosolve.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import moxy.MvpAppCompatFragment
open class MvpFragmentX(val layoutRes: Int) : MvpAppCompatFragment() {
protected lateinit var layout: View
override fun onCr... | 1 | Kotlin | 1 | 9 | 394697b3bd102f8035d39824a787aa624795f471 | 853 | GeoSolve | MIT License |
domain/src/main/java/com/christopher/elias/domain/entity/Failure.kt | ChristopherME | 236,620,160 | false | null | package com.christopher.elias.domain.entity
/**
* Created by <NAME> on 27/01/2020.
* <EMAIL>
*
* Peru Apps
* Lima, Peru.
**/
sealed class Failure {
/** When service return 401 or 403 this will force the client to log out of the app.*/
object UnauthorizedOrForbidden : Failure()
/** Weird and strang... | 0 | Kotlin | 6 | 9 | e39ed2dae17c7043cd494052858577a54ac03ad4 | 1,175 | base-project | Apache License 2.0 |
app/src/main/java/dev/jay/gossip/database/User.kt | jaymaurya1256 | 581,805,558 | false | {"Kotlin": 30190} | package dev.jay.gossip.database
import androidx.room.Entity
import androidx.room.PrimaryKey
import org.jetbrains.annotations.Nullable
@Entity
data class User(
@PrimaryKey val name: String,
@Nullable val photo: String,
@Nullable val phone: String,
@Nullable val email: String,
@Nullable val bio: Str... | 3 | Kotlin | 0 | 0 | 261b680ec6c76a911ceb5f1aa76022bfbbfca54c | 433 | Gossip | MIT License |
app/src/main/java/com/example/ust_laundry/MapsActivity.kt | mrAldirs | 690,647,880 | false | {"Kotlin": 79186, "PHP": 8500} | package com.example.ust_laundry
import android.content.Intent
import android.graphics.Color
import android.location.Location
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.Toast
import com.android.volley.Request
... | 0 | Kotlin | 0 | 1 | 8f9086616eb0343bb4e0a1290ce60eb75ef66e9e | 7,107 | pemesanan-tiket-kotlin | Apache License 2.0 |
app/src/androidTest/java/nic/goi/aarogyasetu/utility/authsp/AuthSpHelperTest.kt | niharika2810 | 288,159,939 | true | {"Java Properties": 2, "Gradle": 3, "Shell": 1, "Markdown": 3, "Batchfile": 1, "Ignore List": 2, "Proguard": 1, "Kotlin": 49, "XML": 99, "Java": 50} | package nic.goi.aarogyasetu.utility.authsp
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.hamcrest.Matchers
import org.junit.Assert
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::class)
class AuthSpHelperTest {
private lateinit var authSpHelp... | 0 | null | 2 | 3 | b81f31a4a1e1c7c20159a608fc305de402deff4b | 1,224 | AarogyaSetu_Android | Apache License 2.0 |
driver/src/sk/csirt/viruschecker/driver/routing/Index.kt | CSIRT-SK | 214,125,983 | false | null | package sk.csirt.viruschecker.driver.routing
import io.ktor.application.call
import io.ktor.locations.KtorExperimentalLocationsAPI
import io.ktor.locations.get
import io.ktor.response.respond
import io.ktor.routing.Route
import mu.KotlinLogging
import sk.csirt.viruschecker.driver.antivirus.Antivirus
import sk.csirt.vi... | 0 | Kotlin | 5 | 6 | f9269787d5c30fccb15f416f451113bba4e7cde9 | 896 | viruschecker | MIT License |
src/main/kotlin/br/com/webscraping/WebscrapingApplication.kt | Nicholas-Cardoso | 811,865,130 | false | {"Kotlin": 6685} | package br.com.webscraping
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.scheduling.annotation.EnableScheduling
@SpringBootApplication
@EnableScheduling
class WebscrapingApplication
fun main(args: Array<String>) {
run... | 0 | Kotlin | 0 | 1 | 394bf79671bfdf3ccdcf9b3959ec5d2eef72b101 | 365 | Web-Scraping | MIT License |
fabric/src/main/java/org/valkyrienskies/toolbox/fabric/ToolboxBlockTagsProvider.kt | BlueMoonJune | 844,053,463 | false | {"Kotlin": 115352, "Java": 11359} | package org.valkyrienskies.toolbox.fabric
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput
import net.fabricmc.fabric.api.datagen.v1.provider.FabricTagProvider
import net.minecraft.core.HolderLookup
import net.minecraft.tags.BlockTags
import org.valkyrienskies.toolbox.content.block.ModBlocks
import java.util... | 0 | Kotlin | 0 | 0 | c4d7a6296b408dbfcabcdca277cd140a328af50f | 711 | VSToolbox | Apache License 2.0 |
app/src/androidTest/java/net/dublin/bus/ui/view/route/detail/RouteDetailMapScreenTest.kt | thaleslima | 122,882,200 | false | {"Kotlin": 239207, "Java": 19828} | package net.dublin.bus.ui.view.route.detail
import android.Manifest
import android.content.Intent
import android.support.test.InstrumentationRegistry
import android.support.test.InstrumentationRegistry.getInstrumentation
import android.support.test.espresso.Espresso.onView
import android.support.test.espresso.IdlingRe... | 0 | Kotlin | 1 | 0 | b892fbd87414f71607b7b01ad365d0896c401ba2 | 7,725 | DublinBus | Apache License 2.0 |
plugins/android-extensions/android-extensions-idea/tests/org/jetbrains/kotlin/android/AbstractAndroidExtractionTest.kt | JakeWharton | 99,388,807 | false | null | /*
* Copyright 2010-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... | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 1,421 | kotlin | Apache License 2.0 |
app/src/main/java/com/niyaj/popos/features/common/util/ContextExt.kt | skniyajali | 579,613,644 | false | null | package com.niyaj.popos.features.common.util
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.core.content.ContextCompat
fun Context.hasNotificationPermission(): Boolean {
return if (Build... | 4 | Kotlin | 0 | 1 | 43bffb61e5634c11887f32eb08448f09fa95d51e | 761 | POS-Application | MIT License |
app/OutWait/app/src/main/java/edu/kit/outwait/clientDatabase/ClientInfo.kt | OutWait | 398,042,615 | false | {"Kotlin": 725686} | package edu.kit.outwait.clientDatabase
import androidx.room.Entity
import androidx.room.PrimaryKey
import org.joda.time.DateTime
import org.joda.time.Duration
/**
* This class bundles all information about a client slot which are important
* for the client side of the app to work. While the [slotCode] is consistent... | 0 | Kotlin | 0 | 1 | d3b878b82294899006b21a91f48877aa555eee6e | 1,300 | OutWait | MIT License |
src/main/kotlin/io/kjson/demo2/ports/requires/Party.kt | pwall567 | 632,757,780 | false | null | package io.kjson.demo1.ports.requires
import java.time.Instant
import java.util.UUID
data class Party(val id: String, val name: String, val reference: UUID, val creationDate: Instant)
| 0 | Kotlin | 0 | 0 | 760551608b92c4bfbe1f1ac7f3fe52a3e8eeeaf9 | 186 | ktor-demo-2 | MIT License |
app/src/main/java/com/example/epayapplication/api/ApiInterface.kt | Anasmirza20 | 458,850,201 | false | {"Kotlin": 14885} | package com.example.epayapplication.api
import com.example.epayapplication.models.images.FlickrResponse
import retrofit2.http.GET
import retrofit2.http.Query
interface ApiInterface {
companion object {
const val BASE_URL = "https://api.flickr.com/"
const val API_KEY = "<KEY>"
}
@GET("se... | 0 | Kotlin | 0 | 0 | eb9a14ffb41f0fe3e3f7b5990bdd02d226745e4c | 653 | ImageSearchApp | Apache License 2.0 |
ambassador-gitlab-client/src/main/kotlin/com/roche/gitlab/api/project/mergerequests/MergeStatus.kt | filipowm | 409,076,487 | false | null | package com.roche.gitlab.api.project.mergerequests
enum class MergeStatus {
CANNOT_BE_MERGED,
CAN_BE_MERGED,
UNCHECKED,
CANNOT_BE_MERGED_RECHECK
}
| 12 | Kotlin | 0 | 9 | 87b3db67dea1a19df1011337babb42b068d21171 | 165 | the-ambassador | Apache License 2.0 |
src/main/kotlin/io/github/nickacpt/lightcraft/gradle/providers/mappings/MissingNamespacePropagator.kt | OrionCraftMC | 398,684,237 | false | null | package io.github.nickacpt.lightcraft.gradle.providers.mappings
import net.fabricmc.mappingio.MappingVisitor
import net.fabricmc.mappingio.adapter.ForwardingMappingVisitor
import net.fabricmc.mappingio.tree.MappingTree
import net.fabricmc.mappingio.tree.MappingTree.ElementMapping
class MissingNamespacePropagator(
... | 1 | null | 1 | 1 | b7150bb15bb324db8c80d935998de130b235ae52 | 2,002 | LightClientGradle | MIT License |
promise/src/test/kotlin/io/kommons/designpatterns/promise/PromiseTest.kt | debop | 235,066,649 | false | null | package io.kommons.designpatterns.promise
import io.kommons.logging.KLogging
import io.mockk.mockk
import io.mockk.verify
import org.amshove.kluent.shouldBeFalse
import org.amshove.kluent.shouldBeTrue
import org.amshove.kluent.shouldEqual
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.Test
import... | 0 | Kotlin | 11 | 53 | c00bcc0542985bbcfc4652d0045f31e5c1304a70 | 6,816 | kotlin-design-patterns | Apache License 2.0 |
core/src/jvmTest/kotlin/SetExample.kt | tuProlog | 230,784,338 | false | null | import it.unibo.tuprolog.core.Atom
import it.unibo.tuprolog.core.Block
import it.unibo.tuprolog.core.Numeric
import it.unibo.tuprolog.core.Tuple
import it.unibo.tuprolog.core.Var
fun main() {
val s = Block.of(Atom.of("first"), Numeric.of(2), Var.of("Third"))
println(s)
println(s[0])
println(s[0] is Tu... | 92 | null | 14 | 93 | 3223ffc302e5da0efe2b254045fa1b6a1a122519 | 660 | 2p-kt | Apache License 2.0 |
src/main/kotlin/com/elp/execution/FileReplacementInjection.kt | Paulpanther | 608,780,854 | false | null | package com.paulmethfessel.elp.execution
import com.paulmethfessel.elp.model.Example
import com.paulmethfessel.elp.util.structs
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFile
import com.jetbrains.cidr.lang.psi.OCStruct
object FileReplacementInjection {
fun run(example: Example, files: List<Psi... | 0 | Kotlin | 0 | 0 | d908d4f4bbcf0d0bd0b6e96e44860864cd0eaff0 | 2,314 | muse-embedded-live-programming | MIT License |
core/network/src/main/java/com/awesomejim/weatherforecast/core/network/NetworkHelper.kt | AwesomeJim | 694,998,079 | false | {"Kotlin": 259033, "Ruby": 1740} | package com.awesomejim.weatherforecast.core.network
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import dagger.hilt.android.qualifiers.ApplicationContext
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class NetworkHelper @Inject cons... | 0 | Kotlin | 0 | 2 | f7b28f8fcf76e78bf6fa8354f86ddef2659c9fdc | 1,194 | weather-forecast | Apache License 2.0 |
sdk/shared/shared-public/src/commonMain/kotlin/com/twilio/util/ErrorInfo.kt | twilio | 790,341,870 | false | {"Kotlin": 1150573, "Swift": 178357, "Python": 44263, "Java": 35577, "TypeScript": 26195, "Shell": 21097, "Rust": 5989, "Ruby": 4047, "Makefile": 1384, "Just": 734, "HTML": 533, "Objective-C": 462, "CSS": 331} | //
// Twilio Utils
//
// Copyright © Twilio, Inc. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
package com.twilio.util
import com.twilio.util.ErrorReason.Unknown
import kotlinx.serialization.Serializable
import kotlin.jvm.JvmStatic
/**
* Representation of an Error object.
*
* This object encapsu... | 0 | Kotlin | 1 | 4 | ac345352614263f7559cba66362bfe008155a3b0 | 6,154 | twilio-sync-sdk | Apache License 2.0 |
app/src/main/java/com/fanrong/frwallet/wallet/eth/eth/GetTransactionRecord.kt | iamprivatewallet | 464,003,911 | false | {"JavaScript": 2822760, "Kotlin": 1140535, "Java": 953177, "HTML": 17003} | package com.fanrong.frwallet.wallet.eth.eth
class GetTransactionRecordReq {
var address: String?=null
var apikey: String?=null
var contractAddress: String?=null
var page: String?=null
var offset: String="20"
var type: String?=null
}
class GetTransactionRecordResp {
private var isok: Boole... | 0 | JavaScript | 0 | 1 | be8003e419afbe0429f2eb3fd757866e2e4b9152 | 2,239 | PrivateWallet.Android | MIT License |
RecipesApp/app/src/main/java/com/example/recipesapp/view/main_activity/account/AccountFragment.kt | KamilDonda | 372,462,294 | false | null | package com.example.recipesapp.view.main_activity.account
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.observe
import androidx.navigation.fra... | 0 | Kotlin | 0 | 0 | dd3ea265397603014b89adb2cc45a28e270a8044 | 2,207 | RecipesApp | MIT License |
app/src/main/java/com/kyberswap/android/presentation/main/profile/alert/GetLeaderBoardState.kt | KYRDTeam | 181,612,742 | false | null | package com.kyberswap.android.presentation.main.profile.alert
import com.kyberswap.android.domain.model.Alert
import com.kyberswap.android.domain.model.CampaignInfo
sealed class GetLeaderBoardState {
object Loading : GetLeaderBoardState()
class ShowError(val message: String?) : GetLeaderBoardState()
class... | 1 | Kotlin | 10 | 26 | abd4ab033d188918849e5224cc8204409776391b | 473 | android-app | MIT License |
video-sdk/src/main/java/com/kaleyra/video_sdk/common/usermessages/model/AudioConnectionFailureMessage.kt | KaleyraVideo | 686,975,102 | false | {"Kotlin": 3462882, "Shell": 7470, "Python": 6756, "Java": 1213} | /*
* Copyright 2023 Kaleyra @ https://www.kaleyra.com
*
* 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 applic... | 1 | Kotlin | 0 | 1 | 7f916f3eb2ae9157c35125711625a43f3223fd00 | 1,191 | VideoAndroidSDK | Apache License 2.0 |
app/src/main/java/com/sundev207/expenses/data/room/converter/CurrencyConverter.kt | sundev207 | 392,234,817 | false | null | package com.sundev207.expenses.data.room.converter
import androidx.room.TypeConverter
import com.sundev207.expenses.data.model.Currency
class CurrencyConverter {
companion object {
@JvmStatic
@TypeConverter
fun toCurrency(string: String) = Currency.fromCode(string)
@JvmStatic
... | 0 | Kotlin | 0 | 0 | 22bcdd7ebfed44fc012b6994a2190a72ce0f36d7 | 411 | budget-tracking-app | Apache License 2.0 |
app/src/main/java/com/estzhe/timer/Timer.kt | estzhe | 262,787,954 | false | null | package com.estzhe.timer
import java.time.Duration
import java.time.Instant
class Timer {
val targetTime: Instant
get() {
check(isRunning) { "This property can only be accessed if timer is running." }
return runningTargetTime!!
}
val timeLeft: Duration
get() = ... | 3 | Kotlin | 0 | 0 | 5a8f1a61289652ad245482a14f961f57644732cf | 1,419 | visual-timer-wear-os | MIT License |
app/src/main/java/com/example/sharingang/viewmodels/UserProfileViewModel.kt | Sharingang | 344,538,791 | false | null | package com.example.sharingang.viewmodels
import androidx.lifecycle.*
import com.example.sharingang.auth.CurrentUserProvider
import com.example.sharingang.database.repositories.ItemRepository
import com.example.sharingang.database.repositories.UserRepository
import com.example.sharingang.models.Item
import com.example... | 12 | Kotlin | 0 | 0 | 32f29e4b9ac5bc8952a8a544e65dae4d50d9f50a | 7,262 | Sharingang-Android | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/appstream/CfnStackPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.appstream
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.appstream.CfnStackProps
@Generated
public fun buildCfnStackProps(initializer: @AwsCdkDsl CfnStackProps.Builder.() -> Unit):
... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 387 | aws-cdk-kt | Apache License 2.0 |
app/src/androidTest/java/org/firezenk/foodieapp/config/DexOpenerAndroidJUnitRunner.kt | FireZenk | 132,938,078 | false | null | package org.firezenk.foodieapp.config
import android.app.Application
import android.content.Context
import android.support.test.runner.AndroidJUnitRunner
import com.github.tmurakami.dexopener.DexOpener
class DexOpenerAndroidJUnitRunner : AndroidJUnitRunner() {
override fun newApplication(cl: ClassLoader, classNa... | 0 | Kotlin | 0 | 0 | 456adb63fbc77a5cf420c77d35059eb7d2b7f806 | 629 | foodieapp | The Unlicense |
idea/tests/testData/script/definition/completion/conflictingModuleCustomDef/mainModule/template/template.kt | JetBrains | 278,369,660 | false | null | package custom.scriptDefinition
import kotlin.script.experimental.annotations.KotlinScript
import kotlin.script.experimental.api.*
@KotlinScript(
displayName = "Definition for tests",
fileExtension = "kts",
compilationConfiguration = TemplateDefinition::class
)
open class Template(val args: Array<String>)... | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 560 | intellij-kotlin | Apache License 2.0 |
demo/src/main/kotlin/balls2d/demo/DemoFrame.kt | knokko | 835,926,937 | false | {"Kotlin": 288767} | package balls2d.demo
import com.github.knokko.profiler.SampleProfiler
import com.github.knokko.profiler.storage.FrequencyThreadStorage
import com.github.knokko.profiler.storage.SampleStorage
import com.github.knokko.update.UpdateCounter
import com.github.knokko.update.UpdateLoop
import fixie.*
import balls2d.geometry.... | 0 | Kotlin | 0 | 0 | f193e50f0a384a2d792d7bcb195aa5d1ca183fb9 | 11,829 | balls2d | MIT License |
csstype-kotlin/src/jsMain/kotlin/web/cssom/Length.operators.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6272741} | // Automatically generated - do not modify!
@file:Suppress(
"NOTHING_TO_INLINE",
)
package csstype
inline operator fun Length.unaryMinus(): Length =
"-$this".unsafeCast<Length>()
inline operator fun Length.plus(other: Length): Length =
"calc($this + $other)".unsafeCast<Length>()
inline operator fun Len... | 0 | Kotlin | 8 | 36 | 95b065622a9445caf058ad2581f4c91f9e2b0d91 | 615 | types-kotlin | Apache License 2.0 |
app/src/main/java/com/spaceapp/presentation/login/components/EmailPasswordSection.kt | AhmetOcak | 552,274,999 | false | {"Kotlin": 365290} | package com.spaceapp.presentation.login.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.input.KeyboardType
import androidx.compose.ui.unit.d... | 0 | Kotlin | 1 | 2 | f8a8c6d90874fc70566cdbd310231b5ec41baad3 | 1,422 | Explore-Universe | MIT License |
app/src/main/java/com/quixom/apps/weatherstream/webservice/APIError.kt | QuixomTech | 109,935,754 | false | null | package com.quixom.apps.weatherstream.webservice
import com.quixom.apps.weatherstream.MainActivity
/**
* Created by akif on 11/10/17.
*/
class APIError {
private var message = ""
private var status_code: Int = 0
fun message(): String {
return message
}
fun setMessage(message: String... | 0 | null | 2 | 59 | 19b2d811b346e138c2cffb4b485edd6cc573fb32 | 711 | WeatherStream | Apache License 2.0 |
data/src/main/java/com/ravnnerdery/data/database/DatabaseDao.kt | hunter4466 | 459,212,215 | false | {"Kotlin": 50396} | package com.ravnnerdery.data.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.ravnnerdery.data.database.models.MarsPhotoEntity
@Dao
interface DatabaseDao {
@Insert(onConflict = OnConflictStrategy.IGNORE)
fun insertPhot... | 0 | Kotlin | 0 | 0 | 286bdb7b6d771f283038444735545383f42666c6 | 721 | nasa_challenge | MIT License |
buildSrc/src/main/java/plugin/BuildSettingHelperPlugin.kt | adnanali282 | 142,970,928 | true | {"Kotlin": 90573} | package plugin
import dependencies.Versions
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByName
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension
import org.gradle.testing.jacoco.tasks.JacocoReport
class BuildSettingHelperPlugin : Plugin<Project> {
overr... | 0 | Kotlin | 0 | 0 | f13e46c879e61e35c1ec075c0a3caf8dd092af08 | 1,943 | Kotpref | Apache License 2.0 |
app/src/androidTest/java/org/codepond/imdemo/chat/ChatRobot.kt | Nimrodda | 101,858,616 | false | null | /*
* Copyright 2017 <NAME> CodePond.org
*
* 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 ag... | 1 | Kotlin | 11 | 24 | 4528780eb423dceb482d9cdf6a31b3fc19a00c54 | 2,833 | MaNishMa | Apache License 2.0 |
android/app/src/main/java/com/fabirt/flutter_foreground_service/AlarmActivity.kt | fabirt | 271,992,798 | false | null | package com.fabirt.flutter_foreground_service
import android.media.MediaPlayer
import android.media.RingtoneManager
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class AlarmActivity : AppCompatActivity() {
private lateinit var alert: Uri
private lateinit var ... | 0 | Kotlin | 1 | 1 | 053b20340ca2d77d4173d0de964ee23e83964763 | 738 | flutter-foreground-service | MIT License |
kroto-fuel/src/main/kotlin/kr/jadekim/kroto/http/fuel/FuelClient.kt | jdekim43 | 308,254,499 | false | null | package kr.jadekim.kroto.http.fuel
import com.github.kittinunf.fuel.core.*
import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.json.contentOrNull
import kotlinx.serialization.json.jsonObject
import kotlinx.serialization.json.jsonPrimitive
import kr.jadekim.kroto.http.HttpEndPoint
import k... | 0 | Kotlin | 0 | 0 | dda2139216f15ccb4d218e0e1dc61e8d467ea2fc | 2,685 | kroto | MIT License |
app/src/main/java/com/example/musicevents/ui/screens/profile/ProfileViewModel.kt | alessandro-ricci6 | 790,644,239 | false | {"Kotlin": 73237} | package com.example.musicevents.ui.screens.profile
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.musicevents.data.database.Event
import com.example.musicevents.data.database.User
import com.example.musicevents.data.repositories.EventsRepositories
import com.example.mus... | 0 | Kotlin | 0 | 0 | 7296f8726f47ada1ba16efdbb4d023a63b63a013 | 1,103 | MusicEvents | MIT License |
src/main/kotlin/no/nav/familie/ks/sak/integrasjon/journalføring/domene/JournalføringRepository.kt | navikt | 533,308,075 | false | {"Kotlin": 2530443, "Shell": 753, "Dockerfile": 141} | package no.nav.familie.ks.sak.integrasjon.journalføring.domene
import org.springframework.data.jpa.repository.JpaRepository
interface JournalføringRepository : JpaRepository<DbJournalpost, Long>
| 3 | Kotlin | 0 | 2 | 05135577aa5bfbf2185262d3f953f2285dbee43f | 197 | familie-ks-sak | MIT License |
domain/src/main/java/smash/ks/com/domain/BaseUseCase.kt | SmashKs | 123,613,960 | false | null | /*
* Copyright (C) 2018 The Smash Ks Open 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 applicab... | 1 | null | 2 | 5 | ffb9915c300dd3b1d061660bce292d5011ceed79 | 3,367 | OneShoot | Apache License 2.0 |
GithubBrowserSample/app/src/main/java/com/android/example/github/test/clazz/RectangleProperties.kt | AXwjg | 167,145,806 | false | null | package com.android.example.github.test.clazz
/**
* @author oldwang
* @date 2019/1/17
* Description:
*/
interface RectangleProperties {
val isShape: Boolean
} | 0 | Kotlin | 0 | 0 | e198c9dcfa59e827d5fbd496143165e9388f2d98 | 168 | GithubBrowserSample | Apache License 2.0 |
android-chat-app/app/src/main/java/org/kagami/roommate/chat/domain/model/user/Title.kt | k-arabadzhiev | 515,181,907 | false | {"Kotlin": 309983} | package org.kagami.roommate.chat.domain.model.user
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import kotlinx.serialization.Serializable
@Parcelize
@Serializable
data class Company(
val visible: Boolean,
val name: String
): Parcelable | 0 | Kotlin | 0 | 0 | e69e22d6aabffb3b4afe54cf9ef6a92007d5beb5 | 264 | Roommates | MIT License |
android-chat-app/app/src/main/java/org/kagami/roommate/chat/domain/model/user/Title.kt | k-arabadzhiev | 515,181,907 | false | {"Kotlin": 309983} | package org.kagami.roommate.chat.domain.model.user
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import kotlinx.serialization.Serializable
@Parcelize
@Serializable
data class Company(
val visible: Boolean,
val name: String
): Parcelable | 0 | Kotlin | 0 | 0 | e69e22d6aabffb3b4afe54cf9ef6a92007d5beb5 | 264 | Roommates | MIT License |
src/main/kotlin/com/stratix/demo/controllers/Health.kt | ReedNewman | 185,876,789 | false | null | package com.stratix.demo.controllers
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController
data class HealthMessage(val message: String, val status: Int)
@RestController
@RequestMapping(... | 1 | Kotlin | 0 | 1 | 5f79ec35fba8a44680b709646a89f480cbbe9ade | 505 | stratix-demo | MIT License |
src/main/kotlin/org/ojacquemart/eurobets/firebase/management/match/OnPlayingMatchChangeListener.kt | ojacquemart | 58,000,277 | false | null | package org.ojacquemart.eurobets.firebase.management.match
import com.firebase.client.ChildEventListener
import com.firebase.client.DataSnapshot
import com.firebase.client.FirebaseError
import org.ojacquemart.eurobets.firebase.Collections
import org.ojacquemart.eurobets.firebase.config.FirebaseRef
import org.ojacquema... | 0 | Kotlin | 1 | 1 | 1b5a2bc9568cac6921680369862c04b9617a9438 | 3,544 | spring-kotlin-euro-bets | The Unlicense |
app/src/main/java/com/febers/uestc_bbs/module/search/model/SearchModelImpl.kt | coderoven | 210,988,554 | true | {"Kotlin": 599996, "Java": 205268, "HTML": 4948, "IDL": 746} | package com.febers.uestc_bbs.module.search.model
import com.febers.uestc_bbs.base.*
import com.febers.uestc_bbs.entity.SearchPostBean
import com.febers.uestc_bbs.entity.SearchUserBean
import com.febers.uestc_bbs.module.search.contract.SearchContract
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Resp... | 0 | null | 0 | 0 | f9acde6c46ef3b06b088c86a695ddda6e9983970 | 3,520 | UESTC_BBS | Apache License 2.0 |
githubtrending/src/main/java/io/github/caoshen/androidadvance/githubtrending/data/repository/IRepository.kt | caoshen | 290,115,293 | false | {"Kotlin": 259354, "Java": 87268, "C++": 8150, "Groovy": 7542, "C": 4543, "CMake": 1798, "AIDL": 872, "Makefile": 693, "Shell": 658} | package io.github.caoshen.androidadvance.githubtrending.data.repository
import io.github.caoshen.androidadvance.githubtrending.data.entity.RepoList
import io.github.caoshen.androidadvance.githubtrending.data.entity.ResultX
interface IRepository {
suspend fun getRepoList(): ResultX<RepoList>
} | 0 | Kotlin | 0 | 2 | ffbab9c08d2446b24d45282489f218580eb7ecfa | 299 | AndroidAdvance | MIT License |
app/src/main/java/hu/bme/aut/android/eyetool/AnnotationCard.kt | bazsimarkus | 251,065,585 | false | null | package hu.bme.aut.android.eyetool
import android.content.Intent
import android.graphics.Color
import android.net.Uri
import android.os.Build
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.MotionEvent
import android.view.View
import android.view.WindowManager
import kotlin... | 1 | Kotlin | 0 | 1 | 43c4cc430749f65a6747e45b74d2fb482c62222e | 3,032 | EyeTool | MIT License |
core/src/main/kotlin/org/luakt/parse/ConstantFolder.kt | Xie-Jason | 767,601,160 | false | {"Kotlin": 210048, "Java": 70153, "Lua": 26155} | package org.luakt.parse
import org.luakt.syntax.*
import org.luakt.syntax.UniOpType.*
object ConstantFolder {
fun foldUnaryOp(unaryOp : UnaryOp) : Expression? {
return when(unaryOp.op){
Neg -> when(val inner = unaryOp.inner){
is LiteralInt -> LiteralInt(- inner.int)
... | 0 | Kotlin | 0 | 0 | 0648927266be58e5e3c9c4325bd8f6a728c5f70e | 762 | LuaKt | MIT License |
hmpps-prisoner-search-indexer/src/main/kotlin/uk/gov/justice/digital/hmpps/prisonersearch/indexer/services/dto/nomis/ProfileInformation.kt | ministryofjustice | 636,804,116 | false | null | package uk.gov.justice.digital.hmpps.prisonersearch.indexer.services.dto.nomis
data class ProfileInformation(
val type: String,
val question: String,
val resultValue: String,
)
| 1 | Kotlin | 1 | 2 | 2ac87f7349d61e3d274bcb20b11be285c5a50700 | 184 | hmpps-prisoner-search | MIT License |
src/main/kotlin/com/tuk/oriddle/domain/quiz/entity/Quiz.kt | Team-Oriddle | 731,663,342 | false | {"Kotlin": 5865} | package com.tuk.oriddle.domain.quiz.entity
import com.tuk.oriddle.domain.user.entity.User
import com.tuk.oriddle.global.entity.BaseEntity
import jakarta.persistence.*
@Entity
class Quiz(
title: String,
description: String,
image: String,
maker: User
) : BaseEntity() {
@Column(nullable = false, len... | 3 | Kotlin | 0 | 0 | b2e9bb443d24e30ac33c72ec856b672c1d55836e | 725 | oriddle-backend | MIT License |
core/src/main/kotlin/com/github/wumo/vkg/graphics/model/Texture.kt | wumo | 271,515,027 | false | null | package com.github.wumo.vkg.graphics.model
import com.github.wumo.vkg.graphics.Scene
enum class TextureFormat(val value: Int) {
R8Unorm(0),
R16Sfloat(1),
R32Sfloat(2),
R8G8B8A8Unorm(3),
R16G16B16A16Sfloat(4),
R32G32B32A32Sfloat(5)
}
class Texture(val scene: Scene, val id: Int) {
} | 0 | Kotlin | 0 | 2 | c18e27ca9d866aeaca75c8e709cbbdc83628a4e2 | 296 | vkgKt | MIT License |
example/src/main/java/com/vmloft/develop/library/example/ui/info/InfoBehaviorActivity.kt | ipy2020 | 380,405,961 | true | {"Kotlin": 410102, "Java": 43913, "HTML": 2490} | package com.vmloft.develop.library.example.ui.info
import android.graphics.Color
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import com.alibaba.android.arouter.facade.annotation.Route
import com.vmloft.develop.library.example.R
import com.vmloft.develop.library.example.base.BaseAc... | 0 | null | 0 | 0 | d19692043db42b06af3559bde287686dcc4a0ce3 | 2,419 | VMLibrary | Apache License 2.0 |
core/src/main/java/com/chooongg/form/data/IFormGroupCreator.kt | Chooongg | 706,083,573 | false | null | package com.chooongg.form.data
import androidx.annotation.IntRange
import com.chooongg.form.item.BaseForm
import com.chooongg.form.item.VariantChildGroup
import com.chooongg.form.item.VariantDynamicColumn
import com.chooongg.form.item.VariantFixedColumn
import com.chooongg.form.item.VariantSingleLine
interface IFormG... | 0 | null | 0 | 1 | 92e4d381de8a4e89fe425cbd0c9201f88736a064 | 1,098 | FormAdapter | Apache License 2.0 |
bundles/github.com/korlibs/korge-bundles/7439e5c7de7442f2cd33a1944846d44aea31af0a/korau-opus/src/commonMain/kotlin/com/soywiz/korau/format/org/gragravarr/speex/SpeexFile.kt | jfbilodeau | 402,501,246 | false | null | /*
* 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 writing, software
* distribut... | 0 | Kotlin | 1 | 2 | 306f034be2d9832743c3fb0acfbfd46b53c7f01f | 5,460 | BeyondBeachball | Apache License 2.0 |
app/src/main/java/com/hms/explorelandmarks/ui/landmark_recognition/LandmarkRecognitionFragment.kt | Explore-In-HMS | 465,621,608 | false | null | /*
* Copyright 2022. Explore in HMS. 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 required by applic... | 0 | Kotlin | 8 | 38 | e1efc09e8fc3d9e8a96603ed6a8baf821a3fcef5 | 10,675 | Explore-Landmarks | Apache License 2.0 |
pensjon-brevbaker/src/main/kotlin/no/nav/pensjon/brev/maler/adhoc/AdhocFeilEtteroppgjoer2023.kt | navikt | 375,334,697 | false | {"Kotlin": 3528442, "TypeScript": 519873, "TeX": 12813, "Shell": 9251, "CSS": 8104, "Python": 4661, "JavaScript": 4382, "Dockerfile": 2406, "HTML": 1053} | package no.nav.pensjon.brev.maler.adhoc
import no.nav.pensjon.brev.api.model.maler.Brevkode
import no.nav.pensjon.brev.api.model.maler.EmptyBrevdata
import no.nav.pensjon.brev.template.AutobrevTemplate
import no.nav.pensjon.brev.template.Language.*
import no.nav.pensjon.brev.template.LetterTemplate
import no.nav.pensj... | 6 | Kotlin | 2 | 1 | c029a37a0fa3cb89904e299d516451cd2c0ad3d4 | 2,185 | pensjonsbrev | MIT License |
plot-builder-portable/src/commonMain/kotlin/jetbrains/datalore/plot/builder/assemble/geom/DefaultAesAutoMapper.kt | b7w | 229,423,563 | true | {"Kotlin": 4342986, "Python": 257583, "CSS": 1842, "C": 1638, "Shell": 1590, "JavaScript": 1584} | /*
* Copyright (c) 2019. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.builder.assemble.geom
import jetbrains.datalore.base.gcommon.collect.Iterables
import jetbrains.datalore.plot.base.Aes
import jetbrains.datalo... | 0 | null | 0 | 0 | 811327d17d6af2669d22355ee031eaa2cf5da7bc | 4,451 | lets-plot | MIT License |
ui-lib-common/src/main/kotlin/com/purewowstudio/bodystats/ui/common/components/cards/ColourCard.kt | phillwiggins | 497,633,079 | false | {"Kotlin": 263828, "Shell": 443} | package com.purewowstudio.bodystats.ui.common.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.ElevatedCard
import androidx.compose.mat... | 0 | Kotlin | 1 | 8 | 41a56fb6a7f4fade0806b8fda3cf20a8f6b5a306 | 2,204 | bodystats | Apache License 2.0 |
application/account/src/main/kotlin/financial/accounting/account/driver/kafka/TransactionRegisteredMapper.kt | gustavofreze | 414,017,610 | false | {"Kotlin": 104127, "Makefile": 1058, "Shell": 638, "Dockerfile": 512} | package financial.accounting.account.driver.kafka
import financial.accounting.account.driver.policies.events.TransactionRegistered
import financial.shared.log.Logger
import financial.shared.mapper.JsonMapper
import financial.shared.streams.kafka.stream.KafkaEventMapper
import org.apache.avro.generic.GenericRecord
cla... | 0 | Kotlin | 3 | 70 | c21ec989470a9b4c4b367a85923d4285d53320e7 | 1,000 | financial | MIT License |
app/src/main/java/ru/aleshi/letsplaycities/remote/RemoteServer.kt | AlexanderShirokih | 195,569,812 | false | null | package ru.aleshi.letsplaycities.remote
import io.reactivex.Completable
import io.reactivex.Observable
import io.reactivex.subjects.ReplaySubject
import ru.aleshi.letsplaycities.base.player.User
import ru.aleshi.letsplaycities.base.player.UserIdIdentity
import ru.aleshi.letsplaycities.base.server.BaseServer
import ru.... | 0 | Kotlin | 0 | 1 | 19a3153b804b0aceafc94ef764193ad2d1a551bf | 3,925 | letsplaycities2_android | MIT License |
library_base/src/main/java/com/knight/kotlin/library_base/util/StatusBarUtils.kt | KnightAndroid | 438,567,015 | false | {"Kotlin": 1817006, "Java": 294277, "HTML": 46741, "C": 31605, "C++": 14920, "CMake": 5510} | package com.knight.kotlin.library_base.util
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.graphics.Color
import android.os.Build
import android.view.View
import android.view.WindowInsetsController
import android.view.WindowManager
/**
* Author:Knigh... | 0 | Kotlin | 3 | 6 | d423c9cf863afe8e290c183b250950bf155d1f84 | 5,707 | wanandroidByKotlin | Apache License 2.0 |
src/main/kotlin/com/graphql/example/interfaces/IPokemon.kt | AA25 | 342,862,269 | false | {"Kotlin": 22379, "HTML": 1724, "Dockerfile": 1124} | package com.graphql.example.interfaces
import com.graphql.example.enums.PokemonType
// Expected pokemon properties
interface IPokemon {
val name: String
val id: Int
val type: List<PokemonType>
val height: Int
val weight: Int
val games: List<Int>
val relatedPokemonByType: List<PokemonType>
... | 0 | Kotlin | 0 | 0 | ea4688df7615787d1acfdd509832fb4d1844efb0 | 406 | GraphQL-API | MIT License |
backend/Vertx3-Kotlin/src/main/java/com/weweb/AppMain.kt | ufoscout | 126,780,517 | false | {"YAML": 2, "Shell": 9, "Text": 2, "Ignore List": 8, "Markdown": 6, "JSON with Comments": 3, "JSON": 10, "Dockerfile": 5, "EditorConfig": 1, "JavaScript": 4, "Browserslist": 1, "HTML": 11, "SCSS": 2, "CSS": 5, "TOML": 9, "Rust": 9, "SVG": 1, "Maven POM": 2, "Kotlin": 23, "INI": 3, "XML": 1, "Go": 25, "Go Checksums": 1,... | package com.weweb
import com.ufoscout.properlty.Properlty
import com.ufoscout.properlty.reader.EnvironmentVariablesReader
import com.ufoscout.properlty.reader.SystemPropertiesReader
import com.ufoscout.properlty.reader.decorator.ToLowerCaseAndDotKeyReader
import com.ufoscout.vertk.kodein.VertkKodein
import com.ufoscou... | 9 | TypeScript | 0 | 0 | 80af889f567c8e9ce936919393f01c5df2be88bc | 2,444 | WeWeb | MIT License |
src/main/kotlin/no/nav/tms/varseltekst/monitor/varsel/varselQuery.kt | navikt | 552,751,202 | false | null | package no.nav.tms.varseltekst.monitor.varsel
import no.nav.tms.varseltekst.monitor.coalesce.TekstTable
import no.nav.tms.varseltekst.monitor.coalesce.TekstTable.*
import no.nav.tms.varseltekst.monitor.util.LocalDateTimeHelper
import java.sql.Connection
import java.sql.PreparedStatement
import java.sql.Types
private ... | 1 | Kotlin | 0 | 0 | 458d54f2f025b40ef3856967ac6ef1cc8563bcc1 | 3,186 | tms-varseltekst-monitor | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.