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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
sip-base/src/main/kotlin/com/basicfu/sip/base/model/po/UserAuth.kt | c3p4501 | 189,163,300 | true | {"Kotlin": 382525, "JavaScript": 6535, "HTML": 4170, "Dockerfile": 1708, "Java": 104} | package com.basicfu.sip.base.model.po
import javax.persistence.*
@Table(name = "user_auth")
class UserAuth {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
var id: Long? = null
@Column(name = "app_id")
var appId: Long? = null
var uid: Long? = null
var type: Int? = null
var use... | 0 | Kotlin | 0 | 0 | 75a8e5fb254687e0fdf41faba49560aacfd4ec48 | 458 | sip | MIT License |
engine-adapter/camunda-platform-7-remote-core/src/main/kotlin/dev/bpmcrafters/processengineapi/adapter/c7/remote/correlation/CorrelationApiImpl.kt | bpm-crafters | 741,987,331 | false | {"Kotlin": 212847} | package dev.bpmcrafters.processengineapi.adapter.c7.remote.correlation
import dev.bpmcrafters.processengineapi.Empty
import dev.bpmcrafters.processengineapi.MetaInfo
import dev.bpmcrafters.processengineapi.MetaInfoAware
import dev.bpmcrafters.processengineapi.correlation.CorrelateMessageCmd
import dev.bpmcrafters.proc... | 7 | Kotlin | 0 | 6 | 6dc6df1e75d4a4b6b9399cb84d07e982133a66a8 | 1,164 | process-engine-api | Apache License 2.0 |
Compose-Ur-Pres/plugin/cup-speaker-window/src/wasmJsMain/kotlin/net/kodein/cup/speaker/SpeakerWindow.web.kt | KodeinKoders | 786,962,808 | false | {"Kotlin": 183157, "HTML": 1674} | package net.kodein.cup.speaker
import androidx.compose.runtime.Composable
import net.kodein.cup.config.CupConfigurationBuilder
import net.kodein.cup.config.CupConfigurationDsl
@CupConfigurationDsl
public actual fun CupConfigurationBuilder.speakerWindow() {}
@Composable
public actual fun isInSpeakerWindow(): Boolean... | 1 | Kotlin | 1 | 124 | 751468499eb1d1c4fe5c3791801648760f637ad7 | 329 | CuP | Apache License 2.0 |
app/src/unitTest/kotlin/batect/ioc/SessionKodeinFactorySpec.kt | thirkcircus | 288,853,265 | false | {"Gradle": 32, "INI": 2, "Markdown": 43, "YAML": 64, "Shell": 33, "Text": 8, "Ignore List": 2, "Batchfile": 8, "Git Attributes": 1, "EditorConfig": 1, "Kotlin": 668, "Dockerfile": 31, "HTML": 5, "Groovy": 9, "PowerShell": 3, "Java": 1, "Python": 3, "JSON": 1, "CSS": 2, "JavaScript": 1} | /*
Copyright 2017-2020 Charles Korn.
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... | 1 | null | 1 | 1 | 107cdbb4920c3bca90f6af8a54f730ce7cf76637 | 2,910 | batect | Apache License 2.0 |
src/main/kotlin/org/swordess/common/vitool/ported/jib/HelpfulSuggestions.kt | swordess | 206,268,650 | false | {"Kotlin": 103664, "Smalltalk": 54} | /*
* Copyright 2018 Google LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 10 | Kotlin | 0 | 3 | 8e13f5e6a194a28ea9346b384e95d4f921910924 | 2,255 | vitool | MIT License |
src/main/kotlin/io/openfuture/chain/smartcontract/deploy/utils/Extentions.kt | fossabot | 160,686,845 | true | {"Kotlin": 403732, "Dockerfile": 233, "Shell": 74} | package io.openfuture.chain.smartcontract.deploy.utils
import java.net.URL
import java.nio.file.Path
fun Path.toURL(): URL = this.toUri().toURL()
val String.asPackagePath: String get() = this.replace('/', '.')
val String.asResourcePath: String get() = this.replace('.', '/') | 0 | Kotlin | 0 | 0 | 5924678aade4147e0f52bc719f41d689085bd57f | 277 | open-chain | MIT License |
feature-staking-impl/src/main/java/com/dfinn/wallet/feature_staking_impl/presentation/confirm/di/ConfirmStakingModule.kt | finn-exchange | 500,972,990 | false | null | package com.dfinn.wallet.feature_staking_impl.presentation.confirm.di
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoMap
import com.dfinn.wallet.common.address.AddressIconG... | 0 | Kotlin | 0 | 0 | 6cc7a0a4abb773daf3da781b7bd1dda5dbf9b01d | 4,181 | dfinn-android-wallet | Apache License 2.0 |
src/main/kotlin/com/nullman/gadget_collection_tool/repository/BucketRepository.kt | nullman | 233,671,854 | false | null | package com.nullman.gadget_collection_tool.repository
import com.nullman.gadget_collection_tool.model.Bucket
import org.springframework.data.jpa.repository.Query
import org.springframework.data.repository.CrudRepository
import org.springframework.data.repository.query.Param
import org.springframework.stereotype.Reposi... | 0 | Kotlin | 0 | 0 | 5cc40c9c18f04a1a450e47688e3c91a81ea5f01d | 597 | gadget-collection-tool | Creative Commons Attribution 3.0 Unported |
app/src/main/java/volovyk/guerrillamail/ui/details/EmailDetails.kt | oleksandrvolovyk | 611,731,548 | false | {"Kotlin": 158288, "Java": 767} | package volovyk.guerrillamail.ui.details
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import androidx... | 0 | Kotlin | 0 | 1 | 8fac1e3e158cb0065f5f0486e5e88e75335616fe | 1,199 | guerrilla-mail-android-client | MIT License |
RxOperators/src/main/java/com/freeankit/rxkotlinoperators/model/User.kt | ArchitectAK | 113,560,069 | false | null | package com.freeankit.rxjava2samples.model
/**
* @author Ankit Kumar (ankitdroiddeveloper@gmail.com) on 08/12/2017 (MM/DD/YYYY )
*/
public class User() {
var id: Int = 0
var login: String = ""
var url: String = ""
var isFollowing: Boolean = false
@JvmOverloads constructor(githubUser: ApiUser) : ... | 0 | null | 25 | 69 | 2734e68c18c3f85a2a05a12b807c279b66341d2c | 695 | RxKotlin-RxJava2-Android-Samples | Apache License 2.0 |
button/src/main/java/com/github/nikartm/button/util/Util.kt | nikartm | 177,549,092 | false | {"Gradle": 6, "Java Properties": 1, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Java": 3, "XML": 32, "Kotlin": 14} | package com.github.nikartm.button.util
import android.content.res.Resources
import android.util.TypedValue
/**
* The [FitButton] utils
* @author <NAME> on 27.03.2019.
* @version 1.0
*/
fun dpToPx(dp: Float) : Float {
return TypedValue
.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, Resources.get... | 7 | Kotlin | 21 | 78 | 71462259261ab2d2d6defe9a448ab6c522164f8d | 810 | FitButton | Apache License 2.0 |
src/main/java/org/mitallast/queue/crdt/bucket/Bucket.kt | mitallast | 23,783,024 | false | {"YAML": 1, "XML": 2, "Maven POM": 1, "Dockerfile": 1, "Text": 1, "Ignore List": 1, "Markdown": 1, "Kotlin": 148, "Java": 26, "HTML": 1, "CSS": 1, "JavaScript": 1, "Shell": 1} | package org.mitallast.queue.crdt.bucket
import org.mitallast.queue.crdt.log.ReplicatedLog
import org.mitallast.queue.crdt.registry.CrdtRegistry
import org.mitallast.queue.crdt.replication.Replicator
import org.mitallast.queue.crdt.replication.state.ReplicaState
import java.io.Closeable
import java.util.concurrent.loc... | 5 | Kotlin | 6 | 22 | 05161d99d10f6cd9c1d8c69ae5d88d5993297a28 | 622 | netty-queue | MIT License |
kotlin/src/katas/kotlin/leetcode/sort_colors/SortColors.kt | dkandalov | 2,517,870 | false | null | package katas.kotlin.leetcode.sort_colors
import datsok.shouldEqual
import nonstdlib.permutationsSequence
import nonstdlib.printed
import org.junit.jupiter.api.Test
/**
* https://leetcode.com/problems/sort-colors
*/
class SortColors {
@Test fun `it works`() {
listOf(0, 1, 2).permutationsSequence().forEa... | 7 | null | 3 | 5 | 0f169804fae2984b1a78fc25da2d7157a8c7a7be | 1,183 | katas | The Unlicense |
compiler/testData/diagnostics/tests/SelfTypesUnsupported.kt | staltz | 38,581,975 | true | {"Markdown": 34, "XML": 687, "Ant Build System": 40, "Ignore List": 8, "Git Attributes": 1, "Kotlin": 18510, "Java": 4307, "Protocol Buffer": 4, "Text": 4085, "JavaScript": 63, "JAR Manifest": 3, "Roff": 30, "Roff Manpage": 10, "INI": 7, "HTML": 135, "Groovy": 20, "Maven POM": 50, "Gradle": 71, "Java Properties": 10, "... | // !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(f: <!UNSUPPORTED!>This<!>) {}
interface C<T: C<<!UNSUPPORTED!>This<!>>> {
val x: <!UNSUPPORTED!>This<!>
val y: <!UNSUPPORTED!>This<!>?
} | 0 | Java | 0 | 1 | 80074c71fa925a1c7173e3fffeea4cdc5872460f | 189 | kotlin | Apache License 2.0 |
app/src/main/java/com/mithuroy/camcrop/MainFragment.kt | TheMithuRoy | 136,511,596 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Proguard": 2, "Kotlin": 7, "XML": 14, "Java": 2} | package com.mithuroy.camcrop
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.mithuroy.camtocrop.CameraActivity
import co... | 0 | Kotlin | 0 | 0 | 93213d30e910b96460ef3be65a083ed65930d229 | 1,463 | CamToCrop-Android | MIT License |
encryption/src/main/java/com/safechat/encryption/symmetric/AESCipher.kt | asymmetric-team | 58,806,571 | false | {"Gradle": 23, "Shell": 2, "INI": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Markdown": 1, "Java Properties": 1, "JSON": 3, "XML": 30, "Kotlin": 105, "Java": 1} | package com.safechat.encryption.symmetric
import com.safechat.encryption.util.asObservable
import rx.Observable
import java.security.Key
import javax.crypto.Cipher
import javax.crypto.spec.IvParameterSpec
object AESCipher {
fun encrypt(decrypted: ByteArray, key: Key): Observable<ByteArray> {
return { enc... | 6 | null | 2 | 1 | 34274e068eef9e297c6ad9e7f3d896d37fd0d125 | 1,035 | secure-messenger-android | Apache License 2.0 |
app/src/main/java/org/stepik/android/domain/course/analytic/UserCourseActionEvent.kt | StepicOrg | 42,045,161 | false | null | package org.stepik.android.domain.course.analytic
import org.stepik.android.domain.base.analytic.AnalyticEvent
import org.stepik.android.model.Course
import org.stepik.android.presentation.user_courses.model.UserCourseAction
class UserCourseActionEvent(
userCourseAction: UserCourseAction,
course: Course,
... | 13 | null | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 1,848 | stepik-android | Apache License 2.0 |
domain/src/main/java/com/shenoto/domain/bases/BaseErrorModel.kt | alibeheshtian | 156,619,367 | false | {"Gradle": 5, "JSON": 1, "Java Properties": 1, "Shell": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 1, "Proguard": 3, "Java": 4, "XML": 18, "Kotlin": 27, "INI": 1} | package com.shenoto.domain.bases
import com.google.gson.annotations.SerializedName
data class BaseErrorModel<E>(
@SerializedName("code")
val code: Int,
@SerializedName("errorCode")
val errorCode: String,
@SerializedName("logRef")
val logRef: Int,
@SerializedName("message")
val message... | 1 | null | 1 | 1 | 98671f11b65cfb9f0f96171a5ccd67563a118320 | 325 | Kotlin-Kodin-DI-MVVM-retrofit-Room | Apache License 2.0 |
analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/transformers/LLFirDesignatedSupertypeResolverTransformer.kt | vmichalak | 177,396,019 | false | null | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.analysis.low.level.api.fir.transformers
import org.jetbrains.kotlin.analysis.low... | 1 | null | 1 | 1 | f07163125b2f0cd0c67486c77d0444a0d8b7c8d2 | 8,724 | kotlin | Apache License 2.0 |
kapitel_08/BluetoothChatDemo/app/src/main/java/com/thomaskuenneth/androidbuch/bluetoothchatdemo/BluetoothChatDemoActivity.kt | tkuenneth | 239,271,728 | false | null | package com.thomaskuenneth.androidbuch.bluetoothchatdemo
import android.Manifest
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import android.view.KeyEvent
import android.widget.*
import andro... | 0 | Kotlin | 0 | 1 | 977f93b8ff9bdd50d45a1a51d009b1eba75b7eb0 | 5,064 | begleitmaterialien-zu-android-11 | Apache License 2.0 |
app/src/main/java/app/devlife/connect2sql/sql/driver/helper/DriverHelperFactory.kt | devlife-apps | 148,668,095 | false | {"Gemfile.lock": 1, "Gradle": 4, "Markdown": 2, "INI": 1, "Shell": 4, "Text": 9, "Ignore List": 2, "Batchfile": 1, "YAML": 2, "Ruby": 2, "Kotlin": 83, "Java Properties": 1, "XML": 87, "Java": 49, "Dockerfile": 1} | package app.devlife.connect2sql.sql.driver.helper
import app.devlife.connect2sql.sql.DriverType
/**
*/
object DriverHelperFactory {
private val driverHelpers = hashMapOf<DriverType, DriverHelper>()
init {
driverHelpers[DriverType.MSSQL] = MsSqlDriverHelper()
driverHelpers[DriverType.MYSQL] ... | 0 | Kotlin | 1 | 3 | ab697a1f7899919fda66c1e3b08e1a8e6831c341 | 586 | connect2sql | Apache License 2.0 |
app/src/main/java/com/dhairytripathi/markettoday/data/model/NewsAdapterEvent.kt | hexdecimal16 | 326,638,865 | false | null | package com.dhairytripathi.markettoday.data.model
import com.dhairytripathi.markettoday.adapters.NewsArticlesAdapter
/**
* Describes all the events originated from
* [NewsArticlesAdapter].
*/
sealed class NewsAdapterEvent {
/* Describes item click event */
object ClickEvent : NewsAdapterEvent()
} | 1 | null | 1 | 1 | e01d0fb0b5bc1e44ac19863e48aa7ee642fcca13 | 311 | MarketToday | MIT License |
app/src/main/java/ru/abbysoft/wisebuild/model/VkUser.kt | abbysoft-team | 197,832,195 | false | {"Java": 73393, "Kotlin": 24525} | package ru.abbysoft.wisebuild.model
import android.os.Parcel
import android.os.Parcelable
import org.json.JSONObject
/**
* Vk User model class
*
* @author https://github.com/VKCOM/vk-android-sdk
*/
data class VkUser(val firstName: String? = "",
val lastName: String? = "",
val d... | 1 | null | 1 | 1 | 908f14ac03336b154ea111e83006c7253a1117e2 | 1,232 | WiseBuild | BSD Source Code Attribution |
tachikoma-database-api/src/main/kotlin/com/sourceforgery/tachikoma/database/auth/InternalCreateUserService.kt | SourceForgery | 112,076,342 | false | null | package com.sourceforgery.tachikoma.database.auth
import com.sourceforgery.tachikoma.common.AuthenticationRole
import com.sourceforgery.tachikoma.common.Email
import com.sourceforgery.tachikoma.database.objects.AccountDBO
import com.sourceforgery.tachikoma.database.objects.AuthenticationDBO
import com.sourceforgery.ta... | 7 | Kotlin | 3 | 5 | 12d8d0e0ccafaa8506b98d6269cae4f1bb228bf4 | 885 | tachikoma | Apache License 2.0 |
plugins/devkit/intellij.devkit.workspaceModel/tests/testData/codeGen/symbolicIdNotDeclared/before/entity.kt | ingokegel | 72,937,917 | true | null | package com.intellij.workspaceModel.test.api
import com.intellij.platform.workspace.storage.PersistentEntityId
import com.intellij.platform.workspace.storage.WorkspaceEntity
import com.intellij.platform.workspace.storage.WorkspaceEntityWithSymbolicId
interface SimpleSymbolicIdEntity : WorkspaceEntityWithSymbolicId {
... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 501 | intellij-community | Apache License 2.0 |
challenge/flutter/all_samples/widgets_customscrollview_2/android/app/src/main/kotlin/com/example/widgets_customscrollview_2/MainActivity.kt | davidzou | 5,868,257 | false | {"C++": 11211831, "CMake": 9084708, "Dart": 1111417, "HTML": 1009596, "Swift": 548973, "C": 446637, "Java": 193711, "Kotlin": 80348, "Objective-C": 20634, "Shell": 6476, "AIDL": 6075, "Dockerfile": 1384, "Groovy": 368} | package com.example.widgets_customscrollview_2
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | C++ | 1 | 4 | 1060f6501c432510e164578d4af60a49cd5ed681 | 143 | WonderingWall | Apache License 2.0 |
domain/src/main/java/com/social/com/domain/model/User.kt | igorka48 | 92,876,132 | false | null | package com.social.com.domain.model
/**
* Created by igor on 3/20/17.
*/
data class User(val name: String?) | 0 | null | 0 | 1 | bb282e44b1eed072fd06c4da6eb72779066edd31 | 110 | CleanSocialAppTemplate | Apache License 2.0 |
src/main/java/com/adven/concordion/extensions/exam/core/CommandRegistry.kt | kudndre | 210,906,876 | true | {"Gradle": 2, "INI": 1, "Shell": 2, "Text": 1, "Ignore List": 1, "Batchfile": 1, "YAML": 1, "Markdown": 18, "XML": 10, "Java Properties": 1, "Kotlin": 54, "Java": 31, "HTML": 8, "JSON": 8, "SQL": 1, "JavaScript": 12, "CSS": 9} | package com.adven.concordion.extensions.exam.core
import com.adven.concordion.extensions.exam.core.commands.*
import net.javacrumbs.jsonunit.core.Configuration
import org.xmlunit.diff.NodeMatcher
import java.util.*
class CommandRegistry(jsonUnitCfg: Configuration, nodeMatcher: NodeMatcher) {
private val commands ... | 0 | JavaScript | 0 | 0 | f4b314e67577a02d3ffd99f95652094c7833fc2f | 1,069 | Exam | MIT License |
src/main/code/trypp/support/math/CompassDirection.kt | d9n | 56,415,500 | false | null | package trypp.support.math
import java.util.*
/**
* Enumeration for compass directions and various utility methods.
*/
enum class CompassDirection {
E,
NE,
N,
NW,
W,
SW,
S,
SE;
val angle: Angle
get() = ANGLES[ordinal]
fun faces(angle: Angle): Boolean {
retur... | 0 | Kotlin | 0 | 0 | 08c2781c2fe8d42c22fbafcfef1ba9d66cc60df2 | 1,393 | trypp.support | MIT License |
src/main/kotlin/org/rust/lang/utils/evaluation/ExprValue.kt | lundibundi | 196,070,202 | true | {"Kotlin": 4655671, "Rust": 103690, "Python": 48426, "Lex": 20296, "HTML": 13447, "Shell": 760, "Java": 586, "RenderScript": 318} | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.utils.evaluation
sealed class ExprValue {
data class Bool(val value: Boolean) : ExprValue() {
override fun toString(): String = value.toString()
}
data class Integer(va... | 0 | Kotlin | 0 | 1 | 51e8843a408612d6a89661f1aa7fb9ae2042f3ba | 759 | intellij-rust | MIT License |
export/src/main/kotlin/de/uulm/se/couchedit/export/di/ExportModule.kt | sp-uulm | 303,650,849 | false | null | package de.uulm.se.couchedit.export.di
import com.google.common.reflect.TypeToken
import com.google.inject.AbstractModule
import com.google.inject.TypeLiteral
import com.google.inject.multibindings.MapBinder
import de.uulm.se.couchedit.export.converters.AggregateConverter
import de.uulm.se.couchedit.export.converters.... | 0 | Kotlin | 0 | 0 | 595266c0bca8f2ee6ff633c4b45b91e5f3132cc4 | 4,624 | CouchEdit | Apache License 2.0 |
src/test/kotlin/integration/DevelopmentIntegrationTest.kt | trx-base | 616,822,591 | false | null | package integration
import assertk.assertThat
import assertk.assertions.isEqualTo
import integration.util.CompletableFutureWithCounter
import io.micronaut.serde.ObjectMapper
import io.micronaut.test.extensions.junit5.annotation.MicronautTest
import jakarta.inject.Inject
import mqtt.MqttConfig
import org.eclipse.paho.m... | 0 | Kotlin | 0 | 0 | 66de2e58e7d71ddd3b43fb2d12990d0b58f909e6 | 4,614 | mqtt-delay | MIT License |
src/main/kotlin/org/randomcat/agorabot/Feature.kt | randomnetcat | 291,139,813 | false | null | package org.randomcat.agorabot
import org.randomcat.agorabot.buttons.ButtonHandlerMap
import org.randomcat.agorabot.commands.impl.BaseCommandStrategy
import org.randomcat.agorabot.listener.Command
import org.randomcat.agorabot.listener.QueryableCommandRegistry
interface FeatureContext {
// The strategy that shoul... | 0 | Kotlin | 2 | 4 | dd8d0317af2830dbac6412c98b108d2f50777a80 | 2,490 | AgoraBot | MIT License |
app/src/main/java/com/jorgetranin/businesscard/ui/Image.kt | JorgeTranin | 634,270,582 | false | null | package com.jorgetranin.businesscard.ui
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Canvas
import android.net.Uri
import android.os.Build
import android.os.Environment
import android.provider.MediaStore
import ... | 0 | Kotlin | 0 | 0 | d4e83121b88271b404391c6e074ac390399c130b | 3,731 | BusinessCard | MIT License |
port-in/src/main/kotlin/com/yapp/bol/file/FileService.kt | onboard-github | 692,666,215 | false | {"Kotlin": 325967, "HTML": 75875, "JavaScript": 11623, "CSS": 1284, "Dockerfile": 708, "Python": 578} | package com.yapp.bol.file
import com.yapp.bol.auth.UserId
import com.yapp.bol.file.dto.RawFileData
interface FileService {
fun uploadFile(request: RawFileData): FileInfo
fun downloadFile(userId: UserId?, uuid: String): RawFileData
/**
* @return Default Image URL
*/
fun getDefaultGroupImage(... | 1 | Kotlin | 0 | 1 | b0704e8e7743fe4bdb7e1587e3137a881460f188 | 334 | onboard-be | Apache License 2.0 |
rainbow-cake-test/src/main/java/co/zsmb/rainbowcake/test/CoroutineIODispatcherTestRule.kt | rainbowcake | 185,018,634 | false | null | package co.zsmb.rainbowcake.test
import co.zsmb.rainbowcake.ioContext
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.TestCoroutineDispatcher
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.State... | 3 | Kotlin | 24 | 258 | 57e91273a319a5e5b92e853b4e6ad9b3564ce60a | 1,193 | rainbowcake | Apache License 2.0 |
data/src/main/java/com/teamwiney/data/datasource/WineDataSource.kt | AdultOfNineteen | 639,481,288 | false | {"Kotlin": 355832} | package com.teamwiney.data.datasource
import com.teamwiney.core.common.base.ResponseWrapper
import com.teamwiney.data.network.adapter.ApiResult
import com.teamwiney.data.network.model.response.RecommendWineResponse
import kotlinx.coroutines.flow.Flow
interface WineDataSource {
fun getRecommendWines(): Flow<ApiRe... | 2 | Kotlin | 1 | 3 | 1ff7bbdac7d62386b449c243036c3a0ab4281177 | 374 | WINEY-Android | MIT License |
data/src/main/kotlin/io/github/fobo66/data/repositories/RatingRepository.kt | fobo66 | 117,318,095 | false | {"Kotlin": 113176} | /*
* Copyright 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 ... | 7 | Kotlin | 0 | 5 | 64f969a3d83a7479af4a632d8fef7e8fff687a89 | 2,224 | WearMMR | Apache License 2.0 |
src/main/kotlin/com/hubelias/parkingmeter/port/adapter/rest/ReceiptsEndpoint.kt | hubelias | 158,100,775 | false | {"Kotlin": 54389, "Shell": 87} | package com.hubelias.parkingmeter.port.adapter.rest
import com.hubelias.parkingmeter.application.ParkingMeterFacade
import com.hubelias.parkingmeter.application.ParkingReceiptDto
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springfra... | 0 | Kotlin | 0 | 0 | d6b10950327667e68dce3aff9c59d3c39910a5f4 | 778 | parking-meter-app | MIT License |
common/tools/src/commonTest/kotlin/com/sedsoftware/common/RemindiesControllerTest.kt | djkovrik | 469,095,797 | false | null | package com.sedsoftware.common
import com.badoo.reaktive.completable.subscribeOn
import com.badoo.reaktive.observable.firstOrError
import com.badoo.reaktive.observable.subscribeOn
import com.badoo.reaktive.scheduler.Scheduler
import com.badoo.reaktive.scheduler.trampolineScheduler
import com.badoo.reaktive.single.bloc... | 0 | Kotlin | 0 | 0 | 5fa34d9da3a7bcb1ff67aca992bcaae097b770a3 | 14,514 | Remindies | MIT License |
feature_automation/src/main/kotlin/com/adwi/tool_automation/automation/AutomationManager.kt | charlee-dev | 425,251,545 | false | {"Kotlin": 382472} | package com.adwi.tool_automation.automation
import androidx.work.Data
import com.adwi.pexwallpapers.domain.model.Wallpaper
interface AutomationManager {
fun startAutoChangeWallpaperWork(delay: Long, favorites: List<Wallpaper>)
fun workCreateAutoChangeWallpaperWork(
workName: String,
wallpape... | 1 | Kotlin | 10 | 157 | 82ac2bdff8b4a4e700e74efa443205b9cadbe9de | 646 | PexWallpapers | MIT License |
geary-papermc-tracking/src/main/kotlin/com/mineinabyss/geary/papermc/tracking/items/components/SetItemIgnoredProperties.kt | MineInAbyss | 592,086,123 | false | {"Kotlin": 156567} | package com.mineinabyss.geary.papermc.tracking.items.components
import com.mineinabyss.idofront.serialization.SerializableItemStack
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.util.*
@Serializable
@SerialName("geary:set.item.ignored_properties")
data class SetItemIgno... | 2 | Kotlin | 0 | 1 | ea78163a512afa7325272d52ce0208ddec2a190b | 587 | geary-papermc | MIT License |
app/src/main/java/com/steve_md/smartmkulima/data/room/FarmCycleRevenueRecordsDao.kt | MuindiStephen | 559,873,955 | false | {"Kotlin": 480366, "Java": 83493, "CMake": 595, "C++": 247} | package com.steve_md.smartmkulima.data.room
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.steve_md.smartmkulima.model.financialdata.FarmFinanceExpenseRecords
import com.steve_md.smartmkulima.model.fi... | 1 | Kotlin | 1 | 5 | 6b42ab664c40673202ddd3008403761e8a3c6464 | 951 | Agri-Sasa | MIT License |
data/src/main/java/com/labs/data/repository/genre/GenreRepositoryModule.kt | Rarj | 763,882,135 | false | {"Kotlin": 109931} | package com.labs.data.repository.genre
import com.labs.data.di.ApiService
import com.labs.data.di.NetworkQualifierApiService
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent::class)
class GenreRepositoryModu... | 1 | Kotlin | 0 | 0 | 2aea38a225cd81e3e84724bdbd6bc0e8776692c9 | 498 | MoviX | Apache License 2.0 |
src/test/kotlin/no/nav/familie/ba/sak/kjerne/autovedtak/omregning/Autobrev6og18ÅrServiceTest.kt | navikt | 224,639,942 | false | null | package no.nav.familie.ba.sak.kjerne.autovedtak.omregning
import io.mockk.every
import io.mockk.just
import io.mockk.mockk
import io.mockk.runs
import io.mockk.verify
import no.nav.familie.ba.sak.common.inneværendeMåned
import no.nav.familie.ba.sak.common.lagBehandling
import no.nav.familie.ba.sak.common.lagTestPerson... | 8 | null | 0 | 7 | d4a7ef6bc7ba6f0dfdbea1e0d7c7413a97891d55 | 9,434 | familie-ba-sak | MIT License |
app/src/main/java/com/kotlin/mall/ui/adapter/HomeDiscountAdapter.kt | xiao125 | 140,819,180 | false | {"Kotlin": 100467, "Java": 6793} | package com.kotlin.mall.ui.adapter
import android.content.Context
import android.graphics.Paint
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.kotlin.base.ui.adapter.BaseRecyclerViewAdapter
import com.kotlin.base.utils.... | 0 | Kotlin | 0 | 0 | 8b8f75c853651f2952b3b9792e609d050ce5ab54 | 1,451 | KotlinDemo | Apache License 2.0 |
quotesapp/android/app/src/main/kotlin/com/example/quotesapp/MainActivity.kt | kmjaman | 395,090,120 | false | {"HTML": 3697, "Dart": 3336, "Swift": 404, "Kotlin": 126, "Objective-C": 38} | package com.example.quotesapp
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | HTML | 1 | 0 | e7243a42681aea2972385d13d32c91739122d9c2 | 126 | flutter-quotes | MIT License |
src/main/kotlin/one/devos/osuv2kt/models/event/AchievementEvent.kt | devOS-Sanity-Edition | 856,181,413 | false | {"Kotlin": 49164} | package one.devos.osuv2kt.models.event
import com.google.gson.JsonElement
public data class AchievementEvent(
public val achievement: JsonElement, // type is supposed to be Achievement but what
public val user: EventUser
)
| 0 | Kotlin | 0 | 0 | ebefb4d6ad7003c46c4e482d8229af8df6552b81 | 233 | osuv2kt | MIT License |
bbfgradle/tmp/results/diffABI/shzdsnc_FILE.kt | DaniilStepanov | 346,008,310 | false | {"Markdown": 122, "Gradle": 762, "Gradle Kotlin DSL": 649, "Java Properties": 23, "Shell": 49, "Ignore List": 20, "Batchfile": 26, "Git Attributes": 8, "Kotlin": 82508, "Protocol Buffer": 12, "Java": 6674, "Proguard": 12, "XML": 1698, "Text": 13298, "INI": 221, "JavaScript": 294, "JAR Manifest": 2, "Roff": 217, "Roff M... | // Bug happens on JVM , JVM -Xuse-ir
// FILE: tmp0.kt
@file:JvmMultifileClass()
import kotlin.collections.*
import kotlin.annotation.*
import kotlin.test.*
import kotlin.experimental.*
import kotlin.jvm.*
@Ignore()
fun foo() : String =TODO()
@UseExperimental(Annotation::class)
fun box(): String =TODO()
internal... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 2,493 | kotlinWithFuzzer | Apache License 2.0 |
app/src/main/java/ru/luckycactus/steamroulette/domain/games_filter/SaveLibraryFilterUseCase.kt | luckycactus | 196,364,852 | false | null | package ru.luckycactus.steamroulette.domain.games_filter
import ru.luckycactus.steamroulette.domain.core.usecase.SuspendUseCase
import ru.luckycactus.steamroulette.domain.games_filter.entity.GamesFilter
import javax.inject.Inject
class SaveLibraryFilterUseCase @Inject constructor(
private val filterRepository: Li... | 0 | Kotlin | 0 | 5 | c6c2b00ca77f8224145ef3182b1910bd249d76ba | 492 | steam-roulette | Apache License 2.0 |
app/src/main/java/com/rohitjakhar/hashpass/presention/SplashScreen.kt | rohitjakhar | 469,813,668 | false | {"Kotlin": 112878} | package com.rohitjakhar.hashpass.presention
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import com.google.android.p... | 3 | Kotlin | 3 | 24 | e7fe17c725546ed256694681ae262ebf928040b9 | 3,052 | hashpass | MIT License |
sample/src/main/java/org/aerogear/graphqlandroid/model/Task.kt | secondsun | 198,443,009 | true | {"Kotlin": 24739, "Java": 1121} | package org.aerogear.graphqlandroid.model
data class Task(val title: String, val desc: String, val id: Int, val version :Int) | 0 | Kotlin | 0 | 0 | 7b51c20347446f06384a5729ebb9a1ebcd71c121 | 126 | offix-android | Apache License 2.0 |
compiler/testData/codegen/bytecodeText/inline/whenMappingOnCallSite.kt | JakeWharton | 99,388,807 | false | null | package test
enum class X {
A,
B
}
inline fun test(x: X, s: (X) -> String): String {
return s(x)
}
fun box(): String {
return test(X.A) {
when(it) {
X.A-> "O"
X.B-> "K"
}
} + test(X.B) {
when(it) {
X.A-> "O"
X.B-> "K"
... | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 433 | kotlin | Apache License 2.0 |
feature-payment/src/main/java/adilahsoft/jgo/android/feature_payment/ui/status/PaymentStatusFilterData.kt | abahadilah | 651,759,726 | false | null | package adilahsoft.jgo.android.feature_payment.ui.status
import edts.base.android.core_data.source.local.PaymentStatus
import id.co.edtslib.edtsds.list.radiobuttonlist.DataSelected
class PaymentStatusFilterData(val type: PaymentStatus): DataSelected() {
override fun toString() = type.toString()
} | 0 | Kotlin | 0 | 0 | 998aadd2e570c1443f545a792140a72589b77602 | 303 | jgo | MIT License |
src/main/kotlin/kgroup1/StringLambda1.kt | jz1010 | 377,638,579 | false | {"Kotlin": 5452, "Python": 2428, "Java": 1259, "Makefile": 464, "Dockerfile": 64} | package kgroup1
// @desc Description of **combine()**
fun List<String>.combine(): String = mapIndexed { i, s -> i.toString() + s }.joinToString(", ")
fun main() {
println(listOf("a").combine())
println(listOf("a", "b", "c", "d").combine())
} | 0 | Kotlin | 0 | 0 | 6816002cee116c085a5839c45853c06377bf5d63 | 248 | readingbat-gunner10z | Apache License 2.0 |
compiler-gradle-plugin/src/main/kotlin/land/sungbin/composeinvestigator/gradle/ComposeInvestigatorPluginExtension.kt | jisungbin | 703,660,716 | false | {"Kotlin": 257855, "Shell": 447} | // Copyright 2024 Ji Sungbin
// SPDX-License-Identifier: Apache-2.0
package land.sungbin.composeinvestigator.gradle
import javax.inject.Inject
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import org.gradle.kotlin.dsl.property
public abstract class ComposeInvestigatorPluginExtensio... | 7 | Kotlin | 7 | 283 | 4c668b87e4b0bf72fdfa6f7d62317b5767741e8f | 552 | ComposeInvestigator | Apache License 2.0 |
src/main/kotlin/io/emeraldpay/dshackle/reader/EmptyReader.kt | emeraldpay | 191,297,773 | false | {"Kotlin": 1137780, "Groovy": 481303, "Shell": 646} | /**
* Copyright (c) 2020 EmeraldPay, Inc
* Copyright (c) 2019 ETCDEV GmbH
*
* 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
*
* U... | 74 | Kotlin | 63 | 292 | 8076c81dd6e8213b107718764ec9e094b7653f04 | 1,046 | dshackle | Apache License 2.0 |
ui/magisk/src/main/java/com/afterroot/allusive2/magisk/Extensions.kt | thesandipv | 42,599,784 | false | null | /*
* Copyright (C) 2016-2022 Sandip Vaghela
* 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 ... | 7 | Kotlin | 2 | 9 | 409ff98e14e39c790778969d719c394a6e59ae13 | 917 | pointer_replacer | Apache License 2.0 |
moove/web/src/main/kotlin/io/charlescd/moove/web/CharlesApplication.kt | ZupIT | 249,519,503 | false | null | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 93 | null | 76 | 343 | a65319e3712dba1612731b44346100e89cd26a60 | 1,670 | charlescd | Apache License 2.0 |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/magic/TeleportType.kt | 2011Scape | 578,880,245 | false | null | package gg.rsmod.plugins.content.magic
import gg.rsmod.game.model.Graphic
/**
* @author Tom <<EMAIL>>
*/
enum class TeleportType(val teleportDelay: Int, val animation: Int, val endAnimation: Int? = null, val graphic: Graphic? = null,
val endGraphic: Graphic? = null, val wildLvlRestriction: I... | 5 | null | 8 | 16 | bac0c3f7524809b489ccfaa4c6cb98a1b78adaa6 | 797 | game | Apache License 2.0 |
base/src/main/kotlin/lucascampos/modules/base/RouterActions.kt | lucasgcampos | 152,521,385 | false | null | package lucascampos.modules.base
const val PULL_REQUEST_ACTION = "lucascampos.modules.PullRequestActivity" | 1 | Kotlin | 1 | 3 | 0f22115c6865b73e22bc5550afe93c371faf9ba6 | 107 | android-modules | MIT License |
src/main/kotlin/de/debuglevel/streetdirectory/postalcode/GetPostalcodeResponse.kt | debuglevel | 349,827,124 | false | null | package de.debuglevel.streetdirectory.postalcode
import io.micronaut.data.annotation.DateCreated
import io.micronaut.data.annotation.DateUpdated
import java.time.LocalDateTime
import java.util.*
data class GetPostalcodeResponse(
val id: UUID,
/**
* The actual value of the postal code
*/
var code... | 9 | Kotlin | 1 | 1 | f979b8311174d7182ade8fb801f28f4d08d491be | 1,466 | street-lister | The Unlicense |
mysql-async/src/test/java/com/github/jasync/sql/db/mysql/QueryTimeoutSpec.kt | jcaromiq | 152,315,350 | false | null | package com.github.jasync.sql.db.mysql
class QueryTimeoutSpec : ConnectionHelper() {
/*
implicit def unitAsResult: AsResult[Unit] = new AsResult[Unit] {
def asResult(r: =>Unit) =
ResultExecution.execute(r)(_ => Success())
}
"Simple query with 1 nanosec timeout" in {
withConfigurablePool(shortTime... | 1 | null | 1 | 1 | 9bcaa466ab7acbd2a0361832e3fc9d93318d6a7f | 2,093 | jasync-sql | Apache License 2.0 |
stream-chat-android-client/src/main/java/io/getstream/chat/android/client/extensions/FlowExtensions.kt | GetStream | 177,873,527 | false | {"Kotlin": 8578375, "MDX": 2150736, "Java": 271477, "JavaScript": 6737, "Shell": 5229} | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... | 24 | Kotlin | 273 | 1,451 | 8e46f46a68810d8086c48a88f0fff29faa2629eb | 1,038 | stream-chat-android | FSF All Permissive License |
beslider/src/main/java/app/beslider/com/utils/SlideIndicatorsGroup.kt | tunaiku | 130,059,557 | false | null | package app.beslider.com.utils
import android.content.Context
import android.graphics.drawable.Drawable
import android.util.Log
import android.view.Gravity
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.LinearLayout
import app.beslider.com.R
import app.beslider.com.interfaces.OnS... | 0 | Kotlin | 2 | 4 | 15fd83c1da2793f3e9b08efa83059aa436dcc3e7 | 3,275 | beslider | Apache License 2.0 |
app/src/main/java/com/jinwoo/reactive/model/PostListModel.kt | jinusong | 182,397,490 | false | null | package com.jinwoo.reactive.model
import com.google.gson.annotations.SerializedName
data class PostListModel(
@SerializedName("post")
val post: PostModel,
@SerializedName("comment")
val comment: ArrayList<CommentModel>
) {
data class PostModel(
@SerializedName("post_id")
val postId... | 0 | Kotlin | 0 | 1 | f0f26bd4f07df61ec82727fe83d2e29cd1b428cf | 924 | ReActive | MIT License |
app/src/main/java/it/samuele794/scala/android/ui/theme/Color.kt | samuele794 | 503,669,379 | false | {"Kotlin": 130230} | package it.samuele794.scala.android.ui.theme
import androidx.compose.ui.graphics.Color
val Purple200 = Color(0xFFBB86FC)
val Purple500 = Color(0xFF6200EE)
val Purple700 = Color(0xFF3700B3)
val Teal200 = Color(0xFF03DAC5)
val backgroundColor = Color(31, 31, 31) | 1 | Kotlin | 0 | 0 | dee8f78050a22d19300b8e793160aa87b68b72bc | 262 | kamp-scala | Apache License 2.0 |
common-module/src/main/kotlin/com/build/stats/dao/UserToRepoLinkDao.kt | SHvatov | 571,232,915 | false | {"Kotlin": 118267, "HTML": 50649, "Dockerfile": 1800, "Shell": 372, "CSS": 186} | package com.build.stats.dao
import com.build.stats.model.UserToRepoLink
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.Query
import org.springframework.stereotype.Repository
@Repository
interface UserToRepoLinkDao : JpaRepository<UserToRepoLink, Long> {
... | 0 | Kotlin | 0 | 0 | 49739408dbcabb0fc6e4b1d6bacbaa893b115068 | 996 | build-stats | Apache License 2.0 |
numberpicker/src/main/java/com/chillibits/composenumberpicker/VerticalNumberPicker.kt | marcauberer | 356,726,694 | false | null | /*
* Copyright © <NAME> 2021-2022. All rights reserved
*/
package com.chillibits.composenumberpicker
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import andro... | 2 | null | 1 | 8 | 5ceb041b85ac4418d53180cc9a03dcb1441f65cf | 1,885 | compose-number-picker | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/BatterySlash.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 | 2,580 | icons | MIT License |
crabzilla-vertx-core/src/main/java/io/github/crabzilla/vertx/handler/impl/CommandHandlerServiceImpl.kt | lukehuang | 131,502,776 | true | {"Kotlin": 103927, "Java": 65276, "Shell": 4897} | package io.github.crabzilla.vertx.handler.impl
import io.github.crabzilla.core.Command
import io.github.crabzilla.vertx.handler.CommandExecution
import io.github.crabzilla.vertx.handler.CommandHandlerService
import io.github.crabzilla.vertx.projector.ProjectionData
import io.vertx.core.AsyncResult
import io.vertx.core... | 0 | Kotlin | 0 | 0 | d9f6123411c2b4ea03912c0d709d323cbb078a4c | 2,130 | crabzilla | Apache License 2.0 |
app/src/main/java/com/cornellappdev/android/volume/ui/viewmodels/BookmarkViewModel.kt | cuappdev | 466,793,799 | false | null | package com.cornellappdev.android.volume.ui.viewmodels
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.cornellappdev.android.volume.data.models.Flyer
... | 1 | Kotlin | 1 | 2 | da6f663bcfb5c3ddac4a1de26bc97b0fcdf07c2e | 6,430 | volume-compose-android | MIT License |
app/src/main/java/com/madurasoftware/vmnotifications/services/BluetoothService.kt | RogerParkinson | 184,959,931 | false | null | package com.madurasoftware.vmnotifications.services
import android.app.Service
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothSocket
import android.content.Intent
import android.os.IBinder
import android.util.Log
import com.madurasoftware.vmnotifica... | 0 | Kotlin | 0 | 0 | 4988894f041e7dd074e1730860e7bb2b0e1870b6 | 6,216 | VMNotifications | Apache License 2.0 |
src/main/kotlin/days/Day8.kt | tpepper0408 | 317,612,203 | false | null | package days
class Day8 : Day<Int>(8) {
override fun partOne(): Int {
return run(parseInstructions()).first
}
override fun partTwo(): Int {
val instructions = parseInstructions()
//if not do some swapping.
val interestingIndexes = instructions.mapIndexed { index, instructi... | 0 | Kotlin | 0 | 0 | 67c65a9e93e85eeb56b57d2588844e43241d9319 | 1,846 | aoc2020 | Creative Commons Zero v1.0 Universal |
data/src/main/java/com/doool/pokedex/data/response/common/FlavorText.kt | D000L | 407,756,410 | false | null | package com.doool.pokedex.data.response.common
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class FlavorText(
@SerialName("flavor_text") val flavorText: String = "",
val language: InfoResponse = InfoResponse(),
val version: InfoResponse = InfoRespons... | 4 | Kotlin | 1 | 7 | 97bf68de9b87c5c9c99c7286de7df29f285330ce | 326 | pokedex-compose | Apache License 2.0 |
app/src/main/java/com/example/woloxapp/Service/UserResponse.kt | wolox-training | 533,000,107 | false | null | package com.example.woloxapp.Service
import com.google.gson.annotations.SerializedName
data class UserResponse(
val data: DataUserResponse
)
data class DataUserResponse(
@SerializedName("id") val id: Int,
val email: String,
@SerializedName("provider") val provider: String,
val uid: String,
val ... | 3 | Kotlin | 0 | 0 | 2c2832527d822cb9398eb579080d74d0ad9053e3 | 483 | ei-android | MIT License |
simplified-ui-catalog/src/main/java/org/nypl/simplified/ui/catalog/CatalogPagedAdapter.kt | robbyice | 421,959,363 | false | {"Git Config": 1, "Gradle": 107, "Java Properties": 5, "Shell": 3, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 99, "EditorConfig": 1, "XML": 388, "INI": 97, "Kotlin": 796, "HTML": 5, "JSON": 58, "Java": 128, "YAML": 5, "Gemfile.lock": 2, "Ruby": 2, "Gradle Kotlin DSL": 1} | package org.nypl.simplified.ui.catalog
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.PagedListAdapter
import androidx.recyclerview.widget.RecyclerView
import org.nypl.simplified.books.covers.BookCoverProviderType
import org.nypl.simplified.feeds.... | 1 | null | 1 | 1 | e75cceeeb7dc6e79c6af45c1335f246e45c129bf | 2,248 | Simplified-Android-Core | Apache License 2.0 |
src/commonTest/kotlin/TestUtils.kt | Aristamo | 187,517,533 | false | null | import kompare.assertions.assertThat
fun catchAssertionError(f: () -> Unit) {
try {
f()
} catch (e: AssertionError) {
return
} catch (e: Throwable) {
throw AssertionError("Wrong Exception is thrown, expected <${AssertionError::class.simpleName}> but was <${e::class.simpleName}>")
... | 7 | Kotlin | 0 | 1 | e2390ca641ee1c231a5afb2aefcc63590712e309 | 622 | kompare | MIT License |
first-task/ExerciseTwoTest.kt | Telos-Conecta | 598,309,787 | false | null | import org.junit.jupiter.api.Test
import kotlin.test.assertEquals
internal class ExerciseTwoTest {
@Test
fun `Testing if two numbers are equal`() {
//Given
val numberOne = 10
val numberTwo = 10
val result = "Os números $numberOne, $numberTwo são iguais"
//When
... | 0 | Kotlin | 0 | 0 | c1062ec8d4f2b4e5c3ff9a61289c6d63a45ef4a2 | 820 | tests-simulator-programming-logic-kotlin | Apache License 2.0 |
core/src/commonMain/kotlin/dev/carlsen/flagkit/flagicons/GB.kt | acarlsen | 722,319,804 | false | {"Kotlin": 1629077, "Batchfile": 2673, "Swift": 590} | package dev.carlsen.flagkit.flagicons
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Brush.Companion.linearGradient
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.Non... | 0 | Kotlin | 1 | 21 | a630a5cdbb9749db3d83ad3b751740da42d84e16 | 7,614 | kmp-flagkit | MIT License |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/QuestionCircleSolid.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.lineawesomeicons
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
... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,919 | compose-icons | MIT License |
app/src/main/java/com/sample/hilttest/UserRemoteDataSource.kt | ice-coffee | 283,696,649 | false | {"Gradle": 6, "Java Properties": 1, "Text": 1, "Ignore List": 5, "Markdown": 1, "Proguard": 4, "Kotlin": 41, "XML": 41, "Java": 1} | package com.sample.hilttest
import android.util.Log
import okhttp3.ResponseBody
import retrofit2.Response
/**
* @author mzp
* date : 2020/7/29
* desc :
*/
class UserRemoteDataSource (loginRetrofitService: LoginRetrofitService) {
val loginRetrofitService: LoginRetrofitService
init {
this.loginR... | 1 | null | 1 | 1 | a67d4e926d7f16bc324e93048f2df9654d99c4ec | 624 | HiltTest | Apache License 2.0 |
AndroidApp/src/main/java/dev/polek/episodetracker/utils/recyclerview/CloseSwipeActionsScrollListener.kt | y-polek | 234,707,032 | false | null | package dev.polek.episodetracker.utils.recyclerview
import androidx.recyclerview.widget.MergeAdapter
import androidx.recyclerview.widget.RecyclerView
import dev.polek.episodetracker.common.logging.logw
object CloseSwipeActionsScrollListener : RecyclerView.OnScrollListener() {
override fun onScrollStateChanged(re... | 0 | Kotlin | 1 | 3 | 3ecbee176b5d1a74e293b94af74229aa17cff2dd | 1,081 | EpisodeTracker | Apache License 2.0 |
desktop/views/src/main/kotlin/com/soyle/stories/common/components/text/ProjectTitle.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.common.components.text
import com.soyle.stories.common.ViewBuilder
import javafx.event.EventTarget
import javafx.scene.control.Label
import tornadofx.addChildIfPossible
import tornadofx.addClass
class ProjectTitle : Label() {
companion object {
@ViewBuilder
fun EventTarg... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 563 | soyle-stories | Apache License 2.0 |
app/src/main/java/com/jbkalit/movies/presentation/movie/adapter/MovieAdapter.kt | jbkalit | 382,017,718 | false | null | package com.jbkalit.movies.presentation.movie.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.jbkalit.data.ut... | 0 | Kotlin | 0 | 0 | e25738801e18b61dd971bc739f7f7977cc22d5ee | 2,316 | Movies | Apache License 2.0 |
data/src/main/java/com/hanyeop/data/api/MusicApi.kt | HanYeop | 486,591,905 | false | null | package com.hanyeop.data.api
import com.hanyeop.data.model.album.AlbumResponse
import com.hanyeop.data.model.music.MusicResponse
import com.hanyeop.data.utils.API_KEY
import retrofit2.http.GET
import retrofit2.http.Path
interface MusicApi {
@GET("{keyword}/?sr=song&display=15&key=$API_KEY&v=0.5")
suspend fun ... | 0 | Kotlin | 0 | 5 | e40550f67be100f61607eb201397ff1559fc6cc1 | 532 | Memory-of-Music-android | Apache License 2.0 |
libnavigator/src/main/java/com/mapbox/navigation/navigator/MapboxNativeNavigator.kt | luugiathuy | 227,537,256 | true | {"Git Config": 1, "Gradle": 31, "JSON": 26, "Markdown": 9, "Java Properties": 2, "Shell": 3, "Ignore List": 17, "Batchfile": 1, "Makefile": 1, "YAML": 2, "XML": 283, "JavaScript": 2, "Proguard": 13, "INI": 13, "Java": 312, "Kotlin": 252, "Text": 3, "Python": 2} | package com.mapbox.navigation.navigator
import android.location.Location
import com.mapbox.navigation.base.route.model.Route
import java.util.Date
interface MapboxNativeNavigator {
fun updateLocation(rawLocation: Location)
fun getStatus(date: Date): TripStatus
fun setRoute(route: Route)
}
| 0 | null | 0 | 1 | f1e5d047665617c4ef32a3b4b5c9ab29d0ecaa93 | 304 | mapbox-navigation-android | Apache License 2.0 |
libraries/stdlib/src/generated/_Strings.kt | chashnikov | 14,658,474 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | package kotlin
//
// NOTE THIS FILE IS AUTO-GENERATED by the GenerateStandardLib.kt
// See: https://github.com/JetBrains/kotlin/tree/master/libraries/stdlib
//
import java.util.*
deprecated("Use joinTo() instead")
public fun <T> Array<out T>.appendString(buffer: Appendable, separator: String = ", ", prefix: String =... | 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 22,711 | kotlin | Apache License 2.0 |
libraries/stdlib/src/generated/_Strings.kt | chashnikov | 14,658,474 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | package kotlin
//
// NOTE THIS FILE IS AUTO-GENERATED by the GenerateStandardLib.kt
// See: https://github.com/JetBrains/kotlin/tree/master/libraries/stdlib
//
import java.util.*
deprecated("Use joinTo() instead")
public fun <T> Array<out T>.appendString(buffer: Appendable, separator: String = ", ", prefix: String =... | 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 22,711 | kotlin | Apache License 2.0 |
src/test/kotlin/com/experive/buddy/impl/TableDetailsTest.kt | meekyphotos | 390,844,489 | false | null | package com.experive.buddy.impl
import com.google.common.truth.Truth.assertThat
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
class FuckedUpEntity(val value: Int) {
var id: Int? = null
}
internal class TableDetailsTest {
@Test
@Displ... | 3 | Kotlin | 0 | 0 | e7bd6eecce729dc8cee3da8175226249b1525815 | 758 | jdbc-buddy | Apache License 2.0 |
kotlinx-coroutines-core/nativeOther/src/Dispatchers.kt | BuddyTV | 335,995,710 | true | {"Kotlin": 3321912, "Java": 30193, "SCSS": 7897, "Shell": 3332, "Python": 3107, "HTML": 1675, "JavaScript": 1127, "CSS": 319} | /*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines
import kotlin.coroutines.*
internal actual fun createMainDispatcher(default: CoroutineDispatcher): MainCoroutineDispatcher =
NativeMainDispatcher(default)
private class Native... | 0 | Kotlin | 0 | 1 | c97c2205c3589003d507b819a9b0f415b1ca0863 | 978 | kotlinx.coroutines | Apache License 2.0 |
src/main/kotlin/com/github/asm0dey/typewriterplugin/commands/WriteCharCommand.kt | asm0dey | 478,933,326 | false | {"Kotlin": 14417} | package com.github.asm0dey.typewriterplugin.commands
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.actionSystem.CommonDataKeys
import com.intellij.openapi.actionSystem.IdeActions.*
import com.intellij.openapi.command.WriteCommandAction
import com.intellij.openapi.editor.actionSyste... | 9 | Kotlin | 2 | 5 | 4053f60c4e93ab60360b8b28fce4aa2b75976c17 | 2,625 | typewriter-plugin | Apache License 2.0 |
jota-compiler/src/main/kotlin/meta/qq/Parameter.kt | bloderxd | 204,610,486 | false | null | package arrow.meta.qq
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.psi.KtFunction
import org.jetbrains.kotlin.psi.KtParameter
interface Parameter : Quote<KtFunction, KtParameter, Parameter.ParameterScope> {
class ParameterScope(
val name: Name,
val type: Name,
val defaultValue: Nam... | 2 | Kotlin | 1 | 24 | 4baba9f8d90c3d17acb4f1333963e6967662f79c | 1,570 | Jota | Apache License 2.0 |
android/cNews/src/main/java/com/androidpi/news/vo/NewsContext.kt | epicmars | 109,362,171 | false | {"Java": 552905, "Kotlin": 240657, "JavaScript": 236312, "HTML": 30295, "CSS": 14348, "CMake": 1715, "C++": 263} | package com.androidpi.news.vo
import com.androidpi.common.json.GsonHelper
import com.google.gson.JsonSyntaxException
/**
* Created by jastrelax on 2017/12/19.
*/
class NewsContext {
companion object {
fun toJson(newsContext: NewsContext?): String? {
return GsonHelper.gson().toJson(newsConte... | 1 | null | 1 | 1 | 10e3ed8af2321c042714e42a4aacf84d1ac99fc1 | 1,838 | AndroidPi | MIT License |
Projects/ReactiveProgrammingKotlin/app/src/main/java/com/vav/reactiveprogramming/Chapter_03/BehaviorSubjects.kt | vav8085 | 118,270,201 | false | null | package com.vav.reactiveprogramming.Chapter_03
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.rxkotlin.subscribeBy
import io.reactivex.subjects.BehaviorSubject
object BehaviorSubjects {
/**
* BehaviorSubject can be initialized with a default value. When a subscriber
*
* The... | 0 | Kotlin | 0 | 0 | 9d184c89c5f6064b3f03957924d7f217b3c2febd | 1,645 | HoneyBeeInn | MIT License |
hacker-gradle-plugin/src/main/java/com/mars/infra/hacker/gradle/plugin/visitor/thread/ClassThreadOptVisitor.kt | marsxingzhi | 447,336,416 | false | {"Kotlin": 61971, "Java": 4048} | package com.mars.infra.hacker.gradle.plugin.visitor.thread
import org.objectweb.asm.ClassVisitor
import org.objectweb.asm.MethodVisitor
import org.objectweb.asm.Opcodes
/**
* Created by JohnnySwordMan on 2/3/22
*/
class ClassThreadOptVisitor(
api: Int,
classVisitor: ClassVisitor,
private val methodName:... | 0 | Kotlin | 0 | 1 | 96881e44896f520d26e1f72e427fa7a4bd955056 | 2,242 | Hacker | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/cognito/CustomSMSSenderPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.cognito
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.cognito.CfnUserPool
@Generated
public fun buildCustomSMSSenderProperty(initializer: @AwsCdkDsl
CfnUserPool.CustomSMSSenderProp... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 461 | aws-cdk-kt | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/cognito/CustomSMSSenderPropertyDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.cognito
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.cognito.CfnUserPool
@Generated
public fun buildCustomSMSSenderProperty(initializer: @AwsCdkDsl
CfnUserPool.CustomSMSSenderProp... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 461 | aws-cdk-kt | Apache License 2.0 |
src/main/kotlin/org/misarch/shipment/event/model/order/OrderItemDTO.kt | MiSArch | 767,287,469 | false | {"Kotlin": 97895, "Shell": 748, "Dockerfile": 219} | package org.misarch.shipment.event.model.order
import java.util.UUID
/**
* Describes DTO of an OrderItem of an Order.
*
* @property id OrderItem UUID.
* @property createdAt Timestamp when OrderItem was created.
* @property productVariantVersionId UUID of product variant version associated with OrderItem.
* @pro... | 0 | Kotlin | 0 | 0 | 771c0b1ce73a9c21ad9e004dc35d4703f524a00e | 1,191 | shipment | MIT License |
app/src/main/java/com/hadiyarajesh/notex/ui/component/Other.kt | hadiyarajesh | 527,152,347 | false | {"Kotlin": 104126, "Shell": 2010} | package com.hadiyarajesh.notex.ui.component
import androidx.compose.foundation.layout.*
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedButton
import androidx.compose.material3.Text
import androidx.compose.runtime.Com... | 25 | Kotlin | 10 | 11 | 0d9d52be13a6e4592e075fdf28ca5a266da42ac6 | 4,047 | note-x | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.