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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resource-discovery/src/test/kotlin/com/openraven/mimir/services/ElasticSearchService.kt | openraven | 272,810,377 | false | null | /**
* ***********************************************************
* Copyright, 2020, Open Raven Inc.
* APACHE LICENSE, VERSION 2.0
* https://www.openraven.com/legal/apache-2-license
* *********************************************************
*/
package com.openraven.mimir.services
import org.springframework.cont... | 1 | Kotlin | 1 | 5 | 495dd561044fb2886213a4db95c5e9d7f26de9e0 | 571 | aws-config-discovery | Apache License 2.0 |
app/src/main/java/com/beebeeoii/snapsolvesudoku/utils/FileDeletor.kt | Beebeeoii | 276,865,742 | false | null | package com.beebeeoii.snapsolvesudoku.utils
import java.io.File
object FileDeletor {
fun deleteFileOrDirectory(fileOrDirectory: File) {
if (fileOrDirectory.isDirectory) {
for (childDirectory in fileOrDirectory.listFiles()) {
deleteFileOrDirectory(childDirectory)
}
... | 0 | null | 3 | 2 | b53e40cee7b61b41c4d47f4d7fba2f463be9129a | 371 | snap-solve-sudoku | MIT License |
app/src/main/java/com/demo/openweather/forecast/data/model/Forecast.kt | madhu2b4u | 229,975,551 | false | null | package com.demo.openweather.forecast.data.model
data class Forecast(
val clouds: Clouds,
val dt: Int,
val dt_txt: String,
val main: Main,
val rain: Rain,
val sys: Sys,
val weather: List<Weather>,
val wind: Wind
):ListItem() {
override fun getType() = ItemType.TYPE_GENERAL
} | 0 | Kotlin | 0 | 0 | 3ee9d026114791e2792f6d319f50b9dda53a3aa5 | 312 | OpenWeather | The Unlicense |
kotest-framework/kotest-framework-api/src/commonMain/kotlin/io/kotest/core/listeners/DiscoveryListener.kt | kotest | 47,071,082 | false | null | package io.kotest.core.listeners
import io.kotest.core.descriptors.Descriptor
import io.kotest.core.descriptors.DescriptorId
interface DiscoveryListener {
/**
* Is invoked after all the [Spec] classes have been discovered.
* This callback will be called after any [DiscoveryExtension]s have been invoked.
... | 5 | null | 458 | 3,190 | 891222e8ba4885bb5fe24421d80e40fd78daceee | 622 | kotest | Apache License 2.0 |
app/src/main/java/com/fredprojects/helloworld/ui/Extensions.kt | FredNekrasov | 832,214,231 | false | {"Kotlin": 173987} | package com.fredprojects.helloworld.ui
import android.content.Context
import android.widget.Toast
fun Context.displayToast(textId: Int) {
Toast.makeText(this, getString(textId), Toast.LENGTH_SHORT).show()
} | 0 | Kotlin | 0 | 1 | 6220fea2fa0b513e93b28ef18647a95612c7d7f0 | 212 | jetpack-compose-projects | MIT License |
app/src/main/java/dev/leonardini/rehcorder/ui/RecordingFragment.kt | LorenzoLeonardini | 502,564,439 | false | {"Kotlin": 155580} | package dev.leonardini.rehcorder.ui
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.vectordrawable.graphics.drawable.Animatable2Comp... | 9 | Kotlin | 1 | 0 | bef7810a1eb039ed60edffda22a561281f4744e4 | 3,807 | Rehcorder | MIT License |
shared/src/commonMain/kotlin/Screens.kt | victorteit | 650,283,440 | false | null | package ui.theme
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.material.Button
import ... | 0 | Kotlin | 0 | 0 | c03dd487a5c05540c720bc6bc88b58ef3a95d3f6 | 1,868 | composeMulti | Apache License 2.0 |
android/app/src/main/java/com/algorand/android/modules/swap/assetswap/ui/usecase/AssetSwapToAssetUpdatedUseCase.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 3,836 | pera-wallet | Apache License 2.0 |
src/commonMain/kotlin/epicarchitect/breakbadhabits/screens/habits/dashboard/HabitDetailsStatisticsData.kt | epicarchitect | 502,453,185 | false | {"Kotlin": 260243, "Swift": 548} | package epicarchitect.breakbadhabits.screens.habits.dashboard
import epicarchitect.breakbadhabits.Environment
import epicarchitect.breakbadhabits.uikit.StatisticData
import epicarchitect.breakbadhabits.database.HabitEventRecord
import epicarchitect.breakbadhabits.datetime.averageDuration
import epicarchitect.breakbadh... | 2 | Kotlin | 1 | 31 | b88392d0c5341c897e4ec11fe903d8eca9cb71b2 | 2,936 | breakbadhabits | MIT License |
password/app/src/androidTest/java/gparap/apps/password/MainActivityInstrumentedTest.kt | gparap | 253,560,705 | false | null | /*
* Copyright 2021 gparap
*
* 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... | 1 | null | 1 | 7 | 51d5ab4cca0de79d2c8b42a3b481687cf13e4cde | 2,080 | android | Apache License 2.0 |
couchbase-lite/src/nativeMain/kotlin/kotbase/ReplicatorProgress.native.kt | jeffdgr8 | 518,984,559 | false | {"Kotlin": 2266831, "Python": 294} | /*
* Copyright 2022-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 ... | 0 | Kotlin | 0 | 7 | ec8fbeb0d3e6c487ec8fb48ba2ba5388c71a29b1 | 980 | kotbase | Apache License 2.0 |
app/src/main/java/pl/arturborowy/example/examples/gridview/wholeviewclickable/ExampleWholeViewClickableGridViewAdapter.kt | ArturBorowy | 188,580,962 | false | null | package pl.arturborowy.example.examples.gridview.wholeviewclickable
import android.widget.TextView
import pl.arturborowy.adapters.gridview.clickable.WholeViewClickableGridViewAdapter
import pl.arturborowy.example.R
class ExampleWholeViewClickableGridViewAdapter :
WholeViewClickableGridViewAdapter<String, Text... | 0 | Kotlin | 0 | 5 | d2090995f767d1c10fc8cdb1eca6cbc1df031ed6 | 544 | total-adapters | MIT License |
app/src/main/java/com/app/desafiodourado/core/timermanager/TimerManager.kt | maeceloacm1998 | 722,401,741 | false | {"Kotlin": 241571} | package com.app.desafiodourado.core.timermanager
import kotlinx.coroutines.flow.Flow
interface TimerManager {
fun observeCountdown(): Flow<String>
fun startCountDown()
fun stopCountDown()
fun restartCountDown()
} | 0 | Kotlin | 0 | 0 | f2c977108a5fd70d8aef972e4d464449b27269c6 | 230 | Desafio-Dourado | MIT License |
services/service/src/main/kotlin/service/login/data/model/LoginEntity.kt | radityagumay | 299,516,443 | false | null | package service.login.data.model
data class LoginEntity(
val email: String,
val authEntity: AuthEntity
) | 0 | Kotlin | 0 | 3 | f6e9e4b75f3db771b826a0140b976ddb10110c59 | 113 | learning-ktor | Apache License 2.0 |
services/service/src/main/kotlin/service/login/data/model/LoginEntity.kt | radityagumay | 299,516,443 | false | null | package service.login.data.model
data class LoginEntity(
val email: String,
val authEntity: AuthEntity
) | 0 | Kotlin | 0 | 3 | f6e9e4b75f3db771b826a0140b976ddb10110c59 | 113 | learning-ktor | Apache License 2.0 |
modern-treasury-kotlin-core/src/test/kotlin/com/moderntreasury/api/models/LegalEntityAssociationTest.kt | Modern-Treasury | 665,762,762 | false | null | // File generated from our OpenAPI spec by Stainless.
package com.moderntreasury.api.models
import java.time.LocalDate
import java.time.OffsetDateTime
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
class LegalEntityAssociationTest {
@Test
fun createLegalEntityAssociation... | 1 | null | 2 | 2 | 776a9b5bb0c3057643ba163b01fdcc14a92e3941 | 10,834 | modern-treasury-kotlin | MIT License |
app/src/main/kotlin/de/of14/dev/proverviewforbitbucket/App.kt | PhilTdr | 306,390,428 | false | null | package de.of14.dev.proverviewforbitbucket
import com.google.gson.Gson
import com.google.gson.GsonBuilder
import de.of14.dev.proverviewforbitbucket.model.local.OutputFormat
import de.of14.dev.proverviewforbitbucket.model.local.OutputFormat.Companion.toOutputFormat
import de.of14.dev.proverviewforbitbucket.model.local.... | 0 | Kotlin | 0 | 2 | 71e94656e1b477b5f3cdd8c64afd9aa984e05e4c | 13,781 | pr-overview-for-bitbucket | Apache License 2.0 |
app/src/main/java/com/project/newsapp/model/LoginResponseModel.kt | dansiapa | 345,953,684 | false | null | package com.project.newsapp.model
class LoginResponseModel {
var status: String? = null
var userModel: UserModel? = null
} | 0 | Kotlin | 0 | 0 | f5f0a241e0e2e061cdfc5098dffe762a3ea03d3f | 131 | Breaking-News_fail | Apache License 2.0 |
src/main/kotlin/no/fg/hilflingbackend/repository/GangRepository.kt | Fotogjengen | 206,387,255 | false | null | package no.fg.hilflingbackend.repository
import me.liuwj.ktorm.database.Database
import me.liuwj.ktorm.dsl.QueryRowSet
import me.liuwj.ktorm.entity.add
import me.liuwj.ktorm.entity.update
import no.fg.hilflingbackend.dto.GangDto
import no.fg.hilflingbackend.dto.GangId
import no.fg.hilflingbackend.dto.toEntity
import n... | 6 | Kotlin | 0 | 0 | 06b2305d720b79b2ea13458284f9d6d445375193 | 941 | hilfling-photo-backend | MIT License |
app/src/main/java/com/novenosemestre/ai_lens/RA_Objects2/ml/MainActivity2.kt | Mgodoyd | 808,287,244 | false | {"Kotlin": 146357, "Java": 101644, "GLSL": 5356} | package com.novenosemestre.ai_lens.RA_Objects2
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.google.ar.core.CameraConfig
import com.google.ar.core.CameraConfigFilter
import com.google.ar.core.Config
import com.google.ar.core.exam... | 1 | Kotlin | 0 | 0 | 932698c943eef53a72cf6bc973c3fad300f52d88 | 5,232 | AI-lens-F | MIT License |
android/src/main/kotlin/com/billcoding/flutter_sbox/core/PlatformInterfaceWrapper.kt | billcoding | 845,621,598 | false | {"Kotlin": 80676, "C++": 23425, "CMake": 14394, "Dart": 5102, "Ruby": 4477, "Swift": 4077, "C": 1295, "AIDL": 547, "Objective-C": 38} | package com.billcoding.flutter_sbox.core
import android.content.pm.PackageManager
import android.os.Build
import android.os.Process
import androidx.annotation.RequiresApi
import com.billcoding.flutter_SboxContext.core.DefaultNetworkMonitor
import com.billcoding.flutter_sbox.SBox
import io.nekohasekai.libbox.InterfaceU... | 0 | Kotlin | 0 | 1 | 746da1f15f1419b00bcb64fd8cb82fd5c4d45aaf | 4,910 | flutter_sbox | Apache License 2.0 |
subprojects/android-test/test-inhouse-runner/src/main/kotlin/com/avito/android/runner/TestRunEnvironment.kt | StanlyT | 344,157,673 | true | {"Kotlin": 2773538, "HTML": 121161, "Shell": 17522, "Python": 14168, "Makefile": 7187, "Dockerfile": 7134} | package com.avito.android.runner
import androidx.core.content.ContextCompat
import androidx.test.platform.app.InstrumentationRegistry
import com.avito.android.elastic.ElasticConfig
import com.avito.android.log.ElasticConfigFactory
import com.avito.android.runner.annotation.resolver.HostAnnotationResolver
import com.av... | 0 | Kotlin | 0 | 0 | 96463f7714c0550e331d2a37fb32ad98fac9d62d | 8,949 | avito-android | MIT License |
app/src/main/java/xyz/teamgravity/todo/data/local/todo/entity/TodoEntity.kt | raheemadamboev | 330,992,280 | false | null | package xyz.teamgravity.todo.data.local.todo.entity
import androidx.room.Entity
import androidx.room.PrimaryKey
import xyz.teamgravity.todo.data.local.todo.constant.TodoConst
import java.util.*
@Entity(tableName = TodoConst.TABLE_TODO)
data class TodoEntity(
@PrimaryKey(autoGenerate = true)
val _id: Long = 0... | 1 | Kotlin | 1 | 23 | 96298543526893f1cd93ce878fce72c0a7aceb73 | 456 | todo-app | Apache License 2.0 |
app/src/main/java/com/acxdev/poolguardapps/ui/main/ActivityMain.kt | dodyac | 606,656,789 | false | null | package com.acxdev.poolguardapps.ui.main
import androidx.activity.viewModels
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.lifecycle.lifecycleScope
import androidx.viewpager2.widget.ViewPager2
import com.acxdev.commonFunction.adapter.ViewPager2Adapter
import com.acxdev.commonFunction.commo... | 0 | Kotlin | 0 | 1 | effd2aa0ac41e81f8b4684c97d5e9c1f2b30542a | 4,350 | Poolguard | MIT License |
app/src/main/java/com/example/eduthon_aimers/Donation/Donor.kt | coder2699 | 292,840,462 | false | null | package com.example.eduthon_aimers.Donation
data class Donor(
var DonorName:String,
var DonorEmailAddress:String,
var DonorPhoneNumber:Long,
var DonorAddress:String,
var DonorCity:String,
var DonorState:String,
var DonorPinCode:Int,
var DonorItem:String
) | 1 | null | 1 | 1 | 75bee3bf4a26d5e255f87bec379bcc349e18374d | 289 | Eduthon2020-Aimers | MIT License |
src/main/kotlin/com/lykke/matching/engine/services/AssetOrderBook.kt | LykkeCity | 52,304,364 | false | null | package com.lykke.matching.engine.services
import com.lykke.matching.engine.daos.LimitOrder
import com.lykke.matching.engine.services.utils.AbstractAssetOrderBook
import java.math.BigDecimal
import java.util.*
import java.util.concurrent.PriorityBlockingQueue
open class AssetOrderBook(assetId: String) : AbstractAsset... | 5 | Kotlin | 16 | 31 | 937b360b10d461e444ebc7133dd9ab6b64ae4cb5 | 2,505 | MatchingEngine | MIT License |
app/src/main/java/pl/temomuko/autostoprace/domain/model/Competition.kt | TeMoMuKo | 49,103,797 | false | null | package pl.temomuko.autostoprace.domain.model
data class Competition(
val id: Long,
val name: String,
val description: String
)
| 2 | null | 1 | 2 | 1524b18324b56591d6ca50f5230d0d6c3a82e561 | 141 | AutoStopRace-Android | Apache License 2.0 |
app/src/main/java/app/utils/Preferences.kt | AndreyShpilevou | 525,789,850 | false | {"Java Properties": 2, "YAML": 2, "Gradle": 4, "Shell": 1, "Markdown": 1, "Git Attributes": 1, "Batchfile": 1, "Text": 3, "Ignore List": 1, "Proguard": 4, "XML": 62, "Java": 872, "HTML": 9, "JAR Manifest": 1, "GLSL": 8, "Makefile": 1, "C++": 41, "C": 110, "Kotlin": 45} | package app.utils
import android.annotation.SuppressLint
import android.content.Context
class Preferences(context: Context) {
private val pref = context.getSharedPreferences("pref", Context.MODE_PRIVATE)
fun contains(key: String) = pref.contains(key)
fun getString(key: String, default: String?) : Strin... | 1 | null | 1 | 1 | c8fd5077b2900e15ad7e3a1dbba54972e4e67684 | 851 | ME-to-Android | Apache License 2.0 |
plugins/kotlin/base/fir/analysis-api-providers/test/org/jetbrains/kotlin/idea/fir/analysis/providers/testProjectStructure/TestProjectStructureReader.kt | ingokegel | 72,937,917 | true | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.fir.analysis.providers.testProjectStructure
import com.google.gson.JsonObject
import com.google.gson.JsonParser
import com.intellij.openapi.util.io.FileUtil
import ... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 1,669 | intellij-community | Apache License 2.0 |
library/src/test/kotlin/com/drakeet/multitype/OneToManyBuilderTest.kt | drakeet | 64,845,938 | false | null | /*
* Copyright (c) 2016-present. <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 agr... | 12 | Kotlin | 755 | 5,643 | 84cd8fad89b0c6df661f32afae3b090cbf0cb0f5 | 3,569 | MultiType | Apache License 2.0 |
storage/src/main/kotlin/org/bitlap/storage/store/AbsBitlapStore.kt | gitter-badger | 371,559,946 | true | {"Java": 1169543, "Kotlin": 102468} | package org.bitlap.storage.store
import org.apache.hadoop.conf.Configuration
import org.apache.hadoop.fs.FileSystem
import org.apache.hadoop.fs.Path
import org.bitlap.common.BitlapProperties
/**
* Desc:
*
* TODO: Add a store provider
*
* Mail: <EMAIL>
* Created by IceMimosa
* Date: 2020/12/23
*/
abstract clas... | 0 | null | 0 | 0 | 457ae0c39778660b0c880eeefd5f492c27208d2d | 746 | bitlap | MIT License |
plugins/markdown/frontmatter/src/main/kotlin/org/intellij/plugins/markdown/frontmatter/header/FrontMatterHeaderJsonSchemaProviderFactory.kt | ingokegel | 72,937,917 | true | null | package org.intellij.plugins.markdown.frontmatter.header
import com.intellij.openapi.project.Project
import com.jetbrains.jsonSchema.extension.JsonSchemaFileProvider
import com.jetbrains.jsonSchema.extension.JsonSchemaProviderFactory
internal class FrontMatterHeaderJsonSchemaProviderFactory: JsonSchemaProviderFactory... | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 489 | intellij-community | Apache License 2.0 |
matisse/src/main/java/com/matisse/listener/OnSelectedListener.kt | NFLeo | 147,306,780 | false | null | package com.matisse.listener
import android.net.Uri
/**
* Created by Lijianyou on 2018-09-07.
* @author Lijianyou
*/
interface OnSelectedListener {
/**
* @param uriList the selected item [Uri] list.
* @param pathList the selected item file path list.
*/
fun onSelected(uriList: List<Uri>, pa... | 11 | null | 20 | 163 | 0187da2d10f5a2c5f3c4e3e3f006f5e2bbda3c28 | 343 | Matisse-Kotlin | Apache License 2.0 |
app/src/main/java/com/battlelancer/seriesguide/ui/theme/Color.kt | UweTrottmann | 1,990,682 | false | {"Gradle Kotlin DSL": 7, "PowerShell": 1, "Text": 3, "Markdown": 14, "Java Properties": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Git Attributes": 1, "YAML": 5, "TOML": 1, "INI": 1, "Proguard": 2, "XML": 403, "JSON": 11, "Kotlin": 408, "Java": 170} | package com.battlelancer.seriesguide.ui.theme
import androidx.compose.ui.graphics.Color
// Compose Material 3 colors, should match the XML colors in colors_md.xml
// Generated using https://material-foundation.github.io/material-theme-builder/
val seed = Color(0xFF6545A0)
val white = Color(0xFFFFFFFF)
val sg_color_b... | 50 | Kotlin | 399 | 1,920 | 20bb18d5310046b0400f8b9dc105334f9212f226 | 4,267 | SeriesGuide | Apache License 2.0 |
app/src/main/java/com/charlag/promind/ui/component/new_hint/NewHintPresenterImpl.kt | charlag | 83,122,828 | false | null | package com.charlag.promind.ui.component.new_hint
import com.charlag.promind.core.data.models.UserHint
import com.charlag.promind.core.apps.AppsSource
import com.charlag.promind.core.data.models.Action
import com.charlag.promind.core.data.models.Condition
import com.charlag.promind.core.data.source.ConditionDAO
import... | 0 | Kotlin | 0 | 1 | 4b8ca32de1d83fadf0bc37d7390915ec7a2d67dd | 4,923 | Promind | MIT License |
app/src/main/java/com/tcqq/placepicker/utils/ConvertUtils.kt | tcqq | 149,872,546 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 2, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 25, "XML": 34, "Java": 2} | package com.tcqq.placepicker.utils
import android.content.Context
import android.location.Location
import java.text.NumberFormat
/**
* @author <NAME>
* @since 29/07/2018 Created
*/
object ConvertUtils {
/**
* Value of dp to value of px.
*/
fun dp2px(context: Context, dpValue: Float): Int {
... | 0 | Kotlin | 0 | 1 | 20480b0bd086b540aca7da6ae01de45a332ca8c1 | 2,735 | PlacePicker | Apache License 2.0 |
navigation-toolbar-example/src/main/kotlin/com/ramotion/navigationtoolbar/example/FABBehavior.kt | Ramotion | 115,700,894 | false | null | package com.ramotion.showroom.examples.navigationtoolbar
import android.content.Context
import android.support.design.widget.AppBarLayout
import android.support.design.widget.CoordinatorLayout
import android.support.design.widget.FloatingActionButton
import android.util.AttributeSet
import android.view.View
class FAB... | 4 | null | 155 | 813 | 4706c15209dff67e3f5ce191211fbb87dedfd13d | 1,566 | navigation-toolbar-android | MIT License |
compiler/frontend.java/src/org/jetbrains/kotlin/load/java/sam/SamConversionResolverImpl.kt | zeesh49 | 421,687,586 | true | {"Markdown": 35, "XML": 959, "Ant Build System": 52, "Ignore List": 8, "Git Attributes": 1, "Kotlin": 26923, "Java": 4721, "Protocol Buffer": 7, "Text": 5622, "JavaScript": 156, "JAR Manifest": 3, "Roff": 191, "Roff Manpage": 19, "AsciiDoc": 1, "INI": 40, "HTML": 250, "Groovy": 23, "Java Properties": 14, "Gradle": 145,... | /*
* Copyright 2010-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 0 | Java | 0 | 1 | 55508afb8caa6009af9995eb473ca0eef3dbd9be | 2,643 | kotlin | Apache License 2.0 |
idea/testData/jetPsiMatcher/types/_functional2.kt | develar | 4,304,550 | false | null | // NOT_EQUAL
val x: String.(b: Boolean) -> Int | 0 | null | 1 | 1 | bf5b387580265cba01efc8fd30d1d0c0b41ac5a9 | 46 | kotlin | Apache License 2.0 |
jsonrpc-app/src/main/kotlin/org/apache/tuweni/jsonrpc/app/JSONRPCConfig.kt | Consensys | 693,991,624 | true | {"SVG": 2, "Java Properties": 2, "Markdown": 64, "Gradle": 64, "Shell": 3, "EditorConfig": 1, "YAML": 13760, "Git Attributes": 1, "Batchfile": 1, "Text": 33, "Ignore List": 2, "Git Config": 1, "Kotlin": 393, "TOML": 8, "Java": 443, "XML": 18, "JSON": 17343, "JavaScript": 4, "CSS": 1, "HTML": 8, "SQL": 5, "INI": 3, "ANT... | // Copyright The Tuweni Authors
// SPDX-License-Identifier: Apache-2.0
package org.apache.tuweni.jsonrpc.app
import org.apache.tuweni.config.Configuration
import org.apache.tuweni.config.PropertyValidator
import org.apache.tuweni.config.SchemaBuilder
import java.nio.file.Path
import java.nio.file.Paths
import java.uti... | 1 | Java | 2 | 0 | d780a654afc90f5fd3c16540d592259487e0a190 | 5,735 | tuweni | Apache License 2.0 |
simple-stack-example-mvp-fragments/src/main/java/com/zhuinden/simplestackdemoexamplefragments/application/injection/SingletonComponent.kt | shakil807g | 163,143,390 | true | {"Java Properties": 2, "Markdown": 5, "Shell": 1, "Batchfile": 1, "Proguard": 13, "Java": 192, "Kotlin": 130} | package com.zhuinden.simplestackdemoexamplefragments.application.injection
import android.content.Context
import android.content.res.Resources
import com.zhuinden.simplestack.Backstack
import com.zhuinden.simplestackdemoexamplefragments.data.manager.DatabaseManager
import com.zhuinden.simplestackdemoexamplefragments.d... | 0 | Java | 0 | 0 | c4de94ab09bcf7d26e64e5ace21f69ae29cdcf30 | 2,010 | simple-stack | Apache License 2.0 |
Chapter03/alumni-news-08-complete/src/main/kotlin/com/packtpub/alumni/controller/University.kt | PacktPublishing | 160,150,334 | false | null | package com.packtpub.alumni.controller
import com.packtpub.alumni.model.University
import com.packtpub.alumni.repository.UniversityRepository
import io.ktor.application.call
import io.ktor.http.HttpStatusCode
import io.ktor.request.receive
import io.ktor.response.respond
import io.ktor.routing.*
fun Route.university(... | 1 | null | 3 | 9 | 1baaea5d264d0d6a88438e3146a20f1f9baca15c | 1,693 | Hands-On-RESTful-Web-Services-with-Kotlin | MIT License |
src/main/kotlin/com/odim/simulator/dsl/Override.kt | ODIM-Project | 355,910,204 | false | null | /*
* Copyright (c) Intel Corporation
*
* 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 agree... | 1 | Kotlin | 0 | 7 | 7e8a3030ca83c040678f8edf76def588b2b01cca | 4,709 | BMCSimulator | Apache License 2.0 |
src/test/kotlin/org/rust/ide/intentions/RsIntentionsTest.kt | torkleyy | 80,337,528 | false | {"Gradle": 2, "YAML": 2, "INI": 1, "Markdown": 6, "Shell": 2, "Text": 93, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "Java Properties": 1, "Rust": 360, "XML": 58, "HTML": 81, "RenderScript": 2, "TOML": 14, "Kotlin": 481, "Java": 5, "SVG": 3, "JFlex": 3} | package org.rust.ide.intentions
import org.rust.lang.RsTestBase
class RsIntentionsTest : RsTestBase() {
override val dataPath = "org/rust/ide/intentions/fixtures/"
fun testContractModule() = checkByDirectory {
openFileInEditor("other/mod.rs")
myFixture.launchAction(ContractModuleIntention())... | 1 | null | 1 | 1 | 9f545171d9c40b5e223e3c85a4d6bcdcb2aac3d0 | 329 | intellij-rust | MIT License |
src/commonMain/kotlin/faraday/derived/ElectricCapacitance.kt | Amagi82 | 289,812,027 | false | null | package faraday.derived
import faraday.Units
/**
* Capacitance is the ratio of the change in electric charge of a system to the corresponding change
* in its electric potential. There are two closely related notions of capacitance: self capacitance
* and mutual capacitance. Any object that can be electrically char... | 0 | Kotlin | 0 | 0 | f0096176d1ae7d8a1c45f7d2493ba6f61c236936 | 2,075 | Faraday | Apache License 2.0 |
android/core/data/src/main/java/com/jaino/data/repository/review/ReviewRepository.kt | pknu-wap | 615,959,763 | false | null | package com.jaino.data.repository.review
import com.jaino.data.model.review.ReviewRequest
import com.jaino.model.review.Review
interface ReviewRepository {
suspend fun getReviewList(drinkId : Long): Result<List<Review>>
suspend fun postReview(drinkId: Long, review : ReviewRequest) : Result<Unit>
} | 1 | Kotlin | 3 | 9 | f2144cb5f19d0617b146b94fcc3058f330f2df41 | 309 | 2023_1_WAT_BeJuRyu | MIT License |
src/test/kotlin/com/github/solairerove/algs4/leprosorium/linked_list/PalindromeLinkedListTest.kt | solairerove | 282,922,172 | false | {"Kotlin": 251919} | package com.github.solairerove.algs4.leprosorium.linked_list
import io.kotest.core.spec.style.StringSpec
import io.kotest.data.blocking.forAll
import io.kotest.data.row
import io.kotest.matchers.shouldBe
class PalindromeLinkedListTest : StringSpec({
"if the linked list is palindrome" {
forAll(
... | 1 | Kotlin | 0 | 3 | 64c1acb0c0d54b031e4b2e539b3bc70710137578 | 1,837 | algs4-leprosorium | MIT License |
server/src/main/kotlin/com/yawa/server/security/SecurityConfig.kt | gmarciani | 345,413,960 | false | {"JavaScript": 4051388, "CSS": 2529242, "TypeScript": 1506761, "HTML": 1414689, "SCSS": 398715, "Kotlin": 118522, "Python": 17133, "Shell": 3528, "Dockerfile": 3009} | package com.yawa.server.security
import com.yawa.server.models.users.UserRole
import com.yawa.server.security.authentication.AnonymousAuthenticationFilter
import com.yawa.server.security.authentication.JwtTokenFilter
import com.yawa.server.security.authentication.UserInfoService
import com.yawa.server.security.authori... | 6 | JavaScript | 2 | 2 | 218ab8900587314499dc89e07abf8697ec0025bb | 6,320 | yawa | MIT License |
src/main/kotlin/g2001_2100/s2054_two_best_non_overlapping_events/Solution.kt | javadev | 190,711,550 | false | {"Kotlin": 4901773, "TypeScript": 50437, "Python": 3646, "Shell": 994} | package g2001_2100.s2054_two_best_non_overlapping_events
// #Medium #Array #Dynamic_Programming #Sorting #Binary_Search #Heap_Priority_Queue
// #2023_06_25_Time_851_ms_(100.00%)_Space_108.7_MB_(50.00%)
class Solution {
fun maxTwoEvents(events: Array<IntArray>): Int {
events.sortWith { a: IntArray, b: IntA... | 0 | Kotlin | 20 | 43 | 471d45c60f669ea1a2e103e6b4d8d54da55711df | 1,234 | LeetCode-in-Kotlin | MIT License |
android/buildSrc/src/main/kotlin/BuildConfigs.kt | opensrp | 339,242,809 | false | {"Kotlin": 2537659, "Java": 4967, "JavaScript": 3320, "CSS": 459} | object BuildConfigs {
const val minSdk = 26
const val compileSdk = 34
const val targetSdk = 34
const val versionCode = 11
const val versionName = "2.0.0"
const val applicationId = "org.smartregister.opensrp"
const val jvmToolchain = 17
const val kotlinCompilerExtensionVersion = "1.5.8"
... | 191 | Kotlin | 39 | 50 | 804cf101f47b08f947709509996e8cf8e6f4fc64 | 397 | fhircore | Apache License 2.0 |
app/src/main/java/com/aarondeveloper/ticketing/presentation/screens/partidos/IndexPartidosScreen.kt | aaron-developer25 | 853,943,695 | false | {"Kotlin": 275520} | package com.aarondeveloper.ticketing.presentation.screens.partidos
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose... | 0 | Kotlin | 0 | 0 | 31a393b10e2ad5ebbba18dc292d70385b6684f3c | 9,298 | Ticketing | MIT License |
domain/src/main/java/com/annguyen/dmed/domain/utils/ComicUtils.kt | anguyenqd | 508,005,129 | false | {"Kotlin": 60860} | package com.annguyen.dmed.domain.utils
import com.annguyen.dmed.domain.model.Comic
fun Comic.getBackgroundUrl() = "${imageUrl}/background.$imageUrlExtension".ensureHttps()
fun Comic.getOriginalUrl() = "${imageUrl}/clean.$imageUrlExtension".ensureHttps()
fun Comic.getThumbnailUrl() = "${imageUrl}/standard_fantastic.$i... | 0 | Kotlin | 0 | 0 | 3e5af25a08ac11cd2f7d33377834d48a86f61f88 | 456 | dmedexplorer | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/modules/backuplocal/password/BackupLocalPassword.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.modules.backuplocal.password
import android.widget.Toast
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout... | 58 | null | 347 | 693 | aa896cc9c13b9c425bdcda05f0159234c9e1727c | 7,751 | unstoppable-wallet-android | MIT License |
comscoresample/src/main/java/com/bitmovin/player/integration/comscoresample/IMATags.kt | bitmovin | 159,061,056 | false | null | package com.bitmovin.player.integration.comscoresample
object IMATags {
const val AD_SOURCE_1 = "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_c... | 0 | Kotlin | 1 | 1 | 0f0b6732be302334910769531df06ae45fee2f50 | 1,190 | bitmovin-player-android-integrations-comscore | MIT License |
library/src/jsMain/kotlin/com/lightningkite/kiteui/root.kt | lightningkite | 778,386,343 | false | {"Kotlin": 2224994, "Swift": 7449, "Ruby": 4925, "CSS": 4562, "HTML": 4084, "HCL": 880, "JavaScript": 302, "Objective-C": 142, "C": 104, "Shell": 49} | package com.lightningkite.kiteui
import com.lightningkite.kiteui.models.Theme
import com.lightningkite.kiteui.models.ThemeDerivation
import com.lightningkite.kiteui.reactive.CalculationContext
import com.lightningkite.kiteui.reactive.invoke
import com.lightningkite.kiteui.views.*
import kotlinx.browser.document
import... | 3 | Kotlin | 0 | 2 | 58ee76ab3e8e7cab71e65a18c302367c6a641da5 | 870 | kiteui | Apache License 2.0 |
shared/src/commonMain/kotlin/com/joetr/bundle/ui/connection/ConnectionScreen.kt | j-roskopf | 730,016,308 | false | null | package com.joetr.bundle.ui.connection
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.Crossfade
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.found... | 0 | null | 0 | 6 | c0c924fa4d5b63cd25c080e857e591ace4eac13c | 17,464 | Rockabye | MIT License |
compose/src/wasmMain/org/hertsig/compose/component/richtext/RichStringBuilder.wasm.kt | jorn86 | 663,109,146 | false | {"Kotlin": 104803, "Java": 135} | package org.hertsig.compose.component.richtext
// let's see if this compiles when we actually enable this source set again
@JsFun("(uri) => { window.open(uri, '_blank') }")
private external fun open(uri: String)
actual fun RichStringBuilder.link(text: String, uri: String, id: String, style: SpanStyle): RichStringBui... | 0 | Kotlin | 0 | 0 | e2e40eea9e365283c93df3b289255b3144e5203f | 385 | kotlin-library | MIT License |
src/commonUtils/Factory.kt | pallocate | 410,322,434 | false | null | package pef.utils
import pef.parseAsHex
import pef.PasswordProvider
import pef.eco.Target
import pef.par.*
object Factory
{
private val passwordProvider = object : PasswordProvider {override fun password () = "<PASSWORD>" }
private val salt = "<PASSWORD>".parseAsHex()
val contact = KContact(
5L,
... | 0 | Kotlin | 0 | 0 | 5a551a7c12ac22f517a8e6c386ae666c22c181ae | 933 | pef | MIT License |
PayByBank/src/main/java/com/ecospend/paylinksdk/data/remote/model/payment/request/PaymentCreateRefundRequest.kt | ecospend | 517,957,223 | false | null | package com.ecospend.paybybank.data.remote.model.payment.request
import com.ecospend.paybybank.data.remote.model.paylink.PayByBankAccountRequest
import com.ecospend.paybybank.data.remote.model.paylink.PayByBankCurrency
import com.google.gson.annotations.SerializedName
data class PaymentCreateRefundRequest(
/**
... | 0 | Kotlin | 0 | 4 | a35e8ecdd793db92f09df6ff9723a38516e86ad7 | 1,475 | PayByBankSDK-Android | Apache License 2.0 |
flowbinding-android/src/main/java/reactivecircus/flowbinding/android/view/ViewLongClickedFlow.kt | ReactiveCircus | 201,777,295 | false | null | package reactivecircus.flowbinding.android.view
import android.view.View
import androidx.annotation.CheckResult
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.callbackFlow
import kotlinx.coroutines.flo... | 6 | null | 43 | 894 | 25e5b9723211d37c3cb36daae8649cc1d603691a | 1,077 | FlowBinding | Apache License 2.0 |
src/main/kotlin/kotlinmud/quest/type/QuestRequirement.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.quest.type
import kotlinmud.mob.model.PlayerMob
interface QuestRequirement {
val questRequirementType: QuestRequirementType
val amount: Int
fun doesSatisfy(mob: PlayerMob): Boolean
}
| 0 | Kotlin | 1 | 9 | b7ee0d21ae813990896b1b8c6703da9bd1f1fc5b | 216 | kotlinmud | MIT License |
app/src/main/java/nawrot/mateusz/lausannefleet/di/ViewModelModule.kt | mateusz-nawrot | 161,166,079 | false | null | package nawrot.mateusz.lausannefleet.di
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import nawrot.mateusz.lausannefleet.presentation.map.MapViewModel
@Module
abstract class ViewModelModule {
@Binds
... | 0 | Kotlin | 0 | 0 | 419ad899a080e828a66ab38b481f5a351c4755cb | 572 | lausanne-fleet | MIT License |
app/src/main/java/com/example/nytimesmostpopulararticles_mvvm_kotlin/data/local/db/DbRepository.kt | ravi-kumar7 | 277,583,433 | true | {"Kotlin": 50846} | package com.example.nytimesmostpopulararticles_mvvm_kotlin.data.local.db
import androidx.lifecycle.LiveData
import com.example.nytimesmostpopulararticles_mvvm_kotlin.data.model.Result
import com.example.nytimesmostpopulararticles_mvvm_kotlin.data.model.db.Article
import kotlinx.coroutines.CoroutineDispatcher
import ko... | 0 | null | 0 | 0 | f09e8730f118e469949c2e7c65246a99ffb3647f | 1,151 | NYTimesMostPopularArticles_MVVM_Kotlin | Apache License 2.0 |
src/main/kotlin/dev/domnikl/schema_registry_gitops/state/Applier.kt | domnikl | 324,245,338 | false | null | package dev.domnikl.schema_registry_gitops.state
import dev.domnikl.schema_registry_gitops.Compatibility
import dev.domnikl.schema_registry_gitops.SchemaRegistryClient
import dev.domnikl.schema_registry_gitops.Subject
import dev.domnikl.schema_registry_gitops.diff
import io.confluent.kafka.schemaregistry.ParsedSchema
... | 7 | null | 8 | 59 | 56ff460350f02815bc493926758be60928bab584 | 2,764 | schema-registry-gitops | Apache License 2.0 |
uix-pages/src/main/java/me/shouheng/uix/pages/rate/RatingManager.kt | fg2q1q3q | 375,986,738 | false | {"C++": 4855567, "CMake": 538827, "Kotlin": 359069, "C": 295144, "Java": 56875, "Objective-C": 7348, "Makefile": 5336} | package me.shouheng.uix.pages.rate
import android.graphics.Typeface
import android.support.v4.app.FragmentManager
import android.view.Gravity
import me.shouheng.uix.common.anno.BottomButtonPosition
import me.shouheng.uix.common.anno.DialogStyle
import me.shouheng.uix.common.bean.TextStyleBean
import me.shouheng.uix.co... | 0 | C++ | 0 | 0 | 0549366a465e038ab6288ed910b2f74128669ef6 | 7,067 | Android-uix | Apache License 2.0 |
Proxy/src/main/kotlin/Main.kt | dellius-alexander | 787,782,187 | false | {"Kotlin": 37096} | package org.example
interface BankAccount {
fun getBalance(): Int
fun withdraw(amount: Int): Boolean
fun deposit(amount: Int)
}
class RealBankAccount : BankAccount {
private var balance = 5000 // Initial balance
override fun getBalance(): Int {
return balance
}
override fun withdra... | 0 | Kotlin | 0 | 0 | 635b7e10f3c4c20db90a3310cc90de9f433b186b | 1,466 | Design-Patterns | MIT License |
shared/src/commonMain/kotlin/com/mbta/tid/mbta_app/map/style/SymbolLayer.kt | mbta | 718,216,969 | false | {"Kotlin": 1202861, "Swift": 588291, "Ruby": 4129, "Shell": 4012} | package com.mbta.tid.mbta_app.map.style
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.JsonPrimitive
import kotlinx.serialization.json.buildJsonObject
import kotlinx.serialization.json.put
data class SymbolLayer(override val id: String, override val source: String) : Layer() {
overr... | 10 | Kotlin | 0 | 2 | a297274ef7b3fada48721a049d2540241facfe90 | 2,342 | mobile_app | MIT License |
idea/testData/intentions/conventionNameCalls/replaceInvoke/valueAndFunctionLiteralInvoke.kt | JakeWharton | 99,388,807 | true | null | fun test() {
class Test {
operator fun invoke(a: Int, fn: () -> Unit) {}
}
val test = Test()
test.i<caret>nvoke(0) {
}
}
| 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 150 | kotlin | Apache License 2.0 |
src/main/kotlin/com/aeolus/core/usecase/interpreter/InterpreterService.kt | team-aeolus | 668,382,094 | false | null | package com.aeolus.core.usecase.interpreter
import com.aeolus.core.usecase.interpreter.domain.InterpreterBatchParameter
import com.aeolus.core.usecase.interpreter.domain.InterpreterBatchDetail
import org.springframework.stereotype.Service
@Service
class InterpreterService(private val interpreterBatchService: Interpre... | 0 | Kotlin | 0 | 0 | be9bca77f166baa339962c6f3264beb164f91dfb | 612 | aeolus-service | MIT License |
tulip/libtulip-persistence-android/src/main/kotlin/com/tajmoti/tulip/adapter/tmdb/TmdbMovieDbAdapter.kt | Tajmoti | 391,138,914 | false | null | package com.tajmoti.tulip.adapter.tmdb
import com.tajmoti.libtulip.model.key.MovieKey
import com.tajmoti.tulip.adapter.DbAdapter
import com.tajmoti.tulip.dao.tmdb.TmdbMovieDao
import com.tajmoti.tulip.entity.tmdb.TmdbMovie
import kotlinx.coroutines.flow.Flow
class TmdbMovieDbAdapter : DbAdapter<TmdbMovieDao, MovieKey... | 6 | Kotlin | 0 | 0 | 5f1a6a4a5432981535313710f0037726c80118b8 | 717 | Tulip | MIT License |
tulip/libtulip-persistence-android/src/main/kotlin/com/tajmoti/tulip/adapter/tmdb/TmdbMovieDbAdapter.kt | Tajmoti | 391,138,914 | false | null | package com.tajmoti.tulip.adapter.tmdb
import com.tajmoti.libtulip.model.key.MovieKey
import com.tajmoti.tulip.adapter.DbAdapter
import com.tajmoti.tulip.dao.tmdb.TmdbMovieDao
import com.tajmoti.tulip.entity.tmdb.TmdbMovie
import kotlinx.coroutines.flow.Flow
class TmdbMovieDbAdapter : DbAdapter<TmdbMovieDao, MovieKey... | 6 | Kotlin | 0 | 0 | 5f1a6a4a5432981535313710f0037726c80118b8 | 717 | Tulip | MIT License |
backend/src/main/kotlin/com/github/davinkevin/podcastserver/service/ImageService.kt | rrymm | 188,617,315 | true | {"HTML": 20676268, "Kotlin": 946925, "TypeScript": 162734, "JavaScript": 95206, "Java": 76050, "CSS": 26948, "Shell": 5639, "Dockerfile": 3085, "Smarty": 328} | package com.github.davinkevin.podcastserver.service
import arrow.core.Try
import arrow.core.getOrElse
import com.github.davinkevin.podcastserver.entity.Cover
import org.slf4j.LoggerFactory
import org.springframework.stereotype.Service
import java.io.InputStream
import javax.imageio.ImageIO
/**
* Created by kevin on ... | 0 | HTML | 0 | 0 | 65533e8c266cdd929fa199f0d53a60117641199e | 1,127 | Podcast-Server | Apache License 2.0 |
src/test/kotlin/systems/ajax/malov/stockanalyzer/mapper/QuoteMapperTest.kt | ajax-malov-n | 841,964,113 | false | {"Kotlin": 26008, "Dockerfile": 246} | package systems.ajax.malov.stockanalyzer.mapper
import QuoteFixture.quote
import StockFixture.TEST_STOCK_SYMBOL
import StockFixture.testDate
import StockFixture.unsavedStock
import org.junit.jupiter.api.Test
import systems.ajax.malov.stockanalyzer.mapper.QuoteMapper.toStock
import kotlin.test.assertEquals
class Quote... | 1 | Kotlin | 0 | 0 | 2156a9dab427de7bd3d786db565634fb7796f38f | 540 | stockanalyzer | MIT License |
app/src/test/java/com/example/kolejarz/cook/RecipeDAOTest.kt | Kolejarzyk | 156,083,019 | false | null | package com.example.kolejarz.cook
import com.example.kolejarz.DAO.RecipeDao
import com.example.kolejarz.model.Recipe
import org.junit.Assert
import org.junit.Before
import org.junit.Test
import java.util.*
class RecipeDAOTest {
var recipes = RecipeDao()
@Before
fun Before()
{
val recipe1 = Re... | 0 | Kotlin | 0 | 0 | bbf564846386c403954057c46b7aba573bcf756d | 1,711 | ProjectCook | MIT License |
api/coroutines/v1.5.4/src/commonMain/kotlin/dev/whyoleg/ktd/api/custom/SetCustomLanguagePack.kt | whyoleg | 202,767,670 | false | null | @file:Suppress(
"unused"
)
@file:UseExperimental(
BotsOnly::class,
TestingOnly::class
)
package dev.whyoleg.ktd.api.custom
import dev.whyoleg.ktd.*
import dev.whyoleg.ktd.api.*
import dev.whyoleg.ktd.api.TdApi.*
/**
* Adds or changes a custom local language pack to the current localization target
*
* ... | 7 | Kotlin | 11 | 45 | 7284eeabef0bd002dc72634351ab751b048900e9 | 996 | ktd | Apache License 2.0 |
api/coroutines/v1.5.4/src/commonMain/kotlin/dev/whyoleg/ktd/api/custom/SetCustomLanguagePack.kt | whyoleg | 202,767,670 | false | null | @file:Suppress(
"unused"
)
@file:UseExperimental(
BotsOnly::class,
TestingOnly::class
)
package dev.whyoleg.ktd.api.custom
import dev.whyoleg.ktd.*
import dev.whyoleg.ktd.api.*
import dev.whyoleg.ktd.api.TdApi.*
/**
* Adds or changes a custom local language pack to the current localization target
*
* ... | 7 | Kotlin | 11 | 45 | 7284eeabef0bd002dc72634351ab751b048900e9 | 996 | ktd | Apache License 2.0 |
bg/src/main/java/me/wsj/bg/bean/WeatherBean.kt | wsjAliYun | 283,814,909 | false | null | package me.wsj.bg.bean
data class WeatherBean(val code: Int, val name: String) | 3 | Java | 74 | 514 | da4cba77a13cf10878c388bc67d96f9bc8a4230d | 79 | kms | Apache License 2.0 |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/vision/BasicPipeline.kt | LincolnRoboticsFTC14298 | 540,653,062 | false | {"Kotlin": 210193, "Java": 150037, "HTML": 18885, "JavaScript": 6894, "CMake": 606, "C++": 599} | package org.firstinspires.ftc.teamcode.vision
import org.firstinspires.ftc.teamcode.vision.modules.Filter
import org.firstinspires.ftc.teamcode.vision.modulelib.InputModule
import org.firstinspires.ftc.teamcode.vision.modulelib.ModularPipeline
import org.firstinspires.ftc.teamcode.vision.modules.ColorConverter
import ... | 0 | Kotlin | 2 | 2 | 22f70612dd68abf083437f806be235af2db4b5fb | 1,147 | Robotics2022-23 | BSD 3-Clause Clear License |
chronos/src/main/java/com/microsoft/chronos/stream/ContextProvider.kt | microsoft | 623,834,515 | false | null | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
package com.microsoft.chronos.stream
interface CallerContext
/**
* CallerContext can be provided by any external implementer for [MeasureEvent]
* The below implementation provides
*/
interface ContextProvider<I> {
/**
* Generate [... | 0 | Kotlin | 0 | 4 | 72d895aa5e3f1db65afcbf3a5fe23cdfdbe3d235 | 462 | chronos | MIT License |
sample/shared/src/commonMain/kotlin/com/mxalbert/zoomable/sample/WindowInsets.kt | mxalbert1996 | 375,905,351 | false | {"Kotlin": 51013} | package com.mxalbert.zoomable.sample
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.runtime.Composable
import androidx.compose.runtime.NonRestartableComposable
@get:Composable
@get:NonRestartableComposable
internal expect val WindowInsets.Companion.safeDrawing: WindowInsets
| 3 | Kotlin | 15 | 126 | 598f8c1e51ece70edabd05b6bf8d4bebcec9ed4d | 309 | Zoomable | MIT License |
app/src/main/java/app/nexd/android/ui/auth/register/RegisterViewModel.kt | dakna | 256,348,087 | false | null | package app.nexd.android.ui.auth.register
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import app.nexd.android.Preferences
import app.nexd.android.R
import app.nexd.android.api
import app.nexd.android.api.model.RegisterDto
import io.reactivex.andro... | 1 | null | 1 | 1 | 6adc2b8c3205751aa65dd0284c725a63c89469ac | 4,073 | nexd-android | MIT License |
app/src/main/java/com/hms/quickline/ui/MainActivity.kt | Explore-In-HMS | 519,198,080 | false | {"Kotlin": 190120, "Java": 6564} | /*
* Copyright 2022. Explore in HMS. 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
*
* Unless required by applic... | 0 | Kotlin | 1 | 5 | 5711f868442a1ca52259419a0e87c2761e051ded | 7,360 | QuickLine | Apache License 2.0 |
app/src/main/java/com/leony/app/ricknmorty/data/helper/IntroductionManager.kt | veronicalw | 512,367,388 | false | null | package com.leony.app.ricknmorty.data.helper
import android.content.Context
import android.content.SharedPreferences
/**
* This class is responsible for storing state of the first launch to the shared preferences.
* Needed by the IntroductionActivity
*/
class IntroductionManager(context: Context) {
companion o... | 0 | Kotlin | 0 | 0 | e58ca2d3987080136509b20be588333100fb17d7 | 906 | RicknMorty | Apache License 2.0 |
app/src/main/java/com/ando/file/sample/ui/selector/FileSelectMultiImageActivity.kt | javakam | 274,135,104 | false | null | package com.ando.file.sample.ui.selector
import android.annotation.SuppressLint
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import ando.file.core.*
import ando.file.core.FileGlobal.OVER_LIMIT_EXCEPT_ALL
import ando.file.core.FileGlobal.O... | 2 | null | 96 | 995 | 898d72b4012a30d65d26c2ab9ed8ef1c5a4cb76c | 7,536 | FileOperator | Apache License 2.0 |
app/src/main/java/ru/tinkoff/news/orm/NewsDatabase.kt | nikitosbobin | 185,379,960 | false | null | package ru.tinkoff.news.orm
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import ru.tinkoff.news.model.CacheMarker
import ru.tinkoff.news.model.FavouriteMarker
import ru.tinkoff.news.model.NewsItemDetails
import ru.tinkoff.news.model.NewsItemTitle
import ru.tinkoff... | 0 | Kotlin | 0 | 0 | aff0d4858776d4363a44f5fbdc1fd1b51200cf52 | 984 | tinkoff-news | Apache License 2.0 |
src/main/kotlin/org/yinwang/pysonar/ast/BinOp.kt | lice-lang | 110,064,855 | false | null | package org.yinwang.pysonar.ast
class BinOp(var op: Op, var left: Node, var right: Node, file: String, start: Int, end: Int) : Node(NodeType.BINOP, file, start, end) {
init {
addChildren(left, right)
}
override fun toString() = "($left $op $right)"
}
| 1 | null | 1 | 1 | 1f8fd89c13d96919391887fbb5399ed6aba51f72 | 258 | pysonar2 | BSD Zero Clause License |
platform-velocity/src/main/kotlin/taboolib/platform/VelocityAdapter.kt | Eric-liucn | 390,798,602 | true | {"Kotlin": 651932, "Java": 574954} | package taboolib.platform
import com.velocitypowered.api.command.CommandSource
import com.velocitypowered.api.event.EventHandler
import com.velocitypowered.api.event.ResultedEvent
import com.velocitypowered.api.event.ResultedEvent.GenericResult
import com.velocitypowered.api.proxy.Player
import taboolib.common.platfor... | 0 | null | 0 | 0 | afc040bbc2f059e0c5c9578c87f1ed603428a12f | 3,184 | TabooLib | MIT License |
plugin-build/plugin/src/main/java/com/ncorti/ktfmt/gradle/FormattingOptionsBean.kt | cortinico | 312,611,660 | false | null | package com.ncorti.ktfmt.gradle
import com.facebook.ktfmt.format.FormattingOptions
import com.facebook.ktfmt.format.FormattingOptions.Companion.DEFAULT_MAX_WIDTH
import com.facebook.ktfmt.format.FormattingOptions.Style as KtfmtStyle
import java.io.Serializable
internal data class FormattingOptionsBean(
/** The s... | 4 | Kotlin | 9 | 95 | 07f4805fdaf947fbf83ee9a9b75d54450da1ec06 | 2,063 | ktfmt-gradle | MIT License |
app/src/main/java/com/example/projetfinal/data/LocalPreferences.kt | pietersdavid | 359,259,597 | false | null | package com.example.projetfinal.data
import android.content.Context
import android.content.SharedPreferences
// LocalPreferences allow to save data in the smartphone with persistence
class LocalPreferences private constructor(context: Context) {
// Instantiate a sharedpreferences object
private val sharedPre... | 0 | Kotlin | 0 | 0 | 001408f84585d5bca5aea5f294c17675c727f6a7 | 1,778 | ProjetFinal | MIT License |
src/main/kotlin/frc/team449/control/OI.kt | blair-robot-project | 589,121,499 | false | null | package frc.team449.control
import edu.wpi.first.math.kinematics.ChassisSpeeds
/**
* An Operator Input (OI) that gets the desired ChassisSpeeds to give a drivetrain
*/
fun interface OI {
fun get(): ChassisSpeeds
}
| 0 | null | 1 | 2 | e7b9a8acd742ddea80e0c440292c442ddb3719ba | 221 | robot2023 | MIT License |
compose/ui-layout/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/layout/project/Interactable.kt | Woody230 | 388,189,330 | false | {"Kotlin": 3122860} | package com.bselzer.ktx.compose.ui.layout.project
import androidx.compose.ui.Modifier
import com.bselzer.ktx.compose.ui.layout.modifier.interactable.InteractableModifier
interface Interactable {
/**
* The [Modifier]s.
*/
val modifier: InteractableModifier
} | 2 | Kotlin | 0 | 7 | 50901f7b1ff6211ad09b857e098386238496cbe8 | 277 | KotlinExtensions | Apache License 2.0 |
src/main/kotlin/PropertySource.kt | chrisdenman | 322,961,604 | false | null | package uk.co.ceilingcat.rrd.monolith
import arrow.core.Either.Companion.conditionally
import java.util.Properties
typealias PropertyName = String
typealias PropertyValue = String
interface PropertySource {
fun getEither(propertyName: PropertyName): ErrorOrPropertyValue
}
val createPropertySource: (Properties) ... | 0 | Kotlin | 0 | 0 | ba9012b3d887003a1283a05b2d0c1b387a8e4714 | 737 | rrd-monolith | The Unlicense |
app/src/main/java/com/haznedar/myvocabularynotebook/presentation/navigation/bottombar/ScaffoldBottomNavGraph.kt | Ryuk-C | 489,960,381 | false | null | package com.haznedar.myvocabularynotebook.presentation.navigation.bottombar
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.runtime.remember
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.hilt.navigation.co... | 0 | Kotlin | 2 | 8 | ccc5a14da3eedc2768b67acd1efd9dee4036f017 | 1,281 | Jetpack-Compose-Login-Sample | The Unlicense |
src/main/kotlin/org/eclipse/tractusx/managedidentitywallets/services/BusinessPartnerDataServiceImpl.kt | catenax-ng | 479,400,946 | false | {"Kotlin": 555210, "Vue": 7760, "TypeScript": 3723, "Shell": 1702, "HTML": 1459, "Dockerfile": 420, "JavaScript": 109} | /********************************************************************************
* Copyright (c) 2021,2022 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are m... | 8 | Kotlin | 1 | 3 | eb38a5ff9af8fd32863c42838c70463c8c6538c5 | 22,883 | product-core-managed-identity-wallets | Apache License 2.0 |
libraries/swipeLayout/src/main/java/com/yjpapp/swipelayout/adapters/PagingSwipeAdapter.kt | YoonJaePark3908 | 274,878,228 | false | null | package com.yjpapp.swipelayout.adapters
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.yjpapp.swipelayout.SwipeLayout
import com.yjpapp.swipelayout.implments.SwipeItemMangerImpl
import com.yjpapp.swipelayout.implments.Sw... | 0 | Kotlin | 0 | 3 | 4bd3aeb1fa38ad71ed8e841006b1fde58a4a5224 | 1,812 | StockPortfolio | Apache License 2.0 |
liblogic/src/test/kotlin/com/pacoworks/dereference/features/draganddrop/DragAndDropBindTest.kt | tmtron | 134,143,973 | true | {"Kotlin": 157502, "Java": 59904} | /*
* Copyright (c) pakoito 2016
*
* 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 | 0 | 0 | 149b5a7efdae8c6b1c9f0cf5a44edc30e890fe58 | 2,430 | FunctionalAndroidReference | Apache License 2.0 |
feature/movies/src/robolectricTest/kotlin/io/petros/movies/movies/list/MoviesPagingAdapterRobolectricTest.kt | ParaskP7 | 148,126,048 | false | null | package io.petros.movies.movies.list
import androidx.recyclerview.widget.RecyclerView
import io.mockk.every
import io.mockk.mockk
import io.mockk.spyk
import io.mockk.verify
import io.petros.movies.androidtest.context.TestContextProvider.context
import io.petros.movies.androidtest.runner.CustomRobolectricTestRunner
im... | 16 | null | 22 | 144 | 59cc4606e5fe5d343a6c2b194af148623fe25e88 | 2,880 | sample-code-movies | Apache License 2.0 |
src/main/kotlin/com/sifsstudio/botjs/client/gui/screen/widget/ScriptEditBox.kt | SFS-Studio | 767,568,026 | false | {"Kotlin": 80305} | package com.sifsstudio.botjs.client.gui.screen.widget
import net.minecraft.Util
import net.minecraft.client.gui.Font
import net.minecraft.client.gui.GuiGraphics
import net.minecraft.client.gui.components.AbstractScrollWidget
import net.minecraft.client.gui.components.MultilineTextField
import net.minecraft.client.gui.... | 0 | Kotlin | 0 | 1 | c2f4f7d08addfa736157e8455eb154049439d2ea | 12,639 | BotJS | MIT License |
app/src/main/java/com/jumptuck/recipebrowser2/recipelist/RecipeTitleAdapter.kt | szczys | 274,737,154 | false | null | package com.jumptuck.recipebrowser2.recipelist
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.jumptuck.recipebrowser2.database.Recipe
import com.jum... | 8 | Kotlin | 0 | 1 | 92f98850db84442a2175cc64998b08ce9330d952 | 1,936 | RecipeBrowser | MIT License |
app/src/main/java/ru/maxim/barybians/data/network/model/mapper/ChatDtoMapper.kt | maximborodkin | 286,116,912 | false | null | package ru.maxim.barybians.data.network.model.mapper
import ru.maxim.barybians.data.network.model.ChatDto
import ru.maxim.barybians.domain.DomainMapper
import ru.maxim.barybians.domain.model.Chat
import javax.inject.Inject
class ChatDtoMapper @Inject constructor(
private val userDtoMapper: UserDtoMapper,
priv... | 0 | Kotlin | 1 | 5 | 033704d0e141bce002800c6bc00fd19983acc99f | 979 | Barybians-Android-App | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.