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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
app/src/main/java/com/breadwallet/presenter/activities/AnnounceUpdatesViewActivity.kt | litecoin-foundation | 429,611,432 | false | {"Java": 1012078, "C": 99377, "Kotlin": 67082, "CMake": 4333} | package com.breadwallet.presenter.activities
import android.os.Bundle
import android.webkit.WebView
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.ui.AppBarConfiguration
import com.breadwallet.R
import com.breadwallet.databinding.ActivityAnnounceUpdatesViewBindi... | 32 | Java | 9 | 27 | ef0f4a24e078ea853f38056e1a071bedbab16537 | 1,041 | litewallet-android | MIT License |
app/src/main/java/jp/cordea/rxlifecycledemo/MainActivity.kt | CORDEA | 94,719,997 | false | null | package jp.cordea.rxlifecycledemo
import android.databinding.DataBindingUtil
import android.os.Bundle
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity
import jp.cordea.rxlifecycledemo.databinding.ActivityMainBinding
class MainActivity : RxAppCompatActivity() {
val presenter = MainPresenter(t... | 0 | Kotlin | 0 | 0 | fc69d7105110f2e204196e86b6d96d555ba03aaa | 830 | RxLifecycleDemo | Apache License 2.0 |
src/main/kotlin/no/nav/syfo/application/db/Database.kt | navikt | 275,528,633 | false | {"Kotlin": 23763, "Dockerfile": 277} | package no.nav.syfo.application.db
import com.zaxxer.hikari.HikariConfig
import com.zaxxer.hikari.HikariDataSource
import com.zaxxer.hikari.pool.HikariPool
import java.net.ConnectException
import java.net.SocketException
import java.sql.Connection
import java.sql.ResultSet
import java.util.Properties
import no.nav.syf... | 1 | Kotlin | 1 | 0 | fbb026743352c6ee7b01fa52d1e969bd7542df5c | 3,170 | sparenajob | MIT License |
app/src/main/java/com/joblogic/db/ItemDao.kt | tplloi | 604,518,044 | false | null | package com.joblogic.db
import androidx.room.Dao
import androidx.room.Query
import com.joblogic.common.Constant.TABLE_NAME
import com.joblogic.model.Item
import com.loitp.core.base.BaseDao
/**
* Created by Loitp on 04,August,2022
* Galaxy One company,
* Vietnam
* +840766040293
* freuss47@gmail.com
*/
@Dao
inter... | 0 | Kotlin | 0 | 2 | 8ce29fb0a32d39e20e0476614a5855639f71c6dc | 502 | joblogictest | MIT License |
src/main/kotlin/dev/hybridlabs/aquatic/block/wood/HybridAquaticWoodTypes.kt | hybridlabs | 661,391,321 | false | {"Kotlin": 892890, "Java": 69899} | package dev.hybridlabs.aquatic.block.wood
import dev.hybridlabs.aquatic.HybridAquatic
import net.fabricmc.fabric.api.`object`.builder.v1.block.type.WoodTypeBuilder
import net.minecraft.block.WoodType
import net.minecraft.util.Identifier
object HybridAquaticWoodTypes {
val DRIFTWOOD: WoodType = WoodTypeBuilder.cop... | 6 | Kotlin | 0 | 4 | 82c3b26d6697d2e5666b173101ade38505a3fe4c | 598 | hybrid-aquatic | MIT License |
app/src/androidTest/java/es/deiividdev/com/to_do_list_espresso_test/MainActivityTest.kt | Deiivid | 813,100,500 | false | {"Kotlin": 12633} | package es.deiividdev.com.to_do_list_espresso_test
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.action.ViewActions.closeSoftKeyboard
import androidx.test.espresso.action.ViewActions.typeText
import androidx.test.espresso.assertion.Vi... | 0 | Kotlin | 0 | 0 | d47df562fb5c3a0d91fd6efdd266952eede20696 | 4,018 | To-Do-List-Espresso-Test | MIT License |
app/src/main/java/com/lanazirot/pokedex/ui/screens/game/states/GameUIState.kt | lanazirot | 621,097,461 | false | null | package com.lanazirot.pokedex.ui.screens.game.states
import com.lanazirot.pokedex.domain.models.Pokemon
sealed class GameUIState {
object Loading : GameUIState()
object Playing : GameUIState()
class PokemonFetched(var pokemon: Pokemon): GameUIState()
object FetchingPokemon : GameUIState()
object ... | 0 | Kotlin | 0 | 1 | c84b6db089b53195d274181833d99409876bb88b | 351 | pokedex-jetpack-compose | MIT License |
conductor-client/src/main/kotlin/com/openlattice/conductor/rpc/ConductorConfiguration.kt | openlattice | 101,697,464 | false | {"Git Config": 1, "Gradle Kotlin DSL": 4, "XML": 6, "JSON": 3, "HTML": 4, "INI": 11, "Shell": 23, "Text": 248, "Ignore List": 8, "Batchfile": 10, "Markdown": 13, "Gradle": 21, "YAML": 68, "Kotlin": 752, "Java": 556, "Java Properties": 8, "CODEOWNERS": 5, "Mustache": 8, "PLpgSQL": 7, "SQL": 14, "OASv3-yaml": 1} | package com.openlattice.conductor.rpc
import com.fasterxml.jackson.annotation.JsonProperty
import com.geekbeast.rhizome.configuration.Configuration
import com.geekbeast.rhizome.configuration.ConfigurationKey
import com.geekbeast.rhizome.configuration.SimpleConfigurationKey
import com.geekbeast.rhizome.configuration.co... | 0 | Kotlin | 3 | 4 | b836eea0a17128089e0dbe6719495413b023b2fb | 1,020 | openlattice | Apache License 2.0 |
src/main/kotlin/spock/adb/actions/GetCurrentFragmentAction.kt | WahdanZ | 167,228,299 | false | null | package spock.adb.actions
import com.android.ddmlib.IDevice
import spock.adb.AdbController
class GetCurrentFragmentAction : BaseAction() {
override fun performAction(controller: AdbController, device: IDevice) {
controller.currentFragment(device)
}
} | 7 | Kotlin | 4 | 99 | c9d4f94c7ef4b49330df5c5c77850270535a321c | 268 | SpockAdb | Apache License 2.0 |
src/main/kotlin/io/github/aeckar/iteration/Removable.kt | aeckar | 875,383,259 | false | {"Kotlin": 69589, "Java": 149} | package io.github.aeckar.iteration
/**
* Represents a removable element.
*/
public fun interface Removable {
public fun remove()
} | 0 | Kotlin | 0 | 1 | 985e92224cb1b297066ee0abae622e30088c3de3 | 137 | more-collections | MIT License |
app/src/main/java/com/yigitalasoy/stylestreetapp/di/ViewModelModule.kt | yigitalasoy | 773,178,241 | false | {"Kotlin": 271905} | package com.yigitalasoy.stylestreetapp.di
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import com.yigitalasoy.stylestreetapp.repository.AddressRepository
import com.yigitalasoy.stylestreetapp.repository.BasketRepository
import com.yigitalasoy.stylestreetapp.reposi... | 0 | Kotlin | 0 | 0 | 889d1becc8a84c1212d1aded658a362e5e7473ac | 3,779 | StyleStreet | Apache License 2.0 |
app/src/main/java/com/prime/media/core/compose/menu/DropDownMenu.kt | iZakirSheikh | 506,656,610 | false | {"Kotlin": 784567, "Java": 5225} | @file:Suppress("TransitionPropertiesLabel")
package com.prime.media.core.compose.menu
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.MutableTransitionState
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.tween
import andr... | 5 | Kotlin | 9 | 97 | a92a3d74451442b3dfb8d409c1177453c5d656a3 | 12,665 | Audiofy | Apache License 2.0 |
app/src/main/java/com/prasan/kotlinmvvmhiltflowapp/presentation/PopularPhotosAdapter.kt | prasannajeet | 278,659,253 | false | null | package com.prasan.kotlinmvvmhiltflowapp.presentation
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.prasan.kotlinmvvmhiltflowapp.ListItemClickListener
import com.prasan.kotlinmvvmhiltflowapp.data.datamodel.Photo
import com.prasan.kotlinmvvm... | 1 | Kotlin | 15 | 94 | 1196ce0092cea4fbf0c68cff1e2bc0060e2595c4 | 1,653 | kotlin-mvvm-hilt-flow-app | MIT License |
src/main/kotlin/com/toasttab/pulseman/state/protocol/text/TextState.kt | open-toast | 399,150,014 | false | {"Kotlin": 300586} | /*
* Copyright (c) 2021 Toast Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 3 | Kotlin | 4 | 8 | e7396fcf17f48008cb77b10f759145377f96b559 | 4,169 | pulseman | Apache License 2.0 |
app/src/main/kotlin/id/android/bootcamp/network/MarsApiService.kt | budioktaviyan | 706,432,297 | false | {"Kotlin": 16199} | package id.android.bootcamp.network
import retrofit2.http.GET
interface MarsApiService {
@GET("photos")
suspend fun getPhotos(): List<MarsPhoto>
} | 0 | Kotlin | 0 | 1 | dadb70fe84ba49ae70e9c64b245c655a5462aaee | 153 | juara-android-5 | MIT License |
samples/MiscellaneousSamplesKt/app/src/com/pdftron/android/pdfnetsdksamples/samples/U3DTest.kt | NityaNandPandey | 158,280,716 | false | {"Java": 7848044, "C++": 1336563, "C": 244200, "Objective-C": 10868, "HTML": 4282, "IDL": 642} | //---------------------------------------------------------------------------------------
// Copyright (c) 2001-2018 by PDFTron Systems Inc. All Rights Reserved.
// Consult legal.txt regarding legal and license information.
//---------------------------------------------------------------------------------------
packa... | 0 | Java | 0 | 1 | 7a61d488c718dcb1246ed168502a6a3e6921fc87 | 6,185 | AndroidPDF | Apache License 2.0 |
app/src/main/java/com/challenge/itunes/view/list/ListFragment.kt | yslvlln | 437,294,569 | false | null | package com.challenge.itunes.view.list
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
import com.challe... | 0 | Kotlin | 0 | 1 | 348a7871940f5a0bf08b731fe3c79fe3cd66e363 | 4,106 | appetiser-challenge | MIT License |
app/src/main/java/com/onion/signin/presentation/di/PresentationModule.kt | adgj5472 | 594,992,903 | false | null | package com.onion.signin.presentation.di
import com.onion.signin.data.repository.Repository
import com.onion.signin.domain.usecase.UseCase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
object Pres... | 0 | Kotlin | 0 | 0 | 9560d52c98b8c0141c3f988ff4a6a20a858e6f4e | 452 | andorid_compose_architecture_demo | MIT License |
comicDetails/src/main/java/com/fzellner/marvelappcompose/comicdetails/data/remote/model/ComicDetailResponse.kt | fzellner | 751,007,996 | false | {"Kotlin": 79990} | package com.fzellner.marvelappcompose.comicdetails.data.remote.model
data class ComicDetailResponse(
val data: ComicDataResponse
)
data class ComicDataResponse(
val results: List<ComicDetail>
)
data class ComicDetail(
val id: Int,
val title: String,
val textObjects: List<TextObjectsResponse>,
... | 0 | Kotlin | 0 | 0 | 7749877ee7de1e61877e26ef9edb83eaf580603c | 948 | MarvelAppCompose | Apache License 2.0 |
clients/android/NewsBlur/app/src/main/java/com/newsblur/viewModel/StoriesViewModel.kt | samuelclay | 101,248 | false | null | package com.newsblur.viewModel
import android.database.Cursor
import android.os.CancellationSignal
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.newsblur.database.BlurDatabaseHelper
import com.newsblu... | 128 | Objective-C | 988 | 6,447 | cc748198db2b65f6fd47aa59e641963b3bec3f06 | 1,146 | NewsBlur | MIT License |
integration-tests/src/test/resources/kapt3/workload/src/main/java/com/example/AClass.kt | google | 297,744,725 | false | null | package com.example
import com.example.annotation.Builder
import hello.HELLO
@Builder
class AClass(private val a: Int, val b: String, val c: Double, val d: HELLO) {
val p = "$a, $b, $c"
fun foo() = HELLO()
val hello = HELLO()
var hello2: HELLO = HELLO()
get() { return hello2 }
private ... | 370 | null | 268 | 2,854 | a977fb96b05ec9c3e15b5a0cf32e8e7ea73ab3b3 | 396 | ksp | Apache License 2.0 |
core/src/main/java/io/github/thibaultbee/streampack/internal/utils/av/video/vpx/Level.kt | ThibaultBee | 262,623,449 | false | {"Kotlin": 1029204, "TypeScript": 8} | package io.github.thibaultbee.streampack.internal.utils.av.video.vpx
import android.media.MediaCodecInfo.CodecProfileLevel.VP9Level1
import android.media.MediaCodecInfo.CodecProfileLevel.VP9Level11
import android.media.MediaCodecInfo.CodecProfileLevel.VP9Level2
import android.media.MediaCodecInfo.CodecProfileLevel.VP9... | 17 | Kotlin | 70 | 202 | ab8027231982e5e8280fb99812dcd6d0ef28440d | 2,055 | StreamPack | Apache License 2.0 |
vector/src/test/java/im/vector/app/screenshot/PaparazziRule.kt | tchapgouv | 340,329,238 | false | null | /*
* Copyright (c) 2022 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 4 | Kotlin | 4 | 9 | 9bd50a49e0a5a2a17195507ef3fe96594ddd739e | 1,284 | tchap-android | Apache License 2.0 |
RetenoSdkCore/src/main/java/com/reteno/core/data/local/database/manager/RetenoDatabaseManagerInAppInteraction.kt | reteno-com | 545,381,514 | false | {"Kotlin": 1330312, "Java": 159488, "HTML": 17807, "Shell": 379} | package com.reteno.core.data.local.database.manager
import com.reteno.core.data.local.model.interaction.InAppInteractionDb
interface RetenoDatabaseManagerInAppInteraction {
fun insertInteraction(interaction: InAppInteractionDb)
fun getInteractions(limit: Int? = null): List<InAppInteractionDb>
fun getInApp... | 1 | Kotlin | 1 | 1 | c7fb9c6289fa901599c6ba23a0ececdbba6a4648 | 496 | reteno-mobile-android-sdk | MIT License |
android/features/recipe/input/src/main/kotlin/io/chefbook/features/recipe/input/ui/screens/details/components/ServingsBlock.kt | mephistolie | 379,951,682 | false | {"Kotlin": 1334117, "Ruby": 16819, "Swift": 352} | package io.chefbook.features.recipe.input.ui.screens.details.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Mo... | 0 | Kotlin | 0 | 12 | ddaf82ee3142f30aee8920d226a8f07873cdcffe | 1,419 | chefbook-mobile | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/quickfix/abstract/notImplementedMemberFromAbstractClass.kt | ingokegel | 72,937,917 | true | null | // "Make 'B' 'abstract'" "true"
abstract class A {
abstract fun foo()
}
<caret>class B : A() {
}
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddModifierFixFE10
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.AddModifierFix | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 252 | intellij-community | Apache License 2.0 |
app/src/main/java/com/xily/kotlinweather/widget/WeatherWidget.kt | Xily9 | 137,105,320 | false | {"Kotlin": 167408} | package com.xily.kotlinweather.widget
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.Context
import android.content.Intent
import android.widget.RemoteViews
import com.google.gson.Gson
import com.xily.kotlinweather.BuildConf... | 0 | Kotlin | 0 | 1 | 30693906d3855fc115ba398f561c81478d38cd23 | 3,289 | KotlinWeather | MIT License |
src/main/kotlin/org/dropProject/security/PersonalTokenAuthenticationFilter.kt | drop-project-edu | 173,646,045 | false | null | /*-
* ========================LICENSE_START=================================
* DropProject
* %%
* Copyright (C) 2019 - 2021 <NAME>
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 2 | Kotlin | 11 | 22 | e27fbdb74d74033d5ea4aa898b9be01549db70ac | 2,914 | drop-project | Apache License 2.0 |
src/commonMain/kotlin/panels/EpisodeInfoPanel.kt | kotlinfunc | 565,100,240 | false | null | package panels
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.onClick
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.PlayCircleFilled
import androidx.compose.material.icons.filled.Sh... | 0 | null | 0 | 0 | 4ac5e027fb2f63eb7235ce2add8be6d36002d711 | 3,287 | yandex-music-kotlin | Do What The F*ck You Want To Public License |
src/main/kotlin/org/trubitsyn/deadlinks/DeadLinkInspection.kt | trubitsyn | 131,664,125 | false | null | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 2 | Kotlin | 0 | 0 | 2afdddca9276159f194dec77e89f7011f2aa4e10 | 1,560 | idea-dead-links | Apache License 2.0 |
waltid-libraries/auth/waltid-ktor-authnz/src/test/kotlin/id/walt/GenerateToken.kt | walt-id | 701,058,624 | false | {"Kotlin": 3448224, "Vue": 474904, "TypeScript": 129086, "Swift": 40383, "JavaScript": 18819, "Ruby": 15159, "Dockerfile": 13118, "Python": 3114, "Shell": 1783, "Objective-C": 388, "CSS": 345, "C": 104} | package id.walt
import id.walt.crypto.keys.KeyManager
import id.walt.crypto.keys.KeySerialization
import id.walt.crypto.keys.jwk.JWKKey
import id.walt.crypto.utils.JsonUtils.toJsonObject
import kotlinx.serialization.json.Json
import kotlinx.serialization.json.jsonObject
/** read from stdin until an blank line is enco... | 20 | Kotlin | 46 | 121 | 48c6b8cfef532e7e837db0bdb39ba64def985568 | 2,027 | waltid-identity | Apache License 2.0 |
core/model/src/commonMain/kotlin/io/github/droidkaigi/confsched2022/model/TimetableLanguage.kt | DroidKaigi | 517,191,221 | false | {"Kotlin": 511156, "Swift": 158736, "Shell": 3888, "JavaScript": 521} | package io.github.droidkaigi.confsched2022.model
import kotlinx.serialization.Serializable
@Serializable
public data class TimetableLanguage(
val langOfSpeaker: String,
val isInterpretationTarget: Boolean,
)
| 38 | Kotlin | 189 | 491 | f0ae974c7862e3ff4d70c4841d93ea64bff11ce1 | 218 | conference-app-2022 | Apache License 2.0 |
app/src/main/java/io/baranmichal/thecaseagainstlivedata/base/di/ApplicationComponent.kt | PawlikMichal25 | 143,072,149 | false | null | package io.baranmichal.thecaseagainstlivedata.base.di
import dagger.Component
import io.baranmichal.thecaseagainstlivedata.LifeApplication
import io.baranmichal.thecaseagainstlivedata.base.data.network.NetworkModule
import io.baranmichal.thecaseagainstlivedata.base.di.scopes.PerApp
import io.baranmichal.thecaseagainst... | 0 | Kotlin | 4 | 12 | 107d65a273d16ccf4d9d9c751b602a7be8cc0e39 | 640 | LifecycleAwarePresenter | Apache License 2.0 |
app/src/main/java/id/banggibima/mobi/EditValueActivity.kt | smkn5malang | 178,896,758 | false | null | package id.banggibima.mobi
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
class EditValueActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setCon... | 0 | Kotlin | 0 | 0 | cd1e01132fc20bca01e97b5ab07bd58b2870170a | 564 | smkcoding_mobi | The Unlicense |
app/src/main/java/com/marmutech/ramdantimetable/ramadantimetable/domain/country/GetSelectedCountryNameUseCase.kt | r-phyan-kwee-tech | 130,822,417 | false | {"Kotlin": 172950} | package com.marmutech.ramdantimetable.ramadantimetable.domain.country
class GetSelectedCountryNameUseCase {
}
| 0 | Kotlin | 0 | 3 | 31d219fed0d92a583686e2f22aa73e5379730a0d | 111 | ramdhan-android | The Unlicense |
tinydvm/src/main/kotlin/com/github/netomi/bat/tinydvm/data/Status.kt | netomi | 265,488,804 | false | {"Kotlin": 1925501, "Smali": 713862, "ANTLR": 25494, "Shell": 12074, "Java": 2326} | /*
* Copyright (c) 2020-2022 Thomas Neidhart.
*
* 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 | Kotlin | 3 | 10 | 5f5ec931c47dd34f14bd97230a29413ef1cf219c | 835 | bat | Apache License 2.0 |
common/ui-kit/src/main/kotlin/ru/maksonic/beresta/common/ui_kit/helpers/Lerp.kt | maksonic | 580,058,579 | false | {"Kotlin": 1622432} | package ru.maksonic.beresta.common.ui_kit.helpers
import kotlin.math.roundToInt
import kotlin.math.roundToLong
/**
* @Author maksonic on 14.10.2023
*/
/**
* Linearly interpolate between [start] and [stop] with [fraction] fraction between them.
*/
fun lerp(start: Float, stop: Float, fraction: Float): Float {
r... | 0 | Kotlin | 0 | 0 | 227b0a5f6c27b0f731b1f6e81b1fe2deeaa720aa | 828 | Beresta | MIT License |
app/src/main/java/com/suda/yzune/wakeupschedule/schedule/ExportSettingsFragment.kt | hjzh64 | 241,245,156 | true | {"Kotlin": 704557} | package com.suda.yzune.wakeupschedule.schedule
import android.os.Bundle
import android.os.Environment
import android.view.View
import androidx.fragment.app.BaseDialogFragment
import androidx.fragment.app.activityViewModels
import com.suda.yzune.wakeupschedule.R
import com.suda.yzune.wakeupschedule.utils.Utils
import e... | 0 | null | 0 | 0 | b2db9a108deed0239c514940e9378496433ce59f | 3,748 | WakeupSchedule_Kotlin | Apache License 2.0 |
rest-api/internal/user-access/api/src/main/kotlin/github/makeitvsolo/kweather/user/access/api/service/user/dto/AuthorizedUserDto.kt | makeitvsolo | 743,151,452 | false | {"Kotlin": 294456, "TypeScript": 606, "JavaScript": 469, "HTML": 354} | package github.makeitvsolo.kweather.user.access.api.service.user.dto
data class AuthorizedUserDto(
val token: AccessTokenDto,
val user: ActiveUserDto
)
| 1 | Kotlin | 0 | 0 | 2664ab660be3047a27e32b0f56e7cc8da7df13cd | 161 | kweather | MIT License |
src/test/kotlin/br/com/erivelton/rest/pix/chave/controle/BuscaChaveControleTest.kt | eriveltonluiz | 387,615,008 | true | {"Kotlin": 35704, "Smarty": 2172, "Dockerfile": 156} | package br.com.erivelton.rest.pix.chave.controle
import br.com.erivelton.pix.*
import br.com.erivelton.pix.DadosPixGeralResposta.PixGeralResposta
import br.com.erivelton.rest.pix.chave.dto.resposta.DadosChavePixResposta
import br.com.erivelton.rest.pix.chave.dto.resposta.DetalhesChavePixResposta
import br.com.erivelto... | 0 | Kotlin | 0 | 0 | c63d8eb9eeb4a533261fdbb52ac3d83cd1e205fc | 7,635 | orange-talents-05-template-pix-keymanager-rest | Apache License 2.0 |
common/src/main/kotlin/net/jidb/to/base/library/AdvancedLibraryBuilder.kt | joshmanisdabomb | 792,058,607 | false | {"Kotlin": 159195, "Java": 2164} | package net.jidb.to.base.library
interface AdvancedLibraryBuilder<I, V> {
fun <J : I> i(entry: Library<I, V>.LibraryEntry<out I, out V>, input: J): V
}
| 1 | Kotlin | 0 | 0 | 1855dffac59de624b6277a3d000fe4af07804a14 | 159 | to-lay-the-foundations | BSD Zero Clause License |
app/src/main/java/com/example/wellcome/db/HostRestriction.kt | WellcomeSolution | 407,485,016 | false | {"Kotlin": 189938, "Java": 72597} | package com.example.wellcome.db
import androidx.room.Entity
@Entity
data class HostRestrictions(
var travelers: Int = 0,
var childs: Int,
var pets: Int,
var babies: Int) | 0 | Kotlin | 0 | 3 | 6e01f6922c3c8ce86df15286f94ced6ea8b5e185 | 187 | Wellcome | MIT License |
tags/src/main/kotlin/net/fabricmc/bot/tags/Utils.kt | FabricMC | 272,279,496 | false | null | package net.fabricmc.bot.tags
import java.io.File
/** Given a file and path prefix, return a String representing the file path without the prefix. **/
fun File.withoutPrefix(prefix: String) = this.toString().removePrefix(prefix).replace(File.separator, "/")
| 20 | Kotlin | 10 | 7 | 16622cffbc0622c6ca461bfb887f39849fa2b935 | 260 | kotlin-fabric-discord-bot | MIT License |
vendor/vendor-android/base/src/main/kotlin/com/malinskiy/marathon/android/executor/listeners/pull/PullScreenshotTestRunListener.kt | jeksor | 397,518,962 | true | {"Kotlin": 521669, "JavaScript": 41573, "SCSS": 27631, "HTML": 2925, "Shell": 2350, "CSS": 1662} | package com.malinskiy.marathon.android.executor.listeners.pull
import com.malinskiy.marathon.android.AndroidDevice
import com.malinskiy.marathon.android.executor.listeners.TestRunListener
import com.malinskiy.marathon.device.DevicePoolId
import com.malinskiy.marathon.device.toDeviceInfo
import com.malinskiy.marathon.e... | 0 | Kotlin | 0 | 0 | dd06768bbaa2849349a56a1f4b623da2509e6a06 | 3,747 | marathon | Apache License 2.0 |
app/src/main/java/com/example/gameoflife/login_screens/CreateProfileFragment.kt | TheDeepDaemon | 489,138,653 | false | null | package com.example.gameoflife.login_screens
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.EditText
import androidx.fragment.app.Fragment
import com.example.gameoflife.ApplicationRepository
import co... | 0 | Kotlin | 0 | 0 | 40da3acde2ee5f1f9cf454f943cfc91d0d77da26 | 2,613 | game-of-life-android | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Frog.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,819 | icons | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Frog.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
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
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,819 | icons | MIT License |
CommonUI/src/main/java/com/drivequant/drivekit/common/ui/component/triplist/viewholder/HeaderDayViewHolder.kt | DriveQuantPublic | 216,339,559 | false | {"Kotlin": 1620024, "Java": 8753} | package com.drivequant.drivekit.common.ui.component.triplist.viewholder
import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import kotlinx.android.synthetic.main.group_item_trip_list.view.*
internal class HeaderDayViewHolder(view:... | 1 | Kotlin | 2 | 9 | 596a46ce63257f5aad5f5b8eddd57de4e5454ef7 | 529 | drivekit-ui-android | Apache License 2.0 |
classes/class07/app/src/main/java/br/edu/ifsp/scl/ads/pdm/ciclopdm/MainActivity.kt | jmmarao | 522,103,743 | false | null | package br.edu.ifsp.scl.ads.pdm.ciclopdm
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.PersistableBundle
import android.util.Log
import android.widget.EditText
import android.widget.LinearLayout
import br.edu.ifsp.scl.ads.pdm.ciclopdm.databinding.ActivityMainBinding
// To ... | 0 | Kotlin | 0 | 0 | 5973e6427802ae464560cf8f8c4c732971d03a66 | 3,073 | ws-mobile-programming | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/RadioButton.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.RadioButton: ImageVector
get() {
if (_radioButton != null) ... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 988 | compose-fluent-ui | Apache License 2.0 |
app/src/main/java/com/skydoves/githubfollows/view/adapter/BaseAdapter.kt | ONO-Group | 121,474,662 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 65, "JSON": 3, "XML": 21, "Java": 3, "Gradle Kotlin DSL": 1} | package com.skydoves.githubfollows.view.adapter
import android.support.annotation.LayoutRes
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.skydoves.githubfollows.view.viewholder.BaseViewHolder
import java.util.*
/**
*... | 1 | null | 1 | 1 | d4a3342fc08f75ceb3145e2de7744345e35fa3d5 | 4,625 | GithubFollows | MIT License |
app/src/main/java/io/appwrite/messagewrite/models/db/User.kt | abnegate | 777,669,864 | false | {"Kotlin": 59858} | package io.appwrite.messagewrite.models.db
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class User(
@PrimaryKey(autoGenerate = true) val uid: Int = 0,
val createdAt: String,
val updatedAt: String,
val collectionId: String,
val databaseId: String,
val userId: String,... | 0 | Kotlin | 0 | 0 | c8a3574c53c211cb98ea445f645865412716a91a | 401 | hackathon-chat | MIT License |
Lua/src/me/anno/lua/utils/WhileTrueYield.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10912545, "C": 236426, "Java": 6754, "Lua": 4496, "C++": 3070, "GLSL": 2698} | package me.anno.lua.utils
import me.anno.utils.ShutdownException
import org.luaj.vm2.Globals
import org.luaj.vm2.LuaThread
import org.luaj.vm2.LuaThread.STATUS_DEAD
import org.luaj.vm2.LuaValue
import org.luaj.vm2.Varargs
import org.luaj.vm2.lib.LibFunction
class WhileTrueYield(
val globals: Globals,
val func... | 0 | Kotlin | 3 | 24 | 013af4d92e0f89a83958008fbe1d1fdd9a10e992 | 1,098 | RemsEngine | Apache License 2.0 |
app/src/main/java/com/judahben149/fourthwall/domain/usecase/user/TopUpBalanceUseCase.kt | judahben149 | 850,814,605 | false | {"Kotlin": 286081} | package com.judahben149.fourthwall.domain.usecase.user
import com.judahben149.fourthwall.data.repository.UserAccountRepository
import javax.inject.Inject
class TopUpBalanceUseCase @Inject constructor(
private val userAccountRepository: UserAccountRepository
) {
suspend operator fun invoke(accountId: Int, amo... | 0 | Kotlin | 0 | 0 | 90513585b7b89ea00b35a19a4b89c2a726187b18 | 411 | FourthWall | MIT License |
src/main/kotlin/es/unizar/webeng/hello/HelloController.kt | albertomur96 | 149,778,530 | true | {"Kotlin": 14347, "Java": 4316, "JavaScript": 3449, "HTML": 2036} | package es.unizar.webeng.hello
import org.springframework.beans.factory.annotation.Value
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.*
import khttp.get // Http library for kotlin
import org.json.*
import java.util.Random
import org.springframework.beans.factory.anno... | 0 | Kotlin | 0 | 0 | 3fa997e2d130a526ed51cb8b568820db8ec482fe | 6,515 | lab1-git-race | MIT License |
src/main/kotlin/com/dpforge/ibmpc/graphic/RetraceSynchronizer.kt | int02h | 426,397,665 | false | {"Kotlin": 257077, "Assembly": 189629, "Shell": 90} | package com.dpforge.ibmpc.graphic
import com.dpforge.ibmpc.extensions.exhaustive
import kotlin.math.roundToLong
class RetraceSynchronizer {
var inHorizontalRetrace = false
private set
var inVerticalRetrace = false
private set
private var verticalRetraceDurationNanos: Long = 0L
privat... | 0 | Kotlin | 0 | 3 | eff28d661750ca511dafae930fe2b911f8d7b5d9 | 3,628 | ibm-pc | MIT License |
test/src/me/anno/tests/utils/SpellcheckTest.kt | AntonioNoack | 456,513,348 | false | {"Kotlin": 10736182, "C": 236426, "Java": 6754, "Lua": 4404, "C++": 3070, "GLSL": 2698} | package me.anno.tests.utils
import me.anno.Engine
import me.anno.engine.OfficialExtensions
import me.anno.language.spellcheck.Spellchecking
import me.anno.utils.Sleep
import me.anno.utils.assertions.assertContains
import me.anno.utils.assertions.assertEquals
import org.junit.jupiter.api.Test
class SpellcheckTest {
... | 0 | Kotlin | 3 | 24 | 63377c2e684adf187a31af0f4e5dd0bfde1d050e | 813 | RemsEngine | Apache License 2.0 |
api/src/main/kotlin/com/r3/demos/ubin2a/api/controller/NettingApi.kt | project-ubin | 110,582,332 | false | null | package com.r3.demos.ubin2a.api.controller
import com.r3.demos.ubin2a.account.CheckDeadlockFlow
import com.r3.demos.ubin2a.account.StartLSMFlow
import com.r3.demos.ubin2a.base.DeadlockModel
import com.r3.demos.ubin2a.base.ExceptionModel
import com.r3.demos.ubin2a.base.toSimpleString
import com.r3.demos.ubin2a.plan.Net... | 3 | Kotlin | 51 | 81 | 8eb2ab9a3decb92b2c258f2c6dd7a2b4e7ca95f8 | 3,426 | ubin-corda | Apache License 2.0 |
models/src/main/kotlin/com/dentalmonitoring/kplan/model/PastLink.kt | DentalMonitoring | 110,231,677 | false | null | package com.dentalmonitoring.kplan.model
data class PastLink(
val info: Info,
val output: Any
) {
constructor(pastStateId: StateId, nextStateId: StateId, instanceId: InstanceId, linkType: Link.Type, linkName: String, output: Any)
: this(Info(Id(pastStateId, nextStateId, instanceId), Link.Id(lin... | 0 | Kotlin | 0 | 2 | f028c81949ef1f8178e32c653b1782b615295f88 | 813 | K-Plan | MIT License |
chatbot/src/main/kotlin/io/github/lunarwatcher/chatbot/bot/commands/Meta.kt | LunarWatcher | 129,409,498 | false | null | package io.github.lunarwatcher.chatbot.bot.commands
import io.github.lunarwatcher.chatbot.BotCore
import io.github.lunarwatcher.chatbot.Configurations
import io.github.lunarwatcher.chatbot.Constants
import io.github.lunarwatcher.chatbot.Database
import io.github.lunarwatcher.chatbot.bot.ReplyBuilder
import io.github.l... | 1 | null | 1 | 1 | 50e6d124cb3dbab7d79be3cc61b1c4aa45cbcc68 | 9,720 | NN-chatbot-legacy | Apache License 2.0 |
agp-compat/base/src/main/kotlin/sh/christian/aaraar/gradle/agp/AndroidExtension.kt | christiandeange | 588,680,111 | false | {"Kotlin": 195825, "Shell": 1171} | package sh.christian.aaraar.gradle.agp
/**
* A facade of some of the interactions with the `android` extension on an Android module.
*/
interface AndroidExtension {
/**
* Allows for registration of a callback to be called with build type names.
*/
fun onBuildTypes(callback: (String) -> Unit)
/**
* Re... | 0 | Kotlin | 1 | 29 | feeb35015a3fbd5d39fd7fc6452a52dba85a1825 | 467 | aaraar | Apache License 2.0 |
src/main/kotlin/dev/aaronhowser/mods/geneticsresequenced/recipes/machine/DnaExtractorRecipe.kt | aaronhowser1 | 780,170,281 | false | {"Kotlin": 564933} | package dev.aaronhowser.mods.geneticsresequenced.recipes.machine
import com.google.gson.JsonObject
import dev.aaronhowser.mods.geneticsresequenced.items.DnaHelixItem.Companion.getGene
import dev.aaronhowser.mods.geneticsresequenced.items.DnaHelixItem.Companion.setGene
import dev.aaronhowser.mods.geneticsresequenced.it... | 5 | Kotlin | 0 | 1 | 11d035ab2a3f002ac6f2ebb392c242ce3d16636c | 5,370 | Genetics-Resequenced | MIT License |
app/src/main/java/com/helpinghand/pysenses/MainActivity.kt | code-infinite | 267,010,532 | false | null | package com.helpinghand.pysenses
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.hardware.camera2.CameraCharact... | 0 | Kotlin | 0 | 2 | 3905a8628bf1acd31b0b20471a2f35c59ad8a9cc | 11,529 | Helping-Hand-for-Divyajan | MIT License |
Base/src/main/java/xy/xy/base/picture/widget/SelectLocalMediaListener.kt | xiuone | 291,512,847 | false | null | package xy.xy.base.picture.widget
import android.widget.ImageView
import com.luck.picture.lib.entity.LocalMedia
interface SelectLocalMediaListener {
fun onStartSelectMedia()
fun onMediaClicked(mediaList:MutableList<LocalMedia>, clickedPosition:Int)
fun onCreateIconView():ImageView?
fun onCreateMoreIco... | 0 | Kotlin | 1 | 2 | 51bc46fde7d03484241b04cddc77236dbecf4469 | 340 | ajinlib | Apache License 2.0 |
src/test/kotlin/com/rbkmoney/claimmanagementapi/auth/utils/KeycloakOpenIdStub.kt | valitydev | 435,815,387 | false | null | package com.rbkmoney.claimmanagementapi.auth.utils
import com.github.tomakehurst.wiremock.client.WireMock
class KeycloakOpenIdStub(
keycloakAuthServerUrl: String,
private val keycloakRealm: String,
private val jwtTokenBuilder: JwtTokenBuilder
) {
private val issuer = "$keycloakAuthServerUrl/realms/$ke... | 1 | Kotlin | 0 | 0 | 927ecdd744c115a8ef1e6f9d7756dd464bbdba68 | 2,107 | claim-management-api | Apache License 2.0 |
microservices/example-service/src/main/kotlin/com/mew/boilerplate/example/db/repositories/RoleRepository.kt | Mewgrammer | 437,654,148 | false | {"Kotlin": 21215, "Dockerfile": 454} | package com.mew.boilerplate.example.db.repositories
import com.mew.boilerplate.example.db.entities.Role
import com.mew.boilerplate.example.db.entities.User
import org.mapstruct.factory.Mappers
import org.springframework.data.domain.Example
import org.springframework.data.jpa.repository.JpaRepository
import org.springf... | 0 | Kotlin | 0 | 0 | 1f10d229ff6d851ae69746ecbd93583bbf560515 | 479 | spring-boot-kotlin-example | MIT License |
core/src/main/kotlin/org/bastanchu/churiservices/core/api/model/orders/OrderHeader.kt | vellebue | 723,669,515 | false | {"Kotlin": 129965} | package org.bastanchu.churiservices.core.api.model.orders
import io.swagger.v3.oas.annotations.media.Schema
import org.bastanchu.churiservices.core.api.model.addresses.Address
import java.math.BigDecimal
@Schema(name = "OrderHeader",
description = "Order header structure to serve orders.")
data class OrderHea... | 0 | Kotlin | 0 | 0 | 7a0b61e92ecd7de5ef6d13f201b77cb13fceb7fd | 3,066 | churiservices | Apache License 2.0 |
core/common/src/main/kotlin/com/seosh817/moviehub/core/common/network/di/CoroutineScopeModule.kt | seosh817 | 722,390,551 | false | {"Kotlin": 509360} | /*
* Copyright 2024 seosh817 (Seunghwan Seo)
*
* 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... | 12 | Kotlin | 0 | 3 | 5af5dfa9318e442edac62d9316dfd0b74fa258ee | 1,488 | MovieHub | Apache License 2.0 |
demosales-domain/products/src/main/java/com/imecatro/demosales/domain/products/model/Currencies.kt | zayelmech | 590,652,781 | false | {"Kotlin": 179013} | package com.imecatro.demosales.domain.products.model
enum class Currencies(val code: String) {
Dollar("USD"),
MexicanPeso("MXN"),
Euros("EUR")
}
| 5 | Kotlin | 1 | 1 | cf973543dcebce4d058b1ba8a3a6b5e6efcf0e78 | 162 | PuntroSales-Demo | MIT License |
app/src/androidTest/java/com/ik/mvvmtaskapp/utils/ReadUtils.kt | ievakrumina | 456,823,105 | false | null | package com.ik.mvvmtaskapp.utils
| 1 | Kotlin | 0 | 0 | d207831ed5402c6e7c9b1aba2786344c50c00074 | 34 | MVVMTaskApp | Apache License 2.0 |
Server/MiraiAndroid/app/src/main/java/io/github/mzdluo123/mirai/android/miraiconsole/AndroidMiraiConsole.kt | panyihang | 324,390,518 | false | {"Text": 3, "Markdown": 23, "Gradle Kotlin DSL": 8, "Java Properties": 9, "Shell": 3, "Batchfile": 3, "Kotlin": 331, "XML": 439, "Java": 262, "Gradle": 11, "SVG": 1, "Proguard": 2, "Ignore List": 2, "AIDL": 1, "INI": 2} | package io.github.mzdluo123.mirai.android.miraiconsole
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.util.Log
import androidx.core.app.NotificationManagerCompat
import io.github.mzdluo123.mirai.android.AppSettings
import io.github.mzdluo123.mirai.and... | 1 | null | 1 | 1 | e7157a91ac858400816e431d14e5525a1a303fcf | 6,155 | SmartHome-APP | MIT License |
compiler/testData/ir/irText/stubs/simple.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
val test = 2 + 2
| 151 | Kotlin | 5478 | 44,267 | 7545472dd3b67d2ac5eb8024054e3e6ff7795bf6 | 35 | kotlin | Apache License 2.0 |
Android/Android-CardAutoFill/app/src/main/java/com/mastercard/android/test/savecardsref/MainActivity.kt | Mastercard | 314,514,481 | false | null | package com.mastercard.android.test.savecardsref
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.RecyclerView
import com.mastercard.android.test.savecardsref.adapter.Card
import com.m... | 1 | Kotlin | 1 | 2 | da27c56fc99b4f5022138c0938465e2739d9b4fe | 2,161 | digital-first-card-autofill | Apache License 2.0 |
compiler/backend/src/org/jetbrains/kotlin/codegen/when/SwitchCodegen.kt | JakeWharton | 99,388,807 | true | null | /*
* Copyright 2000-2018 JetBrains s.r.o. 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.codegen.`when`
import org.jetbrains.kotlin.codegen.ExpressionCodegen
import org.jetbrains.kotlin.psi.KtWhenExpression
import o... | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 6,321 | kotlin | Apache License 2.0 |
src/dynamic/PowerSetTest.kt | agapeteo | 157,038,583 | false | null | package dynamic
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.Assertions.*
internal class PowerSetTest {
@Test
fun powerSet() {
println(PowerSet.powerSet(listOf(1, 2, 3)))
}
} | 1 | Kotlin | 1 | 1 | b5662c8fe416e277c593931caa1b29b7f017ef60 | 217 | kotlin-data-algo | MIT License |
src/main/java/net/eduard/api/server/MachineSystem.kt | EduardMaster | 103,982,025 | false | {"Gradle Kotlin DSL": 11, "Markdown": 2, "INI": 2, "Shell": 1, "Java Properties": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "Java": 95, "YAML": 3, "Kotlin": 199} | package net.eduard.api.server
import org.bukkit.entity.Player
interface MachineSystem : PluginSystem{
fun unstallMachinesOfAtPlot(player : Player)
} | 0 | Java | 5 | 7 | bb778365ce76fabbdbc516b918b4feedee7edf12 | 155 | MineToolkit | MIT License |
app/src/main/java/kr/hs/dgsw/dbook/model/LibraryResponse.kt | D-Book | 275,785,665 | false | {"Gradle": 3, "Java Properties": 4, "Shell": 2, "Text": 1, "Ignore List": 3, "Batchfile": 2, "Markdown": 1, "Proguard": 1, "Java": 13, "XML": 155, "Kotlin": 47, "JavaScript": 1, "Diff": 1} | package kr.hs.dgsw.dbook.model
import com.google.gson.annotations.SerializedName
data class LibraryResponse (
var code : Int = 0,
var message : String? = null,
@SerializedName("object")
var bookList : LibraryObjectData? = null
){
companion object{
var instance : LibraryResponse? = null
... | 0 | JavaScript | 0 | 0 | 9771b5293fb16a59a00e459e7808c08745712571 | 324 | Android | MIT License |
buildSrc/src/main/kotlin/buildsrc/utils/intellij.kt | adamko-dev | 598,382,061 | false | null | package buildsrc.utils
import org.gradle.api.Project
import org.gradle.api.file.ProjectLayout
import org.gradle.plugins.ide.idea.model.IdeaModule
/** exclude generated Gradle code, so it doesn't clog up search results */
fun IdeaModule.excludeGeneratedGradleDsl(layout: ProjectLayout) {
val generatedSrcDirs = list... | 21 | null | 5 | 48 | 4e0f7a7b4f66d7331580f5807bfe301624e9c7ba | 1,167 | dokkatoo | Apache License 2.0 |
idea/testData/completion/basic/common/classObjectElementsInClass.kt | dzharkov | 18,439,675 | true | {"Markdown": 33, "XML": 603, "Ant Build System": 32, "Ignore List": 8, "Kotlin": 16416, "Java": 4173, "Protocol Buffer": 3, "Text": 3441, "JavaScript": 66, "JAR Manifest": 2, "Roff": 30, "Roff Manpage": 10, "INI": 7, "HTML": 114, "Groovy": 19, "Maven POM": 47, "Gradle": 67, "Java Properties": 9, "CSS": 10, "JFlex": 3, ... | class Some {
default object {
val coProp = 12
fun coFun = 12
}
fun some() {
val a = co<caret>
}
}
// EXIST: coProp, coFun | 0 | Java | 1 | 0 | 41c087139bf2533281fc40071cb5a400c50fd020 | 164 | kotlin | Apache License 2.0 |
src/main/kotlin/com/vyperplugin/references/VyperReferenceBase.kt | NikitaMishin | 176,284,085 | false | null | package com.vyperplugin.references
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiElementResolveResult
import com.intellij.psi.PsiPolyVariantReferenceBase
import com.intellij.psi.impl.source.resolve.ResolveCache
import com.vyperplugin.psi.VyperElement
import co... | 3 | null | 3 | 23 | 71930e0bbb552e7e3950fb8a618390b022782974 | 1,816 | vyper-plugin | Apache License 2.0 |
app/src/main/java/com/ctech/eaty/annotation/Lightness.kt | dbof10 | 116,687,959 | false | null | package com.ctech.eaty.annotation
import android.support.annotation.IntDef
const val IS_LIGHT = 0L
const val IS_DARK = 1L
const val LIGHTNESS_UNKNOWN = 2L
@Retention(AnnotationRetention.SOURCE)
@IntDef(IS_LIGHT, IS_DARK, LIGHTNESS_UNKNOWN)
annotation class Lightness | 2 | null | 11 | 49 | 2e3445debaedfea03f9b44ab62744046fe07f1cc | 269 | hunt-android | Apache License 2.0 |
app/src/main/kotlin/com/mgaetan89/showsrage/view/ColoredToolbar.kt | MGaetan89 | 38,072,270 | false | null | package com.mgaetan89.showsrage.view
import android.content.Context
import android.graphics.PorterDuff
import android.graphics.PorterDuffColorFilter
import android.support.annotation.ColorInt
import android.support.v4.content.ContextCompat
import android.support.v7.view.menu.ActionMenuItemView
import android.support.v... | 20 | Kotlin | 11 | 52 | b677ff242caecf0d4685d71ade56ae9a204727b1 | 2,709 | ShowsRage | Apache License 2.0 |
runtime/commonMain/src/kotlinx/serialization/Deprecated.kt | juanchosaravia | 193,368,964 | false | null | /*
* Copyright 2018 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 agreed to... | 0 | null | 0 | 1 | a45e71af8bff3f76a3774fd0f8a1425de800a847 | 1,375 | kotlinx.serialization | Apache License 2.0 |
idea/testData/quickfix/override/nothingToOverride/removeParameter.kt | JakeWharton | 99,388,807 | false | null | // "Change function signature to 'fun f()'" "true"
interface A {
fun f()
}
class B : A {
<caret>override fun f(a: Int) {}
}
| 1 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 133 | kotlin | Apache License 2.0 |
phoenix/src/main/java/com/song/sunset/phoenix/fragment/PhoenixListFragment.kt | songmingwen | 70,653,066 | false | {"Gradle": 28, "Java Properties": 3, "Shell": 3, "Ignore List": 17, "Batchfile": 2, "Markdown": 6, "INI": 13, "Proguard": 12, "Kotlin": 171, "XML": 276, "JSON": 13, "Java": 578, "CMake": 2, "C++": 17, "C": 43, "GLSL": 10, "AIDL": 7, "YAML": 1, "Dart": 11, "OpenStep Property List": 4, "Objective-C": 5, "Ruby": 3, "Groov... | package com.song.sunset.phoenix.fragment
import android.os.Bundle
import android.util.Log
import android.view.animation.DecelerateInterpolator
import com.alibaba.android.arouter.facade.annotation.Route
import com.song.sunset.base.AppConfig
import com.song.sunset.base.api.WholeApi
import com.song.sunset.base.bean.PageE... | 0 | Java | 0 | 1 | 8735ab6b8bc4d48c38533d6a9b7e88cef18c8389 | 4,450 | Comic | Apache License 2.0 |
plugins/kotlin/idea/tests/testData/editor/optimizeImports/jvm/DuplicatedImports2.kt | JetBrains | 2,489,216 | false | null | // FIR_COMPARISON
// WITH_MESSAGE: "Removed 1 import"
import foo.ArrayList
import foo.ArrayList
class Action {
fun test() {
val test : ArrayList<Int>? = null
}
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 178 | intellij-community | Apache License 2.0 |
compiler/testData/codegen/box/multiplatform/multiModule/expectActualSimple.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM
// !LANGUAGE: +MultiPlatformProjects
// MODULE: common
// TARGET_PLATFORM: Common
// FILE: common.kt
expect fun func(): String
expect var prop: String
fun test(): String {
prop = "K"
return func() + prop
}
// MODULE: jvm()()(common)
// TARGET_PLATFORM: JVM
// FILE: main.kt
actual fu... | 147 | Kotlin | 5411 | 43,797 | a8f547d080724fae3a45d675a16c5b3fc2f13b17 | 393 | kotlin | Apache License 2.0 |
src/com/theah64/mock_api/models/Preference.kt | theapache64 | 91,213,451 | false | {"Java": 246193, "Kotlin": 171960, "JavaScript": 14154, "CSS": 3391} | package com.theah64.mock_api.models
/**
* Created by theapache64 on 15/1/18.
*/
class Preference(
val defaultSuccessResponse: String,
val defaultErrorResponse: String,
val baseResponseStructure: String,
val surpriseImage: String,
val surpriseQuote: String,
val isOnline... | 5 | Java | 1 | 1 | f19a9e650a6641ccd59192c176fbbc8eb51cf473 | 332 | Mock-API | Apache License 2.0 |
app/src/main/java/com/alekskuzmin/flyhi/core/injection/stateModule.kt | alxkzmn | 206,252,806 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "XML": 18, "Kotlin": 41, "Java": 1} | package com.alekskuzmin.flyhi.core.injection
import com.alekskuzmin.flyhi.core.dispatcher.FlightsDispatcher
import com.alekskuzmin.flyhi.core.state.Reducer
import com.alekskuzmin.flyhi.core.state.StateHolder
import org.koin.dsl.module
val stateModule = module {
single { FlightsDispatcher(get()) }
single { Re... | 0 | Kotlin | 0 | 0 | 08e36815e966fd68d6f802bd9ed16c5294130b5b | 373 | flyhi | Apache License 2.0 |
app/src/main/java/com/iolll/kit/router/RouterNiceBackActivity.kt | liuyouth | 185,177,615 | false | {"Java": 96198, "Kotlin": 62821} | package com.iolll.kit.router
import android.os.Bundle
import com.alibaba.android.arouter.facade.annotation.Route
import com.iolll.kit.R
import com.iolll.kit.closingback.BaseRouterActivity
import kotlinx.android.synthetic.main.activity_router_nice_back.*
@Route(path = "/route/niceback")
class RouterNiceBackActivity : ... | 1 | null | 1 | 1 | 1dedc210a01c81dce4485dd2f1a369f42a952a7e | 563 | IolllKit | Apache License 2.0 |
src/test/kotlin/me/danuser2018/blockchain/BlockchainTest.kt | danuser2018 | 494,827,523 | false | null | package me.danuser2018.blockchain
import io.kotest.core.spec.style.StringSpec
import io.kotest.matchers.should
import io.kotest.matchers.shouldBe
import io.kotest.matchers.types.beInstanceOf
import me.danuser2018.blockchain.Block.DataBlock
import me.danuser2018.blockchain.Block.GenesisBlock
class BlockchainTest : Str... | 0 | Kotlin | 0 | 0 | 3c3cb42db3cd7734ff7609938abfc52c72f34b72 | 1,446 | blockchain | MIT License |
src/main/kotlin/com/github/mrbean355/admiralbulldog/installation/ChooserDotaDirectoryStep.kt | danieldonaldson | 318,585,457 | true | {"Kotlin": 200715} | package com.github.mrbean355.admiralbulldog.installation
import com.github.mrbean355.admiralbulldog.AppStyles
import com.github.mrbean355.admiralbulldog.common.PADDING_MEDIUM
import com.github.mrbean355.admiralbulldog.common.getString
import com.github.mrbean355.admiralbulldog.persistence.DotaPath
import javafx.beans.... | 0 | null | 0 | 0 | 6495a9b2d9b7fc9ba5652d3e5a58389abe828f1b | 2,132 | admiralbulldog-sounds | Apache License 2.0 |
app/src/main/java/com/ab/andgitrepos/veiwmodel/RecyclerViewAdapter.kt | Sundeep1501 | 123,250,201 | false | null | package com.ab.andgitrepos.veiwmodel
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.ab.andgitrepos.R
import com.ab.andgitrepos.datasource.retrofit.model.Repo
/**
* Adapter class builds t... | 0 | Kotlin | 0 | 0 | 30ada30d66ce5452f039b9d13697dc47e2543e10 | 2,163 | AndGitRepos | MIT License |
app/adapters/persist/src/main/kotlin/adapters/persist/di/PersistModule.kt | Kt-Kraft | 868,322,110 | false | {"Kotlin": 71893, "Dockerfile": 1261, "Procfile": 47} | package adapters.persist.di
import adapters.persist.adapter.BlockListIsTokenAdapter
import adapters.persist.adapter.LoadUserAdapter
import adapters.persist.adapter.SaveUserAdapter
import adapters.persist.database.DatabaseConnector
import adapters.persist.errors.DatabaseErrorInspector
import adapters.persist.errors.PgE... | 0 | Kotlin | 0 | 0 | 56331eae9891cbb041f695bbc16d7a42887794b8 | 2,311 | ktor-api | MIT License |
src/main/kotlin/org/jire/pomade/pom/Dependency.kt | Jire | 54,612,637 | false | null | package org.jire.pomade.pom
data class Dependency(val artifact: Artifact, val scope: String = "compile") : XMLElement {
override fun generate(indent: Int) = "${indent()}<dependency>\n${artifact.generate(indent + 1)}" +
"\n${indent(1)}<scope>$scope</scope>\n${indent()}</dependency>"
} | 0 | Kotlin | 0 | 2 | 1b8c9dde496cecaaa665c2b210c755978c3c68c0 | 291 | POMade | MIT License |
src/test/kotlin/leetcode/problem0108/ConvertSortedArrayToBinarySearchTreeTest.kt | ayukatawago | 456,312,186 | false | null | package leetcode.problem0108
import kotlin.test.Test
import kotlin.test.assertEquals
class ConvertSortedArrayToBinarySearchTreeTest {
private val target = ConvertSortedArrayToBinarySearchTree()
@Test
fun test1() {
val nums = intArrayOf(-10, -3, 0, 5, 9)
assertEquals(
listOf(0,... | 0 | Kotlin | 0 | 0 | f9602f2560a6c9102728ccbc5c1ff8fa421341b8 | 594 | leetcode-kotlin | MIT License |
app/src/main/java/com/casualapps/logkeep/model/LogInfoEntity.kt | AlexeyPerov | 335,021,193 | false | null | package com.casualapps.logkeep.model
import java.util.*
data class LogInfoEntity(
val id: String,
val title: String,
val author: String,
val contentsId: String,
val createdAt: Date
) | 0 | Kotlin | 0 | 0 | 244ac86b0ce3841c539229d9455d1602f09c17f4 | 204 | LogKeeper-JetPackCompose | MIT License |
src/main/kotlin/com/peasenet/main/GavinsModClient.kt | gavinsmod | 493,304,032 | false | null | /*
* Copyright (c) 2022-2023. <NAME> and contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
* associated documentation files (the "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify... | 1 | Kotlin | 0 | 21 | 740ecd3aff4f0fcab2aee10ffe6b9ca29d5c42f2 | 4,355 | minecraft-mod | MIT License |
domain/src/test/java/digital/sogood/livestreamfails/domain/interactor/SingleUseCaseTest.kt | iffa | 147,840,322 | false | null | package digital.sogood.livestreamfails.domain.interactor
import com.nhaarman.mockito_kotlin.mock
import digital.sogood.livestreamfails.domain.executor.PostExecutionThread
import digital.sogood.livestreamfails.domain.executor.ThreadExecutor
import digital.sogood.livestreamfails.domain.test.executor.TestPostExecutionThr... | 0 | Kotlin | 0 | 2 | 85d2c1967269951c4664833693b29dc760aa688b | 2,036 | livestreamfails-android | Apache License 2.0 |
platform/statistics/src/com/intellij/internal/statistic/eventLog/fus/MachineIdManager.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.internal.statistic.eventLog.fus
import com.intellij.execution.configurations.GeneralCommandLine
import com.intellij.execution.util.ExecUtil
import com.intell... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,021 | intellij-community | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.