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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
examples/weather/forecast/forecastWeather/main.kt | GWT-M3O-TEST | 485,009,715 | false | null |
package examples.weather.forecast
import com.m3o.m3okotlin.M3O
import com.m3o.m3okotlin.services.weather
suspend fun main() {
M3O.initialize(System.getenv("M3O_API_TOKEN"))
val req = WeatherForecastRequest(Days = 2,
Location = "London",)
try {
val response = WeatherServ.forecast(req)
println(re... | 1 | Kotlin | 1 | 0 | 54158b584ba47bd7323a484804dcd78c55ef7f69 | 378 | m3o-kotlin | Apache License 2.0 |
src/main/kotlin/io/github/controleagenda/controller/SubSegmentController.kt | mpontoc | 509,843,324 | false | null | package io.github.controleagenda.controller
import io.github.controleagenda.model.SubSegment
import io.github.controleagenda.model.dto.SubSegmentDTO
import io.github.controleagenda.repository.SubSegmentRepository
import io.github.controleagenda.services.SubSegmentService
import io.github.controleagenda.util.Util
impor... | 0 | Kotlin | 0 | 0 | ab4a24dcf85f46eeeb5bcb86a13458f580149d71 | 2,078 | controle-agenda | MIT License |
compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt | android | 138,043,025 | false | {"Kotlin": 1093210, "Java": 5240} | /*
* Copyright 2024 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 14 | Kotlin | 169 | 666 | 514653c318c747c557f70e32aad2cc7051d44115 | 22,970 | snippets | Apache License 2.0 |
app/src/main/java/me/rosuh/easywatermark/ui/adapter/PhotoListPreviewAdapter.kt | rosuH | 281,094,148 | false | null | package me.rosuh.easywatermark.ui.adapter
import android.annotation.SuppressLint
import android.content.Context
import android.view.ViewGroup
import android.widget.ImageView
import androidx.core.view.isVisible
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import andro... | 24 | null | 91 | 885 | b9c0b54eb98c1568b7a793630c98e5d0f0d055a1 | 4,569 | EasyWatermark | MIT License |
app/src/main/java/org/simple/clinic/summary/teleconsultation/contactdoctor/ContactDoctorSheet.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.summary.teleconsultation.contactdoctor
import android.content.Context
import android.content.Intent
import android.os.Bundle
import io.github.inflationx.viewpump.ViewPumpContextWrapper
import io.reactivex.Observable
import io.reactivex.rxkotlin.ofType
import kotlinx.android.synthetic.main.she... | 13 | null | 73 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 5,624 | simple-android | MIT License |
ui/src/test/kotlin/io/rippledown/main/OpenRDRUITest.kt | TimLavers | 513,037,911 | false | {"Kotlin": 1137574, "Gherkin": 76663} | package io.rippledown.main
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.mockk
import io.rippledown.appbar.assertKbNameIs
import io.rippledown.casecontrol.*
import io.rippledown.constants.main.APPL... | 1 | Kotlin | 0 | 0 | eea6fbed258d90d320ba3da2c05e8bfbb683a311 | 14,037 | OpenRDR | MIT License |
libraries/splitInstall/src/main/java/com/escodro/splitinstall/SplitInstall.kt | igorescodro | 116,942,964 | false | null | @file:Suppress("Filename")
package com.escodro.splitinstall
import android.content.Context
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.fou... | 8 | Kotlin | 83 | 999 | e64a652c6b62dd5ca80c2c128186ef4b8bf6cf63 | 6,518 | alkaa | Apache License 2.0 |
app/src/main/java/rg/info/storagelocator/ui/components/container/ContainerFABComponent.kt | guillaumer63 | 582,988,544 | false | {"Kotlin": 42998} | package rg.info.storagelocator.ui.components.container
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material... | 0 | Kotlin | 0 | 1 | beac4d4104f82e8afcc992caa8cd57e8360aa5ae | 2,904 | storage-locator | Apache License 2.0 |
src/main/kotlin/dev/mizarc/bellclaims/api/ClaimWorldService.kt | mizarc | 694,771,936 | false | {"Kotlin": 469240} | package dev.mizarc.bellclaims.api
import dev.mizarc.bellclaims.api.enums.ClaimCreationResult
import dev.mizarc.bellclaims.api.enums.ClaimMoveResult
import dev.mizarc.bellclaims.domain.claims.Claim
import org.bukkit.Location
import org.bukkit.OfflinePlayer
/**
* A service that handles the existence of claims in the w... | 7 | Kotlin | 4 | 9 | 8eb7a8a325e91136f36cd236f490694311df47a2 | 2,216 | bell-claims | MIT License |
library/src/main/kotlin/de/eternalwings/focus/Reference.kt | kumpelblase2 | 259,880,502 | false | null | package de.eternalwings.focus
/**
* A reference to another element in the store. In many cases this is the reference to the parent element.
*/
data class Reference(
/**
* The ID of the referenced element. This may be null to explicitly indicate "no reference", which
* helps knowing if it should be incl... | 1 | Kotlin | 0 | 5 | 80ed810a66a954739219ac73af3d1e626f55c58c | 834 | focus | Apache License 2.0 |
library/src/main/kotlin/de/eternalwings/focus/Reference.kt | kumpelblase2 | 259,880,502 | false | null | package de.eternalwings.focus
/**
* A reference to another element in the store. In many cases this is the reference to the parent element.
*/
data class Reference(
/**
* The ID of the referenced element. This may be null to explicitly indicate "no reference", which
* helps knowing if it should be incl... | 1 | Kotlin | 0 | 5 | 80ed810a66a954739219ac73af3d1e626f55c58c | 834 | focus | Apache License 2.0 |
kotlin/ktor/pokedex/src/main/kotlin/com/pradyotprkshpokedex/domain/modal/GenerationI.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 2946772, "Dart": 1066884, "Python": 321205, "Rust": 180589, "Swift": 149624, "C++": 113494, "JavaScript": 103891, "CMake": 94132, "HTML": 57188, "Go": 45704, "CSS": 18615, "SCSS": 17864, "Less": 17245, "Ruby": 13609, "Dockerfile": 9772, "C": 8043, "Shell": 7657, "PowerShell": 3045, "Nix": 2616, "Makefile": 1... | package com.pradyotprkshpokedex.domain.modal
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class GenerationI(
@SerialName("red-blue") val redBlue: RedBlue? = RedBlue(),
@SerialName("yellow") val yellow: Yellow? = Yellow()
) | 0 | Kotlin | 11 | 24 | da2054de505260bdfa5ffa6d67674f0fa5ba8d3c | 290 | development_learning | MIT License |
mobile/src/main/java/uk/co/appsbystudio/geoshare/utils/ui/SettingsActivity.kt | zacdevil10 | 50,067,543 | false | null | package uk.co.appsbystudio.geoshare.utils.ui
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.preference.PreferenceManager
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Toolbar
import com.google.firebase.auth.FirebaseAuth... | 5 | Kotlin | 1 | 1 | f66aa94d7f44c8dbf81a6a67a4e0504bbf7e2d32 | 2,381 | GeoShare_Android | Apache License 2.0 |
tbs/src/main/java/com/angcyo/tbs/core/TbsWebFragment.kt | angcyo | 229,037,684 | false | null | package com.angcyo.tbs.core
import android.content.ComponentName
import android.graphics.Color
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
import android.widget.TextView
import com.angcyo.base.dslAHelper
import com.angcyo.base... | 0 | null | 4 | 3 | 80afa7c9371c4db9a52c38f719336303d4911963 | 20,954 | UICoreEx | MIT License |
packages/proto/proto-flatbuffers/src/main/kotlin/elide/assets/EmbeddedScriptMetadata.kt | elide-dev | 506,113,888 | false | null | // automatically generated by the FlatBuffers compiler, do not modify
package elide.assets
import java.nio.*
import kotlin.math.sign
import com.google.flatbuffers.*
@Suppress("unused")
class EmbeddedScriptMetadata : Table() {
fun __init(_i: Int, _bb: ByteBuffer) {
__reset(_i, _bb)
}
fun __assig... | 36 | Kotlin | 4 | 33 | 91800dbbf291e65a91d451ed50c9673d82efd174 | 1,988 | elide | MIT License |
app/src/test/java/com/rikucherry/artworkespresso/feature_authentication/domain/util/AuthenticationUtilTest.kt | rikucherry1993 | 416,754,722 | false | {"Kotlin": 235546} | package com.rikucherry.artworkespresso.feature_authentication.domain.util
import android.content.Intent
import android.net.Uri
import com.rikucherry.artworkespresso.common.Constants
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
import org.junit.runner.RunWith
import org.... | 0 | Kotlin | 0 | 0 | 0a9c264c5323a1bb9bbc801008ab8cbc6bd0c323 | 3,103 | artwork-espresso | MIT License |
library/src/main/java/com/kodmap/app/library/adapter/PopupSliderAdapter.kt | batorshih | 159,349,980 | true | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 29, "XML": 27, "Java": 3} | package com.kodmap.app.library.adapter
import android.support.v4.view.PagerAdapter
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import com.kodmap.app.library.R
import com.kodmap.app.library.constant.ScaleType
import com.kodmap.app.library.model.BaseItem
import com.kodmap.app.l... | 0 | Kotlin | 0 | 0 | c893f87a03c7103bcbfcbcd2157dadf7bbfc4e5c | 3,589 | KM-Popup-Image-Slider | The Unlicense |
core/domain/src/main/kotlin/org/michaelbel/movies/domain/exceptions/DeleteSessionException.kt | michaelbel | 115,437,864 | false | null | package org.michaelbel.movies.domain.exceptions
object DeleteSessionException: Exception() | 4 | Kotlin | 21 | 81 | 00b1cd807a4e7c894b0792ebb668e4cbcedc5605 | 91 | movies | Apache License 2.0 |
ok-blogs-transport-mp/src/commonMain/kotlin/ru/otus/kotlin/blogs/transport/kmp/models/categories/MpRequestCategoryRead.kt | otuskotlin | 327,215,631 | false | null | package ru.otus.kotlin.blogs.transport.kmp.models.categories
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import ru.otus.kotlin.blogs.transport.kmp.models.common.IMpDebug
import ru.otus.kotlin.blogs.transport.kmp.models.common.IMpRequest
import ru.otus.kotlin.blogs.transport.kmp.mo... | 1 | Kotlin | 0 | 0 | a23a05a80ee90c6c02a200f4dc6acde31b80bc76 | 835 | otuskotlin-202012-blogs-sa | MIT License |
app/src/main/java/study/me/please/ui/session/lobby/SessionLobbyRepository.kt | Let-s-build-something | 683,485,839 | false | {"Kotlin": 999288} | package study.me.please.ui.session.lobby
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import study.me.please.data.io.SessionIO
import study.me.please.data.room.PreferencesDao
import study.me.please.data.room.SessionDao
import study.me.please.ui.components.preference_chooser.PreferencePac... | 0 | Kotlin | 0 | 0 | 4fec69fa87b4cf60f490c7150420d9cc677ecff9 | 1,561 | Study-me-please | Apache License 2.0 |
app/src/main/java/com/greenart7c3/nostrsigner/ui/components/AppTitle.kt | greenart7c3 | 671,206,453 | false | {"Kotlin": 189104, "Shell": 1310} | package com.greenart7c3.nostrsigner.ui.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
... | 1 | Kotlin | 3 | 55 | c3cc32857e79e7ea8dac98f1960038e38bef7471 | 526 | Amber | MIT License |
feature/accounts/src/main/java/org/expenny/feature/accounts/overview/contract/AccountOverviewContract.kt | expenny-application | 712,607,222 | false | {"Kotlin": 1032337} | package org.expenny.feature.accounts.overview.contract
import androidx.compose.runtime.Stable
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.toImmutableList
import org.expenny.core.common.types.AccountTrendType
import org.expenny.core.common.types.IntervalType
import org.expenn... | 0 | Kotlin | 3 | 40 | 8d4b02fdbcae0fbb8ce3d1910020b4e251866925 | 1,889 | expenny-android | Apache License 2.0 |
app/src/main/kotlin/com/gcode/imaker/ui/model/Communicate.kt | SakurajimaMaii | 321,078,799 | false | {"Kotlin": 129160} | /*
* MIT License
*
* Copyright (c) 2021 码上夏雨
*
* 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... | 2 | Kotlin | 0 | 7 | 3d6a166dfeb6ba13e1eeb420225a9463f877f83d | 3,462 | Maker-Compose-Samples | MIT License |
compiler/testData/debug/stepping/callWithCallInArguments.kt | JetBrains | 3,432,266 | false | null | // FILE: test.kt
class A
fun bar(a: A) = A()
fun box() {
val a = A()
bar(
bar(
bar(a)
)
)
}
// EXPECTATIONS
// test.kt:8 box
// test.kt:3 <init>
// test.kt:8 box
// test.kt:11 box
// test.kt:5 bar
// test.kt:3 <init>
// test.kt:5 bar
// test.kt:10 box
// test.... | 132 | null | 5074 | 40,992 | 57fe6721e3afb154571eb36812fd8ef7ec9d2026 | 472 | kotlin | Apache License 2.0 |
feature/tasks/model/src/main/java/app/taskify/feature/tasks/model/CategoryDisplayModel.kt | usdaves | 656,260,254 | false | null | /*
* Copyright 2023 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | 4830b61fec44b2913ea80594ccff189da2d70ba8 | 897 | Taskify | Apache License 2.0 |
data/src/main/java/com/criticalgnome/data/service/JsonPlaceholderService.kt | CriticalGnome | 624,905,580 | false | {"Kotlin": 128644} | package com.criticalgnome.data.service
import com.criticalgnome.data.entity.AlbumData
import com.criticalgnome.data.entity.CommentData
import com.criticalgnome.data.entity.PhotoData
import com.criticalgnome.data.entity.PostData
import com.criticalgnome.data.entity.TodoData
import com.criticalgnome.data.entity.UserData... | 0 | Kotlin | 1 | 0 | 9d0cdaf4147042d3a5d63d8fd8f75e273ce55cc7 | 2,313 | CleanArchitectureDemo | Apache License 2.0 |
clientprotocol/src/commonMain/generated/org/inthewaves/kotlinsignald/clientprotocol/v1/structures/IdentityKey.kt | inthewaves | 398,221,861 | false | null | // File is generated by ./gradlew generateSignaldClasses --- do not edit unless reformatting
package org.inthewaves.kotlinsignald.clientprotocol.v1.structures
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
public data class IdentityKey(
/**
* the first time th... | 11 | Kotlin | 1 | 2 | 6f48a612fc307c08e44af25f826bb627e3e4f499 | 843 | kotlin-signald | MIT License |
modules/mockk/src/commonTest/kotlin/io/mockk/ManyAnswersAnswerTest.kt | mockk | 107,331,132 | false | null | package io.mockk
import kotlin.test.Test
import kotlin.test.assertEquals
class ManyAnswersAnswerTest {
@Test
fun simpleList() {
val many = many(1, 2, 3)
assertEquals(listOf(1, 2, 3), many.toList())
}
@Test
fun nestedList() {
val many = many(many(1, 2, 3), many(4, 5, 6))
... | 296 | null | 344 | 5,426 | 79abc96d3235710d61beaf677ea1349ba12eea0c | 1,095 | mockk | Apache License 2.0 |
adam/src/main/kotlin/com/malinskiy/adam/request/sync/v2/ListFileRequest.kt | Malinskiy | 200,235,738 | false | {"Kotlin": 770806, "Shell": 1553, "Java": 1414} | /*
* Copyright (C) 2021 <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 ... | 3 | Kotlin | 31 | 441 | f206bc96e4927ce07e5421f9ac2449b34ac3027c | 4,491 | adam | Apache License 2.0 |
GeoQ/app/src/main/java/com/example/geoq/mvps/views/QuestInformationView.kt | iShamSLam | 211,938,667 | false | {"YAML": 3, "Text": 1, "Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "JSON": 1, "Proguard": 1, "Kotlin": 62, "XML": 56, "Java": 1} | package com.example.geoq.mvps.views
import com.arellomobile.mvp.MvpView
import com.example.geoq.OtherClasses.StepItem
interface QuestInformationView : MvpView {
fun showInformation()
fun deleteQuest()
fun subcribeToQuest()
} | 1 | null | 1 | 1 | 84a852b3184ddcdfed891c6dea9cbe41d2e815cd | 238 | GeoQ | Apache License 2.0 |
src/main/kotlin/me/xiaozhangup/picturelogin/data/table/SQLTable.kt | HAPPYLAND-Dev | 624,488,865 | false | {"INI": 2, "Gradle Kotlin DSL": 2, "Shell": 1, "Markdown": 1, "Batchfile": 1, "Kotlin": 5, "Java": 8} | package me.xiaozhangup.picturelogin.data.table
import me.xiaozhangup.picturelogin.data.DatabaseManager
import taboolib.module.database.Host
import taboolib.module.database.SQL
import taboolib.module.database.Table
interface SQLTable {
val table: Table<Host<SQL>, SQL>
fun createTable() {
table.creat... | 1 | null | 1 | 1 | 651418a00508f6a3234e13780dabfee60a577694 | 363 | PictureLogin-Taboo | Creative Commons Zero v1.0 Universal |
app/src/test/java/com/primeholding/primesampleapp/TestSchedulerRule.kt | StanevPrime | 165,937,983 | false | null | package com.primeholding.primesampleapp
import io.reactivex.android.plugins.RxAndroidPlugins
import io.reactivex.plugins.RxJavaPlugins
import io.reactivex.schedulers.TestScheduler
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.Statement
class TestSchedulerRule : Tes... | 1 | Kotlin | 1 | 2 | 1e5610489d2f8439e5b857a285f2a01ccf38fa7e | 1,085 | PrimeHoldingAndroidTemplatesSample | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/replaceWithSafeCall/lineBreak.kt | JetBrains | 2,489,216 | false | null | // "Replace with safe (?.) call" "true"
// WITH_STDLIB
fun foo(a: String?) {
val b = a
.<caret>length
}
| 233 | null | 4912 | 15,461 | 9fdd68f908db0b6bb6e08dc33fafb26e2e4712af | 120 | intellij-community | Apache License 2.0 |
materialintro/src/main/java/com/codertainment/materialintro/view/MaterialIntroView.kt | shripal17 | 238,678,867 | false | null | package com.codertainment.materialintro.view
import android.annotation.TargetApi
import android.app.Activity
import android.content.Context
import android.graphics.*
import android.graphics.drawable.Drawable
import android.os.Build
import android.os.Handler
import android.util.AttributeSet
import android.util.TypedVal... | 7 | null | 11 | 53 | 6ae490d1cd089262cd87221d0092892be301129f | 19,298 | MaterialIntroView-v2 | Apache License 2.0 |
MaterialMotionAnimationExample/app/src/main/java/com/velmurugan/materialmotionanimationexample/HomeDetailFragment.kt | velmurugan-murugesan | 159,637,287 | false | null | package com.velmurugan.materialmotionanimationexample
import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import com.bumptech.glide.Glide
import... | 1 | Java | 1 | 6 | 8c2e8b2a0e8f33b5e8c0ea66890756e02577fa54 | 2,126 | AndriodSamples | Apache License 2.0 |
app/src/main/java/ca/josephroque/bowlingcompanion/statistics/impl/series/HighSeriesOf9Statistic.kt | autoreleasefool | 28,992,199 | false | null | package ca.josephroque.bowlingcompanion.statistics.impl.series
import android.os.Parcel
import android.os.Parcelable
import ca.josephroque.bowlingcompanion.R
import ca.josephroque.bowlingcompanion.common.interfaces.parcelableCreator
/**
* Copyright (C) 2018 Joseph Roque
*
* Highest series of 3 games.
*/
class Hig... | 30 | Kotlin | 5 | 6 | be42ac42d6c842b3126a8841990e5f9c8c6af232 | 951 | bowling-companion | Apache License 2.0 |
litho-widget-kotlin/src/test/kotlin/com/facebook/litho/widget/ExperimentalCardShadowTest.kt | dthabata | 508,393,331 | false | {"Java Properties": 51, "Markdown": 75, "Shell": 20, "Batchfile": 12, "Java": 1903, "Kotlin": 381, "C": 2, "C++": 44, "CMake": 2, "JavaScript": 7, "HTML": 1188, "CSS": 1, "Proguard": 9, "Haskell": 1} | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | 1 | null | 1 | 1 | 9d79ef8c8687cb4b85cf4f83cc1e945951fbaa31 | 1,763 | litho | Apache License 2.0 |
src/main/java/eu/mshade/enderchest/listener/packet/MinecraftPacketToggleFlyingListener.kt | MSh4de | 377,134,599 | false | {"Java": 188452, "Kotlin": 133231, "Dockerfile": 140} | package eu.mshade.enderchest.listener.packet
import eu.mshade.enderframe.entity.metadata.FlyingEntityMetadata
import eu.mshade.enderframe.packetevent.MinecraftPacketToggleFlyingEvent
import eu.mshade.mwork.event.EventListener
class MinecraftPacketToggleFlyingListener : EventListener<MinecraftPacketToggleFlyingEvent> ... | 1 | null | 1 | 1 | dd53d29546e6c42f620e11493523799182357435 | 589 | EnderChest | MIT License |
app/src/main/java/org/stepik/android/view/course/mapper/DisplayPriceMapper.kt | StepicOrg | 42,045,161 | false | null | package org.stepik.android.view.course.mapper
import android.content.Context
import android.text.SpannedString
import androidx.core.text.buildSpannedString
import androidx.core.text.scale
import androidx.core.text.strikeThrough
import org.stepic.droid.R
import javax.inject.Inject
class DisplayPriceMapper
@Inject
cons... | 13 | null | 54 | 189 | dd12cb96811a6fc2a7addcd969381570e335aca7 | 1,544 | stepik-android | Apache License 2.0 |
fir-low-level-api-ide-impl/testData/outOfBlockProjectWide/funInCompanionObject.kt | JetBrains | 278,369,660 | false | null | class X {
companion object {
fun x() {
a<caret>
}
}
}
// OUT_OF_BLOCK: false
| 0 | Kotlin | 29 | 71 | b6789690db56407ae2d6d62746fb69dc99d68c84 | 114 | intellij-kotlin | Apache License 2.0 |
app/src/main/kotlin/com/absinthe/libchecker/view/BaseBottomSheetDialogFragment.kt | fengyeshu | 311,004,729 | false | null | package com.absinthe.libchecker.view
import android.os.Bundle
import android.view.View
import com.absinthe.libchecker.R
import com.absinthe.libraries.utils.utils.UiUtils
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
open class BaseBottomSheetDialogFragment : BottomSheetDialogFragment() {
... | 1 | null | 1 | 1 | 342658fda785211dd38c07e1f146bf264038f4cc | 770 | LibChecker | Apache License 2.0 |
src/main/kotlin/com/tm/config/Data.kt | simonNozaki | 270,195,018 | false | null | package com.tm.config
/**
* データクラス宣言アノテーションクラス
*/
annotation class Data | 1 | null | 1 | 1 | 9fc02da0db5529d34698dea0ed2ce810845b96d6 | 74 | parallel-api | Apache License 2.0 |
Correctness/ValidFragment/src/main/java/net/twisterrob/lints/correctness/ValidFragmentViolationNonStaticKt.kt | TWiStErRob | 169,976,671 | false | {"Gradle": 120, "Java Properties": 1, "Shell": 1, "Text": 7, "Ignore List": 1, "Batchfile": 1, "Git Attributes": 1, "Markdown": 5, "XML": 108, "Java": 40, "Kotlin": 33, "TOML": 1, "INI": 3, "JSON5": 1, "YAML": 1, "Gradle Kotlin DSL": 1, "Proguard": 1} | package net.twisterrob.lints.correctness
import android.app.Fragment
class ValidFragmentViolationNonStaticKt {
inner class Inner : Fragment()
}
| 2 | Java | 0 | 5 | b76f63bac73d284bf39184dd2490440973b00946 | 147 | android-lint-examples | The Unlicense |
app/src/main/java/memoizrlabs/com/tdd_playground/HeroScreenPresenter.kt | memoizr | 64,115,089 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 10, "XML": 8, "Java": 2} | package memoizrlabs.com.tdd_playground
class HeroScreenPresenter(private val transactionRepository: TransactionRepository,
private val transactionPrinter: TransactionPrinter) {
fun onViewAttached(view: View) {
transactionPrinter.printTransactions(transactionRepository.getAllTrans... | 0 | Kotlin | 0 | 0 | 1eefc316c33f4a7f0429bc9cf7876537f52fa729 | 378 | tdd-playground-android | Apache License 2.0 |
app/src/main/java/uagrm/soe/awesomelogin/service/WebService.kt | kevinsubieta | 177,921,637 | false | {"Gradle": 3, "XML": 30, "Java Properties": 3, "Shell": 1, "Text": 1, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Ignore List": 1, "Kotlin": 20, "Java": 1} | package integgre.ma_volvo.api.service
import integgre.ma_volvo.constanst.Constants
import okhttp3.OkHttpClient
import retrofit2.Call
import retrofit2.Response
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit
import com.google.gson.GsonBuilder
import co... | 0 | Kotlin | 1 | 0 | 43718919c5b8dc5eacbf3af21b3378c4b9cf1743 | 2,082 | BiometricPromptExample | The Unlicense |
src/app/src/main/java/com/huawei/training/kotlin/utils/video/Constants.kt | huaweicodelabs | 368,851,944 | false | null | /**
* Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* U... | 1 | null | 1 | 1 | 9e038c432077d2bf0b0749f5c12cf8f58dbe5454 | 6,158 | HMS-Learning-Application | Apache License 2.0 |
src/main/kotlin/org/opensearch/indexmanagement/transform/util/TransformUtils.kt | opensearch-project | 354,094,562 | false | null | /*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/
package org.opensearch.indexmanagement.transform.util
import org.opensearch.common.time.DateFormatter
import java.time.ZoneId
const val DEFAULT_DATE_FORMAT = "strict_date_optional_time||epoch_millis"
private const val DATE_FORMAT = "u... | 138 | null | 110 | 53 | c0942eb60921070385d1b10c7453eee5e148e44f | 585 | index-management | Apache License 2.0 |
src/main/kotlin/uk/cmdrnorthpaw/kinventory/inventory/SerializableSimpleInventory.kt | CmdrNorthpaw | 356,551,514 | false | {"Kotlin": 19404} | package uk.cmdrnorthpaw.kinventory.inventory
import kotlinx.serialization.Serializable
import net.minecraft.inventory.SimpleInventory
import uk.cmdrnorthpaw.kinventory.model.SerializableInventory
import uk.cmdrnorthpaw.kinventory.model.SerializableItemStack
import uk.cmdrnorthpaw.kinventory.model.SerializableItemStack... | 0 | Kotlin | 0 | 2 | b451f256b0392f90ba9df1a9424ddb6a66bbf674 | 1,188 | KInventory | MIT License |
app/src/main/java/com/sisiame/wordal/MainActivity.kt | sisiame | 519,347,612 | false | null | package com.sisiame.wordal
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Spannable
import android.text.SpannableString
import android.text.style.ForegroundColorSpan
import android.widget.*
import android.view.View
/**
* This program is a simple clone of the popular New ... | 0 | Kotlin | 0 | 0 | 668ff14ecaba743739c465ce325dcb74e77a70e7 | 10,106 | Wordal | Apache License 2.0 |
app/src/main/java/com/example/flixterv2/DetailActivity.kt | xyzcv979 | 699,905,787 | false | {"Kotlin": 9812} | package com.example.flixterv2
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import android.widget.TextView
import android.widget.VideoView
import com.bumptech.glide.Glide
class DetailActivity : AppCompatActivity() {
private lateinit var detail_image: Imag... | 1 | Kotlin | 0 | 0 | f506113481c277c4cad582057755ddab11497d42 | 1,788 | FlixterV2 | Apache License 2.0 |
ComposePdfViewer/app/src/main/java/dev/seabat/android/composepdfviewer/MainActivity.kt | seabat | 685,948,686 | false | {"Kotlin": 60541} | package dev.seabat.android.composepdfviewer
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.material.BottomNavigation
import androidx.compose.material.Botto... | 0 | Kotlin | 0 | 0 | db31efa1a3a7f235941652618d21a555e8c9256e | 9,382 | pdf_viewer | Apache License 2.0 |
src/main/kotlin/grd/kotlin/authapi/extensions/BasicExtensions.kt | gardehal | 708,548,046 | false | {"Kotlin": 54861, "Shell": 612, "HTML": 331} | package grd.kotlin.authapi.extensions
import grd.kotlin.authapi.enums.*
import java.time.*
import java.util.*
import kotlin.reflect.KProperty
import kotlin.reflect.jvm.javaField
class BasicExtensions
/**
* Check if a nullable value is null.
* @param this value to check
* @return True if null
**/
fun Any?.isNull(... | 0 | Kotlin | 0 | 0 | e4be0bf711bdd8dbd3dad876bd20babd88559aca | 1,196 | kotlin-auth-api | MIT License |
nlp/front/storage-mongo/target/generated-sources/kapt/compile/fr/vsct/tock/nlp/front/shared/parser/ParseQuery_Serializer.kt | cooksane | 151,793,390 | true | {"Kotlin": 2507910, "TypeScript": 358055, "HTML": 140949, "CSS": 33484, "JavaScript": 5174, "Shell": 1591} | package fr.vsct.tock.nlp.front.shared.parser
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.SerializerProvider
import com.fasterxml.jackson.databind.module.SimpleModule
import com.fasterxml.jackson.databind.ser.std.StdSerializer
import org.litote.jackson.JacksonModuleServiceLoade... | 0 | Kotlin | 0 | 0 | cd5c55e99cda91b5f7d790503de88137d3a3cc3c | 1,530 | tock | Apache License 2.0 |
src/main/kotlin/daniel/mybank/model/request/Request.kt | DanFonseca | 602,188,054 | false | null | package daniel.mybank.model.request
import java.math.BigDecimal
open class Request (
open val accountId: Long,
open val amount: BigDecimal
) {
} | 0 | Kotlin | 0 | 0 | b327cd4e8d7735b269708580d02bf865904109b8 | 170 | mybank | MIT License |
src/main/kotlin/com/github/woojiahao/style/elements/Link.kt | omnius-project | 164,745,084 | false | null | package com.github.woojiahao.style.elements
import com.github.woojiahao.style.Settings
import com.github.woojiahao.utility.c
class Link(settings: Settings) : Element("a", settings) {
init {
textColor.value = c("448AFF")
}
} | 6 | Kotlin | 0 | 17 | 9ab611d0f72d39ebe20223be5161b45dede6d30b | 233 | kMD2PDF | MIT License |
app/src/main/java/com/noto/app/util/EpoxyUtils.kt | alialbaali | 245,781,254 | false | null | package com.noto.app.util
import android.content.Context
import com.airbnb.epoxy.EpoxyController
import com.airbnb.epoxy.EpoxyRecyclerView
import com.noto.app.R
import com.noto.app.components.headerItem
import com.noto.app.components.progressIndicatorItem
import com.noto.app.domain.model.Folder
import com.noto.app.dom... | 60 | null | 9 | 90 | ac844512dc95572e6845a154fe339919588d460a | 4,069 | Noto | Apache License 2.0 |
xml-parser-api/src/main/kotlin/com/valb3r/bpmn/intellij/plugin/bpmn/api/BpmnObjectFactory.kt | valb3r | 261,109,342 | false | null | package com.valb3r.bpmn.intellij.plugin.bpmn.api
import com.valb3r.bpmn.intellij.plugin.bpmn.api.bpmn.elements.BpmnSequenceFlow
import com.valb3r.bpmn.intellij.plugin.bpmn.api.bpmn.elements.WithBpmnId
import com.valb3r.bpmn.intellij.plugin.bpmn.api.diagram.elements.WithDiagramId
import com.valb3r.bpmn.intellij.plugin.... | 76 | null | 20 | 81 | 760efb3d7e48970545d0d7622687d67c2b9b9693 | 767 | flowable-bpmn-intellij-plugin | MIT License |
app/src/main/java/com/sergiop/aparcamientos/ui/activitys/home/screens/allListAllParking/AllListParkingState.kt | SerPamplona | 440,244,808 | false | {"Kotlin": 157611} | package com.sergiop.aparcamientos.ui.activitys.home.screens.allListAllParking
import com.sergiop.aparcamientos.model.Garaje
data class AllListParkingState (
val loadingList: Boolean = false,
val list: List<Garaje>? = null,
val error: Boolean = false,
val messageError : String = ""
) | 0 | Kotlin | 0 | 0 | 771a5913cd407463c66653382117b94e5cf5fad6 | 301 | aparcamientosDisca | Apache License 2.0 |
core/framework/src/main/java/com/jojalvo/framework/base/jetpack/RememberFlow.kt | jose-ojalvo | 619,971,179 | false | null | package com.jojalvo.framework.base.jetpack
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.flowWithLifecycle
import kotlinx.coroutines.flow.Flow
/**
* @author jo... | 0 | Kotlin | 0 | 0 | 1e8528c9868aec7d08e6c3bee5ffbae07d0c769e | 711 | MobileChallenge | Apache License 2.0 |
core/framework/src/main/java/com/jojalvo/framework/base/jetpack/RememberFlow.kt | jose-ojalvo | 619,971,179 | false | null | package com.jojalvo.framework.base.jetpack
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalLifecycleOwner
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.flowWithLifecycle
import kotlinx.coroutines.flow.Flow
/**
* @author jo... | 0 | Kotlin | 0 | 0 | 1e8528c9868aec7d08e6c3bee5ffbae07d0c769e | 711 | MobileChallenge | Apache License 2.0 |
prefixes-api/src/main/kotlin/app/simplecloud/plugin/prefixes/api/impl/PrefixesActorBlankImpl.kt | theSimpleCloud | 728,784,970 | false | {"Kotlin": 33787} | package app.simplecloud.plugin.prefixes.api.impl
import app.simplecloud.plugin.prefixes.api.PrefixesActor
import app.simplecloud.plugin.prefixes.api.PrefixesGroup
import net.kyori.adventure.text.Component
import java.util.*
class PrefixesActorBlankImpl : PrefixesActor {
override fun applyGroup(target: UUID, grou... | 0 | Kotlin | 0 | 0 | 365bff6e4fcfc776b3df2b03226d8d51cd5bc145 | 1,201 | prefixes-plugin | Apache License 2.0 |
intellij-plugin/educational-core/testSrc/com/jetbrains/edu/learning/command/validation/TestServiceMessageConsumer.kt | JetBrains | 43,696,115 | false | null | package com.jetbrains.edu.learning.command.validation
import com.intellij.execution.testframework.sm.ServiceMessageBuilder
import com.intellij.execution.testframework.sm.ServiceMessageUtil
import jetbrains.buildServer.messages.serviceMessages.*
import kotlin.test.assertEquals
class TestServiceMessageConsumer : Servic... | 7 | null | 49 | 150 | 9cec6c97d896f4485e76cf9a2a95f8a8dd21c982 | 3,822 | educational-plugin | Apache License 2.0 |
RBeacon/app/src/main/java/adapter/MessageAdapter.kt | rheyansh | 155,546,134 | false | null | package adapter
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import java.util.*
import com.info.rajsharma.rbeacon.*
import kotlinx.android.synthetic.main.my_message.v... | 0 | Kotlin | 0 | 2 | 2999a2f46da4c15f9a7151be7030c00570c4206c | 1,648 | RBeacon | MIT License |
app/src/main/java/com/example/movieapp/api/MoviesServices.kt | ahmedsamir9 | 308,115,212 | false | null | package com.example.movieapp.api
import com.example.movieapp.model.ActorResponse
import com.example.movieapp.model.MovieActorResponse
import com.example.movieapp.model.MovieDetails.Credits.MovieCredits
import com.example.movieapp.model.MovieDetails.MovieDetails
import com.example.movieapp.model.MovieDetails.Trailer.Tr... | 0 | Kotlin | 3 | 6 | 5d9b73b2f62fc8fc3730335c7d69aae2efac6238 | 3,564 | MovieAppKotlin | Apache License 2.0 |
app/src/main/java/com/github/lotaviods/linkfatec/di/LoginModules.kt | lotaviods | 598,320,816 | false | null | package com.github.lotaviods.linkfatec.di
import com.github.lotaviods.linkfatec.data.repository.UserRepositoryImpl
import com.github.lotaviods.linkfatec.data.remote.client.LoginWebClient
import com.github.lotaviods.linkfatec.data.remote.repository.LoginRepositoryImpl
import com.github.lotaviods.linkfatec.data.reposito... | 0 | Kotlin | 0 | 0 | 8db3f167bea63711bcc25496261200a990a95d64 | 979 | link-fatec-android-app | MIT License |
app/src/main/java/com/vobbla16/mesh/common/localDateTimeToStr.kt | x3lfyn | 654,997,267 | false | {"Kotlin": 369716} | package com.vobbla16.mesh.common
import kotlinx.datetime.LocalDateTime
fun LocalDateTime.toStr() = "${this.date.dayOfMonth.toString().padStart(2, '0')}.${this.date.monthNumber.toString().padStart(2, '0')}.${this.date.year} ${this.time.hour.toString().padStart(2, '0')}:${this.time.minute.toString().padStart(2, '0')}" | 5 | Kotlin | 1 | 6 | f7120e47b483dc1da21125274f34c9570d1fd8b4 | 319 | libremesh | MIT License |
video-sdk/src/test/java/com/kaleyra/video_sdk/ui/chat/DayHeaderTest.kt | KaleyraVideo | 686,975,102 | false | {"Kotlin": 3508517, "Shell": 7470, "Python": 6756, "Java": 1213} | /*
* Copyright 2023 Kaleyra @ https://www.kaleyra.com
*
* 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 applic... | 0 | Kotlin | 0 | 1 | cddad1557475a5326f29bed3ad8926bbef27d79d | 2,160 | VideoAndroidSDK | Apache License 2.0 |
TemplateMethod/src/main/kotlin/AbstractClass.kt | AaronChuang | 208,242,423 | false | null | // 定義完整演算法各步驟及執行順序
abstract class AbstractClass {
fun templateMethod(){
primitiveOperation1()
primitiveOperation2()
}
abstract fun primitiveOperation1()
abstract fun primitiveOperation2()
} | 0 | Kotlin | 0 | 0 | 9e31b8065a7b98e30d93033fae92d0381c17ef34 | 221 | Kotlin-DesignPatternExample | MIT License |
buildSrc/src/main/kotlin/BuildConstants.kt | lukwol | 562,428,336 | false | null | import org.gradle.api.JavaVersion.VERSION_17
object BuildConstants {
const val Group = "io.github.lukwol"
const val VersionName = "1.1.0"
val JavaVersion = VERSION_17
object Modules {
const val NavigationScreens = "navigation-screens"
const val NavigationScreensViewModel = "navigation-... | 2 | null | 0 | 8 | 7a66b5e71be5f7b076b20098aa54e3d52714c39c | 752 | navigation | MIT License |
core/world/src/main/kotlin/app/logdate/core/world/ActivityLocationProvider.kt | WillieCubed | 187,304,507 | false | {"Kotlin": 458147, "Java": 1084} | package app.logdate.core.world
import app.logdate.core.world.model.LogdateActivity
/**
* A location provider that fuses activity and location data.
*
* This domain-layer provider is the interface for observing the current activity and location.
* Data is updated in the background and can be observed by the client... | 0 | Kotlin | 0 | 0 | 51a51bd8c264aecc9190f67ec1fbb56e37b7e9fc | 568 | logdate-mobile | MIT License |
app/src/main/java/com/example/assecoapp/ui/fragments/CustomerDetailsFragment.kt | forceindia712 | 598,618,103 | false | null | package com.example.assecoapp.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import com.example.as... | 0 | Kotlin | 0 | 0 | 06568b80b55b655ed87e724134312e62a3d1cea6 | 2,214 | CustomerApp | Apache License 2.0 |
app/src/main/java/com/cisco/or/activity/login/SelectSigningServiceActivity.kt | CiscoDevNet | 304,088,246 | false | null | package com.cisco.or.activity.login
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import com.cisco.or.R
import com.cisco.or.activity.HomeActivity
import com.cisco.or.sdk.OpenRoaming
import com.cis... | 0 | Kotlin | 0 | 0 | 82c4141188133bb7197cecf6008fe7b171afb706 | 2,930 | DNASpacesSDKSampleApp-Android | Apache License 2.0 |
shared/src/iosMain/kotlin/com.thomaskioko.tvmaniac.shared/IosViewPresenterComponent.kt | thomaskioko | 361,393,353 | false | {"Kotlin": 599244, "Swift": 126057} | package com.thomaskioko.tvmaniac.shared
import com.arkivanov.decompose.ComponentContext
import com.thomaskioko.tvmaniac.navigation.RootNavigationPresenter
import com.thomaskioko.tvmaniac.traktauth.implementation.TraktAuthManagerComponent
import com.thomaskioko.tvmaniac.util.scope.ActivityScope
import me.tatarka.inject... | 5 | Kotlin | 21 | 162 | 5e04de4c0ac091c370ec62e5ced6efaba66e2400 | 687 | tv-maniac | Apache License 2.0 |
src/main/kotlin/me/honkling/mhplus/ktmixins/KTMinecraftClientMixin.kt | honkling | 443,187,122 | false | {"Kotlin": 17858, "Java": 3511} | package me.honkling.mhplus.ktmixins
import me.honkling.mhplus.MHPlus
class KTMinecraftClientMixin {
companion object {
@JvmStatic
fun close() {
MHPlus.instance.settings.write()
}
}
} | 1 | Kotlin | 3 | 4 | b3f1223e95204213e02c004c58dfc552365da9d8 | 228 | MHPlus-Mod | MIT License |
app/src/main/java/com/zhugeng/materialdesign/activity/menu/DrawerNewsActivity.kt | duxiu-chen | 204,873,161 | false | null | package com.zhugeng.materialdesign.activity.menu
import android.app.Activity
import android.graphics.Color
import android.graphics.ColorFilter
import android.graphics.PorterDuff
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.support.design.widget.NavigationView
import android.support... | 1 | null | 1 | 7 | 3a744d27abd7b147d081ce980c96599e7b511eab | 3,461 | Material-Elements | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/ec2/VpnConnectionDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.ec2
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.String
import kotlin.Unit
import software.amazon.awscdk.services.ec2.VpnConnection
import software.amazon.awscdk.services.ec2.VpnConnectionProps
import software.constructs.Constru... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 886 | aws-cdk-kt | Apache License 2.0 |
android/app/src/main/java/com/deange/mechnotifier/compose/Empty.kt | christiandeange | 341,023,692 | false | null | package com.deange.mechnotifier.compose
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
@Composable
fun Empty() {
Spacer(modifier = Modifier.size(0.dp))
} | 0 | Kotlin | 0 | 2 | 5b87d8134ff0ce3e1634b895f82eb018950020ba | 320 | mechnotifier | MIT License |
app/src/main/kotlin/org/skyfaced/noti/database/dao/BaseDao.kt | SkyfaceD | 515,664,120 | false | null | package org.skyfaced.noti.database.dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Update
abstract class BaseDao<T> {
@Insert(onConflict = OnConflictStrategy.REPLACE)
abstract suspend fun insert(entity: T): Long
@Insert(onConflict =... | 0 | Kotlin | 0 | 0 | 877068a566b7af9a8d28dd2103801c517f882ac2 | 672 | noti | MIT License |
app/src/main/java/io/github/wellingtoncosta/customviews/domain/exception/NetworkException.kt | wellingtoncosta | 240,489,091 | false | null | package io.github.wellingtoncosta.customviews.domain.exception
import java.lang.RuntimeException
class NetworkException : RuntimeException("Could not make the http call due an unexpected error.")
| 0 | Kotlin | 0 | 2 | 8a966f718acc687150134c1dee6cca168a721576 | 198 | android-custom-views | MIT License |
impl/misskey/src/main/kotlin/dev/usbharu/multim/misskey/v12/common/MisskeyTimeline.kt | multim-dev | 591,652,793 | false | null | package dev.usbharu.multim.misskey.v12.common
import dev.usbharu.multim.misskey.v12.model.StreamRequest
import dev.usbharu.multim.model.Timeline
data class MisskeyTimeline(
val id: String,
override val name: String,
val channel: StreamRequest.ConnectRequest.Body.Channel
) : Timeline(name)
| 8 | Kotlin | 0 | 7 | daad2d142ae6fa7414acdb6704832a4d477dc41f | 304 | multim | Apache License 2.0 |
test-util-android/src/main/java/org/fnives/test/showcase/android/testutil/activity/ActivityScenarioExtensions.kt | fknives | 356,982,481 | false | null | package org.fnives.test.showcase.android.testutil.activity
import android.app.Activity
import androidx.test.core.app.ActivityScenario
/**
* Workaround for issue: https://github.com/android/android-test/issues/676.
*
* Call this instead of ActivityScenario.close().
*/
fun <T : Activity> ActivityScenario<T>.safeClo... | 9 | Kotlin | 2 | 5 | 5bf503d90e8a13daf5626afc0cdf8bff523d2b94 | 920 | AndroidTest-ShowCase | Apache License 2.0 |
src/main/kotlin/com/fetchapi/files/ApplicationProperties.kt | Alameyo | 422,626,413 | false | {"Kotlin": 10166} | package com.fetchapi.files
import java.util.Properties
class ApplicationProperties {
private val inputStream = this::class.java.getResourceAsStream("/app.properties")
private val properties = Properties().apply {
load(inputStream)
}
fun getValue(propertyName:String) = properties[propertyName]... | 0 | Kotlin | 0 | 0 | 7bbbdeb4b5099eefe6a0df86a8186692d4436091 | 332 | FetchApi | MIT License |
intellij-plugin-structure/tests/src/test/kotlin/com/jetbrains/plugin/structure/teamcity/action/TestData.kt | JetBrains | 3,686,654 | false | {"Kotlin": 2524497, "Java": 253600, "CSS": 1454, "JavaScript": 692} | package com.jetbrains.plugin.structure.teamcity.action
import com.fasterxml.jackson.annotation.JsonProperty
import com.jetbrains.plugin.structure.teamcity.action.TeamCityActionSpec.ActionDescription
import com.jetbrains.plugin.structure.teamcity.action.TeamCityActionSpec.ActionInputDefault
import com.jetbrains.plugin.... | 6 | Kotlin | 38 | 178 | 8be19a2c67854545d719fe56f3677122481b372f | 4,566 | intellij-plugin-verifier | Apache License 2.0 |
libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/incremental/ClasspathSnapshotter.kt | fobo66 | 403,491,284 | false | {"Markdown": 111, "Gradle": 446, "Gradle Kotlin DSL": 558, "Java Properties": 21, "Shell": 52, "Ignore List": 21, "Batchfile": 28, "Git Attributes": 9, "Kotlin": 38553, "Protocol Buffer": 14, "Java": 2601, "Proguard": 13, "Text": 12908, "INI": 178, "XML": 540, "Roff": 217, "Roff Manpage": 38, "AsciiDoc": 1, "YAML": 6, ... | /*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.incremental
import org.jetbrains.kotlin.incremental.*
import org.jetbrain... | 1 | null | 1 | 1 | b71b7abc2bb4c169c826b46abca9f526eaffc284 | 8,616 | kotlin | Apache License 2.0 |
compiler/testData/codegen/box/jvm8/defaults/nonDefaultInheritance/simple2.kt | JetBrains | 3,432,266 | false | null | // TARGET_BACKEND: JVM
// IGNORE_BACKEND_FIR: JVM_IR
// FULL_JDK
// JVM_TARGET: 1.8
// WITH_STDLIB
// MODULE: lib
// !JVM_DEFAULT_MODE: all
// FILE: Foo.kt
interface Foo {
fun toOverride(): List<String> = null!!
fun nonOverride(): List<String> = Thread.currentThread().getStackTrace().map { it.className + ... | 34 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,170 | kotlin | Apache License 2.0 |
VolleySampleApp/app/src/main/java/com/lazypotato/volleysampleapp/data/model/LocalUser.kt | eishon | 346,190,149 | false | null | package com.lazypotato.volleysampleapp.data.model
data class LocalUser(var name: String)
| 1 | Kotlin | 1 | 1 | 5bb1c98644ee46c9ce108c9e8af7f3b4ba55fdcf | 90 | Android-Samples | MIT License |
octicons/src/commonMain/kotlin/compose/icons/octicons/History24.kt | DevSrSouza | 311,134,756 | false | null | package com.woowla.compose.icon.collections.octicons.octicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 3,222 | compose-icons | MIT License |
library/src/main/java/com/bigcreate/library/Network.kt | lihongwen1 | 277,768,492 | true | {"Kotlin": 631709, "Java": 1099} | package com.bigcreate.library
import android.annotation.TargetApi
import android.app.Application
import android.app.DownloadManager
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.net.NetworkInfo
import android.net.wifi.WifiManager
import andr... | 0 | null | 0 | 0 | 1daecfa286190935a6c9b8eef46ec13911cce830 | 3,174 | ProjectZYFW | Apache License 2.0 |
extension-overlay/src/main/kotlin/fr/o80/twitck/overlay/events/EventsHolder.kt | olivierperez | 283,750,838 | false | null | package fr.o80.twitck.overlay.events
import fr.o80.twitck.overlay.model.LwjglEvent
import java.util.*
class EventsHolder(
private val maxSize: Int
) {
private val _events = LinkedList<LwjglEvent>()
val events: List<LwjglEvent> get() = _events.toList()
fun record(event: LwjglEvent) {
if (_ev... | 0 | Kotlin | 1 | 5 | bb2828260ae6837f87ebb71bce11e383be514f53 | 415 | TwitckBot | Apache License 2.0 |
specs/spring-cloud-contract-spec-kotlin/src/main/kotlin/org/springframework/cloud/contract/spec/internal/CommonDsl.kt | spring-cloud | 60,979,397 | false | null | /*
* Copyright 2013-2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 84 | null | 438 | 719 | 011719228a07f9826f3a993cd20f793a281fb7ed | 7,752 | spring-cloud-contract | Apache License 2.0 |
alertview/src/main/java/com/irozon/alertview/enums/AlertActionStyle.kt | Hamadakram | 125,224,240 | false | null | package co.utils.alertview.enums
/**
* Created by hammad.akram on 3/14/18.
*/
enum class AlertActionStyle {
POSITIVE,
NEGATIVE,
DEFAULT
} | 14 | null | 48 | 268 | 7bbfade45258d8afeb0a514bc3462f900ab352c2 | 152 | AlertView | Apache License 2.0 |
nebulosa-phd2-client/src/main/kotlin/nebulosa/phd2/client/event/GuidingStopped.kt | tiagohm | 568,578,345 | false | null | package nebulosa.phd2.client.event
object GuidingStopped : PHD2Event
| 2 | Kotlin | 0 | 2 | 9ccdfa8049d8ff034d282c065e71aec1a6ea6ab8 | 70 | nebulosa | MIT License |
app/src/main/java/com/stocksexchange/android/database/tables/AlertPriceTable.kt | nscoincommunity | 277,168,471 | true | {"Kotlin": 2814235} | package com.stocksexchange.android.database.tables
import com.stocksexchange.android.database.daos.AlertPriceDao
import com.stocksexchange.android.database.model.DatabaseAlertPrice
import com.stocksexchange.android.database.tables.base.BaseTable
import com.stocksexchange.android.mappings.mapToDatabaseAlertPriceList
im... | 0 | null | 0 | 0 | 52766afab4f96506a2d9ed34bf3564b6de7af8c3 | 1,799 | Android-app | MIT License |
app/src/main/java/com/hegesoftware/snookerscore/domain/usecases/GetPlayerInTurn.kt | Henkkagg | 611,836,646 | false | null | package com.hegesoftware.snookerscore.domain.usecases
import com.hegesoftware.snookerscore.data.BreakDb
import javax.inject.Inject
class GetPlayerInTurn @Inject constructor() {
operator fun invoke(breakDb: BreakDb): Int {
return if (breakDb.breakId % 2 == 1) 1 else 2
}
} | 0 | Kotlin | 0 | 0 | 4c2a96c64c9edea1f44689e75697a8af3cb47588 | 291 | SnookerScore | Apache License 2.0 |
core/src/jvmMain/kotlin/live/MutableLive.kt | aSoft-Ltd | 345,266,100 | false | null | package live
import functions.Function1
import live.internal.DEFAULT_HISTORY_CAPACITY
import kotlin.jvm.JvmOverloads
import kotlin.jvm.JvmStatic
import kotlin.jvm.JvmSynthetic
@Deprecated("use cinematic instead")
actual interface MutableLive<S> : Live<S> {
actual override val history: MutableList<S>
actual o... | 0 | null | 1 | 2 | c71ec769818d33593298482002d4b11c7b3f1c66 | 944 | live | MIT License |
app/src/main/java/com/franzliszt/magicmusic/bean/search/HotSearch.kt | FranzLiszt-1847 | 753,088,527 | false | {"Kotlin": 879960, "Java": 1923} | package com.franzliszt.magicmusic.bean.search
data class HotSearch(
val first: String,
val iconType: Int,
val second: Int,
val third: Any
) | 0 | Kotlin | 1 | 1 | dcbc4c0cb9c0478e617423812712659df52a3b7d | 156 | MagicPlayer | Apache License 2.0 |
src/main/kotlin/com/github/kyzylsy/cryptography/rsa/model/RSAKeyPair.kt | kyzylsy | 133,613,780 | false | null | package com.github.kyzylsy.cryptography.rsa.model
import java.security.PrivateKey
import java.security.PublicKey
import java.util.*
/**
* @author LSteven
* @date 2018/5/16 下午4:15.
*/
class RSAKeyPair constructor(val publicKey: PublicKey,
val privateKey: PrivateKey) {
fun binaryPub... | 0 | Kotlin | 0 | 0 | c27ca8731504010f79793178812cb1280f5c1a98 | 565 | cryptography-helper | MIT License |
src/Day01.kt | Tiebe | 579,377,778 | false | {"Kotlin": 17146} | fun main() {
fun part1(input: List<String>): MutableList<Int> {
val sumList = mutableListOf(0)
var index = 0
input.forEach {
if (it == "") { index++; sumList.add(0) }
else {
sumList[index] += it.toInt()
}
}
return sumList
... | 1 | Kotlin | 0 | 0 | afe9ac46b38e45bd400e66d6afd4314f435793b3 | 900 | advent-of-code | Apache License 2.0 |
build-logic/conventions/src/main/kotlin/modulecheck/builds/DependencyGuardConventionPlugin.kt | rickbusarow | 316,627,145 | false | null | /*
* Copyright (C) 2021-2023 Rick Busarow
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 76 | null | 7 | 129 | 5934de0bc8edc688b088324437b05a974073267e | 2,622 | ModuleCheck | Apache License 2.0 |
app/src/main/java/com/example/custom_snackbar/ui/MainActivity.kt | kishandonga | 170,486,665 | false | {"Kotlin": 30328, "Java": 135} | package com.example.custom_snackbar.ui
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.custom_snackbar.databinding.ActivityMainBinding
import com.example.custom_snackbar.utils.themeConst
class MainActivity : AppCompatActivity() {
private l... | 1 | Kotlin | 1 | 12 | fb9fe9f7c0ba0626520b510f545633581726fd06 | 1,287 | custom-snackbar | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.