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/nilhcem/blenamebadge/core/android/ext/ViewExt.kt | Nilhcem | 113,239,619 | false | null | package org.fossasia.badgemagic.core.android.ext
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.showKeyboard() {
postDelayed({
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager
imm.showSoftInp... | 1 | Kotlin | 6 | 28 | c05f4dd7eb8d702ef89e0e9594eb0599c39fab10 | 545 | ble-led-name-badge-android | Apache License 2.0 |
api/src/main/kotlin/edu/wgu/osmt/elasticsearch/ElasticsearchClientManager.kt | JohnKallies | 457,873,790 | true | {"TypeScript": 580384, "Kotlin": 430178, "HTML": 128324, "Shell": 27042, "Java": 8284, "JavaScript": 3402, "Dockerfile": 771, "CSS": 80} | package edu.wgu.osmt.elasticsearch
import org.apache.http.HttpHost
import org.elasticsearch.client.RestClient
import org.elasticsearch.client.RestHighLevelClient
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Bean
import org.springframework.context.annotatio... | 1 | TypeScript | 0 | 0 | 8cde0a104a3a05a6a60978636325b8ffc5a719a2 | 2,530 | osmt | Apache License 2.0 |
src/main/kotlin/operators/ArithmeticConversion.kt | softbluecursoscode | 603,710,984 | false | {"Kotlin": 53437} | package operators
fun main() {
val a = 10.0
val b = 3
println(a / b)
val c = 30L
val d = 20
println(c * d)
println(10 / (3).toDouble())
}
| 0 | Kotlin | 2 | 5 | d9d3b179af5fcf851947fe59fe4e13a825532417 | 171 | kotlin | MIT License |
core/src/main/java/com/kylix/core/ui/UserAdapter.kt | KylixEza | 338,973,481 | false | null | package com.ferdian.core.ui
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.ferdian.core.databinding.ItemUserListBinding
import com.ferdian.core.domain.model.User
class UserAdapter(private val user: ArrayList<User>, ... | 0 | Kotlin | 1 | 6 | 90f9ae1d297d57e240ea49af58abb1a2ee8f99c6 | 1,335 | Submission-MADE2-Dicoding | Apache License 2.0 |
app/src/main/java/com/gdgnairobi/devfest18/utils/DateUtils.kt | etonotieno | 149,093,023 | false | {"Kotlin": 16213} | /*
* Copyright (C) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 1 | Kotlin | 1 | 2 | e25c228f247bb1f65a06c8f4c7cfc4bb8891dd93 | 2,746 | DevFest18 | Apache License 2.0 |
src/main/kotlin/com/example/Application.kt | iproduct | 591,738,048 | false | null | package com.abmo
import io.ktor.server.application.*
import com.abmo.plugins.*
fun main(args: Array<String>): Unit =
io.ktor.server.netty.EngineMain.main(args)
@Suppress("unused") // application.conf references the main function. This annotation prevents the IDE from marking it as unused.
fun Application.mod... | 40 | null | 340 | 4 | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | 408 | course-kotlin | Apache License 2.0 |
src/main/kotlin/com/example/Application.kt | iproduct | 591,738,048 | false | null | package com.abmo
import io.ktor.server.application.*
import com.abmo.plugins.*
fun main(args: Array<String>): Unit =
io.ktor.server.netty.EngineMain.main(args)
@Suppress("unused") // application.conf references the main function. This annotation prevents the IDE from marking it as unused.
fun Application.mod... | 40 | null | 340 | 4 | 89884f8c29fffe6c6f0384a49ae8768c8e7ab509 | 408 | course-kotlin | Apache License 2.0 |
src/main/kotlin/xyz/gnarbot/gnar/commands/executors/music/ShuffleCommand.kt | Brramble | 98,334,315 | true | {"Kotlin": 208790, "Java": 152227} | package xyz.gnarbot.gnar.commands.executors.music
import xyz.gnarbot.gnar.Bot
import xyz.gnarbot.gnar.commands.Category
import xyz.gnarbot.gnar.commands.Command
import xyz.gnarbot.gnar.commands.CommandExecutor
import xyz.gnarbot.gnar.commands.Scope
import xyz.gnarbot.gnar.utils.Context
@Command(
id = 72,
... | 0 | Kotlin | 1 | 0 | f1c9ac2648d0a78d58cd6da62273fdbebc099b81 | 1,555 | Gnar-bot | MIT License |
app/src/main/java/com/vaibhav/taskify/util/ActivityExtensions.kt | Vaibhav2002 | 375,697,442 | false | null | package dev.vaibhav.quizzify.util
import android.app.Activity
import android.graphics.Color
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
fun Activity.makeStatusBarTransparent() {
window.apply {
clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)
... | 2 | Kotlin | 29 | 89 | 664a4cd4600a6bfc12082f9f083897fb8b4001c7 | 790 | Taskify | MIT License |
app/src/main/java/org/blitzortung/android/map/overlay/color/ColorHandler.kt | likix | 57,131,986 | true | {"Kotlin": 283459, "Java": 62} | /*
Copyright 2015 <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 writing... | 0 | Kotlin | 0 | 0 | b337a556b3aad0f002f876ecbfb4e365b2c5b64a | 3,612 | bo-android | Apache License 2.0 |
kales-cli/src/main/kotlin/kales/cli/task/NewApplicationTask.kt | felipecsl | 170,625,125 | false | null | package kales.cli.task
import com.github.ajalt.clikt.core.UsageError
import kales.cli.copyToWithLogging
import kales.cli.relativePathFor
import kales.cli.task.KalesVersionTask.Companion.kalesVersion
import kales.cli.writeTextWithLogging
import java.io.File
import java.nio.file.Files
import java.nio.file.Files.exists
i... | 19 | null | 7 | 80 | 4a6bdd8918b5d2a12119ac6704a05451f7da05ad | 5,211 | kales | Apache License 2.0 |
idea/testData/intentions/loopToCallChain/smartCasts/smartCastNotBroken.kt | JakeWharton | 99,388,807 | true | null | // WITH_STDLIB
// INTENTION_TEXT: "Replace with '...filter{}.map{}.firstOrNull()'"
// INTENTION_TEXT_2: "Replace with 'asSequence()...filter{}.map{}.firstOrNull()'"
fun foo(list: List<String>, o: Any): Int? {
if (o is Int) {
<caret>for (s in list) {
val length = s.length + o
if (leng... | 1 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 465 | kotlin | Apache License 2.0 |
sudoemail/src/main/java/com/sudoplatform/sudoemail/NotificationConfigurationExtensions.kt | sudoplatform | 303,299,846 | false | {"Kotlin": 1511736} | /*
* Copyright © 2024 <NAME>, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sudoplatform.sudoemail
import com.sudoplatform.sudoemail.notifications.MessageReceivedNotification
import com.sudoplatform.sudoemail.util.Constants
import com.sudoplatform.sudonotification.types.Notifica... | 0 | Kotlin | 0 | 1 | 10d097649e0e25fa04371a0cf473e896025d2fbc | 10,139 | sudo-email-android | Apache License 2.0 |
plugin/src/main/kotlin/com/lightningkite/khrysalis/web/convertToTypescript.kt | lightningkite | 161,243,441 | false | null | package com.lightningkite.khrysalis.web
import com.lightningkite.khrysalis.generic.CompilerPluginUseInfo
import com.lightningkite.khrysalis.generic.runCompiler
import com.lightningkite.khrysalis.utils.copyFolderOutFromRes
import org.gradle.api.Project
import org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArgum... | 13 | Kotlin | 0 | 9 | b620e939c7461799ae1dae91e9b4b426fa3acfc1 | 1,518 | khrysalis | MIT License |
examples/image_generation/android/app/src/main/java/com/google/mediapipe/examples/imagegeneration/MainActivity.kt | googlesamples | 555,519,447 | false | {"Jupyter Notebook": 940565, "JavaScript": 116392, "Kotlin": 46206, "HTML": 6974, "Python": 1494, "CSS": 1381} | package com.google.mediapipe.examples.imagegeneration
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.mediapipe.examples.imagegeneration.databinding.ActivityMainBinding
import com.google.mediapipe.examples.imagegeneration.diffusion.DiffusionActiv... | 48 | Jupyter Notebook | 257 | 988 | 0fc6e2b809b13b7cb1de1792288409624f5f6007 | 1,178 | mediapipe | Apache License 2.0 |
platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/maps/StyleTest.kt | tianj-zh | 174,555,805 | false | {"Git Config": 1, "Markdown": 52, "YAML": 9, "JSON": 297, "CMake": 52, "Python": 5, "Ignore List": 6, "Makefile": 3, "XML": 266, "C++": 1287, "Objective-C++": 99, "OpenStep Property List": 15, "JavaScript": 34, "Protocol Buffer": 5, "Text": 16, "Shell": 48, "Objective-C": 270, "C": 70, "Swift": 8, "EJS": 27, "SVG": 19,... | package com.mapbox.mapboxsdk.maps
import android.graphics.Bitmap
import android.graphics.drawable.ShapeDrawable
import com.mapbox.mapboxsdk.constants.MapboxConstants
import com.mapbox.mapboxsdk.style.layers.SymbolLayer
import com.mapbox.mapboxsdk.style.layers.TransitionOptions
import com.mapbox.mapboxsdk.style.sources... | 1 | null | 1 | 1 | d5659aa6647f1fc77159567bd22029a2dc9cd7a3 | 12,042 | qtlocation-mapboxgl | Boost Software License 1.0 |
DnDTable/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.* // ktlint-disable no-wildcard-imports
import java.awt.datatransfer.DataFlavor
import java.awt.datatransfer.Transferable
import java.awt.dnd.DnDConstants
import java.awt.dnd.DragGestureEvent
import java.awt.dnd.DragGestureListener
import java.awt.dnd.DragSource
import java.awt.dnd.Drag... | 0 | null | 6 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 7,941 | kotlin-swing-tips | MIT License |
app/src/main/java/com/example/project_flow_android/ui/sign/LoginActivity.kt | DSM-JAVA-PROJECT | 392,317,851 | false | null | package com.example.project_flow_android.ui.sign
import android.content.Intent
import android.os.Bundle
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.core.view.isInvisible
import androidx.lifecycle.ViewModelProvider
import com.example.project_flow_android.R
import com.example.projec... | 0 | Kotlin | 0 | 12 | c7b7dea550ffb7025cb1ffd8abc65e8f701ab0e1 | 1,795 | Project-Flow_Android | MIT License |
stream-video-android-ui-compose/src/main/kotlin/io/getstream/video/android/compose/ui/components/call/ringing/outgoingcall/OutgoingCallContent.kt | GetStream | 505,572,267 | false | null | /*
* Copyright (c) 2014-2024 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-video-android/blob/main/LICENSE
*
* Unless required by ... | 3 | null | 35 | 350 | 24b30afb18a7d55ae86d0b4e4237cb9c4d40125f | 7,251 | stream-video-android | FSF All Permissive License |
plugins/kotlin/idea/tests/test/org/jetbrains/kotlin/findUsages/AbstractKotlinGroupUsagesBySimilarityTest.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.findUsages
import com.intellij.openapi.application.ReadAction
import com.intellij.psi.PsiElement
import com.intellij.testFramework.assertEqualsToFile
import com.intellij... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,454 | intellij-community | Apache License 2.0 |
07_AndroidVersions/GeoQuiz/app/src/main/java/com/bignerdranch/android/geoquiz/CheatActivity.kt | sby5388 | 373,231,323 | false | null | package com.example.geoquiz
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
private const val EXTRA_ANSWER_IS_TRUE = "com.bignerdranch.android.g... | 0 | Kotlin | 4 | 8 | b0fc2c08e17e5333a50e4d57e1d47634e4db562c | 1,747 | AndroidBianChengQuanWeiZhiNanV4-kotlin | Apache License 2.0 |
x-pref/src/androidTest/java/com/bilibili/xpref/SharedPreferencesWrapperTest.kt | bilibili | 115,354,349 | false | null | /*
* Copyright (c) 2017. bilibili, 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 ... | 0 | null | 12 | 84 | ccdc4d00ffcd4a2604becccca3ff308a6562517d | 5,094 | xpref | Apache License 2.0 |
src/main/kotlin/io/vexelabs/bitbuilder/llvm/ir/Instruction.kt | ardlank | 302,768,929 | true | {"Kotlin": 408575} | package io.vexelabs.bitbuilder.llvm.ir
import io.vexelabs.bitbuilder.llvm.internal.contracts.PointerIterator
import io.vexelabs.bitbuilder.llvm.internal.contracts.Validatable
import io.vexelabs.bitbuilder.llvm.internal.util.fromLLVMBool
import io.vexelabs.bitbuilder.llvm.ir.values.traits.DebugLocationValue
import org.... | 0 | null | 0 | 0 | 633b9dcbb886446c62d90add3257d8f2f39a670c | 5,583 | bitbuilder | Apache License 2.0 |
shared/src/commonMain/kotlin/com/example/coffeeshop/data/model/DataCart.kt | larkes-cyber | 716,249,551 | false | {"Kotlin": 243966, "Swift": 80413} | package com.example.coffeeshop.data.model
data class DataCart(
val products:String
) | 0 | Kotlin | 0 | 1 | 679a5c6d59adc23da1078a18afecd2cdc8f41c5a | 89 | CoffeeShop | Apache License 2.0 |
idea/testData/codeInsight/moveUpDown/parametersAndArguments/callArgs2.kt | JakeWharton | 99,388,807 | false | null | // MOVE: down
val x = foo(
<caret>a,
b,
c
)
| 0 | null | 30 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 68 | kotlin | Apache License 2.0 |
data_source/src/main/java/com/titou/data_source/local/device_location/DeviceLocationManager.kt | Titoura | 307,479,201 | false | null | package com.titou.data_source.local.device_location
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.PackageManager
import android.location.Address
import android.location.Geocoder
import android.location.Location
import androidx.appcompat.app.AppC... | 0 | Kotlin | 0 | 0 | 2cd5d4d0ac9fb771daf188329dc9f868dfacda5a | 3,128 | Fungeo | MIT License |
StayCation/app/src/main/java/com/withfauzan/staycation/data/ProvideData.kt | fauzanajipray | 405,716,907 | false | {"Kotlin": 42326} | package com.withfauzan.staycation.data
import androidx.compose.ui.res.painterResource
import com.withfauzan.staycation.R
object ProvideData {
val listType = listOf(
Type(R.drawable.ic_apartment,"Apartement"),
Type(R.drawable.ic_house,"House"),
Type(R.drawable.ic_studio,"Studio")
)
... | 0 | Kotlin | 0 | 0 | 9024edec3b80858262b8fb621f62e91e9097910f | 1,240 | compose-layouting | Apache License 2.0 |
kotlin-typescript/src/main/generated/typescript/PrefixUnaryExpression.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
package typescript
sealed external interface PrefixUnaryExpression : UpdateExpression, Union.PrefixUnaryExpression_ {
override val kind: SyntaxKind.PrefixUnaryExpression
val operator: PrefixUnaryOperator
val operand: UnaryExpression
}
| 12 | Kotlin | 145 | 983 | 372c0e4bdf95ba2341eda473d2e9260a5dd47d3b | 293 | kotlin-wrappers | Apache License 2.0 |
colormath/src/commonMain/kotlin/com/github/ajalt/colormath/internal/InternalMath.kt | ajalt | 139,778,270 | false | null | package com.github.ajalt.colormath.internal
import kotlin.math.*
internal fun Float.degToRad(): Float = toDouble().degToRad().toFloat()
internal fun Float.radToDeg(): Float = toDouble().radToDeg().toFloat()
internal fun Float.gradToDeg(): Float = this * .9f
internal fun Float.turnToDeg(): Float = this * 360f
internal... | 1 | null | 6 | 293 | 903b87cce2574cce96994cd69a9806586ee03ce2 | 2,418 | colormath | MIT License |
app/src/main/java/com/example/screen/data/database/entity/DailyEntity.kt | eneskkoc | 417,625,276 | false | null | package com.example.mvmm.data.database.entity
import android.annotation.SuppressLint
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.text.SimpleDateFormat
import java.util.*
@Entity(tableName = "daily")
data class DailyEntity (
@ColumnInfo(name = "dt") var ... | 0 | Kotlin | 0 | 0 | 37de38f8725ad0b78cd49b6d1c11172421f03080 | 921 | forecast-weather-app-v2 | MIT License |
fxgl/src/main/kotlin/com/almasb/fxgl/extra/ai/goap/FSMState.kt | valdirluiz | 152,665,398 | true | {"YAML": 2, "Maven POM": 4, "Markdown": 6, "Text": 11, "Ignore List": 1, "Kotlin": 228, "Java": 657, "kvlang": 2, "Java Properties": 3, "XML": 15, "CSS": 7, "JavaScript": 6, "Ragel": 1, "JSON": 6} | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.extra.ai.goap
import com.almasb.fxgl.entity.Entity
/**
* Adapted from https://github.com/sploreg/goap
* Original source: C#, author: <NAME>.
*
* @author <NAME> (<EMA... | 0 | Java | 0 | 0 | cad7ced19da4693e87828a4a07919a5bb30b45cd | 393 | FXGL | MIT License |
state/src/main/java/me/rei_m/hyakuninisshu/state/material/model/Material.kt | rei-m | 68,487,243 | false | null | /*
* Copyright (c) 2020. <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 writ... | 0 | null | 1 | 11 | c43afed6779430cd08f85a208260896e4e295c35 | 3,555 | android_hyakuninisshu | Apache License 2.0 |
photos_ui/src/main/java/com/nowjordanhappy/photos_ui/search/components/CardLoadingPresenter.kt | nowjordanhappy | 631,133,237 | false | {"Kotlin": 98399} | package com.nowjordanhappy.photos_ui.search.components
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.RelativeLayout
import androidx.core.view.updateLayoutParams
import androidx.leanback.widget.Presenter
/**
* A CardPresenter is used to generate Views a... | 0 | Kotlin | 0 | 1 | 8c8d7d412d8464ba49b238988a085c41020a5a19 | 1,819 | AndroidTvDemoPlus | The Unlicense |
test-app/ios-shared/src/commonMain/kotlin/com/example/redwood/testapp/ios/TestAppLauncher.kt | cashapp | 305,409,146 | false | {"Kotlin": 2089205, "Swift": 20649, "Objective-C": 4497, "Java": 1583, "Shell": 253, "HTML": 235, "C": 129} | /*
* Copyright (C) 2021 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 agre... | 85 | Kotlin | 73 | 1,648 | 3f14e622c2900ec7e0dfaff5bd850c95a7f29937 | 3,654 | redwood | Apache License 2.0 |
mbnetworkkit/src/main/java/com/daimler/mbnetworkkit/socket/message/Notifyable.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbnetworkkit.socket.message
interface Notifyable {
fun <T> notifyChange(clazz: Class<T>, data: T)
}
| 1 | null | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 126 | MBSDK-Mobile-Android | MIT License |
compiler/testData/codegen/box/reflection/methodsFromAny/adaptedCallableReferencesNotEqualToCallablesFromAPI.kt | JetBrains | 3,432,266 | false | null | // Bug happens on JVM , JVM -Xuse-ir
// WITH_REFLECT
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// FILE: tmp0.kt
import kotlin.reflect.*
import kotlin.test.assertNotEquals
class A {
fun foo(s: String = "", vararg xs: Long): String = "foo"
}
fun checkNotEqual(x: Any, y: Any) {
assertNotEquals(x, y)
... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 860 | kotlin | Apache License 2.0 |
PrticaViewModellistaRolvel/app/src/main/java/com/example/prtica_viewmodel_listarolvel/data/DataSource.kt | Jhonnathan-Jhonny | 752,604,468 | false | {"Kotlin": 305111} | package com.example.prtica_viewmodel_listarolvel.data
import com.example.prtica_viewmodel_listarolvel.R
import com.example.prtica_viewmodel_listarolvel.model.UserModel
class DataSource {
companion object {
fun loadUsers(): List<UserModel> {
return listOf(
UserModel(R.string.use... | 0 | Kotlin | 0 | 0 | 5b7526aedd35869f86d115e6c32c4d14f2a425f6 | 1,555 | Kotlin-AndroidStudio | MIT License |
capy/src/main/java/com/jocmp/capy/accounts/AddFeedResult.kt | jocmp | 610,083,236 | false | {"Kotlin": 674590, "Ruby": 1236, "Makefile": 1211} | package com.jocmp.capy.accounts
import com.jocmp.capy.Feed
sealed class AddFeedResult {
enum class ErrorType {
FEED_NOT_FOUND,
NETWORK_ERROR,
SAVE_FAILURE,
}
sealed class AddFeedError: Exception() {
class FeedNotFound: AddFeedError()
class NetworkError: AddFeedErro... | 15 | Kotlin | 3 | 91 | f8ac7e8c4a6fccfe8f26f1b492261a4f5ce7dafa | 651 | capyreader | MIT License |
packages/hmssdk_flutter/android/src/main/kotlin/live/hms/hmssdk_flutter/hls_player/HMSHLSPlayerAction.kt | 100mslive | 381,963,509 | false | null | package live.hms.hmssdk_flutter.hls_player
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel.Result
import live.hms.hmssdk_flutter.HMSErrorLogger
import java.lang.ref.WeakReference
/**
* This class is used to send actions from flutter plugin to HLS Player
* We use broadcast re... | 2 | null | 64 | 137 | 85a1d95b9c36f118146b309196111d59ea8570ab | 11,710 | 100ms-flutter | MIT License |
src/main/kotlin/com/autonomousapps/model/intermediates/producers.kt | autonomousapps | 217,134,508 | false | null | package com.autonomousapps.model.intermediates
import com.autonomousapps.internal.utils.ifNotEmpty
import com.autonomousapps.internal.utils.toCoordinates
import com.autonomousapps.model.*
import com.squareup.moshi.JsonClass
import org.gradle.api.artifacts.result.ResolvedArtifactResult
import java.io.File
internal int... | 85 | null | 55 | 910 | da02a56a0b7a00a26876cdaa29321f8376bf7099 | 7,642 | dependency-analysis-android-gradle-plugin | Apache License 2.0 |
app/src/main/java/kz/oqu/android/model/repositories/user/UserRepository.kt | abikko | 362,209,725 | false | null | package kz.oqu.android.model.repositories.user
interface UserRepository {
fun getUser(callbacks: UserDownloadCallbacks)
fun updateUserAsStudent(grade: String, name: String, callbacks: UserUpdateCallbacks)
fun exitUserFromAccount(callbacks: UserExitFromAccountCallbacks)
} | 0 | Kotlin | 0 | 2 | 5b9b8dd259634831a3057b50d4dc6425c421c216 | 286 | oqutushy.kz | MIT License |
Section 5/Paging/app/src/main/java/com/paging/packt/paging/GitRepoDataSource.kt | PacktPublishing | 165,982,326 | false | null | package com.paging.packt.paging
import androidx.paging.PageKeyedDataSource
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
class GitRepoDataSource : PageKeyedDataSource<Int, GitRepo>() {
override fun loadInitial(params: LoadInitialParams<Int>, callback: LoadInitialCallback<Int, GitRepo>... | 1 | Kotlin | 9 | 24 | dd4170eed18631f03932f001f965ae0f72139623 | 3,355 | Android-Jetpack-Architecture-Components | MIT License |
core/src/commonMain/kotlin/de/haukesomm/sokoban/core/moving/MoveServiceImpl.kt | haukesomm | 245,519,631 | false | {"Kotlin": 236642, "Java": 15311, "JavaScript": 3207, "HTML": 820, "CSS": 58} | package de.haukesomm.sokoban.core.moving
import de.haukesomm.sokoban.core.*
/**
* Implementation of [MoveService] which uses a set of [MoveRule]s to determine whether a move is possible.
*
* These rules are checked in order and the first rule which returns [MoveRuleResult.Status.Impossible] stops the
* process an... | 0 | Kotlin | 0 | 3 | 66e550f1f46720fa3c11d37626a20e4c73b45acc | 2,535 | Sokoban | MIT License |
src/day03/Day03.kt | PoisonedYouth | 571,927,632 | false | null | package day03
import readInput
fun main() {
fun Char.calculatePriority(): Int {
return if (this.isUpperCase()) (this - 'A' + 27) else (this - 'a' + 1)
}
fun part1(input: List<String>): Int {
return input.sumOf { line ->
val (part1, part2) = line.chunked(line.length / 2).map {... | 0 | Kotlin | 1 | 0 | dbcb627e693339170ba344847b610f32429f93d1 | 756 | advent-of-code-kotlin-2022 | Apache License 2.0 |
kt/godot-library/src/main/kotlin/godot/gen/godot/VisualShaderNodeTextureParameter.kt | utopia-rise | 289,462,532 | false | null | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 63 | null | 39 | 571 | 39dc30230a30d2a6ab4ec3277eb3bc270995ab23 | 10,840 | godot-kotlin-jvm | MIT License |
dialects/sqlite/src/main/kotlin/factory/mikrate/dialects/sqlite/SqliteTypeSqlGen.kt | factory-org | 336,666,335 | false | null | package factory.mikrate.dialects.sqlite
import factory.mikrate.dialects.api.TypeSqlGen
import factory.mikrate.dialects.api.models.DialectDbType
public object SqliteTypeSqlGen : TypeSqlGen {
override fun supportsType(dbType: DialectDbType): Boolean = when (dbType) {
is DialectDbType.IntegerType -> supporte... | 0 | Kotlin | 0 | 0 | 31095027750ef1e074e5b64e1662d4acbf7c36f7 | 1,148 | mikrate | Apache License 2.0 |
VCL/src/main/java/io/velocitycareerlabs/impl/domain/repositories/ResolveKidRepository.kt | velocitycareerlabs | 525,006,413 | false | null | /**
* Created by <NAME> on 4/20/21.
*
* Copyright 2022 Velocity Career Labs inc.
* SPDX-License-Identifier: Apache-2.0
*/
package io.velocitycareerlabs.impl.domain.repositories
import io.velocitycareerlabs.api.entities.VCLPublicJwk
import io.velocitycareerlabs.api.entities.VCLResult
internal interface ResolveKi... | 0 | null | 0 | 2 | 160e938b2a3a676800e65aabec95c7badffbb4a6 | 421 | WalletAndroid | Apache License 2.0 |
first_flutter_app/android/app/src/main/kotlin/com/example/first_flutter_app/MainActivity.kt | cndoit18 | 368,693,669 | false | {"Java": 55107, "Dart": 11609, "Swift": 1212, "Kotlin": 397, "Objective-C": 114} | package com.example.first_flutter_app
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 1 | null | 1 | 1 | 840d454a11a395bee4f983f3430f528c90ca37fb | 134 | learning-flutter | MIT License |
threejs-wrapper/src/main/kotlin/info/laht/threekt/materials/Material.kt | markaren | 111,575,995 | false | null | /*
* The MIT License
*
* Copyright 2017-2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 15 | Kotlin | 6 | 53 | c13a96add591a7e0e52911c4d8f59dddfc6165ef | 3,985 | three-kt-wrapper | MIT License |
app/src/main/java/com/adg/superherobucket/data/db/model/DBMappers.kt | varo610 | 183,915,778 | false | null | package com.adg.superherobucket.data.db.model
import com.adg.superherobucket.data.db.model.DBSuperHero
import com.adg.superherobucket.data.network.model.mapToDomain
import com.adg.superherobucket.domain.model.DomainAppearance
import com.adg.superherobucket.domain.model.DomainBiography
import com.adg.superherobucket.do... | 0 | Kotlin | 0 | 1 | 0f70354de21968de38517dce498049577ed5ddfc | 1,200 | SuperHeroBucket | Apache License 2.0 |
src/main/kotlin/me/devoxin/flight/api/events/ParsingErrorEvent.kt | mixtape-oss | 331,475,215 | true | {"Kotlin": 120308} | package me.devoxin.flight.api.events
import me.devoxin.flight.api.command.Context
import me.devoxin.flight.internal.entities.ICommand
/**
* Emitted when the argument parser encounters an error.
*/
data class ParsingErrorEvent(
val ctx: Context,
val command: ICommand,
val error: Throwable
) : Event
| 0 | Kotlin | 0 | 3 | 70c2ba879fe1d67959d9c125479cced9dea38ed2 | 315 | flight | Apache License 2.0 |
app/src/main/java/aiu/myapplication/ProductDetails.kt | AzamatIbraimov | 305,125,284 | false | null | package aiu.myapplication
import aiu.myapplication.model.Basket
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.ImageView
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import... | 0 | Kotlin | 0 | 1 | 7d6f065e9d2d81d7c61be26878ef28d3357af679 | 2,849 | BimarApp | MIT License |
feature-staking-impl/src/main/java/com/edgeverse/wallet/feature_staking_impl/domain/validations/reedeem/RedeemValidationPayload.kt | finn-exchange | 512,140,809 | false | {"Kotlin": 2956205, "Java": 14536, "JavaScript": 399} | package com.edgeverse.wallet.feature_staking_impl.domain.validations.reedeem
import com.edgeverse.wallet.feature_wallet_api.domain.model.Asset
import java.math.BigDecimal
class RedeemValidationPayload(
val fee: BigDecimal,
val asset: Asset
)
| 0 | Kotlin | 1 | 0 | 03229c4188cb56b0fb0340e60d60184c7afa2c75 | 252 | edgeverse-wallet | Apache License 2.0 |
src/test/kotlin/shirates/spec/uitest/android/SpecReport_platformBranch_Test.kt | ldi-github | 538,873,481 | false | {"Kotlin": 3671492, "JavaScript": 12703, "CSS": 5036} | package shirates.spec.uitest
import org.apache.poi.xssf.usermodel.XSSFCell
import org.apache.poi.xssf.usermodel.XSSFSheet
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Order
import org.junit.jupiter.api.Test
import shirates.core.configuration.Te... | 0 | Kotlin | 0 | 8 | f5ff94f3a36495b71e15e78eafec46ce10623bf0 | 9,219 | shirates-core | Apache License 2.0 |
chatkit-core/src/main/kotlin/com/pusher/chatkit/util/FutureValue.kt | pusher | 106,020,436 | false | null | package com.pusher.chatkit.util
import com.pusher.platform.network.Futures
import com.pusher.platform.network.Wait
import com.pusher.platform.network.wait
import java.util.concurrent.BlockingQueue
import java.util.concurrent.SynchronousQueue
import java.util.concurrent.TimeUnit
import kotlin.reflect.KProperty
class F... | 12 | null | 14 | 54 | 4bc7d96059a8d6ec66032c84819f77149b6c3296 | 921 | chatkit-android | MIT License |
adapters/admob/src/main/java/io/bidon/mediation/adapter/admob/AdMobNetworkAdUnit.kt | bidon-io | 603,002,504 | false | null | package io.bidon.mediation.adapter.admob
import com.google.android.gms.ads.AdRequest
import com.google.android.gms.ads.AdSize
import io.bidon.mediation.sdk.network.NetworkAdUnit
class AdMobNetworkAdUnit : NetworkAdUnit {
companion object {
const val PARAM_LINE_ITEMS: String = "line_items"
const v... | 0 | Kotlin | 0 | 0 | ab4412d5ad7cc80758ae22f69fc602d4a6db739c | 1,448 | postbid-demo-android | Apache License 2.0 |
preview-designer/testSrc/com/android/tools/idea/preview/actions/IssueNotificationActionFakes.kt | JetBrains | 60,701,247 | false | {"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19} | /*
* Copyright (C) 2022 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... | 5 | Kotlin | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 3,354 | android | Apache License 2.0 |
app/src/main/java/com/mollie/checkout/data/model/SelectCheckoutLayoutStyle.kt | mollie | 431,494,734 | false | {"Kotlin": 74081} | package com.mollie.checkout.data.model
enum class SelectCheckoutLayoutStyle(
val index: Int,
) {
LIST(0),
GRID(1);
companion object {
fun from(index: Int?): SelectCheckoutLayoutStyle? {
return values().firstOrNull { it.index == index }
}
}
} | 1 | Kotlin | 2 | 2 | fa2ea1801b6ffc11246fa55fc779bc44427b2bba | 291 | demo-checkout-android | MIT License |
src/year2023/day05/Solution.kt | TheSunshinator | 572,121,335 | false | {"Kotlin": 136821} | package year2023.day05
import arrow.core.nonEmptyListOf
import utils.ProblemPart
import utils.intersect
import utils.readInputs
import utils.runAlgorithm
fun main() {
val (realInput, testInputs) = readInputs(2023, 5, transform = ::parse)
runAlgorithm(
realInput = realInput,
testInputs = testI... | 0 | Kotlin | 0 | 0 | 042213bdfa37dc730f9c1b37b5b8a370f20657ff | 3,046 | Advent-of-Code | Apache License 2.0 |
app/src/main/java/com/example/andriiginting/news/view/BaseActivity.kt | andriiginting | 142,031,035 | false | null | package com.example.andriiginting.news.view
import android.annotation.SuppressLint
import android.support.design.widget.BaseTransientBottomBar
import android.support.design.widget.BottomSheetDialog
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.util.Log
imp... | 0 | Kotlin | 0 | 0 | 90e3606b5ee80c39de7207e53d4984170c77206f | 1,183 | news-app | Apache License 2.0 |
core/src/ru/serdjuk/zxsna/app/utils/RectInt.kt | vito-Z80 | 302,118,445 | false | {"Gradle": 4, "INI": 2, "Shell": 1, "Text": 5, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "JAR Manifest": 1, "Java": 2, "Kotlin": 70, "Assembly": 1, "XML": 1} | package ru.serdjuk.zxsna.app.utils
import com.badlogic.gdx.math.Rectangle
import com.badlogic.gdx.math.Vector2
class RectInt(var x: Int = 0, var y: Int = 0, var width: Int = 0, var height: Int = 0) {
fun overlaps(r: Rectangle): Boolean {
return x < r.x + r.width && x + width > r.x && y < r.y + r.height... | 1 | null | 1 | 1 | 8e19849cb1d6f71fc6a155940a2c3180db98e89d | 2,266 | ZXSNAv2 | Apache License 2.0 |
project-system-gradle/src/com/android/tools/idea/gradle/project/sync/hyperlink/DoNotShowJdkHomeWarningAgainHyperlink.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 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... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 2,094 | android | Apache License 2.0 |
feature/dashboard/src/main/kotlin/com/stonecap/wardrobe/feature/dashboard/navigation/DashboardNavigation.kt | Stonecap | 591,597,268 | false | null | package com.stonecap.wardrobe.feature.dashboard.navigation
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import com.stonecap.wardrobe.feature.dashboard.DashboardRoute
import com.stonecap.wardrobe.f... | 0 | Kotlin | 0 | 0 | 8c8a527502ec14ddb359eaf06c0225a6bcd1274e | 666 | wardrobe-app | MIT License |
foryouandme/src/main/java/com/foryouandme/ui/dailysurveytime/DailySurveyTimeFragment.kt | 4YouandMeData | 610,425,317 | false | null | package com.foryouandme.ui.dailysurveytime
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.ui.platform.ComposeView
import androidx.fragment.app.viewModels
import com.for... | 0 | Kotlin | 0 | 0 | bc82972689db5052344365ac07c8f6711f5ad7fa | 5,076 | 4YouandMeAndroid | MIT License |
android_app/src/main/java/com/aglushkov/wordteacher/android_app/helper/VKAuthControllerImpl.kt | soniccat | 302,971,014 | false | {"Kotlin": 1114266, "Go": 170819, "Swift": 38695, "TypeScript": 29600, "Dockerfile": 5502, "JavaScript": 3131, "Makefile": 3016, "Shell": 2338, "Ruby": 1740, "HTML": 897, "Java": 872, "SCSS": 544, "C": 59} | package com.aglushkov.wordteacher.android_app.helper
import androidx.activity.ComponentActivity
import com.aglushkov.wordteacher.shared.general.auth.VKAuthController
import com.aglushkov.wordteacher.shared.general.auth.VKAuthData
import com.aglushkov.wordteacher.shared.general.auth.NetworkAuthData
import com.aglushkov... | 0 | Kotlin | 1 | 11 | b17c340bd7bfa2fc7c9f025bbea5f5fa1e79a142 | 2,748 | WordTeacher | MIT License |
app/src/main/java/com/pr0gramm/app/ui/fragments/FavedCommentFragment.kt | chrosey | 95,877,863 | false | {"Gradle": 5, "Shell": 6, "Java Properties": 2, "Text": 1, "Ignore List": 4, "Batchfile": 1, "Markdown": 3, "Proguard": 2, "Kotlin": 266, "XML": 132, "JSON": 42, "Java": 12, "SVG": 11, "Python": 1} | package com.pr0gramm.app.ui.fragments
import android.content.Intent
import android.net.Uri
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import com.github.salomonbrys.kodein.instance
import com.pr0gramm.app.R
import com.pr0gramm.app.Settings
import com.pr0gramm.app.api.pr0gramm... | 1 | null | 1 | 1 | b6a7b846bcae573545da824cb716a07a334adedb | 2,072 | Pr0 | MIT License |
client/android/div/src/main/java/com/yandex/div/core/view2/divs/widgets/ReleaseViewVisitor.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.core.view2.divs.widgets
import android.view.View
import androidx.annotation.VisibleForTesting
import com.yandex.div.core.DivCustomContainerViewAdapter
import com.yandex.div.core.DivCustomViewAdapter
import com.yandex.div.core.annotations.Mockable
import com.yandex.div.core.dagger.DivViewScope
im... | 7 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 2,359 | divkit | Apache License 2.0 |
app/src/main/java/com/dmbaryshev/bd/model/repository/BaseRepo.kt | DmBard | 57,616,046 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Java": 3, "XML": 58, "Kotlin": 106} | package com.dmbaryshev.bd.model.repository
import com.dmbaryshev.bd.model.dto.common.CommonResponse
import com.dmbaryshev.bd.model.dto.common.VkError
import com.dmbaryshev.bd.model.mapper.BaseMapper
import com.dmbaryshev.bd.model.view_model.IViewModel
import com.dmbaryshev.bd.network.ResponseAnswer
import com.dmbarysh... | 0 | Kotlin | 0 | 7 | 7c554d784a45097001a2af7505e00bddc594fecb | 1,790 | bd | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/modules/deeplink/ui/DeeplinkHandler.kt | perawallet | 364,359,642 | false | null | /*
* Copyright 2022 Pera Wallet, LDA
* 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,... | 22 | null | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 6,836 | pera-wallet | Apache License 2.0 |
src/main/java/at/petrak/hexcasting/common/casting/operators/spells/OpColorize.kt | Noobulus | 479,910,974 | false | {"Java Properties": 1, "Groovy": 1, "Text": 3, "Shell": 1, "Markdown": 2, "Git Attributes": 1, "Batchfile": 1, "Gradle": 1, "Ignore List": 1, "Kotlin": 118, "Java": 108, "JSON": 435, "TOML": 1, "INI": 1} | package at.petrak.hexcasting.common.casting.operators.spells
import at.petrak.hexcasting.api.spell.ParticleSpray
import at.petrak.hexcasting.api.spell.RenderedSpell
import at.petrak.hexcasting.api.spell.SpellDatum
import at.petrak.hexcasting.api.spell.SpellOperator
import at.petrak.hexcasting.common.casting.CastingCon... | 1 | null | 1 | 1 | fd206287f685261aa257957f6a4eb634db46630f | 1,744 | HexMod | MIT License |
app/src/main/java/tipz/viola/webviewui/BaseActivity.kt | TipzRickyCheung | 287,279,448 | false | null | /*
* Copyright (c) 2022-2024 Tipz Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 0 | null | 3 | 14 | c1c2f55a23b2cfac67efa6b39f362b163f228cc8 | 3,092 | viola | Apache License 2.0 |
tiltak/src/main/kotlin/no/nav/amt/tiltak/nav_enhet/NavEnhetServiceImpl.kt | navikt | 393,356,849 | false | null | package no.nav.amt.tiltak.nav_enhet
import no.nav.amt.tiltak.clients.amt_person.AmtPersonClient
import no.nav.amt.tiltak.clients.veilarbarena.VeilarbarenaClient
import no.nav.amt.tiltak.core.domain.tiltak.NavEnhet
import no.nav.amt.tiltak.core.port.NavEnhetService
import no.nav.amt.tiltak.log.SecureLog.secureLog
impor... | 2 | Kotlin | 3 | 4 | 7f3df04447dc622e87538f454e4fcc69bfd713e9 | 1,585 | amt-tiltak | MIT License |
app/src/main/java/com/example/binanceticker/data/local/TickerDao.kt | AsenMarkov | 842,203,668 | false | {"Kotlin": 30756} | package com.example.binanceticker.data.local
import androidx.paging.PagingSource
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
@Dao
interface TickerDao {
@Upsert
fun upsertAll(tickerList: List<TickerEntity>)
@Query("SELECT * FROM ticker_entity")
fun pagingSource(): ... | 0 | Kotlin | 0 | 0 | 9c60cf2e2e92eb0de8af53f3f7daaa5863a204a4 | 465 | BinanceTicker | Apache License 2.0 |
engine/game/src/main/kotlin/org/rsmod/game/stat/PlayerSkillXPTable.kt | rsmod | 293,875,986 | false | {"Kotlin": 1817705} | package org.rsmod.game.stat
import kotlin.math.pow
public object PlayerSkillXPTable {
public val XP_TABLE: IntArray =
IntArray(126).apply {
var accumulatedXp = 0
for (level in 1 until size) {
accumulatedXp += (level + 300 * 2.0.pow(level / 7.0)).toInt()
... | 0 | Kotlin | 64 | 95 | 3ba446ed70bcde0870ef431e1a8527efc6837d6c | 1,120 | rsmod | ISC License |
kotlin/src/main/kotlin/between_two_sets/between-two-sets.kt | francisakpan | 299,567,682 | false | {"Kotlin": 16639, "Dart": 2622, "Java": 2384} | package between_two_sets
fun main() {
val a = arrayOf(2,6)
val b = arrayOf(24, 36)
println(getTotalX(a, b))
}
fun getTotalX(a: Array<Int>, b: Array<Int>): Int {
// Write your code here
var count = 0
for (i in 1..100) {
if (a.all { i % it == 0 }){
if (b.all { it % i == 0 })... | 0 | Kotlin | 0 | 0 | efb8fa9ee0249c01a4822485c40f86bec8a8e4cc | 394 | random-exercises | MIT License |
presentation/src/main/java/com/mygomii/presentation/screens/Main.kt | mygomii | 793,599,316 | false | {"Kotlin": 39154} | package com.mygomii.presentation.screens
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.founda... | 0 | Kotlin | 0 | 0 | d6e8fb4d68320a40222429a3c9d0d0761f3a84c0 | 6,887 | download-manager-android | Apache License 2.0 |
ktor-network/ktor-network-tls/jvm/src/io/ktor/network/tls/TLSClientSessionJvm.kt | ktorio | 40,136,600 | false | null | /*
* Copyright 2014-2020 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.network.tls
import io.ktor.network.sockets.*
import io.ktor.network.util.*
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.*
import io.ktor.utils.io.*
import io... | 269 | null | 962 | 9,709 | 9e0eb99aa2a0a6bc095f162328525be1a76edb21 | 2,783 | ktor | Apache License 2.0 |
cathode/src/main/java/net/simonvt/cathode/ui/lists/CreateListFragment.kt | SimonVT | 9,478,484 | false | null | /*
* Copyright (C) 2016 <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... | 11 | Kotlin | 9 | 99 | 29d916efcd1dbb8ddac1fc2600b2bfbe6ee84c27 | 4,671 | cathode | Apache License 2.0 |
platform/build-scripts/icons/src/org/jetbrains/intellij/build/images/sync/Context.kt | ingokegel | 284,920,751 | false | null | // Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.intellij.build.images.sync
import com.intellij.openapi.util.io.FileUtil
import com.intellij.openapi.util.text.StringUtil
import org.jetbrains.intellij.build... | 191 | null | 4372 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 7,606 | intellij-community | Apache License 2.0 |
json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionVideo.kt | divkit | 523,491,444 | false | null | @file:Suppress(
"unused",
"UNUSED_PARAMETER",
)
package divkit.dsl
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonIgnore
import com.fasterxml.jackson.annotation.JsonValue
import divkit.dsl.annotation.*
import divkit.dsl.core.*
import divkit.dsl.scope.*
import... | 5 | null | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 5,317 | divkit | Apache License 2.0 |
src/main/java/com/hongwei/model/v2/jpa/au/StateDataV2.kt | hongwei-bai | 398,241,961 | false | {"HTML": 105668, "Java": 63260, "Kotlin": 54971} | package com.hongwei.model.v2.jpa.au
data class StateDataV2(
val state: String = "",
val totalCases: Long = 0,
val overseasCases: Long = 0,
val newCases: Long = 0,
val isObsoletedData: Boolean = false,
var lastValidDataVersion: Long = 0
) | 0 | HTML | 0 | 4 | 8067cf4e5d82a34e59b1b806aff0906611331b7f | 292 | covid-application-service | Apache License 2.0 |
app/src/test/java/com/ignitetech/compose/ui/home/HomeViewModelTest.kt | gnumilanix | 602,430,902 | false | null | package com.ignitetech.compose.ui.home
import app.cash.turbine.test
import com.ignitetech.compose.data.preference.PreferenceRepository
import com.ignitetech.compose.rules.TestDispatcherRule
import com.ignitetech.compose.ui.Screens
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.every
import io.mockk.i... | 3 | Kotlin | 1 | 0 | 7a7fc31e7013e91ae78947af6bca1d97fb1140ed | 2,937 | explore-compose | Apache License 2.0 |
runtime/src/main/java/io/novafoundation/nova/runtime/ethereum/Web3Api.kt | novasamatech | 496,649,319 | false | {"Kotlin": 5949531, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.runtime.ethereum
import io.novafoundation.nova.core.ethereum.Web3Api
import io.novafoundation.nova.core.ethereum.log.Topic
import jp.co.soramitsu.fearless_utils.wsrpc.SocketService
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.reactive.asFlow
import org.web3j.protocol.Web... | 5 | Kotlin | 9 | 28 | fcd118ab5cbedded709ec062ae5d4bc890aaf96d | 1,934 | nova-android-app | Apache License 2.0 |
app/src/main/java/com/devmanishpatole/latestmovies/ui/navigation/Screen.kt | devmanishpatole | 508,834,053 | false | {"Kotlin": 69845} | package com.devmanishpatole.latestmovies.ui.navigation
/**
* Screen keys for navigation graph
*
* @author Manish Patole, contact@devmanishpatole.com
* @since 02/07/22
*/
sealed class Screen(val route: String){
object Movies : Screen("movies")
object Detail : Screen("detail")
object Search : Screen("se... | 1 | Kotlin | 0 | 1 | aeb07c88301919dd7aade3abfcaf4df4f281c64e | 329 | LatestMovies | The Unlicense |
svc-hl7-replay/src/main/kotlin/gov/cdc/dex/replay/service/Application.kt | CDCgov | 510,836,864 | false | {"Kotlin": 694547, "Scala": 208820, "Python": 44391, "Java": 17996, "Batchfile": 11894, "Go": 8661, "JavaScript": 7609, "Groovy": 4230, "HTML": 2177, "Shell": 1362, "CSS": 979} | package gov.cdc.dex.replay.service
import io.micronaut.runtime.Micronaut
import io.swagger.v3.oas.annotations.OpenAPIDefinition
import io.swagger.v3.oas.annotations.info.Info
@OpenAPIDefinition(
info = Info(
title = "HL7v2 Replay API",
version = "1.0",
description = "An API for replaying va... | 121 | Kotlin | 14 | 9 | c88287d49963f07d0a1525c555f3b499196ecb7c | 659 | data-exchange-hl7 | Apache License 2.0 |
RichTextEditorAndroid/src/main/kotlin/net/dankito/richtexteditor/android/util/KeyboardState.kt | TrendingTechnology | 145,268,255 | true | {"Kotlin": 243673, "JavaScript": 15285, "Java": 6364, "CSS": 1750, "HTML": 552} | package net.dankito.richtexteditor.android.util
import android.app.Activity
class KeyboardState {
companion object {
var isKeyboardVisible: Boolean = false
private set
private val keyboardToggleListener = KeyboardUtils.SoftKeyboardToggleListener { isVisible ->
isKeyboar... | 0 | Kotlin | 0 | 0 | 022fef76f5071bc0b6590f70f7443ef5404401da | 717 | RichTextEditor | Apache License 2.0 |
android/app/src/main/kotlin/com/sleepylee/survey/survey/MainActivity.kt | sleepylee | 350,631,619 | false | {"Dart": 167444, "Ruby": 1354, "Swift": 404, "Kotlin": 132, "Objective-C": 38} | package com.sleepylee.survey.survey
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 3 | Dart | 0 | 1 | 71bd9577f16f31f8030311946141164556eb5356 | 132 | flutter-survey | MIT License |
src/main/kotlin/dsl/DSLRootComponentExtension.kt | isyscore | 336,950,526 | false | {"Kotlin": 220307, "Java": 5620, "HTML": 643} | @file:Suppress("DuplicatedCode", "unused")
package com.isyscore.kotlin.swing.dsl
import com.isyscore.kotlin.swing.component.*
import com.isyscore.kotlin.swing.inline.newClassInstance
import org.apache.batik.anim.dom.SAXSVGDocumentFactory
import org.apache.batik.swing.JSVGCanvas
import org.apache.batik.util.XMLResourc... | 0 | Kotlin | 0 | 2 | 3f5ea19ea036e3c0a5cddb54dc172d7dab9da04c | 6,454 | common-swing | MIT License |
app/src/main/java/io/sinzak/android/remote/dataclass/response/chat/ChatRoomCheckResponse.kt | SINZAK | 567,559,091 | false | {"Kotlin": 482864} | package io.sinzak.android.remote.dataclass.response.chat
import com.google.gson.annotations.SerializedName
import io.sinzak.android.remote.dataclass.CResponse
data class ChatRoomCheckResponse(
@SerializedName("data") val data : RoomCheck? = null
) :CResponse() {
data class RoomCheck(
@SerializedName("... | 0 | Kotlin | 0 | 3 | 3467e8ee8afeb6b91b51f3a454f7010bc717c436 | 419 | sinzak-android | MIT License |
common-ui/src/main/java/com/yuriy/openradio/shared/view/dialog/BaseAddEditStationDialog.kt | ChernyshovYuriy | 679,720,363 | false | {"Kotlin": 877885, "Java": 3552} | /*
* Copyright 2017-2022 The "Open Radio" Project. Author: <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 requi... | 13 | Kotlin | 1 | 8 | 7cfe3b7e55228f14df5f85b8d993db32df771d42 | 11,102 | OpenRadio | Apache License 2.0 |
meistercharts-canvas/src/commonMain/kotlin/com/meistercharts/style/Palette.kt | Neckar-IT | 599,079,962 | false | null | /**
* Copyright 2023 Neckar IT GmbH, Mössingen, Germany
*
* 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... | 3 | null | 3 | 5 | ed849503e845b9d603598e8d379f6525a7a92ee2 | 2,500 | meistercharts | Apache License 2.0 |
analysis/analysis-api/testData/components/resolver/singleByPsi/kDoc/qualified/callables/notImported/privateFunctionFromClass.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // FILE: Foo.kt
package foo
class Foo {
private fun foo() {}
}
// FILE: main.kt
package test
/**
* [foo.Foo.<caret>foo]
*/
fun usage() {}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 147 | kotlin | Apache License 2.0 |
common/src/main/kotlin/dev/ricky12awesome/resourcenodes/block/ExtractorBlock.kt | Ricky12Awesome | 629,865,482 | false | null | @file:Suppress("OVERRIDE_DEPRECATION")
package dev.ricky12awesome.resourcenodes.block
import dev.ricky12awesome.resourcenodes.ResourceNodes
import dev.ricky12awesome.resourcenodes.block.entity.BlockEntities
import dev.ricky12awesome.resourcenodes.block.entity.ExtractorBlockEntity
import dev.ricky12awesome.resourcenod... | 0 | Kotlin | 0 | 0 | f110c3fac9caee3ffd9953f58af66babd0793ec1 | 5,103 | ResourceNodes | MIT License |
src/test/kotlin/com/muhron/kotlinq/ReverseTest.kt | RyotaMurohoshi | 53,187,022 | false | null | package com.muhron.kotlinq
import org.junit.Assert
import org.junit.Test
import java.util.*
class ReverseTest {
@Test
fun test0() {
val result = sequenceOf(0, 1, 2).reverse().toList()
Assert.assertEquals(result, listOf(2, 1, 0))
}
@Test
fun test1() {
val result = emptySequ... | 1 | Kotlin | 0 | 5 | 1bb201d7032cdcc302f342bc771ab356f1d96db2 | 506 | KotLinq | MIT License |
tests/src/commonMain/kotlin/app/thelema/test/MainTest.kt | zeganstyl | 275,550,896 | false | null | /*
* Copyright 2020-2021 Anton Trushkov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 6 | Kotlin | 4 | 32 | e7699bb0201856ed034738798078c5aac7e2bd9b | 1,798 | thelema-engine | Apache License 2.0 |
app/src/main/java/digital/lamp/dagger_test/data/Dummy.kt | amaljofy | 248,206,587 | false | null | package digital.lamp.dagger_test.data
/**
* Created by Amal Jofy Dept. on 18,March,2020
*/
data class Dummy(val name:String) | 0 | Kotlin | 0 | 1 | e606b55696e428c62cc960128b41483c184b9867 | 127 | NewsList-Part-1 | MIT License |
src/main/kotlin/com/katanox/tabour/integration/sqs/config/SqsConfiguration.kt | katanox | 375,699,718 | false | null | package com.katanox.tabour.integration.sqs.config
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.auth.AWSStaticCredentialsProvider
import com.amazonaws.auth.BasicAWSCredentials
import com.amazonaws.services.sqs.AmazonSQSAsync
import com.amazonaws.services.sqs.AmazonSQSAsyncClientBuilder
import o... | 16 | Kotlin | 0 | 6 | b2d96b8e9fa055fd9a403005363b6344914310be | 1,402 | tabour | Apache License 2.0 |
app/src/main/java/xyz/tberghuis/floatingtimer/viewmodels/StopwatchScreenVm.kt | tberghuis | 500,632,576 | false | {"Kotlin": 126369} | package xyz.tberghuis.floatingtimer.viewmodels
import android.app.Application
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.lifecycle.A... | 16 | Kotlin | 5 | 60 | 713c1bb2bd89085aaa21943854581dbd718a27d2 | 2,373 | FloatingCountdownTimer | MIT License |
data/src/main/java/com/example/data/remote/model/ConversationGroupRemote.kt | mourchidimfoumby | 726,650,487 | false | {"Kotlin": 108126} | package com.example.data.remote.model
import com.example.data.model.Message
import com.example.data.model.User
data class ConversationGroupRemote(
var id: String = "",
val listInterlocutors: MutableList<User>,
var messages: List<Message>? = null,
var title: String = "",
)
| 9 | Kotlin | 0 | 0 | 7ba59f9a3806a76a57eb0dbb0b2262c177e891c4 | 291 | studentchat | Apache License 2.0 |
app/src/main/java/com/capstone/gometry/ui/auth/AuthActivity.kt | herdianurdin | 580,187,239 | false | null | package com.capstone.gometry.ui.auth
import android.app.Activity
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.capstone.gometry.R
import com.caps... | 0 | Kotlin | 0 | 0 | 541957635bff1bab59136bc88bc6b6dfa34b03b7 | 3,658 | gometry | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.