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/kotlin/ru/cinema/api/chat/websocket/model/Member.kt | alexBlack01 | 541,182,433 | false | {"Kotlin": 279406, "Procfile": 34} | package ru.cinema.api.chat.websocket.model
import io.ktor.websocket.WebSocketSession
import java.util.*
data class Member(
val userId: UUID,
val sessionId: UUID,
val socket: WebSocketSession
)
| 0 | Kotlin | 0 | 0 | 97e1909d029b245c9e1d95a70746a7483073107b | 207 | cinema-backend | Apache License 1.1 |
services-common/src/main/java/io/dotanuki/services/common/BitcoinInfoMapper.kt | ubiratansoares | 154,198,067 | false | null | package io.dotanuki.services.common
import io.dotanuki.blockked.domain.BitcoinStatistic
import io.dotanuki.blockked.domain.TimeBasedMeasure
import java.util.*
object BitcoinInfoMapper {
operator fun invoke(response: BitcoinStatsResponse) = with(response) {
BitcoinStatistic(
providedName = nam... | 1 | Kotlin | 5 | 69 | c0c5e2e4c3d4e68226615da0d9efb13c01955e36 | 995 | blockked | MIT License |
app/src/main/java/com/skydoves/balloondemo/recycler/SampleAdapter.kt | advancepro | 317,854,907 | true | {"Kotlin": 139517} | /*
* Copyright (C) 2019 skydoves
*
* 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 ... | 0 | null | 0 | 0 | 16dc2a377dfa4980f2a983f99b6d2b0fe8e0389c | 2,000 | Balloon | Apache License 2.0 |
src/main/kotlin/fijb/leetcode/algorithms/A4MedianOfTwoSortedArrays.kt | fi-jb | 552,324,917 | false | null | package fijb.leetcode.algorithms
//https://leetcode.com/problems/median-of-two-sorted-arrays/
object A4MedianOfTwoSortedArrays {
fun findMedianSortedArrays(nums1: IntArray, nums2: IntArray): Double {
val nums = arrayListOf<Int>()
var i1 = 0
var i2 = 0
val s = (nums1.size + nums2.si... | 0 | Kotlin | 0 | 0 | f0d59da5bcffaa7a008fe6b83853306d40ac4b90 | 828 | leetcode | MIT License |
app/src/main/java/com/example/stylish/graphs/MainNavGraph.kt | world2222 | 713,460,580 | false | {"Kotlin": 53865} | package com.example.stylish.graphs
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.example.stylish.presentation.create.Crea... | 1 | Kotlin | 0 | 0 | 1e2339a04f27e8734b703007188f3efe0082ccc6 | 1,571 | Stylish | Apache License 2.0 |
lib/src/main/java/com/vander/scaffold/form/Model.kt | vudangnt | 165,397,865 | false | {"Gradle": 7, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "XML": 20, "Kotlin": 65, "Java": 1, "Proguard": 1} | package com.vander.scaffold.form
import com.vander.scaffold.screen.Event
typealias FormState = Map<Int, Any>
typealias FormErrors = Map<Int, Pair<Int, Array<out Any>?>>
data class FormEventInit(val state: FormState) : Event
data class FormEventError(val errors: FormErrors) : Event
| 1 | null | 3 | 1 | 7ecd4cabdc87f7b01928b4950298b73f85e91834 | 285 | scaffold | MIT License |
app/src/main/java/com/stream_suite/link/utils/swipe_to_dismiss/actions/BaseSwipeAction.kt | sstream17 | 231,685,513 | true | {"Gradle": 8, "Java Properties": 2, "Shell": 1, "Text": 3, "Ignore List": 6, "Markdown": 1, "JSON": 3, "Proguard": 1, "Java": 160, "Kotlin": 407, "XML": 421, "AIDL": 1, "SVG": 3} | package com.stream_suite.link.utils.swipe_to_dismiss.actions
import com.stream_suite.link.adapter.conversation.ConversationListAdapter
abstract class BaseSwipeAction {
abstract fun getBackgroundColor(): Int
abstract fun getIcon(): Int
abstract fun onPerform(listener: ConversationListAdapter, index: Int)
... | 1 | Kotlin | 0 | 1 | 0589153dd853447b260a3739564371c6b92d481c | 322 | pulse-sms-android | Apache License 2.0 |
app/src/main/java/com/github/drewstephensdesigns/astrofeed/ui/launches/TabbedLaunchFragment.kt | drewstephensdesigns | 742,485,540 | false | {"Kotlin": 126788} | package com.github.drewstephensdesigns.astrofeed.ui.launches
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.github.drewstephensdesigns.astrofeed.R
import com.github.drewstephensdesigns.astrofeed.adapter... | 0 | Kotlin | 0 | 0 | a343890d6917abd5d9e7ad9362b35501264e80c6 | 1,999 | AstroFeed | MIT License |
sample/src/main/java/com/github/rmielnik/demo/sampleCallbacks/ShuffleViewHolder.kt | rmielnik | 286,580,967 | false | null | package com.github.rmielnik.demo.sampleCallbacks
import android.view.View
import android.widget.Button
import androidx.recyclerview.widget.RecyclerView
import com.github.rmielnik.demo.R
import com.github.rmielnik.list.AbstractViewHolder
class ShuffleViewHolder(
view: View,
onShuffleClick: () -> Unit
) : Abstr... | 0 | Kotlin | 0 | 6 | bcc0f5483f980a8d1284968f6d6635a4246e8080 | 621 | SimplerRecyclerView | Apache License 2.0 |
collect_app/src/androidTest/java/org/odk/collect/android/feature/projects/SwitchProjectTest.kt | colinruz | 362,402,626 | true | {"Java": 4629581, "Kotlin": 216042, "XSLT": 142758, "HTML": 11799, "JavaScript": 2830} | package org.odk.collect.android.feature.projects
import org.junit.Rule
import org.junit.Test
import org.junit.rules.RuleChain
import org.odk.collect.android.R
import org.odk.collect.android.support.CollectTestRule
import org.odk.collect.android.support.TestRuleChain
class SwitchProjectTest {
val rule = CollectTe... | 0 | null | 0 | 0 | 9ea1492fd228b65d10c5b028521e6d6f32a10abc | 1,295 | collect | Apache License 2.0 |
process-app/src/main/kotlin/com/alfresco/content/process/ui/components/PeopleField.kt | Alfresco | 201,430,708 | false | {"Kotlin": 1271418, "JavaScript": 17131, "CSS": 15164, "HTML": 1854, "Shell": 735} | package com.alfresco.content.process.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import and... | 3 | Kotlin | 7 | 4 | 0f3472ed2b8559a0d6ede93fed6845d6a7f8e2b9 | 3,258 | alfresco-mobile-workspace-android | Apache License 2.0 |
process-app/src/main/kotlin/com/alfresco/content/process/ui/components/PeopleField.kt | Alfresco | 201,430,708 | false | {"Kotlin": 1271418, "JavaScript": 17131, "CSS": 15164, "HTML": 1854, "Shell": 735} | package com.alfresco.content.process.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import and... | 3 | Kotlin | 7 | 4 | 0f3472ed2b8559a0d6ede93fed6845d6a7f8e2b9 | 3,258 | alfresco-mobile-workspace-android | Apache License 2.0 |
data/src/main/java/com/bortxapps/data/OompaLoompaInfo.kt | neoBortx | 605,034,327 | false | {"Kotlin": 70230} | package com.bortxapps.data
data class OompaLoompaInfo(
val id: Int,
val lastName: String,
val image: String,
val profession: String,
val height: Int,
val firstName: String,
val country: String,
val age: Int,
val gender: String,
val email: String,
val tastes: Tastes
) | 0 | Kotlin | 0 | 0 | 8a6dd67a025bc65349c80b3d58f0f9b81f3f32a3 | 312 | OompaLoompaResources | Apache License 2.0 |
src/main/kotlin/me/abzylicious/unitebraverybot/dataclasses/Pokemon.kt | Abzylicious | 532,955,791 | false | {"Kotlin": 43186, "Dockerfile": 362, "Shell": 50} | package me.abzylicious.unitebraverybot.dataclasses
import kotlinx.serialization.Serializable
import me.jakejmattson.discordkt.dsl.Data
import java.awt.Color
private object PokemonRole {
const val SUPPORTER = "supporter"
const val ALL_ROUNDER = "all-rounder"
const val ATTACKER = "attacker"
const val DE... | 0 | Kotlin | 0 | 2 | 551fa93ac5af76cc2b5b7f03f0323c52a98b10aa | 983 | UniteBraveryBot | MIT License |
compose-designer/src/com/android/tools/idea/compose/preview/actions/AnimationInspectorAction.kt | leobert-lan | 563,630,098 | true | {"Text": 355, "EditorConfig": 2, "Markdown": 64, "Shell": 32, "Ignore List": 193, "XML": 13507, "Starlark": 142, "Kotlin": 6746, "Java": 8085, "Gradle": 2753, "Proguard": 169, "INI": 72, "JSON": 80, "Graphviz (DOT)": 1, "Ant Build System": 2, "Protocol Buffer": 8, "Java Properties": 166, "HTML": 67, "Batchfile": 20, "G... | /*
* Copyright (C) 2020 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... | 0 | null | 0 | 0 | b373163869f676145341d60985cdbdaca3565c0b | 3,303 | android | Apache License 2.0 |
app/src/main/java/eu/ginlo_apps/ginlo/controller/contracts/OnRegisterVoucherListener.kt | cdskev | 358,279,979 | false | {"Git Config": 1, "Gradle": 3, "Markdown": 5, "Java Properties": 2, "Shell": 1, "Ignore List": 1, "Text": 2, "Proguard": 1, "INI": 1, "XML": 393, "Java": 438, "Kotlin": 168, "JSON": 1, "HTML": 1} | // Copyright (c) 2020-2024 ginlo.net GmbH
package eu.ginlo_apps.ginlo.controller.contracts
interface OnRegisterVoucherListener {
fun onRegisterVoucherSuccess()
fun onRegisterVoucherFail(errorMessage: String)
}
| 1 | Java | 0 | 5 | 5609a68a539fc5fd9666d3d5f93be750fa5a2b77 | 219 | ginlo-android | Apache License 2.0 |
src/test/java/com/github/phantomthief/util/KotlinCaller.kt | tgch | 138,677,233 | false | {"Maven POM": 1, "Text": 1, "Ignore List": 1, "YAML": 1, "Markdown": 1, "Java": 38, "Kotlin": 1} | package com.github.phantomthief.util
import com.github.phantomthief.util.MoreReflection.logDeprecated
/**
* @author w.vela
* Created on 2018-06-22.
*/
internal object KotlinCaller {
@JvmStatic
fun test1() {
test();
}
@JvmStatic
private fun test() {
logDeprecated(System.err::pr... | 1 | null | 1 | 1 | c8cf70f55ae97f2e78d8c28e0e0c6f41f1c9543b | 334 | more-lambdas-java | Artistic License 2.0 |
kresil-lib/lib/src/commonMain/kotlin/kresil/retry/context/RetryContext.kt | kresil | 765,815,842 | false | {"Kotlin": 407453, "HTML": 4559, "JavaScript": 791, "Java": 407} | package kresil.retry.context
/**
* Exposes information about the current retry context.
* @param attempt The current attempt number. Might be 0 if the operation was not retried yet.
*/
data class RetryContext(
val attempt: Int,
)
| 5 | Kotlin | 0 | 3 | b5c039f0d530ffee01d8d18803a15162f9b57a9c | 237 | kresil | Apache License 2.0 |
presentation/src/main/java/com/sms/presentation/main/ui/fill_out_information/data/WorkConditionData.kt | GSM-MSG | 625,706,722 | false | {"Kotlin": 709119} | package com.sms.presentation.main.ui.fill_out_information.data
data class WorkConditionData(
val formOfEmployment: String,
val salary: String,
val regions: List<String>
)
| 13 | Kotlin | 1 | 8 | 5789cdb42e175dac7f62be9c4505b0f748a1e136 | 184 | SMS-Android | MIT License |
app/src/main/java/kz/sozdik/login/data/gateway/LoginRestGateway.kt | sozdik-kz | 290,830,901 | false | null | package kz.sozdik.login.data.gateway
import kz.sozdik.core.models.ResponseWrapper
import kz.sozdik.core.models.ResponseWrapper.RESULT_OK
import kz.sozdik.login.data.api.LoginApi
import kz.sozdik.login.data.api.model.LoginInfo
import kz.sozdik.login.data.api.model.SocialAuthOutput
import kz.sozdik.login.domain.gateway.... | 5 | Kotlin | 5 | 43 | cfbdffe47253c14ec75d0fba166d1077e028328c | 1,623 | sozdik-android | MIT License |
MouseWheelScroll/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.*
import java.awt.event.ActionEvent
import java.awt.event.InputEvent
import java.awt.event.ItemEvent
import java.awt.event.KeyEvent
import java.awt.event.MouseAdapter
import java.awt.event.MouseEvent
import javax.imageio.ImageIO
import javax.swing.*
private var isShiftPressed = false
... | 0 | null | 6 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 5,544 | kotlin-swing-tips | MIT License |
MouseWheelScroll/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.*
import java.awt.event.ActionEvent
import java.awt.event.InputEvent
import java.awt.event.ItemEvent
import java.awt.event.KeyEvent
import java.awt.event.MouseAdapter
import java.awt.event.MouseEvent
import javax.imageio.ImageIO
import javax.swing.*
private var isShiftPressed = false
... | 0 | null | 6 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 5,544 | kotlin-swing-tips | MIT License |
src/test/kotlin/org/koil/user/UserSettingsControllerTest.kt | HappyValleyIO | 261,192,535 | false | null | package org.koil.user
import org.junit.jupiter.api.Test
import org.koil.BaseIntegrationTest
import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.csrf
import org.springframework.security.test.web.servlet.request.SecurityMockMvcRequestPostProcessors.user
import org.springfram... | 1 | Kotlin | 0 | 13 | aff411f80693d68cd8f381723a6030c63b7f2796 | 888 | koil | MIT License |
app/src/main/kotlin/net/tlalka/fiszki/view/activities/MainActivity.kt | jtlalka | 52,197,843 | false | null | package net.tlalka.fiszki.view.activities
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.ListView
import butterknife.BindView
import net.tlalka.fiszki.R
import net.tlalka.fiszki.domain.services.StorageService
import net.tlalka.fiszki.model.dto.parcel.WelcomeDto
imp... | 0 | Kotlin | 0 | 2 | 7e7c2aba5d9a1634a5b295319ec1bb5a4b5a7aa0 | 1,777 | fiszki | MIT License |
buildSrc/src/main/kotlin/ujizin/camposer/Config.kt | ujizin | 537,219,026 | false | {"Kotlin": 95027} | package ujizin.camposer
object Config {
const val compileSdk = 34
const val targetSdk = 34
const val minSdk = 21
const val versionCode = 10
const val versionName = "0.4.1"
const val groupId = "io.github.ujizin"
const val artifactId = "camposer"
}
| 4 | Kotlin | 12 | 247 | 587a6e0af339e405df065c05f53f3eb45151f191 | 276 | Camposer | Apache License 2.0 |
core/src/test/kotlin/edu/umontreal/kotlingrad/calculus/TestTrigonometricDerivatives.kt | zeta1999 | 314,709,179 | true | {"Kotlin": 143515, "Java": 21933} | package edu.umontreal.kotlingrad.calculus
import edu.umontreal.kotlingrad.*
import edu.umontreal.kotlingrad.api.*
import io.kotlintest.properties.assertAll
import io.kotlintest.specs.StringSpec
@Suppress("NonAsciiCharacters", "LocalVariableName")
class TestTrigonometricDerivatives: StringSpec({
val x by SVar(DReal)... | 0 | null | 0 | 0 | d7eca83d44dbf44f6f208defa55b9caa598f3c70 | 2,150 | kotlingrad | Apache License 2.0 |
src/main/kotlin/spock/AdbDrawerViewer.kt | WahdanZ | 167,228,299 | false | null | package spock
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ToolWindowFactory
import org.jetbrains.android.sdk.AndroidSdkUtils
import spock.adb.AdbController
import spock.adb.AdbControllerImp
import spock.adb.SpockAdbViewer
class AdbDrawerViewer :... | 7 | Kotlin | 4 | 99 | c9d4f94c7ef4b49330df5c5c77850270535a321c | 784 | SpockAdb | Apache License 2.0 |
AAC/app/src/main/java/com/kotlin/tutorial/aac/livedata/MyLiveData.kt | fengzhizi715 | 137,714,143 | false | {"Kotlin": 118221, "Java": 6915} | package com.kotlin.tutorial.aac.livedata
import android.util.Log
import androidx.lifecycle.LiveData
import java.util.concurrent.atomic.AtomicInteger
/**
*
* @FileName:
* com.kotlin.tutorial.aac.livedata.MyLiveData
* @author: <NAME>
* @date: 2019-11-08 23:06
* @version: V1.0 <描述当前版本功能>
*/
class MyLiveD... | 0 | Kotlin | 15 | 60 | a46ce33b2efca69b5a6a42bba56407847b8521c1 | 954 | kotlin_tutorial | Apache License 2.0 |
interpreter/src/main/kotlin/org/actorlang/interpreter/eval/scopes/Scope.kt | 422404 | 371,440,848 | false | {"Java": 174885, "Kotlin": 156913, "ANTLR": 3771, "Shell": 991} | package org.actorlang.interpreter.eval.scopes
import org.actorlang.parser.Position
abstract class Scope(
val parent: Scope?
) {
/**
* Sets a variable value in the scope.
* @param name The variable name
* @param value The value
* @param sourcePosition The source code position of the variabl... | 23 | Java | 1 | 3 | bccf9c554e2dc2ad9c946cf8f38cacdd7002b555 | 784 | ActorLang | MIT License |
agp-compat/agp7/src/main/kotlin/sh/christian/aaraar/gradle/agp/Agp7AndroidExtension.kt | christiandeange | 588,680,111 | false | {"Kotlin": 195825, "Shell": 1171} | package sh.christian.aaraar.gradle.agp
import com.android.build.api.dsl.LibraryExtension
internal class Agp7AndroidExtension(
private val android: LibraryExtension,
) : AndroidExtension {
override fun onBuildTypes(callback: (String) -> Unit) {
return android.buildTypes.configureEach { callback(name) }
}
... | 0 | Kotlin | 1 | 29 | feeb35015a3fbd5d39fd7fc6452a52dba85a1825 | 479 | aaraar | Apache License 2.0 |
app/src/test/java/com/ahmedtikiwa/productsearchsample/repository/FakeSearchRepository.kt | akitikkx | 522,942,595 | false | {"Kotlin": 46333} | package com.ahmedtikiwa.productsearchsample.repository
import com.ahmedtikiwa.productsearchsample.domain.model.Product
import com.ahmedtikiwa.productsearchsample.network.FakeCoolBlueDataSource
import com.ahmedtikiwa.productsearchsample.network.model.asDomainModel
import kotlinx.coroutines.flow.Flow
import kotlinx.coro... | 0 | Kotlin | 0 | 0 | 9f6bedece7109546b9a2bd4395f6018f13d706ba | 653 | Product-Search-Sample | MIT License |
src/main/kotlin/com/theapache64/tgb/core/GifMaster.kt | theapache64 | 264,986,682 | false | null | package com.theapache64.tgb.core
import com.theapache64.telegrambot.api.utils.StringUtils
import com.theapache64.tgb.utils.SimpleCommandExecutor
import java.io.File
object GifMaster {
private const val TEXT_SIZE = 45
fun draw(
text: String,
gifFile: File,
isCreateGif: Boo... | 1 | null | 1 | 1 | 0455c720951909066dcf8fce0c24458754001fc6 | 2,012 | txtgifbot | Apache License 2.0 |
src/main/kotlin/com/chatandpay/api/component/AccountCheck.kt | f-lab-edu | 634,472,358 | false | null | package com.chatandpay.api.component
import com.chatandpay.api.code.BankCode
import com.chatandpay.api.domain.OtherBankAccount
import com.chatandpay.api.dto.*
import com.chatandpay.api.exception.RestApiException
import com.chatandpay.api.repository.AccountRepository
import com.chatandpay.api.repository.PayUserReposito... | 3 | Kotlin | 1 | 2 | 496222f0f797e78589149ab165a599c6f62821eb | 2,540 | chatAndPay-API | MIT License |
app/src/main/java/ar/scacchipa/twittercloneapp/data/repository/ITweetRepository.kt | pscacchi | 490,417,765 | false | null | package ar.scacchipa.twittercloneapp.data.repository
import ar.scacchipa.twittercloneapp.domain.model.ResponseDomain
interface ITweetRepository {
suspend fun getTweets(accessToken: String, loggedUserId: String) : ResponseDomain
}
| 0 | Kotlin | 0 | 0 | bb0656a40988a9f3c278d94dd4db04c8f8443bad | 236 | TwitterCloneApp | Apache License 2.0 |
skinlib/src/main/java/zatrit/skins/lib/resolver/capes/FiveZigResolver.kt | zatrit | 731,635,807 | false | {"Kotlin": 124103, "Java": 8679, "GLSL": 1625} | package zatrit.skins.lib.resolver.capes
import zatrit.skins.lib.PlayerTextures
import zatrit.skins.lib.api.*
import zatrit.skins.lib.texture.BytesTexture
import zatrit.skins.lib.util.jsonObject
import java.net.URL
import java.util.Base64
private const val FIVEZIG_API = "https://textures.5zigreborn.eu/profile/"
/** A... | 1 | Kotlin | 0 | 11 | 9630ad573bca82ce9ea0f0da46f52451cc257014 | 1,075 | skinview | Apache License 2.0 |
src/main/kotlin/com/github/windchopper/tools/log/browser/GroupStageController.kt | windchopper | 190,649,002 | false | null | package com.github.windchopper.tools.log.browser
import com.github.windchopper.common.fx.cdi.form.Form
import jakarta.enterprise.context.Dependent
import jakarta.inject.Named
import javafx.event.ActionEvent
import javafx.fxml.FXML
import javafx.scene.Parent
import javafx.scene.control.TextField
@Dependent @Form(Globa... | 0 | Kotlin | 0 | 0 | 09cfbdcc26188d0ecb650d1428971ff66ea557d6 | 1,006 | log-browser | Apache License 2.0 |
src/main/kotlin/de/ddkfm/j2019/day01/Day04_PartTwo.kt | DDKFM | 225,214,865 | false | null | package de.ddkfm.j2019.day01
import java.io.File
import kotlin.math.abs
fun main() {
val min = 134792
val max = 675810
val count = (min..max).filter { p ->
val hasAdjacentDigits = "(\\d)\\1+".toRegex().findAll("$p")
val contains = hasAdjacentDigits.any { it.groups[0]?.value?.length == 2 }
... | 0 | Kotlin | 0 | 1 | 0c7583dbc42d77387add0fc3f9ed83044725fa75 | 676 | AdventOfCode | MIT License |
shared/src/commonMain/kotlin/link.peipei.countmoney/workflow/add/employ/UpdateEmployeeViewModel.kt | haoxikang | 675,957,687 | false | null | package link.peipei.countmoney.workflow.add.employ
import cafe.adriel.voyager.core.model.coroutineScope
import io.ktor.util.date.GMTDate
import io.ktor.util.date.Month
import io.ktor.util.date.getTimeMillis
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import link.peipei.countmoney.core_ui.vie... | 0 | null | 1 | 2 | 4cc2cc4c606938c97c271aab2b4adb0ffc4c1a61 | 2,829 | KMM-CountMoney | Apache License 2.0 |
educational-core/src/com/jetbrains/edu/learning/handlers/rename/TaskRenameProcessor.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.handlers.rename
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiDirectory
import com.intellij.psi.PsiElement
import com.jetbrains.edu.learning.courseFormat.Course
import com.jetbrains.edu.learning.courseFormat.StudyIt... | 6 | Kotlin | 45 | 99 | cfc24fe13318de446b8adf6e05d1a7c15d9511b5 | 879 | educational-plugin | Apache License 2.0 |
src/main/kotlin/aws/AwsClients.kt | JHegarty14 | 766,650,006 | false | {"Kotlin": 74877} | package aws
import com.amazonaws.ClientConfiguration
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.auth.AWSStaticCredentialsProvider
import com.amazonaws.auth.BasicAWSCredentials
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain
import com.amazonaws.client.builder.AwsClientBuilder
im... | 0 | Kotlin | 0 | 0 | b13a7b4820ac7edf2fabe5c4cbe624d09bb5b058 | 3,236 | dynamodb-kafka-konnect | MIT License |
app/src/main/java/com/example/vindmoller/ui/screens/details/DetailsScreen.kt | omarhaweel | 676,250,796 | false | null | package com.example.vindmoller.ui.screens.details
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.com... | 0 | Kotlin | 0 | 0 | e83e6b420f742ad6822e257187948e571908df8b | 4,375 | kooling | Apache License 2.0 |
libraries/apollo-gradle-plugin/testProjects/kotlinJvmSourceSets/src/test/kotlin/com/example/Test.kt | apollographql | 69,469,299 | false | {"Kotlin": 3463807, "Java": 198208, "CSS": 34435, "HTML": 5844, "JavaScript": 1191} | package com.example
fun main() {
println(com.example.MainQuery::class.java.name)
println(com.example.TestQuery::class.java.name)
} | 135 | Kotlin | 651 | 3,750 | 174cb227efe76672cf2beac1affc7054f6bb2892 | 135 | apollo-kotlin | MIT License |
bitlap-core/src/main/kotlin/org/bitlap/core/sql/parser/ddl/SqlDropDatabase.kt | bitlap | 313,535,150 | false | null | /**
* Copyright (C) 2023 bitlap.org .
*/
package org.bitlap.core.sql.parser.ddl
import org.apache.calcite.DataContext
import org.apache.calcite.sql.SqlIdentifier
import org.apache.calcite.sql.SqlKind
import org.apache.calcite.sql.SqlLiteral
import org.apache.calcite.sql.SqlSpecialOperator
import org.apache.calcite.s... | 23 | null | 2 | 22 | 328585f917439b80bc7d1b89b21972b6c8ee9e7f | 1,758 | bitlap | Apache License 2.0 |
src/day02/Day02.kt | spyroid | 433,555,350 | false | null | package day02
import readInput
fun main() {
data class Command(val op: String, val value: Int)
fun part1(seq: Sequence<Command>): Int {
var depth = 0
var horizontal = 0
seq.forEach {
when (it.op) {
"forward" -> horizontal += it.value
"down"... | 0 | Kotlin | 0 | 0 | 939c77c47e6337138a277b5e6e883a7a3a92f5c7 | 1,370 | Advent-of-Code-2021 | Apache License 2.0 |
facilis/src/main/java/com/prembros/facilis/dialog/AnimType.kt | premacck | 144,760,443 | false | null | package com.prembros.facilis.dialog
import androidx.annotation.IntDef
import com.prembros.facilis.dialog.AnimType.Companion.ANIM_FROM_BOTTOM
import com.prembros.facilis.dialog.AnimType.Companion.ANIM_FROM_CENTER
import com.prembros.facilis.dialog.AnimType.Companion.ANIM_FROM_LEFT
import com.prembros.facilis.dialog.Ani... | 0 | Kotlin | 5 | 35 | 83b3f1fcba97f4305ba852985b76d932df0d97da | 789 | facilis | MIT License |
processor/src/test/kotlin/com/faendir/kotlin/autodsl/CompileUtilsTest.kt | F43nd1r | 358,948,300 | false | null | package com.faendir.kotlin.autodsl
import strikt.api.expectThrows
import strikt.assertions.isA
import strikt.assertions.isEqualTo
import java.lang.reflect.InvocationTargetException
import kotlin.test.Test
class CompileUtilsTest {
@Test
fun `test function is evaluated for ksp`() {
expectThrows<Invocati... | 0 | Kotlin | 0 | 8 | 5ef16a354866535bc13cb49d0428cecb65bb83b8 | 847 | autodsl | Apache License 2.0 |
app/src/main/java/com/mmartin/ghibliapi/di/component/FilmsComponent.kt | mmartin101 | 87,895,791 | false | null | package com.mmartin.ghibliapi.di.component
import com.mmartin.ghibliapi.di.Activity
import com.mmartin.ghibliapi.di.module.FilmsModule
import com.mmartin.ghibliapi.film.FilmsActivity
import dagger.Component
/**
* Created by mmartin on 10/21/17.
*/
@Activity
@Component(dependencies = [(RepositoryComponent::class)], ... | 0 | Kotlin | 0 | 0 | 1d1d1934196534c1812c5661ade47bd1bf2b30af | 418 | GhibliAPIAndroid | MIT License |
app/src/main/java/org/p2p/wallet/home/model/Base64TypeAdapter.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.home.model
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonDeserializer
import com.google.gson.JsonElement
import com.google.gson.JsonPrimitive
import com.google.gson.JsonSerializationContext
import com.google.gson.JsonSerializer
import org.p2p.solanaj.utils.crypto.B... | 8 | Kotlin | 16 | 28 | 71b282491cdafd26be1ffc412a971daaa9c06c61 | 1,243 | key-app-android | MIT License |
app/src/main/java/com/shalatan/entertainmentapp/TODOS.kt | shalatan | 314,760,480 | false | null | package com.shalatan.entertainmentapp
class TODOS {
//TODO -> Better Rating View
//TODO -> Posters Not Loading Until Scrolled
//TODO -> Include Movie Trailer Section
//TODO -> Refresh Recommendation Weight Option to 0 and re-calculate
} | 0 | Kotlin | 1 | 26 | e2b2aada5632af1ce6dcdcc199e7d59ee25eda92 | 254 | EntertainmentApp | Apache License 2.0 |
src/src/main/java/com/online/course/ui/frag/MyCommentsFrag.kt | dimske-sys | 815,819,154 | false | {"Kotlin": 1527382, "Java": 137045} | package com.appzeto.lms.ui.frag
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import com.appzeto.lms.R
import com... | 0 | Kotlin | 0 | 0 | fcec541f3d95355d7dd0d559ffedb150727325b4 | 3,269 | eduwise | MIT License |
publish-component/src/main/java/com/kotlin/android/publish/component/widget/dialog/InputLabelDialog.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.publish.component.widget.dialog
import android.text.InputFilter
import android.view.WindowManager
import android.view.inputmethod.EditorInfo
import androidx.core.widget.doAfterTextChanged
import com.kotlin.android.core.BaseVMDialogFragment
import com.kotlin.android.core.BaseViewModel
import ... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 4,442 | Mtime | Apache License 2.0 |
anime_component/src/main/java/com/xyoye/anime_component/ui/activities/anime_history/AnimeHistoryViewModel.kt | xyoye | 138,993,190 | false | {"Kotlin": 1580261, "Java": 495885, "Shell": 17996} | package com.xyoye.anime_component.ui.activities.anime_history
import androidx.lifecycle.viewModelScope
import com.xyoye.common_component.base.BaseViewModel
import com.xyoye.common_component.extension.toastError
import com.xyoye.common_component.network.repository.AnimeRepository
import com.xyoye.data_component.data.An... | 28 | Kotlin | 93 | 946 | b60bd028ce160ff37aba3eaf70fd0b2cbfa5eab0 | 1,600 | DanDanPlayForAndroid | Apache License 2.0 |
bbootimg/src/main/kotlin/packable/VBMetaParser.kt | Breathleas | 383,739,281 | true | {"C": 687838, "Python": 518277, "Kotlin": 449936, "C++": 164641, "Java": 26815, "Makefile": 5926, "Meson": 182, "Shell": 60} | // Copyright 2021 <EMAIL>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in wri... | 0 | null | 0 | 0 | 9772e6c163e422dca0c611829b8e21e521fbcaec | 1,533 | Android_boot_image_editor | Apache License 2.0 |
common/src/main/java/com/egpayawal/common/base/BaseViewModelFragment.kt | egpayawal | 721,324,889 | false | {"Kotlin": 247106, "Java": 2332, "Shell": 1285} | package com.egpayawal.common.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.createViewModelLazy
import androidx.lifecycle.ViewModelStore
import java.lang.reflect.Parameteriz... | 0 | Kotlin | 0 | 0 | 71034af5fc9d278247318368c753e8b858728383 | 1,834 | openweather-android | Apache License 2.0 |
app/src/main/java/no/nordicsemi/android/ei/ble/state/ScannerState.kt | NordicSemiconductor | 340,311,410 | false | {"Kotlin": 409511} | package no.nordicsemi.android.ei.ble.state
import android.bluetooth.le.ScanResult
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import no.nordicsemi.android.ei.ble.DiscoveredBluetoothDe... | 0 | Kotlin | 0 | 2 | 8510b1aa76b2bc41bda0e2459f4f023c72b88813 | 1,766 | Android-nRF-Edge-Impulse | Apache License 2.0 |
src/dev/lunarcoffee/blazelight/model/api/users/registrar/UserRegisterManager.kt | lunarcoffee | 214,299,039 | false | {"Kotlin": 166835, "CSS": 18966, "JavaScript": 1102} | package dev.lunarcoffee.blazelight.model.api.users.registrar
import dev.lunarcoffee.blazelight.model.api.users.UserCache
import dev.lunarcoffee.blazelight.model.internal.Database
import dev.lunarcoffee.blazelight.model.internal.std.util.PasswordHasher
import dev.lunarcoffee.blazelight.model.internal.std.util.UniqueIDG... | 0 | Kotlin | 0 | 1 | 3f0a227fe8d48cbeece5d677e8e36974d00e4e9c | 2,306 | Blazelight | MIT License |
src/main/java/dev/c0b/jacobsutils/commands/G2F.kt | JacobC1921w | 810,812,253 | false | {"Kotlin": 31307} | package dev.c0b.jacobsutils.commands
import org.bukkit.Bukkit.getLogger
import org.bukkit.Material
import org.bukkit.command.Command
import org.bukkit.command.CommandExecutor
import org.bukkit.command.CommandSender
import org.bukkit.entity.Player
import org.bukkit.inventory.ItemStack
class G2F: CommandExecutor {
... | 0 | Kotlin | 0 | 1 | 86c4b2634120335b25ebab09f6610c0693c19e71 | 1,201 | JacobsUtils | MIT License |
app/src/androidTest/kotlin/com/mitch/template/ui/screens/home/components/LanguagePickerDialogTest.kt | seve-andre | 564,679,359 | false | {"Kotlin": 85665} | package com.mitch.template.ui.screens.home.components
import androidx.activity.ComponentActivity
import androidx.compose.ui.test.assertIsNotSelected
import androidx.compose.ui.test.assertIsSelected
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onNodeWithTag
import andr... | 0 | Kotlin | 1 | 54 | fb7a0ab8d378b9fb7d4a06041c379bc3b8549039 | 4,008 | jetpack-compose-template | MIT License |
bot/connector-ga/src/main/kotlin/model/request/GASurface.kt | theopenconversationkit | 84,538,053 | false | null | /*
* Copyright (C) 2017 VSCT
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 163 | null | 127 | 475 | 890f69960997ae9146747d082d808d92ee407fcb | 884 | tock | Apache License 2.0 |
composeApp/src/androidMain/kotlin/top/yukonga/miuix/uitest/MainActivity.kt | miuix-kotlin-multiplatform | 838,760,422 | false | {"Kotlin": 186568, "HTML": 1142, "Swift": 629} | package top.yukonga.miuix.uitest
import App
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
class MainActivity : Compo... | 0 | Kotlin | 0 | 6 | 6c10b8a1afe2ad4ed237f0e7ce7e98451af07a08 | 885 | miuix | Apache License 2.0 |
app/src/main/java/io/cricket/app/ui/modules/history/live_bowling_stats/LiveBowlingStatsItemVM.kt | amirishaque | 375,128,729 | false | null | package io.cricket.app.ui.modules.history.live_bowling_stats
import android.view.View
import io.cricket.app.R
import io.cricket.app.base.BaseListDataViewModel
import io.cricket.app.data.database.CricketAppDao
import io.cricket.app.data.database.database_tables.Tables
import io.cricket.app.data.remote.UserRestService
i... | 0 | Kotlin | 0 | 0 | 42808ddd775b5ac6f7bff0d8cf518091588df844 | 1,059 | Cricklub_livecode | MIT License |
src/jvmMain/kotlin/prime/template/interpreter/Instruction.kt | fantaevroman | 415,853,010 | false | {"Kotlin": 21526} | package prime.template.interpreter
import prime.combinator.pasers.ParsingContext
interface Instruction {
fun supportContext(templateInstructionContext: ParsingContext): Boolean
fun replaceInText(
templateInstructionContext: ParsingContext,
text: StringBuilder,
variables: Map<String, S... | 0 | Kotlin | 0 | 0 | fe075627e403b7454e2accef50022eccabdd3206 | 2,187 | primeTemplate | Apache License 2.0 |
app/src/main/kotlin/io/dolphin/move/android/domain/usecase/AppEventsInteractor.kt | dolphin-technologies | 603,088,245 | false | {"Kotlin": 624279} | package io.dolphin.move.android.domain.usecase
import io.dolphin.move.android.basedata.MoveAppEventsRepository
import io.dolphin.move.android.basepresentation.AppEvent
import javax.inject.Inject
import kotlinx.coroutines.flow.SharedFlow
class AppEventsInteractor @Inject constructor(
private val moveAppEventsRepos... | 1 | Kotlin | 0 | 0 | 519ff6e880104ad50770d2b9bf0ac6320eeaaa67 | 545 | MOVE-App-Android | Apache License 2.0 |
app/src/main/java/com/example/picdemo/PicApplication.kt | showwiki | 315,795,972 | false | {"Gradle": 4, "Java Properties": 2, "Text": 1, "Ignore List": 2, "Markdown": 1, "Proguard": 1, "Kotlin": 13, "XML": 10, "Java": 7} | package com.example.picdemo
import android.app.Application
import android.content.Context
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
class PicApplication : Application(){
companion object {
val testChan... | 0 | Kotlin | 1 | 0 | 502aaf5e9e5a1106bda477851254def0fba38415 | 648 | PicDemo | Apache License 2.0 |
app/src/main/java/com/gobinda/notepad/MainActivity.kt | gobinda1547 | 772,135,935 | false | {"Kotlin": 120416} | package com.gobinda.notepad
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.materia... | 0 | Kotlin | 0 | 1 | 76baccd61cc71523cd5c64112559a53c174e0efa | 1,010 | Notepad-Android-App | MIT License |
libnavigation-base/src/main/java/com/mapbox/navigation/base/banner/BannerInstruction.kt | gajdzik | 234,039,995 | false | {"Gradle": 30, "JSON": 19, "Markdown": 9, "Java Properties": 4, "Shell": 4, "Ignore List": 15, "Batchfile": 2, "Makefile": 1, "YAML": 2, "XML": 397, "JavaScript": 2, "Proguard": 9, "INI": 17, "Java": 318, "Kotlin": 333, "Text": 3, "Python": 2} | package com.mapbox.navigation.base.banner
data class BannerInstruction(private val primary: BannerSection) {
fun primary(): BannerSection = primary
}
| 1 | null | 1 | 1 | 48836f8d7bd0c1c6846a76bfd5035b6d856e0b35 | 156 | mapbox-navigation-android | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/AddModeratorRounded.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/AddModeratorRounded")
@file:JsNonModule
package mui.icons.material
@JsName("default")
external val AddModeratorRounded: SvgIconComponent
| 10 | Kotlin | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 220 | kotlin-wrappers | Apache License 2.0 |
app/src/debug/java/al/ahgitdevelopment/municion/HiltTestActivity.kt | foliolo | 55,931,400 | false | null | package al.ahgitdevelopment.municion
import androidx.appcompat.app.AppCompatActivity
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
open class HiltTestActivity : AppCompatActivity()
| 0 | Kotlin | 2 | 4 | d3cf70945228b455b73b21e2af699ed5b87e248e | 201 | Municion | MIT License |
src/commonTest/kotlin/com.adamratzman/spotify/pub/PublicUserApiTest.kt | canaangifford | 333,619,381 | true | {"Kotlin": 642293, "JavaScript": 88} | /* Spotify Web API, Kotlin Wrapper; MIT License, 2017-2021; Original author: <NAME> */
package com.adamratzman.spotify.pub
import com.adamratzman.spotify.GenericSpotifyApi
import com.adamratzman.spotify.buildSpotifyApi
import com.adamratzman.spotify.runBlockingTest
import com.adamratzman.spotify.utils.catch
import kot... | 0 | null | 0 | 0 | d0e714293a7fb89f96fbf723404040265ec0a211 | 907 | spotify-web-api-kotlin | MIT License |
2022/project/src/test/kotlin/Day03KtTest.kt | ric2b | 159,961,626 | false | {"TypeScript": 144924, "Haskell": 117945, "Kotlin": 97335, "Svelte": 89864, "HTML": 3763, "JavaScript": 3612} | import org.junit.jupiter.api.Assertions.*
import org.junit.jupiter.api.Test
class Day03KtTest {
private val testInput =
"""
vJrwpWtwJgWrhcsFMMfFFhFp
jqHRNqRjqzjGDLGLrsFMfFZSrLrFZsSL
PmmdzqPrVvPwwTWBwg
wMqvLMZHhHMvwLHjbvcjnnSBnvTQFn
ttgJtRGJQctTZtZ... | 0 | TypeScript | 0 | 0 | 04b68836b582c241e6c854b40b6be35d406a2c7e | 845 | advent-of-code | MIT License |
app/src/main/java/com/example/marvel/app/components/SingleRow.kt | ahmeddyounes | 842,107,601 | false | {"Kotlin": 155384} | package com.example.marvel.app.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Al... | 0 | Kotlin | 0 | 0 | b03e737a6e2edbc86e1cfba7c58a8a3b4b273eeb | 701 | Marvel | MIT License |
app/src/test/java/com/devindi/wallpaper/search/SearchManagerTest.kt | devindi | 141,887,446 | false | {"Gradle": 3, "Java Properties": 2, "Ruby": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 2, "YAML": 2, "JSON": 1, "Proguard": 2, "Kotlin": 86, "XML": 42, "Java": 3, "SVG": 2} | package com.devindi.wallpaper.search
import android.arch.core.executor.testing.InstantTaskExecutorRule
import com.devindi.wallpaper.model.places.GoogleApiErrorHandler
import com.devindi.wallpaper.search.Place as MapwallPlace
import com.google.android.gms.common.api.GoogleApiClient
import com.google.android.gms.common.... | 3 | Kotlin | 6 | 9 | 1dec3ee50f4f2507c5d2517af41cf578d9ef535d | 5,515 | mapwall | Apache License 2.0 |
sdk-mobile/src/main/kotlin/io/github/wulkanowy/sdk/mobile/service/RoutingRulesService.kt | dominik-korsa | 237,057,001 | true | {"Kotlin": 509705, "HTML": 128700, "Shell": 505} | package io.github.wulkanowy.sdk.mobile.service
import io.reactivex.Single
import retrofit2.http.GET
interface RoutingRulesService {
@GET("/UonetPlusMobile/RoutingRules.txt")
fun getRoutingRules(): Single<String>
}
| 0 | Kotlin | 0 | 0 | 2d2b5176e6b3d5e5eb6b812441c1af740f26eeb5 | 225 | sdk | Apache License 2.0 |
app/src/main/java/com/mBZo/jar/store/contentFormat.kt | zf1234d | 520,178,139 | false | null | package com.mBZo.jar.store
import android.app.Activity
import android.content.Context
import android.content.SharedPreferences
import android.os.Build
import android.text.Html
import android.text.method.LinkMovementMethod
import android.view.View
import android.widget.ImageView
import android.widget.ProgressBar
import... | 0 | null | 0 | 9 | 9ef9a45fa85507052310028a8103a4d04977b779 | 5,804 | J2me-res-store | Apache License 2.0 |
list1/task2/app/src/main/java/com/example/wsiobus/Bus.kt | luk9400 | 172,599,840 | false | {"Text": 1, "Ignore List": 24, "Markdown": 1, "Gradle": 39, "Java Properties": 27, "Shell": 15, "Batchfile": 15, "Proguard": 13, "Kotlin": 71, "XML": 150, "JSON": 7, "JavaScript": 5, "Git Attributes": 1, "INI": 2, "Starlark": 3, "Java": 2, "OpenStep Property List": 4, "Objective-C": 4} | package com.example.wsiobus
class Bus(val line : String, val time : Double, val busStop : String, val day : String)
class CompareBusObjects {
companion object : Comparator<Bus> {
override fun compare(a: Bus, b: Bus): Int {
return (100.0 * (a.time - b.time)).toInt()
}
}
} | 10 | null | 1 | 1 | bda76056a94bbfe1e5dc9512a115cb00fbebfea2 | 309 | mobilki | MIT License |
composeApp/src/commonMain/kotlin/com/malliaridis/tui/domain/foundation/CoroutineContextHolder.kt | malliaridis | 781,833,057 | false | {"Kotlin": 218283, "Swift": 1167} | package com.malliaridis.tui.domain.foundation
import kotlin.coroutines.CoroutineContext
interface CoroutineContextHolder {
val mainContext: CoroutineContext
val ioContext: CoroutineContext
}
| 0 | Kotlin | 0 | 3 | 740442033e99b21bb7ed2dd8796cc6460a49ea2d | 203 | tactical-user-interface | MIT License |
modules/wasm-binary/src/commonMain/kotlin/tree/sections/MemoryImportNode.kt | wasmium | 761,480,110 | false | {"Kotlin": 584714, "JavaScript": 203} | package org.wasmium.wasm.binary.tree.sections
import org.wasmium.wasm.binary.tree.ExternalKind
import org.wasmium.wasm.binary.visitors.ImportSectionVisitor
public class MemoryImportNode(
public override val module: String,
public override val name: String,
public val memoryType: MemoryType,
) : ImportNode... | 0 | Kotlin | 0 | 3 | f219d7133574e8ea81ce905393991212ca293cf4 | 510 | wasmium-wasm-binary | Apache License 2.0 |
link/src/main/java/com/stripe/android/link/ui/signup/SignUpState.kt | stripe | 6,926,049 | false | {"Kotlin": 11965294, "Java": 70838, "Ruby": 22569, "Python": 21891, "Shell": 20293, "HTML": 7519} | package com.stripe.android.link.ui.signup
/**
* Enum representing the state of the Sign Up screen.
*/
internal enum class SignUpState {
InputtingPrimaryField,
VerifyingEmail,
InputtingRemainingFields,
}
| 127 | Kotlin | 629 | 1,229 | c11f99d2bc334e23729419f318b19e12254fe44d | 218 | stripe-android | MIT License |
src/main/kotlin/br/com/zup/endpoint/ListagemChavesPixEndpoint.kt | pedro-diniz | 408,439,208 | true | {"Kotlin": 108178} | package br.com.zup.endpoint
import br.com.zup.ListagemChavesPixRequest
import br.com.zup.ListagemChavesPixResponse
import br.com.zup.ListagemChavesPixServiceGrpc
import br.com.zup.repository.ChavePixRepository
import br.com.zup.service.erp.ItauErpClient
import br.com.zup.utils.exceptionhandler.exceptions.ClienteNaoEnc... | 0 | Kotlin | 1 | 0 | 63b9c8dda7e29752856fc00c5f75b3f894911050 | 2,252 | orange-talents-07-template-pix-keymanager-grpc | Apache License 2.0 |
src/util/main/sp/it/util/action/ActionManager.kt | sghpjuikit | 18,862,317 | false | {"Kotlin": 3363805, "Java": 897208, "Python": 215789, "CSS": 169698, "HTML": 11896, "Shell": 237} | package sp.it.util.action
import java.util.concurrent.ConcurrentHashMap
import javafx.application.Platform
import javafx.scene.input.KeyCode.ALT_GRAPH
import javafx.scene.input.KeyCode.COMMA
import javafx.scene.input.KeyCode.PERIOD
import javafx.scene.input.KeyCode.SLASH
import javafx.stage.Stage
import sp.it.util.acc... | 12 | Kotlin | 2 | 22 | 2f69d241886509e9d3c3ae26e6793919df8db371 | 7,000 | player | RSA Message-Digest License |
intellij-plugin/educational-core/src/com/jetbrains/edu/learning/marketplace/MarketplaceCheckListener.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.marketplace
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.registry.Registry
import com.jetbrains.edu.learning.EduUtilsKt.isStudentProject
import com.jetbrains.edu.learning.courseFormat.CheckResult
import com.jetbrains.edu.learning.courseFormat.EduCourse... | 5 | null | 48 | 131 | 19a2a4b48993f093dac88bdf4fb9fda3c054b24a | 2,428 | educational-plugin | Apache License 2.0 |
devbricksx-kotlin-compiler/src/main/java/com/dailystudio/devbricksx/compiler/kotlin/ListFragmentProcessor.kt | dailystudio | 264,874,323 | false | null | package com.dailystudio.devbricksx.compiler.kotlin
import com.dailystudio.devbricksx.annotations.Adapter
import com.dailystudio.devbricksx.annotations.DataSource
import com.dailystudio.devbricksx.annotations.ListFragment
import com.dailystudio.devbricksx.compiler.kotlin.utils.AnnotationsUtils
import com.dailystudio.de... | 0 | Kotlin | 3 | 31 | 2cb088d1c6be67aa9dddb0de2e157674a6d3c834 | 5,805 | devbricksx-android | Apache License 2.0 |
app/src/main/java/com/example/cadastroalunos/database/dao/PagamentoDao.kt | eduardozborowski | 861,449,365 | false | {"Kotlin": 23691} | package com.example.cadastroalunos.database.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import com.example.cadastroalunos.database.entities.Pagamento
@Dao
interface PagamentoDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun inserirPagamento(pagamento: Pagamento): Long
@... | 0 | Kotlin | 0 | 0 | 70b8d0fa3aa2baf15ed782c161074017a28dd953 | 598 | studentmanagerkotlin | MIT License |
app/src/main/java/com/example/abschlussprojekt_husewok/data/remote/NetworkResult.kt | Phenkel | 732,028,288 | false | {"Kotlin": 273774} | package com.example.abschlussprojekt_husewok.data.remote
/**
* A sealed class representing the result of a network operation.
*
* @param T The type of data returned in the result.
* @property data The data returned in the result.
* @property message The message associated with the result.
*/
sealed class Network... | 0 | Kotlin | 0 | 0 | 156528573a66c4023495e6e9d86410b22abd06af | 987 | Abschlussprojekt_Kotlin_Husewok | Apache License 2.0 |
build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt | tecruz | 858,709,650 | false | {"Kotlin": 165426} | /*
* Designed and developed by 2024 tecruz
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 1 | Kotlin | 0 | 0 | ee2f34939b17b387fcd67eab7a2308b7c7578bd4 | 1,494 | VisitedCountries | Apache License 2.0 |
java/com/example/travelbucket/ui/home/StoredTravelPlaceAdapter.kt | MyatThuraSoe | 854,713,762 | false | {"Kotlin": 23032} | package com.example.travelbucket.ui.home
import android.graphics.BitmapFactory
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.example.travelbucket.R... | 0 | Kotlin | 0 | 0 | dc3fd5f2edca001a095928b3add4d81c3a332c84 | 1,872 | Travel-Bucket-List | MIT License |
src/jsMain/kotlin/baaahs/app/ui/AppIndex.kt | baaahs | 174,897,412 | false | null | package baaahs.app.ui
import baaahs.app.settings.UiSettings
import baaahs.app.ui.editor.SceneEditableManager
import baaahs.app.ui.editor.ShowEditableManager
import baaahs.app.ui.editor.editableManagerUi
import baaahs.app.ui.editor.layout.layoutEditorDialog
import baaahs.app.ui.settings.settingsDialog
import baaahs.cli... | 82 | Kotlin | 5 | 24 | 01aa9e9530ff9acbada165a2d7048c4ad67ed74f | 13,194 | sparklemotion | MIT License |
cathode-sync/src/main/java/net/simonvt/cathode/actions/shows/SyncShow.kt | SimonVT | 9,478,484 | false | null | /*
* Copyright (C) 2013 <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 | null | 9 | 99 | 29d916efcd1dbb8ddac1fc2600b2bfbe6ee84c27 | 1,652 | cathode | Apache License 2.0 |
app/src/main/kotlin/com/polendina/knounce/MainActivity.kt | xquilt | 695,183,007 | false | {"Kotlin": 158930} | package com.polendina.knounce
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.provider.Settings
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Mat... | 0 | Kotlin | 0 | 0 | 80f69ae218c99a6661f584d29638ec5afb1de904 | 3,360 | knounce | MIT License |
SeaSellCryptoAppUIKit/app/src/main/java/com/rotmstudio/seasellcryptoappuikit/MainActivity.kt | ROTM-Studio | 424,046,574 | false | null | package com.rotmstudio.seasellcryptoappuikit
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.SideEffect
import com.go... | 0 | Kotlin | 0 | 3 | 42d47090a38ed3c92e861f4e0aa8b0115639e882 | 1,726 | jetpack-compose-ui-kits | MIT License |
python/huggingFace/src/com/intellij/python/community/impl/huggingFace/service/HuggingFaceCardsUsageCollector.kt | StingNevermore | 113,538,568 | false | null | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.python.community.impl.huggingFace.service
import com.intellij.internal.statistic.eventLog.EventLogGroup
import com.intellij.internal.statistic.service.fus.collectors.CounterUsag... | 1 | null | 1 | 1 | da982277a1db650154baf710b44f43a4b167413c | 1,423 | intellij-community | Apache License 2.0 |
lib/src/main/kotlin/org/didcommx/didcomm/utils/JSONUtils.kt | sicpa-dlab | 387,500,702 | false | null | package org.didcommx.didcomm.utils
import com.google.gson.GsonBuilder
import com.google.gson.reflect.TypeToken
import com.nimbusds.jose.util.JSONObjectUtils
import org.didcommx.didcomm.exceptions.MalformedMessageException
inline fun <reified T> Map<String, Any?>.getTypedArray(key: String): Array<T?>? = this[key]?.let... | 5 | null | 13 | 12 | 993265c75c12924f7ded917e3c54282c327ab315 | 1,491 | didcomm-jvm | Apache License 2.0 |
shared/src/commonMain/kotlin/vn/luongvo/kmm/survey/domain/usecase/IsLoggedInUseCase.kt | luongvo | 566,890,934 | false | null | package vn.luongvo.kmm.survey.domain.usecase
import kotlinx.coroutines.flow.Flow
import vn.luongvo.kmm.survey.domain.repository.AuthRepository
interface IsLoggedInUseCase {
operator fun invoke(): Flow<Boolean>
}
class IsLoggedInUseCaseImpl(private val repository: AuthRepository) : IsLoggedInUseCase {
overr... | 11 | Kotlin | 0 | 1 | df14cb68f68ed93c4fa52e7d3da2245665291e95 | 408 | kmm-survey | MIT License |
src/main/kotlin/com/misterpemodder/aoc2022/solutions/Day07.kt | MisterPeModder | 573,061,300 | false | null | /*
* 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 or agreed to in wr... | 0 | Kotlin | 0 | 0 | af1b258325a7bd036a47b5395c90bbac42bbd337 | 6,565 | AdventOfCode2022 | Apache License 2.0 |
app/src/main/java/com/tinyfish/jeekalarm/start/App.kt | tifish | 244,591,555 | false | null | package com.tinyfish.jeekalarm.start
import android.app.Application
import android.content.Context
import android.content.Intent
import android.os.Build
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.squareup.moshi.Moshi
impor... | 0 | Kotlin | 0 | 0 | c536971eb9fde89ab09f24e888b7d64ddbc2d324 | 2,331 | JeekAlarm | Apache License 2.0 |
Man10Bank/src/main/java/red/man10/man10bank/api/APIServerLoan.kt | forest611 | 267,747,865 | false | {"Kotlin": 110829, "C#": 67564, "Dockerfile": 603, "Shell": 84} | package red.man10.man10bank.api
import okhttp3.RequestBody.Companion.toRequestBody
import red.man10.man10bank.api.APIBase.getRequest
import red.man10.man10bank.api.APIBase.gson
import red.man10.man10bank.api.APIBase.postRequest
import java.time.LocalDateTime
import java.util.*
object APIServerLoan {
private cons... | 0 | Kotlin | 0 | 0 | bf579e3906ab9b7a3544f6d5fc67a40c9631ebdb | 2,629 | Man10Bank | Apache License 2.0 |
src/main/kotlin/tokyo/aieuo/mineflow/packet/SetDisplayObjectivePacket.kt | aieuo | 364,472,156 | false | null | package tokyo.aieuo.mineflow.packet
import cn.nukkit.network.protocol.DataPacket
class SetDisplayObjectivePacket : DataPacket() {
override fun pid(): Byte = 0x6b.toByte()
var displaySlot = ""
var objectiveName = ""
var displayName = ""
var criteriaName = ""
var sortOrder = 0
override fu... | 0 | Kotlin | 0 | 0 | 9c2ef7133d84c5d9b6f4336463d9e1d56442924a | 559 | Mineflow-Kotlin | MIT License |
moblie/app/src/main/java/com/soda/soda/fragments/UserguideFragment.kt | min429 | 717,001,374 | false | {"Kotlin": 156685} | package org.tensorflow.lite.examples.audio.fragments
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
impor... | 0 | Kotlin | 0 | 0 | 0e4f4e7ffe35709e43ba5c01e381faefa8a773d5 | 1,727 | CapstoneDesign-Soda | Apache License 2.0 |
library/src/main/java/pers/victor/sail/library/ISailCache.kt | VictorChow | 101,571,279 | false | {"Kotlin": 15649} | package pers.victor.sail.library
import android.graphics.Bitmap
/**
* Created by Victor on 2017/8/28. (ง •̀_•́)ง
*/
internal interface ISailCache {
fun putMemoryCache(url: String, bmp: Bitmap)
fun putDiskCache(url: String, bmp: Bitmap)
fun getMemoryCache(url: String): Bitmap?
fun getDiskCache(url: S... | 0 | Kotlin | 0 | 0 | 110abf6b109f60d04eb769cd9d3f52e71235c560 | 396 | Sail | MIT License |
compiler/testData/diagnostics/tests/annotations/options/retention.kt | soon | 40,041,524 | true | {"Java": 15418565, "Kotlin": 8965491, "JavaScript": 176060, "HTML": 23089, "Lex": 17327, "Protocol Buffer": 13056, "ANTLR": 9689, "CSS": 9431, "Shell": 3931, "IDL": 3257, "Groovy": 3010, "Batchfile": 2831} | annotation(AnnotationRetention.SOURCE) class sourceann
sourceann class AnnotatedAtSource
| 0 | Java | 0 | 0 | ef095dd5599a0fdd96054269a8d2bfa2b2ef28f8 | 90 | kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.