commit stringlengths 40 40 | old_file stringlengths 4 236 | new_file stringlengths 4 236 | old_contents stringlengths 1 3.26k | new_contents stringlengths 16 4.43k | subject stringlengths 16 624 | message stringlengths 17 3.29k | lang stringclasses 5
values | license stringclasses 13
values | repos stringlengths 5 91.5k |
|---|---|---|---|---|---|---|---|---|---|
1145eb0d56d1bc4393544265c6308bddc0d0a787 | src/test/java/com/fundynamic/d2tm/game/entities/units/TestableRenderableWithFacingLogic.java | src/test/java/com/fundynamic/d2tm/game/entities/units/TestableRenderableWithFacingLogic.java | package com.fundynamic.d2tm.game.entities.units;
import com.fundynamic.d2tm.game.entities.EntityData;
import org.mockito.Mockito;
import org.newdawn.slick.Image;
public class TestableRenderableWithFacingLogic extends RenderableWithFacingLogic {
public TestableRenderableWithFacingLogic(Image image, EntityData ent... | package com.fundynamic.d2tm.game.entities.units;
import com.fundynamic.d2tm.game.entities.EntityData;
import org.mockito.Mockito;
import org.newdawn.slick.Image;
public class TestableRenderableWithFacingLogic extends RenderableWithFacingLogic {
public TestableRenderableWithFacingLogic(Image image, EntityData ent... | Fix tests by stubbing out two methods requiring a real image | Fix tests by stubbing out two methods requiring a real image
| Java | mit | Fundynamic/dune2themaker4j,Fundynamic/dune2themaker4j |
7942b21def39731496fc503c15a3e344ddec9db3 | src/test/java/com/librato/metrics/SourceInformationTest.java | src/test/java/com/librato/metrics/SourceInformationTest.java | package com.librato.metrics;
import junit.framework.Assert;
import junit.framework.TestCase;
import java.util.regex.Pattern;
public class SourceInformationTest extends TestCase {
public void testHandlesNullRegex() throws Exception {
SourceInformation info = SourceInformation.from(null, "foo");
A... | package com.librato.metrics;
import junit.framework.Assert;
import junit.framework.TestCase;
import java.util.regex.Pattern;
public class SourceInformationTest extends TestCase {
public void testHandlesNullRegex() throws Exception {
SourceInformation info = SourceInformation.from(null, "foo");
A... | Test for discarding text before and after the source match | Test for discarding text before and after the source match
| Java | apache-2.0 | librato/metrics-librato |
7fc0758f7db4b636c50aa2e70ec27626c94f3681 | src/test/java/org/sagebionetworks/bridge/sdk/ConfigTest.java | src/test/java/org/sagebionetworks/bridge/sdk/ConfigTest.java | package org.sagebionetworks.bridge.sdk;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.sagebionetworks.bridge.sdk.Config;
public class ConfigTest {
@Test
public void createConfig() {
... | package org.sagebionetworks.bridge.sdk;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import org.junit.Ignore;
import org.junit.Test;
import org.sagebionetworks.bridge.sdk.Config;
public class ConfigTest {
@Test
public v... | Disable this test which doesn't work probably for environmental reasons | Disable this test which doesn't work probably for environmental reasons
| Java | apache-2.0 | Sage-Bionetworks/BridgeJavaSDK,DwayneJengSage/BridgeJavaSDK,alxdarksage/BridgeJavaSDK,DwayneJengSage/BridgeJavaSDK,alxdarksage/BridgeJavaSDK,Sage-Bionetworks/BridgeJavaSDK |
26fe6c25ab7dbb62d5d345874058ae10b1c5e154 | src/main/java/io/github/bonigarcia/wdm/RegisterChrome.java | src/main/java/io/github/bonigarcia/wdm/RegisterChrome.java | /*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
*
* 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 require... | /*
* (C) Copyright 2017 Boni Garcia (http://bonigarcia.github.io/)
*
* 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 require... | Remove version when registering Chrome node in Selenium Hub | Remove version when registering Chrome node in Selenium Hub
| Java | apache-2.0 | bonigarcia/webdrivermanager-examples,bonigarcia/webdrivermanager-examples |
aacd131aadb0ce730477688cb4be0b36020ea281 | app/src/main/java/de/fau/amos/virtualledger/android/api/shared/RetrofitCallback.java | app/src/main/java/de/fau/amos/virtualledger/android/api/shared/RetrofitCallback.java | package de.fau.amos.virtualledger.android.api.shared;
import android.util.Log;
import io.reactivex.subjects.PublishSubject;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class RetrofitCallback<T> implements Callback<T> {
private static final String TAG = RetrofitCallback.cl... | package de.fau.amos.virtualledger.android.api.shared;
import android.util.Log;
import java.io.IOException;
import io.reactivex.subjects.PublishSubject;
import retrofit2.Call;
import retrofit2.Callback;
import retrofit2.Response;
public class RetrofitCallback<T> implements Callback<T> {
private static final Str... | Use IOException instead of Throwable for not successful http status | Use IOException instead of Throwable for not successful http status
| Java | apache-2.0 | BankingBoys/amos-ss17-proj7,BankingBoys/amos-ss17-proj7 |
3d25f3d1c33afd8c75f6de2d03c6b10dbadf2141 | android/src/main/java/io/branch/rnbranch/RNBranchPackage.java | android/src/main/java/io/branch/rnbranch/RNBranchPackage.java | package io.branch.rnbranch;
import java.util.*;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
public class RNBranchPa... | package io.branch.rnbranch;
import java.util.*;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.JavaScriptModule;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
public class RNBranchPa... | Remove depreciated createJSModules @ovveride marker | Remove depreciated createJSModules @ovveride marker | Java | mit | BranchMetrics/react-native-branch,BranchMetrics/react-native-branch-deep-linking,BranchMetrics/react-native-branch,BranchMetrics/react-native-branch-deep-linking,BranchMetrics/react-native-branch,BranchMetrics/react-native-branch-deep-linking,BranchMetrics/react-native-branch,BranchMetrics/react-native-branch,BranchMet... |
93bb276a1990f80fa88c6c72bb7d1e1cf7e62bf9 | src/test/java/com/uwetrottmann/thetvdb/services/AuthenticationTest.java | src/test/java/com/uwetrottmann/thetvdb/services/AuthenticationTest.java | package com.uwetrottmann.thetvdb.services;
import com.uwetrottmann.thetvdb.BaseTestCase;
import com.uwetrottmann.thetvdb.entities.LoginData;
import com.uwetrottmann.thetvdb.entities.Token;
import org.junit.Test;
public class AuthenticationTest extends BaseTestCase {
private static final String API_KEY = "";
... | package com.uwetrottmann.thetvdb.services;
import com.uwetrottmann.thetvdb.BaseTestCase;
import com.uwetrottmann.thetvdb.entities.LoginData;
import com.uwetrottmann.thetvdb.entities.Token;
import org.junit.Test;
public class AuthenticationTest extends BaseTestCase {
private static final String API_KEY = "";
... | Add API key error when testing login. | Add API key error when testing login.
| Java | unlicense | UweTrottmann/thetvdb-java |
8172baddc789a607b33ca581d5866d7fdaa9b53a | SingularityService/src/main/java/com/hubspot/singularity/data/history/BlendedHistoryHelper.java | SingularityService/src/main/java/com/hubspot/singularity/data/history/BlendedHistoryHelper.java | package com.hubspot.singularity.data.history;
import java.util.List;
import com.google.common.collect.Lists;
public abstract class BlendedHistoryHelper<T> {
protected abstract List<T> getFromZk();
protected abstract List<T> getFromHistory(int historyStart, int numFromHistory);
public List<T> getBlendedHi... | package com.hubspot.singularity.data.history;
import java.util.List;
import com.google.common.collect.Lists;
public abstract class BlendedHistoryHelper<T> {
protected abstract List<T> getFromZk();
protected abstract List<T> getFromHistory(int historyStart, int numFromHistory);
public List<T> getBlendedHi... | Fix max when lots of tasks are in ZK | Fix max when lots of tasks are in ZK
| Java | apache-2.0 | hs-jenkins-bot/Singularity,grepsr/Singularity,calebTomlinson/Singularity,calebTomlinson/Singularity,HubSpot/Singularity,grepsr/Singularity,tejasmanohar/Singularity,tejasmanohar/Singularity,grepsr/Singularity,andrhamm/Singularity,tejasmanohar/Singularity,mjball/Singularity,andrhamm/Singularity,acbellini/Singularity,stev... |
22869a76a5d867d63478c2910511a5bfd4ea28cc | src/main/java/com/analogmountains/flume/MongoSinkConstants.java | src/main/java/com/analogmountains/flume/MongoSinkConstants.java | /*
* Copyright (C) Fredrik Larsson <nossralf@gmail.com>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
package com.analogmountains.flume;
public class MongoSinkConstants {
/**
* Comma-separated list of hos... | /*
* Copyright (C) Fredrik Larsson <nossralf@gmail.com>
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
package com.analogmountains.flume;
class MongoSinkConstants {
/**
* Comma-separated list of hostname:p... | Make constants class and members package private | Make constants class and members package private
| Java | bsd-3-clause | nossralf/flume-mongodb-sink |
ab2e9b15a1300bc802dbfae26613dafabaa2341f | src/main/java/io/scalecube/gateway/examples/ExamplesRunner.java | src/main/java/io/scalecube/gateway/examples/ExamplesRunner.java | package io.scalecube.gateway.examples;
import io.scalecube.config.ConfigRegistry;
import io.scalecube.gateway.config.GatewayConfigRegistry;
import io.scalecube.services.Microservices;
import io.scalecube.transport.Address;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Runner for example services.
*... | package io.scalecube.gateway.examples;
import io.scalecube.config.ConfigRegistry;
import io.scalecube.gateway.config.GatewayConfigRegistry;
import io.scalecube.services.Microservices;
import io.scalecube.transport.Address;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Runner for example services.
*... | Set num of threads 1 on service node | Set num of threads 1 on service node
| Java | apache-2.0 | scalecube/scalecube,servicefabric/servicefabric,scalecube/scalecube |
09a3e8d8ce446b5d53e72eb348e16dc63ca140b7 | client/src/main/java/org/realityforge/replicant/client/transport/WebSocketConfig.java | client/src/main/java/org/realityforge/replicant/client/transport/WebSocketConfig.java | package org.realityforge.replicant.client.transport;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Supplier;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public final class WebSocketConfig
{
/**
* The url of websocket. Typically something like ws://... | package org.realityforge.replicant.client.transport;
import java.util.Objects;
import java.util.function.Consumer;
import java.util.function.Supplier;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public final class WebSocketConfig
{
/**
* The url of websocket. Typically something like ws://... | Add helper to simplify wrapper use | Add helper to simplify wrapper use
| Java | apache-2.0 | realityforge/replicant,realityforge/replicant |
d7f21b4b2ca318dd570d00f4498351ec404d68f6 | hackerrank/src/algorithms/implementation/ManasaAndStones.java | hackerrank/src/algorithms/implementation/ManasaAndStones.java | /**
*
*/
package algorithms.implementation;
import java.util.LinkedHashSet;
import java.util.Scanner;
import java.util.Set;
/**
* Challenge: https://www.hackerrank.com/challenges/manasa-and-stones
*
* @author Sudharsanan Muralidharan
*/
public class ManasaAndStones {
public static void main(String[] args) {... | /**
*
*/
package algorithms.implementation;
import java.util.Scanner;
/**
* Challenge: https://www.hackerrank.com/challenges/manasa-and-stones
*
* @author Sudharsanan Muralidharan
*/
public class ManasaAndStones {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int t = ... | Solve even without using HashSet | Solve even without using HashSet
| Java | mit | scaffeinate/crack-the-code |
820c249122a76b13e1f54e2e082efb97e70d962c | rxproperty/src/main/java/com/github/kubode/rxproperty/ReadOnlyObservableProperty.java | rxproperty/src/main/java/com/github/kubode/rxproperty/ReadOnlyObservableProperty.java | package com.github.kubode.rxproperty;
import rx.Observable;
import rx.Observer;
import rx.Subscriber;
/**
* Read-only Observable property.
*
* @param <T> the type of this property.
*/
public class ReadOnlyObservableProperty<T> extends Observable<T> {
/**
* The state of {@link ReadOnlyObservableProperty}... | package com.github.kubode.rxproperty;
import rx.Observable;
import rx.Observer;
import rx.Subscriber;
/**
* Read-only Observable property.
*
* @param <T> the type of this property.
*/
public class ReadOnlyObservableProperty<T> extends Observable<T> {
/**
* The state of {@link ReadOnlyObservableProperty}... | Fix fail on javadoc task. | Fix fail on javadoc task.
| Java | apache-2.0 | kubode/RxProperty,kubode/RxProperty,kubode/RxProperty |
920bcddc0279ecaa62f489fe12d9514bf94698d7 | subprojects/base-services/src/main/java/org/gradle/api/specs/OrSpec.java | subprojects/base-services/src/main/java/org/gradle/api/specs/OrSpec.java | /*
* Copyright 2007-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | /*
* Copyright 2007-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | Revert "Using java7+ feature to verify java6 sanity check" | Revert "Using java7+ feature to verify java6 sanity check"
This reverts commit 0ac6d15118c0240d27fe3efd76eed03956442bd0.
| Java | apache-2.0 | gradle/gradle,lsmaira/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,lsmaira/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,lsmaira/gradle,robinverduijn/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,lsmaira/gradle,gs... |
0aeae63f29184fa3e9ba7717b8d16f190578d3af | ejb/src/test/java/javaeems/chapter1/model/ModelEJBTest.java | ejb/src/test/java/javaeems/chapter1/model/ModelEJBTest.java | package javaeems.chapter1.model;
import static org.junit.Assert.*;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class ModelEJBTest {
private ModelEJB e... | package javaeems.chapter1.model;
import static org.junit.Assert.*;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
public class ModelEJBTest {
private ModelEJB e... | Test that there is only one entry in the DB. | Test that there is only one entry in the DB.
| Java | apache-2.0 | hammingweight/gradle-java-ear,hammingweight/gradle-java-ear |
5b54629c85de565f480ef2a8fbbf887155e8d4b5 | providence-rpc-tool/src/main/java/net/morimekta/providence/rpc/handler/SetHeadersInitializer.java | providence-rpc-tool/src/main/java/net/morimekta/providence/rpc/handler/SetHeadersInitializer.java | package net.morimekta.providence.rpc.handler;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpRequestInitializer;
import java.io.IOException;
import java.util.Map;
/**
* Request initializer that set's a set of fixed headers.
*/
public class SetHeadersInitializer implements Http... | package net.morimekta.providence.rpc.handler;
import com.google.api.client.http.HttpHeaders;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpRequestInitializer;
import java.io.IOException;
import java.util.Map;
/**
* Request initializer that sets a set of fixed headers.
*/
publ... | Handle more special cases for headers. | Handle more special cases for headers.
| Java | apache-2.0 | morimekta/providence,morimekta/providence,morimekta/thrift-j2 |
74702ed225ebb89b1aeecdb1b691ccadf338b1fa | src/main/java/com/beust/jcommander/converters/PathConverter.java | src/main/java/com/beust/jcommander/converters/PathConverter.java | /**
* Copyright (C) 2010 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | /**
* Copyright (C) 2010 the original author or authors.
* See the notice.md file distributed with this work for additional
* information regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | Fix error message when failing to convert a Path | Fix error message when failing to convert a Path
When a parameter is of type Path, the PathConverter is used.
If the path is not a valid Path, for instance when the user input is an
uri, a stack trace is shown, where a proper error message is expected.
When converting a path, catch the InvalidPathException that can b... | Java | apache-2.0 | cbeust/jcommander,selliera/jcommander,selliera/jcommander,selliera/jcommander,cbeust/jcommander,cbeust/jcommander |
be8acb2453985ad3de52a13fdcdd70783626aabe | src/main/java/info/u_team/u_team_core/item/armor/UArmorItem.java | src/main/java/info/u_team/u_team_core/item/armor/UArmorItem.java | package info.u_team.u_team_core.item.armor;
import net.minecraft.entity.Entity;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.*;
public class UArmorItem extends ArmorItem {
protected final String name;
public UArmorItem(String name, Properties properties, IArmorMaterial material, E... | package info.u_team.u_team_core.item.armor;
import net.minecraft.entity.Entity;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.item.*;
public class UArmorItem extends ArmorItem {
protected final String textureName;
public UArmorItem(String textureName, Properties properties, IArmorMateri... | Change name to texture name | Change name to texture name | Java | apache-2.0 | MC-U-Team/U-Team-Core,MC-U-Team/U-Team-Core |
b4ad0a07902d53bc50184aa024822c010f4df385 | src/main/java/nl/homeserver/mindergasnl/MindergasnlSettings.java | src/main/java/nl/homeserver/mindergasnl/MindergasnlSettings.java | package nl.homeserver.mindergasnl;
import static javax.persistence.GenerationType.AUTO;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import lombok.Getter;
import lombok.Setter;
@Entity
public class MindergasnlSettings {
... | package nl.homeserver.mindergasnl;
import static javax.persistence.GenerationType.AUTO;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import lombok.Getter;
import lombok.Setter;
@Entity
public class MindergasnlSettings {
... | Remove getter and setter of id field | Remove getter and setter of id field
| Java | apache-2.0 | bassages/home-server,bassages/homecontrol,bassages/homecontrol,bassages/home-server |
0337fdf82df530922bcebfb98893ebdbc84843ac | compss/runtime/engine/src/main/java/es/bsc/compss/types/request/ap/DeleteBindingObjectRequest.java | compss/runtime/engine/src/main/java/es/bsc/compss/types/request/ap/DeleteBindingObjectRequest.java | /*
* Copyright 2002-2018 Barcelona Supercomputing Center (www.bsc.es)
*
* 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
... | /*
* Copyright 2002-2018 Barcelona Supercomputing Center (www.bsc.es)
*
* 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
... | Remove unneeded import and format class | Remove unneeded import and format class
| Java | apache-2.0 | mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs,mF2C/COMPSs |
062bb9f847e2fe479a29fa70cce9e3e49bc13111 | src/main/java/seedu/tache/logic/parser/FindCommandParser.java | src/main/java/seedu/tache/logic/parser/FindCommandParser.java | package seedu.tache.logic.parser;
import static seedu.tache.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.tache.logic.parser.CliSyntax.KEYWORDS_ARGS_FORMAT;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Matcher;
import seedu.tache.logic.co... | package seedu.tache.logic.parser;
import static seedu.tache.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT;
import static seedu.tache.logic.parser.CliSyntax.KEYWORDS_ARGS_FORMAT;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.regex.Matcher;
import seedu.tache.lo... | Convert HashSet to LinkedHashSet to maintain FindCommand keyword sequence | Convert HashSet to LinkedHashSet to maintain FindCommand keyword sequence
| Java | mit | CS2103JAN2017-T09-B4/main,CS2103JAN2017-T09-B4/main,CS2103JAN2017-T09-B4/main |
13455f970ace0d4f60c051c789ab5e688fe829cb | src/edu/dynamic/dynamiz/UI/StrIntPair.java | src/edu/dynamic/dynamiz/UI/StrIntPair.java | package edu.dynamic.dynamiz.UI;
public class StrIntPair {
static final int defaultTag = 10;
private final String s;
private final int intg;
public StrIntPair(String s, int i){
this.s = s;
this.intg = i;
}
public StrIntPair(String s){
this.s = s;
this.intg = defaultTag;
}
}
| package edu.dynamic.dynamiz.UI;
public class StrIntPair {
static final int defaultTag = 10;
private final String s;
private final int intg;
public StrIntPair(String s, int i){
this.s = s;
this.intg = i;
}
public StrIntPair(String s){
this.s = s;
this.intg = defaultTag;
}
public String getString(){
re... | Include get methods to access class details | Include get methods to access class details | Java | mit | cs2103aug2014-w13-2j/main,cs2103aug2014-w13-2j/main |
578646b3c733906e12773f32facc4b37d2981369 | app/src/main/java/com/spykins/assessment/MainScreen/http/DataFetcher.java | app/src/main/java/com/spykins/assessment/MainScreen/http/DataFetcher.java | package com.spykins.assessment.MainScreen.http;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface DataFetcher {
/*@GET("/3/discover/movie?api_key={apiKey}&language=en-US&sort_by=popularity.desc")
List<Movie> getMovies();*/
@GET("/3/... | package com.spykins.assessment.MainScreen.http;
import java.util.List;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface DataFetcher {
/*@GET("/3/discover/movie?api_key={apiKey}&language=en-US&sort_by=popularity.desc")
List<Movie> getMovies();*/
@GET("/3/... | Add the langusge to the query parameter | Add the langusge to the query parameter
| Java | mit | andela-wakinsanmi/FavouriteMovies |
f6ff9a08ea051d522ef2b8502a1dd2cbdb1c5039 | src/main/java/seedu/address/logic/commands/UndoCommand.java | src/main/java/seedu/address/logic/commands/UndoCommand.java | package seedu.address.logic.commands;
public class UndoCommand extends Command {
public static final String COMMAND_WORD = "undo";
public static final String MESSAGE_USAGE = COMMAND_WORD;
public static final String MESSAGE_SUCCESS = "Successfully undo previous change";
public static final String MESSA... | package seedu.address.logic.commands;
public class UndoCommand extends Command {
public static final String COMMAND_WORD = "undo";
public static final String MESSAGE_USAGE = COMMAND_WORD;
public static final String MESSAGE_SUCCESS = "Successfully undo previous change";
public static final String MESSA... | Remove unnecessary method calls in undo command | Remove unnecessary method calls in undo command
| Java | mit | CS2103JAN2017-W13-B2/main,CS2103JAN2017-W13-B2/main |
40701da88e7d7a4d6d6b8eaf69c58a6caad87369 | OpERP/src/main/java/devopsdistilled/operp/client/abstracts/Model.java | OpERP/src/main/java/devopsdistilled/operp/client/abstracts/Model.java | package devopsdistilled.operp.client.abstracts;
public interface Model<O extends Observer> {
public void registerObserver(O observer);
public void removeObserver(O observer);
public void notifyObservers();
}
| package devopsdistilled.operp.client.abstracts;
public interface Model<O extends Observer> {
public void registerObserver(O observer);
public void removeObserver(O observer);
public void notifyObservers();
public void update();
}
| Add method update() which is to be called after registerObserver() | Add method update() which is to be called after registerObserver() | Java | mit | DevOpsDistilled/OpERP,njmube/OpERP |
8a5f1fe18aad2f5078484ef36dffb33c920506ea | clients/java/src/main/java/io/aigar/game/models/GameState.java | clients/java/src/main/java/io/aigar/game/models/GameState.java | package io.aigar.game.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.List;
public class GameState {
private int id;
private int tick;
private boolean paused;
private int multiplier;
private float timeLeft;
private List<Player> players;
private Resources resou... | package io.aigar.game.models;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.List;
public class GameState {
private int id;
private int tick;
private boolean paused;
private boolean disabledLeaderboard;
private int multiplier;
private float timeLeft;
private List<Pla... | Fix java client to accept new parameters | Fix java client to accept new parameters
| Java | mit | DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io,DrPandemic/aigar.io |
b39b5b1b568a4f245187caf954fcab6e3fb75d3f | activity/src/main/java/com/pascalwelsch/compositeandroid/dialogfragment/DialogFragmentPluginBase.java | activity/src/main/java/com/pascalwelsch/compositeandroid/dialogfragment/DialogFragmentPluginBase.java | package com.pascalwelsch.compositeandroid.dialogfragment;
import com.pascalwelsch.compositeandroid.core.AbstractPlugin;
import com.pascalwelsch.compositeandroid.fragment.FragmentDelegate;
public class DialogFragmentPluginBase extends AbstractPlugin<CompositeDialogFragment, FragmentDelegate> {
public CompositeDia... | package com.pascalwelsch.compositeandroid.dialogfragment;
import com.pascalwelsch.compositeandroid.core.AbstractPlugin;
public class DialogFragmentPluginBase
extends AbstractPlugin<CompositeDialogFragment, DialogFragmentDelegate> {
public CompositeDialogFragment getFragment() {
return getOriginal... | Use correct delegate type for for CompositeDialogFragment plugins | Use correct delegate type for for CompositeDialogFragment plugins
| Java | apache-2.0 | passsy/CompositeAndroid,passsy/CompositeAndroid |
f8f98468e8d7158e1bea0072fd0f369ae8d3cace | falchion-jetty9-connector/src/main/java/net/unit8/falchion/jetty9/ReusePortConnector.java | falchion-jetty9-connector/src/main/java/net/unit8/falchion/jetty9/ReusePortConnector.java | package net.unit8.falchion.jetty9;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.util.annotation.Name;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.InetSocketAddress;
import java.net.StandardSocketOptions;
import java.n... | package net.unit8.falchion.jetty9;
import org.eclipse.jetty.server.ConnectionFactory;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.util.annotation.Name;
import java.io.IOException;
import java.lang.reflect.Field;
import java.net.InetSocketAddress;
i... | Add method with ConnectionFactory as an argument | Add method with ConnectionFactory as an argument
| Java | epl-1.0 | kawasima/falchion,kawasima/falchion |
9f51e16c7051f7be82fea8ff78272c0e4c437f22 | src/main/java/nz/co/lolnet/james137137/FactionChat/AuthMeAPI.java | src/main/java/nz/co/lolnet/james137137/FactionChat/AuthMeAPI.java | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package nz.co.lolnet.james137137.FactionChat;
import org.bukkit.entity.Player;
/**
*
* @author James
*/
class AuthMeA... | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package nz.co.lolnet.james137137.FactionChat;
import org.bukkit.entity.Player;
/**
*
* @author James
*/
class AuthMeA... | Revert "Added some debug message for FactionChat/issues/12" | Revert "Added some debug message for FactionChat/issues/12"
This reverts commit 3c86b96f6cdb8848773450f741353a754a8dd90a.
| Java | bsd-3-clause | James137137/FactionChat |
2d2efd0d7df7d24313603d0a3a5556bef4a2c726 | src/main/java/org/jenkinsci/plugins/gitclient/RevListCommand.java | src/main/java/org/jenkinsci/plugins/gitclient/RevListCommand.java | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.jenkinsci.plugins.gitclient;
import java.util.List;
import org.eclipse.jgit.lib.ObjectId;
/**
*
* @author <a href="mailto:m.zahnlecker@gmail.com">Marc Zahnlecker
*/
public interface RevListCommand extend... | package org.jenkinsci.plugins.gitclient;
import java.util.List;
import org.eclipse.jgit.lib.ObjectId;
/**
*
* @author <a href="mailto:m.zahnlecker@gmail.com">Marc Zahnlecker
*/
public interface RevListCommand extends GitCommand {
RevListCommand all();
RevListCommand firstParent();
RevListCommand to(L... | Remove IDE boilerplate comment at top of file | Remove IDE boilerplate comment at top of file
| Java | mit | MarkEWaite/git-client-plugin,MarkEWaite/git-client-plugin,MarkEWaite/git-client-plugin |
d812727ced0ef9b9ffef1c74f209ba057fbbc32b | src/test/scala/com/sageserpent/americium/java/TrialsApiTests.java | src/test/scala/com/sageserpent/americium/java/TrialsApiTests.java | package com.sageserpent.americium.java;
import com.sageserpent.americium.Trials;
import org.junit.jupiter.api.Test;
public class TrialsApiTests {
@Test
void testDrivePureJavaApi() {
final TrialsApi api = Trials.api();
final Trials<Integer> integerTrials = api.only(1);
final Trials<Dou... | package com.sageserpent.americium.java;
import com.sageserpent.americium.Trials;
import org.junit.jupiter.api.Test;
import java.math.BigDecimal;
import java.util.function.Function;
public class TrialsApiTests {
@Test
void testDrivePureJavaApi() {
final TrialsApi api = Trials.api();
final Tri... | Make the Java smoke test of 'TrialsApi' more interesting with an example of 'BigDecimal' versus 'Double'. This exposes a problem with the API - the Java and Scala overloads are fighting each other. | Make the Java smoke test of 'TrialsApi' more interesting with an example of 'BigDecimal' versus 'Double'. This exposes a problem with the API - the Java and Scala overloads are fighting each other.
| Java | mit | sageserpent-open/americium |
bc94ad99294ec301eba6805afb0733dcbcee347e | src/main/java/com/btk5h/skriptmirror/NoMissingAndOrLogger.java | src/main/java/com/btk5h/skriptmirror/NoMissingAndOrLogger.java | package com.btk5h.skriptmirror;
import ch.njol.skript.log.LogEntry;
import ch.njol.skript.log.LogHandler;
import com.btk5h.skriptmirror.util.SkriptReflection;
public class NoMissingAndOrLogger extends LogHandler {
@Override
public LogResult log(LogEntry entry) {
if (SkriptReflection.MISSING_AND_OR != null && ... | package com.btk5h.skriptmirror;
import ch.njol.skript.log.LogEntry;
import ch.njol.skript.log.ParseLogHandler;
import com.btk5h.skriptmirror.util.SkriptReflection;
public class NoMissingAndOrLogger extends ParseLogHandler {
@Override
public LogResult log(LogEntry entry) {
if (SkriptReflection.MISSING_AND_OR !... | Fix compatibility with other addons that have custom sections | Fix compatibility with other addons that have custom sections
| Java | mit | btk5h/skript-mirror |
1b7ca09cabd7a4273b29e5a5f2643e7ae6d64a10 | config-provisioning/src/main/java/com/yahoo/config/provision/NodeType.java | config-provisioning/src/main/java/com/yahoo/config/provision/NodeType.java | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.provision;
/**
* The possible types of nodes in the node repository
*
* @author bratseth
*/
public enum NodeType {
/** A host of a set of (docker) tenant nodes */
... | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.config.provision;
/**
* The possible types of nodes in the node repository
*
* @author bratseth
*/
public enum NodeType {
/** A node to be assigned to a tenant to run appli... | Add descriptive name to each node type | Add descriptive name to each node type
| Java | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
6cf71c1a6462c59d6686345ed3cd918bc64062ce | src/main/java/com/elmakers/mine/bukkit/action/builtin/KillAction.java | src/main/java/com/elmakers/mine/bukkit/action/builtin/KillAction.java | package com.elmakers.mine.bukkit.action.builtin;
import com.elmakers.mine.bukkit.api.action.CastContext;
import com.elmakers.mine.bukkit.api.spell.SpellResult;
import com.elmakers.mine.bukkit.action.BaseSpellAction;
import org.bukkit.entity.Entity;
import org.bukkit.entity.LivingEntity;
public class KillAction extend... | package com.elmakers.mine.bukkit.action.builtin;
import com.elmakers.mine.bukkit.api.action.CastContext;
import com.elmakers.mine.bukkit.api.magic.Mage;
import com.elmakers.mine.bukkit.api.magic.MageController;
import com.elmakers.mine.bukkit.api.spell.SpellResult;
import com.elmakers.mine.bukkit.action.BaseSpellActio... | Add explicit Superprotected check to Kill action | Add explicit Superprotected check to Kill action
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
5f01343999a8dcf5b79feb260f4a5c0d1b6c98aa | weld-spi/src/main/java/org/jboss/weld/servlet/api/InitParameters.java | weld-spi/src/main/java/org/jboss/weld/servlet/api/InitParameters.java | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | /*
* JBoss, Home of Professional Open Source
* Copyright 2013, Red Hat, Inc., and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this fi... | Add lazy conversation context parameter | Add lazy conversation context parameter
| Java | apache-2.0 | manovotn/api,weld/api |
326e1e4a4d2e98824678813fd07105c2bbb4685f | src/test/java/objective/taskboard/it/AuthenticatedIntegrationTest.java | src/test/java/objective/taskboard/it/AuthenticatedIntegrationTest.java | package objective.taskboard.it;
/*-
* [LICENSE]
* Taskboard
* ---
* Copyright (C) 2015 - 2017 Objective Solutions
* ---
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either ver... | package objective.taskboard.it;
/*-
* [LICENSE]
* Taskboard
* ---
* Copyright (C) 2015 - 2017 Objective Solutions
* ---
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either ver... | Fix tests intermittent due to board render not ready | [TOOLS-1091] Fix tests intermittent due to board render not ready
| Java | agpl-3.0 | herbert-venancio/taskboard,objective-solutions/taskboard,objective-solutions/taskboard,herbert-venancio/taskboard,objective-solutions/taskboard,objective-solutions/taskboard,herbert-venancio/taskboard,herbert-venancio/taskboard,objective-solutions/taskboard,herbert-venancio/taskboard |
caf1871f0ffffb63d144d0e978a0e105043a37a3 | src/me/tdjones/main/model/Feed.java | src/me/tdjones/main/model/Feed.java | package me.tdjones.main.model;
/**
* Created by Tyler on 6/30/2016.
*/
public class Feed {
}
| package me.tdjones.main.model;
import com.sun.xml.internal.txw2.annotation.XmlNamespace;
import me.tdjones.main.Main;
import javax.xml.bind.annotation.*;
import java.net.URL;
import java.util.List;
/**
* Created by Tyler on 6/30/2016.
*/
@XmlAccessorType(XmlAccessType.FIELD)
public class Feed {
@XmlElement(nam... | Add jaxb support to feed model | Add jaxb support to feed model
| Java | mit | tjones879/YAPM |
ba21f91e055ca09dc5adb73497ab89a9d663aec3 | src/main/java/com/matt/forgehax/mods/services/LocalPlayerUpdateEventService.java | src/main/java/com/matt/forgehax/mods/services/LocalPlayerUpdateEventService.java | package com.matt.forgehax.mods.services;
import com.matt.forgehax.events.LocalPlayerUpdateEvent;
import com.matt.forgehax.util.mod.ServiceMod;
import com.matt.forgehax.util.mod.loader.RegisterMod;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.entity.living.LivingEvent;
import net.min... | package com.matt.forgehax.mods.services;
import static com.matt.forgehax.Helper.getLocalPlayer;
import static com.matt.forgehax.Helper.getWorld;
import com.matt.forgehax.events.LocalPlayerUpdateEvent;
import com.matt.forgehax.util.mod.ServiceMod;
import com.matt.forgehax.util.mod.loader.RegisterMod;
import net.minecr... | Check if world is remote so event isn't fired for single player entity tick | Check if world is remote so event isn't fired for single player entity tick
| Java | mit | fr1kin/ForgeHax,fr1kin/ForgeHax |
ffd62acfee0ef0d1915854ff11c3d8cb423ff7a6 | Simperium/src/support/java/com/simperium/test/MockAuthResponseListener.java | Simperium/src/support/java/com/simperium/test/MockAuthResponseListener.java | package com.simperium.test;
import com.simperium.client.AuthException;
import com.simperium.client.AuthResponseListener;
import com.simperium.client.User;
public class MockAuthResponseListener implements AuthResponseListener {
public AuthException exception;
public User user;
public boolean success = fals... | package com.simperium.test;
import com.simperium.client.AuthException;
import com.simperium.client.AuthProvider;
import com.simperium.client.AuthResponseListener;
import com.simperium.client.User;
public class MockAuthResponseListener implements AuthResponseListener {
public AuthException exception;
public Us... | Add auth provider parameter to on success callback in mock auth response listener | Add auth provider parameter to on success callback in mock auth response listener
| Java | mit | Simperium/simperium-android,Simperium/simperium-android |
552a3b9324896395e493d007b16a43ebd41b48a0 | src/main/java/com/elmakers/mine/bukkit/api/action/SpellAction.java | src/main/java/com/elmakers/mine/bukkit/api/action/SpellAction.java | package com.elmakers.mine.bukkit.api.action;
import com.elmakers.mine.bukkit.api.spell.Spell;
import org.bukkit.configuration.ConfigurationSection;
import java.util.Collection;
public interface SpellAction
{
public void load(Spell spell, ConfigurationSection parameters);
public ConfigurationSection getParame... | package com.elmakers.mine.bukkit.api.action;
import com.elmakers.mine.bukkit.api.spell.Spell;
import org.bukkit.configuration.ConfigurationSection;
import java.util.Collection;
public interface SpellAction
{
public void load(Spell spell, ConfigurationSection parameters);
public ConfigurationSection getParame... | Add parameter value suggestion to ActionSpell tab-completion | Add parameter value suggestion to ActionSpell tab-completion
| Java | mit | elBukkit/MagicPlugin,elBukkit/MagicAPI,elBukkit/MagicPlugin,elBukkit/MagicPlugin |
f7439d5f36e273b44108c8ca4a9a79bb2a2fdaa1 | src/main/java/reborncore/common/powerSystem/PowerSystem.java | src/main/java/reborncore/common/powerSystem/PowerSystem.java | package reborncore.common.powerSystem;
import reborncore.common.RebornCoreConfig;
import reborncore.common.powerSystem.tesla.TeslaManager;
public class PowerSystem
{
public static String getLocaliszedPower(double eu)
{
return getLocaliszedPower((int) eu);
}
public static String getLocaliszedPower(int eu)
{
... | package reborncore.common.powerSystem;
import reborncore.common.RebornCoreConfig;
import reborncore.common.powerSystem.tesla.TeslaManager;
public class PowerSystem
{
public static String getLocaliszedPower(double eu)
{
return getLocaliszedPower((int) eu);
}
public static String getLocaliszedPower(int eu)
{
... | Fix build from github web | Fix build from github web | Java | mit | TechReborn/RebornCore |
4297d5737f9554a3beb36f84f9fe77a8ee6ef089 | src/androidTest/java/pl/mg6/testsupport/FactoryReparcelerTestCase.java | src/androidTest/java/pl/mg6/testsupport/FactoryReparcelerTestCase.java | package pl.mg6.testsupport;
import junit.framework.TestCase;
import java.util.List;
import pl.mg6.testsupport.data.Simple;
import pl.mg6.testsupport.factory.SimpleFactory;
public class FactoryReparcelerTestCase extends TestCase {
private final FactoryReparceler reparceler = new FactoryReparceler();
public... | package pl.mg6.testsupport;
import junit.framework.TestCase;
import java.util.List;
import pl.mg6.testsupport.data.Simple;
import pl.mg6.testsupport.factory.SimpleFactory;
public class FactoryReparcelerTestCase extends TestCase {
private final FactoryReparceler reparceler = new FactoryReparceler();
public... | Test all methods are found by factory reparceler. | Test all methods are found by factory reparceler.
| Java | mit | mg6maciej/parcelable-test-support |
b849b2825542036122f5ee1e2a2be7ee403a22d5 | src/main/java/com/samovich/basics/concepts/strings/treehouse/TreeStory.java | src/main/java/com/samovich/basics/concepts/strings/treehouse/TreeStory.java | /**
* @file TreeStory.java
* @author Valery Samovich
* @version 1
* @date 2015/05/11
*/
package com.samovich.basics.concepts.strings.treehouse;
import java.io.Console;
import java.util.Scanner;
public class TreeStory {
public static void main(String[] args) {
// Console console = System.console();... | /**
* @file TreeStory.java
* @author Valery Samovich
* @version 1
* @date 2015/05/11
*/
package com.samovich.basics.concepts.strings.treehouse;
import java.io.Console;
import java.util.Scanner;
public class TreeStory {
public static void main(String[] args) {
// Console console = System.console();... | Update Multiple Strings Example for Console and Scanner prototype | Update Multiple Strings Example for Console and Scanner prototype
| Java | unknown | vsamov/java-technologies,vsamov/java-technologies,valerysamovich/java-technologies |
9973d133743acf3e93105816db65cf513a8c5186 | src/main/java/jp/ac/nii/prl/mape/plan/service/AdaptationServiceImpl.java | src/main/java/jp/ac/nii/prl/mape/plan/service/AdaptationServiceImpl.java | package jp.ac.nii.prl.mape.plan.service;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import jp.ac.nii.prl.mape.plan.model.Adaptation;
import jp.ac.nii.prl.mape.plan.repository.AdaptationRepository;
public class AdaptationServiceImpl implements AdaptationService {
@Aut... | package jp.ac.nii.prl.mape.plan.service;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import jp.ac.nii.prl.mape.plan.model.Adaptation;
import jp.ac.nii.prl.mape.plan.repository.AdaptationRepository;
@Service("adaptationServi... | Fix adaptation service Bean issue | Fix adaptation service Bean issue | Java | mit | prl-tokyo/MAPE-autoscaling-plan-service,prl-tokyo/MAPE-autoscaling-plan-service |
404e84224ed2e2acce9d1d67ae424a09fd89359e | src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/VMArrayInstanceBase.java | src/vm/jvm/runtime/org/perl6/nqp/sixmodel/reprs/VMArrayInstanceBase.java | package org.perl6.nqp.sixmodel.reprs;
import java.lang.System;
import org.perl6.nqp.runtime.ExceptionHandling;
import org.perl6.nqp.runtime.ThreadContext;
import org.perl6.nqp.sixmodel.SixModelObject;
public class VMArrayInstanceBase extends SixModelObject {
public long[] dimensions(ThreadContext tc) {
r... | package org.perl6.nqp.sixmodel.reprs;
import java.lang.System;
import org.perl6.nqp.runtime.ExceptionHandling;
import org.perl6.nqp.runtime.ThreadContext;
import org.perl6.nqp.sixmodel.SixModelObject;
public class VMArrayInstanceBase extends SixModelObject {
public long[] dimensions(ThreadContext tc) {
r... | Implement multi-dim access funcs in VMArray. | Implement multi-dim access funcs in VMArray.
| Java | artistic-2.0 | cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp |
e4e7dad504b239e8f20cfa2cef7ae6a3937471fa | arondor-common-reflection-model/src/main/java/com/arondor/common/reflection/bean/java/AccessibleConstructorBean.java | arondor-common-reflection-model/src/main/java/com/arondor/common/reflection/bean/java/AccessibleConstructorBean.java | package com.arondor.common.reflection.bean.java;
import java.util.List;
import com.arondor.common.reflection.model.java.AccessibleConstructor;
public class AccessibleConstructorBean implements AccessibleConstructor
{
/**
*
*/
private static final long serialVersionUID = -3238305306015874730L;
... | package com.arondor.common.reflection.bean.java;
import java.util.List;
import com.arondor.common.reflection.model.java.AccessibleConstructor;
public class AccessibleConstructorBean implements AccessibleConstructor
{
/**
*
*/
private static final long serialVersionUID = -3238305306015874730L;
... | Add empty constructor for GWT | Add empty constructor for GWT
git-svn-id: 7e8def7d4256e953abb468098d8cb9b4faff0c63@5826 12255794-1b5b-4525-b599-b0510597569d
| Java | apache-2.0 | Doloops/arondor-common-reflection,Doloops/arondor-common-reflection |
a8b9df7c5a288fe0264780d6352ed660c3979e9c | Smilepp/src/net/zero918nobita/smilepp/frontend/AssignStm.java | Smilepp/src/net/zero918nobita/smilepp/frontend/AssignStm.java | package net.zero918nobita.smilepp.frontend;
public class AssignStm extends Stm {
private Variable variable;
private Expression expression;
public AssignStm(Variable variable, Expression expression) {
this.variable = variable;
this.expression = expression;
}
public String toString() {
return var... | package net.zero918nobita.smilepp.frontend;
public class AssignStm extends Stm {
private Variable variable;
private Expression expression;
public AssignStm() {}
public AssignStm(Variable variable, Expression expression) {
this.variable = variable;
this.expression = expression;
}
public void setV... | Add setVariable & setExpression method | Add setVariable & setExpression method
| Java | mit | 0918nobita/Smile-pp,0918nobita/Smile-pp |
d81bb561ab78472331957d74fe4dbeb727a26531 | android/src/com/freshplanet/ane/AirAACPlayer/functions/CloseFunction.java | android/src/com/freshplanet/ane/AirAACPlayer/functions/CloseFunction.java | package com.freshplanet.ane.AirAACPlayer.functions;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
import com.adobe.fre.FREObject;
import com.freshplanet.ane.AirAACPlayer.Extension;
import com.freshplanet.ane.AirAACPlayer.ExtensionContext;
public class CloseFunction implements FREFunction
{
... | package com.freshplanet.ane.AirAACPlayer.functions;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
import com.adobe.fre.FREObject;
import com.freshplanet.ane.AirAACPlayer.Extension;
import com.freshplanet.ane.AirAACPlayer.ExtensionContext;
public class CloseFunction implements FREFunction
{
... | Set URL to null on close | Set URL to null on close | Java | apache-2.0 | freshplanet/ANE-AACPlayer,freshplanet/ANE-AACPlayer,freshplanet/ANE-AACPlayer |
4994d36c4660d59b359251acefc2c9e49c089bbe | d01/d01s03/d01s03e01-bean-attributes/src/main/java/net/safedata/springboot/training/d01/s03/service/ProductService.java | d01/d01s03/d01s03e01-bean-attributes/src/main/java/net/safedata/springboot/training/d01/s03/service/ProductService.java | package net.safedata.springboot.training.d01.s03.service;
import net.safedata.springboot.training.d01.s03.repository.ProductRepository;
import java.util.Optional;
/**
* A simple product service, which uses a {@link ProductRepository} as a collaborator
*
* @author bogdan.solga
*/
public class ProductService {
... | package net.safedata.springboot.training.d01.s03.service;
import net.safedata.springboot.training.d01.s03.repository.ProductRepository;
import java.util.Optional;
/**
* A simple product service, which uses a {@link ProductRepository} as a collaborator
*
* @author bogdan.solga
*/
public class ProductService {
... | Split the Optional call on a new line | [improve] Split the Optional call on a new line
| Java | apache-2.0 | bogdansolga/spring-boot-training,bogdansolga/spring-boot-training |
4b71a6f21e50acfb4e3c81f534aaf03df87fd332 | app/src/main/java/com/vinnypalumbo/popularmovies/ReviewAdapter.java | app/src/main/java/com/vinnypalumbo/popularmovies/ReviewAdapter.java | package com.vinnypalumbo.popularmovies;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.List;
/**
* Created by Vincent on 2015-11-19.
*/
public class Review... | package com.vinnypalumbo.popularmovies;
import android.app.Activity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import java.util.List;
/**
* Created by Vincent on 2015-11-19.
*/
public class Review... | Disable clicks on the Reviews ListView | Disable clicks on the Reviews ListView
| Java | mit | vinny-palumbo/PopularMovies |
dc5fab259923ad06b83ccf81e5efb1d0d99b52ac | main/mldao/src/main/java/module-info.java | main/mldao/src/main/java/module-info.java | /**
*
*/
/**
* @author roart
*
*/
module mldao {
exports roart.ml.dao;
requires common.config;
requires ml.common;
requires ml.spark;
requires ml.tensorflow;
requires pipeline.model;
requires slf4j.api;
requires org.apache.commons.lang3;
}
| /**
*
*/
/**
* @author roart
*
*/
module mldao {
exports roart.ml.dao;
requires common.config;
requires ml.common;
requires ml.spark;
requires ml.tensorflow;
requires pipeline.model;
requires slf4j.api;
requires org.apache.commons.lang3;
requires ml.pytorch;
requires ml.ge... | Add pytorch (I99). Neural net continual learning (I100). | Add pytorch (I99). Neural net continual learning (I100).
| Java | agpl-3.0 | rroart/stockstat,rroart/stockstat,rroart/stockstat,rroart/stockstat,rroart/stockstat,rroart/stockstat,rroart/stockstat |
5cefc0edbb130d1457519a92f8111be316106b17 | asm-monitor/src/main/java/com/ca/apm/swat/epaplugins/asm/har/Response.java | asm-monitor/src/main/java/com/ca/apm/swat/epaplugins/asm/har/Response.java | package com.ca.apm.swat.epaplugins.asm.har;
import org.json.Cookie;
public interface Response {
public int getStatus();
public String getStatusText();
public String getHttpVersion();
@IterableClass(type = Cookie.class)
public Iterable<Cookie> getCookies();
@IterableClass(type = Header.class)
... | package com.ca.apm.swat.epaplugins.asm.har;
public interface Response {
public int getStatus();
public String getStatusText();
public String getHttpVersion();
@IterableClass(type = Cookie.class)
public Iterable<Cookie> getCookies();
@IterableClass(type = Header.class)
public Iterable<Header... | Remove Cookie import to use Cookie from this package | Remove Cookie import to use Cookie from this package | Java | epl-1.0 | CA-APM/ca-apm-fieldpack-asm,CA-APM/ca-apm-fieldpack-asm |
9e7dcb8a0dee786eebc27cb7270787aa125464d3 | samples/source-control/sample/settings.gradle.kts | samples/source-control/sample/settings.gradle.kts | sourceControl {
vcsMappings {
val computeGit = vcs(GitVersionControlSpec::class.java) {
// A real life example would use a remote git repository
setUrl(File(rootDir, "../external/build/git-repo").toURI())
}
withModule("org.gradle.kotlin.dsl.samples.source-control:comp... | sourceControl {
vcsMappings {
val computeGit = vcs(GitVersionControlSpec::class.java) {
// A real life example would use a remote git repository
url = uri("../external/build/git-repo")
}
withModule("org.gradle.kotlin.dsl.samples.source-control:compute") {
... | Leverage ScriptApi in source-control sample | Leverage ScriptApi in source-control sample
| Kotlin | apache-2.0 | gradle/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,blindpirate/gradle,robinverduijn/gradle,robinverduijn/gradle,robinverduijn/gradle,gradle/gradle,blindpirate/gradle,robinverduijn/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,robinverduijn/gradle,blindpirate/gradle,bli... |
9473f1545ce3e459a217b984f31c0e558708a156 | window/window-samples/src/main/java/androidx/window/sample/backend/ActivityExtensions.kt | window/window-samples/src/main/java/androidx/window/sample/backend/ActivityExtensions.kt | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Update mid-screen fold backend to use window metrics. | Update mid-screen fold backend to use window metrics.
Update midscreen fold backend to use window metrics.
Bug: 159454816
Test: manually run the sample app
Change-Id: Icd25147942dfe0df7c58ad732d59f1b2f2c16295
| Kotlin | apache-2.0 | AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/andro... |
0479d89ce01f064f5cf6e4b743c304cb17bfb19e | diffuse/src/main/kotlin/com/jakewharton/diffuse/diff/AabDiff.kt | diffuse/src/main/kotlin/com/jakewharton/diffuse/diff/AabDiff.kt | package com.jakewharton.diffuse.diff
import com.jakewharton.diffuse.Aab
import com.jakewharton.diffuse.report.DiffReport
import com.jakewharton.diffuse.report.text.AabDiffTextReport
internal class AabDiff(
val oldAab: Aab,
val newAab: Aab
) : BinaryDiff {
inner class ModuleDiff(
val oldModule: Aab.Module,
... | package com.jakewharton.diffuse.diff
import com.jakewharton.diffuse.Aab
import com.jakewharton.diffuse.report.DiffReport
import com.jakewharton.diffuse.report.text.AabDiffTextReport
internal class AabDiff(
val oldAab: Aab,
val newAab: Aab
) : BinaryDiff {
inner class ModuleDiff(
val oldModule: Aab.Module,
... | Add property to determine if a ModuleDiff has changes | Add property to determine if a ModuleDiff has changes
| Kotlin | apache-2.0 | JakeWharton/dex-method-list,JakeWharton/dex-method-list,JakeWharton/dex-method-list |
a039f68ea5c57c2b7b617bd009cd407fa8fe39eb | subprojects/publish/build.gradle.kts | subprojects/publish/build.gradle.kts | plugins {
id("gradlebuild.distribution.api-java")
}
dependencies {
implementation(project(":base-services"))
implementation(project(":functional"))
implementation(project(":logging"))
implementation(project(":file-collections"))
implementation(project(":core-api"))
implementation(project(":... | plugins {
id("gradlebuild.distribution.api-java")
}
description = "Base plugin for the maven and ivy publish plugins. Defines the publishing extension."
dependencies {
implementation(project(":base-services"))
implementation(project(":functional"))
implementation(project(":logging"))
implementatio... | Add description for publish project | Add description for publish project
| Kotlin | apache-2.0 | gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,grad... |
c29b238c2a33cc8b23beadf25c119929532dba38 | exercises/series/.meta/src/reference/kotlin/Series.kt | exercises/series/.meta/src/reference/kotlin/Series.kt | object Series {
fun Char.toDigitValue() = this.toInt() - '0'.toInt()
fun slices(n: Int, s: String): List<List<Int>> {
return when {
(n > s.length) -> throw IllegalArgumentException("slice length cannot be greater than series length")
(n == 0) -> throw IllegalArgumentException("s... | object Series {
fun Char.toDigitValue() = this.toInt() - '0'.toInt()
fun slices(n: Int, s: String): List<List<Int>> =
when {
(n > s.length) -> throw IllegalArgumentException("slice length cannot be greater than series length")
(n == 0) -> throw IllegalArgumentException("slice le... | Make more idiomatic Kotlin without return | Make more idiomatic Kotlin without return
| Kotlin | mit | exercism/xkotlin,exercism/xkotlin |
3fd90ebec0665793d363c448256b0d8ee5abe698 | webclient/src/main/kotlin/client/ButtonBar.kt | webclient/src/main/kotlin/client/ButtonBar.kt | package client
import client.component.flaticon
import client.component.visible
import net.yested.core.properties.*
import net.yested.ext.bootstrap3.*
import net.yested.ext.bootstrap3.ButtonLook
import net.yested.ext.bootstrap3.ButtonSize
import org.w3c.dom.HTMLElement
/**
* Support for undoing user actions.
* @aut... | package client
import client.component.flaticon
import client.component.visible
import net.yested.core.properties.*
import net.yested.ext.bootstrap3.*
import net.yested.ext.bootstrap3.ButtonLook
import net.yested.ext.bootstrap3.ButtonSize
import org.w3c.dom.HTMLElement
import kotlin.dom.appendText
/**
* Support for ... | Make back button have "< Back" text. | Make back button have "< Back" text.
| Kotlin | apache-2.0 | epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase,epabst/kotlin-showcase |
01c2b4d9b34750f69f0084b89db98bbb396aa70f | samples/android-app/src/androidMain/kotlin/com/example/splitties/preferences/ui/PreferencesBottomSheetDialogFragment.kt | samples/android-app/src/androidMain/kotlin/com/example/splitties/preferences/ui/PreferencesBottomSheetDialogFragment.kt | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.example.splitties.preferences.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.android.material.bottom... | /*
* Copyright 2019 Louis Cognault Ayeva Derman. Use of this source code is governed by the Apache 2.0 license.
*/
package com.example.splitties.preferences.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.android.material.bottom... | Use LayoutInflater context in DialogFragment | Use LayoutInflater context in DialogFragment
| Kotlin | apache-2.0 | LouisCAD/Splitties,LouisCAD/Splitties,LouisCAD/Splitties |
9ebed0b296e35869ae14d0dfc61a87786d542b11 | app/src/main/java/com/designdemo/uaha/util/Constants.kt | app/src/main/java/com/designdemo/uaha/util/Constants.kt | @file:JvmName("Constants")
package com.designdemo.uaha.util
// Notification Channel constants
@JvmField val NOTIFICATION_CHANNEL_NAME: CharSequence = "Historian Notifications"
const val NOTIFICATION_CHANNEL_DESCRIPTION = "Notifications with info about OS or Devices"
@JvmField val NOTIFICATION_TITLE: CharSequence = "Hi... | @file:JvmName("Constants")
package com.designdemo.uaha.util
// Notification Channel constants
@JvmField val NOTIFICATION_CHANNEL_NAME: CharSequence = "Historian Notifications"
const val NOTIFICATION_CHANNEL_DESCRIPTION = "Notifications with info about OS or Devices"
@JvmField val NOTIFICATION_TITLE: CharSequence = "Hi... | Update to fix detekt error | Update to fix detekt error
This is a weird error, checking in this comment to fix it.
| Kotlin | apache-2.0 | mwolfson/android-historian,mwolfson/android-historian |
ea3ee8f444f56aa61ab5b3afecc5f9e4d6a300a0 | libraries/retrofitconverters/build.gradle.kts | libraries/retrofitconverters/build.gradle.kts | /*
* Copyright (c) 2018 Zac Sweers
*
* 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... | /*
* Copyright (c) 2018 Zac Sweers
*
* 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... | Remove unnecessary kapt/dagger plumbing in retrofitconverters | Remove unnecessary kapt/dagger plumbing in retrofitconverters
| Kotlin | apache-2.0 | hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp,hzsweers/CatchUp |
afddac7e622e60849962360ddb3bad35b4a429fb | samples/kotlin-rulesets-using/build.gradle.kts | samples/kotlin-rulesets-using/build.gradle.kts | import org.jlleitschuh.gradle.ktlint.KtlintExtension
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
application
}
plugins.apply("org.jlleitschuh.gradle.ktlint")
apply {
plugin("kotlin")
}
application {
mainClassName = "org.jlleitschuh.gradle.ktlint.sample.kotlin.MainKt"
}
dependenc... | import org.jlleitschuh.gradle.ktlint.KtlintExtension
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
application
}
plugins.apply("org.jlleitschuh.gradle.ktlint")
apply {
plugin("kotlin")
}
application {
mainClassName = "org.jlleitschuh.gradle.ktlint.sample.kotlin.MainKt"
}
dependenc... | Remove afterEvaluate in sample project. | Remove afterEvaluate in sample project.
Signed-off-by: Yahor Berdnikau <65de286607a8090de37d6bb23a427517fd3c474e@gmail.com>
| Kotlin | mit | JLLeitschuh/ktlint-gradle,JLLeitschuh/ktlint-gradle |
babdd57bb9452032c0299d117c975dc246366eae | src/main/java/org/purescript/psi/expression/ExpressionConstructorReference.kt | src/main/java/org/purescript/psi/expression/ExpressionConstructorReference.kt | package org.purescript.psi.expression
import com.intellij.codeInspection.LocalQuickFix
import com.intellij.codeInspection.LocalQuickFixProvider
import com.intellij.psi.PsiNamedElement
import com.intellij.psi.PsiReferenceBase
import com.intellij.psi.SmartPointerManager
class ExpressionConstructorReference(expressionCo... | package org.purescript.psi.expression
import com.intellij.codeInspection.LocalQuickFix
import com.intellij.codeInspection.LocalQuickFixProvider
import com.intellij.psi.PsiNamedElement
import com.intellij.psi.PsiReferenceBase
import com.intellij.psi.SmartPointerManager
class ExpressionConstructorReference(expressionCo... | Implement navigation for qualified expression constructors | Implement navigation for qualified expression constructors
| Kotlin | bsd-3-clause | intellij-purescript/intellij-purescript,intellij-purescript/intellij-purescript |
625bbf2c36dce028472f5dbb678ce6b17f019ffd | compose/r4a-runtime/src/com/google/r4a/R4a.kt | compose/r4a-runtime/src/com/google/r4a/R4a.kt | package com.google.r4a
import android.view.ViewGroup
object R4a {
private class Root: Component() {
lateinit var composable: @Composable() () -> Unit
override fun compose() {
val cc = CompositionContext.current
cc.start(0)
composable()
cc.end()
... | package com.google.r4a
import android.app.Activity
import android.view.ViewGroup
import android.widget.LinearLayout
object R4a {
private class Root: Component() {
lateinit var composable: @Composable() () -> Unit
override fun compose() {
val cc = CompositionContext.current
... | Add a few helpers to make the getting started experience feel a little more familiar | Add a few helpers to make the getting started experience feel a little more familiar
Change-Id: Icf6f0611fa33361a2620b0a6d847b2f651b391f7
| Kotlin | apache-2.0 | androidx/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,androidx/androidx,AndroidX/androidx,androidx/androidx,AndroidX/androidx,AndroidX/androidx,androidx/andro... |
e6b6aa2803a27703dfebe82161baacaff879dbc3 | build-logic/src/main/kotlin/local/java-library.gradle.kts | build-logic/src/main/kotlin/local/java-library.gradle.kts | package local
plugins {
id("local.java-base")
`java-library`
id("net.ltgt.errorprone")
id("net.ltgt.nullaway")
}
java.sourceCompatibility = JavaVersion.VERSION_1_8
if (JavaVersion.current().isJava9Compatible) {
tasks.withType<JavaCompile>().configureEach {
options.release.set(java.targetCo... | package local
plugins {
id("local.java-base")
`java-library`
id("net.ltgt.errorprone")
id("net.ltgt.nullaway")
}
tasks.withType<JavaCompile>().configureEach {
options.release.set(8)
}
dependencies {
errorprone(project.the<VersionCatalogsExtension>().named("libs").findBundle("errorprone").orEl... | Remove code that supports running the build with JDK 8 | Remove code that supports running the build with JDK 8
Addition of version catalog with use of java.util.Optional
already required JDK 11 in practice anyway.
Tests can still be run with JDK 8 though.
| Kotlin | apache-2.0 | tbroyer/gradle-incap-helper,tbroyer/gradle-incap-helper |
7822ba47a14c621bea3cefa0c11ef00e85df2fcb | src/test/kotlin/cn/yiiguxing/plugin/translate/ui/UiTest.kt | src/test/kotlin/cn/yiiguxing/plugin/translate/ui/UiTest.kt | package cn.yiiguxing.plugin.translate.ui
import com.intellij.ide.ui.laf.IntelliJLaf
import com.intellij.ide.ui.laf.darcula.DarculaLaf
import com.intellij.openapi.util.IconLoader
import com.intellij.ui.IconManager
import com.intellij.util.ui.JBDimension
import java.awt.Container
import javax.swing.JFrame
import javax.s... | package cn.yiiguxing.plugin.translate.ui
import com.intellij.ide.ui.laf.IntelliJLaf
import com.intellij.ide.ui.laf.darcula.DarculaLaf
import com.intellij.openapi.util.IconLoader
import com.intellij.ui.IconManager
import com.intellij.util.ui.JBDimension
import java.awt.Container
import javax.swing.JFrame
import javax.s... | Revert "Fix too many arguments for `public open fun activate(): Unit` defined in `com.intellij.ui.IconManager`" | Revert "Fix too many arguments for `public open fun activate(): Unit` defined in `com.intellij.ui.IconManager`"
This reverts commit 3dd97a486d9eac09acb9a93651c6b266dde84566.
| Kotlin | mit | YiiGuxing/TranslationPlugin,YiiGuxing/TranslationPlugin |
b26fc68cd684de5eef0b95b814bbab434ab2dcc0 | src/main/kotlin/de/bettinggame/adapter/BaseController.kt | src/main/kotlin/de/bettinggame/adapter/BaseController.kt | package de.bettinggame.adapter
import de.bettinggame.domain.repository.NewsRepository
import de.bettinggame.ui.Navigation
import org.springframework.security.core.Authentication
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.stereotype.Controller
import org.springfram... | package de.bettinggame.adapter
import de.bettinggame.domain.repository.NewsRepository
import de.bettinggame.ui.Navigation
import org.springframework.security.core.Authentication
import org.springframework.security.core.context.SecurityContextHolder
import org.springframework.stereotype.Controller
import org.springfram... | Remove @JvmDefault annotation since all controllers are written in Kotlin | Remove @JvmDefault annotation since all controllers are written in Kotlin
| Kotlin | apache-2.0 | lcmatrix/betting-game,lcmatrix/betting-game |
a86b5968664466aeb56902fa99751d6f6a81de6a | src/main/java/com/blurengine/blur/modules/message/Message.kt | src/main/java/com/blurengine/blur/modules/message/Message.kt | /*
* Copyright 2017 Ali Moghnieh
*
* 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... | /*
* Copyright 2017 Ali Moghnieh
*
* 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... | Remove component(vararg args: Any?) in favour of Kotlin Extension format method. | Remove component(vararg args: Any?) in favour of Kotlin Extension format method.
| Kotlin | apache-2.0 | BlurEngine/Blur,BlurEngine/Blur |
134900a95c1d9fb8cfc68b926111b9b0d2cfe042 | src/main/kotlin/mixit/ticket/model/TicketType.kt | src/main/kotlin/mixit/ticket/model/TicketType.kt | package mixit.ticket.model
enum class TicketType {
SPEAKER,
SPONSOR_STAND,
SPONSOR_PARTY,
SPONSOR_PARTNER,
STAFF,
MIXTEEN,
ATTENDEE,
VOLUNTEER,
GUEST,
COMPETITION_WINNER,
FOOD,
MEDIA,
MIXETTE
}
| package mixit.ticket.model
enum class TicketType {
SPEAKER,
SPONSOR_STAND,
SPONSOR_PARTY,
SPONSOR_PARTNER,
STAFF,
MIXTEEN,
ATTENDEE,
VOLUNTEER,
GUEST,
GUEST_ONE_TALK,
COMPETITION_WINNER,
FOOD,
MEDIA,
MIXETTE
}
| Add a new ticket type | Add a new ticket type
| Kotlin | apache-2.0 | mixitconf/mixit,mixitconf/mixit,mixitconf/mixit,mixitconf/mixit |
42d10af7ac7233cb9559e85cca83cb133dc96ff3 | server/src/main/kotlin/at/yawk/javap/DefaultPaste.kt | server/src/main/kotlin/at/yawk/javap/DefaultPaste.kt | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package at.yawk.javap
import at.yawk.javap.model.Paste
import at.yawk.javap.model.ProcessingInput
import jav... | /*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
package at.yawk.javap
import at.yawk.javap.model.Paste
import at.yawk.javap.model.ProcessingInput
import jav... | Remove a bunch of imports from the default java paste | Remove a bunch of imports from the default java paste
| Kotlin | mpl-2.0 | yawkat/javap,yawkat/javap |
a33ce18a57b3e0889c9b9fd1003e847cd590ed4c | app/src/main/java/net/squanchy/support/time/DateTimeFormatter.kt | app/src/main/java/net/squanchy/support/time/DateTimeFormatter.kt | package net.squanchy.support.time
import org.threeten.bp.format.DateTimeFormatter
fun createShortTimeFormatter(): DateTimeFormatter = DateTimeFormatter.ofPattern("h:mm a")
fun createShortDateFormatter(): DateTimeFormatter = DateTimeFormatter.ofPattern("MM/dd/yyyy")
fun createWeekDayAndDayFormatter(): DateTimeFormat... | package net.squanchy.support.time
import org.threeten.bp.format.DateTimeFormatter
import java.util.Locale
fun createShortTimeFormatter(locale: Locale = Locale.getDefault()): DateTimeFormatter =
DateTimeFormatter.ofPattern("h:mm a").withLocale(locale)
fun createShortDateFormatter(locale: Locale = Locale.getDefaul... | Add locale to formatter creator functions | Add locale to formatter creator functions
| Kotlin | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android |
e7a67d7a91122edf8cb638f56defbc241291a769 | app/src/main/java/util/room/converters/DayOfWeekListConverter.kt | app/src/main/java/util/room/converters/DayOfWeekListConverter.kt | /*
* Copyright 2014-2018 Julien Guerinet
*
* 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 a... | /*
* Copyright 2014-2018 Julien Guerinet
*
* 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 a... | Fix bug where an empty list of days would crash the reading from the DB | Fix bug where an empty list of days would crash the reading from the DB
| Kotlin | apache-2.0 | jguerinet/MyMartlet,jguerinet/MyMartlet-Android,jguerinet/MyMartlet,jguerinet/MyMartlet,jguerinet/MyMartlet |
2c482cf4d32ebda895a1c4de9f26cf0d422c577d | app/src/main/java/se/barsk/park/mainui/CarListEntry.kt | app/src/main/java/se/barsk/park/mainui/CarListEntry.kt | package se.barsk.park.mainui
import android.content.Context
import android.graphics.PorterDuff
import android.support.v4.content.ContextCompat
import android.view.View
import se.barsk.park.R
import se.barsk.park.datatypes.Car
/**
* An interface for all lists of cars (parked cars and own cars)
*/
interface CarListEn... | package se.barsk.park.mainui
import android.content.Context
import android.graphics.PorterDuff
import android.graphics.drawable.Drawable
import android.support.v4.content.ContextCompat
import android.view.View
import se.barsk.park.R
import se.barsk.park.datatypes.Car
/**
* An interface for all lists of cars (parked ... | Fix oversized check mark when selecting cars | Fix oversized check mark when selecting cars
The checkmark in the manage cars view uses padding while the avatars doesn't.
So preserve the padding rather than removing it. | Kotlin | mit | nibarius/opera-park-android |
2fbb9adef32e7677903116c8827632d089a2224c | src/main/kotlin/org/jitsi/rtp/util/SrtpUtils.kt | src/main/kotlin/org/jitsi/rtp/util/SrtpUtils.kt | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | /*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | Fix reading the SRTCP index. | fix: Fix reading the SRTCP index.
| Kotlin | apache-2.0 | jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge,jitsi/jitsi-videobridge |
041527bb7eb3f378fab29eff11af4d95418d3091 | sample/src/main/kotlin/com/agoda/sample/TestActivity.kt | sample/src/main/kotlin/com/agoda/sample/TestActivity.kt | package com.agoda.sample
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.widget.Button
import android.widget.ImageView
class TestActivity: AppCompatActivity() {
override fun onCreate(savedInstanceSt... | package com.agoda.sample
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.widget.Button
import android.widget.ImageView
import android.widget.SeekBar
class TestActivity: AppCompat... | Add logging to seek bar | Add logging to seek bar
| Kotlin | apache-2.0 | agoda-com/Kakao |
d5ca90ddde61af27b8c09251d9ca9f60907e362b | src/Loops.kt | src/Loops.kt |
package Kotlin101.Loops
fun main(args : Array<String>) {
var presidents = array("jfk", "nixon", "carter")
print("I love these presidents ")
for (p in presidents) {
print ("$p,")
}
println("")
print("I loath these presidents ")
var loop = presidents.size
while (l... |
package Kotlin101.Loops
fun main(args : Array<String>) {
var presidents = array("jfk", "nixon", "carter")
print("I love these presidents ")
for (p in presidents) {
print ("$p, ")
}
println("")
print("I voted for these presidents ")
for (p in presidents.indices) {
... | Fix loop naming and for in indices | Fix loop naming and for in indices
| Kotlin | bsd-3-clause | dodyg/Kotlin101,mewebstudio/Kotlin101 |
2414355d059055816e1720db4e190c70fef04396 | src/main/kotlin/com/nibado/projects/advent/y2020/Day13.kt | src/main/kotlin/com/nibado/projects/advent/y2020/Day13.kt | package com.nibado.projects.advent.y2020
import com.nibado.projects.advent.*
object Day13 : Day {
private val lines = resourceLines(2020, 13)
private val timeStamp = lines.first().toInt()
private val busIds = lines.last().split(",").toList()
override fun part1(): Int = busIds.filterNot { it == "x" }.... | package com.nibado.projects.advent.y2020
import com.nibado.projects.advent.*
object Day13 : Day {
private val lines = resourceLines(2020, 13)
private val timeStamp = lines.first().toInt()
private val busIds = lines.last().split(",").toList()
override fun part1(): Int = busIds.filterNot { it == "x" }.... | Refactor Day 13 part 2 | Refactor Day 13 part 2
| Kotlin | mit | nielsutrecht/adventofcode,nielsutrecht/adventofcode,nielsutrecht/adventofcode |
84ebb92850dabfde0318b641ecef8547ce601e95 | src/nl/rubensten/texifyidea/run/compiler/BiberCompiler.kt | src/nl/rubensten/texifyidea/run/compiler/BiberCompiler.kt | package nl.rubensten.texifyidea.run.compiler
import com.intellij.openapi.project.Project
import nl.rubensten.texifyidea.run.BibtexRunConfiguration
/**
* @author Thomas Schouten
*/
internal object BiberCompiler : Compiler<BibtexRunConfiguration> {
override val displayName = "Biber"
override val executableNa... | package nl.rubensten.texifyidea.run.compiler
import com.intellij.openapi.project.Project
import nl.rubensten.texifyidea.run.BibtexRunConfiguration
/**
* @author Thomas Schouten
*/
internal object BiberCompiler : Compiler<BibtexRunConfiguration> {
override val displayName = "Biber"
override val executableNa... | Fix biber flag to include resource file | Fix biber flag to include resource file
| Kotlin | mit | Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA,Ruben-Sten/TeXiFy-IDEA |
f50b0140682c4bddf4a2c167fbecb2ed44fef510 | ktor-netty/src/org/jetbrains/ktor/netty/NettyApplicationRequestContext.kt | ktor-netty/src/org/jetbrains/ktor/netty/NettyApplicationRequestContext.kt | package org.jetbrains.ktor.netty
import io.netty.channel.*
import io.netty.handler.codec.http.*
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.interception.*
class NettyApplicationRequestContext(override val application: Application,
val context: ChannelHandlerC... | package org.jetbrains.ktor.netty
import io.netty.channel.*
import io.netty.handler.codec.http.*
import org.jetbrains.ktor.application.*
import org.jetbrains.ktor.http.HttpHeaders
import org.jetbrains.ktor.interception.*
class NettyApplicationRequestContext(override val application: Application,
... | Use chunked encoding if other kind of encoding or content-length was not specified. | Use chunked encoding if other kind of encoding or content-length was not specified.
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
4b0478ba8f20af534c1b8fe02eae794a8b8cd0f9 | app/src/main/kotlin/com/androidmess/helix/discover/view/DiscoverAdapter.kt | app/src/main/kotlin/com/androidmess/helix/discover/view/DiscoverAdapter.kt | package com.androidmess.helix.discover.view
import android.support.v7.widget.RecyclerView
import android.view.View
import android.view.ViewGroup
import com.androidmess.helix.R
import com.androidmess.helix.common.ui.recyclerview.RecyclerViewItemSizeCalculator
import com.androidmess.helix.common.ui.view.inflate
import c... | package com.androidmess.helix.discover.view
import android.support.v7.widget.RecyclerView
import android.view.View
import android.view.ViewGroup
import com.androidmess.helix.R
import com.androidmess.helix.common.ui.recyclerview.RecyclerViewItemSizeCalculator
import com.androidmess.helix.common.ui.view.inflate
import c... | Fix issue with blinking list on infinite scroll data reload | Fix issue with blinking list on infinite scroll data reload
| Kotlin | apache-2.0 | sswierczek/Helix-Movie-Guide-Android |
7e600734a1a56a824090e1ed548c121c56f61f56 | app/src/main/java/pl/mg6/likeornot/LikesRepository.kt | app/src/main/java/pl/mg6/likeornot/LikesRepository.kt | package pl.mg6.likeornot
import android.content.Context
import io.reactivex.Single
import java.io.File
typealias LikableToStatus = Map<String, Status>
fun callLocalLikes(context: Context): Single<LikableToStatus> {
val likesFile = File(context.filesDir, "likes")
return if (likesFile.exists()) {
Singl... | package pl.mg6.likeornot
import android.content.Context
import io.reactivex.Single
import java.io.File
typealias LikableToStatus = Map<String, Status>
fun callLocalLikes(context: Context): Single<LikableToStatus> {
val likesFile = File(context.filesDir, "likes")
return Single.fromCallable { likesFile.readLin... | Handle all errors when getting likes from local storage. | Handle all errors when getting likes from local storage.
| Kotlin | apache-2.0 | mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone,mg6maciej/fluffy-octo-rotary-phone |
c6a7ff45cd7f7b636673de97a25eeee78ffbd8d3 | aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecCommentSpan.kt | aztec/src/main/kotlin/org/wordpress/aztec/spans/AztecCommentSpan.kt | package org.wordpress.aztec.spans
import android.content.Context
import android.graphics.drawable.Drawable
class AztecCommentSpan(context: Context, drawable: Drawable, override var nestingLevel: Int) :
AztecDynamicImageSpan(context, drawable), AztecFullWidthImageSpan {
companion object {
private v... | package org.wordpress.aztec.spans
import android.content.Context
import android.graphics.drawable.Drawable
import org.wordpress.aztec.AztecText
class AztecCommentSpan @JvmOverloads constructor(context: Context, drawable: Drawable, override var nestingLevel: Int, editor: AztecText? = null) :
AztecDynamicImageS... | Fix comment drawable bounds when adding it from toolbar | Fix comment drawable bounds when adding it from toolbar
| Kotlin | mpl-2.0 | wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android,wordpress-mobile/AztecEditor-Android |
5bd623e3222f2a74dc0389154d4c63c5ab322675 | app/src/main/java/info/nightscout/androidaps/queue/commands/CommandStartPump.kt | app/src/main/java/info/nightscout/androidaps/queue/commands/CommandStartPump.kt | package info.nightscout.androidaps.queue.commands
import dagger.android.HasAndroidInjector
import info.nightscout.androidaps.interfaces.ActivePluginProvider
import info.nightscout.androidaps.interfaces.ProfileFunction
import info.nightscout.androidaps.plugins.pump.insight.LocalInsightPlugin
import info.nightscout.andr... | package info.nightscout.androidaps.queue.commands
import dagger.android.HasAndroidInjector
import info.nightscout.androidaps.interfaces.ActivePluginProvider
import info.nightscout.androidaps.interfaces.ProfileFunction
import info.nightscout.androidaps.plugins.pump.common.defs.PumpType
import info.nightscout.androidaps... | Remove unresolved Omnipod import after merge | Remove unresolved Omnipod import after merge
| Kotlin | agpl-3.0 | jotomo/AndroidAPS,jotomo/AndroidAPS,Heiner1/AndroidAPS,Heiner1/AndroidAPS,jotomo/AndroidAPS,Heiner1/AndroidAPS,Heiner1/AndroidAPS |
a7b406cf34cbaf1a767d226701003965d9f2740a | ktor-client/ktor-client-core/jvm/src/io/ktor/client/HttpClientJvm.kt | ktor-client/ktor-client-core/jvm/src/io/ktor/client/HttpClientJvm.kt | package io.ktor.client
import io.ktor.client.engine.*
import java.util.*
/**
* Constructs an asynchronous [HttpClient] using optional [block] for configuring this client.
*
* The [HttpClientEngine] is selected from the dependencies.
* https://ktor.io/clients/http-client/engines.html
*/
actual fun HttpClient(
... | package io.ktor.client
import io.ktor.client.engine.*
import java.util.*
/**
* Constructs an asynchronous [HttpClient] using optional [block] for configuring this client.
*
* The [HttpClientEngine] is selected from the dependencies using [ServiceLoader].
* The first found implementation that provides [HttpClientE... | Improve HTTP client engine container documentation | Improve HTTP client engine container documentation
| Kotlin | apache-2.0 | ktorio/ktor,ktorio/ktor,ktorio/ktor,ktorio/ktor |
87af8681046f9c87905adf97342d6d8b210ffc88 | src/main/kotlin/com/emberjs/utils/VirtualFileExtensions.kt | src/main/kotlin/com/emberjs/utils/VirtualFileExtensions.kt | package com.emberjs.utils
import com.intellij.openapi.vfs.VirtualFile
val VirtualFile.parents: Iterable<VirtualFile>
get() = object : Iterable<VirtualFile> {
override fun iterator(): Iterator<VirtualFile> {
var file = this@parents
return object : Iterator<VirtualFile> {
... | package com.emberjs.utils
import com.intellij.openapi.vfs.VirtualFile
val VirtualFile.parents: Iterable<VirtualFile>
get() = object : Iterable<VirtualFile> {
override fun iterator(): Iterator<VirtualFile> {
var file = this@parents
return object : Iterator<VirtualFile> {
... | Remove obsolete findAppFolder() extension method | Remove obsolete findAppFolder() extension method
| Kotlin | apache-2.0 | Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs,Turbo87/intellij-emberjs |
1e0cc652462fa8ea5dc4c8cd0ea5aa72d022a9e3 | dn/src/main/java/com/github/tslamic/dn/DatabaseImpl.kt | dn/src/main/java/com/github/tslamic/dn/DatabaseImpl.kt | package com.github.tslamic.dn
import android.content.Context
import android.content.SharedPreferences
import android.database.sqlite.SQLiteDatabase
import java.io.File
import java.io.InputStream
import java.io.OutputStream
class DatabaseImpl(val context: Context) : Database {
val prefs: SharedPreferences = context.... | package com.github.tslamic.dn
import android.content.Context
import android.content.SharedPreferences
import android.database.sqlite.SQLiteDatabase
import java.io.File
import java.io.IOException
import java.io.InputStream
import java.io.OutputStream
class DatabaseImpl(val context: Context) : Database {
val prefs: S... | Check and create db dir if necessary | Check and create db dir if necessary
| Kotlin | apache-2.0 | corcoran/AndroidDeviceNames,corcoran/AndroidDeviceNames,tslamic/AndroidDeviceNames,corcoran/AndroidDeviceNames,tslamic/AndroidDeviceNames,tslamic/AndroidDeviceNames |
90d459645858ecca441ec3822a2a710e490f121c | build.gradle.kts | build.gradle.kts | plugins {
id("adventure.parent-build-logic")
}
group = "net.kyori"
version = "4.9.1"
description = "A user-interface library for Minecraft: Java Edition."
| plugins {
id("adventure.parent-build-logic")
}
group = "net.kyori"
version = "4.10.0-SNAPSHOT"
description = "A user-interface library for Minecraft: Java Edition."
| Prepare for further development on 4.10.0 | release: Prepare for further development on 4.10.0
| Kotlin | mit | KyoriPowered/text,KyoriPowered/text |
109726c39ccb0f71bf97c06707586e1d6da59bf5 | kotlin/src/com/s13g/aoc/aoc2020/Day1.kt | kotlin/src/com/s13g/aoc/aoc2020/Day1.kt | package com.s13g.aoc.aoc2020
import com.s13g.aoc.Result
import com.s13g.aoc.Solver
import com.s13g.aoc.mul
/**
* --- Day 1: Report Repair ---
* https://adventofcode.com/2020/day/1
*/
class Day1 : Solver {
override fun solve(lines: List<String>): Result {
val (resultA, resultB) = run(lines.map { it.toLong() }... | package com.s13g.aoc.aoc2020
import com.s13g.aoc.Result
import com.s13g.aoc.Solver
import com.s13g.aoc.mul
/**
* --- Day 1: Report Repair ---
* https://adventofcode.com/2020/day/1
*/
class Day1 : Solver {
override fun solve(lines: List<String>): Result {
val (resultA, resultB) = run(lines.map { it.toLong() }... | Replace let if more normal if statement. | Replace let if more normal if statement.
| Kotlin | apache-2.0 | shaeberling/euler,shaeberling/euler,shaeberling/euler,shaeberling/euler |
42f58d6b66af9cf2afc5c7cfa3c751f91b41007a | acornui-core/src/commonMain/kotlin/com/acornui/core/UidUtil.kt | acornui-core/src/commonMain/kotlin/com/acornui/core/UidUtil.kt | /*
* Copyright 2017 Nicholas Bilyk
*
* 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 ... | /*
* Copyright 2017 Nicholas Bilyk
*
* 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 ... | Fix reference to JVM random code in common | Fix reference to JVM random code in common
| Kotlin | apache-2.0 | AcornUI/Acorn,AcornUI/Acorn,AcornUI/Acorn |
1d5538d0406342150bfcc8c632c63f32d064ce4a | app/src/main/java/net/squanchy/service/firebase/injection/FirestoreModule.kt | app/src/main/java/net/squanchy/service/firebase/injection/FirestoreModule.kt | package net.squanchy.service.firebase.injection
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.FirebaseFirestoreSettings
import dagger.Module
import dagger.Provides
import net.squanchy.injection.ApplicationLifecycle
import net.sq... | package net.squanchy.service.firebase.injection
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.firestore.FirebaseFirestoreSettings
import dagger.Module
import dagger.Provides
import net.squanchy.injection.ApplicationLifecycle
import net.sq... | Use remote config to allow disabling persistence | Use remote config to allow disabling persistence
| Kotlin | apache-2.0 | squanchy-dev/squanchy-android,squanchy-dev/squanchy-android,squanchy-dev/squanchy-android |
f8fd3dd6670c81cf33194b9f99869095526972c0 | android-app/src/main/kotlin/fr/cph/chicago/core/activity/ErrorActivity.kt | android-app/src/main/kotlin/fr/cph/chicago/core/activity/ErrorActivity.kt | /**
* Copyright 2019 Carl-Philipp Harmant
*
*
* 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 la... | /**
* Copyright 2019 Carl-Philipp Harmant
*
*
* 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 la... | Remove butterknife from error activity | Remove butterknife from error activity
| Kotlin | apache-2.0 | carlphilipp/chicago-commutes,carlphilipp/chicago-commutes,carlphilipp/chicago-commutes |
23ba670709f5d5ac16558442e80e72ce776de6d6 | .teamcity/Gradle_Promotion/buildTypes/BasePromotionBuildType.kt | .teamcity/Gradle_Promotion/buildTypes/BasePromotionBuildType.kt | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | /*
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | Add ge.gradle.org credentials to promotion jobs | Add ge.gradle.org credentials to promotion jobs
| Kotlin | apache-2.0 | blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,gradle/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,blindpirate/gradle,gradle/gradle,blindpirate/gradle,blindpirate/gradle,grad... |
c13279f2f0663aed7820bb62ec317086ba984eae | src/test/kotlin/org/rust/ide/annotator/RustHighlightingPerformanceTest.kt | src/test/kotlin/org/rust/ide/annotator/RustHighlightingPerformanceTest.kt | package org.rust.ide.annotator
import com.intellij.testFramework.LightProjectDescriptor
import org.junit.experimental.categories.Category
import org.rust.Performance
import org.rust.lang.RustTestCaseBase
@Category(Performance::class)
class RustHighlightingPerformanceTest : RustTestCaseBase() {
override val dataPa... | package org.rust.ide.annotator
import com.intellij.psi.stubs.StubUpdatingIndex
import com.intellij.testFramework.LightProjectDescriptor
import com.intellij.util.indexing.FileBasedIndex
import org.junit.experimental.categories.Category
import org.rust.Performance
import org.rust.lang.RustTestCaseBase
@Category(Perform... | Reset `RustImplIndex` on every test run | (IDX): Reset `RustImplIndex` on every test run
| Kotlin | mit | d9n/intellij-rust,himikof/intellij-rust,intellij-rust/intellij-rust,ujpv/intellij-rust,ujpv/intellij-rust,intellij-rust/intellij-rust,anton-okolelov/intellij-rust,anton-okolelov/intellij-rust,d9n/intellij-rust,alygin/intellij-rust,himikof/intellij-rust,Undin/intellij-rust,alygin/intellij-rust,d9n/intellij-rust,Undin/in... |
b0637ab61d37372b4691d5eeef258b5b1b8a4510 | src/main/kotlin/org/wfanet/measurement/common/testing/CloseableResource.kt | src/main/kotlin/org/wfanet/measurement/common/testing/CloseableResource.kt | // Copyright 2020 The Measurement System Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | // Copyright 2020 The Measurement System Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable ... | Initialize properties on construction in Spanner testing AutoCloseables. | Initialize properties on construction in Spanner testing AutoCloseables.
This more closely follows common AutoCloseable semantics.
Change-Id: I0fb47cf30ac2c17340791f4cc4572b706a816fa9
| Kotlin | apache-2.0 | world-federation-of-advertisers/common-jvm,world-federation-of-advertisers/common-jvm |
179f9b2061589835cd251b18d61e7a10ffb79f7d | src/main/kotlin/com/beust/kobalt/app/ProjectGenerator.kt | src/main/kotlin/com/beust/kobalt/app/ProjectGenerator.kt | package com.beust.kobalt.app
import com.beust.kobalt.Args
import com.beust.kobalt.internal.ActorUtils
import com.beust.kobalt.internal.PluginInfo
import com.beust.kobalt.misc.log
import com.google.inject.Inject
import java.io.File
import java.io.FileOutputStream
/**
* Invoked with --init. Generate a new project.
*/... | package com.beust.kobalt.app
import com.beust.kobalt.Args
import com.beust.kobalt.internal.ActorUtils
import com.beust.kobalt.internal.PluginInfo
import com.beust.kobalt.misc.log
import com.google.inject.Inject
import java.io.File
import java.io.FileOutputStream
/**
* Invoked with --init. Generate a new project.
*/... | Create the directory for --init. | Create the directory for --init.
| Kotlin | apache-2.0 | ethauvin/kobalt,evanchooly/kobalt,evanchooly/kobalt,ethauvin/kobalt,evanchooly/kobalt,ethauvin/kobalt,evanchooly/kobalt,cbeust/kobalt,ethauvin/kobalt,cbeust/kobalt,cbeust/kobalt |
cfb29d84aef05ad40464866287bf1143e4f1e589 | src/main/kotlin/com/github/inikolaev/vertx/web/kotlin/HttpServerResponse.kt | src/main/kotlin/com/github/inikolaev/vertx/web/kotlin/HttpServerResponse.kt | package com.github.inikolaev.vertx.web.kotlin
import io.vertx.core.http.HttpServerResponse
import io.vertx.core.json.JsonArray
import io.vertx.core.json.JsonObject
fun HttpServerResponse.endJson(json: JsonObject) = this.end(json.encode())
fun HttpServerResponse.endJson(json: JsonArray) = this.end(json.encode())
| package com.github.inikolaev.vertx.web.kotlin
import io.vertx.core.http.HttpServerResponse
import io.vertx.core.json.Json
import io.vertx.core.json.JsonArray
import io.vertx.core.json.JsonObject
fun HttpServerResponse.endJson(json: JsonObject) = this.end(json.encode())
fun HttpServerResponse.endJson(json: JsonArray) ... | Make endJson to encode any object to JSON | Make endJson to encode any object to JSON
| Kotlin | mit | inikolaev/vertx-web-kotlin |
2eddb02e0fefac50a0f3fe3d85c006ddb01a7772 | plugins/space/src/main/kotlin/circlet/auth/IdeaAuthenticator.kt | plugins/space/src/main/kotlin/circlet/auth/IdeaAuthenticator.kt | package circlet.auth
import circlet.platform.api.oauth.*
import circlet.platform.workspaces.*
import io.ktor.application.*
import io.ktor.request.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.engine.*
import io.ktor.server.jetty.*
import libraries.coroutines.extra.*
import libraries.kloggi... | package circlet.auth
import circlet.platform.api.oauth.*
import circlet.platform.workspaces.*
import io.ktor.application.*
import io.ktor.request.*
import io.ktor.response.*
import io.ktor.routing.*
import io.ktor.server.engine.*
import io.ktor.server.jetty.*
import libraries.coroutines.extra.*
import libraries.kloggi... | Revert "replace suspendCoroutine with suspendCancellableCoroutine" | Revert "replace suspendCoroutine with suspendCancellableCoroutine"
This reverts commit c0dce31d
GitOrigin-RevId: 136338f5b0b135a7d72b2b6f224156cb43fbc663 | Kotlin | apache-2.0 | allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/intellij-community,allotria/int... |
b30bf6f1b862ae8386bad33a608785024f5ed69a | src/main/kotlin/org/team2471/frc/lib/util/MiscUtils.kt | src/main/kotlin/org/team2471/frc/lib/util/MiscUtils.kt | package org.team2471.frc.lib.util
import edu.wpi.first.wpilibj.Timer
/**
* Executes the given block and returns elapsed time in seconds.
*/
fun measureTimeFPGA(body: () -> Unit): Double {
val start = Timer.getFPGATimestamp()
body()
return Timer.getFPGATimestamp() - start
}
fun Double.deadband(tolerance... | package org.team2471.frc.lib.util
import edu.wpi.first.wpilibj.Timer
/**
* Executes the given block and returns elapsed time in seconds.
*/
fun measureTimeFPGA(body: () -> Unit): Double {
val start = Timer.getFPGATimestamp()
body()
return Timer.getFPGATimestamp() - start
}
fun Double.deadband(tolerance... | Update meanlib to fix deadband scaling | Update meanlib to fix deadband scaling
| Kotlin | unlicense | TeamMeanMachine/meanlib,TeamMeanMachine/meanlib |
1a5abf19878cf8430d932ff1c581f0f2184a594c | app/src/main/java/app/tivi/ui/widget/TintingToolbar.kt | app/src/main/java/app/tivi/ui/widget/TintingToolbar.kt | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2018 Google, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Fix Toolbar tinting animation on release build | Fix Toolbar tinting animation on release build
| Kotlin | apache-2.0 | chrisbanes/tivi,chrisbanes/tivi |
ee93bcf2c99139b4dcdc3131370826d409f1e6fa | cli/build.gradle.kts | cli/build.gradle.kts | /*
* Copyright 2019 Google LLC
*
* 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 applicable law or agreed to ... | /*
* Copyright 2019 Google LLC
*
* 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 applicable law or agreed to ... | Make the CLI a fat jar. | Make the CLI a fat jar.
Save users and AGP the trouble of finding all the other jars to put on
the classpath.
| Kotlin | apache-2.0 | google/prefab,google/prefab |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.