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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
feature/account/oauth/src/debug/kotlin/app/k9mail/feature/account/oauth/ui/view/SignInWithGoogleButtonPreview.kt | thunderbird | 1,326,671 | false | null | package app.k9mail.feature.account.oauth.ui.view
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import app.k9mail.core.ui.compose.designsystem.PreviewWithThemes
@Composable
@Preview(showBackground = true)
internal fun SignInWithGoogleButtonPreview() {
PreviewWithThem... | 846 | null | 2467 | 9,969 | 8b3932098cfa53372d8a8ae364bd8623822bd74c | 630 | thunderbird-android | Apache License 2.0 |
promisemodel/src/main/java/promise/promisemodel/repo/OnSetupListener.kt | android-promise | 201,902,745 | false | {"Java": 1690133, "Kotlin": 50156} | package promise.promisemodel.repo
/**
*
*
*/
interface OnSetupListener {
/**
*
*
* @param args
*/
fun onPrepArgs(args: MutableMap<String, Any?>?)
} | 1 | Java | 1 | 1 | 462b877b71fe1bbe05fbacb94b2282deeb983064 | 167 | promise | Apache License 2.0 |
app/src/main/java/com/msu/msuconnect/CampusEvent.kt | CS3250Team1 | 147,272,909 | false | null | package com.msu.msuconnect
import com.google.android.gms.maps.model.LatLng
import java.util.*
class CampusEvent{
private var mEventTitle : String
private var mEventID : Int
private var mEventLocation : String
private var mEventLatLng : LatLng? = null
private var mEventDate : Date? = null
fun ... | 1 | null | 3 | 2 | 9247e4dd2d78f96f1493c1e7da3c57aa6ffd01b6 | 945 | MSUConnect | MIT License |
chargebee/src/main/java/com/chargebee/android/models/PurchaseTransaction.kt | chargebee | 279,238,499 | false | {"Kotlin": 238438, "Java": 23373, "Shell": 1817} | package com.chargebee.android.models
data class PurchaseTransaction(
val productId: List<String>,
val purchaseTime: Long,
val purchaseToken: String,
val productType: String
)
| 8 | Kotlin | 7 | 8 | ba3d15dc9e6d19b91a78753d851ff1e1946b2ffc | 192 | chargebee-android | MIT License |
app/src/main/java/com/ingsw/database/AppDatabase.kt | prushh | 257,636,743 | false | null | package com.ingsw.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
// Definisco il Database con i vari parametri
@Database(entities = [Wifi::class], exportSchema = false, version = 1)
abstract class AppDatabase : RoomDatabase() {
//... | 0 | Kotlin | 0 | 1 | 23d68b4380b954f5cc7ae6930910308cebbe1ae2 | 1,164 | WifiMap | MIT License |
app/src/main/java/com/ingsw/database/AppDatabase.kt | prushh | 257,636,743 | false | null | package com.ingsw.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
// Definisco il Database con i vari parametri
@Database(entities = [Wifi::class], exportSchema = false, version = 1)
abstract class AppDatabase : RoomDatabase() {
//... | 0 | Kotlin | 0 | 1 | 23d68b4380b954f5cc7ae6930910308cebbe1ae2 | 1,164 | WifiMap | MIT License |
app/shared/availability/impl/src/commonTest/kotlin/build/wallet/availability/InternetNetworkReachabilityServiceMock.kt | proto-at-block | 761,306,853 | false | {"C": 10424094, "Kotlin": 7156393, "Rust": 2046237, "Swift": 700307, "Python": 331492, "HCL": 271992, "Shell": 111209, "TypeScript": 102700, "C++": 64770, "Meson": 64234, "JavaScript": 36227, "Just": 28071, "Ruby": 9428, "Dockerfile": 5731, "Makefile": 3839, "Open Policy Agent": 1552, "Procfile": 80} | package build.wallet.availability
import app.cash.turbine.Turbine
import build.wallet.ktor.result.HttpError
import com.github.michaelbull.result.Ok
import com.github.michaelbull.result.Result
class InternetNetworkReachabilityServiceMock(
turbine: (String) -> Turbine<Any>,
) : InternetNetworkReachabilityService {
... | 0 | C | 10 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 658 | bitkey | MIT License |
lib/src/main/java/co/nimblehq/alpine/lib/model/MrzInfo.kt | nimblehq | 513,068,375 | false | {"Kotlin": 45326} | package co.nimblehq.alpine.lib.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class MrzInfo(
val documentNumber: String,
val dateOfBirth: String,
val dateOfExpiry: String
) : Parcelable {
companion object {
fun createFrom(
documentNumber: Str... | 7 | Kotlin | 1 | 2 | ba75c87eb75eff4570b98389e59bec98957ad17e | 891 | alpine | MIT License |
Tutorial6-5NavigationUI-ViewPager2-FragmentToolbar-MixedNavigation/src/main/java/com/smarttoolfactory/tutorial6_5navigationui_viewpager2_fragmenttoolbar_mixednavigation/blankfragment/LoginFragment2.kt | SmartToolFactory | 203,872,063 | false | {"Kotlin": 816548, "Java": 2168} | package com.smarttoolfactory.tutorial6_5navigationui_viewpager2_fragmenttoolbar_mixednavigation.blankfragment
import com.smarttoolfactory.tutorial6_5navigationui_viewpager2_fragmenttoolbar_mixednavigation.R
import com.smarttoolfactory.tutorial6_5navigationui_viewpager2_fragmenttoolbar_mixednavigation.databinding.Frag... | 3 | Kotlin | 84 | 376 | 67344625a8a4a48b134d35e47a2203037de9890e | 480 | NavigationComponents-Tutorials | MIT License |
server/zally-ruleset-zalando/src/main/kotlin/org/zalando/zally/ruleset/zalando/VersionInUriRule.kt | regangunther-linz | 638,751,262 | false | null | package org.zalando.zally.ruleset.zalando
import org.zalando.zally.rule.api.Check
import org.zalando.zally.rule.api.Context
import org.zalando.zally.rule.api.Severity
import org.zalando.zally.rule.api.Violation
import io.swagger.v3.oas.models.OpenAPI
import io.swagger.v3.oas.models.PathItem
import io.swagger.v3.oas.mo... | 0 | Kotlin | 0 | 0 | 2bd349c83cc8802f2fe188fbacb41c34b078c1b9 | 1,321 | landonline-openapi-linter-lilly | MIT License |
src/test/kotlin/no/nav/sosialhjelp/innsyn/saksoversikt/SaksOversiktControllerTest.kt | navikt | 184,267,271 | false | {"Kotlin": 771535, "Dockerfile": 427} | package no.nav.sosialhjelp.innsyn.saksoversikt
import io.mockk.Called
import io.mockk.Runs
import io.mockk.clearAllMocks
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.verify
import no.nav.sosialhjelp.api.fiks.DigisosSak
import no.nav.sosialhjelp.api.fiks.exceptions.FiksException
impo... | 5 | Kotlin | 0 | 0 | edc60eb3e4eedc9164769d9f80a84e3fe9047ab1 | 7,730 | sosialhjelp-innsyn-api | MIT License |
ShareFilesText/sharing/src/main/java/com/sharing/composer/ImageMimeType.kt | hiteshsarsava | 590,772,375 | false | null | package com.sharing.composer
internal enum class ImageMimeType(val mimeType: String) {
JPEG("image/jpeg"), PNG("image/png"), GIF("image/gif");
} | 0 | Kotlin | 0 | 0 | b4df4f919e10a1dd8eb90bb0495a20bdc1b9699a | 150 | ShareFileText | Apache License 2.0 |
app/src/main/kotlin/com/g00fy2/developerwidget/activities/apkinstall/dialogs/PermissionsAdapter.kt | G00fY2 | 96,943,329 | false | null | package com.g00fy2.developerwidget.activities.apkinstall.dialogs
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import com.g00fy2.developerwidget.activities.apkinstall.dialogs.PermissionsAdapter.PermissionViewHolder
import com.g00fy2.developerwidget.base.B... | 0 | null | 10 | 38 | d1d3fc69c89a7b3cfeec0062b69d149e8bb568b4 | 1,371 | DeveloperWidget | MIT License |
feature-account-api/src/main/java/jp/co/soramitsu/account/api/domain/interfaces/GetTotalBalanceUseCase.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.feature_account_api.domain.interfaces
import jp.co.soramitsu.feature_account_api.domain.model.TotalBalance
import kotlinx.coroutines.flow.Flow
interface GetTotalBalanceUseCase {
/**
* Calculate total account balance
*
* @param metaId - when specified calculation performed fo... | 4 | Kotlin | 21 | 69 | 7f56d96cd77587ac3a03304a8bc93150d8f933ab | 459 | fearless-Android | Apache License 2.0 |
src/main/kotlin/com/github/wangliuliucc/ideaplugin/listeners/MyProjectManagerListener.kt | wangliuliu-cc | 519,098,879 | false | {"Kotlin": 6836} | package com.github.sikwoxy.ideaplugin.listeners
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManagerListener
import com.github.sikwoxy.ideaplugin.services.MyProjectService
internal class MyProjectManagerListener : ProjectManagerL... | 0 | Kotlin | 0 | 0 | daf24c4c69cca849509cefa5a51f73109e45d446 | 434 | idea-plugin | Apache License 2.0 |
core/src/main/java/com/aidventory/core/common/designsystem/component/Navigation.kt | yuriikonovalov | 615,443,609 | false | null | package com.aidventory.core.common.designsystem.component
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.RowScope
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
fun AidventoryNavigationBar(... | 0 | Kotlin | 0 | 0 | 9753d24aca8bb645cef085498124e58e9cda451a | 2,076 | aidventory | MIT License |
app/src/main/java/com/zennymorh/charades/scoreFragments/ScoreFragment.kt | zennymorh | 237,751,605 | false | null | package com.zennymorh.charades.scoreFragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.Navigation
import kotlinx.android.synthetic.main.score_fragment.*
import android.content.Co... | 0 | Kotlin | 0 | 0 | 8f14cfa4ca3b4ecd3063859bccc43e4842c6cd17 | 1,967 | Charades | Apache License 2.0 |
src/main/kotlin/ps/api/user/UserHttpModule.kt | marek-hanzal | 394,701,910 | false | null | package ps.api.user
import io.ktor.routing.*
import leight.container.IContainer
import leight.http.AbstractHttpModule
import ps.api.user.atomizer.AtomizerHttpModule
import ps.api.user.base.BaseHttpModule
import ps.api.user.battery.BatteryHttpModule
import ps.api.user.build.BuildHttpModule
import ps.api.user.cotton.Cot... | 10 | Kotlin | 0 | 0 | 1eb59387ac54d0799b5805b905b2488a2bca48ca | 1,312 | puff-smith | Apache License 2.0 |
squash-graph/src/org/jetbrains/squash/graph/TransactionReferenceLink.kt | orangy | 59,228,714 | false | null | package org.jetbrains.squash.graph
import org.jetbrains.squash.definition.*
class TransactionReferenceLink<TReference>(override val from: TransactionNode<*>,
override val to: TransactionNode<TReference>,
val linkColumn: Column<TRefe... | 27 | Kotlin | 17 | 258 | dc025481b7104a5e234d6df370d715b6b37c81eb | 1,225 | squash | Apache License 2.0 |
rubik/rubik_kapt/src/main/java/com/rubik/apt/files/source/ContextSourceFiles.kt | baidu | 504,447,693 | false | null | package com.rubik.apt.files.source
import com.rubik.annotations.source.RContextLib
import com.rubik.apt.Constants
import com.rubik.apt.codebase.activity.ActivityCodeBase
import com.rubik.apt.codebase.api.ApiCodeBase
import com.rubik.apt.codebase.api.RouteCodeBase
import com.rubik.apt.codebase.context.ContextCodeBase
i... | 3 | null | 7 | 152 | d9f5c39f7892733c5501928dc3464fa3444d3c80 | 6,020 | Rubik | Apache License 2.0 |
samples/build_first_flow/app/src/main/java/com/revolut/kompot/build_first_flow/MainActivity.kt | revolut-mobile | 488,970,565 | false | null | package com.revolut.kompot.build_first_flow
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.revolut.kompot.build_first_flow.flow.AddContactFlow
import com.revolut.kompot.entry_point.fragment.KompotConfig
import com.revolut.kompot.entry_point.fragment.KompotFragment
class MainActivi... | 0 | Kotlin | 5 | 91 | 1ea49978cd64b74aeac41d1d0bcce68bbcce9d6c | 650 | kompot | Apache License 2.0 |
omegalauncherslib/src/main/java/com/omegar/libs/omegalaunchers/DialogFragmentLauncher.kt | Omega-R | 201,016,845 | false | null | package com.omegar.libs.omegalaunchers
import android.content.Context
import android.os.Bundle
import android.os.Parcelable
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.frag... | 1 | null | 1 | 1 | 6b9213c264876516b5d02f13925c68fde5b20e4e | 4,164 | OmegaLaunchers | MIT License |
src/main/kotlin/br/com/zupacademy/sergio/proposal/controller/ProposalReadingController.kt | sergioamorim | 385,819,391 | true | {"Kotlin": 46305, "Dockerfile": 1397} | package br.com.zupacademy.sergio.proposal.controller
import br.com.zupacademy.sergio.proposal.ProposalMetrics
import br.com.zupacademy.sergio.proposal.model.Proposal
import br.com.zupacademy.sergio.proposal.model.ProposalDetail
import br.com.zupacademy.sergio.proposal.persistence.ProposalRepository
import br.com.zupac... | 0 | Kotlin | 0 | 0 | d0f0e2b8a0497c506cade51030704d90b4e2549b | 1,751 | proposta | Apache License 2.0 |
kipher-aes/src/main/kotlin/io/github/jhdcruz/kipher/aes/AesEncryption.kt | jhdcruz | 585,771,339 | false | null | /*
* Copyright 2023 <NAME>
* SPDX-License-Identifier: Apache-2.0
*/
@file:JvmSynthetic
package io.github.jhdcruz.kipher.aes
import io.github.jhdcruz.kipher.common.KipherException
import io.github.jhdcruz.kipher.common.KipherProvider
import org.jetbrains.annotations.NotNull
import java.security.InvalidParameterExc... | 2 | Kotlin | 1 | 8 | bc6056f718682823880ae65c7816a1a91f99e1ec | 2,581 | kipher | Apache License 2.0 |
app/src/main/java/com/vr/sos_app/views/MainActivity.kt | gokulsrivamsi | 771,007,128 | false | {"Kotlin": 2550} | package com.vr.sos_app.views
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.vr.sos_app.R
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
... | 0 | Kotlin | 0 | 0 | b64721a1d5c92c99b226b8f39239d0073d6b4f20 | 325 | sos_app | MIT License |
app/src/main/java/com/mocktest/listpage/App.kt | rimonFeb2020 | 267,347,585 | false | null | package com.mocktest.listpage
import android.app.Application
import android.os.Build.VERSION.SDK_INT
import android.os.Build.VERSION_CODES.P
import coil.ImageLoader
import coil.decode.GifDecoder
import coil.decode.SvgDecoder
import coil.util.CoilUtils
import com.mocktest.listpage.injection.appModule
import okhttp3.OkH... | 0 | Kotlin | 1 | 0 | e167a635c19bace4b34661783e022ca21b0b0b0c | 1,656 | mock-image-listing | The Unlicense |
src/commonMain/kotlin/dev/rhovas/interpreter/analyzer/rhovas/RegistrationPhase.kt | Rhovas | 249,287,295 | false | null | package dev.rhovas.interpreter.analyzer.rhovas
import dev.rhovas.interpreter.analyzer.Analyzer
import dev.rhovas.interpreter.environment.Component
import dev.rhovas.interpreter.environment.Modifiers
import dev.rhovas.interpreter.parser.rhovas.RhovasAst
/**
* Phase 1/4: Registers all types that may be referenced duri... | 8 | null | 2 | 28 | 837ed37a04a5295d26cc64f16be065a41a7266aa | 2,721 | Interpreter | MIT License |
src/main/java/net/oxyopia/vice/features/RenderTest.kt | Oxyopiia | 689,119,282 | false | null | package net.oxyopia.vice.features
import net.minecraft.client.gui.DrawContext
import net.minecraft.entity.boss.BossBar
import net.oxyopia.vice.Vice
import net.oxyopia.vice.data.gui.HudElement
import net.oxyopia.vice.data.gui.Position
import net.oxyopia.vice.events.BossBarEvents
import net.oxyopia.vice.events.HudRender... | 7 | null | 1 | 2 | ec72b9a16cd9d642e9e416a3d8d2acf1a869d9cf | 2,701 | ViceMod | MIT License |
app/src/main/java/com/sneakers/sneakerschecker/screens/activity/BaseActivity.kt | LongJakeparker | 173,551,224 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "JSON": 2, "Proguard": 1, "Kotlin": 88, "XML": 106, "Java": 77} | package com.sneakers.sneakerschecker.screens.activity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.view.menu.MenuBuilder
import androidx.appcompat.widget.Toolbar
import androidx.coordinatorlayout.widget.Coordina... | 0 | Kotlin | 0 | 0 | 26c43b8c8bf6caa0e746bbcff3daefa8b5c79b9d | 3,335 | True-Grails | MIT License |
typescript-kotlin/src/main/kotlin/typescript/CommaListExpression.kt | turansky | 393,199,102 | false | null | // Automatically generated - do not modify!
package typescript
/**
* A list of comma-separated expressions. This node is only created by transformations.
*/
external interface CommaListExpression : Expression {
/*
readonly kind: SyntaxKind.CommaListExpression;
readonly elements: NodeArray<Expression>;
... | 0 | Kotlin | 1 | 10 | bcf03704c0e7670fd14ec4ab01dff8d7cca46bf0 | 328 | react-types-kotlin | Apache License 2.0 |
src/main/kotlin/command/RemoteLoader.kt | 0awawa0 | 467,901,601 | false | null | package command
import command.ceiling_fan.CeilingFan
import command.ceiling_fan.CeilingFanOffCommand
import command.ceiling_fan.CeilingFanOnCommand
import command.garage_door.GarageDoor
import command.garage_door.GarageDoorDownCommand
import command.garage_door.GarageDoorUpCommand
import command.light.Light
import co... | 0 | Kotlin | 0 | 0 | f996bbd3a92e4ac1ea1ca9663ab79f22e095163d | 2,099 | DesignPatterns | MIT License |
shared/src/jsMain/kotlin/kmm/utils/calendarism/Platform.js.kt | kmm-utils | 675,343,707 | false | null | package kmm.utils.calendarism
class JSlatform : Platform {
override val name: String = "JavaScript"
}
actual fun getPlatform(): Platform = JSlatform() | 0 | Kotlin | 0 | 0 | 3c47f7a50723c0515254fa4d01e1053f3eee4cbd | 156 | calendarism | MIT License |
json-builder/kotlin/src/generated/kotlin/divkit/dsl/PagerLayoutMode.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | @file:Suppress(
"unused",
"UNUSED_PARAMETER",
)
package divkit.dsl
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonValue
import divkit.dsl.annotation.*
import divkit.dsl.core.*
import divkit.dsl.scope.*
import... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 599 | divkit | Apache License 2.0 |
app/src/main/java/com/fitmate/fitmate/util/GroupCategory.kt | Workout-Study | 770,138,955 | false | {"Kotlin": 355008, "Java": 2038} | package com.fitmate.fitmate.util
import android.app.Application
import android.content.Context
import com.fitmate.fitmate.R
import dagger.hilt.android.qualifiers.ApplicationContext
//( 1: 등산, 2: 생활 체육, 3: 웨이트, 4: 수영, 5: 축구, 6: 농구, 7: 야구, 8: 바이킹, 9: 클라이밍, 10: 기타 )
enum class GroupCategory(val code:Int ) {
HIKING(... | 23 | Kotlin | 0 | 0 | 053aadeefededd934be756804b10650fb2449c12 | 1,172 | WorkoutStudy_Android | The Unlicense |
tmp/arrays/youTrackTests/7600.kt | DaniilStepanov | 228,623,440 | false | {"Git Config": 1, "Gradle": 6, "Text": 3, "INI": 5, "Shell": 2, "Ignore List": 3, "Batchfile": 2, "Markdown": 2, "Kotlin": 15942, "JavaScript": 4, "ANTLR": 2, "XML": 12, "Java": 4} | // Original bug: KT-26466
package kui
abstract class Component
interface Renderer<C : Component> {
val template: Template
}
class Template
inline fun <C : Component> buildTemplate(block: TemplateBuilder<C>.() -> Unit): Template {
return BaseTemplateBuilder<C>().apply(block).build()
}
abstract class Templa... | 1 | null | 11 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 790 | bbfgradle | Apache License 2.0 |
app/src/main/java/uk/colessoft/android/hilllist/ui/adapter/HillDetailListAdapter.kt | colesadam | 40,809,492 | false | null | package uk.colessoft.android.hilllist.ui.adapter
import android.preference.PreferenceManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CheckBox
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.recyclerview.widget.R... | 1 | null | 1 | 3 | ecd2fb649313d15f132dd414aa49ee2abd5c48b8 | 2,999 | hill-lists | MIT License |
app/src/main/java/com/herdal/videogamehub/data/local/entity/TagRemoteKeyEntity.kt | herdal06 | 600,232,493 | false | null | package com.herdal.videogamehub.data.local.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.herdal.videogamehub.utils.constants.DatabaseConstants
@Entity(tableName = DatabaseConstants.EntityNames.TAG_REMOTE_KEYS)
data class TagRemoteKeyEntity(
@PrimaryK... | 0 | Kotlin | 0 | 0 | 590195ced5471f08a58f8d7052a9633bff8c4d68 | 456 | VideoGameHub | Apache License 2.0 |
app/src/main/java/id/devfest/pokedex/data/repository/PokemonRepository.kt | esafirm | 219,772,858 | true | {"Kotlin": 53423} | package id.devfest.pokedex.data.repository
import id.devfest.pokedex.model.Pokemon
import id.devfest.pokedex.utils.Either
import io.reactivex.Observable
import io.reactivex.Single
/**
* Created by fathonyfath on 04/02/18.
*/
interface PokemonRepository {
fun listenToPokemonList(): Observable<List<Pokemon>>
... | 0 | Kotlin | 0 | 1 | a5858955c6a70a2f890ad7cf974bd408abe8deab | 653 | pokedex-android | MIT License |
src/main/kotlin/com/mark/netrune/endpoint/js5/incoming/Js5LoggedInDecoder.kt | Mark7625 | 641,050,293 | false | null | package com.mark.netrune.endpoint.js5.incoming
object Js5LoggedInDecoder : SkippedJs5Decoder<Js5LoggedIn>(Js5LoggedIn) | 1 | Kotlin | 1 | 1 | 8cff984c258cf12b440e30626b60dd3f36aa9824 | 119 | Osrs-Data-packer | MIT License |
src/main/kotlin/dev/turingcomplete/intellijdevelopertoolsplugin/_internal/common/SimpleTable.kt | marcelkliemannel | 605,260,384 | false | {"Kotlin": 729243, "HTML": 1028} | package dev.turingcomplete.intellijdevelopertoolsplugin._internal.common
import com.intellij.openapi.Disposable
import com.intellij.openapi.actionSystem.DataProvider
import com.intellij.openapi.actionSystem.DefaultActionGroup
import com.intellij.openapi.ui.popup.JBPopupFactory
import com.intellij.openapi.ui.setEmptySt... | 23 | Kotlin | 14 | 178 | dc83a42ad60769981162c4634e1cc719f986380f | 3,223 | intellij-developer-tools-plugin | Apache License 2.0 |
app/src/main/java/com/diplom/map/mvp/components/map/model/LayersTileProvider.kt | DonGlebon | 175,883,786 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Proguard": 1, "XML": 55, "Kotlin": 78, "Java": 1} | package com.diplom.map.mvp.components.map.model
import android.graphics.*
import com.diplom.map.room.data.LayerData
import com.diplom.map.room.data.provider.LayerProvider
import com.diplom.map.room.data.provider.ThemeStyleValuesProviderData
import com.diplom.map.utils.model.ESRITileProvider
import com.google.android.g... | 1 | null | 1 | 1 | 45f2e59eed6f228f42d0b2b45ad374746a7dc9d3 | 7,209 | Diplom | MIT License |
plugins/src/main/java/org/runestar/client/plugins/clock/Clock.kt | Tachyon97 | 228,674,958 | true | {"Markdown": 31, "Maven POM": 21, "Text": 2, "Kotlin": 587, "Java": 37, "XML": 2, "YAML": 1} | package org.runestar.client.plugins.clock
import com.google.common.base.Stopwatch
import org.runestar.client.api.forms.DateTimeFormatterForm
import org.runestar.client.api.util.DisposablePlugin
import org.runestar.client.game.api.ComponentId
import org.runestar.client.game.api.live.Components
import org.runestar.clien... | 0 | Kotlin | 0 | 0 | d02e7a382a34af117279be02f9f54a6a70fc012b | 1,858 | client | MIT License |
android/src/main/java/com/jeefowebrtclibrary/RTCService.kt | je3f0o | 727,667,837 | false | {"Kotlin": 39747, "Java": 7204, "JavaScript": 5454, "Ruby": 4081, "Objective-C": 2515, "Swift": 991, "Objective-C++": 764, "TypeScript": 523, "C": 103} | package com.jeefowebrtclibrary
import android.util.Log
import com.facebook.react.bridge.ReactApplicationContext
import com.signaller.RTCEventEmitter
import com.signaller.RTCSignaller
import com.signaller.VideoRoomPlugin
import org.json.JSONObject
import org.webrtc.*
object RTCService {
private var isInitialized = f... | 0 | Kotlin | 0 | 0 | 3e8a57575c45edf0d811de791b6b32e84eafd7c2 | 7,059 | rn_jeefo_webrtc | MIT License |
src/main/kotlin/skeleton/app/support/access/management/ManagementService.kt | println | 669,602,237 | false | {"Kotlin": 128363} | package skeleton.app.support.access.management
class ManagementService {
} | 0 | Kotlin | 0 | 0 | 5668a5fcaa8c4f25d6a506dc388647bf16a04b55 | 75 | kotlin-skeleton | MIT License |
employee-directory/app/src/main/java/work/wander/DirectoryApplication.kt | awallace87 | 793,807,511 | false | {"Kotlin": 533957} | package work.wander
import android.app.Application
import androidx.hilt.work.HiltWorkerFactory
import androidx.work.Configuration
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
import work.wander.directory.BuildConfig
import javax.inject.Inject
/**
* Application class for the Directory applicatio... | 0 | Kotlin | 0 | 0 | 96d8356effa540198259646b87f751c3e08fc8bc | 947 | android-sample-apps | Apache License 2.0 |
mylibrary/src/main/java/com/esp/library/exceedersesp/controllers/applications/filters/ESP_LIB_FilterDefinitionAdapter.kt | ahsanm155 | 282,847,970 | false | null | package com.esp.library.exceedersesp.controllers.applications.filters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.appcompat.widget.AppCompatCheckBox
import co... | 0 | Kotlin | 0 | 0 | 11d17817eb75077ac97309509d20fe5adae1bc43 | 2,946 | ESP_LIBRARY | MIT License |
src/main/kotlin/com/keycodetech/springkotlin/Application.kt | jeancl | 114,985,721 | false | null | package com.keycodetech.springkotlin
import org.springframework.boot.CommandLineRunner
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.ComponentScan
i... | 0 | Kotlin | 0 | 0 | 88e59ba53639b33bdb760988fa35f40905c40ebe | 1,024 | springkotlin | Apache License 2.0 |
lib/mpesa-kmp-library-core/src/commonMain/kotlin/io.github.jeffnyauke.mpesa.core/response/StkPushQueryResponse.kt | jeffnyauke | 641,450,972 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | Kotlin | 0 | 0 | f741541c13b54670e5965a3493f18455d7cf36a8 | 2,628 | mpesa-kmp-library | Apache License 2.0 |
data/src/main/kotlin/com/yossisegev/data/repositories/RemoteMoviesDataStore.kt | mrsegev | 122,669,273 | false | null | package com.yossisegev.data.repositories
import com.yossisegev.data.api.Api
import com.yossisegev.data.entities.DetailsData
import com.yossisegev.data.entities.MovieData
import com.yossisegev.data.mappers.DetailsDataMovieEntityMapper
import com.yossisegev.data.mappers.MovieDataEntityMapper
import com.yossisegev.data.m... | 7 | Kotlin | 147 | 772 | 7df52e6c93d6932b4b58de9f4f906f86df93dce1 | 1,526 | MovieNight | Apache License 2.0 |
Ios-Emoji/src/main/java/com/example/ios_emoji/category/SmileysAndPeopleCategoryChunk0.kt | anorld-droid | 455,482,156 | false | null | /*
* Copyright (C) 2016 - Niklas Baudy, Ruben Gees, Mario Đanić and contributors
*
* 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
*
... | 0 | Kotlin | 0 | 1 | 2a42822d3e000651f0f30768055e878882fc0cd7 | 87,274 | compose-emojis | Apache License 2.0 |
app/src/main/java/com/github/kongpf8848/animation/splash/SplashView.kt | kongpf8848 | 254,021,972 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Markdown": 2, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "Proguard": 1, "XML": 147, "JSON": 31, "Java": 29, "Kotlin": 117, "CMake": 3, "C++": 106, "C": 44, "Motorola 68K Assembly": 1, "Unix Assembly": 1, "Fluent": 1, "Gradle Kotlin DSL": 1} | package com.github.kongpf8848.animation.splash
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.RelativeLayout
import com.github.kongpf8848.animation.R
class SplashView @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: ... | 2 | Kotlin | 78 | 455 | 4230a3e6db05f746671368212b461a4e248cbfef | 1,165 | Animation | Apache License 2.0 |
src/main/java/com/sayzen/campfiresdk/views/WidgetStickers.kt | HorsePower68 | 230,018,763 | true | {"Kotlin": 1489208} | package com.sayzen.campfiresdk.views
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import androidx.recyclerview.widget.GridLayoutManager
import com.dzen.campfire.api.models.units.stickers.UnitSticker
import com.dzen.campfire.api.requests.stickers.RSt... | 0 | null | 1 | 0 | 33c46da49d3758a1a006ac660dc823d35c66baea | 3,966 | CampfireSDK | Apache License 2.0 |
app/src/main/java/com/karna/mycards/MyCardsApp.kt | karnasurendra | 794,693,409 | false | {"Kotlin": 85804} | package com.karna.mycards
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MyCardsApp:Application() {
} | 0 | Kotlin | 0 | 1 | 4f5af198217c5c09e5c3728144de028da6025072 | 151 | Android-Compose-MVVM-MyCards | MIT License |
src/main/java/org/openwilma/kotlin/clients/WilmaHttpClient.kt | OpenWilma | 533,496,981 | false | null | package org.openwilma.kotlin.clients
import okhttp3.*
import okhttp3.internal.closeQuietly
import okhttp3.logging.HttpLoggingInterceptor
import org.openwilma.kotlin.OpenWilma
import org.openwilma.kotlin.classes.WilmaSession
import org.openwilma.kotlin.classes.errors.Error
import org.openwilma.kotlin.classes.errors.Err... | 0 | Kotlin | 0 | 3 | 9cdd95fa2df98cb560dcb7df0abdf6cba8bb9840 | 7,663 | openwilma.kotlin | Apache License 2.0 |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/HouseUser.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,557 | compose-icons | MIT License |
src/test/kotlin/com/github/darderion/mundaneassignmentpolice/MundaneAssignmentPoliceApplicationTests.kt | Darderion | 410,550,044 | false | {"Kotlin": 207843, "HTML": 185970, "TypeScript": 52959, "CSS": 7720, "Shell": 2338, "Python": 1435, "Dockerfile": 541} | package com.github.darderion.mundaneassignmentpolice
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
/*
@SpringBootTest
class MundaneAssignmentPoliceApplicationTests {
@Test
fun contextLoads() {
}
}
*/
| 10 | Kotlin | 11 | 14 | 57c28f157c40d752da6ebe89a41e6bc0b0137ae1 | 258 | map | MIT License |
declarations/src/main/kotlin/tabs/tabs.kt | jmfayard | 156,848,854 | true | {"Kotlin": 289228} | package tabs
import extensionTypes.ImageDetails
import extensionTypes.InjectDetails
import kotlin.js.Promise
import runtime.Port
import webextensions.Event
import windows.Window
/**
* An event that caused a muted state change. */
typealias MutedInfoReason = String
/**
* Tab muted state and the reason for the last ... | 0 | Kotlin | 0 | 0 | 559379876f1acab6ed3b6b69d9b2c0a59b1bf4a4 | 28,090 | kotlin-webextensions-declarations | Apache License 2.0 |
src/main/kotlin/net/sergeych/raysearch/DocType.kt | sergeych | 684,369,249 | false | {"Kotlin": 73860, "Shell": 1233} | package net.sergeych.raysearch
import net.sergeych.mp_logger.LogTag
import net.sergeych.mp_logger.debug
import net.sergeych.mp_logger.info
import org.apache.pdfbox.io.RandomAccessBufferedFileInputStream
import org.apache.pdfbox.pdfparser.PDFParser
import org.apache.pdfbox.pdmodel.PDDocument
import org.apache.pdfbox.te... | 2 | Kotlin | 0 | 1 | 669d182ae122f79e05fa959de1c6c07ae3b76425 | 3,819 | raysearch | MIT License |
idea/testData/decompiler/decompiledText/Inherited/Dependency.kt | JakeWharton | 99,388,807 | false | null | package dependency
interface Base | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 34 | kotlin | Apache License 2.0 |
src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsaccreditedprogrammesapi/course/domain/OfferingUpdate.kt | ministryofjustice | 615,402,552 | false | {"Kotlin": 215996, "Shell": 9504, "Dockerfile": 1397} | package uk.gov.justice.digital.hmpps.hmppsaccreditedprogrammesapi.course.domain
data class NewOffering(
val prisonId: String,
val identifier: String,
val contactEmail: String? = null,
val secondaryContactEmail: String? = null,
)
| 3 | Kotlin | 0 | 0 | 275f923f940de925145a82fb9d0b4ad7c6e5295f | 238 | hmpps-accredited-programmes-api | MIT License |
src/main/kotlin/graphics/textures/ColorMap.kt | MJARuijs | 238,959,670 | false | null | package com.blazeit.game.graphics.textures
import org.lwjgl.opengl.GL11.*
import org.lwjgl.opengl.GL12.GL_CLAMP_TO_EDGE
import java.nio.ByteBuffer
class ColorMap(private var width: Int, private var height: Int): TextureMap {
override val handle = glGenTextures()
init {
glBindTexture(GL_TEXTURE_2D, h... | 0 | Kotlin | 0 | 0 | ba34391da0b523907d84d71e47b70f4ad3c12173 | 1,259 | Morgan | MIT License |
kamper/api/src/commonMain/kotlin/com/smellouk/kamper/api/Extensions.kt | smellouk | 442,266,308 | false | null | package com.smellouk.kamper.api
fun Long.kBytesToMb(): Float {
return this / KILO
}
fun Long.bytesToMb(): Float {
return this / KILO / KILO
}
fun Long.nanosToSeconds(): Double = this / MILLIS_TO_SECONDS_UNIT
private const val KILO = 1024F
private const val MILLIS_TO_SECONDS_UNIT = 1000000000.0
| 8 | Kotlin | 0 | 31 | bbc4cad11c11e578a4017b04a1c66f51790a4e88 | 307 | kamper | Apache License 2.0 |
compiler/tests-spec/testData/diagnostics/linked/when-expression/p-11/neg/8.2.kt | tnorbye | 162,147,688 | true | {"Kotlin": 32763299, "Java": 7651072, "JavaScript": 152998, "HTML": 71905, "Lex": 18278, "IDL": 10641, "ANTLR": 9803, "Shell": 7727, "Groovy": 6091, "Batchfile": 5362, "CSS": 4679, "Scala": 80} | // !DIAGNOSTICS: -UNUSED_EXPRESSION
// !WITH_SEALED_CLASSES
/*
* KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE)
*
* SECTIONS: when-expression
* PARAGRAPH: 11
* SENTENCE: [8] The bound expression is of a nullable type and one of the areas above is met for its non-nullable counterpart and, in addition, there is a conditio... | 0 | Kotlin | 2 | 2 | b6be6a4919cd7f37426d1e8780509a22fa49e1b1 | 2,443 | kotlin | Apache License 2.0 |
XTool/src/main/java/com/danny/xtool/SpanTool.kt | dannycx | 643,140,932 | false | {"Gradle": 12, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 10, "Batchfile": 1, "Markdown": 58, "INI": 8, "Proguard": 9, "Kotlin": 149, "XML": 117, "Java": 130, "JSON": 2} | /*
* Copyright (c) 2023-2023 x
*/
package com.danny.xtool
import android.content.Context
import android.text.SpannableString
import android.text.SpannableStringBuilder
import android.text.Spanned
import android.text.style.AbsoluteSizeSpan
import android.text.style.BackgroundColorSpan
import android.text.style.Foreg... | 0 | Java | 0 | 0 | bfb22a1abf9270e1d837113cc998cca0f9aac650 | 2,104 | XLib | Apache License 2.0 |
src/main/kotlin/net/stauc/cs2itemsdb/service/ItemService.kt | vSEK1RO | 756,538,482 | false | {"Kotlin": 13573} | package net.stauc.cs2itemsdb.service
import net.stauc.cs2itemsdb.model.response.HashNameResponse
import net.stauc.cs2itemsdb.model.response.ItemResponse
interface ItemService {
fun list(): List<HashNameResponse>
fun getByHashName(hashName: String): ItemResponse
} | 0 | Kotlin | 0 | 0 | 8d8ba85c4a8a66f4a7f1357e60cdde5bd3611e43 | 273 | CS2ItemsDB | MIT License |
TouchEventDemo/src/main/java/com/litton/toucheventdemo/activity/MyHandleActivity.kt | littonishir | 461,726,896 | false | {"Kotlin": 54389, "Java": 2145} | package com.litton.toucheventdemo.activity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.litton.toucheventdemo.databinding.ActivityMyHandleBinding
import com.litton.toucheventdemo... | 0 | Kotlin | 0 | 0 | a406b4518d1c62d9d4326f79176fbeb1ac259581 | 1,593 | MySkillTree | Apache License 2.0 |
SelectSaveImagePicker/src/main/java/com/opensource/selectsaveimagepicker/adapter/ImagePickerAdapter.kt | KeunyoungSong | 799,467,662 | false | {"Kotlin": 26856} | package com.opensource.selectsaveimagepicker.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.opensource.selectsaveimagepicker.PickerConfig
im... | 0 | Kotlin | 0 | 0 | d79d65967b634f7355f62ccf84a256c60af7bb8c | 1,927 | SelectSaveImagePicker | MIT License |
learning-java-ecosystem/learning-java-io-netty/src/main/kotlin/io/vincent/learning/stack/netty/codec/encode/msgpack/MessagePackEncoder.kt | search-cloud | 137,825,867 | false | null | package io.vincent.learning.stack.netty.codec.encode.msgpack
import io.netty.buffer.ByteBuf
import io.netty.channel.ChannelHandlerContext
import io.netty.handler.codec.MessageToByteEncoder
import org.msgpack.MessagePack
/**
* Encoder.
*
* Created by Vincent on 2018/8/30.
* @author Vincent
* @since 1.0, 2018/8/30... | 1 | Kotlin | 1 | 1 | 5011813d9796c0ccc8a174c98549d5b3727adfb4 | 1,053 | learning-stack | Apache License 2.0 |
android/src/main/java/pl/carbuddy/qr_scanner/CodeScannerActivity.kt | dabrowskid | 233,901,827 | false | {"Objective-C": 11365, "Kotlin": 5049, "Ruby": 4375, "Dart": 2228, "Swift": 922} | package pl.carbuddy.qr_scanner
import android.Manifest
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.budiyev.android.codescanner.A... | 0 | Objective-C | 0 | 1 | 73031eb0bc752f8fcb6a60b53c682babc04498e6 | 2,729 | qr-scanner | MIT License |
app/src/main/java/com/alura/githubprofile/webservice/WebService.kt | smborgesMobile | 509,200,764 | false | {"Kotlin": 22657} | package com.alura.githubprofile.webservice
import com.alura.githubprofile.api.GitHubApi
internal interface WebService {
fun createService(): GitHubApi
} | 0 | Kotlin | 0 | 0 | acdf4c00e27b80c0ae9e78caac1c6b44c60aba15 | 158 | Android7daysOfCode | Apache License 2.0 |
order/api/src/test/kotlin/com/rarible/protocol/order/api/service/order/validation/LazyAssetValidatorTest.kt | NFTDroppr | 418,665,809 | true | {"Kotlin": 2329156, "Scala": 37343, "Shell": 6001, "HTML": 547} | package com.rarible.protocol.order.api.service.order.validation
import com.rarible.core.test.data.randomAddress
import com.rarible.core.test.data.randomBigInt
import com.rarible.core.test.data.randomString
import com.rarible.ethereum.domain.EthUInt256
import com.rarible.ethereum.nft.model.LazyERC721
import com.rarible... | 0 | Kotlin | 0 | 1 | b1efdaceab8be95429befe80ce1092fab3004d18 | 4,694 | ethereum-indexer | MIT License |
input/identifier/src/commonMain/kotlin/symphony/PhoneFieldState.kt | aSoft-Ltd | 632,021,007 | false | null | @file:JsExport
@file:Suppress("NON_EXPORTABLE_TYPE")
package symphony
import geo.Country
import kotlin.js.JsExport
data class PhoneFieldState(
val name: String,
val label: Label,
val hidden: Boolean,
val hint: String,
val required: Boolean,
val country: Country?,
val body: Long?,
val ... | 0 | Kotlin | 0 | 0 | 32443d95c7ee8d7e1d226dca12576b7425938e37 | 443 | symphony | MIT License |
app/src/main/java/com/ramiyon/soulmath/util/Mapper.kt | KylixEza | 482,724,913 | false | {"Kotlin": 253697} | package com.ramiyon.soulmath.util
import com.ramiyon.soulmath.data.source.local.database.enitity.DailyXpEntity
import com.ramiyon.soulmath.data.source.local.database.enitity.LeaderboardEntity
import com.ramiyon.soulmath.data.source.local.database.enitity.StudentEntity
import com.ramiyon.soulmath.data.source.remote.api... | 0 | Kotlin | 0 | 0 | 7f7106b6bee4f09da9b1395a441d9f5b2b9a6da7 | 4,841 | SoulMath | Apache License 2.0 |
androidlibrary/src/main/java/io/supportgenie/androidlibrary/view/common/ViewExtensions.kt | himmat-rana | 206,965,643 | false | {"XML": 178, "Gradle": 4, "Java Properties": 4, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 40, "JSON": 1, "Java": 2, "INI": 2} | package io.supportgenie.androidlibrary.view.common
import android.app.Activity
import androidx.annotation.IdRes
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.*
import androidx.fragment.app.*
import kotlin.reflect.KClass
fun <T : ViewModel> FragmentActivity.getViewModel(modelClass: KClass<T... | 1 | null | 1 | 1 | 2fa640e9d281f849a8c25620d640c68aa2e53a91 | 1,018 | AndroidSDK | Apache License 2.0 |
fuzzer/fuzzing_output/crashing_tests/verified/ifNullEqualsNullInline.kt1122521983.kt | ItsLastDay | 102,885,402 | false | null | fun test1(): Unit {
val n = null
n.elvis({"X1"})
"X2".elvis({"X3"})
}
inline fun <T : Any> (T)?.elvis(rhs: (() -> T)): T = this ?: (rhs)!!() | 2 | Kotlin | 1 | 6 | 56f50fc307709443bb0c53972d0c239e709ce8f2 | 140 | KotlinFuzzer | MIT License |
src/com/danilafe/ktstarbound/data/sbvj.kt | DanilaFe | 91,632,721 | false | null | package com.danilafe.ktstarbound.data
import com.danilafe.ktstarbound.data.internal.VersionedData
import com.danilafe.ktstarbound.readers.RandomReader
import java.io.File
/**
* An SBVJS06 parser.
* Able to parse Starbound's SBVJ06 files,
* which are just a VersionedData package with a header.
*/
class SBVJ06(file... | 0 | Kotlin | 0 | 4 | 4fb73d61abfc818cf496f8e3813480485ccdd174 | 742 | kt-starbound | MIT License |
sdk/src/commonMain/kotlin/com/y9vad9/pomodoro/sdk/results/RenewTokenResult.kt | y9vad9 | 544,125,678 | false | null | package com.y9vad9.pomodoro.sdk.results
import com.y9vad9.pomodoro.sdk.types.value.AccessToken
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
public sealed interface RenewTokenResult {
@Serializable
@SerialName("success")
public class Success(
@Seri... | 4 | Kotlin | 0 | 8 | a4c13b7d8bb71139c4b61e9d26d61acc9743f6a3 | 413 | pomodoro | MIT License |
app/src/main/java/com/example/tracking_app/ui/addEvent/AddEventFragment.kt | yassine-zouhri | 373,333,286 | false | null | package com.example.tracking_app.ui.addEvent
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Bitmap
import android.location.Location
import android.os.Bundle
import android.os.Handler
import android.provider.MediaStore
import android.view.LayoutInf... | 0 | Kotlin | 0 | 0 | 88d1c899814e9e3b6df86833dab19b5853963d8f | 7,759 | AppMobilePFE | MIT License |
src/main/kotlin/io/github/clivelewis/assistant/telegram/settings/Settings.kt | clivelewis | 781,393,282 | false | {"Kotlin": 65070} | package io.github.clivelewis.assistant.telegram.settings
import com.fasterxml.jackson.annotation.JsonProperty
data class Settings(@JsonProperty("settings") val settings: HashSet<UserSettings>)
| 0 | Kotlin | 0 | 0 | 0066420f910169af33d77d27c7c612b6dd492af2 | 195 | sam | Apache License 2.0 |
app/src/test-common/java/com/eburg_soft/currencyconverter/utils/LiveDataTestUtil.kt | StasonicK | 292,242,878 | false | null | package com.eburg_soft.currencyconverter.utils
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import java.util.ArrayList
import java.util.concurrent.CountDownLatch
import java.util.concurrent.TimeUnit.SECONDS
class LiveDataTestUtil<T> {
@Throws(InterruptedException::class)
fun getValue... | 0 | Kotlin | 0 | 0 | acbe40f3338c7ec4eff2a4f51b7332892129594f | 1,074 | CurrencyConverter | MIT License |
restaurant/src/test/kotlin/me/rasztabiga/thesis/restaurant/domain/command/RestaurantTest.kt | BartlomiejRasztabiga | 604,846,079 | false | null | package me.rasztabiga.thesis.restaurant.domain.command
import me.rasztabiga.thesis.restaurant.domain.command.aggregate.Availability
import me.rasztabiga.thesis.restaurant.domain.command.aggregate.Product
import me.rasztabiga.thesis.restaurant.domain.command.aggregate.Restaurant
import me.rasztabiga.thesis.restaurant.d... | 14 | Kotlin | 0 | 0 | a343a10934d0b69d185c3ba632fd2e802077d7f9 | 4,931 | thesis | MIT License |
app/src/main/java/com/better/alarm/model/AlarmStateNotifier.kt | csshine | 252,324,328 | true | {"Kotlin": 216111, "Java": 195933} | package com.better.alarm.model
import com.better.alarm.background.Event
import com.better.alarm.configuration.Store
import com.better.alarm.interfaces.Intents
import com.better.alarm.model.AlarmCore.IStateNotifier
/**
* Broadcasts alarm state with an intent
*
* @author Yuriy
*/
class AlarmStateNotifier(private va... | 0 | null | 0 | 0 | 3f0686d6e7e7ccc3d24c1433b4d3273bb1655cb1 | 1,092 | AlarmClock | Apache License 2.0 |
core/data/src/main/java/org/the_chance/honeymart/data/source/remote/mapper/Tokens.kt | TheChance101 | 647,400,117 | false | {"Kotlin": 1218713} | package org.the_chance.honeymart.data.source.remote.mapper
import org.the_chance.honeymart.data.source.remote.models.TokensDto
import org.the_chance.honeymart.domain.usecase.Tokens
fun TokensDto.toTokens() = Tokens(
accessToken = accessToken ?: "",
refreshToken = refreshToken ?: ""
) | 3 | Kotlin | 7 | 21 | 50200e0ec0802cdadc282b09074a19c96df3220c | 294 | Honey-Mart-Android-Client | Apache License 2.0 |
plugin/src/main/java/com/charlie/plugin/TransformHelper.kt | charlie-captain | 381,986,622 | false | null | package com.charlie.plugin
import com.android.build.api.transform.*
import com.android.utils.FileUtils
import org.objectweb.asm.ClassReader
import org.objectweb.asm.ClassWriter
import org.objectweb.asm.Opcodes
import java.io.*
import java.util.jar.JarEntry
import java.util.jar.JarFile
import java.util.jar.JarOutputStr... | 0 | Kotlin | 0 | 0 | fe51d726b84dcf7906767b5d2a822c45f9d6cc49 | 6,821 | ASM_DEMO | Apache License 2.0 |
domain2/src/main/java/com/example/domain2/DoLogin.kt | carlosiniesta7 | 238,405,612 | false | null | package com.example.domain2
class DoLogin(private val repository: IGetElementRepository) {
operator fun invoke(): Boolean = repository.doLogin()
} | 0 | Kotlin | 0 | 0 | 1ade23717d1a811c9db67f662cb3ce3f34bde4de | 151 | intermedio2-android | Apache License 2.0 |
kotlintest-runner/kotlintest-runner-junit5/src/main/kotlin/io/kotlintest/runner/junit5/AsynchronousTestContext.kt | bbaldino | 129,046,214 | true | {"Kotlin": 463106, "Java": 1380} | package io.kotlintest.runner.junit5
import io.kotlintest.DefaultTestContext
import io.kotlintest.TestCase
import io.kotlintest.TestContext
import io.kotlintest.TestScope
import java.util.concurrent.Phaser
import java.util.concurrent.atomic.AtomicReference
/**
* An implementation of [TestContext] that allows asynchro... | 0 | Kotlin | 0 | 0 | d7cb4797a98c0d9bf096ddeb8d7daa3a27f50ff0 | 994 | kotlintest | Apache License 2.0 |
komapper-processor/src/test/kotlin/org/komapper/processor/command/CommandProcessorErrorTest.kt | komapper | 349,909,214 | false | null | package org.komapper.processor
import com.tschuchort.compiletesting.KotlinCompilation
import org.komapper.processor.command.CommandProcessorProvider
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertTrue
class CommandProcessorErrorTest : AbstractKspTest(CommandProcessorProvider()) {
... | 7 | null | 12 | 295 | 726e336317e7ea859f68c3b7b7a4f2fb5e9b98af | 8,806 | komapper | Apache License 2.0 |
foundation/src/commonMain/kotlin/net/ntworld/foundation/IdGenerator.kt | nhat-phan | 201,625,092 | false | null | package net.ntworld.foundation
interface IdGenerator {
fun generate(): String
} | 0 | Kotlin | 3 | 3 | 2fd4b0f0a4966e3aa687f7108d3b0a1cb800c6be | 84 | foundation | MIT License |
year2017/src/main/kotlin/net/olegg/aoc/year2017/day13/Day13.kt | 0legg | 110,665,187 | false | null | package net.olegg.aoc.year2017.day13
import net.olegg.aoc.someday.SomeDay
import net.olegg.aoc.utils.parseInts
import net.olegg.aoc.year2017.DayOf2017
/**
* See [Year 2017, Day 13](https://adventofcode.com/2017/day/13)
*/
object Day13 : DayOf2017(13) {
override fun first(): Any? {
return lines
.map { it... | 0 | Kotlin | 1 | 8 | 3006775fc2d1da3b12303029b9f35d2793c912df | 725 | adventofcode | MIT License |
jsbridgekt/src/main/java/com/lodz/android/jsbridgekt/contract/WebViewJavascriptBridge.kt | LZ9 | 404,224,747 | false | {"Kotlin": 18832, "JavaScript": 7371} | package com.lodz.android.jsbridgekt.contract
/**
* JsBridge接口
* @author zhouL
* @date 2021/8/23
*/
interface WebViewJavascriptBridge {
/** 发送接口名为[apiName]的数据[data]给H5,H5通过[function]回调结果 */
fun send(apiName: String = "", data: String, function: OnCallBackJsListener? = null)
/** 注册接口名为[apiName]的接口,接收H5... | 0 | Kotlin | 2 | 5 | 7a1b783c435453e3f7be284ae5da53f73c19a37b | 526 | JsBridgeKt | Apache License 2.0 |
jsbridgekt/src/main/java/com/lodz/android/jsbridgekt/contract/WebViewJavascriptBridge.kt | LZ9 | 404,224,747 | false | {"Kotlin": 18832, "JavaScript": 7371} | package com.lodz.android.jsbridgekt.contract
/**
* JsBridge接口
* @author zhouL
* @date 2021/8/23
*/
interface WebViewJavascriptBridge {
/** 发送接口名为[apiName]的数据[data]给H5,H5通过[function]回调结果 */
fun send(apiName: String = "", data: String, function: OnCallBackJsListener? = null)
/** 注册接口名为[apiName]的接口,接收H5... | 0 | Kotlin | 2 | 5 | 7a1b783c435453e3f7be284ae5da53f73c19a37b | 526 | JsBridgeKt | Apache License 2.0 |
platform/build-scripts/downloader/src/retry.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.intellij.build
import io.opentelemetry.api.common.AttributeKey
import io.opentelemetry.api.common.Attributes
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.del... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,493 | intellij-community | Apache License 2.0 |
app/src/main/java/com/tierradeatomos/gasolineras/FullscreenActivity.kt | abuenosvinos | 208,015,272 | false | null | package com.tierradeatomos.gasolineras
import android.Manifest
import android.annotation.TargetApi
import android.content.pm.PackageManager
import android.location.Location
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.JavascriptInterface
import android.webkit.WebView
i... | 0 | Kotlin | 0 | 0 | faa5281896101e954fbbb2954f880cef32e05638 | 5,180 | gasolineras-android | MIT License |
app/src/main/java/io/github/takusan23/akaridroid/tool/FileHashTool.kt | takusan23 | 584,131,815 | false | {"Kotlin": 739356, "Java": 53714} | package io.github.takusan23.akaridroid.tool
import android.content.Context
import androidx.core.net.toUri
import io.github.takusan23.akaridroid.RenderData
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.isActive
import kotlinx.coroutines.withContext
import java.io.File
import java.io.InputStream
import... | 0 | Kotlin | 0 | 0 | 62f8c445024d2e90abac69ca796ca3fa43608b2e | 1,574 | AkariDroid | Apache License 2.0 |
kontrakter/src/main/kotlin/no/nav/pleiepengerbarn/uttak/kontrakter/Barn.kt | navikt | 237,293,174 | false | {"Kotlin": 657607, "Dockerfile": 238} | package no.nav.pleiepengerbarn.uttak.kontrakter
import com.fasterxml.jackson.annotation.JsonAutoDetect
import com.fasterxml.jackson.annotation.JsonFormat
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import java.time.LocalDate
@JsonIgnoreProperties(i... | 6 | Kotlin | 1 | 0 | 0881108ebd08d8563c08f5928f6bf1725e5c6c0b | 762 | pleiepenger-barn-uttak | MIT License |
apps/spring-test/src/main/kotlin/de/chasermaser/springtest/SpringTestApplication.kt | JapuDCret | 703,149,797 | false | {"Kotlin": 500} | package de.chasermaser.springtest
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
@SpringBootApplication
class SpringTestApplication
fun main(args: Array<String>) {
runApplication<SpringTestApplication>(*args)
}
| 0 | Kotlin | 0 | 0 | db8ecea5e56e9b5a17d027b2a2e2aa6150623fcb | 283 | speelplaats | Apache License 2.0 |
orca-integrations-gremlin/src/main/java/com/netflix/spinnaker/orca/gremlin/GremlinService.kt | veerendraopsmx | 186,576,528 | false | {"Gradle": 41, "Slim": 1, "YAML": 71, "TOML": 1, "Dockerfile": 1, "Java Properties": 1, "Markdown": 18, "Shell": 6, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Text": 3, "SQL": 2, "Java": 536, "Groovy": 618, "Kotlin": 209, "JSON": 50, "INI": 1, "XML": 2, "desktop": 1} | package com.netflix.spinnaker.orca.gremlin
import retrofit.http.*;
interface GremlinService {
@POST("/attacks/new")
@Headers(
"Content-Type: application/json",
"X-Gremlin-Agent: spinnaker/0.1.0"
)
fun create(
@Header("Authorization") authHeader: String,
@Body attackParameters: AttackParameters... | 1 | null | 1 | 1 | 0dd7a5a09ad593bc346c07537ed32bef48a818bb | 995 | orca | Apache License 2.0 |
samples/android-kotlin-hilt/src/main/java/dev/arunkumar/scabbard/sample/hilt/HiltCustomComponents.kt | arunkumar9t2 | 145,462,355 | false | null | /*
* Copyright 2022 Arunkumar
*
* 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... | 24 | null | 32 | 844 | dde9550a7515d20668d789710298bbed6017cc09 | 1,594 | scabbard | Apache License 2.0 |
Core/src/commonTest/kotlin/io/nacular/doodle/JsName.kt | Hazer | 273,358,963 | true | {"Kotlin": 1307880} | package io.nacular.doodle
/**
* Created by <NAME> on 2/17/18.
*/
expect annotation class JsName constructor(val name: String) | 0 | null | 0 | 0 | f878abf3163a49d515038f6699a4124f087e9885 | 129 | doodle | MIT License |
auth-starter/src/main/kotlin/com/labijie/application/auth/model/SecurityView.kt | hongque-pro | 309,874,586 | false | {"Kotlin": 1058711, "Java": 72766} | package com.labijie.application.auth.model
import com.labijie.application.model.BindingStatus
/**
* Created with IntelliJ IDEA.
* @author <NAME>
* @date 2019-10-17
*/
data class SecurityView(
var email:String = "",
var emailStatus: BindingStatus = BindingStatus.Unbound,
var mobile:String = "",
var... | 0 | Kotlin | 0 | 8 | ce2275d9af9413affdb9c3c6a37422b084cc2abf | 373 | application-framework | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.