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/redeyesncode/thatretrodagger/dagger/EmailInjectedProducer.kt | RedEyesNCode | 537,126,451 | false | {"Kotlin": 12295} | package com.redeyesncode.thatretrodagger.dagger
import android.util.Log
import com.redeyesncode.thatretrodagger.Constants
import dagger.Module
import dagger.Provides
import javax.inject.Inject
import javax.inject.Singleton
class EmailInjectedProducer @Inject constructor() {
fun sendInjectedEmail(email:String ){... | 0 | Kotlin | 0 | 0 | 1121e291885def0c5dcb66eeae56051d18abfb92 | 401 | ThatRetroDagger | Apache License 2.0 |
library/extensions/kmp-tor-ext-callback-controller-common/src/commonMain/kotlin/io/matthewnelson/kmp/tor/ext/callback/controller/common/control/usecase/CallbackTorControlStreamAttach.kt | 05nelsonm | 456,238,754 | false | {"Kotlin": 1053325} | /*
* Copyright (c) 2022 Matthew Nelson
*
* 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 o... | 25 | Kotlin | 5 | 33 | 7888dc90b99b04f8d28f8abe7ccfb7402e2bd1bc | 1,088 | kmp-tor | Apache License 2.0 |
mps-model-adapters/src/main/kotlin/org/modelix/model/mpsadapters/MPSNodeReference.kt | modelix | 533,211,353 | false | {"Kotlin": 1753947, "JetBrains MPS": 340613, "Java": 25036, "TypeScript": 13505, "Gherkin": 7693, "JavaScript": 3602, "CSS": 2839, "Shell": 1922, "Dockerfile": 314, "Procfile": 76} | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 42 | Kotlin | 6 | 4 | 6c8f96acb08c06bed5e9f04bd33c228ef0358a3b | 2,274 | modelix.core | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/market/overview/ui/MarketOverviewMetrics.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.modules.market.overview.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import androidx.compose.ui.viewinterop.AndroidVie... | 136 | Kotlin | 219 | 402 | 5ce20e6e4e0f75a76496051ba6f78312bc641a51 | 2,353 | unstoppable-wallet-android | MIT License |
spesialist-selve/src/test/kotlin/no/nav/helse/modell/saksbehandler/SaksbehandlerDaoTest.kt | navikt | 244,907,980 | false | {"Kotlin": 2432927, "PLpgSQL": 29508, "HTML": 1741, "Dockerfile": 168} | package no.nav.helse.modell.saksbehandler
import DatabaseIntegrationTest
import java.util.UUID
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Test
internal class SaksbehandlerDaoTest : DatabaseIntegrationTest() {
private com... | 3 | Kotlin | 1 | 0 | a1cda546ae5cedd9c3925561643edde9401953f6 | 2,852 | helse-spesialist | MIT License |
library/src/main/java/com/wultra/android/powerauth/networking/ssl/TrustAllCertsTrustManager.kt | wultra | 405,990,380 | false | {"Kotlin": 63340, "Shell": 20436} | /*
* Copyright 2022 <NAME>.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 in w... | 6 | Kotlin | 0 | 0 | 3e9d40c0fdf056cdcea563d9636f2a918f8bedee | 1,424 | networking-android | Apache License 2.0 |
library/src/main/java/com/wultra/android/powerauth/networking/ssl/TrustAllCertsTrustManager.kt | wultra | 405,990,380 | false | {"Kotlin": 63340, "Shell": 20436} | /*
* Copyright 2022 <NAME>.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 in w... | 6 | Kotlin | 0 | 0 | 3e9d40c0fdf056cdcea563d9636f2a918f8bedee | 1,424 | networking-android | Apache License 2.0 |
src/test/kotlin/net/ltgt/gradle/errorprone/Java8IntegrationTest.kt | tbroyer | 125,682,893 | false | null | package net.ltgt.gradle.errorprone
import com.google.common.truth.Truth.assertThat
import com.google.common.truth.TruthJUnit.assume
import org.gradle.api.JavaVersion
import org.gradle.testkit.runner.TaskOutcome
import org.junit.Before
import org.junit.Test
import java.io.File
class Java8IntegrationTest : AbstractPlug... | 2 | null | 22 | 254 | 7fdcecda0e3b2e885af649b2372b419db917c3d9 | 11,990 | gradle-errorprone-plugin | Apache License 2.0 |
app/src/test/java/com/aws/amazonlocation/viewmodel/tracking/TrackingVMGetLocationHistoryToday.kt | aws-geospatial | 625,008,140 | false | {"Kotlin": 1731535, "Java": 37880, "JavaScript": 5632, "Ruby": 1270, "Shell": 797} | package com.aws.amazonlocation.viewmodel.tracking
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import app.cash.turbine.test
import com.aws.amazonlocation.BaseTest
import com.aws.amazonlocation.data.common.HandleResult
import com.aws.amazonlocation.data.datasource.RemoteDataSourceImpl
import com.a... | 2 | Kotlin | 4 | 0 | 59078d38cfa768c9777ce220489a39eff8afe388 | 4,699 | amazon-location-features-demo-android | MIT No Attribution |
src/main/kotlin/io/sourcy/retention/Arguments.kt | sourcy | 118,512,713 | false | null | package io.sourcy.retention
import mu.KLogging
import org.springframework.boot.ApplicationArguments
import java.io.File
import java.time.LocalDate
data class Arguments(private val args: ApplicationArguments,
private val settings: Settings,
val useTheForce: Boolean = useTheFor... | 0 | Kotlin | 0 | 1 | 9ecff544b1dee372e84eaac4ec4645dbf5551c9f | 2,228 | kotlin-backup-retention | Apache License 2.0 |
app/src/main/java/com/example/studentchat/DisconnectionDialogFragment.kt | mourchidimfoumby | 726,650,487 | false | {"Kotlin": 108126} | package com.example.studentchat
import android.app.AlertDialog
import android.app.Dialog
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import com.example.authentication.domain.LogOutUseCase
import com.example.authentication.ui.AuthenticationActivity
import org.koin.... | 9 | Kotlin | 0 | 0 | 7ba59f9a3806a76a57eb0dbb0b2262c177e891c4 | 1,545 | studentchat | Apache License 2.0 |
src/test/kotlin/no/nav/permitteringsskjemaapi/permittering/PermitteringsskjemaControllerTest.kt | navikt | 247,277,988 | false | null | package no.nav.permitteringsskjemaapi.permittering
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import no.nav.permitteringsskjemaapi.PermitteringTestData
import no.nav.permitteringsskjemaapi.altinn.AltinnOrganisas... | 0 | Kotlin | 0 | 0 | e6ea8a30ecf1b83013fdea3dc8ccf05c96e24aff | 6,027 | permitteringsskjema-api | MIT License |
src/main/kotlin/org/opensearch/indexmanagement/controlcenter/notification/filter/OperationResult.kt | opensearch-project | 354,094,562 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.indexmanagement.controlcenter.notification.filter
enum class OperationResult {
COMPLETE, FAILED, TIMEOUT, CANCELLED
}
| 108 | null | 98 | 45 | b8f2691394aae5e4183828eacceca7e8a841713c | 230 | index-management | Apache License 2.0 |
app/src/main/java/com/mindorks/kaushiknsanji/instagram/demo/di/component/GlideDependencyComponent.kt | kaushiknsanji | 192,177,538 | false | null | /*
* Copyright 2019 <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 wri... | 2 | Kotlin | 0 | 1 | 23567026a3ea9dd4770a13eb776cb65dc633e049 | 1,302 | MindOrksInstagramDemo | Apache License 2.0 |
home/src/main/java/com/codewithkapil/home/domain/model/HomeSongItem.kt | SachanKapil | 588,557,085 | false | null | package com.codewithkapil.home.domain.model
import com.codewithkapil.home.ui.viewholder.HomeViewHolderVisitor
data class HomeMovieItem(val id: String, val movieName: String) : HomeVisitable {
override fun type(visitor: HomeViewHolderVisitor) = visitor.type(this)
override fun areItemsTheSame(oldItem: HomeVisit... | 0 | Kotlin | 0 | 0 | b81d0b89f12c15f140790fc95ae354dfc05405a3 | 448 | VisitorPatternApp | MIT License |
cpg-analysis/src/main/kotlin/de/fraunhofer/aisec/cpg/analysis/NumberSet.kt | Fraunhofer-AISEC | 225,386,107 | false | null | /*
* Copyright (c) 2022, Fraunhofer AISEC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 81 | Kotlin | 52 | 177 | a204d2c5a9a53b633c4f181832ef27aa99639a4f | 2,343 | cpg | Apache License 2.0 |
idea/testData/quickfix/autoImports/noImportsForExcludedClass.before.Main.kt | erokhins | 44,854,854 | true | {"Java": 15969828, "Kotlin": 11078102, "JavaScript": 176060, "Protocol Buffer": 42992, "HTML": 26117, "Lex": 16668, "ANTLR": 9689, "CSS": 9358, "Groovy": 5204, "Shell": 4638, "Batchfile": 3703, "IDL": 3251} | // "class com.intellij.codeInsight.daemon.impl.quickfix.ImportClassFixBase" "false"
// ACTION: Create class 'ExcludedClass'
// ACTION: Create function 'ExcludedClass'
// ERROR: Unresolved reference: ExcludedClass
val x = <caret>ExcludedClass() | 0 | Java | 0 | 1 | ff00bde607d605c4eba2d98fbc9e99af932accb6 | 244 | kotlin | Apache License 2.0 |
app/src/main/java/Interfacesforportugues/Players.kt | andersonFaro9 | 78,895,223 | false | null | package Interfacesforportugues
import android.media.MediaPlayer
import android.support.v7.app.AppCompatActivity
import com.kot.faro.myapplication.R
/**
* Created by faro on 13/11/16.
*/
interface Players {
fun AppCompatActivity.stopSoundInbutton() {
val mediaStop = MediaPlayer.create(getApplicationCont... | 1 | Kotlin | 0 | 14 | c08f499c8435d651c5ca336b89d191e8e7aa3be0 | 699 | AppAbcAprender | Apache License 2.0 |
app/src/main/java/com/example/project_auction/util/http/LoginToken.kt | ParkCheolSun | 387,774,682 | true | {"Kotlin": 46421} | package com.example.project_auction.util.http
import com.example.project_auction.data.KakaoDTO
import com.example.project_auction.data.NaverDTO
import retrofit2.Call
import retrofit2.http.Body
import retrofit2.http.Headers
import retrofit2.http.POST
interface LoginToken {
@Headers("Accept: application/json")
... | 0 | null | 0 | 0 | 10d7921e92ef46c44e42239b81820565989584e5 | 558 | ProjectAuction | Apache License 2.0 |
reactive-streams/src/main/kotlin/com/dbflow5/reactivestreams/structure/RXRetrievalAdapter.kt | agrosner | 24,161,015 | false | null | package com.dbflow5.reactivestreams.structure
import com.dbflow5.adapter.RetrievalAdapter
import com.dbflow5.config.FlowManager
import com.dbflow5.database.DatabaseWrapper
import io.reactivex.Completable
import io.reactivex.Single
/**
* Description: Mirrors the [RetrievalAdapter] with subset of exposed methods, most... | 38 | Kotlin | 613 | 4,865 | e1b6211dac6ddc0aa0c1c9a76a116478ccf92b86 | 1,330 | DBFlow | MIT License |
app/src/main/java/com/pt/pro/extra/fasten/ScreenCaptureFasten.kt | OmAr-Kader | 674,357,483 | false | {"Kotlin": 2780433} | package com.pt.pro.extra.fasten
data class ScreenCaptureFasten(
val root_: android.widget.FrameLayout,
val cardScreen: android.widget.FrameLayout,
val textPt: androidx.appcompat.widget.AppCompatTextView,
val tittlePager: androidx.viewpager2.widget.ViewPager2,
val mainBack: com.pt.common.moderator.o... | 0 | Kotlin | 0 | 0 | fe57fe5a4029119ac287ab8d3d4b5ccfc05af3a0 | 816 | PT-All-Pro | Apache License 2.0 |
app/src/main/java/com/noonacademy/assignment/omdb/movies/data/MovieBoundaryCallback.kt | raghu08 | 206,484,288 | false | null | package com.noonacademy.assignment.omdb.movies.data
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.paging.PagedList
import android.util.Log
import com.noonacademy.assignment.omdb.movies.api.OmdbService
import com.noonacademy.assignment.omdb.movies.api.fetchMoviesList
impor... | 0 | Kotlin | 0 | 0 | 64f810263b58a2ff486f41b42ed611d8bd48ff99 | 2,310 | OmdbMovies | Apache License 2.0 |
idea/idea-completion/src/org/jetbrains/kotlin/idea/completion/DeclarationLookupObjectImpl.kt | prasenjitghose36 | 273,158,317 | true | {"Kotlin": 46593414, "Java": 7626725, "JavaScript": 200386, "HTML": 77284, "Lex": 23805, "TypeScript": 21756, "Groovy": 11196, "CSS": 9270, "Swift": 8589, "Shell": 7220, "Batchfile": 5727, "Ruby": 1300, "Objective-C": 404, "Scala": 80} | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.completion
import com.intellij.psi.PsiClass
import com.intellij.psi.PsiDocC... | 0 | null | 0 | 2 | acced52384c00df5616231fa5ff7e78834871e64 | 2,372 | kotlin | Apache License 2.0 |
packages/mobile/android/app/src/main/java/com/example/reactnativeavoidsoftinput/MainActivity.kt | mateusz1913 | 382,468,045 | false | {"TypeScript": 66855, "Kotlin": 66660, "Swift": 37712, "Objective-C++": 21524, "JavaScript": 8258, "Ruby": 6712, "Objective-C": 3663, "C": 207} | package com.example.reactnativeavoidsoftinput
import android.os.Bundle
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint
import com.facebook.react.defaults.DefaultReactActivityDelegate
import com.zoontek.rnbootspl... | 6 | TypeScript | 17 | 618 | 1dad449e52a26a6ae7f38fb01299e4a90879e706 | 1,343 | react-native-avoid-softinput | MIT License |
test-utils/src/iosMain/kotlin/mock/bluetooth/IOSMockCharacteristicWrapper.kt | splendo | 191,371,940 | false | null | /*
Copyright 2021 Splendo Consulting B.V. The Netherlands
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 appli... | 89 | null | 7 | 93 | 6d2d2ff964d13ccb2768aa336fa7ef9941959e96 | 2,225 | kaluga | Apache License 2.0 |
app/src/test/java/org/scottishtecharmy/soundscape/VisuallyCheckIntersectionLayers.kt | Scottish-Tech-Army | 833,170,999 | false | {"Kotlin": 3551275, "C": 153623, "C++": 76956, "CMake": 2229, "Shell": 87} | import com.squareup.moshi.Moshi
import org.junit.Assert
import org.junit.Test
import org.scottishtecharmy.soundscape.GeoJSONDataComplexIntersection1
import org.scottishtecharmy.soundscape.geojsonparser.geojson.Feature
import org.scottishtecharmy.soundscape.geojsonparser.geojson.FeatureCollection
import org.scottishtech... | 37 | Kotlin | 2 | 3 | eddf0bd1dfcf25d9e3aa8a718d02e6c1653fbdb2 | 12,394 | Soundscape-Android | Apache License 2.0 |
app/src/main/java/torille/fi/lurkforreddit/data/models/view/Post.kt | Briseus | 82,205,094 | false | {"Kotlin": 221643, "Java": 5668, "IDL": 1488, "Prolog": 1055} | package torille.fi.lurkforreddit.data.models.view
import android.arch.persistence.room.Entity
import android.arch.persistence.room.ForeignKey
import android.arch.persistence.room.PrimaryKey
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
* Model for showing subreddit posts
*/
@Entity(
f... | 1 | Kotlin | 0 | 2 | 3473b8c91c64d7f13862c7aaf8a75f7c8d1914d0 | 1,013 | Lurker | MIT License |
app/src/main/java/com/example/tube/MainActivity.kt | aucd29 | 238,183,471 | false | null | package com.example.tube
import android.Manifest
import android.os.Bundle
import androidx.annotation.VisibleForTesting
import brigitte.BaseDaggerActivity
import brigitte.exceptionCatcher
import brigitte.runtimepermission.PermissionParams
import brigitte.runtimepermission.runtimePermissions
import brigitte.viewmodel.Sp... | 0 | Kotlin | 0 | 0 | 2cfa0a63b2eaa0cabfb84983c25c0c61b1a63b66 | 2,461 | mbt | Apache License 2.0 |
pulsar-common/src/main/kotlin/ai/platon/pulsar/common/Colors.kt | platonai | 124,882,400 | false | null | package ai.platon.pulsar.common
import java.awt.Color
import java.util.*
const val ALPHA_MASK = -0x1000000 // = 0xffffffff
// get rgb with alpha set to be 0, which means the color is opaque
// this value is usually what passed in to construct the color
val Color.opaqueRgb get() = ALPHA_MASK xor rgb
fun Color.toHexS... | 1 | null | 32 | 110 | f93bccf5075009dc7766442d3a23b5268c721f54 | 11,505 | pulsar | Apache License 2.0 |
app/src/main/java/me/ykrank/s1next/widget/download/ImageDownloadManager.kt | ykrank | 52,680,091 | false | null | package me.ykrank.s1next.widget.download
import android.app.Application
import com.liulishuo.okdownload.DownloadTask
import com.liulishuo.okdownload.OkDownload
import com.liulishuo.okdownload.core.connection.DownloadOkHttp3Connection
import com.liulishuo.okdownload.core.dispatcher.DownloadDispatcher
import okhttp3.OkH... | 1 | null | 37 | 317 | 0c0b0fdb992db9b046265ee6e9b50ac676a1c104 | 1,593 | S1-Next | Apache License 2.0 |
app/src/main/java/repo/pattimuradev/fsearch/view/fragment/FormBalasanFragment.kt | PattimuraDev | 638,790,083 | false | null | package repo.pattimuradev.fsearch.view.fragment
import android.app.AlertDialog
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.*
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.core.content.res.ResourcesCompat
import androidx.f... | 0 | Kotlin | 0 | 1 | f9cba4953df90b021971d7542ed7f3d740d2bc70 | 7,241 | FSearch | Apache License 2.0 |
app/src/main/java/com/ult3mate/examplepagelistadapter/ui/repository/WillingDataSource.kt | ult3mate | 136,915,592 | false | {"Kotlin": 30461} | package com.ult3mate.examplepagelistadapter.ui.repository
import android.arch.lifecycle.MutableLiveData
import android.arch.paging.PageKeyedDataSource
import com.perspective23.willing.modules.dao.feed.FeedResult
import com.ult3mate.examplepagelistadapter.api.WillingApi
import com.ult3mate.examplepagelistadapter.dao.Ne... | 0 | Kotlin | 0 | 4 | d4c7dab57280f0e222fd58b0bf68a004e8f378d7 | 1,781 | examplepagelistadapter | MIT License |
app/src/main/java/com/sample/openweathermap/di/builder/ActivityBuilderModule.kt | johnwahba84 | 251,644,591 | false | null | package com.sample.openweathermap.di.builder
import com.sample.openweathermap.ui.MainActivity
import dagger.Module
import dagger.android.ContributesAndroidInjector
@Module
abstract class ActivityBuilderModule {
@ContributesAndroidInjector(modules = [FragmentBuilderModule::class])
abstract fun bindMainActivit... | 0 | Kotlin | 1 | 2 | 795ae47b6681d43c21df2e6e470c9e14a680e18b | 339 | weather-sample | Apache License 2.0 |
app/src/main/java/com/example/android_study/kotlin/_2_coroutine/coroutineContext/CoroutineContextActivity.kt | RhythmCoderZZF | 281,057,053 | false | null | package com.example.android_study.kotlin._2_coroutine.coroutineContext
import android.os.Bundle
import com.example.android_study.R
import com.example.android_study._base.BaseActivity
import com.example.android_study._base.cmd.CmdUtil
import kotlinx.android.synthetic.main.activity_kotlin_coroutine_context.*
import kotl... | 0 | Kotlin | 0 | 0 | 8de07e3a5613128ce05a9a0de2305bd02122da3a | 1,797 | AndroidStudy | Apache License 2.0 |
KotlinIntelliJ/KotlinBasics/src/rangos.kt | javram5985 | 130,855,349 | false | {"Text": 1, "Java": 5, "Markdown": 1, "Kotlin": 27, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "XML": 27} | fun main(args: Array<String>)
{
for(i in 1..4)
{
println(i)
}
println()
for(i in 4 downTo 1)//para forma descendente
{
println(i)
}
println()
for (i in 1..4 step 2)//de dos en dos 1 y 3
{
println(i)
}
println()
for(i in 4 downTo 1 step 2)
{... | 1 | null | 1 | 1 | 617b196cd590f163d9e901b9b66257e731dc3092 | 548 | Curso-de-Kotlin | MIT License |
fetch2/src/main/java/com/tonyodev/fetch2/database/migration/MigrationOneToTwo.kt | Tahir6116162 | 747,550,975 | false | null | package com.tonyodev.fetch2.database.migration
import androidx.sqlite.db.SupportSQLiteDatabase
import com.tonyodev.fetch2.database.DownloadDatabase
class MigrationOneToTwo: Migration(1, 2) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("ALTER TABLE '${DownloadDatabase.TABLE_N... | 0 | null | 2 | 1 | c2e72c517e570f4b8d4f0d00fe4356b99ef55602 | 424 | Fetch | Apache License 2.0 |
samples/nav/shared/src/commonMain/kotlin/com/eygraber/vice/samples/nav/shared/home/HomeDestination.kt | eygraber | 740,196,321 | false | {"Kotlin": 20954, "Shell": 1351} | package com.eygraber.vice.samples.nav.shared.home
import com.eygraber.vice.samples.nav.shared.SampleDestination
class HomeDestination(
onNavigateToCreateItem: () -> Unit,
onNavigateToUpdateItem: (String) -> Unit,
onNavigateToSettings: () -> Unit,
) : SampleDestination<HomeIntent, HomeCompositor, HomeViewState>(... | 1 | Kotlin | 0 | 4 | b6352d95af0499f3ced09de99d8ea70e0b5a5cd7 | 538 | vice | MIT License |
kaff4-core/src/main/kotlin/net/navatwo/kaff4/streams/map_stream/Aff4MapStreamSource.kt | Nava2 | 555,850,412 | false | null | package net.navatwo.kaff4.streams.map_stream
import net.navatwo.kaff4.io.applyAndCloseOnThrow
import net.navatwo.kaff4.io.buffer
import net.navatwo.kaff4.io.limit
import net.navatwo.kaff4.model.Aff4StreamOpener
import net.navatwo.kaff4.model.rdf.MapStream
import okio.Buffer
import okio.BufferedSource
import okio.Sourc... | 7 | Kotlin | 0 | 1 | b0df931c9be6378bd9fc7f6d182d1a35b3034c2f | 2,594 | kaff4 | MIT License |
library-remoteservice-coroutines/src/main/java/ru/fabit/remoteservicecoroutines/remoteservice/RemoteServiceImpl.kt | FabitMobile | 457,807,988 | false | {"Kotlin": 14159, "Java": 275} | package ru.fabit.remoteservicecoroutines.remoteservice
import android.os.Looper
import kotlinx.coroutines.CancellationException
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.RequestBody
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.ResponseBody
import org.json.JSONArray
import... | 0 | Kotlin | 0 | 0 | 95b0bc3f952bbb8cd50f9251d45c183fe3e5e903 | 8,093 | remoteservice-coroutines | MIT License |
app/src/main/java/com/yjf/myvideo/FixFragmentNavigator.kt | onemorechoice | 302,218,017 | false | null | package com.yjf.myvideo
import android.content.Context
import android.os.Bundle
import android.util.Log
import androidx.annotation.IdRes
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.navigation.NavDestination
import androidx.navigation.NavOptions
import androidx.nav... | 0 | Kotlin | 0 | 0 | da73f50296c5718717e0c0d33a27e625dac2b584 | 5,163 | MyVideo | Apache License 2.0 |
keel-api/src/main/kotlin/com/netflix/spinnaker/keel/api/actuation/SubjectType.kt | KeisukeYamashita | 272,003,659 | true | {"Kotlin": 1779916, "Java": 15301, "Shell": 1691} | package com.netflix.spinnaker.keel.api.actuation
enum class SubjectType {
RESOURCE, CONSTRAINT
}
| 0 | null | 0 | 0 | cc1e8daf22b95f158eac12ef18992279fa4cb24a | 100 | keel | Apache License 2.0 |
app/src/main/java/com/velaphi/weather/SplashActivity.kt | vejathegreat | 344,490,604 | false | null | package com.velaphi.weather
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.CountDownTimer
import android.view.WindowManager
import android.view.animation.AnimationUtils
import androidx.databinding.DataBindingUtil
import com.velaphi.weather.datab... | 0 | Kotlin | 0 | 0 | b6eba094e1554cdb59d710b81d84921a801e41ae | 1,271 | Weather | MIT License |
headless-demo/src/jsMain/kotlin/dev/fritz2/headlessdemo/checkboxGroup.kt | jwstegemann | 230,732,344 | false | null | package dev.fritz2.headlessdemo
import dev.fritz2.core.RenderContext
import dev.fritz2.core.fill
import dev.fritz2.core.storeOf
import dev.fritz2.headless.components.checkboxGroup
import kotlinx.coroutines.flow.map
import org.w3c.dom.HTMLFieldSetElement
fun RenderContext.checkboxGroupDemo() {
data class Newslette... | 64 | null | 19 | 432 | 72787c1c00663b65c20ef494991a45ca2f3a8c5f | 3,323 | fritz2 | MIT License |
CCWCL/build-logic/convention/src/main/kotlin/rt/convention/ecosystem/ext/AndroidComposeExt.kt | queencodemonkey | 689,764,341 | false | {"Kotlin": 65072} | package rt.convention.ecosystem.ext
import com.android.build.api.dsl.CommonExtension
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import rt.convention.ext.library
import rt.convention.ext.version
import rt.convention.ext.versionCatalog
//
// This file contains extension methods for configu... | 0 | Kotlin | 0 | 0 | b33aeee447412360b768cf24c001ed2112ec11e3 | 1,535 | composing-creatively-with-custom-layouts | MIT License |
app/src/main/java/io/github/wulkanowy/services/sync/works/NoteWork.kt | wezuwiusz | 827,505,734 | false | null | package io.github.wulkanowy.services.sync.works
import io.github.wulkanowy.data.db.entities.Semester
import io.github.wulkanowy.data.db.entities.Student
import io.github.wulkanowy.data.repositories.NoteRepository
import io.github.wulkanowy.services.sync.notifications.NewNoteNotification
import io.github.wulkanowy.util... | 96 | null | 6 | 28 | 82b4ea930e64d0d6e653fb9024201b372cdb5df2 | 1,126 | neowulkanowy | Apache License 2.0 |
product/web3modal/src/test/kotlin/com/walletconnect/web3/modal/ui/routes/account/ChainSwitchRedirectTest.kt | WalletConnect | 435,951,419 | false | {"Kotlin": 2075841, "Java": 4358, "Shell": 1892} | package com.walletconnect.web3.modal.ui.routes.account
import com.android.resources.NightMode
import com.walletconnect.web3.modal.presets.Web3ModalChainsPresets
import com.walletconnect.web3.modal.ui.navigation.Route
import com.walletconnect.web3.modal.ui.routes.account.chain_redirect.ChainRedirectState
import com.wal... | 165 | Kotlin | 69 | 176 | 22585233e2e0c15f26e21318280698726e187682 | 1,602 | WalletConnectKotlinV2 | Apache License 2.0 |
app/src/main/java/com/kuss/krude/ui/components/internal/files/PathNavigator.kt | KusStar | 294,712,671 | false | {"Kotlin": 297972, "HTML": 47578, "TypeScript": 6268, "JavaScript": 384, "Shell": 368, "CSS": 346} | package com.kuss.krude.ui.components.internal.files
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import java.util.Stack
class PathNavigator {
pri... | 0 | Kotlin | 1 | 9 | a1072e71f8a3d99aaff08a47737e225d39a8a966 | 1,439 | krude | MIT License |
kotest-framework/kotest-framework-engine/src/jvmTest/kotlin/com/sksamuel/kotest/engine/threads/InstancePerLeafTest.kt | kotest | 47,071,082 | false | null | package com.sksamuel.kotest.engine.threads
import io.kotest.assertions.assertSoftly
import io.kotest.core.spec.IsolationMode
import io.kotest.core.spec.style.FunSpec
import io.kotest.matchers.maps.shouldHaveSize
import io.kotest.matchers.shouldBe
import kotlin.concurrent.getOrSet
private val externalMultipleThreadCou... | 141 | null | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 1,818 | kotest | Apache License 2.0 |
src/main/kotlin/world/cepi/packeteer/command/PacketeerCommand.kt | Project-Cepi | 415,378,905 | false | {"Kotlin": 11792} | package world.cepi.packeteer.command
import net.kyori.adventure.text.Component
import net.minestom.server.command.builder.arguments.ArgumentType
import net.minestom.server.coordinate.Point
import net.minestom.server.coordinate.Vec
import net.minestom.server.entity.Player
import net.minestom.server.network.packet.serve... | 16 | Kotlin | 0 | 2 | 3a954771c563636eb5a709265c80cf9945042b44 | 909 | Packeteer | MIT License |
src/test/kotlin/no/nav/syfo/util/DateTimeTest.kt | navikt | 155,728,007 | false | {"Kotlin": 71300, "Dockerfile": 277} | package no.nav.syfo.util
import java.time.LocalDateTime
import java.time.OffsetDateTime
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
internal class DateTimeTest {
@Test
internal fun `Get LocalDateTime correct`() {
val localDateTime = LocalDateTime.parse("2021-03-03T12:01:0... | 0 | Kotlin | 0 | 0 | c3062f1e7d5500b88c6596436198d95c94879944 | 901 | syfosmapprec | MIT License |
navigation/core/src/main/kotlin/dev/teogor/ceres/navigation/core/models/NavigationItem.kt | teogor | 555,090,893 | false | {"Kotlin": 1324729} | /*
* Copyright 2023 teogor (Teodor Grigor)
*
* 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 o... | 2 | Kotlin | 4 | 62 | 48576bbf21c28c200d18167d0178125c2d5c239a | 1,526 | ceres | Apache License 2.0 |
app/src/main/java/knf/kuma/random/RandomActivity.kt | xxspokiixx | 163,215,061 | true | {"Kotlin": 898708, "PHP": 267654, "CSS": 55991, "Java": 52401, "JavaScript": 50577, "HTML": 25952, "Ruby": 815} | package knf.kuma.random
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.preference.PreferenceManager
import android.view.Menu
import android.view.MenuItem
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
... | 0 | Kotlin | 0 | 0 | c8afbc6b80cba8551f305f49b3d43170deafcb60 | 4,135 | UKIKU | MIT License |
data/network/src/test/java/utils/MockResponseFileReader.kt | vasim-hub | 602,557,211 | false | null | package utils
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import okio.buffer
import okio.source
import java.nio.charset.StandardCharsets
internal fun MockWebServer.enqueueResponse(fileName: String, code: Int): MockResponse? {
val inputStream = javaClass.classLoader?.getRes... | 4 | Kotlin | 0 | 0 | 916bfb78ecbd359407d24663ddae46c6e266b57f | 740 | JustMusic | Apache License 2.0 |
src/macosMain/kotlin/Operators/BackwardCompose.kt | AndreaRR18 | 227,066,800 | false | null | package Operators
infix fun <A,B,C> ((B)->C).reversePipe(g: (A) -> B): (A) -> C {
return {
this(g(it))
}
} | 0 | Kotlin | 0 | 0 | f62d80d2fd5416e53758ac1ea577a27e663297c7 | 123 | Kotlin-Operators | MIT License |
annotationtestprinter/src/main/java/com/github/grishberg/annotationprinter/AnnotationContainer.kt | Grishberg | 108,688,078 | false | null | package com.github.grishberg.annotationprinter
data class AnnotationMember(
val name: String,
val valueType: String,
var intValue: Int? = null,
var strValue: String? = null,
var strArray: ArrayList<String>? = null,
var intArray: ArrayList<Int>? = null,
var boolVa... | 1 | null | 1 | 2 | fdecbdd216152161ace076f726fcc3853fcd946e | 447 | InstrumentationTestsAnnotationPrinter | Apache License 2.0 |
es-api-model/src/main/kotlin/tech/figure/eventstream/stream/models/TxEvent.kt | FigureTechnologies | 420,208,748 | false | {"Kotlin": 252779, "Makefile": 1110, "Dockerfile": 211, "Shell": 61} | package tech.figure.eventstream.stream.models
import com.squareup.moshi.JsonClass
import java.math.BigInteger
import java.time.OffsetDateTime
/**
* Used to represent transaction-level events like "transfer", "message", metadata events
* (`provenance.metadata.v1.EventScopeCreated`), etc.
*/
@JsonClass(generateAdapt... | 11 | Kotlin | 1 | 4 | ee65f7a6bdf64bb4ddd05fb94b3d72c6c40e086e | 619 | event-stream | Apache License 2.0 |
app/src/main/java/com/do55anto5/moviestreaming/presenter/screens/main/download/state/DownloadState.kt | do5-5anto5 | 849,023,984 | false | {"Kotlin": 132089} | package com.do55anto5.moviestreaming.presenter.screens.main.download.state
data class DownloadState(
val isLoading: Boolean = true
) | 0 | Kotlin | 0 | 0 | 4f87d39868a2cf93e001af76502f051e6b47441a | 138 | Movie-Streaming | MIT License |
app/src/main/kotlin/com/releaseit/cryptoprices/AppDI.kt | JurajBegovac | 121,294,794 | false | null | package com.releaseit.cryptoprices
import android.content.Context
import com.releaseit.cryptoprices.repository.CryptoRepository
import com.releaseit.cryptoprices.repository.Currency
import com.releaseit.cryptoprices.repository.WebCryptoRepository
import com.releaseit.cryptoprices.utils.PREF_NAME
import com.releaseit.c... | 0 | Kotlin | 0 | 0 | 19d2881d8365f1284331b79024c3b430a11cd141 | 2,363 | CryptoPrices | MIT License |
app/src/main/java/ru/test/wallpapersfrompixabay/repositories/MainRepository.kt | wazsone | 217,333,601 | false | null | package ru.test.wallpapersfrompixabay.repositories
import android.util.Log
import androidx.lifecycle.LiveData
import kotlinx.coroutines.*
import ru.test.wallpapersfrompixabay.api.RetrofitBuilder
import ru.test.wallpapersfrompixabay.models.ImageHits
import ru.test.wallpapersfrompixabay.ui.MainActivity
object MainRepos... | 0 | Kotlin | 1 | 0 | df8c14347e97a2c730f779c208f790c42659f865 | 1,771 | WallpapersFromPixabay | MIT License |
src/main/kotlin/com/github/mbinic/intellijtgit/actions/RevertAction.kt | mbinic | 459,989,086 | false | {"Kotlin": 17742} | package com.github.mbinic.intellijtgit.actions
import com.github.mbinic.intellijtgit.TGit
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.project.DumbAwareAction
class RevertAction : DumbAwareAction() {
override fun actionPerformed(e: AnActionEvent) {
TGit.command(e, "re... | 1 | Kotlin | 2 | 1 | bb7c9cbca407e5ec9b5ba99180394412eb739d09 | 335 | intellij-tgit | MIT License |
src/test/kotlin/no/nav/k9/los/pdl/PdlServiceTest.kt | navikt | 238,874,021 | false | null | package no.nav.k9.integrasjon.pdl
import com.fasterxml.jackson.module.kotlin.readValue
import no.nav.k9.aksjonspunktbehandling.objectMapper
import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
class PdlServiceTest {
@Test
fun `skal desrialisere personpdl`() {
val json = "{\n \"... | 9 | Kotlin | 0 | 0 | 7e1bab37d0721903017ed9eb5dea09ee4255c643 | 964 | k9-los-api | MIT License |
app/src/main/java/com/example/newbiechen/ireader/ui/fragment/DiscHelpsFragment.kt | EiChinn | 157,148,636 | true | {"Kotlin": 718783, "Java": 2313} | package com.example.newbiechen.ireader.ui.fragment
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.newbiechen.ireader.R
import com.example.newbiechen.ireader.RxBus
import com.example.newbiechen.ireader.event.SelectorEvent
import com.example.n... | 1 | Kotlin | 1 | 1 | ab465c2cfc5af98c8da0927a81e4f6f27930fd32 | 5,507 | NovelReader | MIT License |
EasyPrefLibrary/src/main/java/com/ehmaugbogo/easypreflibrary/EasyPref.kt | EhmaUgbogo | 372,040,482 | false | null | package com.ehmaugbogo.easypreflibrary
import android.app.Application
import android.content.Context
import android.content.SharedPreferences
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.google.gson.Gson
import java.util.concurrent.atomic.AtomicBoolean
import java.util.functi... | 0 | Kotlin | 1 | 18 | 33d107801e60b38a44b2e11a1f30cd80837f98cf | 13,163 | EasyPref | The Unlicense |
server/api/src/main/kotlin/com/kw/api/common/controller/ApiController.kt | Team-kiwing | 753,356,988 | false | {"Kotlin": 82245, "Dockerfile": 180} | package com.kw.api.common.controller
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RestController
@RestController
class ApiController {
@GetMapping("/health-check")
fun healthCheck(): String {
return "OK"
}
}
| 2 | Kotlin | 1 | 0 | aee33920c03699cfaafb7e3751563e2d21697ab5 | 292 | Team-3seco-kiwing-be | MIT License |
src/main/kotlin/com/kc/intern/project/service/AbstractService.kt | SabrinaSioli | 426,611,617 | false | {"Kotlin": 34085, "HTML": 688, "FreeMarker": 598, "Dockerfile": 218, "Shell": 26} | package service
import io.vertx.core.json.JsonObject
import io.vertx.kotlin.core.json.get
import model.Project
import model.User
abstract class AbstractService {
fun createProject(user: User, jsonProject: JsonObject) : Project? {
if(user.id == -1) { return null }
var project: Project = Project()
project.id ... | 0 | Kotlin | 0 | 0 | 6a48c7699f88e250b52174d215b442089b5c978d | 1,413 | kc-intern-project-kotlin | MIT License |
app/src/main/java/com/ssmmhh/free2playgames/feature_game/presentation/games/GamesViewModel.kt | mahdi-hosseinnion | 457,890,929 | false | null | package com.ssmmhh.free2playgames.feature_game.presentation.games
import androidx.lifecycle.viewModelScope
import com.ssmmhh.free2playgames.R
import com.ssmmhh.free2playgames.common.*
import com.ssmmhh.free2playgames.feature_game.data.util.Result
import com.ssmmhh.free2playgames.feature_game.data.util.takeStringRes
im... | 0 | Kotlin | 0 | 0 | 467d2db52560ced18c88760df4b17145de1c2f21 | 2,388 | Free2PlayGames | MIT License |
cloudycook-client/CloudyCook/app/src/main/java/io/github/cloudyhug/cloudycook/Database.kt | cloudyhug | 296,034,389 | false | null | package io.github.cloudyhug.cloudycook
import io.github.cloudyhug.cloudycook.database.AppDatabase
object Database {
var db: AppDatabase? = null
} | 0 | Kotlin | 0 | 0 | dcadea3f6d9e3982eeed8f9e5588dff1a3d4932b | 149 | cloudycook | MIT License |
room/room-compiler/src/test/kotlin/androidx/room/processor/DaoProcessorTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 6 | null | 482 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 15,761 | androidx | Apache License 2.0 |
compiler/frontend.java/src/org/jetbrains/kotlin/config/JvmAnalysisFlags.kt | tnorbye | 176,209,431 | false | null | /*
* Copyright 2010-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.config
object JvmAnalysisFlags {
@JvmStatic
val strictMetadataVersionSemantics by AnalysisFlag.Delegates.Boolean
... | 1 | null | 2 | 2 | b6be6a4919cd7f37426d1e8780509a22fa49e1b1 | 741 | kotlin | Apache License 2.0 |
android-aop-plugin/src/main/kotlin/com/flyjingfish/android_aop_plugin/scanner_visitor/AnnotationMethodScanner.kt | FlyJingFish | 722,020,803 | false | null | package com.flyjingfish.android_aop_plugin.scanner_visitor
import com.flyjingfish.android_aop_plugin.beans.AopMatchCut
import com.flyjingfish.android_aop_plugin.beans.CutInfo
import com.flyjingfish.android_aop_plugin.beans.CutMethodJson
import com.flyjingfish.android_aop_plugin.beans.LambdaMethod
import com.flyjingfi... | 0 | null | 3 | 84 | dbda228d57afd1d0dc122d1bce6377e83616ca20 | 19,176 | AndroidAOP | Apache License 2.0 |
simple-app/src/main/kotlin/org/jesperancinha/smtd/simple/service/Service.kt | jesperancinha | 369,597,921 | false | {"Kotlin": 164376, "Java": 100076, "Makefile": 2102, "Dockerfile": 266, "Shell": 192} | package org.jesperancinha.smtd.simple.service
import org.springframework.stereotype.Service
/**
* Created by jofisaes on 12/07/2021
*/
@Service
class Service | 1 | Kotlin | 0 | 3 | 2b2f62a62419b45cf8b57bd2df0892360a3eaa07 | 161 | jeorg-spring-master-test-drives | Apache License 2.0 |
colleges/txst/src/main/kotlin/io/github/opletter/courseevals/txst/Scraping.kt | opLetter | 597,896,755 | false | {"Kotlin": 390993} | package io.github.opletter.courseevals.txst
import io.github.opletter.courseevals.common.data.pmap
import io.github.opletter.courseevals.common.writeAsJson
import io.github.opletter.courseevals.txst.remote.data.Report
import io.github.opletter.courseevals.txst.remote.data.SaveableResponse
import io.github.opletter.cou... | 0 | Kotlin | 1 | 7 | 76721f932a99a0ce5803c8ef880705e0bb2e3481 | 1,680 | course-evals | MIT License |
app/src/main/java/com/github/vitorfg8/pettracks/presentation/petinfo/PetInfoUiState.kt | vitorfg8 | 762,248,139 | false | {"Kotlin": 138318} | package com.github.vitorfg8.pettracks.presentation.petinfo
import android.graphics.Bitmap
import com.github.vitorfg8.pettracks.domain.model.Pet
import com.github.vitorfg8.pettracks.domain.model.Vaccine
import com.github.vitorfg8.pettracks.presentation.GenderUiState
import com.github.vitorfg8.pettracks.presentation.Pet... | 0 | Kotlin | 0 | 0 | f01414a2d0c37ca591de96f161261239d9a86ea3 | 1,424 | PetTracks | MIT License |
Validation/src/main/java/com/tomtruyen/validation/core/IValidationError.kt | TomTruyen | 646,467,925 | false | null | package com.tomtruyen.validation.core
import java.lang.reflect.Field
interface IValidationError {
val error: String
val field: Field?
} | 0 | Kotlin | 0 | 0 | 1aadff43291c7f411bb1e7663e93ee958e3e5d9e | 145 | Android-Validator | MIT License |
feature-home-common/src/main/kotlin/io/getstream/avengerschat/feature/home/common/HomeViewModel.kt | GetStream | 420,033,848 | false | {"Kotlin": 143313} | /*
* Copyright 2022 Stream.IO, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 1 | Kotlin | 37 | 364 | d712bf44d89fa342d65dc4e8b81f9aa955a9f1ce | 2,941 | AvengersChat | Apache License 2.0 |
app/src/main/java/com/task/searchbar/domain/query/processor/SCHEMA.kt | EzzWaleed | 205,580,621 | false | null | package com.task.searchbar.domain.query.processor
enum class SCHEMA constructor(val value: String) {
ABOUT("about:"),
HTTPS("https://"),
ABOUT_BLANK("about:blank"),
MAIL_TO("mailto:"),
FACEBOOK("fb://")
}
| 0 | Kotlin | 0 | 3 | b03afd9bfb6a2a674b005c86eb268e984268e6df | 226 | SearchBar | Apache License 2.0 |
src/test/kotlin/AppTest.kt | jsocle | 35,608,230 | false | {"Kotlin": 27814, "CSS": 636, "JavaScript": 484} | import com.github.jsocle.client.ClientResponse
import com.github.jsocle.client.TestClient
import com.github.jsocle.receptionist.app
import com.github.jsocle.receptionist.blueprints.loginApp
import com.github.jsocle.receptionist.blueprints.mainApp
import com.github.jsocle.receptionist.blueprints.reservationApp
import co... | 0 | Kotlin | 0 | 0 | 98d9f20068e8fd154ed348624dae0cb914ba86c5 | 4,993 | receptionist-jsocle | MIT License |
src/main/kotlin/com/theapache64/stackzy/model/LibraryWrapper.kt | theapache64 | 336,369,141 | false | {"Kotlin": 270405} | package com.theapache64.stackzy.model
import com.theapache64.stackzy.data.remote.Library
import com.theapache64.stackzy.data.remote.LibraryDefinition
import com.theapache64.stackzy.data.remote.Result
class LibraryWrapper(
private val library: Library,
private val prevResult: Result?
) : AlphabetCircle(), Libr... | 24 | Kotlin | 54 | 962 | 4c7919f1c8f4b72e0dda3d41ffe6d3eda18e6896 | 902 | stackzy | Apache License 2.0 |
app/src/main/java/com/ezzy/quizzo/ui/screens/sign_up/state/AccountState.kt | EzekielWachira | 692,189,409 | false | {"Kotlin": 448558} | package com.ezzy.quizzo.ui.screens.sign_up.state
import com.ezzy.quizzo.utils.isValidEmail
import com.ezzy.quizzo.utils.isValidPassword
import com.ezzy.quizzo.utils.isValidUsername
data class AccountState(
val username: String = "",
val email: String = "",
val password: String = "",
val rememberMe: Bo... | 0 | Kotlin | 8 | 36 | 4e0b1c1555920408952b628483d84fe44c1e29d4 | 603 | Quizzo | MIT License |
anko/library/generator/src/org/jetbrains/android/anko/writer/GeneratorWriter.kt | Kotlin | 24,186,761 | false | null | /*
* Copyright 2016 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... | 243 | null | 1295 | 15,967 | 37893764c0f20208c842a466f0fd0159c1e247e2 | 1,047 | anko | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/StarsSharp.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/StarsSharp")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val StarsSharp: SvgIconComponent
| 12 | Kotlin | 5 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 202 | kotlin-wrappers | Apache License 2.0 |
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt | yschimke | 42,286,486 | false | null | /*
* Copyright 2014 Square Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 2 | null | 9159 | 6 | ef459b1d8b0530c915386c527e8a141c88cd5c15 | 8,097 | okhttp | Apache License 2.0 |
owner-service/src/test/kotlin/io/kfleet/owner/service/rpclayer/OwnerLocalRpcServiceTest.kt | mseemann | 205,524,973 | false | null | package io.kfleet.owner.service.rpclayer
import io.kfleet.owner.service.domain.Owner
import io.kfleet.owner.service.domain.owner
import io.kfleet.owner.service.repos.OwnerLocalRepository
import org.junit.jupiter.api.Test
import org.mockito.BDDMockito
import org.springframework.beans.factory.annotation.Autowired
impor... | 0 | Kotlin | 1 | 2 | 09507433f9177f793d2314416564a2fe39485a0c | 1,589 | kfleet | MIT License |
app/src/main/java/linc/com/getmeexample/fragments/SelectionActionMode.kt | lincollincol | 262,124,997 | false | null | package linc.com.getmeexample.fragments
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.view.ActionMode
import androidx.recyclerview.selection.SelectionTracker
import linc.com.getme.ui.models.FilesystemEntityModel
class SelectionActionMode(
private val selectionTracker: SelectionTr... | 1 | Kotlin | 1 | 3 | a1166012cb9f64104e4b7037470f6afd9ce579ac | 1,027 | GetMe | Apache License 2.0 |
plugins/markdown/core/src/org/intellij/plugins/markdown/settings/MarkdownCodeFoldingSettings.kt | JetBrains | 2,489,216 | false | null | package org.intellij.plugins.markdown.settings
import com.intellij.openapi.components.*
import org.jetbrains.annotations.ApiStatus
@ApiStatus.Internal
@Service(Service.Level.APP)
@State(name = "MarkdownCodeFoldingSettings", storages = [Storage("editor.xml")], category = SettingsCategory.CODE)
class MarkdownCodeFoldin... | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 880 | intellij-community | Apache License 2.0 |
app/src/main/java/com/developergunda/timerlifecycleservice/util/TimerUtil.kt | ZweiChen0328 | 481,112,966 | false | null | package com.developergunda.timerlifecycleservice.util
import java.text.SimpleDateFormat
import java.util.*
import java.util.concurrent.TimeUnit
object TimerUtil {
fun getFormattedTime(timeInMillis: Long, includeMillis: Boolean): String {
var milliseconds = timeInMillis
val hours = TimeUnit.MILLISE... | 0 | Kotlin | 0 | 0 | c772eb19aaa35f9eef8e5ca55e6b09fd05fb5a6a | 1,571 | TimerLifecycleService | MIT License |
src/main/kotlin/br/com/gutierre/model/Greeting.kt | GutierreThiagoS | 617,078,687 | false | null | package br.com.gutierre.model
data class Greeting(
val id: Long,
val content: String
) | 0 | Kotlin | 0 | 0 | 57783945ecbd57ba78b6d1513e272941d2c2c39e | 95 | rest-with-spring-boot-and-kotlin | Apache License 2.0 |
src/main/kotlin/org/mohme/gradle/ElmPlugin.kt | ortex | 165,141,676 | true | {"Kotlin": 9627, "Groovy": 7888} | package org.mohme.gradle
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.create
import java.nio.file.Paths
class ElmPlugin : Plugin<Project> {
val DEFAULT_EXECUTABLE = "elm"
val DEFAULT_MAIN_MODULE = "Main.elm"
val DEFAULT_TARGET_MODULE = "elm.js"
val DEFAULT_T... | 0 | Kotlin | 0 | 0 | 70291b0fc3864174ba558f93bd0d758deefc475b | 1,636 | gradle-elm-plugin | Apache License 2.0 |
save-cloud-common/src/jvmMain/kotlin/com/saveourtool/save/entities/Test.kt | saveourtool | 300,279,336 | false | {"Kotlin": 3391753, "SCSS": 86430, "JavaScript": 8966, "HTML": 8852, "Shell": 2770, "Smarty": 2608, "Dockerfile": 1366} | package com.saveourtool.save.entities
import com.saveourtool.save.spring.entity.BaseEntity
import com.saveourtool.save.test.TestDto
import com.saveourtool.save.utils.DATABASE_DELIMITER
import java.time.LocalDateTime
import javax.persistence.Entity
import javax.persistence.JoinColumn
import javax.persistence.ManyToOne
... | 202 | Kotlin | 3 | 38 | e101105f8e449253d5fbe81ece2668654d08639f | 1,314 | save-cloud | MIT License |
library/src/main/java/com/xt/endo/XTSHttpRequest.kt | XTStudio | 136,917,088 | false | {"Kotlin": 119645, "JavaScript": 22716, "TypeScript": 21775} | package com.xt.endo
import android.os.Handler
import android.os.StrictMode
import com.eclipsesource.v8.*
import com.eclipsesource.v8.utils.V8ObjectUtils
import com.xt.jscore.JSContext
import okhttp3.*
import org.json.JSONObject
import java.io.IOException
import java.lang.Exception
import java.util.concurrent.TimeUnit
... | 0 | Kotlin | 0 | 1 | 2218542023f2c87da3aee4ec1d525b48581fa55f | 5,734 | engine-android | MIT License |
src/test/kotlin/S05c10p03AlignmentGlobalReflexiveTest.kt | jimandreas | 377,843,697 | false | null | @file:Suppress("UNUSED_VARIABLE", "MemberVisibilityCanBePrivate", "ReplaceManualRangeWithIndicesCalls")
import algorithms.AlignmentGlobal
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
/**
Global alignment reflexive test
This tests the ... | 0 | Kotlin | 0 | 0 | 963808db990158936082531e8d2cdc75de86bbd0 | 7,648 | stepikBioinformaticsCourse | Apache License 2.0 |
backend/app/src/test/kotlin/io/tolgee/api/v2/controllers/v2ImportController/V2ImportControllerPluralizationTest.kt | tolgee | 303,766,501 | false | {"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439} | package io.tolgee.api.v2.controllers.v2ImportController
import io.tolgee.ProjectAuthControllerTest
import io.tolgee.development.testDataBuilder.data.dataImport.ImportPluralizationTestData
import io.tolgee.fixtures.andIsOk
import io.tolgee.model.translation.Translation
import io.tolgee.testing.annotations.ProjectJWTAut... | 170 | TypeScript | 188 | 1,837 | 6e01eec3a19c151a6e0aca49e187e2d0deef3082 | 1,976 | tolgee-platform | Apache License 2.0 |
app/src/main/java/com/example/pillee/jetpackcompnavigation/model/repository/AuthRepository.kt | 20Anna00 | 561,843,560 | false | {"Kotlin": 120615} | package com.example.pillee.jetpackcompnavigation.model.repository
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.tasks.await
import kotlinx.coroutines.withContext
class AuthRe... | 0 | Kotlin | 0 | 0 | c1baafc65772a54a1d6ec5636f7fbe261975bb05 | 1,503 | PAMN_App | MIT License |
sample-app/src/main/java/com/joinforage/android/example/ui/pos/POSComposeApp.kt | teamforage | 554,343,430 | false | {"Kotlin": 711060} | package com.joinforage.android.example.ui.pos
import android.util.Log
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import ... | 4 | Kotlin | 0 | 0 | e163cdba1718dc45fc3a5c8f17d7a650138eb480 | 44,173 | forage-android-sdk | MIT License |
app/src/main/java/se/isotop/lupin_moments/events/CalendarListItem.kt | Krille-Isotop | 238,940,085 | true | {"Kotlin": 18141} | package se.isotop.lupin_moments.events
import se.isotop.lupin_moments.ListAdapter
import se.isotop.lupin_moments.ListAdapter.ListItem.Companion.TYPE_CALENDAR_EVENT
data class CalendarListItem(
override val id: String,
val title: String,
val subTitle: String,
val startTime: String,
var imageURL: St... | 0 | Kotlin | 0 | 0 | 8f96d8fcb70323c8ef56bec039950c88700ee327 | 430 | lupin | MIT License |
core/src/main/kotlin/de/uulm/se/couchedit/processing/common/services/diff/Applicator.kt | sp-uulm | 303,650,849 | false | null | package de.uulm.se.couchedit.processing.common.services.diff
import com.google.inject.Inject
import de.uulm.se.couchedit.di.scope.processor.ProcessorScoped
import de.uulm.se.couchedit.model.base.probability.ProbabilityInfo
import de.uulm.se.couchedit.processing.common.model.ElementAddDiff
import de.uulm.se.couchedit.p... | 0 | Kotlin | 0 | 0 | 595266c0bca8f2ee6ff633c4b45b91e5f3132cc4 | 5,433 | CouchEdit | Apache License 2.0 |
app/src/main/java/com/prmto/mova_movieapp/feature_movie_tv_detail/data/dto/watch_provider/WatchProviderRegion.kt | tolgaprm | 541,709,201 | false | {"Kotlin": 535214} | package com.prmto.mova_movieapp.feature_movie_tv_detail.data.dto.watch_provider
import com.squareup.moshi.Json
data class WatchProviderRegion(
@Json(name = "TR") val tr: WatchProviderItem?,
@Json(name = "ES") val es: WatchProviderItem?,
@Json(name = "DE") val de: WatchProviderItem?,
@Json(name = "FR")... | 1 | Kotlin | 3 | 55 | 49dc57a50ee37a2187b743c6aaa543b1f15922d6 | 403 | Mova-MovieApp | Apache License 2.0 |
tangle-compiler/src/main/kotlin/tangle/inject/compiler/memberInject/fileGen/TangleAppScope_TangleInjector_Scope_ModuleGenerator.kt | RBusarow | 382,741,106 | false | null | /*
* Copyright (C) 2022 <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 ... | 27 | Kotlin | 112 | 76 | e3db551e3285ff46f0eda7d2a4d8d1102cf7c9c9 | 3,060 | Tangle | Apache License 2.0 |
app/src/main/kotlin/com/adesso/movee/uimodel/MovieCastUiModel.kt | adessoTurkey | 246,803,496 | false | {"Kotlin": 262786, "Shell": 866} | package com.adesso.movee.uimodel
import com.adesso.movee.base.ListAdapterItem
data class MovieCastUiModel(
override val creditId: String,
override val id: Long,
override val name: String,
override val profilePath: String?,
val castId: Long,
val character: String
) : ListAdapterItem, CreditUiMo... | 31 | Kotlin | 13 | 35 | b34346a815204c966311f0c879b66e05a10eab13 | 324 | android-sample-app | Apache License 2.0 |
Mobile/Android/app/src/main/java/com/razvantmz/onemove/ui/registerConfirmation/RegisterConfirmationActivity.kt | razvantmzz | 315,075,478 | false | {"Text": 1, "Markdown": 1, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Proguard": 1, "JSON": 1, "Kotlin": 125, "XML": 114, "Java": 1} | package com.razvantmz.onemove.ui.registerConfirmation
import android.content.Intent
import android.os.Bundle
import androidx.lifecycle.ViewModelProviders
import com.razvantmz.onemove.databinding.ActivityRegisterConfirmationBinding
import com.razvantmz.onemove.ui.signIn.SignInActivity
import com.razvantmz.onemove.ui.ba... | 1 | null | 1 | 1 | 05bde5b64e54f6091dedcdd2da7093c3bfa4f522 | 1,023 | gym-app | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.