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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
plugins/stream-debugger/src/com/intellij/debugger/streams/trace/impl/handler/type/MapTypeImpl.kt | androidports | 115,100,208 | false | null | // Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.debugger.streams.trace.impl.handler.type
/**
* @author Vitaliy.Bibaev
*/
class MapTypeImpl(override val keyType: GenericType,
override va... | 6 | null | 0 | 4 | 6e4f7135c5843ed93c15a9782f29e4400df8b068 | 548 | intellij-community | Apache License 2.0 |
src/main/kotlin/ru/opencore/patcher/meta/MPageAttrDelete.kt | essence-community | 399,880,586 | false | {"Gradle": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "XML": 3, "INI": 1, "Java": 76, "Kotlin": 48} | package ru.opencore.patcher.meta
import org.jdbi.v3.core.mapper.reflect.ColumnName
import java.sql.Timestamp
var formatMPageAttrDeleteSqlPostgres = "delete from s_mt.t_page_attr " +
"where ck_page = %s;"
data class MPageAttrDelete(@ColumnName("ck_page") val ckPage: String): Meta {
override fun toPostgres(): Strin... | 0 | Java | 0 | 0 | f8956d8bd9b8ce7cb709c9f07a19a4c143fc22ad | 424 | patcher-backend | MIT License |
app/src/main/java/tcc/timezen/recyclerview/adapter/PlanRecyclerViewAdapter.kt | Adaltino | 624,040,290 | false | null | package tcc.timezen.recyclerview.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.RecyclerView
import tcc.timezen.R
import tcc.t... | 0 | Kotlin | 0 | 0 | dcfdf040f600e1eef244a0f2b75fb908122ed218 | 3,216 | timezen | MIT License |
examples/src/main/kotlin/contour/NegativeDashContourLines.kt | SciProgCentre | 186,020,000 | false | null | package contour
import space.kscience.dataforge.meta.Value
import space.kscience.dataforge.meta.invoke
import space.kscience.plotly.Plotly
import space.kscience.plotly.contour
import space.kscience.plotly.makeFile
import space.kscience.plotly.models.ContoursColoring
import space.kscience.plotly.models.Dash
import kotl... | 8 | null | 21 | 142 | a7d2611513c5f50c2f4a9c99b9ccb33cb486f07d | 2,404 | plotly.kt | Apache License 2.0 |
src/main/kotlin/com/github/bkhablenko/upday/web/model/GetAuthorsResponse.kt | bkhablenko | 628,055,896 | false | null | package com.github.bkhablenko.upday.web.model
import com.fasterxml.jackson.annotation.JsonProperty
import com.github.bkhablenko.upday.domain.model.AuthorEntity
data class GetAuthorsResponse(
@JsonProperty("authors")
val authors: List<Author>,
) {
companion object {
fun of(authorEntities: List<Au... | 0 | Kotlin | 0 | 0 | 1a1aec99022e9f1d6611280e369bb05166a5ac39 | 694 | upday-backend | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/iterative/lib/commandLib/commands/DelayCommand.kt | RechargedGreen | 148,571,714 | true | {"Gradle": 8, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 9, "HTML": 336, "CSS": 1, "JavaScript": 1, "Text": 5, "INI": 1, "Proguard": 1, "XML": 20, "Kotlin": 125, "Java": 51} | package org.firstinspires.ftc.teamcode.iterative.lib.commandLib.commands
import com.qualcomm.robotcore.util.ElapsedTime
import org.firstinspires.ftc.teamcode.iterative.lib.commandLib.Command
class DelayCommand(private val seconds: Double) : Command {
private val timer = ElapsedTime()
@Throws(InterruptedExcept... | 0 | Kotlin | 0 | 1 | 3de0094ecce15268631405ca7ae708f43a75e49b | 635 | RoverRuckusApp | MIT License |
plugins/toml/core/src/main/kotlin/org/toml/ide/colors/TomlColors.kt | ingokegel | 72,937,917 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.toml.ide.colors
import com.intellij.lang.annotation.HighlightSeverity
import com.intellij.openapi.editor.colors.TextAttributesKey
import com.intellij.openapi.options.OptionsBundle
import com.intellij... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,818 | intellij-community | Apache License 2.0 |
aws-auth-cognito/src/main/java/com/amplifyframework/auth/cognito/helpers/SessionHelper.kt | aws-amplify | 177,009,933 | false | {"Java": 5271326, "Kotlin": 3564857, "Shell": 28043, "Groovy": 11755, "Python": 3681, "Ruby": 1874} | /*
* Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 105 | Java | 115 | 245 | 14c71f38f052a964b96d7abaff6e157bd21a64d8 | 2,998 | amplify-android | Apache License 2.0 |
yabd/plugin/src/main/kotlin/dev/yabd/plugin/internal/usecase/base/UseCase.kt | andrew-malitchuk | 762,360,556 | false | {"Kotlin": 87860, "Shell": 184} | package dev.yabd.plugin.internal.usecase.base
import dev.yabd.plugin.common.model.base.NetModel
/**
* Abstract base class for defining use cases.
*/
abstract class UseCase {
/**
* Executes the use case.
* @return The result of the use case operation, typically a NetModel.
*/
abstract operator... | 0 | Kotlin | 0 | 0 | dd95fea811cf975dda7ac20144e093fb77baff1f | 347 | yet-another-build-dispatcher | The Unlicense |
junit-jupiter/src/main/kotlin/paperkuts/junit/jupiter/support/Expectation.kt | andriesfc | 410,480,609 | false | {"Kotlin": 53480} | package paperkuts.junit.jupiter.support
import java.util.Objects.hash
open class Expectation<T, R>(val description: String, val given: T, val wanted: R) {
override fun toString(): String = description
override fun hashCode(): Int = hash(description, given, wanted)
override fun equals(other: Any?): Boolean... | 0 | Kotlin | 0 | 0 | a98ef0b88f51c5013e07872c076abb70361c12ea | 591 | paperkuts | Apache License 2.0 |
app/src/main/java/com/example/tbilisi_parking_final_exm/data/model/parking/active_licenses/ActiveLicenseDto.kt | Lasha-Ilashvili | 749,926,592 | false | {"Kotlin": 373909} | package com.example.tbilisi_parking_final_exm.data.model.parking.active_licenses
import com.example.tbilisi_parking_final_exm.data.model.license_cards.all_licenses.LicenseDto
import com.squareup.moshi.Json
data class ActiveLicenseDto(
val id: Int,
@Json(name = "recDate")
val recDate: String,
@Json(nam... | 0 | Kotlin | 1 | 0 | 20653c5077a4fa61e2c9616ddd986a82faf040dd | 386 | Tbilisi_Parking_FINAL_EXM | Apache License 2.0 |
home/src/main/java/com/topview/purejoy/home/entity/Song.kt | giagor | 421,858,760 | false | {"Kotlin": 800571, "AIDL": 3111} | package com.topview.purejoy.home.entity
import com.topview.purejoy.common.music.service.entity.AR
import com.topview.purejoy.common.music.service.entity.MusicItem
/**
* id:歌曲的id
* name:歌曲的名字
* url:歌曲播放的url
* picUrl:歌曲的封面图
* artistName:歌手名字
* mvId:歌曲mv的id
* album:专辑信息
* artists:歌手列表
* */
data class Song(
... | 1 | Kotlin | 1 | 5 | f58ca9570486871066d99fc5e0827af66d6f0c3b | 1,097 | PureJoy | MIT License |
ieum/app/src/main/java/com/jeongg/ieum/di/NetworkModule.kt | ieum-2024 | 797,568,326 | false | {"Kotlin": 140534} | package com.jeongg.ieum.di
import android.content.Context
import android.util.Log
import com.jeongg.ieum.data._const.DataStoreKey
import com.jeongg.ieum.data._const.HttpRoutes
import com.jeongg.ieum.data.api.ContentApi
import com.jeongg.ieum.data.api.InterestApi
import com.jeongg.ieum.data.api.UserApi
import com.jeong... | 0 | Kotlin | 0 | 0 | 29721adc7ff5fc345cc7468fa2a24837023127b0 | 5,939 | ieum-android | MIT License |
telegram/src/main/kotlin/com/mazekine/telegram/types/Cryptocurrency.kt | xestrum | 222,923,452 | true | {"Kotlin": 268485} | package com.mazekine.telegram.types
import com.mazekine.telegram.logics.cryptocurrencies.models.CMCCoinPlatform
import java.io.Serializable
data class Cryptocurrency (
val ticker: String = "",
val name: String = "",
val platform: CMCCoinPlatform? = null
) : Serializable | 0 | Kotlin | 0 | 0 | bcd448ff688edb11ff4495f729eb09210f768203 | 284 | mazekine-telegram-bot | Apache License 2.0 |
androidApp/src/main/java/ch/wenksi/noteappkmm/android/di/AppModule.kt | wenk-silvan | 613,381,129 | false | null | package ch.wenksi.noteappkmm.android.di
import android.app.Application
import ch.wenksi.noteappkmm.data.local.DatabaseDriverFactory
import ch.wenksi.noteappkmm.data.note.SqlDelightNoteDataSource
import ch.wenksi.noteappkmm.database.NoteDatabase
import ch.wenksi.noteappkmm.domain.note.NoteDataSource
import com.squareup... | 0 | Kotlin | 0 | 0 | edd1ee806ee7688c1bbefe39ba147f061d137880 | 852 | note-app-kmm | MIT License |
src/main/kotlin/dev/syoritohatsuki/bluemapcustomskinserver/BlueMapCustomSkinServerAddon.kt | syorito-hatsuki | 517,320,124 | false | null | package dev.syoritohatsuki.bluemapcustomskinserver
import com.mojang.logging.LogUtils
import de.bluecolored.bluemap.api.BlueMapAPI
import de.bluecolored.bluemap.api.plugin.SkinProvider
import dev.syoritohatsuki.bluemapcustomskinserver.api.CustomApi
import dev.syoritohatsuki.bluemapcustomskinserver.api.MojangLikeApi
im... | 1 | null | 0 | 4 | f31b32e888145d0e6d7fced398c7a1add28c3bb3 | 1,563 | bluemap-custom-skin-server | MIT License |
app/src/main/java/com/cornellappdev/android/volume/ui/viewmodels/IndividualOrganizationViewModel.kt | cuappdev | 466,793,799 | false | {"Kotlin": 519917} | package com.cornellappdev.android.volume.ui.viewmodels
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.cornellappdev.android.volume.data.models.Flyer
import com.cornellappdev.android.volume.data.models.Organization
import com.cornellapp... | 1 | Kotlin | 1 | 2 | 237c23f1dfae7aab7fcd748a6478e15d0050247e | 3,906 | volume-compose-android | MIT License |
gd-map-compose/src/main/java/com/melody/map/gd_compose/GDMap.kt | TheMelody | 543,049,561 | false | null | // MIT License
//
// Copyright (c) 2023 被风吹过的夏天
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... | 3 | null | 5 | 60 | 8a867728136bdb97f156ce57381437864c196382 | 8,547 | OmniMap-Compose | MIT License |
src/main/kotlin/org/springframework/samples/petclinic/vet/Vet.kt | spring-petclinic | 102,134,539 | false | null | /*
* Copyright 2002-2017 the original author or authors.
*
* 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 ap... | 1 | null | 163 | 359 | 34fe88d3cf2321eff92aef581cce62019ac57a1e | 1,538 | spring-petclinic-kotlin | Apache License 2.0 |
src/main/kotlin/com/ort/howlingwolf/api/view/village/VillagePasswordView.kt | h-orito | 176,481,255 | false | {"Gradle Kotlin DSL": 2, "Shell": 23, "Ignore List": 1, "Batchfile": 28, "Git Attributes": 1, "Markdown": 1, "INI": 6, "Kotlin": 266, "Java Properties": 5, "YAML": 3, "Java": 426, "Roff": 1, "XML": 8, "Text": 22, "Perl": 3, "Python": 1, "XSLT": 14, "HTML": 4, "SQL": 4, "Gradle": 6} | package com.ort.howlingwolf.api.view.village
import com.ort.howlingwolf.domain.model.village.setting.VillagePassword
data class VillagePasswordView(
val joinPasswordRequired: Boolean
) {
constructor(
villagePassword: VillagePassword
) : this(
joinPasswordRequired = villagePassword.joinPass... | 0 | Kotlin | 1 | 3 | d87c28e952287ccbc1634c1eee093a5f9f15e472 | 340 | wolf4busy-api | MIT License |
impl/mastodon/src/main/kotlin/dev/usbharu/multim/mastodon/model/components/FilterKeyword.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.mastodon.model.components
import kotlinx.serialization.Serializable
@Serializable
data class FilterKeyword(
val id: String,
val keyword: String,
val wholeWord: Boolean
)
| 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 211 | multim | Apache License 2.0 |
definitions/src/commonMain/kotlin/com/divpundir/mavlink/definitions/common/MavFtpOpcode.kt | divyanshupundir | 484,943,163 | false | null | package com.divpundir.mavlink.definitions.common
import com.divpundir.mavlink.api.GeneratedMavEnum
import com.divpundir.mavlink.api.GeneratedMavEnumEntry
import com.divpundir.mavlink.api.MavEnum
import kotlin.UInt
/**
* MAV FTP opcodes: https://mavlink.io/en/services/ftp.html
*/
@GeneratedMavEnum
public enum class ... | 5 | null | 7 | 48 | 647efb2f1a1d00ae410a0a5ad08e2111fe17214e | 2,897 | mavlink-kotlin | Apache License 2.0 |
src/leetcode/julyChallenge2020/weekone/PrisonCellsAfterNDays.kt | adnaan1703 | 268,060,522 | false | null | package leetcode.julyChallenge2020.weekone
import utils.printWithSpace
fun main() {
prisonAfterNDays(intArrayOf(0, 1, 0, 1, 1, 0, 0, 1), 7).printWithSpace()
prisonAfterNDays(intArrayOf(1, 0, 0, 1, 0, 0, 1, 0), 1000000000).printWithSpace()
}
/*
* For some reason across many of my test cases pivot is always c... | 0 | Kotlin | 0 | 0 | e81915db469551342e78e4b3f431859157471229 | 1,464 | KotlinCodes | The Unlicense |
app/shared/src/commonMain/kotlin/io/github/tscholze/cmpsample/model/InsightsMapper.kt | Gauravprakash | 668,161,668 | false | null |
data class InsightsMapper(val id: String, val name: String, val entityType:String, val imageUrl:String, val heading:String, val subHeading:String, val url:String, val urlLabel:String) {
}
interface ButtonClickCallback {
fun onButtonClick()
} | 0 | Kotlin | 0 | 0 | 12def96a895e0d178358110636ea5c241ee18c33 | 247 | KotlinJetComposableUI | MIT License |
buildSrc/src/main/java/AppDependencies.kt | kamrul3288 | 570,271,767 | false | {"Kotlin": 37952} | object AppDependencies {
const val appcompat = "androidx.appcompat:appcompat:${DependenciesVersion.appcompat_version}"
const val core_ktx = "androidx.core:core-ktx:${DependenciesVersion.core_ktx_version}"
const val constraint_layout = "androidx.constraintlayout:constraintlayout:${DependenciesVersion.constra... | 0 | Kotlin | 1 | 7 | ff46dd56354115b4f2ef893f1da20feaa855d332 | 1,026 | dateced | MIT License |
lavaplayer/src/main/java/com/sedmelluq/discord/lavaplayer/container/playlists/HlsStreamTrack.kt | mixtape-bot | 397,835,411 | true | {"Kotlin": 781109, "Java": 315803} | package com.sedmelluq.discord.lavaplayer.container.playlists
import com.sedmelluq.discord.lavaplayer.source.stream.MpegTsM3uStreamAudioTrack
import com.sedmelluq.discord.lavaplayer.tools.io.HttpInterface
import com.sedmelluq.discord.lavaplayer.tools.io.HttpInterfaceManager
import com.sedmelluq.lava.track.info.AudioTra... | 0 | Kotlin | 0 | 6 | 06b02d8e711930c52d8ca67ad6347a17ca352ba2 | 933 | lavaplayer | Apache License 2.0 |
samples/src/main/java/com/github/wangyiqian/stockchart/sample/sample3/data/ActiveResponse.kt | wangyiqian | 355,055,057 | false | null | /*
* Copyright 2021 WangYiqian
*
* 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 i... | 0 | Kotlin | 17 | 96 | 4997572fd8067838ce85850984c8738bec9b0109 | 900 | StockChart | Apache License 2.0 |
plugin/src/main/java/com/instana/android/plugin/transform/TransformImpl.kt | instana | 81,942,955 | false | null | /*
* (c) Copyright IBM Corp. 2021
* (c) Copyright Instana Inc. and contributors 2021
*/
package com.instana.android.plugin.transform
import com.android.build.api.transform.*
import com.instana.android.plugin.transform.asm.ClassInstrumenter
import org.apache.commons.io.FileUtils
import org.gradle.api.logging.Loggin... | 1 | null | 4 | 19 | ec1133cc48c8da4b43658be2be7a31610c05308f | 9,632 | android-agent | MIT License |
app/src/main/java/com/sscl/blelibraryforkotlin/ui/activities/guide/SplashActivity.kt | JackiePenghe | 576,202,844 | false | {"Kotlin": 429676, "Java": 4589} | package com.sscl.blelibraryforkotlin.ui.activities.guide
import android.Manifest
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Build
import androidx.appcompat.app.AlertDialog
import com.sscl.baselibrary.activity.BaseSplashActivity
import com.sscl.baselibrary.utils.BaseManager
i... | 0 | Kotlin | 0 | 0 | df16daab5f500badbcceb55ff2f7012a108edf23 | 5,885 | ble-library-for-kotlin | Apache License 2.0 |
app/src/main/java/seng440/vaccinepassport/ui/main/MainFragment.kt | This-Is-Alex | 363,792,496 | false | null | package seng440.vaccinepassport.ui.main
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.FragmentTransaction
import androidx.fragment.... | 0 | Kotlin | 0 | 1 | d6d46a80951f922c8f48be9bac26c0165d5cfa6c | 3,927 | android-vaccine-passport | MIT License |
recommendation-service/src/main/kotlin/com/mazeltov/recommendationservice/controllers/RecommendationController.kt | Mazel-Tovr | 309,757,645 | false | null | package com.mazeltov.recommendationservice.controllers
import com.mazeltov.common.dto.*
import com.mazeltov.recommendationservice.dao.product.model.*
import com.mazeltov.recommendationservice.service.*
import org.springframework.beans.factory.annotation.*
import org.springframework.http.*
import org.springframework.we... | 0 | Kotlin | 0 | 0 | 7b435bf47633ce59a2871e8432fde6c1c43b2a7a | 1,382 | graduate-project | Apache License 2.0 |
src/test/kotlin/test/melcloud2mqtt/service/StorageServiceTest.kt | trx-base | 621,752,302 | false | null | package test.melcloud2mqtt.service
import assertk.assertThat
import assertk.assertions.isEqualTo
import assertk.assertions.isNotNull
import assertk.assertions.isNull
import io.mockk.impl.annotations.InjectMockKs
import io.mockk.junit5.MockKExtension
import melcloud2mqtt.service.StorageService
import org.junit.jupiter.... | 0 | Kotlin | 0 | 0 | 74363b539808a49a89b56718320fd2910bd4f944 | 1,394 | mqtt-delay | MIT License |
hangman-service/src/test/kotlin/dulcinea/hangman/HangmanApplicationTests.kt | wpitt3 | 167,178,716 | false | null | package dulcinea.hangman
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
@SpringBootTest
class HangmanApplicationTests {
@Test
fun contextLoads() {
}
}
| 10 | Kotlin | 0 | 0 | 34332d06830b4ff6ca2ad200e2785650a32d3f78 | 205 | hangman | Apache License 2.0 |
evervault-common/src/main/java/com/evervault/sdk/common/exceptions/Asn1EncodingException.kt | evervault | 650,073,299 | false | {"Kotlin": 284672, "Java": 620, "Shell": 273} | package com.evervault.sdk.common.exceptions
object Asn1EncodingException : Exception("ASN1 encoding error") | 0 | Kotlin | 1 | 4 | eaab90582ac85c71ffa39fbdd1a4c80098624bee | 108 | evervault-android | MIT License |
library/src/main/java/tmg/utilities/extensions/BottomSheetBehaviorExtensions.kt | thementalgoose | 164,951,044 | false | null | package tmg.utilities.extensions
import android.view.View
import com.google.android.material.bottomsheet.BottomSheetBehavior
import tmg.utilities.bottomsheet.BottomSheetFader
//region State modifications
fun <T: View> BottomSheetBehavior<T>.collapse() {
this.state = BottomSheetBehavior.STATE_COLLAPSED
}
fun <T:... | 0 | Kotlin | 0 | 1 | be5964b88f932b6b3b54e1a51c8608299d25d909 | 788 | android-utilities | Apache License 2.0 |
app/src/main/java/fragments/FragmentOne.kt | KalidasVijaybhak | 376,252,184 | false | null | package fragments
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import com.example.completeadapterview.FragmentStudyMain
i... | 0 | Kotlin | 0 | 2 | 8e42b9b21bbf9a0523669d04672c4c8468fc26fa | 1,103 | android_adapter-views-_1 | MIT License |
bazelrunner/src/main/kotlin/org/jetbrains/bsp/bazel/bazelrunner/outputs/OutputProcessor.kt | JetBrains | 288,953,714 | false | null | package org.jetbrains.bsp.bazel.bazelrunner.outputs
import com.google.common.base.Charsets
import org.eclipse.lsp4j.jsonrpc.CancelChecker
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStream
import java.io.InputStreamReader
import java.util.concurrent.Executors
import java.util.concurren... | 7 | null | 47 | 165 | d9dea644cc651eddcbe33761ca0899d463f38f53 | 2,217 | bazel-bsp | Apache License 2.0 |
solar/src/main/java/com/chiksmedina/solar/outline/electronicdevices/Radio.kt | CMFerrer | 689,442,321 | false | {"Kotlin": 36591890} | package com.chiksmedina.solar.outline.electronicdevices
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin... | 0 | Kotlin | 0 | 0 | 3414a20650d644afac2581ad87a8525971222678 | 6,971 | SolarIconSetAndroid | MIT License |
api/src/main/kotlin/net/devslash/err/RetryOnTransitiveError.kt | andysprout | 199,951,513 | true | {"Kotlin": 67999} | package net.devslash.err
import kotlinx.coroutines.channels.Channel
import net.devslash.ChannelReceiving
import net.devslash.Envelope
import net.devslash.HttpRequest
import net.devslash.RequestData
import java.net.SocketTimeoutException
class RetryOnTransitiveError : ChannelReceiving<Pair<HttpRequest, RequestData>> {... | 0 | Kotlin | 0 | 0 | 140614183527396939a303b4cd39bb41d5800923 | 801 | fetchDSL | MIT License |
core/src/main/java/com/atech/core/room/BitDatabase.kt | aiyu-ayaan | 489,575,997 | false | {"Kotlin": 581061} | /*
* BIT Lalpur App
*
* Created by Ayaan on 4/16/22, 12:09 PM
* Copyright (c) 2022 . All rights reserved.
* Last modified 4/15/22, 9:10 PM
*/
package com.atech.core.data.room
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import androidx.room.migration.Migr... | 7 | Kotlin | 5 | 13 | ab75e48dfbadd7e1eddca82cd489aa115272f473 | 8,947 | BIT-App | MIT License |
backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/database/repositories/JpaControlPlanTagRepository.kt | MTES-MCT | 462,794,012 | false | {"TypeScript": 1358478, "Kotlin": 815514, "Python": 209694, "Shell": 21375, "CSS": 19997, "JavaScript": 8409, "Makefile": 8169, "Dockerfile": 6554, "PLpgSQL": 4966, "HTML": 864} | package fr.gouv.cacem.monitorenv.infrastructure.database.repositories
import fr.gouv.cacem.monitorenv.domain.entities.controlPlan.ControlPlanTagEntity
import fr.gouv.cacem.monitorenv.domain.repositories.IControlPlanTagRepository
import fr.gouv.cacem.monitorenv.infrastructure.database.repositories.interfaces.IDBControl... | 190 | TypeScript | 1 | 3 | f755ce65909e473e564ff5e273b9b4930e82ad4d | 892 | monitorenv | MIT License |
app/src/main/java/pers/nmcma/fr/ui/classes/DataItem.kt | Nmcma | 734,547,454 | false | {"Kotlin": 82066} | package pers.nmcma.fr.ui.classes
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
class DataItem(initName:String,initDescription:String,initKeywords:List<String>) {
var name by mutabl... | 0 | Kotlin | 0 | 0 | e98c32d57102e8e2018fa53ead9122a50297d95a | 537 | TooManyKnowledge | MIT License |
libs/hackernews/src/iosArm64Main/kotlin/com/github/kittinunf/hackernews/network/HttpClient.kt | kittinunf | 357,418,570 | false | {"Kotlin": 113258, "Swift": 13053, "Makefile": 895} | package com.github.kittinunf.hackernews.network
import io.ktor.client.HttpClient
import io.ktor.client.HttpClientConfig
import io.ktor.client.engine.darwin.Darwin
import kotlinx.cinterop.ExperimentalForeignApi
import platform.Foundation.NSURLCredential
import platform.Foundation.NSURLSessionAuthChallengeCancelAuthenti... | 0 | Kotlin | 1 | 46 | cad4d5f9a7193e5810cb227844f3e78e85844d02 | 1,138 | KNews | MIT License |
app/src/main/java/com/compose/hotstarclone/HotstarCloneApplication.kt | hiteshchopra11 | 371,060,972 | false | null | package com.compose.hotstarclone
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class HotstarCloneApplication : Application() | 0 | Kotlin | 0 | 1 | e5525aad5acbd8c814dd2aebd056e4119665f639 | 169 | jetpack-compose-hotstar-clone | Apache License 2.0 |
shared/src/commonMain/kotlin/com/pixelcarrot/weatherforecast/service/weather/WeatherServiceImpl.kt | pixelcarrot | 398,332,011 | false | null | package com.pixelcarrot.weatherforecast.service.weather
import com.pixelcarrot.weatherforecast.Constant
import com.pixelcarrot.weatherforecast.service.weather.response.OpenWeatherResponse
import io.ktor.client.*
import io.ktor.client.request.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext... | 0 | Kotlin | 0 | 1 | 7ac47587fca64a88f2ae4ee9fac4af28f8e6c704 | 1,073 | weather-forecast | MIT License |
muslim-data/src/main/java/dev/kosrat/muslimdata/models/AzkarItem.kt | kosratdev | 274,667,170 | false | null | package dev.kosrat.muslimdata.models
/**
* Azkar Item class that holds azkar item information such as (item, translation, and reference).
*/
data class AzkarItem internal constructor(
val itemId: Int,
val chapterId: Int,
val item: String,
val translation: String,
val reference: String
)
| 2 | Kotlin | 2 | 6 | a7bac3e2b9b8a55b37d706111ae1365c8d8debad | 311 | muslim-data-android | Apache License 2.0 |
app/src/main/java/com/example/meeera/browserapp/Service/NewService.kt | amitiwary999 | 103,973,385 | false | null | package com.example.meeera.browserapp.Service
import com.example.meeera.browserapp.Model.Articles
import io.reactivex.Observable
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
/**
* Created by meeera on 13/10/17.
*/
interface NewService {
@GET("v1/articles?")
fun getNews(@Q... | 1 | Kotlin | 1 | 1 | 9d24dfc70fb2b040cc90ba9a2a6d830ffc6e5e44 | 411 | Simple_Android_Browser | Apache License 2.0 |
labnavigation/src/main/java/com/example/labnavigation/MainActivity.kt | gnoejh | 738,881,237 | false | {"Kotlin": 788673, "HTML": 47717, "JavaScript": 18873, "CSS": 18737, "Java": 268} | package com.example.labnavigation
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.la... | 0 | Kotlin | 0 | 0 | d4480222d703106f53832f5a71f090aad3c24471 | 9,212 | AndroidComposeMaster | MIT License |
android/AgilityFitTodayApp/app/src/main/java/com/laurenyew/agilityfittodayapp/di/RepositoryModule.kt | laurenyew | 442,915,907 | false | {"Kotlin": 133691, "Swift": 39914, "Shell": 1143} | package com.laurenyew.agilityfittodayapp.di
import android.app.Application
import androidx.room.Room
import com.laurenyew.agilityfittodayapp.data.db.AgilityFitTodayDatabase
import com.laurenyew.agilityfittodayapp.data.db.DatabaseManager
import com.laurenyew.agilityfittodayapp.data.db.FavoriteDatabaseProvider
import co... | 0 | Kotlin | 0 | 1 | e0f836c6414b9dfd3f599a2a3ba448bc3941266e | 1,636 | AgilityFitTodayApp | MIT License |
app/src/main/java/com/phan/instagram/common/firebase/FirebaseAuthManager.kt | phannin91 | 492,922,886 | false | {"Kotlin": 105805} | package com.phan.instagram.common.firebase
import com.phan.instagram.common.AuthManager
import com.phan.instagram.common.toUnit
import com.phan.instagram.data.firebase.common.auth
import com.google.android.gms.tasks.Task
class FirebaseAuthManager : AuthManager {
override fun signOut() {
auth.signOut()
... | 0 | Kotlin | 0 | 0 | 61dc403d6a5156e365e06587760bdf8a4d6e6a44 | 462 | androidck | MIT License |
app/src/main/java/com/example/composeshimmer/MainActivity.kt | tusharhow | 766,189,209 | false | {"Kotlin": 9925, "Prolog": 2625} | package com.example.composeshimmer
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose... | 0 | Kotlin | 0 | 1 | 3690d5c68881dc77ab248bc9cbf7d943dc755dca | 2,234 | Shimmerfy | The Unlicense |
examples/app/src/main/kotlin/io/github/bluegroundltd/app/booking/BookingController.kt | bluegroundltd | 417,546,330 | false | {"Kotlin": 6409} | package io.github.bluegroundltd.app.booking
import io.github.bluegroundltd.app.booking.dto.CreateBookingDTO
import io.micronaut.http.HttpResponse
import io.micronaut.http.HttpStatus
import io.micronaut.http.annotation.*
import io.micronaut.scheduling.TaskExecutors
import io.micronaut.scheduling.annotation.ExecuteOn
@... | 0 | Kotlin | 0 | 55 | d4c8870936c17f44788452a30c8b783a770d1532 | 1,139 | kfactory | MIT License |
feature/editor/src/main/kotlin/app/logdate/feature/editor/ui/NewEntryContent.kt | WillieCubed | 187,304,507 | false | {"Kotlin": 458147, "Java": 1084} | package app.logdate.feature.editor.ui
import android.location.Location
import android.net.Uri
import app.logdate.core.data.notes.JournalNote
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
data class NewEntryContent(
var textContent: String = "",
var mediaAttachments: List<Uri> = listOf(),
v... | 0 | Kotlin | 0 | 0 | 51a51bd8c264aecc9190f67ec1fbb56e37b7e9fc | 649 | logdate-mobile | MIT License |
src/main/kotlin/org/elm/workspace/ui/ElmWorkspaceConfigurable.kt | intellij-elm | 104,530,474 | false | null | package org.elm.workspace.ui
import com.intellij.ide.DataManager
import com.intellij.openapi.Disposable
import com.intellij.openapi.fileChooser.FileChooserDescriptorFactory
import com.intellij.openapi.keymap.KeymapUtil
import com.intellij.openapi.keymap.impl.ui.KeymapPanel
import com.intellij.openapi.options.Configura... | 3 | null | 70 | 390 | c6b56241eb293e0ba327a91059c57286bae9bf7e | 11,172 | intellij-elm | MIT License |
Compose-Flight-Search-App/core/testing/src/main/kotlin/com/example/flightsearchapp/core/testing/fake/repository/AirportsFtsFakeRepository.kt | Jaehwa-Noh | 754,078,368 | false | {"Kotlin": 126489} | package com.example.flightsearchapp.core.testing.fake.repository
import com.example.flightsearchapp.core.data.di.DispatcherIO
import com.example.flightsearchapp.core.data.repository.AirportsFtsRepository
import com.example.flightsearchapp.core.database.model.AirportFtsEntity
import com.example.flightsearchapp.core.tes... | 2 | Kotlin | 0 | 0 | 5b965f34e16b7e7b20583895b36d5a96e6decd6a | 1,324 | Project-Flight-Search-App | Apache License 2.0 |
native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/extensions/FreMarkerOptions.kt | W3SS | 144,960,075 | true | {"Swift": 167253, "ActionScript": 105143, "Kotlin": 94011, "Objective-C": 17314, "Shell": 15561, "Java": 5090, "Batchfile": 3032, "PowerShell": 1910} | /*
* Copyright 2017 Tua Rua Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 0 | Swift | 0 | 0 | e40c2535feca1f55268653da44f24ceaacbdcd07 | 3,905 | Google-Maps-ANE | Apache License 2.0 |
core-ui/src/main/java/com/nowiwr01p/core_ui/ui/bottom_sheet/BottomSheet.kt | nowiwr01w | 584,138,480 | false | null | package com.nowiwr01p.core_ui.ui.bottom_sheet
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignm... | 0 | Kotlin | 1 | 3 | 0ebdf8f0cc072cf1f07810a6c36e710f373bfc7f | 1,326 | Protest | MIT License |
module_book/src/main/kotlin/com/crow/module_book/ui/fragment/comic/reader/ComicPageVerticalFragment.kt | crowforkotlin | 610,636,509 | false | {"Kotlin": 1225238, "C++": 3504, "CMake": 2776, "Makefile": 1968} | @file:Suppress("UNUSED_ANONYMOUS_PARAMETER")
package com.crow.module_book.ui.fragment.comic.reader
import android.annotation.SuppressLint
import android.content.pm.ActivityInfo
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import androidx.core.view.WindowInsetsControllerCompat
i... | 17 | Kotlin | 30 | 467 | 14745e7c9125ddbac00b20365dba22b9231d51e1 | 13,866 | CopyMangaX | Apache License 2.0 |
ast/src/main/kotlin/com/graphicsfuzz/common/ast/expr/ArrayConstructorExpr.kt | afd | 697,758,058 | false | {"Java": 2808141, "Python": 701486, "GLSL": 543610, "Kotlin": 82855, "Shell": 59075, "JavaScript": 46735, "ANTLR": 21057, "Batchfile": 18712, "C++": 8542, "Dockerfile": 4035, "HTML": 2779} | /*
* Copyright 2018 The GraphicsFuzz Project Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 1 | null | 1 | 1 | 409982a3b921b473d73e6dd64223573ac580ce13 | 1,859 | graphicsfuzz | Apache License 2.0 |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/dccreissuance/ui/consent/acccerts/DccReissuanceAccCertsFragmentModule.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.dccreissuance.ui.consent.acccerts
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import de.rki.coronawarnapp.util.viewmodel.CWAViewModel
import de.rki.coronawarnapp.util.viewmodel.CWAViewModelFactory
import de.rki.coronawarnapp.util.viewmodel.CWAViewModelKey
... | 6 | Kotlin | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 616 | cwa-app-android | Apache License 2.0 |
domain/src/main/kotlin/com/andres/nyuzuk/domain/entity/Article.kt | andreshj87 | 197,643,093 | false | null | package com.andres.nyuzuk.domain.entity
import java.util.Date
data class Article(
val title: String,
val description: String?,
val content: String?,
val author: String?,
val publisher: Publisher?,
val imageUrl: String?,
val url: String,
val publishedAt: Date?
) | 0 | Kotlin | 0 | 10 | 79654d521d344b0711607b35572e5864c19b414f | 295 | Nyuzuk | Apache License 2.0 |
EnabledAt/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.*
import javax.swing.*
fun makeUI(): Component {
val tgtIndex = 1
val tabs = JTabbedPane()
val check = JCheckBox("Enable Advanced")
check.addActionListener { e ->
tabs.setEnabledAt(tgtIndex, (e.source as? JCheckBox)?.isSelected == true)
}
tabs.addTab("Preferences", ch... | 0 | Kotlin | 5 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 936 | kotlin-swing-tips | MIT License |
app/src/main/java/com/joytan/rec/data/StaticQueue.kt | kokimame | 202,657,610 | false | null | package com.joytan.rec.data
/**
* 一定サイズを超えないキュー。
* @param capacity キャパシティ
* @param defVal デフォルト値
*/
class StaticQueue<T>(
val capacity: Int, val defVal: T) {
private var offset: Int = 0
private var array = mutableListOf<T>()
/**
* サイズ
*/
var size: Int = 0
private set
... | 0 | null | 1 | 1 | cda33e2bbde4eca9700dbad29e33e52e4a86346a | 1,049 | joytan-rec | Apache License 2.0 |
samples/client/petstore/kotlin-allOff-discriminator/src/main/kotlin/org/openapitools/client/models/Bird.kt | OpenAPITools | 133,134,007 | false | null | /**
*
* Please note:
* This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit this file manually.
*
*/
@file:Suppress(
"ArrayInDataClass",
"EnumEntryName",
"RemoveRedundantQualifierName",
"UnusedImport"
)
package org.openapitools.client.models
import o... | 4,939 | null | 6547 | 21,692 | 30ff0d7ca9c01cc6bea7e9b0914493223645956f | 640 | openapi-generator | Apache License 2.0 |
app/src/main/java/com/itachi1706/cheesecakeutilities/modules/barcodetools/fragments/BarcodeHistoryFragment.kt | itachi1706 | 52,146,927 | false | {"Gradle": 3, "TOML": 1, "Java Properties": 1, "Shell": 1, "Text": 3, "Ignore List": 4, "Batchfile": 1, "YAML": 5, "Markdown": 2, "JSON": 6, "HTML": 6, "JavaScript": 5, "CSS": 2, "INI": 1, "Proguard": 2, "Java": 103, "XML": 161, "Kotlin": 104, "JSON with Comments": 1} | package com.itachi1706.cheesecakeutilities.modules.barcodetools.fragments
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widge... | 64 | Java | 1 | 2 | a32d0557effcdee1704463d812d82e068975b13a | 5,023 | CheesecakeUtilities | MIT License |
plugins/kotlin/jvm/src/org/jetbrains/kotlin/idea/scratch/ScratchFile.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.scratch
import com.intellij.openapi.application.runReadAction
import com.intellij.openapi.module.Module
import com.intellij.o... | 186 | null | 4323 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 3,076 | intellij-community | Apache License 2.0 |
plugins/base/base-test-utils/src/main/kotlin/renderers/JsoupUtils.kt | kamilok1965 | 351,889,705 | false | {"Gradle Kotlin DSL": 49, "Java Properties": 1, "Markdown": 144, "Shell": 8, "Text": 2, "Ignore List": 5, "Batchfile": 8, "Git Attributes": 1, "XML": 11, "Kotlin": 671, "JAR Manifest": 1, "INI": 27, "Java": 34, "HTML": 43, "JSON with Comments": 1, "JSON": 2, "JavaScript": 13, "TSX": 8, "SCSS": 5, "SVG": 9, "CSS": 14, "... | package utils
import org.jsoup.nodes.Element
import org.jsoup.nodes.Node
import org.jsoup.nodes.TextNode
fun Element.match(vararg matchers: Any): Unit =
childNodes()
.filter { it !is TextNode || it.text().isNotBlank() }
.let { it.drop(it.size - matchers.size) }
.zip(matchers)
.forE... | 1 | null | 1 | 1 | 7c036dff0d40b1ea8bca8ee5aea5a211d4f090af | 1,272 | dokka | Apache License 2.0 |
app/src/main/java/com/digitaldream/toyibatskool/fragments/AdminELearningQuizFragment.kt | Toochidennis | 706,639,845 | false | {"Gradle": 3, "Java Properties": 5, "Shell": 1, "Text": 2, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "JSON": 1, "Java": 225, "XML": 1015, "Kotlin": 246, "JavaScript": 1, "HTML": 2, "INI": 2} | package com.digitaldream.toyibatskool.fragments
import android.graphics.Color
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.ImageButton
import android.widget.TextView
import androidx.activity.OnBackPressedCallback
import androidx.fragment.app.Fragment
import andro... | 1 | Java | 1 | 1 | c193cd69a9fa95d0f54a3834eeede67f2ccbe242 | 20,525 | toyibat | MIT License |
app/src/main/java/com/chmichat/chat/Constants.kt | kai0726shanxi | 202,696,066 | false | null | package com.chmichat.chat
// ┏┓ ┏┓
//┏┛┻━━━┛┻┓
//┃ ┃
//┃ ━ ┃
//┃ ┳┛ ┗┳ ┃
//┃ ┃
//┃ ┻ ┃
//┃ ┃
//┗━┓ ┏━┛
// ┃ ┃ 神兽保佑
// ┃ ┃ 代码无BUG!
// ┃ ┗━━━┓
// ┃ ┣┓
// ┃ ┏┛
// ┗┓┓┏━┳┓┏┛
// ┃┫┫ ┃┫┫
// ┗┻┛ ┗┻┛
/**
* Created by xuhao on 2017/11/27.
* desc... | 0 | Kotlin | 0 | 0 | 1ee3f69f882673ca141dbcfb51052bc13b75d49c | 1,478 | KotlinBuyCheMi | Apache License 2.0 |
idea/testData/intentions/convertPropertyInitializerToGetter/semicolon.kt | JakeWharton | 99,388,807 | true | null | class A {
val a: Int = 1<caret>;
} | 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 38 | kotlin | Apache License 2.0 |
androidApp/src/main/java/dk/youtec/drchannels/ui/ProgramsActivity.kt | bobend | 273,449,989 | false | {"Batchfile": 1, "Shell": 1, "Gradle Kotlin DSL": 7, "Markdown": 1, "Java Properties": 1, "Kotlin": 63, "Swift": 4, "Proguard": 1, "Java": 14, "INI": 1} | package dk.youtec.drchannels.ui
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerv... | 1 | null | 1 | 1 | 0b6fa99deab3c6925fb5042a545ea85096462521 | 7,188 | drchannels | MIT License |
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/impl/FirClassDeclaredMemberScope.kt | cr8tpro | 189,964,139 | true | {"Kotlin": 37481242, "Java": 7489008, "JavaScript": 157778, "HTML": 74773, "Lex": 23159, "TypeScript": 21255, "IDL": 10895, "ANTLR": 9803, "CSS": 8084, "Shell": 7727, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | /*
* Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.scopes.impl
import org.jetbrains.kotlin.fir.declarations.FirCallableDeclarat... | 0 | Kotlin | 1 | 2 | dca23f871cc22acee9258c3d58b40d71e3693858 | 2,804 | kotlin | Apache License 2.0 |
app/src/main/java/com/kyberswap/android/domain/usecase/swap/GetPlatformFeeUseCase.kt | KYRDTeam | 181,612,742 | false | null | package com.kyberswap.android.domain.usecase.swap
import androidx.annotation.VisibleForTesting
import com.kyberswap.android.domain.SchedulerProvider
import com.kyberswap.android.domain.model.PlatformFee
import com.kyberswap.android.domain.repository.SwapRepository
import com.kyberswap.android.domain.usecase.Sequential... | 1 | Kotlin | 10 | 26 | abd4ab033d188918849e5224cc8204409776391b | 880 | android-app | MIT License |
libraries/apollo-http-cache/src/main/kotlin/com/apollographql/apollo3/cache/http/internal/CacheHeadersHttpInterceptor.kt | apollographql | 69,469,299 | false | {"Kotlin": 3678955, "Java": 246120, "CSS": 34435, "HTML": 5365, "JavaScript": 1191} | package com.apollographql.apollo3.cache.http.internal
import com.apollographql.apollo3.api.http.HttpRequest
import com.apollographql.apollo3.api.http.HttpResponse
import com.apollographql.apollo3.api.http.valueOf
import com.apollographql.apollo3.cache.http.CachingHttpInterceptor
import com.apollographql.apollo3.networ... | 164 | Kotlin | 646 | 3,684 | 720d01d5cb61a178309f4edc37ae92c2a7d57c77 | 1,163 | apollo-kotlin | MIT License |
client/src/main/java/com/google/devtools/moe/client/config/EditorConfig.kt | cgruber | 35,457,241 | false | {"Starlark": 31, "Markdown": 3, "Text": 1, "Ignore List": 1, "XML": 1, "Shell": 3, "YAML": 1, "Java": 188, "Kotlin": 42, "JSON": 1} | /*
* Copyright (c) 2011 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 1 | null | 1 | 1 | 56f4cb8b1c673123757343d754931d2ed4b6ea26 | 1,990 | MOE | Apache License 2.0 |
src/main/kotlin/glm_/vec4/operators/vec4_operators.kt | kotlin-graphics | 71,653,021 | false | null | package glm_.vec4.operators
import glm_.f
import glm_.vec4.Vec4
import glm_.vec4.Vec4.Companion.div
import glm_.vec4.Vec4.Companion.minus
import glm_.vec4.Vec4.Companion.plus
import glm_.vec4.Vec4.Companion.rem
import glm_.vec4.Vec4.Companion.times
/**
* Created by elect on 05/11/16.
*/
interface vec4_operators {
... | 5 | Kotlin | 19 | 99 | dcbdd6237fbc5af02722b8ea1b404a93ce38a043 | 4,528 | glm | MIT License |
resource-mobile/src/main/java/ru/pocketbyte/locolaser/mobile/IosClassResourcesConfigBuilder.kt | PocketByte | 79,646,282 | false | {"Gradle": 2, "Markdown": 13, "Gradle Kotlin DSL": 16, "Java Properties": 2, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "Kotlin": 249, "Java": 3, "XML": 2, "YAML": 1, "INI": 1, "JSON": 5} | package ru.pocketbyte.locolaser.mobile
import ru.pocketbyte.locolaser.config.resources.BaseResourcesConfigBuilder
abstract class IosClassResourcesConfigBuilder<T : IosBaseClassResourcesConfig>
: BaseResourcesConfigBuilder<T>() {
/**
* Name of the table in iOS bundle. Default value is "Localizable".
... | 6 | Kotlin | 1 | 31 | 202768509cc6af0e926f1992a39f7dcfcba58135 | 586 | LocoLaser | Apache License 2.0 |
src/main/kotlin/jason/chen/mini_springboot/restful/langbasic/delegation/MapProperties.kt | EasyKotlin | 92,763,000 | true | {"Kotlin": 82587, "Java": 4346, "Shell": 4234, "HTML": 4029, "Batchfile": 3742, "JavaScript": 1347, "CSS": 146} | package jason.chen.mini_springboot.restful.langbasic.delegation
/**
* Created by mvasic on 7/19/16.
*/
class Employee(val map: Map<String, Any?>) {
val firstName: String by map
val lastName: String by map
val yearOfBirth: Int by map
}
fun tryMapProperties() {
val e = Employee(
mapOf(
... | 0 | Kotlin | 0 | 1 | 1235c07bf32e1c026982755c53121eac480cf091 | 545 | mini_springboot | Apache License 2.0 |
securo-core/src/main/kotlin/dev/vozniack/securo/core/domain/repository/specification/Specificable.kt | vozniack | 852,887,018 | false | {"Kotlin": 152751, "TypeScript": 9633, "SCSS": 4188, "HTML": 1851} | package dev.vozniack.securo.core.domain.repository.specification
import org.springframework.data.jpa.domain.Specification
// #todo improve specifications
interface Specificable<T> {
fun toSpecification(): Specification<T>
}
| 0 | Kotlin | 0 | 0 | f5bd5644c2e60a5db3b3eedac0f2191a49526a78 | 232 | securo | MIT License |
libs/main/polynomial/src/commonTest/kotlin/dev/lounres/kone/polynomial/LabeledConstructorsTest.kt | lounres | 516,842,873 | false | {"Kotlin": 1750490, "MDX": 22785, "TypeScript": 14785, "CSS": 6651, "JavaScript": 6563} | ///*
// * Copyright © 2023 <NAME>
// * All rights reserved. Licensed under the Apache License, Version 2.0. See the license in file LICENSE
// */
//
//package dev.lounres.kone.polynomial
//
//import dev.lounres.kone.algebraic.ring
//import dev.lounres.kone.annotations.ExperimentalKoneAPI
//import dev.lounres.kone.conte... | 23 | Kotlin | 0 | 5 | fe10f65801f4e9a9fcd8aebb10db2b4d623a6fa4 | 4,115 | Kone | Apache License 2.0 |
src/client/kotlin/dev/hybridlabs/aquatic/client/model/entity/shark/TigerSharkEntityModel.kt | hybridlabs | 661,391,321 | false | {"Kotlin": 892890, "Java": 69899} | package dev.hybridlabs.aquatic.client.model.entity.shark
import dev.hybridlabs.aquatic.entity.shark.HybridAquaticSharkEntity
class TigerSharkEntityModel : HybridAquaticSharkEntityModel<HybridAquaticSharkEntity>("tiger_shark") {
}
| 6 | Kotlin | 0 | 4 | 82c3b26d6697d2e5666b173101ade38505a3fe4c | 232 | hybrid-aquatic | MIT License |
payments-core/src/test/java/com/stripe/android/payments/core/authentication/DefaultPaymentAuthenticatorRegistryTest.kt | jaketay | 386,800,014 | true | {"Kotlin": 3430472, "Java": 67213, "Ruby": 6208, "Shell": 355} | package com.stripe.android.payments.core.authentication
import com.google.common.truth.Truth.assertThat
import com.stripe.android.model.ConfirmPaymentIntentParams
import com.stripe.android.model.Source
import com.stripe.android.model.StripeIntent
import com.stripe.android.model.StripeIntent.NextActionData
import org.j... | 0 | null | 0 | 0 | a6d9c144ab936772415cdc0d580c4b008e1162a3 | 4,034 | stripe-android | MIT License |
spesialist-selve/src/test/kotlin/no/nav/helse/Meldingssender.kt | navikt | 244,907,980 | false | null | package no.nav.helse
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.UUID
import no.nav.helse.TestRapidHelpers.contextId
import no.nav.helse.Testdata.AKTØR
import no.nav.helse.Testdata.FØDSELSNUMMER
import no.nav.helse.Testdata.ORGNR
import no.nav.helse.Testdata.SAKSBEHANDLER_EPOST
import no... | 7 | Kotlin | 1 | 0 | 00804a5d1947a0fadcbb70659d64e16cb2e1e0a2 | 23,723 | helse-spesialist | MIT License |
src/2/2750.kt | WhiteKr | 408,140,568 | false | null | /**
* 2750. 수 정렬하기
*
* 작성자: whitekr
* 언어: Kotlin (JVM)
* 사용 메모리: 18,724 KB
* 소요 시간: 188 ms
* 해결 날짜: 2021년 8월 1일
*/
fun main() {
val N: Int = readLine()!!.toInt()
var arr: IntArray = IntArray(N)
for (i in arr.indices)
arr[i] = readLine()!!.toInt()
arr.sort()
for (i in arr.indices)
... | 5 | Kotlin | 0 | 1 | 913fcc9f293c62a1b4e67bccb075820578e097ea | 344 | Baekjoon-grass | MIT License |
app/src/main/java/com/wstxda/gsl/MusicSearchActivity.kt | WSTxda | 598,228,261 | false | null | package com.wstxda.gsl
import android.app.Activity
import android.content.ActivityNotFoundException
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.Toast
class MusicSearchActivity : Activity() {
companion object {
private const val TAG = "MusicSearchAct... | 0 | null | 2 | 95 | 17b7aa42fb2746cc9c35d44c217d921314b2e0b4 | 1,019 | Google-Shortcuts-Launcher | Apache License 2.0 |
auth_ui/src/main/java/com/jnr/dread/auth_ui/LoginFragmentConfig.kt | E-Mwaurer | 246,014,881 | false | null | package com.jnr.dread.auth_ui
interface LoginFragmentConfig {
fun setOnLoginClickListener()
fun setOnRegisterClickListener()
fun setOnResetClickListener()
} | 1 | Kotlin | 1 | 3 | 657370c7e51b17b9911db2e3d2b1224391d6d4c4 | 169 | Authentication-ui | MIT License |
src/main/kotlin/com/triszt4n/wireworld/model/BoardApi.kt | triszt4n | 366,318,754 | false | null | package com.triszt4n.wireworld.model
import java.io.File
enum class InputModeType {
LEFT_CLICK_MODE, RIGHT_CLICK_MODE
}
/**
* The API, which can manage the board
*/
class BoardApi<T : AbstractTile> {
lateinit var tileMatrix: Matrix<T>
/**
* Makes one new generation and applies it to tiles
*/... | 1 | Kotlin | 0 | 0 | a1fb1aa1ef0edb07bda23b84f12f3a0147d0d5c8 | 2,301 | cellular-automata | Apache License 2.0 |
src/main/kotlin/com/triszt4n/wireworld/model/BoardApi.kt | triszt4n | 366,318,754 | false | null | package com.triszt4n.wireworld.model
import java.io.File
enum class InputModeType {
LEFT_CLICK_MODE, RIGHT_CLICK_MODE
}
/**
* The API, which can manage the board
*/
class BoardApi<T : AbstractTile> {
lateinit var tileMatrix: Matrix<T>
/**
* Makes one new generation and applies it to tiles
*/... | 1 | Kotlin | 0 | 0 | a1fb1aa1ef0edb07bda23b84f12f3a0147d0d5c8 | 2,301 | cellular-automata | Apache License 2.0 |
app/src/main/java/com/example/lucknowcityguide/activities/PagerActivity.kt | shashankmunda | 361,434,258 | false | null | package com.example.lucknowcityguide.activities
import android.animation.ArgbEvaluator
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.ImageButton
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import androidx.coordinatorlayout.widge... | 0 | Kotlin | 0 | 0 | 40e9132d32e5a76afb2e0e5445b748f07b7c9305 | 4,873 | City-Tour-Guide | Creative Commons Zero v1.0 Universal |
tabulate-core/src/main/kotlin/io/github/voytech/tabulate/template/exception/ExportOperationsFactoryResolvingException.kt | voytech | 262,033,710 | false | null | package io.github.voytech.tabulate.template.exception
/**
* Exception thrown when there is no ExportOperationFactory registered for given format.
* @since 0.1.0
* @author <NAME>
*/
class ExportOperationsFactoryResolvingException: RuntimeException("Could not resolve ExportOperationsFactory!") | 19 | Kotlin | 0 | 2 | 89e183487938dfa719797d8af30ee299e2db4753 | 297 | tabulate | Apache License 2.0 |
app-backend/src/main/kotlin/usecases/signup/Login.kt | Heapy | 40,936,978 | false | null | package usecases.signup
import JooqModule
import at.favre.lib.crypto.bcrypt.BCrypt
import di.bean
import io.ktor.http.*
import io.ktor.server.request.receive
import io.ktor.server.response.respond
import io.ktor.server.routing.Routing
import io.ktor.server.routing.post
import kotlinx.serialization.Serializable
import ... | 25 | null | 1220 | 11,018 | 2f4cfa75180e759d91fe238cc3f638beec9286e2 | 2,781 | awesome-kotlin | Apache License 2.0 |
src/main/kotlin/fp/kotlin/example/chapter08/exercise/8_16_sequenceAFunList.kt | funfunStory | 101,662,895 | false | null | package fp.kotlin.example.chapter08.exercise
/**
*
* 연습문제 8-16
*
* AFunList 에도 동작하는 ``sequenceA`` 함수를 추가하고 테스트 해보자.
*
*/
fun main() {
val listOfList = ACons(ACons(1, ACons(2, ACons(3, ANil))), ANil)
require(sequenceA(listOfList) ==
ACons(
ACons(1, ANil),
ACons(
... | 2 | Kotlin | 19 | 39 | 29b9940890ef50f5165af25a7ee45ea0b955f28b | 620 | fp-kotlin-example | MIT License |
test-utilities/src/test/kotlin/edu/cornell/cs/apl/viaduct/TestFileProviderTest.kt | s-ren | 386,161,765 | true | {"Kotlin": 878757, "Java": 43761, "C++": 13898, "Python": 11991, "Lex": 6620, "Dockerfile": 1844, "Makefile": 1785, "SWIG": 1212, "Shell": 698} | package edu.cornell.cs.apl.viaduct
import java.io.File
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.ArgumentsSource
internal class TestFileProviderTest {
@ParameterizedTest
@ArgumentsSource(PositiveTestFileProvider::class)
fun `positive tests`(file: File) {
... | 0 | null | 0 | 0 | 337b3873e10f642706b195b10f939e9c1c7832ef | 493 | viaduct | MIT License |
app/src/main/java/com/example/teste/main/data/MainService.kt | lacortedias | 581,023,107 | false | null | package com.example.teste.main.data
import com.example.teste.main.data.response.DataWords
import retrofit2.Response
import retrofit2.http.GET
import retrofit2.http.Path
interface MainService {
@GET("api/v2/entries/en/{word}")
suspend fun getWord(
@Path("word") word: String
): Response<List<DataWo... | 0 | Kotlin | 1 | 0 | c89afcc44e7bcb5517e731a77442fafa173e7b6c | 327 | teste | MIT License |
core/core-ui/src/main/kotlin/com/maximillianleonov/musicmax/core/ui/component/EmptyContent.kt | TheMusicmax | 559,137,206 | false | null | /*
* Copyright 2023 <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... | 17 | null | 5 | 288 | a2a9a97d88b743602f59fa74eb8f67754d56d3b1 | 1,365 | Musicmax | Apache License 2.0 |
app/src/main/java/io/outblock/lilico/base/activity/BaseActivity.kt | Outblock | 435,317,689 | false | null | package com.flowfoundation.wallet.base.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import java.lang.ref.WeakReference
open class BaseActivity : AppCompatActivity() {
private var firstVisible = true
// override fun attachBaseContext(newBase: Context?) {
// super.at... | 93 | Kotlin | 3 | 3 | 773c2775e374114b4309a4950554d62125c61c83 | 1,404 | Lilico-Android | Apache License 2.0 |
src/main/kotlin/memimg/Validation.kt | xrrocha | 487,907,163 | false | {"Kotlin": 27761} | package memimg
import arrow.core.Either
import arrow.core.left
import arrow.core.right
interface Validator<out T> {
fun validate(value: @UnsafeVariance T?): Either<String, Unit>
}
open class RegexValidator(private val regex: Regex, private val message: String): Validator<String> {
constructor(pattern: String... | 0 | Kotlin | 0 | 3 | 017ce167eaa50619d0f0652c42f0b7c92817fffb | 602 | kmemimg | Apache License 2.0 |
ReproducerApp/android/core/src/main/java/com/playground/internal/core/event/BaseEvent.kt | wpoosanguansit | 728,969,956 | false | {"Kotlin": 77882, "TypeScript": 3207, "Objective-C": 2287, "Ruby": 2013, "Objective-C++": 805, "JavaScript": 719, "CMake": 431} | package com.playground.internal.core.event
abstract class BaseEvent | 0 | Kotlin | 0 | 0 | 54029fa8ca487d7e728c5b01a52a86ca14055c00 | 68 | internal | MIT License |
cache/src/main/java/com/mm/http/cache/CacheHelper.kt | ma-jian | 407,821,385 | false | null | package com.mm.http.cache
import android.text.TextUtils
import com.google.gson.Gson
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.internal.EMPTY_HEADERS
import okhttp3.internal.cache.CacheRequest
import okhttp3.internal.closeQuietly
import okhttp3.internal.concurrent.TaskRunner
i... | 1 | null | 0 | 2 | 420b0442ee20c6715cc0692feb594400bd2b2121 | 22,844 | retrofit_cache | Apache License 2.0 |
common-client/src/main/kotlin/com/configset/common/client/ApplicationId.kt | raymank26 | 296,910,120 | false | {"Kotlin": 334689, "Jinja": 11978, "JavaScript": 3431, "Shell": 456} | package com.configset.common.client
data class ApplicationId(val id: Long) {
constructor(id: String) : this(id.toLong())
}
| 0 | Kotlin | 0 | 1 | bf54c361628a207a219afd6772ac2e4b6ffefbcb | 128 | configset | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.