index
int64
0
0
repo_id
stringlengths
26
205
file_path
stringlengths
51
246
content
stringlengths
8
433k
__index_level_0__
int64
0
10k
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/MapboxWebMapViewBuilder.java
package com.airbnb.android.airmapview; /** * AirMapView map that uses the web based Mapbox implementation. */ public class MapboxWebMapViewBuilder implements AirMapViewBuilder<WebViewMapFragment, AirMapType> { private AirMapType options; private final String accessToken; private final String mapId; /** ...
9,300
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/MapboxWebViewMapFragment.java
package com.airbnb.android.airmapview; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import java.util.Locale; public class MapboxWebViewMapFragment extends WebViewMapFragment { public static MapboxWebViewMapFragment newInstance(AirMapType ma...
9,301
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/MapboxWebMapType.java
package com.airbnb.android.airmapview; import android.content.res.Resources; import android.os.Bundle; public class MapboxWebMapType extends AirMapType { private final String mapId; private final String accessToken; protected static final String ARG_MAPBOX_ACCESS_TOKEN = "MAPBOX_ACCESS_TOKEN"; protected stat...
9,302
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/LeafletGaodeMapType.java
package com.airbnb.android.airmapview; public class LeafletGaodeMapType extends LeafletMapType { public LeafletGaodeMapType() { super("Gaode"); } }
9,303
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/WebViewMapFragment.java
package com.airbnb.android.airmapview; import android.annotation.SuppressLint; import android.graphics.Bitmap; import android.graphics.Point; import android.os.Bundle; import android.os.Handler; import android.os.Looper; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import andr...
9,304
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/LeafletGoogleChinaMapType.java
package com.airbnb.android.airmapview; public class LeafletGoogleChinaMapType extends LeafletMapType { public LeafletGoogleChinaMapType() { super("GoogleChina"); } }
9,305
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/FixedWebView.java
package com.airbnb.android.airmapview; import android.content.Context; import android.content.res.Configuration; import android.os.Build; import android.util.AttributeSet; import android.webkit.WebView; /** * FIXME: Remove this class when AppCompat bug is fixed. * In short, AppCompat 1.1.0 makes WebView crashes on ...
9,306
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/AirMapViewTypes.java
package com.airbnb.android.airmapview; /** * Lists all available AirMapView implementations. Types are listed in order of preference. */ public enum AirMapViewTypes { NATIVE, WEB }
9,307
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/MapType.java
package com.airbnb.android.airmapview; public enum MapType { MAP_TYPE_NORMAL, MAP_TYPE_SATELLITE, MAP_TYPE_TERRAIN }
9,308
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/AirMapInterface.java
package com.airbnb.android.airmapview; import com.airbnb.android.airmapview.listeners.InfoWindowCreator; import com.airbnb.android.airmapview.listeners.OnCameraChangeListener; import com.airbnb.android.airmapview.listeners.OnInfoWindowClickListener; import com.airbnb.android.airmapview.listeners.OnLatLngScreenLocation...
9,309
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/LeafletMapType.java
package com.airbnb.android.airmapview; public abstract class LeafletMapType extends AirMapType { // For leaflet, we define some map provider in leaflet_map.html file. // So need to supply a provider name here. (like Google, GoogleChina, Baidu, Gaode) public LeafletMapType(String mapProvider) { super("leafle...
9,310
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/NativeGoogleMapFragment.java
package com.airbnb.android.airmapview; import android.graphics.Bitmap; import android.graphics.Point; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import com.airbnb.android.airmapview.listeners.InfoWindowCrea...
9,311
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/AirMapView.java
package com.airbnb.android.airmapview; import android.content.Context; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.MotionEvent; import android.widget.FrameLayout; import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.fragment.app.Fragm...
9,312
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/LeafletGoogleMapType.java
package com.airbnb.android.airmapview; public class LeafletGoogleMapType extends LeafletMapType { public LeafletGoogleMapType() { super("Google"); } }
9,313
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/AirMapPolygon.java
package com.airbnb.android.airmapview; import android.graphics.Color; import androidx.annotation.NonNull; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.Polygon; import com.google.android.gms.maps.model.PolygonOptions; public class AirMapPolygon<T> { private static final...
9,314
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/WebAirMapViewBuilder.java
package com.airbnb.android.airmapview; /** * AirMapView map that uses the web based Google Maps implementation. */ public class WebAirMapViewBuilder implements AirMapViewBuilder<WebViewMapFragment, AirMapType> { private AirMapType options; @Override public AirMapViewBuilder<WebViewMapFragment, AirMapType> wi...
9,315
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/AirMapMarker.java
package com.airbnb.android.airmapview; import android.graphics.Bitmap; import androidx.annotation.Nullable; import com.google.android.gms.maps.model.BitmapDescriptor; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.m...
9,316
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/LeafletDivIcon.java
package com.airbnb.android.airmapview; public class LeafletDivIcon { private final String html; private final int width; private final int height; public LeafletDivIcon(String html, int width, int height) { this.html = html; this.width = width; this.height = height; } public String getHtml() ...
9,317
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/GoogleChinaWebViewMapFragment.java
package com.airbnb.android.airmapview; public class GoogleChinaWebViewMapFragment extends GoogleWebViewMapFragment { public static GoogleChinaWebViewMapFragment newInstance(AirMapType mapType) { return (GoogleChinaWebViewMapFragment) new GoogleChinaWebViewMapFragment() .setArguments(mapType); } @Ove...
9,318
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/GoogleWebViewMapFragment.java
package com.airbnb.android.airmapview; import java.util.Locale; public class GoogleWebViewMapFragment extends WebViewMapFragment { public static GoogleWebViewMapFragment newInstance(AirMapType mapType) { return (GoogleWebViewMapFragment) new GoogleWebViewMapFragment().setArguments(mapType); } @Override pub...
9,319
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/DefaultAirMapViewBuilder.java
package com.airbnb.android.airmapview; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import com.google.android.gms.common.ConnectionResult; import com.google.android...
9,320
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/AirGoogleMapOptions.java
package com.airbnb.android.airmapview; import android.os.Bundle; import com.google.android.gms.maps.GoogleMapOptions; import com.google.android.gms.maps.model.CameraPosition; /** * Wrapper for the {@link GoogleMapOptions} class, which is final. */ public class AirGoogleMapOptions { private final GoogleMapOption...
9,321
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/LeafletWebViewMapFragment.java
package com.airbnb.android.airmapview; import com.google.android.gms.maps.model.LatLng; import java.util.Locale; public class LeafletWebViewMapFragment extends WebViewMapFragment { public static LeafletWebViewMapFragment newInstance(AirMapType mapType) { return (LeafletWebViewMapFragment) new LeafletWebViewMap...
9,322
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/GoogleChinaMapType.java
package com.airbnb.android.airmapview; public class GoogleChinaMapType extends AirMapType { public GoogleChinaMapType() { super("google_map.html", "http://ditu.google.cn/maps/api/js", "www.google.cn"); } }
9,323
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/RuntimePermissionUtils.java
package com.airbnb.android.airmapview; import android.app.Activity; import android.content.Context; import android.content.pm.PackageManager; import android.os.Build; import androidx.core.app.ActivityCompat; import static androidx.core.content.PermissionChecker.checkSelfPermission; /** * Utility class that handles ...
9,324
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnMapBoundsCallback.java
package com.airbnb.android.airmapview.listeners; import com.google.android.gms.maps.model.LatLngBounds; public interface OnMapBoundsCallback { void onMapBoundsReady(LatLngBounds bounds); }
9,325
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnMapMarkerClickListener.java
package com.airbnb.android.airmapview.listeners; import com.airbnb.android.airmapview.AirMapMarker; public interface OnMapMarkerClickListener { /* * Called when an airMarker has been clicked or tapped. * Return true if the listener has consumed the event (i.e., the default behavior should not occur); * false...
9,326
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnSnapshotReadyListener.java
package com.airbnb.android.airmapview.listeners; import android.graphics.Bitmap; import androidx.annotation.Nullable; public interface OnSnapshotReadyListener { void onSnapshotReady(@Nullable Bitmap bitmap); }
9,327
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnInfoWindowClickListener.java
package com.airbnb.android.airmapview.listeners; import com.airbnb.android.airmapview.AirMapMarker; public interface OnInfoWindowClickListener { void onInfoWindowClick(AirMapMarker<?> airMarker); }
9,328
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnCameraChangeListener.java
package com.airbnb.android.airmapview.listeners; import com.google.android.gms.maps.model.LatLng; public interface OnCameraChangeListener { void onCameraChanged(LatLng latLng, int zoom); }
9,329
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnMapClickListener.java
package com.airbnb.android.airmapview.listeners; import com.google.android.gms.maps.model.LatLng; public interface OnMapClickListener { void onMapClick(LatLng latLng); }
9,330
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnMapMarkerDragListener.java
package com.airbnb.android.airmapview.listeners; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.Marker; public interface OnMapMarkerDragListener { void onMapMarkerDragStart(Marker marker); void onMapMarkerDrag(Marker marker); void onMapMarkerDragEnd(Marker marker); ...
9,331
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnMapLoadedListener.java
package com.airbnb.android.airmapview.listeners; public interface OnMapLoadedListener { void onMapLoaded(); }
9,332
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/InfoWindowCreator.java
package com.airbnb.android.airmapview.listeners; import android.view.View; import com.airbnb.android.airmapview.AirMapMarker; public interface InfoWindowCreator { View createInfoWindow(AirMapMarker<?> airMarker); }
9,333
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnLatLngScreenLocationCallback.java
package com.airbnb.android.airmapview.listeners; import android.graphics.Point; public interface OnLatLngScreenLocationCallback { void onLatLngScreenLocationReady(Point point); }
9,334
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnCameraMoveListener.java
package com.airbnb.android.airmapview.listeners; /** * This event is triggered once as soon as the map camera starts moving and then is not triggered * again until the next time the user moves the map camera again. This is handled by AirMapView * instead of the actual GoogleMap implementation since this is not supp...
9,335
0
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview
Create_ds/AirMapView/library/src/main/java/com/airbnb/android/airmapview/listeners/OnMapInitializedListener.java
package com.airbnb.android.airmapview.listeners; public interface OnMapInitializedListener { void onMapInitialized(); }
9,336
0
Create_ds/AirMapView/sample/src/main/java/com/airbnb/airmapview
Create_ds/AirMapView/sample/src/main/java/com/airbnb/airmapview/sample/Util.java
package com.airbnb.airmapview.sample; import android.content.Context; import android.util.Log; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.io.StringWriter; import java.io.Writer; public class Util { private static final String LOGTAG = "Util"; public...
9,337
0
Create_ds/AirMapView/sample/src/main/java/com/airbnb/airmapview
Create_ds/AirMapView/sample/src/main/java/com/airbnb/airmapview/sample/MainActivity.java
package com.airbnb.airmapview.sample; import android.graphics.Bitmap; import android.graphics.Point; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androi...
9,338
0
Create_ds/AirMapView/sample/src/main/java/com/airbnb/airmapview
Create_ds/AirMapView/sample/src/main/java/com/airbnb/airmapview/sample/LogsAdapter.java
package com.airbnb.airmapview.sample; import android.graphics.Bitmap; import androidx.annotation.IntDef; import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import java.lang.annotation.Ret...
9,339
0
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws/iotfleetwise/FweApplication.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.aws.iotfleetwise; import android.annotation.SuppressLint; import android.app.Application; import android.car.Car; import android.car.VehiclePropertyIds; import android.car.hardware.CarPropertyConfi...
9,340
0
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws/iotfleetwise/BluetoothActivity.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.aws.iotfleetwise; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.content.Intent; import android.os.Bundle; import ...
9,341
0
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws/iotfleetwise/ConfigureVehicleActivity.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.aws.iotfleetwise; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import android.widget.EditText...
9,342
0
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws/iotfleetwise/AboutActivity.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.aws.iotfleetwise; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.text.method.LinkMovementMethod; import android.widget.EditText; import android...
9,343
0
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws/iotfleetwise/MainActivity.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.aws.iotfleetwise; import android.car.Car; import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.content.Intent; import android.content.SharedPreferenc...
9,344
0
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws/iotfleetwise/Fwe.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.aws.iotfleetwise; import android.content.res.AssetManager; public class Fwe { /** * Run FWE. This will block until the `stop` method is called. * @param assetManager Android asset ma...
9,345
0
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws/iotfleetwise/Elm327.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.aws.iotfleetwise; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.util.Log; import java.io.IOException...
9,346
0
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws
Create_ds/aws-iot-fleetwise-edge/tools/android-app/app/src/main/java/com/aws/iotfleetwise/StatusEditTextPreference.java
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package com.aws.iotfleetwise; import android.content.Context; import android.preference.EditTextPreference; import android.util.AttributeSet; import android.view.View; import android.widget.TextView; public c...
9,347
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/test/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/test/java/com/netflix/turbine/discovery/eureka/EurekaInstanceDiscoveryTest.java
/** * Copyright 2014 Netflix, 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 in writing...
9,348
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/main/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/main/java/com/netflix/turbine/discovery/eureka/StartEurekaTurbine.java
/** * Copyright 2014 Netflix, 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 t...
9,349
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/main/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/main/java/com/netflix/turbine/discovery/eureka/EurekaInstanceDiscovery.java
/* * Copyright 2013 Netflix * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
9,350
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/main/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/main/java/com/netflix/turbine/discovery/eureka/EurekaInstance.java
/** * Copyright 2014 Netflix, 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 i...
9,351
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/main/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka2/src/main/java/com/netflix/turbine/discovery/eureka/EurekaStreamDiscovery.java
/** * Copyright 2014 Netflix, 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 i...
9,352
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/test/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/test/java/com/netflix/turbine/discovery/eureka/EurekaInstanceDiscoveryTest.java
/** * Copyright 2014 Netflix, 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 i...
9,353
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/main/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/main/java/com/netflix/turbine/discovery/eureka/StartEurekaTurbine.java
/** * Copyright 2014 Netflix, 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 t...
9,354
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/main/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/main/java/com/netflix/turbine/discovery/eureka/EurekaInstanceDiscovery.java
/* * Copyright 2013 Netflix * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
9,355
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/main/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/main/java/com/netflix/turbine/discovery/eureka/EurekaInstance.java
/** * Copyright 2014 Netflix, 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 i...
9,356
0
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/main/java/com/netflix/turbine/discovery
Create_ds/Turbine/turbine-ext/turbine-discovery-eureka1/src/main/java/com/netflix/turbine/discovery/eureka/EurekaStreamDiscovery.java
/** * Copyright 2014 Netflix, 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 i...
9,357
0
Create_ds/Turbine/turbine-core/src/test/java/com/netflix
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine/HystrixStreamSource.java
/** * Copyright 2014 Netflix, 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 t...
9,358
0
Create_ds/Turbine/turbine-core/src/test/java/com/netflix
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine/HttpServerDemo.java
/** * Copyright 2014 Netflix, 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 t...
9,359
0
Create_ds/Turbine/turbine-core/src/test/java/com/netflix
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine/Demo.java
/** * Copyright 2014 Netflix, 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 t...
9,360
0
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine/aggregator/AggregateStringTest.java
/** * Copyright 2014 Netflix, 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 t...
9,361
0
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine/aggregator/NumberListTest.java
/** * Copyright 2014 Netflix, 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 t...
9,362
0
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine/aggregator/StreamAggregatorTest.java
/** * Copyright 2014 Netflix, 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 t...
9,363
0
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/test/java/com/netflix/turbine/internal/RequestCreatorTest.java
package com.netflix.turbine.internal; import io.netty.buffer.ByteBuf; import io.reactivex.netty.protocol.http.client.HttpClientRequest; import org.junit.Test; import java.net.URI; import java.util.Base64; import static java.nio.charset.StandardCharsets.UTF_8; import static org.junit.Assert.assertEquals; import stati...
9,364
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/Turbine.java
/** * Copyright 2014 Netflix, Inc. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or...
9,365
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/StartTurbine.java
/** * Copyright 2014 Netflix, 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 t...
9,366
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/aggregator/TypeAndNameKey.java
/** * Copyright 2014 Netflix, 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 t...
9,367
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/aggregator/GroupKey.java
/** * Copyright 2014 Netflix, 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 t...
9,368
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/aggregator/AggregateString.java
/** * Copyright 2014 Netflix, 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 t...
9,369
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/aggregator/NumberList.java
/** * Copyright 2014 Netflix, 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 t...
9,370
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/aggregator/StreamAggregator.java
/** * Copyright 2014 Netflix, 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 t...
9,371
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/aggregator/InstanceKey.java
/** * Copyright 2014 Netflix, 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 t...
9,372
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/discovery/StreamAction.java
/** * Copyright 2014 Netflix, 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 i...
9,373
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/discovery/StreamDiscovery.java
/** * Copyright 2012 Netflix, 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 i...
9,374
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/internal/AggregateStringSerializer.java
/** * Copyright 2014 Netflix, 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 t...
9,375
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/internal/NumberListSerializer.java
/** * Copyright 2014 Netflix, 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 t...
9,376
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/internal/RequestCreator.java
/** * Copyright 2014 Netflix, Inc. * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or...
9,377
0
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine
Create_ds/Turbine/turbine-core/src/main/java/com/netflix/turbine/internal/JsonUtility.java
/** * Copyright 2014 Netflix, 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 t...
9,378
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/AWSDatabaseHolderRefreshJob.java
package com.airbnb.billow; import com.codahale.metrics.Counter; import org.quartz.Job; import org.quartz.JobExecutionContext; import org.quartz.JobExecutionException; import org.quartz.SchedulerException; public class AWSDatabaseHolderRefreshJob implements Job { public static final String DB_KEY = "d...
9,379
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/ElasticacheCluster.java
package com.airbnb.billow; import com.amazonaws.services.elasticache.model.Endpoint; import com.amazonaws.services.elasticache.model.NodeGroupMember; import lombok.Getter; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import com.amazonaws.services.elasticache.model.Cac...
9,380
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/Handler.java
package com.airbnb.billow; import lombok.extern.slf4j.Slf4j; import java.io.IOException; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Map; import java.util.Set; import javax.servlet.ServletOutputStream; imp...
9,381
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/IAMUserWithKeys.java
package com.airbnb.billow; import com.amazonaws.services.identitymanagement.model.AccessKeyMetadata; import com.amazonaws.services.identitymanagement.model.User; import com.google.common.collect.ImmutableList; import lombok.Data; @Data public class IAMUserWithKeys { private final User user; private final Immu...
9,382
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/RDSInstance.java
package com.airbnb.billow; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import com.amazonaws.services.rds.model.DBClu...
9,383
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/AWSDatabaseHolder.java
package com.airbnb.billow; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import com.amazonaws.ClientConfiguration; import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; import com.amazonaws.retry.RetryPolicy; import ...
9,384
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/EC2Instance.java
package com.airbnb.billow; import lombok.Getter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import com.amazonaws.services.ec2.model.GroupIdentifier; import com.amazonaws.services.ec2.model.Instance; import com.amazonaws.services.ec2.model.StateReason; import co...
9,385
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/Main.java
package com.airbnb.billow; import com.codahale.metrics.CachedGauge; import com.codahale.metrics.Gauge; import com.codahale.metrics.MetricRegistry; import com.codahale.metrics.health.HealthCheck; import com.codahale.metrics.health.HealthCheckRegistry; import com.codahale.metrics.jetty9.InstrumentedHandler; import com.c...
9,386
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/SQSQueue.java
package com.airbnb.billow; import lombok.Getter; import com.fasterxml.jackson.annotation.JsonFilter; @JsonFilter(SQSQueue.QUEUE_FILTER) public class SQSQueue { public static final String QUEUE_FILTER = "QueueFilter"; public static final String ATTR_APPROXIMATE_NUMBER_OF_MESSAGES_DELAYED = "ApproximateNumber...
9,387
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/ElasticsearchCluster.java
package com.airbnb.billow; import com.amazonaws.services.elasticsearch.model.ElasticsearchClusterConfig; import com.amazonaws.services.elasticsearch.model.ElasticsearchDomainStatus; import com.amazonaws.services.elasticsearch.model.Tag; import lombok.Getter; import java.util.HashMap; import java.util.List; import jav...
9,388
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/DynamoTable.java
package com.airbnb.billow; import com.amazonaws.services.dynamodbv2.model.GlobalSecondaryIndexDescription; import java.util.ArrayList; import java.util.List; import lombok.Getter; import com.amazonaws.services.dynamodbv2.document.Table; import com.fasterxml.jackson.annotation.JsonFilter; import org.joda.time.DateTime...
9,389
0
Create_ds/billow/src/main/java/com/airbnb
Create_ds/billow/src/main/java/com/airbnb/billow/AWSDatabase.java
package com.airbnb.billow; import com.amazonaws.services.elasticache.model.DescribeReplicationGroupsRequest; import com.amazonaws.services.elasticache.model.DescribeReplicationGroupsResult; import com.amazonaws.services.elasticache.model.NodeGroup; import com.amazonaws.services.elasticache.model.NodeGroupMember; impor...
9,390
0
Create_ds/reair/web-server/src/main/java/com/airbnb
Create_ds/reair/web-server/src/main/java/com/airbnb/reair/PageData.java
package com.airbnb.reair; import com.airbnb.reair.incremental.thrift.TReplicationJob; import com.airbnb.reair.incremental.thrift.TReplicationService; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TProtocol; import org.apache.thrift.transport....
9,391
0
Create_ds/reair/web-server/src/main/java/com/airbnb
Create_ds/reair/web-server/src/main/java/com/airbnb/reair/ThymeleafTemplateEngine.java
/* * Copyright 2015 - Per Wendel * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
9,392
0
Create_ds/reair/web-server/src/main/java/com/airbnb
Create_ds/reair/web-server/src/main/java/com/airbnb/reair/DateUtils.java
package com.airbnb.reair; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.TimeZone; public class DateUtils { /** * Converts the unix time into an ISO8601 time. * * @param time unix time to convert * @return a String representing the specified unix time */ public Str...
9,393
0
Create_ds/reair/web-server/src/main/java/com/airbnb
Create_ds/reair/web-server/src/main/java/com/airbnb/reair/WebServer.java
package com.airbnb.reair; import static spark.Spark.get; import static spark.Spark.port; import org.apache.commons.cli.BasicParser; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.OptionBuilder; import org.apache.commons.cli.Options; import org...
9,394
0
Create_ds/reair/utils/src/main/java/com/airbnb/reair
Create_ds/reair/utils/src/main/java/com/airbnb/reair/multiprocessing/LockSet.java
package com.airbnb.reair.multiprocessing; import java.util.Collections; import java.util.HashSet; import java.util.Set; public class LockSet { private Set<Lock> allLocks; private Set<String> exclusiveLockNames; private Set<String> sharedLockNames; /** * TODO. */ public LockSet() { allLocks = ne...
9,395
0
Create_ds/reair/utils/src/main/java/com/airbnb/reair
Create_ds/reair/utils/src/main/java/com/airbnb/reair/multiprocessing/ParallelJobExecutor.java
package com.airbnb.reair.multiprocessing; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.HashSet; import java.util.Set; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.locks.Condition; import...
9,396
0
Create_ds/reair/utils/src/main/java/com/airbnb/reair
Create_ds/reair/utils/src/main/java/com/airbnb/reair/multiprocessing/Job.java
package com.airbnb.reair.multiprocessing; import java.util.HashSet; import java.util.Set; /** * A Job is anything that needs to run, along with a set of pre-requisites. In this case, the * prerequisites are represented as a set of shared/exclusive locks. */ public abstract class Job { /** * Before the Job ru...
9,397
0
Create_ds/reair/utils/src/main/java/com/airbnb/reair
Create_ds/reair/utils/src/main/java/com/airbnb/reair/multiprocessing/Worker.java
package com.airbnb.reair.multiprocessing; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.concurrent.BlockingQueue; /** * Executes a job in a thread. The job is required to return a return code of 0 or else an exception * will be thrown. */ public class Worker...
9,398
0
Create_ds/reair/utils/src/main/java/com/airbnb/reair
Create_ds/reair/utils/src/main/java/com/airbnb/reair/multiprocessing/JobDagManager.java
package com.airbnb.reair.multiprocessing; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; /** * Given jobs (that need to get specifi...
9,399