lang
stringclasses
1 value
license
stringclasses
13 values
stderr
stringlengths
0
350
commit
stringlengths
40
40
returncode
int64
0
128
repos
stringlengths
7
45.1k
new_contents
stringlengths
0
1.87M
new_file
stringlengths
6
292
old_contents
stringlengths
0
1.87M
message
stringlengths
6
9.26k
old_file
stringlengths
6
292
subject
stringlengths
0
4.45k
Java
mit
error: pathspec 'src/main/java/no/westerdals/dbpedia_idx/Triple.java' did not match any file(s) known to git
84c3692be17ffbaafcb0eff212dbbf7a23e6ce17
1
naimdjon/dbpedia-idx
package no.westerdals.dbpedia_idx; public final class Triple { public final String subject, predicate, object; public Triple(String subject, String predicate, String object) { this.subject = subject; this.predicate = predicate; this.object = object; } }
src/main/java/no/westerdals/dbpedia_idx/Triple.java
triple object.
src/main/java/no/westerdals/dbpedia_idx/Triple.java
triple object.
Java
mit
error: pathspec 'src/org/usfirst/frc/team1699/robot/commands/Pickup.java' did not match any file(s) known to git
e2da3feefb3a63f8fe3b9dc1224b9bda3d7b0bd2
1
FIRST-Team-1699/2017-code
package org.usfirst.frc.team1699.robot.commands; import org.usfirst.frc.team1699.utils.command.Command; import org.usfirst.frc.team1699.utils.drive.XboxController; import edu.wpi.first.wpilibj.SpeedController; public class Pickup extends Command{ private XboxController controller; private SpeedController motor; public Pickup(String name, int id, XboxController controller, SpeedController motor) { super(name, id); this.controller = controller; this.motor = motor; } @Override public void init() { // TODO Auto-generated method stub } @Override public void run() { if (controller.getA()){ //check to see if the button A is pressed motor.set(1); //turns motor on } else if (controller.getB()){ //check to see if the button B is pressed motor.set(0); //turns motor on } } @Override public void runAuto(double distance, double speed, boolean useSensor) { // TODO Auto-generated method stub } @Override public boolean autoCommandDone() { // TODO Auto-generated method stub return false; } @Override public void outputToDashboard() { // TODO Auto-generated method stub } @Override public void zeroAllSensors() { // TODO Auto-generated method stub }}
src/org/usfirst/frc/team1699/robot/commands/Pickup.java
added startpickup and stoppickup for the ball motor...
src/org/usfirst/frc/team1699/robot/commands/Pickup.java
added startpickup and stoppickup for the ball motor...
Java
mit
error: pathspec 'src/com/haxademic/sketch/hardware/DmxUSBProMIDIFeet.java' did not match any file(s) known to git
ff348ddc97f2f29e69bf0745535713db1eadf9c9
1
cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic,cacheflowe/haxademic
package com.haxademic.sketch.hardware; import com.haxademic.core.app.P; import com.haxademic.core.app.PAppletHax; import com.haxademic.core.constants.AppSettings; import com.haxademic.core.draw.color.EasingColor; import com.haxademic.core.file.FileUtil; import com.haxademic.core.hardware.shared.InputTrigger; import beads.AudioContext; import beads.Gain; import beads.Sample; import beads.SampleManager; import beads.SamplePlayer; import dmxP512.DmxP512; public class DmxUSBProMIDIFeet extends PAppletHax { public static void main(String args[]) { PAppletHax.main(Thread.currentThread().getStackTrace()[1].getClassName()); } DmxP512 dmx; // On Windows, port should be an actual serial port, and probably needs to be uppercase - something like "COM1" // On OS X, port will likely be a virtual serial port via USB, looking like "/dev/tty.usbserial-EN158815" // - To make this work, you need to install something like the Plugable driver: // - https://plugable.com/2011/07/12/installing-a-usb-serial-adapter-on-mac-os-x/ String DMXPRO_PORT = "DMXPRO_PORT"; String DMXPRO_BAUDRATE = "DMXPRO_BAUDRATE"; String DMXPRO_UNIVERSE_SIZE = "DMXPRO_UNIVERSE_SIZE"; protected boolean audioActive = false; AudioContext ac; Sample sample01; int sampleTime01 = 0; Sample sample02; int sampleTime02 = 0; protected InputTrigger trigger1 = new InputTrigger( new char[]{'1'}, null, new Integer[]{43}, null, null ); protected EasingColor color1 = new EasingColor(0xff00ff00, 8); protected InputTrigger trigger2 = new InputTrigger( new char[]{'2'}, null, new Integer[]{49}, null, null ); protected EasingColor color2 = new EasingColor(0xffff0000, 8); protected void overridePropsFile() { p.appConfig.setProperty(DMXPRO_PORT, "/dev/tty.usbserial-EN158815"); p.appConfig.setProperty(AppSettings.MIDI_DEVICE_IN_INDEX, 0 ); } public void setupFirstFrame() { dmx = new DmxP512(P.p, p.appConfig.getInt(DMXPRO_UNIVERSE_SIZE, 128), false); dmx.setupDmxPro(p.appConfig.getString(DMXPRO_PORT, "COM1"), p.appConfig.getInt(DMXPRO_BAUDRATE, 115000)); ac = new AudioContext(); sample01 = SampleManager.sample(FileUtil.getFile("audio/kit808/kick.wav")); sample02 = SampleManager.sample(FileUtil.getFile("audio/kit808/snare.wav")); ac.start(); } public void drawApp() { background(0); if(trigger1.triggered() && p.millis() > sampleTime01 + 200) { sampleTime01 = p.millis(); color1.setCurrentInt(0xffffffff); color1.setTargetInt(0xff005500); SamplePlayer samplePlayer01 = new SamplePlayer(ac, sample01); samplePlayer01.setKillOnEnd(true); ac.out.addInput(samplePlayer01); samplePlayer01.start(); } if(trigger2.triggered() && p.millis() > sampleTime02 + 200) { sampleTime02 = p.millis(); color2.setCurrentInt(0xffffffff); color2.setTargetInt(0xff000055); SamplePlayer samplePlayer02 = new SamplePlayer(ac, sample02); samplePlayer02.setKillOnEnd(true); ac.out.addInput(samplePlayer02); samplePlayer02.start(); } color1.update(); color2.update(); if(!audioActive) { dmx.set(1, (int)color1.r()); dmx.set(2, (int)color1.g()); dmx.set(3, (int)color1.b()); dmx.set(4, (int)color2.r()); dmx.set(5, (int)color2.g()); dmx.set(6, (int)color2.b()); } else { dmx.set(1, P.round(255 * p._audioInput.getFFT().spectrum[10])); dmx.set(2, P.round(255 * p._audioInput.getFFT().spectrum[20])); dmx.set(3, P.round(255 * p._audioInput.getFFT().spectrum[40])); dmx.set(4, P.round(255 * p._audioInput.getFFT().spectrum[60])); dmx.set(5, P.round(255 * p._audioInput.getFFT().spectrum[80])); dmx.set(6, P.round(255 * p._audioInput.getFFT().spectrum[100])); } } public void keyPressed() { super.keyPressed(); if(p.key == ' ') audioActive = !audioActive; } }
src/com/haxademic/sketch/hardware/DmxUSBProMIDIFeet.java
Feet drums w/lighting
src/com/haxademic/sketch/hardware/DmxUSBProMIDIFeet.java
Feet drums w/lighting
Java
mit
error: pathspec 'GHGEssentials/src/nl/gewoonhdgaming/ess/utils/ChatUtils.java' did not match any file(s) known to git
631e4375190072319940c567bf1828782444a843
1
Jasperdoit/GHGEssentials
package nl.gewoonhdgaming.ess.utils; public class ChatUtils { }
GHGEssentials/src/nl/gewoonhdgaming/ess/utils/ChatUtils.java
Package setup
GHGEssentials/src/nl/gewoonhdgaming/ess/utils/ChatUtils.java
Package setup
Java
mit
error: pathspec 'DailyProgrammer/src/com/kristof/dailyprogrammer/DiceRoll.java' did not match any file(s) known to git
24bb2f0deaf44cdfbcc994b73cc51fc297c52933
1
jkristof/daily-programmer
package com.kristof.dailyprogrammer; import java.text.NumberFormat; import java.util.Random; public class DiceRoll { public static void main( String[] args ) { System.out.println( "# of Rolls\t1s\t2s\t3s\t4s\t5s\t6s" ); System.out.println( "==============================================================" ); NumberFormat pf = NumberFormat.getPercentInstance(); pf.setMaximumFractionDigits( 2 ); for ( int i = 10; i <= 100000; i = i * 10 ) { float[] rolls = new float[6]; for ( int j = 0; j < i; j++ ) { rolls[new Random().nextInt( 6 )]++; } System.out.printf( "%d\t\t%s\t%s\t%s\t%s\t%s\t%s\n", i, pf.format( rolls[0] / i ), pf.format( rolls[1] / i ), pf.format( rolls[2] / i ), pf.format( rolls[3] / i ), pf.format( rolls[4] / i ), pf.format( rolls[5] / i ) ); } } }
DailyProgrammer/src/com/kristof/dailyprogrammer/DiceRoll.java
Solution for #163 [Easy] Probability Distribution of a 6 Sided Di
DailyProgrammer/src/com/kristof/dailyprogrammer/DiceRoll.java
Solution for #163 [Easy] Probability Distribution of a 6 Sided Di
Java
mit
error: pathspec 'src/main/java/com/github/sergueik/swet/JavaHotkeyManager.java' did not match any file(s) known to git
15a7d070d98bcb3c6d218b985d30d686f1c78fda
1
sergueik/SWET,sergueik/SWET,sergueik/SWET,sergueik/SWET
package com.github.sergueik.swet; import java.awt.event.KeyEvent; import com.sun.jna.Native; import com.sun.jna.NativeLibrary; import com.sun.jna.Pointer; import com.sun.jna.win32.W32APIOptions; import java.util.Arrays; import java.util.List; import com.sun.jna.Pointer; import com.sun.jna.Structure; // based on: https://toster.ru/q/636535 public class JavaHotkeyManager extends Thread { public static void register() { User32.RegisterHotKey(null, 1, 0x000, KeyEvent.VK_F); new JavaHotkeyManager().start(); } public JavaHotkeyManager() { } public static void main(String[] args) { register(); // run(); } @Override public void run() { JavaHotkeyManager.MSG msg = new JavaHotkeyManager.MSG(); System.err.println("Running " + this.toString()); while (true) { // register the key on the same thread as listening User32.RegisterHotKey(null, 1, 0x000, KeyEvent.VK_F); while (User32.PeekMessage(msg, null, 0, 0, User32.PM_REMOVE)) { if (msg.message == User32.WM_HOTKEY) { System.out.println("Hotkey pressed with id: " + msg.wParam); } } try { Thread.sleep(300); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } private static class User32 { static { Native.register( NativeLibrary.getInstance("user32", W32APIOptions.DEFAULT_OPTIONS)); } public static final int MOD_ALT = 0x0001; public static final int MOD_CONTROL = 0x0002; public static final int MOD_SHIFT = 0x0004; public static final int MOD_WIN = 0x0008; public static final int WM_HOTKEY = 0x0312; public static final int PM_REMOVE = 0x0001; public static native boolean RegisterHotKey(Pointer hWnd, int id, int fsModifiers, int vk); public static native boolean UnregisterHotKey(Pointer hWnd, int id); public static native boolean PeekMessage(JavaHotkeyManager.MSG lpMsg, Pointer hWnd, int wMsgFilterMin, int wMsgFilterMax, int wRemoveMsg); } public static class MSG extends Structure { public Pointer hWnd; public int lParam; public int message; public int time; public int wParam; public int x; public int y; @Override protected List getFieldOrder() { return Arrays.asList(new String[] { "hWnd", "lParam", "message", "time", "wParam", "x", "y" }); } } }
src/main/java/com/github/sergueik/swet/JavaHotkeyManager.java
initial snapshot
src/main/java/com/github/sergueik/swet/JavaHotkeyManager.java
initial snapshot
Java
mit
error: pathspec 'content-resources/src/main/java/flyway/oskari/V1_36_0__register_contenteditor_bundle.java' did not match any file(s) known to git
a0c711c0975d2f381ad1605d6e29738523776123
1
nls-oskari/oskari-server,nls-oskari/oskari-server,nls-oskari/oskari-server
package flyway.oskari; import fi.nls.oskari.db.BundleHelper; import fi.nls.oskari.domain.map.view.Bundle; import org.flywaydb.core.api.migration.jdbc.JdbcMigration; import java.sql.Connection; import java.sql.SQLException; public class V1_36_0__register_contenteditor_bundle implements JdbcMigration { private static final String NAMESPACE = "tampere"; private static final String BUNDLE_ID = "content-editor"; private static final String BUNDLE_TITLE = "content-editor"; public void migrate(Connection connection) throws SQLException { // BundleHelper checks if these bundles are already registered Bundle bundle = new Bundle(); bundle.setName(BUNDLE_ID); bundle.setStartup(BundleHelper.getDefaultBundleStartup(NAMESPACE, BUNDLE_ID, BUNDLE_TITLE)); BundleHelper.registerBundle(bundle, connection); } }
content-resources/src/main/java/flyway/oskari/V1_36_0__register_contenteditor_bundle.java
Add flyway class to add bundle
content-resources/src/main/java/flyway/oskari/V1_36_0__register_contenteditor_bundle.java
Add flyway class to add bundle
Java
mpl-2.0
1b7890d0b979acf046cd91345072429ebfeccbfb
0
petercpg/MozStumbler,priyankvex/MozStumbler,petercpg/MozStumbler,cascheberg/MozStumbler,priyankvex/MozStumbler,MozillaCZ/MozStumbler,priyankvex/MozStumbler,crankycoder/MozStumbler,petercpg/MozStumbler,cascheberg/MozStumbler,hasadna/OpenTrainApp,hasadna/OpenTrainApp,garvankeeley/MozStumbler,crankycoder/MozStumbler,garvankeeley/MozStumbler,MozillaCZ/MozStumbler,crankycoder/MozStumbler,cascheberg/MozStumbler,garvankeeley/MozStumbler,dougt/MozStumbler,MozillaCZ/MozStumbler
package org.mozilla.mozstumbler; import android.annotation.TargetApi; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.os.IBinder; import android.os.RemoteException; import android.os.StrictMode; import android.util.Log; import android.view.KeyEvent; import android.view.Menu; import android.view.View; import android.view.View.OnFocusChangeListener; import android.view.inputmethod.EditorInfo; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public final class MainActivity extends Activity { private static final String LOGTAG = MainActivity.class.getName(); private static final String LEADERBOARD_URL = "https://location.services.mozilla.com/stats"; private ScannerServiceInterface mConnectionRemote; private ServiceConnection mConnection; private ServiceBroadcastReceiver mReceiver; private Prefs mPrefs; private int mGpsFixes; private class ServiceBroadcastReceiver extends BroadcastReceiver { private boolean mReceiverIsRegistered; public void register() { if (!mReceiverIsRegistered) { registerReceiver(this, new IntentFilter(ScannerService.MESSAGE_TOPIC)); mReceiverIsRegistered = true; } } public void unregister() { if (mReceiverIsRegistered) { unregisterReceiver(this); mReceiverIsRegistered = false; } } @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (!action.equals(ScannerService.MESSAGE_TOPIC)) { Log.e(LOGTAG, "Received an unknown intent"); return; } String subject = intent.getStringExtra(Intent.EXTRA_SUBJECT); if (subject.equals("Notification")) { String text = intent.getStringExtra(Intent.EXTRA_TEXT); Toast.makeText(getApplicationContext(), (CharSequence) text, Toast.LENGTH_SHORT).show(); Log.d(LOGTAG, "Received a notification intent and showing: " + text); return; } else if (subject.equals("Reporter")) { updateUI(); Log.d(LOGTAG, "Received a reporter intent..."); return; } else if (subject.equals("Scanner")) { mGpsFixes = intent.getIntExtra("fixes", 0); updateUI(); Log.d(LOGTAG, "Received a scanner intent..."); return; } } } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); enableStrictMode(); setContentView(R.layout.activity_main); mPrefs = new Prefs(this); new NoticeDialog(this, mPrefs).show(); EditText nicknameEditor = (EditText) findViewById(R.id.edit_nickname); String nickname = mPrefs.getNickname(); // FIXME: StrictMode violation? if (nickname != null) { nicknameEditor.setText(nickname); } nicknameEditor.setOnEditorActionListener(new EditText.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { String newNickname = v.getText().toString().trim(); String placeholderText = getResources().getString(R.string.enter_nickname); if (!newNickname.equals(placeholderText)) { mPrefs.setNickname(newNickname); } } return false; } }); Log.d(LOGTAG, "onCreate"); } @Override protected void onStart() { super.onStart(); mReceiver = new ServiceBroadcastReceiver(); mReceiver.register(); mConnection = new ServiceConnection() { public void onServiceConnected(ComponentName className, IBinder binder) { mConnectionRemote = ScannerServiceInterface.Stub.asInterface(binder); Log.d(LOGTAG, "Service connected"); updateUI(); } public void onServiceDisconnected(ComponentName className) { mConnectionRemote = null; Log.d(LOGTAG, "Service disconnected", new Exception()); } }; Intent intent = new Intent(this, ScannerService.class); startService(intent); bindService(intent, mConnection, Context.BIND_AUTO_CREATE); Log.d(LOGTAG, "onStart"); } @Override protected void onStop() { super.onStop(); unbindService(mConnection); mConnection = null; mConnectionRemote = null; mReceiver.unregister(); mReceiver = null; Log.d(LOGTAG, "onStop"); } protected void updateUI() { // TODO time this to make sure we're not blocking too long on mConnectionRemote // if we care, we can bundle this into one call -- or use android to remember // the state before the rotation. if (mConnectionRemote == null) { return; } Log.d(LOGTAG, "Updating UI"); boolean scanning = false; try { scanning = mConnectionRemote.isScanning(); } catch (RemoteException e) { Log.e(LOGTAG, "", e); } Button scanningBtn = (Button) findViewById(R.id.toggle_scanning); if (scanning) { scanningBtn.setText(R.string.stop_scanning); } else { scanningBtn.setText(R.string.start_scanning); } int APs = 0; try { APs = mConnectionRemote.getAPCount(); } catch (RemoteException e) { Log.e(LOGTAG, "", e); } formatTextView(R.id.gps_satellites, R.string.gps_satellites, mGpsFixes); formatTextView(R.id.wifi_access_points, R.string.wifi_access_points, APs); } public void onClick_ToggleScanning(View v) throws RemoteException { if (mConnectionRemote == null) { return; } boolean scanning = mConnectionRemote.isScanning(); Log.d(LOGTAG, "Connection remote return: isScanning() = " + scanning); Button b = (Button) v; if (scanning) { mConnectionRemote.stopScanning(); b.setText(R.string.start_scanning); } else { mConnectionRemote.startScanning(); b.setText(R.string.stop_scanning); } } public void onClick_ViewLeaderboard(View v) { Intent openLeaderboard = new Intent(Intent.ACTION_VIEW, Uri.parse(LEADERBOARD_URL)); startActivity(openLeaderboard); } @Override public boolean onCreateOptionsMenu(Menu menu) { return false; } @TargetApi(9) private void enableStrictMode() { if (Build.VERSION.SDK_INT < 9) { return; } StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectAll() .permitDiskReads() .permitDiskWrites() .penaltyLog().build()); StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() .detectAll() .penaltyLog().build()); } private void formatTextView(int textViewId, int stringId, Object... args) { TextView textView = (TextView) findViewById(textViewId); String str = getResources().getString(stringId); str = String.format(str, args); textView.setText(str); } }
src/org/mozilla/mozstumbler/MainActivity.java
package org.mozilla.mozstumbler; import android.annotation.TargetApi; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.os.IBinder; import android.os.RemoteException; import android.os.StrictMode; import android.util.Log; import android.view.KeyEvent; import android.view.Menu; import android.view.View; import android.view.View.OnFocusChangeListener; import android.view.inputmethod.EditorInfo; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; public final class MainActivity extends Activity { private static final String LOGTAG = MainActivity.class.getName(); private static final String LEADERBOARD_URL = "https://location.services.mozilla.com/stats"; private ScannerServiceInterface mConnectionRemote; private ServiceConnection mConnection; private ServiceBroadcastReceiver mReceiver; private Prefs mPrefs; private int mGpsFixes; private class ServiceBroadcastReceiver extends BroadcastReceiver { private boolean mReceiverIsRegistered; public void register() { if (!mReceiverIsRegistered) { registerReceiver(this, new IntentFilter(ScannerService.MESSAGE_TOPIC)); mReceiverIsRegistered = true; } } public void unregister() { if (mReceiverIsRegistered) { unregisterReceiver(this); mReceiverIsRegistered = false; } } @Override public void onReceive(Context context, Intent intent) { String action = intent.getAction(); if (!action.equals(ScannerService.MESSAGE_TOPIC)) { Log.e(LOGTAG, "Received an unknown intent"); return; } String subject = intent.getStringExtra(Intent.EXTRA_SUBJECT); if (subject.equals("Notification")) { String text = intent.getStringExtra(Intent.EXTRA_TEXT); Toast.makeText(getApplicationContext(), (CharSequence) text, Toast.LENGTH_SHORT).show(); Log.d(LOGTAG, "Received a notification intent and showing: " + text); return; } else if (subject.equals("Reporter")) { updateUI(); Log.d(LOGTAG, "Received a reporter intent..."); return; } else if (subject.equals("Scanner")) { mGpsFixes = intent.getIntExtra("fixes", 0); updateUI(); Log.d(LOGTAG, "Received a scanner intent..."); return; } } } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); enableStrictMode(); setContentView(R.layout.activity_main); mPrefs = new Prefs(this); new NoticeDialog(this, mPrefs).show(); EditText nicknameEditor = (EditText) findViewById(R.id.edit_nickname); String nickname = mPrefs.getNickname(); // FIXME: StrictMode violation? if (nickname != null) { nicknameEditor.setText(nickname); } nicknameEditor.setOnEditorActionListener(new EditText.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { String newNickname = v.getText().toString().trim(); String placeholderText = getResources().getString(R.string.enter_nickname); if (!newNickname.equals(placeholderText)) { mPrefs.setNickname(newNickname); } } return false; } }); Log.d(LOGTAG, "onCreate"); } @Override protected void onStart() { super.onStart(); mReceiver = new ServiceBroadcastReceiver(); mReceiver.register(); mConnection = new ServiceConnection() { public void onServiceConnected(ComponentName className, IBinder binder) { mConnectionRemote = ScannerServiceInterface.Stub.asInterface(binder); Log.d(LOGTAG, "Service connected"); updateUI(); } public void onServiceDisconnected(ComponentName className) { mConnectionRemote = null; Log.d(LOGTAG, "Service disconnected", new Exception()); } }; Intent intent = new Intent(this, ScannerService.class); startService(intent); bindService(intent, mConnection, Context.BIND_AUTO_CREATE); Log.d(LOGTAG, "onStart"); } @Override protected void onStop() { super.onStop(); unbindService(mConnection); mConnection = null; mConnectionRemote = null; mReceiver.unregister(); mReceiver = null; Log.d(LOGTAG, "onStop"); } protected void updateUI() { // TODO time this to make sure we're not blocking too long on mConnectionRemote // if we care, we can bundle this into one call -- or use android to remember // the state before the rotation. if (mConnectionRemote == null) { return; } Log.d(LOGTAG, "Updating UI"); boolean scanning = false; try { scanning = mConnectionRemote.isScanning(); } catch (RemoteException e) { Log.e(LOGTAG, "", e); } Button scanningBtn = (Button) findViewById(R.id.toggle_scanning); if (scanning) { scanningBtn.setText(R.string.stop_scanning); } else { scanningBtn.setText(R.string.start_scanning); } int APs = 0; try { APs = mConnectionRemote.getAPCount(); } catch (RemoteException e) { Log.e(LOGTAG, "", e); } String APsScannedString = getResources().getString(R.string.wifi_access_points); APsScannedString = String.format(APsScannedString, APs); TextView APsScanned = (TextView) findViewById(R.id.wifi_access_points); APsScanned.setText(APsScannedString); String fixesString = getResources().getString(R.string.gps_satellites); fixesString = String.format(fixesString, mGpsFixes); TextView fixesTextView = (TextView) findViewById(R.id.gps_satellites); fixesTextView.setText(fixesString); } public void onClick_ToggleScanning(View v) throws RemoteException { if (mConnectionRemote == null) { return; } boolean scanning = mConnectionRemote.isScanning(); Log.d(LOGTAG, "Connection remote return: isScanning() = " + scanning); Button b = (Button) v; if (scanning) { mConnectionRemote.stopScanning(); b.setText(R.string.start_scanning); } else { mConnectionRemote.startScanning(); b.setText(R.string.stop_scanning); } } public void onClick_ViewLeaderboard(View v) { Intent openLeaderboard = new Intent(Intent.ACTION_VIEW, Uri.parse(LEADERBOARD_URL)); startActivity(openLeaderboard); } @Override public boolean onCreateOptionsMenu(Menu menu) { return false; } @TargetApi(9) private void enableStrictMode() { if (Build.VERSION.SDK_INT < 9) { return; } StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder() .detectAll() .permitDiskReads() .permitDiskWrites() .penaltyLog().build()); StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder() .detectAll() .penaltyLog().build()); } }
Extract formatTextView() helper method
src/org/mozilla/mozstumbler/MainActivity.java
Extract formatTextView() helper method
Java
agpl-3.0
error: pathspec 'portlets/opencps-portlet/docroot/WEB-INF/src/org/opencps/jms/business/SyncFromBackOffice.java' did not match any file(s) known to git
3182c9a826714f56ff1b9a748447b2d903c91c78
1
hltn/opencps,VietOpenCPS/opencps,hltn/opencps,VietOpenCPS/opencps,VietOpenCPS/opencps,hltn/opencps
/** * OpenCPS is the open source Core Public Services software * Copyright (C) 2016-present OpenCPS community * 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 version 3 of the License, or * any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see <http://www.gnu.org/licenses/> */ package org.opencps.jms.business; import java.util.List; import org.opencps.dossiermgt.service.DossierLocalServiceUtil; import org.opencps.jms.message.body.SyncFromBackOfficeMsgBody; import org.opencps.processmgt.model.WorkflowOutput; import org.opencps.processmgt.service.WorkflowOutputLocalServiceUtil; import org.opencps.util.PortletConstants; /** * @author trungnt */ public class SyncFromBackOffice { public void syncDossier(SyncFromBackOfficeMsgBody syncFromBackOfficeMsgBody) { boolean statusUpdate = false; //String actor = _getActor(toBackOffice.getRequestCommand()); try { /*statusUpdate = DossierLocalServiceUtil.updateDossierStatus( toBackOffice.getDossierId(), toBackOffice.getFileGroupId(), toBackOffice.getDossierStatus(), toBackOffice.getReceptionNo(), toBackOffice.getEstimateDatetime(), toBackOffice.getReceiveDatetime(), toBackOffice.getFinishDatetime(), actor, toBackOffice.getRequestCommand(), toBackOffice.getActionInfo(), toBackOffice.getMessageInfo()); List<WorkflowOutput> workflowOutputs = WorkflowOutputLocalServiceUtil.getByProcessWFPostback( toBackOffice.getProcessWorkflowId(), true); DossierLocalServiceUtil.updateDossierStatus( 0, toBackOffice.getDossierId(), PortletConstants.DOSSIER_FILE_SYNC_STATUS_SYNCSUCCESS, workflowOutputs);*/ } catch (Exception e) { } } }
portlets/opencps-portlet/docroot/WEB-INF/src/org/opencps/jms/business/SyncFromBackOffice.java
Add SyncFromBackend
portlets/opencps-portlet/docroot/WEB-INF/src/org/opencps/jms/business/SyncFromBackOffice.java
Add SyncFromBackend
Java
apache-2.0
28ab378639e1717c3dccc5b91d84525108e68749
0
emolsson/cassandra,pallavi510/cassandra,bpupadhyaya/cassandra,jasonstack/cassandra,bpupadhyaya/cassandra,pkdevbox/cassandra,driftx/cassandra,yonglehou/cassandra,miguel0afd/cassandra-cqlMod,aweisberg/cassandra,kangkot/stratio-cassandra,caidongyun/cassandra,instaclustr/cassandra,fengshao0907/Cassandra-Research,ejankan/cassandra,weipinghe/cassandra,WorksApplications/cassandra,Instagram/cassandra,WorksApplications/cassandra,christian-esken/cassandra,thelastpickle/cassandra,tommystendahl/cassandra,project-zerus/cassandra,taigetco/cassandra_read,nlalevee/cassandra,belliottsmith/cassandra,ibmsoe/cassandra,Jaumo/cassandra,leomrocha/cassandra,strapdata/cassandra,iamaleksey/cassandra,nitsanw/cassandra,Jaumo/cassandra,aureagle/cassandra,Imran-C/cassandra,shookari/cassandra,newrelic-forks/cassandra,snazy/cassandra,chaordic/cassandra,yonglehou/cassandra,adelapena/cassandra,nitsanw/cassandra,ptnapoleon/cassandra,mheffner/cassandra-1,scaledata/cassandra,sivikt/cassandra,spodkowinski/cassandra,mshuler/cassandra,JeremiahDJordan/cassandra,dkua/cassandra,tommystendahl/cassandra,guanxi55nba/key-value-store,fengshao0907/cassandra-1,miguel0afd/cassandra-cqlMod,fengshao0907/cassandra-1,asias/cassandra,xiongzheng/Cassandra-Research,mkjellman/cassandra,mshuler/cassandra,mheffner/cassandra-1,nutbunnies/cassandra,DavidHerzogTU-Berlin/cassandraToRun,LatencyUtils/cassandra-stress2,ptnapoleon/cassandra,exoscale/cassandra,joesiewert/cassandra,dkua/cassandra,guanxi55nba/db-improvement,pbailis/cassandra-pbs,yangzhe1991/cassandra,DavidHerzogTU-Berlin/cassandraToRun,jbellis/cassandra,scaledata/cassandra,DICL/cassandra,guanxi55nba/db-improvement,mgmuscari/cassandra-cdh4,Bj0rnen/cassandra,cooldoger/cassandra,juiceblender/cassandra,bcoverston/apache-hosted-cassandra,stef1927/cassandra,josh-mckenzie/cassandra,carlyeks/cassandra,regispl/cassandra,shawnkumar/cstargraph,instaclustr/cassandra,rmarchei/cassandra,bcoverston/cassandra,pkdevbox/cassandra,Stratio/stratio-cassandra,ibmsoe/cassandra,nvoron23/cassandra,iamaleksey/cassandra,darach/cassandra,aboudreault/cassandra,sluk3r/cassandra,likaiwalkman/cassandra,MasahikoSawada/cassandra,aweisberg/cassandra,WorksApplications/cassandra,dongjiaqiang/cassandra,clohfink/cassandra,vaibhi9/cassandra,mklew/mmp,DikangGu/cassandra,pkdevbox/cassandra,darach/cassandra,GabrielNicolasAvellaneda/cassandra,nakomis/cassandra,nitsanw/cassandra,mshuler/cassandra,rackerlabs/cloudmetrics-cassandra,blambov/cassandra,pauloricardomg/cassandra,sayanh/ViewMaintenanceSupport,jeffjirsa/cassandra,josh-mckenzie/cassandra,weipinghe/cassandra,exoscale/cassandra,tongjixianing/projects,likaiwalkman/cassandra,wreda/cassandra,whitepages/cassandra,ben-manes/cassandra,helena/cassandra,jbellis/cassandra,mgmuscari/cassandra-cdh4,adelapena/cassandra,mt0803/cassandra,gdusbabek/cassandra,sayanh/ViewMaintenanceSupport,jbellis/cassandra,pauloricardomg/cassandra,qinjin/mdtc-cassandra,yukim/cassandra,hhorii/cassandra,vramaswamy456/cassandra,michaelsembwever/cassandra,wreda/cassandra,michaelmior/cassandra,mkjellman/cassandra,sluk3r/cassandra,spodkowinski/cassandra,jrwest/cassandra,nlalevee/cassandra,krummas/cassandra,sedulam/CASSANDRA-12201,heiko-braun/cassandra,Jollyplum/cassandra,Jollyplum/cassandra,matthewtt/cassandra_read,ptuckey/cassandra,AtwooTM/cassandra,ifesdjeen/cassandra,sedulam/CASSANDRA-12201,rdio/cassandra,rackerlabs/cloudmetrics-cassandra,snazy/cassandra,aarushi12002/cassandra,taigetco/cassandra_read,bmel/cassandra,jasonwee/cassandra,christian-esken/cassandra,guard163/cassandra,jasonwee/cassandra,DavidHerzogTU-Berlin/cassandra,stef1927/cassandra,cooldoger/cassandra,HidemotoNakada/cassandra-udf,segfault/apache_cassandra,scylladb/scylla-tools-java,scylladb/scylla-tools-java,tommystendahl/cassandra,ejankan/cassandra,lalithsuresh/cassandra-c3,regispl/cassandra,ptuckey/cassandra,jeromatron/cassandra,mklew/mmp,blambov/cassandra,belliottsmith/cassandra,nvoron23/cassandra,sharvanath/cassandra,beobal/cassandra,aweisberg/cassandra,beobal/cassandra,guanxi55nba/key-value-store,mashuai/Cassandra-Research,pcmanus/cassandra,rmarchei/cassandra,xiongzheng/Cassandra-Research,cooldoger/cassandra,tjake/cassandra,jasobrown/cassandra,EnigmaCurry/cassandra,modempachev4/kassandra,heiko-braun/cassandra,codefollower/Cassandra-Research,Stratio/stratio-cassandra,swps/cassandra,helena/cassandra,jkni/cassandra,strapdata/cassandra,modempachev4/kassandra,bdeggleston/cassandra,jrwest/cassandra,iamaleksey/cassandra,dprguiuc/Cassandra-Wasef,michaelmior/cassandra,miguel0afd/cassandra-cqlMod,DavidHerzogTU-Berlin/cassandraToRun,instaclustr/cassandra,Stratio/stratio-cassandra,bcoverston/cassandra,fengshao0907/cassandra-1,MasahikoSawada/cassandra,nakomis/cassandra,aureagle/cassandra,thobbs/cassandra,yhnishi/cassandra,yukim/cassandra,nakomis/cassandra,Stratio/cassandra,wreda/cassandra,shookari/cassandra,jsanda/cassandra,bmel/cassandra,adejanovski/cassandra,rmarchei/cassandra,iburmistrov/Cassandra,kangkot/stratio-cassandra,DavidHerzogTU-Berlin/cassandra,phact/cassandra,thelastpickle/cassandra,bdeggleston/cassandra,pauloricardomg/cassandra,ifesdjeen/cassandra,vramaswamy456/cassandra,blambov/cassandra,guard163/cassandra,tommystendahl/cassandra,ifesdjeen/cassandra,blerer/cassandra,bcoverston/apache-hosted-cassandra,taigetco/cassandra_read,nvoron23/cassandra,kgreav/cassandra,iburmistrov/Cassandra,driftx/cassandra,iburmistrov/Cassandra,jeromatron/cassandra,bcoverston/apache-hosted-cassandra,Stratio/stratio-cassandra,DikangGu/cassandra,krummas/cassandra,newrelic-forks/cassandra,scaledata/cassandra,spodkowinski/cassandra,pcn/cassandra-1,mgmuscari/cassandra-cdh4,hengxin/cassandra,jasonstack/cassandra,mheffner/cassandra-1,nutbunnies/cassandra,mambocab/cassandra,pcmanus/cassandra,kgreav/cassandra,gdusbabek/cassandra,a-buck/cassandra,jasobrown/cassandra,macintoshio/cassandra,ibmsoe/cassandra,rdio/cassandra,a-buck/cassandra,pcn/cassandra-1,nlalevee/cassandra,qinjin/mdtc-cassandra,carlyeks/cassandra,asias/cassandra,vramaswamy456/cassandra,JeremiahDJordan/cassandra,kgreav/cassandra,kangkot/stratio-cassandra,juiceblender/cassandra,xiongzheng/Cassandra-Research,nutbunnies/cassandra,gdusbabek/cassandra,mambocab/cassandra,beobal/cassandra,ptnapoleon/cassandra,pcmanus/cassandra,rogerchina/cassandra,rdio/cassandra,sriki77/cassandra,dongjiaqiang/cassandra,mshuler/cassandra,boneill42/cassandra,hhorii/cassandra,fengshao0907/Cassandra-Research,jkni/cassandra,kangkot/stratio-cassandra,thelastpickle/cassandra,christian-esken/cassandra,pbailis/cassandra-pbs,thobbs/cassandra,knifewine/cassandra,strapdata/cassandra,scylladb/scylla-tools-java,apache/cassandra,project-zerus/cassandra,swps/cassandra,Imran-C/cassandra,sharvanath/cassandra,emolsson/cassandra,codefollower/Cassandra-Research,yangzhe1991/cassandra,RyanMagnusson/cassandra,sbtourist/cassandra,ifesdjeen/cassandra,Bj0rnen/cassandra,sayanh/ViewMaintenanceCassandra,phact/cassandra,swps/cassandra,knifewine/cassandra,whitepages/cassandra,belliottsmith/cassandra,pthomaid/cassandra,adejanovski/cassandra,thobbs/cassandra,segfault/apache_cassandra,HidemotoNakada/cassandra-udf,krummas/cassandra,mkjellman/cassandra,szhou1234/cassandra,scylladb/scylla-tools-java,mike-tr-adamson/cassandra,EnigmaCurry/cassandra,DICL/cassandra,pofallon/cassandra,tongjixianing/projects,mt0803/cassandra,clohfink/cassandra,bcoverston/cassandra,jsanda/cassandra,hengxin/cassandra,szhou1234/cassandra,sharvanath/cassandra,bcoverston/cassandra,iamaleksey/cassandra,stef1927/cassandra,kangkot/stratio-cassandra,pthomaid/cassandra,sbtourist/cassandra,codefollower/Cassandra-Research,juiceblender/cassandra,tjake/cassandra,dongjiaqiang/cassandra,JeremiahDJordan/cassandra,ollie314/cassandra,a-buck/cassandra,exoscale/cassandra,jeromatron/cassandra,pofallon/cassandra,Stratio/cassandra,mkjellman/cassandra,rogerchina/cassandra,jasobrown/cassandra,matthewtt/cassandra_read,likaiwalkman/cassandra,fengshao0907/Cassandra-Research,mashuai/Cassandra-Research,DavidHerzogTU-Berlin/cassandra,mike-tr-adamson/cassandra,lalithsuresh/cassandra-c3,heiko-braun/cassandra,jrwest/cassandra,vaibhi9/cassandra,pofallon/cassandra,blerer/cassandra,aboudreault/cassandra,jeffjirsa/cassandra,instaclustr/cassandra,mklew/mmp,ollie314/cassandra,matthewtt/cassandra_read,aarushi12002/cassandra,helena/cassandra,leomrocha/cassandra,szhou1234/cassandra,RyanMagnusson/cassandra,ben-manes/cassandra,mambocab/cassandra,aboudreault/cassandra,apache/cassandra,segfault/apache_cassandra,yhnishi/cassandra,shawnkumar/cstargraph,michaelsembwever/cassandra,sriki77/cassandra,rackerlabs/cloudmetrics-cassandra,modempachev4/kassandra,Bj0rnen/cassandra,yanbit/cassandra,LatencyUtils/cassandra-stress2,jasobrown/cassandra,chbatey/cassandra-1,apache/cassandra,Jollyplum/cassandra,Instagram/cassandra,pallavi510/cassandra,guanxi55nba/key-value-store,knifewine/cassandra,sivikt/cassandra,mike-tr-adamson/cassandra,apache/cassandra,pbailis/cassandra-pbs,WorksApplications/cassandra,ollie314/cassandra,driftx/cassandra,vaibhi9/cassandra,Stratio/stratio-cassandra,jeffjirsa/cassandra,guard163/cassandra,bpupadhyaya/cassandra,yanbit/cassandra,aweisberg/cassandra,caidongyun/cassandra,strapdata/cassandra,snazy/cassandra,adelapena/cassandra,bmel/cassandra,dprguiuc/Cassandra-Wasef,MasahikoSawada/cassandra,hhorii/cassandra,beobal/cassandra,blerer/cassandra,newrelic-forks/cassandra,blerer/cassandra,aureagle/cassandra,Jaumo/cassandra,lalithsuresh/cassandra-c3,sayanh/ViewMaintenanceCassandra,sayanh/ViewMaintenanceCassandra,darach/cassandra,mashuai/Cassandra-Research,aarushi12002/cassandra,yukim/cassandra,snazy/cassandra,regispl/cassandra,macintoshio/cassandra,dprguiuc/Cassandra-Wasef,thelastpickle/cassandra,caidongyun/cassandra,yanbit/cassandra,LatencyUtils/cassandra-stress2,spodkowinski/cassandra,jsanda/cassandra,ejankan/cassandra,rogerchina/cassandra,whitepages/cassandra,jasonwee/cassandra,yhnishi/cassandra,kgreav/cassandra,sriki77/cassandra,tongjixianing/projects,GabrielNicolasAvellaneda/cassandra,AtwooTM/cassandra,project-zerus/cassandra,tjake/cassandra,adelapena/cassandra,yonglehou/cassandra,michaelsembwever/cassandra,carlyeks/cassandra,chbatey/cassandra-1,jeffjirsa/cassandra,szhou1234/cassandra,DikangGu/cassandra,chaordic/cassandra,josh-mckenzie/cassandra,tjake/cassandra,michaelsembwever/cassandra,bdeggleston/cassandra,sivikt/cassandra,Instagram/cassandra,mt0803/cassandra,macintoshio/cassandra,weideng1/cassandra,Instagram/cassandra,phact/cassandra,qinjin/mdtc-cassandra,driftx/cassandra,pallavi510/cassandra,pthomaid/cassandra,boneill42/cassandra,adejanovski/cassandra,weideng1/cassandra,stef1927/cassandra,mike-tr-adamson/cassandra,krummas/cassandra,RyanMagnusson/cassandra,emolsson/cassandra,GabrielNicolasAvellaneda/cassandra,joesiewert/cassandra,sedulam/CASSANDRA-12201,clohfink/cassandra,shookari/cassandra,clohfink/cassandra,sluk3r/cassandra,weideng1/cassandra,EnigmaCurry/cassandra,ben-manes/cassandra,joesiewert/cassandra,dkua/cassandra,pauloricardomg/cassandra,shawnkumar/cstargraph,weipinghe/cassandra,jkni/cassandra,hengxin/cassandra,chaordic/cassandra,jrwest/cassandra,Imran-C/cassandra,michaelmior/cassandra,asias/cassandra,belliottsmith/cassandra,josh-mckenzie/cassandra,cooldoger/cassandra,Stratio/cassandra,boneill42/cassandra,yukim/cassandra,juiceblender/cassandra,bdeggleston/cassandra,DICL/cassandra,jasonstack/cassandra,blambov/cassandra,ptuckey/cassandra,sbtourist/cassandra,chbatey/cassandra-1,yangzhe1991/cassandra,guanxi55nba/db-improvement,AtwooTM/cassandra,HidemotoNakada/cassandra-udf,pcn/cassandra-1,leomrocha/cassandra
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cassandra.db; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.nio.ByteBuffer; import java.net.InetAddress; import java.util.Arrays; import java.util.List; import java.util.concurrent.ExecutionException; import org.junit.Test; import org.apache.cassandra.CleanupHelper; import org.apache.cassandra.Util; import org.apache.cassandra.config.ConfigurationException; import org.apache.cassandra.db.columniterator.IdentityQueryFilter; import org.apache.cassandra.db.filter.IFilter; import org.apache.cassandra.db.filter.QueryPath; import org.apache.cassandra.dht.BytesToken; import org.apache.cassandra.dht.IPartitioner; import org.apache.cassandra.dht.Range; import org.apache.cassandra.locator.TokenMetadata; import org.apache.cassandra.service.StorageService; import org.apache.cassandra.thrift.IndexClause; import org.apache.cassandra.thrift.IndexExpression; import org.apache.cassandra.thrift.IndexOperator; import org.apache.cassandra.utils.ByteBufferUtil; public class CleanupTest extends CleanupHelper { public static final int LOOPS = 200; public static final String TABLE1 = "Keyspace1"; public static final String CF1 = "Indexed1"; public static final String CF2 = "Standard1"; public static final ByteBuffer COLUMN = ByteBufferUtil.bytes("birthdate"); public static final ByteBuffer VALUE = ByteBuffer.allocate(8); static { VALUE.putLong(20101229); VALUE.flip(); } @Test public void testCleanup() throws IOException, ExecutionException, InterruptedException, ConfigurationException { StorageService.instance.initServer(); Table table = Table.open(TABLE1); ColumnFamilyStore cfs = table.getColumnFamilyStore(CF2); List<Row> rows; // insert data and verify we get it back w/ range query fillCF(cfs, LOOPS); rows = cfs.getRangeSlice(null, Util.range("", ""), 1000, new IdentityQueryFilter()); assertEquals(LOOPS, rows.size()); // with one token in the ring, owned by the local node, cleanup should be a no-op CompactionManager.instance.performCleanup(cfs); // check data is still there rows = cfs.getRangeSlice(null, Util.range("", ""), 1000, new IdentityQueryFilter()); assertEquals(LOOPS, rows.size()); } @Test public void testCleanupWithIndexes() throws IOException, ExecutionException, InterruptedException { Table table = Table.open(TABLE1); ColumnFamilyStore cfs = table.getColumnFamilyStore(CF1); assertEquals(cfs.getIndexedColumns().iterator().next(), COLUMN); List<Row> rows; // insert data and verify we get it back w/ range query fillCF(cfs, LOOPS); rows = cfs.getRangeSlice(null, Util.range("", ""), 1000, new IdentityQueryFilter()); assertEquals(LOOPS, rows.size()); ColumnFamilyStore cfi = cfs.getIndexedColumnFamilyStore(COLUMN); assertTrue(cfi.isIndexBuilt()); // verify we get it back w/ index query too IndexExpression expr = new IndexExpression(COLUMN, IndexOperator.EQ, VALUE); IndexClause clause = new IndexClause(Arrays.asList(expr), ByteBufferUtil.EMPTY_BYTE_BUFFER, Integer.MAX_VALUE); IFilter filter = new IdentityQueryFilter(); IPartitioner p = StorageService.getPartitioner(); Range range = new Range(p.getMinimumToken(), p.getMinimumToken()); rows = table.getColumnFamilyStore(CF1).scan(clause, range, filter); assertEquals(LOOPS, rows.size()); // we don't allow cleanup when the local host has no range to avoid wipping up all data when a node has not join the ring. // So to make sure cleanup erase everything here, we give the localhost the tiniest possible range. TokenMetadata tmd = StorageService.instance.getTokenMetadata(); byte[] tk1 = new byte[1], tk2 = new byte[1]; tk1[0] = 2; tk2[0] = 1; tmd.updateNormalToken(new BytesToken(tk1), InetAddress.getByName("127.0.0.1")); tmd.updateNormalToken(new BytesToken(tk2), InetAddress.getByName("127.0.0.2")); CompactionManager.instance.performCleanup(cfs); // row data should be gone rows = cfs.getRangeSlice(null, Util.range("", ""), 1000, new IdentityQueryFilter()); assertEquals(0, rows.size()); // not only should it be gone but there should be no data on disk, not even tombstones assert cfs.getSSTables().isEmpty(); // 2ary indexes should result in no results, too (although tombstones won't be gone until compacted) rows = cfs.scan(clause, range, filter); assertEquals(0, rows.size()); } protected void fillCF(ColumnFamilyStore cfs, int rowsPerSSTable) throws ExecutionException, InterruptedException, IOException { CompactionManager.instance.disableAutoCompaction(); for (int i = 0; i < rowsPerSSTable; i++) { String key = String.valueOf(i); // create a row and update the birthdate value, test that the index query fetches the new version RowMutation rm; rm = new RowMutation(TABLE1, ByteBufferUtil.bytes(key)); rm.add(new QueryPath(cfs.getColumnFamilyName(), null, COLUMN), VALUE, System.currentTimeMillis()); rm.applyUnsafe(); } cfs.forceBlockingFlush(); } }
test/unit/org/apache/cassandra/db/CleanupTest.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.cassandra.db; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import java.io.IOException; import java.nio.ByteBuffer; import java.util.Arrays; import java.util.List; import java.util.concurrent.ExecutionException; import org.junit.Test; import org.apache.cassandra.CleanupHelper; import org.apache.cassandra.Util; import org.apache.cassandra.config.ConfigurationException; import org.apache.cassandra.db.columniterator.IdentityQueryFilter; import org.apache.cassandra.db.filter.IFilter; import org.apache.cassandra.db.filter.QueryPath; import org.apache.cassandra.dht.IPartitioner; import org.apache.cassandra.dht.Range; import org.apache.cassandra.locator.TokenMetadata; import org.apache.cassandra.service.StorageService; import org.apache.cassandra.thrift.IndexClause; import org.apache.cassandra.thrift.IndexExpression; import org.apache.cassandra.thrift.IndexOperator; import org.apache.cassandra.utils.ByteBufferUtil; public class CleanupTest extends CleanupHelper { public static final int LOOPS = 200; public static final String TABLE1 = "Keyspace1"; public static final String CF1 = "Indexed1"; public static final String CF2 = "Standard1"; public static final ByteBuffer COLUMN = ByteBufferUtil.bytes("birthdate"); public static final ByteBuffer VALUE = ByteBuffer.allocate(8); static { VALUE.putLong(20101229); VALUE.flip(); } @Test public void testCleanup() throws IOException, ExecutionException, InterruptedException, ConfigurationException { StorageService.instance.initServer(); Table table = Table.open(TABLE1); ColumnFamilyStore cfs = table.getColumnFamilyStore(CF2); List<Row> rows; // insert data and verify we get it back w/ range query fillCF(cfs, LOOPS); rows = cfs.getRangeSlice(null, Util.range("", ""), 1000, new IdentityQueryFilter()); assertEquals(LOOPS, rows.size()); // with one token in the ring, owned by the local node, cleanup should be a no-op CompactionManager.instance.performCleanup(cfs); // check data is still there rows = cfs.getRangeSlice(null, Util.range("", ""), 1000, new IdentityQueryFilter()); assertEquals(LOOPS, rows.size()); } @Test public void testCleanupWithIndexes() throws IOException, ExecutionException, InterruptedException { Table table = Table.open(TABLE1); ColumnFamilyStore cfs = table.getColumnFamilyStore(CF1); assertEquals(cfs.getIndexedColumns().iterator().next(), COLUMN); List<Row> rows; // insert data and verify we get it back w/ range query fillCF(cfs, LOOPS); rows = cfs.getRangeSlice(null, Util.range("", ""), 1000, new IdentityQueryFilter()); assertEquals(LOOPS, rows.size()); ColumnFamilyStore cfi = cfs.getIndexedColumnFamilyStore(COLUMN); assertTrue(cfi.isIndexBuilt()); // verify we get it back w/ index query too IndexExpression expr = new IndexExpression(COLUMN, IndexOperator.EQ, VALUE); IndexClause clause = new IndexClause(Arrays.asList(expr), ByteBufferUtil.EMPTY_BYTE_BUFFER, Integer.MAX_VALUE); IFilter filter = new IdentityQueryFilter(); IPartitioner p = StorageService.getPartitioner(); Range range = new Range(p.getMinimumToken(), p.getMinimumToken()); rows = table.getColumnFamilyStore(CF1).scan(clause, range, filter); assertEquals(LOOPS, rows.size()); // nuke our token so cleanup will remove everything TokenMetadata tmd = StorageService.instance.getTokenMetadata(); tmd.clearUnsafe(); assert StorageService.instance.getLocalRanges(TABLE1).isEmpty(); CompactionManager.instance.performCleanup(cfs); // row data should be gone rows = cfs.getRangeSlice(null, Util.range("", ""), 1000, new IdentityQueryFilter()); assertEquals(0, rows.size()); // not only should it be gone but there should be no data on disk, not even tombstones assert cfs.getSSTables().isEmpty(); // 2ary indexes should result in no results, too (although tombstones won't be gone until compacted) rows = cfs.scan(clause, range, filter); assertEquals(0, rows.size()); } protected void fillCF(ColumnFamilyStore cfs, int rowsPerSSTable) throws ExecutionException, InterruptedException, IOException { CompactionManager.instance.disableAutoCompaction(); for (int i = 0; i < rowsPerSSTable; i++) { String key = String.valueOf(i); // create a row and update the birthdate value, test that the index query fetches the new version RowMutation rm; rm = new RowMutation(TABLE1, ByteBufferUtil.bytes(key)); rm.add(new QueryPath(cfs.getColumnFamilyName(), null, COLUMN), VALUE, System.currentTimeMillis()); rm.applyUnsafe(); } cfs.forceBlockingFlush(); } }
Fix unit tests for CASSANDRA-2428 git-svn-id: 97f024e056bb8360c163ac9719c09bffda44c4d2@1090054 13f79535-47bb-0310-9956-ffa450edef68
test/unit/org/apache/cassandra/db/CleanupTest.java
Fix unit tests for CASSANDRA-2428
Java
apache-2.0
124c25d39d70626f6e7a5cfd04bef214cd0f2c5d
0
linkedin/ambry,xiahome/ambry,pnarayanan/ambry,nsivabalan/ambry,vgkholla/ambry,cgtz/ambry,daniellitoc/ambry-Research,cgtz/ambry,pnarayanan/ambry,linkedin/ambry,linkedin/ambry,vgkholla/ambry,xiahome/ambry,linkedin/ambry,cgtz/ambry,cgtz/ambry,daniellitoc/ambry-Research,nsivabalan/ambry
package com.github.ambry.clustermap; import com.codahale.metrics.MetricRegistry; import com.github.ambry.network.Port; import com.github.ambry.network.PortType; import java.io.DataInputStream; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Mock cluster map for unit tests. This sets up a three node cluster * with 3 mount points in each. Each mount point has three partitions * and each partition has 3 replicas on each node. */ public class MockClusterMap implements ClusterMap { private final Map<Long, PartitionId> partitions; private final List<MockDataNodeId> dataNodes; private static int currentPlainTextPort = 50000; private static int currentSSLPort = 60000; public MockClusterMap() throws IOException { this(false); } public int getNextAvailablePlainTextPortNumber() throws IOException { return currentPlainTextPort++; } public int getNextAvailableSSLPortNumber() throws IOException { return currentSSLPort++; } public MockClusterMap(boolean enableSSLPorts) throws IOException { dataNodes = new ArrayList<MockDataNodeId>(9); // create 3 nodes with each having 3 mount paths if (enableSSLPorts) { MockDataNodeId dataNodeId1 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC1"); MockDataNodeId dataNodeId2 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC1"); MockDataNodeId dataNodeId3 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC1"); MockDataNodeId dataNodeId4 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC2"); MockDataNodeId dataNodeId5 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC2"); MockDataNodeId dataNodeId6 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC2"); MockDataNodeId dataNodeId7 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC3"); MockDataNodeId dataNodeId8 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC3"); MockDataNodeId dataNodeId9 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber(), getNextAvailableSSLPortNumber()), "DC3"); dataNodes.add(dataNodeId1); dataNodes.add(dataNodeId2); dataNodes.add(dataNodeId3); dataNodes.add(dataNodeId4); dataNodes.add(dataNodeId5); dataNodes.add(dataNodeId6); dataNodes.add(dataNodeId7); dataNodes.add(dataNodeId8); dataNodes.add(dataNodeId9); } else { MockDataNodeId dataNodeId1 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC1"); MockDataNodeId dataNodeId2 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC1"); MockDataNodeId dataNodeId3 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC1"); MockDataNodeId dataNodeId4 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC2"); MockDataNodeId dataNodeId5 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC2"); MockDataNodeId dataNodeId6 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC2"); MockDataNodeId dataNodeId7 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC3"); MockDataNodeId dataNodeId8 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC3"); MockDataNodeId dataNodeId9 = createDataNode(getListOfPorts(getNextAvailablePlainTextPortNumber()), "DC3"); dataNodes.add(dataNodeId1); dataNodes.add(dataNodeId2); dataNodes.add(dataNodeId3); dataNodes.add(dataNodeId4); dataNodes.add(dataNodeId5); dataNodes.add(dataNodeId6); dataNodes.add(dataNodeId7); dataNodes.add(dataNodeId8); dataNodes.add(dataNodeId9); } partitions = new HashMap<Long, PartitionId>(); // create three partitions on each mount path long partitionId = 0; for (int i = 0; i < dataNodes.get(0).getMountPaths().size(); i++) { for (int j = 0; j < 3; j++) { PartitionId id = new MockPartitionId(partitionId, dataNodes, i); partitions.put(partitionId, id); partitionId++; } } } ArrayList<Port> getListOfPorts(int port) { ArrayList<Port> ports = new ArrayList<Port>(); ports.add(new Port(port, PortType.PLAINTEXT)); return ports; } ArrayList<Port> getListOfPorts(int port, int sslPort) { ArrayList<Port> ports = new ArrayList<Port>(); ports.add(new Port(port, PortType.PLAINTEXT)); ports.add(new Port(sslPort, PortType.SSL)); return ports; } private int getPlainTextPort(ArrayList<Port> ports) { for (Port port : ports) { if (port.getPortType() == PortType.PLAINTEXT) { return port.getPort(); } } throw new IllegalArgumentException("No PlainText port found "); } private MockDataNodeId createDataNode(ArrayList<Port> ports, String datacenter) throws IOException { File f = null; int port = getPlainTextPort(ports); try { List<String> mountPaths = new ArrayList<String>(3); f = File.createTempFile("ambry", ".tmp"); File mountFile1 = new File(f.getParent(), "mountpathfile" + port + "0"); mountFile1.mkdir(); String mountPath1 = mountFile1.getAbsolutePath(); File mountFile2 = new File(f.getParent(), "mountpathfile" + port + "1"); mountFile2.mkdir(); String mountPath2 = mountFile2.getAbsolutePath(); File mountFile3 = new File(f.getParent(), "mountpathfile" + port + "2"); mountFile3.mkdir(); String mountPath3 = mountFile3.getAbsolutePath(); mountPaths.add(mountPath1); mountPaths.add(mountPath2); mountPaths.add(mountPath3); MockDataNodeId dataNode = new MockDataNodeId(ports, mountPaths, datacenter); return dataNode; } finally { if (f != null) { f.delete(); } } } @Override public PartitionId getPartitionIdFromStream(DataInputStream stream) throws IOException { short version = stream.readShort(); long id = stream.readLong(); return partitions.get(id); } @Override public List<PartitionId> getWritablePartitionIds() { List<PartitionId> partitionIdList = new ArrayList<PartitionId>(); for (PartitionId partitionId : partitions.values()) { partitionIdList.add(partitionId); } return partitionIdList; } @Override public boolean hasDatacenter(String datacenterName) { return true; } @Override public DataNodeId getDataNodeId(String hostname, int port) { for (DataNodeId dataNodeId : dataNodes) { if (dataNodeId.getHostname().compareTo(hostname) == 0 && dataNodeId.getPort() == port) { return dataNodeId; } } return null; } @Override public List<ReplicaId> getReplicaIds(DataNodeId dataNodeId) { ArrayList<ReplicaId> replicaIdsToReturn = new ArrayList<ReplicaId>(); for (PartitionId partitionId : partitions.values()) { List<ReplicaId> replicaIds = partitionId.getReplicaIds(); for (ReplicaId replicaId : replicaIds) { if (replicaId.getDataNodeId().getHostname().compareTo(dataNodeId.getHostname()) == 0 && replicaId.getDataNodeId().getPort() == dataNodeId.getPort()) { replicaIdsToReturn.add(replicaId); } } } return replicaIdsToReturn; } @Override public List<DataNodeId> getDataNodeIds() { return new ArrayList<DataNodeId>(dataNodes); } public List<MockDataNodeId> getDataNodes() { return dataNodes; } @Override public MetricRegistry getMetricRegistry() { // Each server that calls this mocked interface needs its own metric registry. return new MetricRegistry(); } public void cleanup() { for (PartitionId partitionId : partitions.values()) { MockPartitionId mockPartition = (MockPartitionId) partitionId; mockPartition.cleanUp(); } for (DataNodeId dataNode : dataNodes) { List<String> mountPaths = ((MockDataNodeId) dataNode).getMountPaths(); for (String mountPath : mountPaths) { File mountPathDir = new File(mountPath); for (File file : mountPathDir.listFiles()) { file.delete(); } mountPathDir.delete(); } } } public void onReplicaEvent(ReplicaId replicaId, ReplicaEventType event) { switch (event) { case Disk_Error: ((MockDiskId) replicaId.getDiskId()).onDiskError(); break; case Disk_Ok: ((MockDiskId) replicaId.getDiskId()).onDiskOk(); break; case Node_Timeout: ((MockDataNodeId) replicaId.getDataNodeId()).onNodeTimeout(); break; case Node_Response: ((MockDataNodeId) replicaId.getDataNodeId()).onNodeResponse(); break; case Partition_ReadOnly: ((MockPartitionId) replicaId.getPartitionId()).onPartitionReadOnly(); break; } } }
ambry-clustermap/src/test/java/com.github.ambry.clustermap/MockClusterMap.java
package com.github.ambry.clustermap; import com.codahale.metrics.MetricRegistry; import com.github.ambry.network.Port; import com.github.ambry.network.PortType; import java.io.DataInputStream; import java.io.File; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Mock cluster map for unit tests. This sets up a three node cluster * with 3 mount points in each. Each mount point has three partitions * and each partition has 3 replicas on each node. */ public class MockClusterMap implements ClusterMap { private final Map<Long, PartitionId> partitions; private final List<MockDataNodeId> dataNodes; private static int currentPlainTextPort = 50000; private static int currentSSLPort = 60000; public MockClusterMap() throws IOException { this(false); } public int getNextAvailablePlainTextPort() throws IOException { return currentPlainTextPort++; } public int getNextAvailableSSLPort() throws IOException { return currentSSLPort++; } public MockClusterMap(boolean enableSSLPorts) throws IOException { dataNodes = new ArrayList<MockDataNodeId>(9); // create 3 nodes with each having 3 mount paths if (enableSSLPorts) { MockDataNodeId dataNodeId1 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC1"); MockDataNodeId dataNodeId2 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC1"); MockDataNodeId dataNodeId3 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC1"); MockDataNodeId dataNodeId4 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC2"); MockDataNodeId dataNodeId5 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC2"); MockDataNodeId dataNodeId6 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC2"); MockDataNodeId dataNodeId7 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC3"); MockDataNodeId dataNodeId8 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC3"); MockDataNodeId dataNodeId9 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort(), getNextAvailableSSLPort()), "DC3"); dataNodes.add(dataNodeId1); dataNodes.add(dataNodeId2); dataNodes.add(dataNodeId3); dataNodes.add(dataNodeId4); dataNodes.add(dataNodeId5); dataNodes.add(dataNodeId6); dataNodes.add(dataNodeId7); dataNodes.add(dataNodeId8); dataNodes.add(dataNodeId9); } else { MockDataNodeId dataNodeId1 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC1"); MockDataNodeId dataNodeId2 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC1"); MockDataNodeId dataNodeId3 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC1"); MockDataNodeId dataNodeId4 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC2"); MockDataNodeId dataNodeId5 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC2"); MockDataNodeId dataNodeId6 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC2"); MockDataNodeId dataNodeId7 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC3"); MockDataNodeId dataNodeId8 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC3"); MockDataNodeId dataNodeId9 = createDataNode(getListOfPorts(getNextAvailablePlainTextPort()), "DC3"); dataNodes.add(dataNodeId1); dataNodes.add(dataNodeId2); dataNodes.add(dataNodeId3); dataNodes.add(dataNodeId4); dataNodes.add(dataNodeId5); dataNodes.add(dataNodeId6); dataNodes.add(dataNodeId7); dataNodes.add(dataNodeId8); dataNodes.add(dataNodeId9); } partitions = new HashMap<Long, PartitionId>(); // create three partitions on each mount path long partitionId = 0; for (int i = 0; i < dataNodes.get(0).getMountPaths().size(); i++) { for (int j = 0; j < 3; j++) { PartitionId id = new MockPartitionId(partitionId, dataNodes, i); partitions.put(partitionId, id); partitionId++; } } } ArrayList<Port> getListOfPorts(int port) { ArrayList<Port> ports = new ArrayList<Port>(); ports.add(new Port(port, PortType.PLAINTEXT)); return ports; } ArrayList<Port> getListOfPorts(int port, int sslPort) { ArrayList<Port> ports = new ArrayList<Port>(); ports.add(new Port(port, PortType.PLAINTEXT)); ports.add(new Port(sslPort, PortType.SSL)); return ports; } private int getPlainTextPort(ArrayList<Port> ports) { for (Port port : ports) { if (port.getPortType() == PortType.PLAINTEXT) { return port.getPort(); } } throw new IllegalArgumentException("No PlainText port found "); } private MockDataNodeId createDataNode(ArrayList<Port> ports, String datacenter) throws IOException { File f = null; int port = getPlainTextPort(ports); try { List<String> mountPaths = new ArrayList<String>(3); f = File.createTempFile("ambry", ".tmp"); File mountFile1 = new File(f.getParent(), "mountpathfile" + port + "0"); mountFile1.mkdir(); String mountPath1 = mountFile1.getAbsolutePath(); File mountFile2 = new File(f.getParent(), "mountpathfile" + port + "1"); mountFile2.mkdir(); String mountPath2 = mountFile2.getAbsolutePath(); File mountFile3 = new File(f.getParent(), "mountpathfile" + port + "2"); mountFile3.mkdir(); String mountPath3 = mountFile3.getAbsolutePath(); mountPaths.add(mountPath1); mountPaths.add(mountPath2); mountPaths.add(mountPath3); MockDataNodeId dataNode = new MockDataNodeId(ports, mountPaths, datacenter); return dataNode; } finally { if (f != null) { f.delete(); } } } @Override public PartitionId getPartitionIdFromStream(DataInputStream stream) throws IOException { short version = stream.readShort(); long id = stream.readLong(); return partitions.get(id); } @Override public List<PartitionId> getWritablePartitionIds() { List<PartitionId> partitionIdList = new ArrayList<PartitionId>(); for (PartitionId partitionId : partitions.values()) { partitionIdList.add(partitionId); } return partitionIdList; } @Override public boolean hasDatacenter(String datacenterName) { return true; } @Override public DataNodeId getDataNodeId(String hostname, int port) { for (DataNodeId dataNodeId : dataNodes) { if (dataNodeId.getHostname().compareTo(hostname) == 0 && dataNodeId.getPort() == port) { return dataNodeId; } } return null; } @Override public List<ReplicaId> getReplicaIds(DataNodeId dataNodeId) { ArrayList<ReplicaId> replicaIdsToReturn = new ArrayList<ReplicaId>(); for (PartitionId partitionId : partitions.values()) { List<ReplicaId> replicaIds = partitionId.getReplicaIds(); for (ReplicaId replicaId : replicaIds) { if (replicaId.getDataNodeId().getHostname().compareTo(dataNodeId.getHostname()) == 0 && replicaId.getDataNodeId().getPort() == dataNodeId.getPort()) { replicaIdsToReturn.add(replicaId); } } } return replicaIdsToReturn; } @Override public List<DataNodeId> getDataNodeIds() { return new ArrayList<DataNodeId>(dataNodes); } public List<MockDataNodeId> getDataNodes() { return dataNodes; } @Override public MetricRegistry getMetricRegistry() { // Each server that calls this mocked interface needs its own metric registry. return new MetricRegistry(); } public void cleanup() { for (PartitionId partitionId : partitions.values()) { MockPartitionId mockPartition = (MockPartitionId) partitionId; mockPartition.cleanUp(); } for (DataNodeId dataNode : dataNodes) { List<String> mountPaths = ((MockDataNodeId) dataNode).getMountPaths(); for (String mountPath : mountPaths) { File mountPathDir = new File(mountPath); for (File file : mountPathDir.listFiles()) { file.delete(); } mountPathDir.delete(); } } } public void onReplicaEvent(ReplicaId replicaId, ReplicaEventType event) { switch (event) { case Disk_Error: ((MockDiskId) replicaId.getDiskId()).onDiskError(); break; case Disk_Ok: ((MockDiskId) replicaId.getDiskId()).onDiskOk(); break; case Node_Timeout: ((MockDataNodeId) replicaId.getDataNodeId()).onNodeTimeout(); break; case Node_Response: ((MockDataNodeId) replicaId.getDataNodeId()).onNodeResponse(); break; case Partition_ReadOnly: ((MockPartitionId) replicaId.getPartitionId()).onPartitionReadOnly(); break; } } }
Fixing name convention
ambry-clustermap/src/test/java/com.github.ambry.clustermap/MockClusterMap.java
Fixing name convention
Java
apache-2.0
1522e1ec8d4c71c2a7e1037c48f91b26fd16e3d1
0
qingsong-xu/picasso,sbp5151/picasso,phileo/picasso,v7lin/picasso,hgl888/picasso,iamyuiwong/picasso,Pannarrow/picasso,myroid/picasso,joansmith/picasso,Gary111/picasso,Jalsoncc/picasso,sephiroth74/picasso,fromsatellite/picasso,tha022/picasso,2017398956/picasso,y97524027/picasso,david-wei/picasso,riezkykenzie/picasso,janzoner/picasso,chwnFlyPig/picasso,Gary111/picasso,MaiMohamedMahmoud/picasso,MaTriXy/picasso,recoilme/picasso,tha022/picasso,jrlinforce/picasso,phileo/picasso,hw-beijing/picasso,huihui4045/picasso,kaoree/picasso,phileo/picasso,laysionqet/picasso,Fablic/picasso,lnylny/picasso,zmywly8866/picasso,chRyNaN/PicassoBase64,RobertHale/picasso,lncosie/picasso,b-cuts/picasso,lypdemo/picasso,longshun/picasso,yauma/picasso,gkmbinh/picasso,chwnFlyPig/picasso,pacificIT/picasso,hw-beijing/picasso,fromsatellite/picasso,lxhxhlw/picasso,jrlinforce/picasso,msandroid/picasso,msandroid/picasso,gkmbinh/picasso,B-A-Ismail/picasso,msandroid/picasso,309746069/picasso,tikiet/picasso,MaiMohamedMahmoud/picasso,recoilme/picasso,NightlyNexus/picasso,zcwk/picasso,xubuhang/picasso,sahilk2579/picasso,sahilk2579/picasso,juner122king/picasso,zmywly8866/picasso,futurobot/picasso,chRyNaN/PicassoBase64,Faner007/picasso,xubuhang/picasso,totomac/picasso,lixiaoyu/picasso,jiasonwang/picasso,ribbon-xx/picasso,zhenguo/picasso,MaTriXy/picasso,sahilk2579/picasso,Pannarrow/picasso,zmywly8866/picasso,BinGoBinBin/picasso,liuguangli/picasso,JGeovani/picasso,lgx0955/picasso,lncosie/picasso,falcon2010/picasso,siwangqishiq/picasso,sephiroth74/picasso,kaoree/picasso,v7lin/picasso,MaTriXy/picasso,y97524027/picasso,litl/picasso,qingsong-xu/picasso,siwangqishiq/picasso,bossvn/picasso,joansmith/picasso,Shinelw/picasso,falcon2010/picasso,zhenguo/picasso,Yestioured/picasso,ribbon-xx/picasso,ruhaly/picasso,wanyueLei/picasso,xgame92/picasso,juner122king/picasso,longshun/picasso,squadrun/picasso,riezkykenzie/picasso,jonathan-caryl/picasso,yauma/picasso,y97524027/picasso,libinbensin/picasso,02110917/picasso,Gary111/picasso,andyao/picasso,junenn/picasso,HossainKhademian/Picasso,Jalsoncc/picasso,HasanAliKaraca/picasso,Fablic/picasso,lichblitz/picasso,JGeovani/picasso,huihui4045/picasso,ackimwilliams/picasso,david-wei/picasso,JohnTsaiAndroid/picasso,litl/picasso,pacificIT/picasso,tikiet/picasso,liuguangli/picasso,amikey/picasso,futurobot/picasso,renatohsc/picasso,BinGoBinBin/picasso,riezkykenzie/picasso,libinbensin/picasso,2017398956/picasso,amikey/picasso,square/picasso,3meters/picasso,paras23brahimi/picasso,viacheslavokolitiy/picasso,tanyixiu/picasso,jonathan-caryl/picasso,thangtc/picasso,Groxx/picasso,zcwk/picasso,3meters/picasso,fhchina/picasso,Fablic/picasso,AKiniyalocts/picasso,bossvn/picasso,lgx0955/picasso,lixiaoyu/picasso,renatohsc/picasso,wangziqiang/picasso,yauma/picasso,lypdemo/picasso,309746069/picasso,Groxx/picasso,longshun/picasso,paras23brahimi/picasso,yulongxiao/picasso,yoube/picasso,B-A-Ismail/picasso,yulongxiao/picasso,ouyangfeng/picasso,colonsong/picasso,jiasonwang/picasso,Algarode/picasso,xubuhang/picasso,Shinelw/picasso,RobertHale/picasso,ribbon-xx/picasso,tikiet/picasso,ackimwilliams/picasso,square/picasso,sowrabh/picasso,qingsong-xu/picasso,JohnTsaiAndroid/picasso,huanting/picasso,squadrun/picasso,wanjingyan001/picasso,shenyiyangvip/picasso,RobertHale/picasso,amikey/picasso,n0x3u5/picasso,Papuh/picasso,CJstar/picasso,chwnFlyPig/picasso,stateofzhao/picasso,v7lin/picasso,viacheslavokolitiy/picasso,bossvn/picasso,wanjingyan001/picasso,ajju4455/picasso,hgl888/picasso,lnylny/picasso,lxhxhlw/picasso,jrlinforce/picasso,309746069/picasso,fromsatellite/picasso,siwangqishiq/picasso,JGeovani/picasso,laysionqet/picasso,junenn/picasso,n0x3u5/picasso,perrystreetsoftware/picasso,HasanAliKaraca/picasso,totomac/picasso,viacheslavokolitiy/picasso,ajju4455/picasso,thangtc/picasso,tha022/picasso,B-A-Ismail/picasso,chRyNaN/PicassoBase64,laysionqet/picasso,ackimwilliams/picasso,lypdemo/picasso,yoube/picasso,jiasonwang/picasso,CJstar/picasso,szucielgp/picasso,fhchina/picasso,pacificIT/picasso,MaiMohamedMahmoud/picasso,lixiaoyu/picasso,sbp5151/picasso,gkmbinh/picasso,wangziqiang/picasso,lnylny/picasso,lgx0955/picasso,ouyangfeng/picasso,b-cuts/picasso,recoilme/picasso,stateofzhao/picasso,yulongxiao/picasso,huihui4045/picasso,iamyuiwong/picasso,joansmith/picasso,2017398956/picasso,Jalsoncc/picasso,sowrabh/picasso,perrystreetsoftware/picasso,Yestioured/picasso,Papuh/picasso,stateofzhao/picasso,renatohsc/picasso,HasanAliKaraca/picasso,lichblitz/picasso,xgame92/picasso,lncosie/picasso,b-cuts/picasso,Algarode/picasso,JohnTsaiAndroid/picasso,mullender/picasso,janzoner/picasso,square/picasso,andyao/picasso,sowrabh/picasso,szucielgp/picasso,shenyiyangvip/picasso,wangjun/picasso,fhchina/picasso,sbp5151/picasso,HossainKhademian/Picasso,lichblitz/picasso,falcon2010/picasso,colonsong/picasso,Shinelw/picasso,Pixate/picasso,3meters/picasso,Pannarrow/picasso,shenyiyangvip/picasso,NightlyNexus/picasso,hw-beijing/picasso,juner122king/picasso,tanyixiu/picasso,AKiniyalocts/picasso,squadrun/picasso,CJstar/picasso,iamyuiwong/picasso,hgl888/picasso,NightlyNexus/picasso,wangjun/picasso,huanting/picasso,mullender/picasso,tomerweller/picasso-debug,square/picasso,szucielgp/picasso,janzoner/picasso,Algarode/picasso,Faner007/picasso,andyao/picasso,tuenti/picasso,junenn/picasso,wanjingyan001/picasso,yoyoyohamapi/picasso,mullender/picasso,AKiniyalocts/picasso,wangziqiang/picasso,thangtc/picasso,tanyixiu/picasso,myroid/picasso,wanyueLei/picasso,yoube/picasso,ouyangfeng/picasso,Yestioured/picasso,liuguangli/picasso,xgame92/picasso,Papuh/picasso,myroid/picasso,huanting/picasso,litl/picasso,BinGoBinBin/picasso,paras23brahimi/picasso,ruhaly/picasso,zhenguo/picasso,david-wei/picasso,ajju4455/picasso,wangjun/picasso,libinbensin/picasso,perrystreetsoftware/picasso,tomerweller/picasso-debug,Faner007/picasso,totomac/picasso,kaoree/picasso,colonsong/picasso,lxhxhlw/picasso,yoyoyohamapi/picasso,wanyueLei/picasso,n0x3u5/picasso,02110917/picasso,yoyoyohamapi/picasso,Pixate/picasso,zcwk/picasso,tuenti/picasso,sephiroth74/picasso,ruhaly/picasso
package com.squareup.picasso; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.os.Process; import android.text.TextUtils; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.Map; import java.util.WeakHashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; import static com.squareup.picasso.Loader.Response; import static com.squareup.picasso.RequestMetrics.LOADED_FROM_DISK; import static com.squareup.picasso.RequestMetrics.LOADED_FROM_MEM; import static com.squareup.picasso.RequestMetrics.LOADED_FROM_NETWORK; public class Picasso { private static final int RETRY_DELAY = 500; private static final int REQUEST_COMPLETE = 1; private static final int REQUEST_RETRY = 2; // TODO This should be static. private final Handler handler = new Handler(Looper.getMainLooper()) { @Override public void handleMessage(Message msg) { Request request = (Request) msg.obj; if (request.future.isCancelled()) { return; } switch (msg.what) { case REQUEST_COMPLETE: request.complete(); break; case REQUEST_RETRY: request.picasso.retry(request); break; default: throw new IllegalArgumentException( String.format("Unknown handler message received! %d", msg.what)); } } }; static Picasso singleton = null; final Loader loader; final ExecutorService service; final Cache memoryCache; final Map<Object, Request> targetsToRequests; final boolean debugging; private Picasso(Loader loader, ExecutorService service, Cache memoryCache, boolean debugging) { this.loader = loader; this.service = service; this.memoryCache = memoryCache; this.debugging = debugging; this.targetsToRequests = new WeakHashMap<Object, Request>(); } public Request.Builder load(String path) { return new Request.Builder(this, path); } void submit(Request request) { Object target = request.getTarget(); if (target == null) return; cancelExistingRequest(target); targetsToRequests.put(target, request); request.future = service.submit(request); } Bitmap run(Request request) { Bitmap bitmap = loadFromCache(request); if (bitmap == null) { bitmap = loadFromStream(request); } return bitmap; } Bitmap quickMemoryCacheCheck(Object target, String path) { Bitmap cached = null; if (memoryCache != null) { cached = memoryCache.get(path); } cancelExistingRequest(target); return cached; } void retry(Request request) { if (request.retryCancelled) return; if (request.retryCount > 0) { request.retryCount--; submit(request); } else { request.error(); } } Bitmap decodeStream(InputStream stream, BitmapFactory.Options bitmapOptions) { if (stream == null) return null; return BitmapFactory.decodeStream(stream, null, bitmapOptions); } private void cancelExistingRequest(Object target) { Request existing = targetsToRequests.remove(target); if (existing != null) { if (!existing.future.isDone()) { existing.future.cancel(true); } else if (target != existing.getTarget()) { existing.retryCancelled = true; } } } private Bitmap loadFromCache(Request request) { if (request == null || (TextUtils.isEmpty(request.path))) return null; String path = request.path; Bitmap cached = null; if (memoryCache != null) { cached = memoryCache.get(path); if (cached != null) { if (debugging && request.metrics != null) { request.metrics.loadedFrom = LOADED_FROM_MEM; } request.result = cached; handler.sendMessage(handler.obtainMessage(REQUEST_COMPLETE, request)); } } return cached; } private Bitmap loadFromStream(Request request) { if (request == null || (TextUtils.isEmpty(request.path))) return null; Bitmap result = null; Response response = null; try { response = loader.load(request.path, request.retryCount == 0); if (response == null) { return null; } result = decodeStream(response.stream, request.bitmapOptions); result = transformResult(request, result); if (debugging) { if (request.metrics != null) { request.metrics.loadedFrom = response.cached ? LOADED_FROM_DISK : LOADED_FROM_NETWORK; } } if (result != null && memoryCache != null) { memoryCache.set(request.key, result); } request.result = result; handler.sendMessage(handler.obtainMessage(REQUEST_COMPLETE, request)); } catch (IOException e) { handler.sendMessageDelayed(handler.obtainMessage(REQUEST_RETRY, request), RETRY_DELAY); } finally { if (response != null && response.stream != null) { try { response.stream.close(); } catch (IOException ignored) { } } } return result; } private Bitmap transformResult(Request request, Bitmap result) { List<Transformation> transformations = request.transformations; if (!transformations.isEmpty()) { if (transformations.size() == 1) { result = transformations.get(0).transform(result); } else { for (Transformation transformation : transformations) { result = transformation.transform(result); } } } return result; } public static Picasso with(Context context) { if (singleton == null) { singleton = new Builder().loader(new DefaultHttpLoader(context)) .executor(Executors.newFixedThreadPool(3, new PicassoThreadFactory())) .memoryCache(new LruMemoryCache(context)) .debug() .build(); } return singleton; } public static class Builder { private Loader loader; private ExecutorService service; private Cache memoryCache; private boolean debugging; public Builder loader(Loader loader) { if (loader == null) { throw new IllegalArgumentException("Loader may not be null."); } if (this.loader != null) { throw new IllegalStateException("Loader already set."); } this.loader = loader; return this; } public Builder executor(ExecutorService executorService) { if (executorService == null) { throw new IllegalArgumentException("Executor service may not be null."); } if (this.service != null) { throw new IllegalStateException("Executor service already set."); } this.service = executorService; return this; } public Builder memoryCache(Cache memoryCache) { if (memoryCache == null) { throw new IllegalArgumentException("Memory cache may not be null."); } if (this.memoryCache != null) { throw new IllegalStateException("Memory cache already set."); } this.memoryCache = memoryCache; return this; } public Builder debug() { debugging = true; return this; } public Picasso build() { if (loader == null || service == null) { throw new IllegalStateException("Must provide a Loader and an ExecutorService."); } return new Picasso(loader, service, memoryCache, debugging); } } static class PicassoThreadFactory implements ThreadFactory { private static final AtomicInteger id = new AtomicInteger(); @SuppressWarnings("NullableProblems") public Thread newThread(Runnable r) { Thread t = new Thread(r); t.setName("picasso-" + id.getAndIncrement()); t.setPriority(Process.THREAD_PRIORITY_BACKGROUND); return t; } } }
picasso/src/main/java/com/squareup/picasso/Picasso.java
package com.squareup.picasso; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Handler; import android.os.Looper; import android.os.Message; import android.os.Process; import android.text.TextUtils; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.Map; import java.util.WeakHashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; import static com.squareup.picasso.Loader.Response; import static com.squareup.picasso.RequestMetrics.LOADED_FROM_DISK; import static com.squareup.picasso.RequestMetrics.LOADED_FROM_MEM; import static com.squareup.picasso.RequestMetrics.LOADED_FROM_NETWORK; public class Picasso { private static final int RETRY_DELAY = 500; private static final int REQUEST_COMPLETE = 1; private static final int REQUEST_RETRY = 2; // TODO This should be static. private final Handler handler = new Handler(Looper.getMainLooper()) { @Override public void handleMessage(Message msg) { Request request = (Request) msg.obj; if (request.future.isCancelled()) { return; } switch (msg.what) { case REQUEST_COMPLETE: request.complete(); break; case REQUEST_RETRY: request.picasso.retry(request); break; default: throw new IllegalArgumentException( String.format("Unknown handler message received! %d", msg.what)); } } }; static Picasso singleton = null; final Loader loader; final ExecutorService service; final Cache memoryCache; final Map<Object, Request> targetsToRequests; final boolean debugging; private Picasso(Loader loader, ExecutorService service, Cache memoryCache, boolean debugging) { this.loader = loader; this.service = service; this.memoryCache = memoryCache; this.debugging = debugging; this.targetsToRequests = new WeakHashMap<Object, Request>(); } public Request.Builder load(String path) { return new Request.Builder(this, path); } void submit(Request request) { Object target = request.getTarget(); if (target == null) return; cancelExistingRequest(target); targetsToRequests.put(target, request); request.future = service.submit(request); } Bitmap run(Request request) { Bitmap bitmap = loadFromCache(request); if (bitmap == null) { bitmap = loadFromStream(request); } return bitmap; } Bitmap quickMemoryCacheCheck(Object target, String path) { Bitmap cached = null; if (memoryCache != null) { cached = memoryCache.get(path); } cancelExistingRequest(target); return cached; } void retry(Request request) { if (request.retryCancelled) return; if (request.retryCount > 0) { request.retryCount--; submit(request); } else { request.error(); } } Bitmap decodeStream(InputStream stream, BitmapFactory.Options bitmapOptions) { if (stream == null) return null; return BitmapFactory.decodeStream(stream, null, bitmapOptions); } private void cancelExistingRequest(Object target) { Request existing = targetsToRequests.remove(target); if (existing != null) { if (!existing.future.isDone()) { existing.future.cancel(true); } else if (target != existing.getTarget()) { existing.retryCancelled = true; } } } private Bitmap loadFromCache(Request request) { if (request == null || (TextUtils.isEmpty(request.path))) return null; String path = request.path; Bitmap cached = null; if (memoryCache != null) { cached = memoryCache.get(path); if (cached != null) { if (debugging && request.metrics != null) { request.metrics.loadedFrom = LOADED_FROM_MEM; } request.result = cached; handler.sendMessage(handler.obtainMessage(REQUEST_COMPLETE, request)); } } return cached; } private Bitmap loadFromStream(Request request) { if (request == null || (TextUtils.isEmpty(request.path))) return null; Bitmap result = null; Response response = null; try { response = loader.load(request.path, request.retryCount == 0); if (response == null) { return null; } result = decodeStream(response.stream, request.bitmapOptions); result = transformResult(request, result); if (debugging) { if (request.metrics != null) { request.metrics.loadedFrom = response.cached ? LOADED_FROM_DISK : LOADED_FROM_NETWORK; } } if (result != null && memoryCache != null) { memoryCache.set(request.key, result); } request.result = result; handler.sendMessage(handler.obtainMessage(REQUEST_COMPLETE, request)); } catch (IOException e) { handler.sendMessageDelayed(handler.obtainMessage(REQUEST_RETRY, request), RETRY_DELAY); } finally { if (response != null && response.stream != null) { try { response.stream.close(); } catch (IOException ignored) { } } } return result; } private Bitmap transformResult(Request request, Bitmap result) { List<Transformation> transformations = request.transformations; if (!transformations.isEmpty()) { if (transformations.size() == 1) { result = transformations.get(0).transform(result); } else { for (Transformation transformation : transformations) { result = transformation.transform(result); } } } return result; } public static Picasso with(Context context) { if (singleton == null) { singleton = new Builder().loader(new DefaultHttpLoader(context)) .executor(Executors.newFixedThreadPool(3, new PicassoThreadFactory())) .memoryCache(new LruMemoryCache(context)) .debug() .build(); } return singleton; } public static class Builder { private Loader loader; private ExecutorService service; private Cache memoryCache; private boolean debugging; public Builder loader(Loader loader) { if (loader == null) { throw new IllegalArgumentException("Loader may not be null."); } if (this.loader != null) { throw new IllegalStateException("Loader already set."); } this.loader = loader; return this; } public Builder executor(ExecutorService executorService) { if (executorService == null) { throw new IllegalArgumentException("Executor service may not be null."); } if (this.service != null) { throw new IllegalStateException("Exector service already set."); } this.service = executorService; return this; } public Builder memoryCache(Cache memoryCache) { if (memoryCache == null) { throw new IllegalArgumentException("Memory cache may not be null."); } if (this.memoryCache != null) { throw new IllegalStateException("Memory cache already set."); } this.memoryCache = memoryCache; return this; } public Builder debug() { debugging = true; return this; } public Picasso build() { if (loader == null || service == null) { throw new IllegalStateException("Must provide a Loader and an ExecutorService."); } return new Picasso(loader, service, memoryCache, debugging); } } static class PicassoThreadFactory implements ThreadFactory { private static final AtomicInteger id = new AtomicInteger(); @SuppressWarnings("NullableProblems") public Thread newThread(Runnable r) { Thread t = new Thread(r); t.setName("picasso-" + id.getAndIncrement()); t.setPriority(Process.THREAD_PRIORITY_BACKGROUND); return t; } } }
Fix typo.
picasso/src/main/java/com/squareup/picasso/Picasso.java
Fix typo.
Java
apache-2.0
d126558dec790f5d1bd06b13806fba723336869b
0
pranavraman/elasticsearch,lmtwga/elasticsearch,onegambler/elasticsearch,Widen/elasticsearch,djschny/elasticsearch,masaruh/elasticsearch,fekaputra/elasticsearch,hechunwen/elasticsearch,cnfire/elasticsearch-1,qwerty4030/elasticsearch,vvcephei/elasticsearch,Liziyao/elasticsearch,polyfractal/elasticsearch,jw0201/elastic,coding0011/elasticsearch,hanswang/elasticsearch,brwe/elasticsearch,brwe/elasticsearch,scorpionvicky/elasticsearch,mute/elasticsearch,luiseduardohdbackup/elasticsearch,nazarewk/elasticsearch,iacdingping/elasticsearch,likaiwalkman/elasticsearch,sjohnr/elasticsearch,Ansh90/elasticsearch,mohsinh/elasticsearch,martinstuga/elasticsearch,Kakakakakku/elasticsearch,AleksKochev/elasticsearch,huanzhong/elasticsearch,elasticdog/elasticsearch,codebunt/elasticsearch,dataduke/elasticsearch,wittyameta/elasticsearch,kcompher/elasticsearch,wayeast/elasticsearch,smflorentino/elasticsearch,janmejay/elasticsearch,queirozfcom/elasticsearch,awislowski/elasticsearch,bawse/elasticsearch,IanvsPoplicola/elasticsearch,a2lin/elasticsearch,Kakakakakku/elasticsearch,ThalaivaStars/OrgRepo1,vroyer/elassandra,Helen-Zhao/elasticsearch,skearns64/elasticsearch,dongjoon-hyun/elasticsearch,caengcjd/elasticsearch,Siddartha07/elasticsearch,EasonYi/elasticsearch,djschny/elasticsearch,Siddartha07/elasticsearch,vingupta3/elasticsearch,AshishThakur/elasticsearch,Stacey-Gammon/elasticsearch,jango2015/elasticsearch,khiraiwa/elasticsearch,chrismwendt/elasticsearch,scorpionvicky/elasticsearch,Flipkart/elasticsearch,jsgao0/elasticsearch,Siddartha07/elasticsearch,mohsinh/elasticsearch,koxa29/elasticsearch,rajanm/elasticsearch,javachengwc/elasticsearch,elasticdog/elasticsearch,mm0/elasticsearch,henakamaMSFT/elasticsearch,F0lha/elasticsearch,jchampion/elasticsearch,rlugojr/elasticsearch,SergVro/elasticsearch,SergVro/elasticsearch,franklanganke/elasticsearch,spiegela/elasticsearch,episerver/elasticsearch,hydro2k/elasticsearch,skearns64/elasticsearch,JackyMai/elasticsearch,knight1128/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,nezirus/elasticsearch,gmarz/elasticsearch,janmejay/elasticsearch,golubev/elasticsearch,martinstuga/elasticsearch,kevinkluge/elasticsearch,dataduke/elasticsearch,mrorii/elasticsearch,iamjakob/elasticsearch,mohit/elasticsearch,fooljohnny/elasticsearch,markwalkom/elasticsearch,btiernay/elasticsearch,truemped/elasticsearch,amaliujia/elasticsearch,jeteve/elasticsearch,Fsero/elasticsearch,ajhalani/elasticsearch,nilabhsagar/elasticsearch,rento19962/elasticsearch,salyh/elasticsearch,jpountz/elasticsearch,phani546/elasticsearch,lzo/elasticsearch-1,myelin/elasticsearch,boliza/elasticsearch,wbowling/elasticsearch,phani546/elasticsearch,ajhalani/elasticsearch,codebunt/elasticsearch,Ansh90/elasticsearch,kevinkluge/elasticsearch,vrkansagara/elasticsearch,jango2015/elasticsearch,PhaedrusTheGreek/elasticsearch,raishiv/elasticsearch,humandb/elasticsearch,pranavraman/elasticsearch,markharwood/elasticsearch,kimimj/elasticsearch,opendatasoft/elasticsearch,javachengwc/elasticsearch,mohsinh/elasticsearch,mjhennig/elasticsearch,winstonewert/elasticsearch,Collaborne/elasticsearch,KimTaehee/elasticsearch,gingerwizard/elasticsearch,hirdesh2008/elasticsearch,yynil/elasticsearch,kenshin233/elasticsearch,mikemccand/elasticsearch,sauravmondallive/elasticsearch,StefanGor/elasticsearch,chrismwendt/elasticsearch,snikch/elasticsearch,alexkuk/elasticsearch,ImpressTV/elasticsearch,mnylen/elasticsearch,xuzha/elasticsearch,gmarz/elasticsearch,maddin2016/elasticsearch,likaiwalkman/elasticsearch,achow/elasticsearch,markharwood/elasticsearch,vietlq/elasticsearch,MisterAndersen/elasticsearch,aglne/elasticsearch,sauravmondallive/elasticsearch,caengcjd/elasticsearch,brandonkearby/elasticsearch,glefloch/elasticsearch,smflorentino/elasticsearch,winstonewert/elasticsearch,easonC/elasticsearch,koxa29/elasticsearch,LewayneNaidoo/elasticsearch,henakamaMSFT/elasticsearch,vroyer/elassandra,wbowling/elasticsearch,LeoYao/elasticsearch,sjohnr/elasticsearch,kkirsche/elasticsearch,luiseduardohdbackup/elasticsearch,djschny/elasticsearch,pozhidaevak/elasticsearch,kevinkluge/elasticsearch,zhaocloud/elasticsearch,KimTaehee/elasticsearch,sauravmondallive/elasticsearch,ImpressTV/elasticsearch,hirdesh2008/elasticsearch,sdauletau/elasticsearch,zhaocloud/elasticsearch,andrestc/elasticsearch,MisterAndersen/elasticsearch,jpountz/elasticsearch,masaruh/elasticsearch,mbrukman/elasticsearch,wittyameta/elasticsearch,martinstuga/elasticsearch,uschindler/elasticsearch,javachengwc/elasticsearch,mjhennig/elasticsearch,Clairebi/ElasticsearchClone,overcome/elasticsearch,alexkuk/elasticsearch,libosu/elasticsearch,drewr/elasticsearch,wuranbo/elasticsearch,kalburgimanjunath/elasticsearch,markllama/elasticsearch,pozhidaevak/elasticsearch,ESamir/elasticsearch,uschindler/elasticsearch,micpalmia/elasticsearch,infusionsoft/elasticsearch,Rygbee/elasticsearch,fred84/elasticsearch,tahaemin/elasticsearch,uboness/elasticsearch,jimhooker2002/elasticsearch,spiegela/elasticsearch,alexksikes/elasticsearch,himanshuag/elasticsearch,hanst/elasticsearch,sc0ttkclark/elasticsearch,humandb/elasticsearch,lzo/elasticsearch-1,iantruslove/elasticsearch,lmenezes/elasticsearch,TonyChai24/ESSource,petabytedata/elasticsearch,kalimatas/elasticsearch,yynil/elasticsearch,naveenhooda2000/elasticsearch,andrestc/elasticsearch,apepper/elasticsearch,AshishThakur/elasticsearch,MaineC/elasticsearch,MichaelLiZhou/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,JervyShi/elasticsearch,linglaiyao1314/elasticsearch,milodky/elasticsearch,zhaocloud/elasticsearch,Charlesdong/elasticsearch,martinstuga/elasticsearch,boliza/elasticsearch,gmarz/elasticsearch,beiske/elasticsearch,infusionsoft/elasticsearch,MjAbuz/elasticsearch,Liziyao/elasticsearch,dongjoon-hyun/elasticsearch,yynil/elasticsearch,pritishppai/elasticsearch,rmuir/elasticsearch,dongjoon-hyun/elasticsearch,jango2015/elasticsearch,VukDukic/elasticsearch,franklanganke/elasticsearch,micpalmia/elasticsearch,jaynblue/elasticsearch,StefanGor/elasticsearch,hanswang/elasticsearch,jw0201/elastic,pranavraman/elasticsearch,petmit/elasticsearch,adrianbk/elasticsearch,ivansun1010/elasticsearch,gfyoung/elasticsearch,LeoYao/elasticsearch,snikch/elasticsearch,smflorentino/elasticsearch,jchampion/elasticsearch,kimimj/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,amit-shar/elasticsearch,liweinan0423/elasticsearch,jimhooker2002/elasticsearch,uschindler/elasticsearch,rhoml/elasticsearch,javachengwc/elasticsearch,JackyMai/elasticsearch,MisterAndersen/elasticsearch,mikemccand/elasticsearch,iacdingping/elasticsearch,rlugojr/elasticsearch,boliza/elasticsearch,pablocastro/elasticsearch,amaliujia/elasticsearch,mjhennig/elasticsearch,ThiagoGarciaAlves/elasticsearch,sposam/elasticsearch,PhaedrusTheGreek/elasticsearch,likaiwalkman/elasticsearch,diendt/elasticsearch,nilabhsagar/elasticsearch,LeoYao/elasticsearch,HonzaKral/elasticsearch,hafkensite/elasticsearch,alexkuk/elasticsearch,clintongormley/elasticsearch,mbrukman/elasticsearch,djschny/elasticsearch,hafkensite/elasticsearch,chrismwendt/elasticsearch,weipinghe/elasticsearch,AndreKR/elasticsearch,caengcjd/elasticsearch,abibell/elasticsearch,sposam/elasticsearch,rlugojr/elasticsearch,mm0/elasticsearch,btiernay/elasticsearch,socialrank/elasticsearch,AndreKR/elasticsearch,palecur/elasticsearch,Collaborne/elasticsearch,yongminxia/elasticsearch,liweinan0423/elasticsearch,VukDukic/elasticsearch,areek/elasticsearch,MjAbuz/elasticsearch,socialrank/elasticsearch,spiegela/elasticsearch,nrkkalyan/elasticsearch,Shepard1212/elasticsearch,bestwpw/elasticsearch,abibell/elasticsearch,artnowo/elasticsearch,avikurapati/elasticsearch,ulkas/elasticsearch,kkirsche/elasticsearch,Rygbee/elasticsearch,i-am-Nathan/elasticsearch,strapdata/elassandra5-rc,wayeast/elasticsearch,elancom/elasticsearch,zeroctu/elasticsearch,lydonchandra/elasticsearch,huanzhong/elasticsearch,shreejay/elasticsearch,sposam/elasticsearch,strapdata/elassandra-test,sjohnr/elasticsearch,HarishAtGitHub/elasticsearch,polyfractal/elasticsearch,mcku/elasticsearch,kalimatas/elasticsearch,sneivandt/elasticsearch,karthikjaps/elasticsearch,markwalkom/elasticsearch,raishiv/elasticsearch,vrkansagara/elasticsearch,MjAbuz/elasticsearch,Helen-Zhao/elasticsearch,kimchy/elasticsearch,rajanm/elasticsearch,strapdata/elassandra,vietlq/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,tcucchietti/elasticsearch,Uiho/elasticsearch,strapdata/elassandra,davidvgalbraith/elasticsearch,areek/elasticsearch,nknize/elasticsearch,palecur/elasticsearch,socialrank/elasticsearch,vingupta3/elasticsearch,EasonYi/elasticsearch,wimvds/elasticsearch,dongaihua/highlight-elasticsearch,aparo/elasticsearch,acchen97/elasticsearch,nellicus/elasticsearch,dataduke/elasticsearch,robin13/elasticsearch,PhaedrusTheGreek/elasticsearch,s1monw/elasticsearch,obourgain/elasticsearch,SergVro/elasticsearch,jpountz/elasticsearch,Helen-Zhao/elasticsearch,bawse/elasticsearch,combinatorist/elasticsearch,Rygbee/elasticsearch,mnylen/elasticsearch,vvcephei/elasticsearch,zkidkid/elasticsearch,sarwarbhuiyan/elasticsearch,jango2015/elasticsearch,JSCooke/elasticsearch,ImpressTV/elasticsearch,thecocce/elasticsearch,ydsakyclguozi/elasticsearch,vroyer/elasticassandra,Widen/elasticsearch,combinatorist/elasticsearch,opendatasoft/elasticsearch,tkssharma/elasticsearch,golubev/elasticsearch,Clairebi/ElasticsearchClone,mnylen/elasticsearch,bestwpw/elasticsearch,janmejay/elasticsearch,nezirus/elasticsearch,JervyShi/elasticsearch,fubuki/elasticsearch,artnowo/elasticsearch,humandb/elasticsearch,janmejay/elasticsearch,NBSW/elasticsearch,bestwpw/elasticsearch,mortonsykes/elasticsearch,queirozfcom/elasticsearch,masterweb121/elasticsearch,YosuaMichael/elasticsearch,feiqitian/elasticsearch,onegambler/elasticsearch,peschlowp/elasticsearch,himanshuag/elasticsearch,weipinghe/elasticsearch,bestwpw/elasticsearch,vietlq/elasticsearch,yongminxia/elasticsearch,mrorii/elasticsearch,ivansun1010/elasticsearch,anti-social/elasticsearch,achow/elasticsearch,tkssharma/elasticsearch,MjAbuz/elasticsearch,trangvh/elasticsearch,adrianbk/elasticsearch,micpalmia/elasticsearch,jimczi/elasticsearch,tkssharma/elasticsearch,MichaelLiZhou/elasticsearch,skearns64/elasticsearch,huanzhong/elasticsearch,Siddartha07/elasticsearch,wuranbo/elasticsearch,drewr/elasticsearch,dataduke/elasticsearch,MisterAndersen/elasticsearch,smflorentino/elasticsearch,ricardocerq/elasticsearch,zhaocloud/elasticsearch,btiernay/elasticsearch,myelin/elasticsearch,alexbrasetvik/elasticsearch,uboness/elasticsearch,ivansun1010/elasticsearch,mnylen/elasticsearch,himanshuag/elasticsearch,alexkuk/elasticsearch,chirilo/elasticsearch,huypx1292/elasticsearch,mikemccand/elasticsearch,xuzha/elasticsearch,lchennup/elasticsearch,kunallimaye/elasticsearch,wayeast/elasticsearch,LeoYao/elasticsearch,Charlesdong/elasticsearch,easonC/elasticsearch,nazarewk/elasticsearch,PhaedrusTheGreek/elasticsearch,dongaihua/highlight-elasticsearch,s1monw/elasticsearch,snikch/elasticsearch,jbertouch/elasticsearch,kcompher/elasticsearch,ThalaivaStars/OrgRepo1,JSCooke/elasticsearch,rmuir/elasticsearch,koxa29/elasticsearch,sc0ttkclark/elasticsearch,gmarz/elasticsearch,luiseduardohdbackup/elasticsearch,yongminxia/elasticsearch,loconsolutions/elasticsearch,LeoYao/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,umeshdangat/elasticsearch,schonfeld/elasticsearch,markharwood/elasticsearch,fekaputra/elasticsearch,Stacey-Gammon/elasticsearch,ajhalani/elasticsearch,rento19962/elasticsearch,Charlesdong/elasticsearch,mmaracic/elasticsearch,kcompher/elasticsearch,lzo/elasticsearch-1,tkssharma/elasticsearch,pritishppai/elasticsearch,tebriel/elasticsearch,linglaiyao1314/elasticsearch,KimTaehee/elasticsearch,JSCooke/elasticsearch,peschlowp/elasticsearch,rmuir/elasticsearch,elancom/elasticsearch,qwerty4030/elasticsearch,mm0/elasticsearch,gingerwizard/elasticsearch,kunallimaye/elasticsearch,ImpressTV/elasticsearch,zeroctu/elasticsearch,humandb/elasticsearch,davidvgalbraith/elasticsearch,strapdata/elassandra-test,peschlowp/elasticsearch,wangyuxue/elasticsearch,Chhunlong/elasticsearch,nellicus/elasticsearch,scottsom/elasticsearch,wangtuo/elasticsearch,infusionsoft/elasticsearch,queirozfcom/elasticsearch,pritishppai/elasticsearch,milodky/elasticsearch,amaliujia/elasticsearch,winstonewert/elasticsearch,kaneshin/elasticsearch,maddin2016/elasticsearch,Brijeshrpatel9/elasticsearch,abibell/elasticsearch,yuy168/elasticsearch,MjAbuz/elasticsearch,fred84/elasticsearch,kevinkluge/elasticsearch,mute/elasticsearch,AleksKochev/elasticsearch,nazarewk/elasticsearch,dantuffery/elasticsearch,onegambler/elasticsearch,zhiqinghuang/elasticsearch,cwurm/elasticsearch,schonfeld/elasticsearch,onegambler/elasticsearch,fekaputra/elasticsearch,Ansh90/elasticsearch,hirdesh2008/elasticsearch,hanswang/elasticsearch,hydro2k/elasticsearch,TonyChai24/ESSource,knight1128/elasticsearch,s1monw/elasticsearch,schonfeld/elasticsearch,khiraiwa/elasticsearch,henakamaMSFT/elasticsearch,fforbeck/elasticsearch,szroland/elasticsearch,areek/elasticsearch,opendatasoft/elasticsearch,MetSystem/elasticsearch,jimhooker2002/elasticsearch,kaneshin/elasticsearch,masterweb121/elasticsearch,achow/elasticsearch,Rygbee/elasticsearch,MichaelLiZhou/elasticsearch,davidvgalbraith/elasticsearch,amit-shar/elasticsearch,boliza/elasticsearch,gfyoung/elasticsearch,thecocce/elasticsearch,robin13/elasticsearch,truemped/elasticsearch,nellicus/elasticsearch,fekaputra/elasticsearch,libosu/elasticsearch,ricardocerq/elasticsearch,Chhunlong/elasticsearch,mohsinh/elasticsearch,Widen/elasticsearch,wuranbo/elasticsearch,mcku/elasticsearch,pritishppai/elasticsearch,Stacey-Gammon/elasticsearch,markwalkom/elasticsearch,obourgain/elasticsearch,wittyameta/elasticsearch,lchennup/elasticsearch,ricardocerq/elasticsearch,jeteve/elasticsearch,Stacey-Gammon/elasticsearch,nezirus/elasticsearch,sjohnr/elasticsearch,fekaputra/elasticsearch,Brijeshrpatel9/elasticsearch,lks21c/elasticsearch,mohit/elasticsearch,rlugojr/elasticsearch,jaynblue/elasticsearch,uschindler/elasticsearch,mm0/elasticsearch,IanvsPoplicola/elasticsearch,Kakakakakku/elasticsearch,F0lha/elasticsearch,thecocce/elasticsearch,Clairebi/ElasticsearchClone,sreeramjayan/elasticsearch,dpursehouse/elasticsearch,elancom/elasticsearch,davidvgalbraith/elasticsearch,xuzha/elasticsearch,PhaedrusTheGreek/elasticsearch,sneivandt/elasticsearch,mikemccand/elasticsearch,ESamir/elasticsearch,jimhooker2002/elasticsearch,naveenhooda2000/elasticsearch,LeoYao/elasticsearch,NBSW/elasticsearch,episerver/elasticsearch,iacdingping/elasticsearch,apepper/elasticsearch,obourgain/elasticsearch,mbrukman/elasticsearch,nilabhsagar/elasticsearch,Brijeshrpatel9/elasticsearch,skearns64/elasticsearch,abhijitiitr/es,adrianbk/elasticsearch,mapr/elasticsearch,clintongormley/elasticsearch,gingerwizard/elasticsearch,jsgao0/elasticsearch,sneivandt/elasticsearch,brandonkearby/elasticsearch,naveenhooda2000/elasticsearch,alexshadow007/elasticsearch,strapdata/elassandra,kalburgimanjunath/elasticsearch,kalburgimanjunath/elasticsearch,wangyuxue/elasticsearch,maddin2016/elasticsearch,cnfire/elasticsearch-1,yanjunh/elasticsearch,hechunwen/elasticsearch,AndreKR/elasticsearch,dantuffery/elasticsearch,kcompher/elasticsearch,mjhennig/elasticsearch,nellicus/elasticsearch,dylan8902/elasticsearch,gingerwizard/elasticsearch,lmtwga/elasticsearch,yynil/elasticsearch,alexkuk/elasticsearch,henakamaMSFT/elasticsearch,franklanganke/elasticsearch,pranavraman/elasticsearch,Asimov4/elasticsearch,tebriel/elasticsearch,ajhalani/elasticsearch,winstonewert/elasticsearch,vroyer/elassandra,lzo/elasticsearch-1,alexshadow007/elasticsearch,fubuki/elasticsearch,marcuswr/elasticsearch-dateline,masaruh/elasticsearch,bawse/elasticsearch,ZTE-PaaS/elasticsearch,ouyangkongtong/elasticsearch,ivansun1010/elasticsearch,NBSW/elasticsearch,lightslife/elasticsearch,petmit/elasticsearch,andrejserafim/elasticsearch,a2lin/elasticsearch,clintongormley/elasticsearch,nomoa/elasticsearch,fernandozhu/elasticsearch,Flipkart/elasticsearch,geidies/elasticsearch,sauravmondallive/elasticsearch,btiernay/elasticsearch,mute/elasticsearch,amaliujia/elasticsearch,glefloch/elasticsearch,xpandan/elasticsearch,acchen97/elasticsearch,andrewvc/elasticsearch,truemped/elasticsearch,ckclark/elasticsearch,tsohil/elasticsearch,zhiqinghuang/elasticsearch,avikurapati/elasticsearch,MetSystem/elasticsearch,libosu/elasticsearch,SergVro/elasticsearch,Brijeshrpatel9/elasticsearch,milodky/elasticsearch,caengcjd/elasticsearch,martinstuga/elasticsearch,vroyer/elasticassandra,Fsero/elasticsearch,elasticdog/elasticsearch,shreejay/elasticsearch,codebunt/elasticsearch,karthikjaps/elasticsearch,lzo/elasticsearch-1,gmarz/elasticsearch,MetSystem/elasticsearch,PhaedrusTheGreek/elasticsearch,AleksKochev/elasticsearch,iantruslove/elasticsearch,KimTaehee/elasticsearch,C-Bish/elasticsearch,sposam/elasticsearch,winstonewert/elasticsearch,raishiv/elasticsearch,pablocastro/elasticsearch,Chhunlong/elasticsearch,ESamir/elasticsearch,socialrank/elasticsearch,yanjunh/elasticsearch,snikch/elasticsearch,yynil/elasticsearch,xingguang2013/elasticsearch,fooljohnny/elasticsearch,janmejay/elasticsearch,jaynblue/elasticsearch,mute/elasticsearch,kalburgimanjunath/elasticsearch,himanshuag/elasticsearch,fernandozhu/elasticsearch,Shekharrajak/elasticsearch,masterweb121/elasticsearch,petabytedata/elasticsearch,jimczi/elasticsearch,nomoa/elasticsearch,LewayneNaidoo/elasticsearch,ivansun1010/elasticsearch,anti-social/elasticsearch,camilojd/elasticsearch,geidies/elasticsearch,hechunwen/elasticsearch,salyh/elasticsearch,thecocce/elasticsearch,andrejserafim/elasticsearch,Uiho/elasticsearch,combinatorist/elasticsearch,vrkansagara/elasticsearch,overcome/elasticsearch,scorpionvicky/elasticsearch,jprante/elasticsearch,adrianbk/elasticsearch,lightslife/elasticsearch,wayeast/elasticsearch,vorce/es-metrics,strapdata/elassandra-test,szroland/elasticsearch,overcome/elasticsearch,trangvh/elasticsearch,kalburgimanjunath/elasticsearch,PhaedrusTheGreek/elasticsearch,opendatasoft/elasticsearch,fubuki/elasticsearch,HarishAtGitHub/elasticsearch,iamjakob/elasticsearch,sdauletau/elasticsearch,hanst/elasticsearch,hirdesh2008/elasticsearch,Brijeshrpatel9/elasticsearch,jw0201/elastic,alexbrasetvik/elasticsearch,markwalkom/elasticsearch,andrestc/elasticsearch,weipinghe/elasticsearch,truemped/elasticsearch,anti-social/elasticsearch,tahaemin/elasticsearch,markllama/elasticsearch,Flipkart/elasticsearch,yuy168/elasticsearch,njlawton/elasticsearch,loconsolutions/elasticsearch,jpountz/elasticsearch,pranavraman/elasticsearch,wayeast/elasticsearch,AshishThakur/elasticsearch,springning/elasticsearch,s1monw/elasticsearch,nrkkalyan/elasticsearch,mcku/elasticsearch,aglne/elasticsearch,polyfractal/elasticsearch,amit-shar/elasticsearch,abhijitiitr/es,jeteve/elasticsearch,C-Bish/elasticsearch,wittyameta/elasticsearch,fforbeck/elasticsearch,tahaemin/elasticsearch,MetSystem/elasticsearch,andrewvc/elasticsearch,nomoa/elasticsearch,apepper/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,easonC/elasticsearch,fubuki/elasticsearch,truemped/elasticsearch,markllama/elasticsearch,AleksKochev/elasticsearch,lmtwga/elasticsearch,btiernay/elasticsearch,abibell/elasticsearch,jango2015/elasticsearch,ulkas/elasticsearch,ouyangkongtong/elasticsearch,kcompher/elasticsearch,gfyoung/elasticsearch,abhijitiitr/es,ckclark/elasticsearch,infusionsoft/elasticsearch,iacdingping/elasticsearch,queirozfcom/elasticsearch,AleksKochev/elasticsearch,zhiqinghuang/elasticsearch,djschny/elasticsearch,robin13/elasticsearch,rajanm/elasticsearch,vvcephei/elasticsearch,Asimov4/elasticsearch,thecocce/elasticsearch,jchampion/elasticsearch,jpountz/elasticsearch,Liziyao/elasticsearch,fooljohnny/elasticsearch,janmejay/elasticsearch,abhijitiitr/es,Widen/elasticsearch,sreeramjayan/elasticsearch,trangvh/elasticsearch,cnfire/elasticsearch-1,onegambler/elasticsearch,sarwarbhuiyan/elasticsearch,qwerty4030/elasticsearch,kevinkluge/elasticsearch,TonyChai24/ESSource,jbertouch/elasticsearch,GlenRSmith/elasticsearch,mjason3/elasticsearch,elancom/elasticsearch,nilabhsagar/elasticsearch,wenpos/elasticsearch,lmenezes/elasticsearch,linglaiyao1314/elasticsearch,marcuswr/elasticsearch-dateline,jeteve/elasticsearch,Shepard1212/elasticsearch,kalburgimanjunath/elasticsearch,nknize/elasticsearch,phani546/elasticsearch,aglne/elasticsearch,Liziyao/elasticsearch,StefanGor/elasticsearch,JackyMai/elasticsearch,martinstuga/elasticsearch,sdauletau/elasticsearch,overcome/elasticsearch,StefanGor/elasticsearch,MjAbuz/elasticsearch,hirdesh2008/elasticsearch,cwurm/elasticsearch,milodky/elasticsearch,achow/elasticsearch,VukDukic/elasticsearch,fubuki/elasticsearch,alexshadow007/elasticsearch,wayeast/elasticsearch,awislowski/elasticsearch,mrorii/elasticsearch,markllama/elasticsearch,Shekharrajak/elasticsearch,overcome/elasticsearch,heng4fun/elasticsearch,slavau/elasticsearch,wimvds/elasticsearch,mkis-/elasticsearch,Asimov4/elasticsearch,linglaiyao1314/elasticsearch,mkis-/elasticsearch,aparo/elasticsearch,Asimov4/elasticsearch,Widen/elasticsearch,aglne/elasticsearch,Chhunlong/elasticsearch,amit-shar/elasticsearch,umeshdangat/elasticsearch,sdauletau/elasticsearch,HarishAtGitHub/elasticsearch,dpursehouse/elasticsearch,hafkensite/elasticsearch,ckclark/elasticsearch,heng4fun/elasticsearch,mjhennig/elasticsearch,jw0201/elastic,polyfractal/elasticsearch,schonfeld/elasticsearch,apepper/elasticsearch,strapdata/elassandra5-rc,YosuaMichael/elasticsearch,kubum/elasticsearch,LeoYao/elasticsearch,scottsom/elasticsearch,F0lha/elasticsearch,tcucchietti/elasticsearch,easonC/elasticsearch,mjason3/elasticsearch,aparo/elasticsearch,18098924759/elasticsearch,kevinkluge/elasticsearch,abibell/elasticsearch,likaiwalkman/elasticsearch,nrkkalyan/elasticsearch,beiske/elasticsearch,dpursehouse/elasticsearch,franklanganke/elasticsearch,MetSystem/elasticsearch,weipinghe/elasticsearch,alexksikes/elasticsearch,hafkensite/elasticsearch,amaliujia/elasticsearch,combinatorist/elasticsearch,Ansh90/elasticsearch,mkis-/elasticsearch,lmtwga/elasticsearch,sarwarbhuiyan/elasticsearch,kingaj/elasticsearch,cwurm/elasticsearch,kimchy/elasticsearch,umeshdangat/elasticsearch,wenpos/elasticsearch,javachengwc/elasticsearch,scottsom/elasticsearch,mgalushka/elasticsearch,18098924759/elasticsearch,hafkensite/elasticsearch,pablocastro/elasticsearch,kubum/elasticsearch,Shekharrajak/elasticsearch,luiseduardohdbackup/elasticsearch,wbowling/elasticsearch,liweinan0423/elasticsearch,slavau/elasticsearch,Ansh90/elasticsearch,18098924759/elasticsearch,pablocastro/elasticsearch,mmaracic/elasticsearch,jw0201/elastic,sreeramjayan/elasticsearch,sc0ttkclark/elasticsearch,JSCooke/elasticsearch,mm0/elasticsearch,MichaelLiZhou/elasticsearch,Flipkart/elasticsearch,mkis-/elasticsearch,lzo/elasticsearch-1,xingguang2013/elasticsearch,kunallimaye/elasticsearch,yuy168/elasticsearch,petabytedata/elasticsearch,lydonchandra/elasticsearch,andrejserafim/elasticsearch,alexbrasetvik/elasticsearch,nilabhsagar/elasticsearch,awislowski/elasticsearch,dongjoon-hyun/elasticsearch,lks21c/elasticsearch,luiseduardohdbackup/elasticsearch,zeroctu/elasticsearch,himanshuag/elasticsearch,kaneshin/elasticsearch,huanzhong/elasticsearch,truemped/elasticsearch,combinatorist/elasticsearch,codebunt/elasticsearch,cnfire/elasticsearch-1,springning/elasticsearch,petabytedata/elasticsearch,acchen97/elasticsearch,sreeramjayan/elasticsearch,elasticdog/elasticsearch,dataduke/elasticsearch,sscarduzio/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,dataduke/elasticsearch,Brijeshrpatel9/elasticsearch,slavau/elasticsearch,chirilo/elasticsearch,hydro2k/elasticsearch,F0lha/elasticsearch,zhiqinghuang/elasticsearch,TonyChai24/ESSource,hanst/elasticsearch,libosu/elasticsearch,gfyoung/elasticsearch,Chhunlong/elasticsearch,apepper/elasticsearch,lchennup/elasticsearch,strapdata/elassandra,ouyangkongtong/elasticsearch,avikurapati/elasticsearch,ydsakyclguozi/elasticsearch,kenshin233/elasticsearch,xingguang2013/elasticsearch,18098924759/elasticsearch,Ansh90/elasticsearch,hafkensite/elasticsearch,petabytedata/elasticsearch,dataduke/elasticsearch,szroland/elasticsearch,AndreKR/elasticsearch,drewr/elasticsearch,ulkas/elasticsearch,ydsakyclguozi/elasticsearch,smflorentino/elasticsearch,springning/elasticsearch,fubuki/elasticsearch,VukDukic/elasticsearch,polyfractal/elasticsearch,likaiwalkman/elasticsearch,wangtuo/elasticsearch,YosuaMichael/elasticsearch,yanjunh/elasticsearch,MichaelLiZhou/elasticsearch,nrkkalyan/elasticsearch,AshishThakur/elasticsearch,dylan8902/elasticsearch,xuzha/elasticsearch,mgalushka/elasticsearch,vorce/es-metrics,kunallimaye/elasticsearch,chrismwendt/elasticsearch,ZTE-PaaS/elasticsearch,jsgao0/elasticsearch,vietlq/elasticsearch,obourgain/elasticsearch,andrestc/elasticsearch,wbowling/elasticsearch,Siddartha07/elasticsearch,geidies/elasticsearch,wimvds/elasticsearch,JervyShi/elasticsearch,kkirsche/elasticsearch,mm0/elasticsearch,sposam/elasticsearch,Kakakakakku/elasticsearch,rhoml/elasticsearch,jw0201/elastic,Uiho/elasticsearch,truemped/elasticsearch,jbertouch/elasticsearch,coding0011/elasticsearch,hydro2k/elasticsearch,wenpos/elasticsearch,xpandan/elasticsearch,ydsakyclguozi/elasticsearch,wbowling/elasticsearch,Ansh90/elasticsearch,areek/elasticsearch,rento19962/elasticsearch,C-Bish/elasticsearch,wittyameta/elasticsearch,gingerwizard/elasticsearch,ajhalani/elasticsearch,fooljohnny/elasticsearch,acchen97/elasticsearch,salyh/elasticsearch,Fsero/elasticsearch,drewr/elasticsearch,kimimj/elasticsearch,StefanGor/elasticsearch,nrkkalyan/elasticsearch,sdauletau/elasticsearch,tsohil/elasticsearch,wangyuxue/elasticsearch,dantuffery/elasticsearch,linglaiyao1314/elasticsearch,sdauletau/elasticsearch,F0lha/elasticsearch,SergVro/elasticsearch,tkssharma/elasticsearch,MisterAndersen/elasticsearch,Fsero/elasticsearch,iamjakob/elasticsearch,dylan8902/elasticsearch,wittyameta/elasticsearch,shreejay/elasticsearch,tahaemin/elasticsearch,mohit/elasticsearch,linglaiyao1314/elasticsearch,iantruslove/elasticsearch,kunallimaye/elasticsearch,yuy168/elasticsearch,apepper/elasticsearch,codebunt/elasticsearch,petabytedata/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,xpandan/elasticsearch,TonyChai24/ESSource,vietlq/elasticsearch,karthikjaps/elasticsearch,ImpressTV/elasticsearch,Fsero/elasticsearch,lchennup/elasticsearch,umeshdangat/elasticsearch,wangtuo/elasticsearch,sscarduzio/elasticsearch,kkirsche/elasticsearch,mikemccand/elasticsearch,mcku/elasticsearch,ulkas/elasticsearch,libosu/elasticsearch,knight1128/elasticsearch,knight1128/elasticsearch,Collaborne/elasticsearch,zhiqinghuang/elasticsearch,Collaborne/elasticsearch,sdauletau/elasticsearch,NBSW/elasticsearch,thecocce/elasticsearch,golubev/elasticsearch,LewayneNaidoo/elasticsearch,robin13/elasticsearch,tahaemin/elasticsearch,mkis-/elasticsearch,masterweb121/elasticsearch,szroland/elasticsearch,Kakakakakku/elasticsearch,kalburgimanjunath/elasticsearch,xuzha/elasticsearch,coding0011/elasticsearch,tcucchietti/elasticsearch,elancom/elasticsearch,wimvds/elasticsearch,huanzhong/elasticsearch,slavau/elasticsearch,lmtwga/elasticsearch,mapr/elasticsearch,opendatasoft/elasticsearch,weipinghe/elasticsearch,huypx1292/elasticsearch,Chhunlong/elasticsearch,ricardocerq/elasticsearch,vrkansagara/elasticsearch,ThalaivaStars/OrgRepo1,myelin/elasticsearch,ZTE-PaaS/elasticsearch,wimvds/elasticsearch,masterweb121/elasticsearch,wimvds/elasticsearch,MichaelLiZhou/elasticsearch,petmit/elasticsearch,franklanganke/elasticsearch,HonzaKral/elasticsearch,vvcephei/elasticsearch,cnfire/elasticsearch-1,Fsero/elasticsearch,kkirsche/elasticsearch,hanst/elasticsearch,ThiagoGarciaAlves/elasticsearch,hechunwen/elasticsearch,javachengwc/elasticsearch,heng4fun/elasticsearch,petmit/elasticsearch,njlawton/elasticsearch,lmtwga/elasticsearch,hydro2k/elasticsearch,Shepard1212/elasticsearch,masaruh/elasticsearch,nellicus/elasticsearch,btiernay/elasticsearch,linglaiyao1314/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,mcku/elasticsearch,peschlowp/elasticsearch,milodky/elasticsearch,ulkas/elasticsearch,xingguang2013/elasticsearch,wangtuo/elasticsearch,Charlesdong/elasticsearch,yongminxia/elasticsearch,alexshadow007/elasticsearch,artnowo/elasticsearch,mgalushka/elasticsearch,cnfire/elasticsearch-1,xuzha/elasticsearch,Microsoft/elasticsearch,IanvsPoplicola/elasticsearch,mapr/elasticsearch,tebriel/elasticsearch,lmtwga/elasticsearch,brwe/elasticsearch,mute/elasticsearch,KimTaehee/elasticsearch,huypx1292/elasticsearch,vorce/es-metrics,ThalaivaStars/OrgRepo1,aglne/elasticsearch,GlenRSmith/elasticsearch,Rygbee/elasticsearch,petmit/elasticsearch,areek/elasticsearch,ouyangkongtong/elasticsearch,NBSW/elasticsearch,codebunt/elasticsearch,loconsolutions/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,AshishThakur/elasticsearch,iamjakob/elasticsearch,tsohil/elasticsearch,ouyangkongtong/elasticsearch,kenshin233/elasticsearch,MaineC/elasticsearch,Collaborne/elasticsearch,mgalushka/elasticsearch,maddin2016/elasticsearch,iacdingping/elasticsearch,anti-social/elasticsearch,vingupta3/elasticsearch,phani546/elasticsearch,xingguang2013/elasticsearch,a2lin/elasticsearch,Uiho/elasticsearch,skearns64/elasticsearch,jeteve/elasticsearch,caengcjd/elasticsearch,dongjoon-hyun/elasticsearch,xpandan/elasticsearch,jimczi/elasticsearch,scottsom/elasticsearch,Uiho/elasticsearch,ESamir/elasticsearch,dylan8902/elasticsearch,brandonkearby/elasticsearch,episerver/elasticsearch,jsgao0/elasticsearch,mbrukman/elasticsearch,karthikjaps/elasticsearch,kubum/elasticsearch,wuranbo/elasticsearch,djschny/elasticsearch,nellicus/elasticsearch,camilojd/elasticsearch,wangtuo/elasticsearch,huypx1292/elasticsearch,JervyShi/elasticsearch,springning/elasticsearch,gingerwizard/elasticsearch,nknize/elasticsearch,luiseduardohdbackup/elasticsearch,pranavraman/elasticsearch,davidvgalbraith/elasticsearch,salyh/elasticsearch,acchen97/elasticsearch,camilojd/elasticsearch,jaynblue/elasticsearch,milodky/elasticsearch,clintongormley/elasticsearch,andrestc/elasticsearch,acchen97/elasticsearch,andrestc/elasticsearch,girirajsharma/elasticsearch,aparo/elasticsearch,markharwood/elasticsearch,umeshdangat/elasticsearch,palecur/elasticsearch,sreeramjayan/elasticsearch,mgalushka/elasticsearch,scorpionvicky/elasticsearch,tcucchietti/elasticsearch,diendt/elasticsearch,heng4fun/elasticsearch,TonyChai24/ESSource,loconsolutions/elasticsearch,i-am-Nathan/elasticsearch,fforbeck/elasticsearch,easonC/elasticsearch,maddin2016/elasticsearch,kubum/elasticsearch,pozhidaevak/elasticsearch,wbowling/elasticsearch,knight1128/elasticsearch,girirajsharma/elasticsearch,zkidkid/elasticsearch,peschlowp/elasticsearch,fernandozhu/elasticsearch,btiernay/elasticsearch,jimczi/elasticsearch,marcuswr/elasticsearch-dateline,LewayneNaidoo/elasticsearch,strapdata/elassandra-test,zkidkid/elasticsearch,artnowo/elasticsearch,lchennup/elasticsearch,kubum/elasticsearch,a2lin/elasticsearch,yongminxia/elasticsearch,socialrank/elasticsearch,iantruslove/elasticsearch,clintongormley/elasticsearch,Asimov4/elasticsearch,sarwarbhuiyan/elasticsearch,nrkkalyan/elasticsearch,zeroctu/elasticsearch,mortonsykes/elasticsearch,mmaracic/elasticsearch,yongminxia/elasticsearch,Stacey-Gammon/elasticsearch,wenpos/elasticsearch,Siddartha07/elasticsearch,rlugojr/elasticsearch,vietlq/elasticsearch,beiske/elasticsearch,hanswang/elasticsearch,kcompher/elasticsearch,khiraiwa/elasticsearch,dylan8902/elasticsearch,myelin/elasticsearch,salyh/elasticsearch,obourgain/elasticsearch,tsohil/elasticsearch,dylan8902/elasticsearch,SergVro/elasticsearch,mortonsykes/elasticsearch,pritishppai/elasticsearch,mbrukman/elasticsearch,pritishppai/elasticsearch,franklanganke/elasticsearch,kevinkluge/elasticsearch,sc0ttkclark/elasticsearch,kenshin233/elasticsearch,aparo/elasticsearch,markllama/elasticsearch,apepper/elasticsearch,opendatasoft/elasticsearch,MichaelLiZhou/elasticsearch,jimczi/elasticsearch,jango2015/elasticsearch,hafkensite/elasticsearch,hechunwen/elasticsearch,elancom/elasticsearch,beiske/elasticsearch,avikurapati/elasticsearch,slavau/elasticsearch,MetSystem/elasticsearch,scottsom/elasticsearch,weipinghe/elasticsearch,kingaj/elasticsearch,phani546/elasticsearch,Clairebi/ElasticsearchClone,pranavraman/elasticsearch,Microsoft/elasticsearch,nknize/elasticsearch,hechunwen/elasticsearch,jprante/elasticsearch,alexksikes/elasticsearch,Collaborne/elasticsearch,jchampion/elasticsearch,rhoml/elasticsearch,huanzhong/elasticsearch,kingaj/elasticsearch,rmuir/elasticsearch,aglne/elasticsearch,golubev/elasticsearch,fforbeck/elasticsearch,MaineC/elasticsearch,andrejserafim/elasticsearch,mcku/elasticsearch,kimchy/elasticsearch,Shekharrajak/elasticsearch,kimimj/elasticsearch,strapdata/elassandra-test,Microsoft/elasticsearch,mnylen/elasticsearch,yuy168/elasticsearch,liweinan0423/elasticsearch,vvcephei/elasticsearch,rajanm/elasticsearch,mkis-/elasticsearch,jeteve/elasticsearch,jsgao0/elasticsearch,C-Bish/elasticsearch,masaruh/elasticsearch,rmuir/elasticsearch,elancom/elasticsearch,zhiqinghuang/elasticsearch,sjohnr/elasticsearch,nomoa/elasticsearch,lzo/elasticsearch-1,franklanganke/elasticsearch,Widen/elasticsearch,vietlq/elasticsearch,mjason3/elasticsearch,YosuaMichael/elasticsearch,caengcjd/elasticsearch,zeroctu/elasticsearch,nezirus/elasticsearch,kingaj/elasticsearch,pozhidaevak/elasticsearch,Microsoft/elasticsearch,spiegela/elasticsearch,andrestc/elasticsearch,vrkansagara/elasticsearch,brandonkearby/elasticsearch,mjhennig/elasticsearch,lightslife/elasticsearch,vrkansagara/elasticsearch,jimhooker2002/elasticsearch,easonC/elasticsearch,ouyangkongtong/elasticsearch,phani546/elasticsearch,jprante/elasticsearch,fernandozhu/elasticsearch,baishuo/elasticsearch_v2.1.0-baishuo,markllama/elasticsearch,kubum/elasticsearch,mmaracic/elasticsearch,yuy168/elasticsearch,NBSW/elasticsearch,iacdingping/elasticsearch,slavau/elasticsearch,diendt/elasticsearch,njlawton/elasticsearch,fred84/elasticsearch,markwalkom/elasticsearch,feiqitian/elasticsearch,hanst/elasticsearch,Microsoft/elasticsearch,camilojd/elasticsearch,Flipkart/elasticsearch,ydsakyclguozi/elasticsearch,Asimov4/elasticsearch,robin13/elasticsearch,amit-shar/elasticsearch,brwe/elasticsearch,naveenhooda2000/elasticsearch,kcompher/elasticsearch,vingupta3/elasticsearch,raishiv/elasticsearch,ckclark/elasticsearch,tebriel/elasticsearch,i-am-Nathan/elasticsearch,mbrukman/elasticsearch,jbertouch/elasticsearch,sarwarbhuiyan/elasticsearch,nknize/elasticsearch,geidies/elasticsearch,ulkas/elasticsearch,cnfire/elasticsearch-1,snikch/elasticsearch,njlawton/elasticsearch,KimTaehee/elasticsearch,HarishAtGitHub/elasticsearch,Rygbee/elasticsearch,weipinghe/elasticsearch,abibell/elasticsearch,bestwpw/elasticsearch,tahaemin/elasticsearch,i-am-Nathan/elasticsearch,EasonYi/elasticsearch,ESamir/elasticsearch,acchen97/elasticsearch,nazarewk/elasticsearch,kenshin233/elasticsearch,jbertouch/elasticsearch,yanjunh/elasticsearch,dylan8902/elasticsearch,khiraiwa/elasticsearch,fernandozhu/elasticsearch,achow/elasticsearch,beiske/elasticsearch,MaineC/elasticsearch,socialrank/elasticsearch,khiraiwa/elasticsearch,micpalmia/elasticsearch,tcucchietti/elasticsearch,anti-social/elasticsearch,marcuswr/elasticsearch-dateline,HarishAtGitHub/elasticsearch,rento19962/elasticsearch,sc0ttkclark/elasticsearch,mute/elasticsearch,sjohnr/elasticsearch,pablocastro/elasticsearch,jango2015/elasticsearch,nrkkalyan/elasticsearch,areek/elasticsearch,szroland/elasticsearch,fekaputra/elasticsearch,Kakakakakku/elasticsearch,lydonchandra/elasticsearch,hanswang/elasticsearch,smflorentino/elasticsearch,mbrukman/elasticsearch,zhaocloud/elasticsearch,nazarewk/elasticsearch,beiske/elasticsearch,wbowling/elasticsearch,YosuaMichael/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,ThalaivaStars/OrgRepo1,snikch/elasticsearch,diendt/elasticsearch,rajanm/elasticsearch,kalimatas/elasticsearch,NBSW/elasticsearch,springning/elasticsearch,iantruslove/elasticsearch,tsohil/elasticsearch,kkirsche/elasticsearch,hydro2k/elasticsearch,hanswang/elasticsearch,zeroctu/elasticsearch,jchampion/elasticsearch,feiqitian/elasticsearch,petabytedata/elasticsearch,rhoml/elasticsearch,fooljohnny/elasticsearch,karthikjaps/elasticsearch,drewr/elasticsearch,strapdata/elassandra5-rc,boliza/elasticsearch,palecur/elasticsearch,YosuaMichael/elasticsearch,ThiagoGarciaAlves/elasticsearch,GlenRSmith/elasticsearch,camilojd/elasticsearch,zhiqinghuang/elasticsearch,bestwpw/elasticsearch,hanswang/elasticsearch,Charlesdong/elasticsearch,kalimatas/elasticsearch,yanjunh/elasticsearch,coding0011/elasticsearch,Uiho/elasticsearch,mcku/elasticsearch,njlawton/elasticsearch,rhoml/elasticsearch,kingaj/elasticsearch,kenshin233/elasticsearch,hanst/elasticsearch,karthikjaps/elasticsearch,EasonYi/elasticsearch,golubev/elasticsearch,heng4fun/elasticsearch,strapdata/elassandra-test,HonzaKral/elasticsearch,kaneshin/elasticsearch,anti-social/elasticsearch,sreeramjayan/elasticsearch,kenshin233/elasticsearch,s1monw/elasticsearch,feiqitian/elasticsearch,EasonYi/elasticsearch,iantruslove/elasticsearch,VukDukic/elasticsearch,lydonchandra/elasticsearch,avikurapati/elasticsearch,iamjakob/elasticsearch,loconsolutions/elasticsearch,hirdesh2008/elasticsearch,trangvh/elasticsearch,artnowo/elasticsearch,alexkuk/elasticsearch,dpursehouse/elasticsearch,tsohil/elasticsearch,girirajsharma/elasticsearch,mapr/elasticsearch,tahaemin/elasticsearch,Liziyao/elasticsearch,kingaj/elasticsearch,sposam/elasticsearch,henakamaMSFT/elasticsearch,wenpos/elasticsearch,masterweb121/elasticsearch,jaynblue/elasticsearch,mortonsykes/elasticsearch,drewr/elasticsearch,alexksikes/elasticsearch,xpandan/elasticsearch,pablocastro/elasticsearch,ThiagoGarciaAlves/elasticsearch,AndreKR/elasticsearch,queirozfcom/elasticsearch,amit-shar/elasticsearch,Helen-Zhao/elasticsearch,xingguang2013/elasticsearch,MetSystem/elasticsearch,dpursehouse/elasticsearch,markharwood/elasticsearch,HarishAtGitHub/elasticsearch,iacdingping/elasticsearch,hydro2k/elasticsearch,golubev/elasticsearch,feiqitian/elasticsearch,rmuir/elasticsearch,kubum/elasticsearch,ckclark/elasticsearch,vorce/es-metrics,girirajsharma/elasticsearch,ThiagoGarciaAlves/elasticsearch,gingerwizard/elasticsearch,libosu/elasticsearch,ZTE-PaaS/elasticsearch,kingaj/elasticsearch,koxa29/elasticsearch,polyfractal/elasticsearch,Widen/elasticsearch,huypx1292/elasticsearch,schonfeld/elasticsearch,achow/elasticsearch,lightslife/elasticsearch,vorce/es-metrics,clintongormley/elasticsearch,geidies/elasticsearch,jsgao0/elasticsearch,chirilo/elasticsearch,Liziyao/elasticsearch,mnylen/elasticsearch,masterweb121/elasticsearch,hirdesh2008/elasticsearch,glefloch/elasticsearch,ydsakyclguozi/elasticsearch,geidies/elasticsearch,episerver/elasticsearch,jeteve/elasticsearch,likaiwalkman/elasticsearch,lydonchandra/elasticsearch,LewayneNaidoo/elasticsearch,dantuffery/elasticsearch,uschindler/elasticsearch,chirilo/elasticsearch,girirajsharma/elasticsearch,shreejay/elasticsearch,areek/elasticsearch,spiegela/elasticsearch,kalimatas/elasticsearch,shreejay/elasticsearch,tsohil/elasticsearch,fred84/elasticsearch,nomoa/elasticsearch,davidvgalbraith/elasticsearch,cwurm/elasticsearch,kimimj/elasticsearch,lks21c/elasticsearch,mapr/elasticsearch,huanzhong/elasticsearch,bawse/elasticsearch,marcuswr/elasticsearch-dateline,nezirus/elasticsearch,mohit/elasticsearch,himanshuag/elasticsearch,coding0011/elasticsearch,chirilo/elasticsearch,andrejserafim/elasticsearch,Liziyao/elasticsearch,awislowski/elasticsearch,sauravmondallive/elasticsearch,sarwarbhuiyan/elasticsearch,18098924759/elasticsearch,Charlesdong/elasticsearch,luiseduardohdbackup/elasticsearch,infusionsoft/elasticsearch,bestwpw/elasticsearch,iamjakob/elasticsearch,fforbeck/elasticsearch,qwerty4030/elasticsearch,sc0ttkclark/elasticsearch,jchampion/elasticsearch,vingupta3/elasticsearch,sneivandt/elasticsearch,beiske/elasticsearch,markllama/elasticsearch,glefloch/elasticsearch,F0lha/elasticsearch,Clairebi/ElasticsearchClone,kimimj/elasticsearch,mnylen/elasticsearch,IanvsPoplicola/elasticsearch,Uiho/elasticsearch,rhoml/elasticsearch,infusionsoft/elasticsearch,18098924759/elasticsearch,camilojd/elasticsearch,himanshuag/elasticsearch,alexshadow007/elasticsearch,jimhooker2002/elasticsearch,mortonsykes/elasticsearch,qwerty4030/elasticsearch,springning/elasticsearch,elasticdog/elasticsearch,Charlesdong/elasticsearch,karthikjaps/elasticsearch,mohsinh/elasticsearch,zkidkid/elasticsearch,amaliujia/elasticsearch,diendt/elasticsearch,overcome/elasticsearch,fooljohnny/elasticsearch,mjason3/elasticsearch,iamjakob/elasticsearch,mgalushka/elasticsearch,18098924759/elasticsearch,sscarduzio/elasticsearch,koxa29/elasticsearch,ckclark/elasticsearch,ivansun1010/elasticsearch,onegambler/elasticsearch,tkssharma/elasticsearch,abibell/elasticsearch,strapdata/elassandra-test,lightslife/elasticsearch,kunallimaye/elasticsearch,HarishAtGitHub/elasticsearch,queirozfcom/elasticsearch,kimimj/elasticsearch,a2lin/elasticsearch,AshishThakur/elasticsearch,markwalkom/elasticsearch,drewr/elasticsearch,caengcjd/elasticsearch,markharwood/elasticsearch,cwurm/elasticsearch,knight1128/elasticsearch,pablocastro/elasticsearch,mohit/elasticsearch,kaneshin/elasticsearch,raishiv/elasticsearch,jbertouch/elasticsearch,rento19962/elasticsearch,rento19962/elasticsearch,mm0/elasticsearch,mjhennig/elasticsearch,uboness/elasticsearch,ESamir/elasticsearch,humandb/elasticsearch,mrorii/elasticsearch,JervyShi/elasticsearch,strapdata/elassandra,alexksikes/elasticsearch,ZTE-PaaS/elasticsearch,springning/elasticsearch,alexbrasetvik/elasticsearch,rajanm/elasticsearch,alexbrasetvik/elasticsearch,jimhooker2002/elasticsearch,vingupta3/elasticsearch,wimvds/elasticsearch,mgalushka/elasticsearch,liweinan0423/elasticsearch,Shekharrajak/elasticsearch,GlenRSmith/elasticsearch,loconsolutions/elasticsearch,Flipkart/elasticsearch,gfyoung/elasticsearch,lightslife/elasticsearch,Chhunlong/elasticsearch,sauravmondallive/elasticsearch,Rygbee/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,mrorii/elasticsearch,scorpionvicky/elasticsearch,sposam/elasticsearch,sscarduzio/elasticsearch,vvcephei/elasticsearch,pritishppai/elasticsearch,C-Bish/elasticsearch,Shekharrajak/elasticsearch,achow/elasticsearch,infusionsoft/elasticsearch,skearns64/elasticsearch,aparo/elasticsearch,glefloch/elasticsearch,pozhidaevak/elasticsearch,sscarduzio/elasticsearch,szroland/elasticsearch,diendt/elasticsearch,mrorii/elasticsearch,ThalaivaStars/OrgRepo1,ImpressTV/elasticsearch,huypx1292/elasticsearch,Fsero/elasticsearch,strapdata/elassandra5-rc,lchennup/elasticsearch,JackyMai/elasticsearch,lks21c/elasticsearch,tebriel/elasticsearch,mmaracic/elasticsearch,xpandan/elasticsearch,schonfeld/elasticsearch,Siddartha07/elasticsearch,Shekharrajak/elasticsearch,dantuffery/elasticsearch,HonzaKral/elasticsearch,Shepard1212/elasticsearch,tkssharma/elasticsearch,sneivandt/elasticsearch,ImpressTV/elasticsearch,Brijeshrpatel9/elasticsearch,lydonchandra/elasticsearch,mapr/elasticsearch,YosuaMichael/elasticsearch,ouyangkongtong/elasticsearch,mmaracic/elasticsearch,jprante/elasticsearch,amit-shar/elasticsearch,jaynblue/elasticsearch,kunallimaye/elasticsearch,socialrank/elasticsearch,zeroctu/elasticsearch,ThiagoGarciaAlves/elasticsearch,jpountz/elasticsearch,ckclark/elasticsearch,palecur/elasticsearch,lydonchandra/elasticsearch,brandonkearby/elasticsearch,likaiwalkman/elasticsearch,adrianbk/elasticsearch,brwe/elasticsearch,episerver/elasticsearch,knight1128/elasticsearch,myelin/elasticsearch,lks21c/elasticsearch,wittyameta/elasticsearch,queirozfcom/elasticsearch,vroyer/elasticassandra,micpalmia/elasticsearch,wayeast/elasticsearch,wuranbo/elasticsearch,iantruslove/elasticsearch,SaiprasadKrishnamurthy/elasticsearch,chirilo/elasticsearch,yuy168/elasticsearch,tebriel/elasticsearch,EasonYi/elasticsearch,abhijitiitr/es,djschny/elasticsearch,IanvsPoplicola/elasticsearch,alexbrasetvik/elasticsearch,TonyChai24/ESSource,zkidkid/elasticsearch,i-am-Nathan/elasticsearch,schonfeld/elasticsearch,adrianbk/elasticsearch,yongminxia/elasticsearch,fred84/elasticsearch,naveenhooda2000/elasticsearch,Shepard1212/elasticsearch,andrejserafim/elasticsearch,EasonYi/elasticsearch,vingupta3/elasticsearch,trangvh/elasticsearch,humandb/elasticsearch,rento19962/elasticsearch,uboness/elasticsearch,bawse/elasticsearch,mute/elasticsearch,sarwarbhuiyan/elasticsearch,awislowski/elasticsearch,slavau/elasticsearch,sc0ttkclark/elasticsearch,andrewvc/elasticsearch,nellicus/elasticsearch,Collaborne/elasticsearch,JackyMai/elasticsearch,MaineC/elasticsearch,girirajsharma/elasticsearch,GlenRSmith/elasticsearch,fekaputra/elasticsearch,ricardocerq/elasticsearch,jprante/elasticsearch,JervyShi/elasticsearch,chrismwendt/elasticsearch,ulkas/elasticsearch,strapdata/elassandra5-rc,Clairebi/ElasticsearchClone,humandb/elasticsearch,onegambler/elasticsearch,mjason3/elasticsearch,JSCooke/elasticsearch,yynil/elasticsearch,feiqitian/elasticsearch,kaneshin/elasticsearch,KimTaehee/elasticsearch,zhaocloud/elasticsearch,lightslife/elasticsearch,AndreKR/elasticsearch,koxa29/elasticsearch,khiraiwa/elasticsearch,lchennup/elasticsearch,xingguang2013/elasticsearch,adrianbk/elasticsearch,Helen-Zhao/elasticsearch,MjAbuz/elasticsearch
/* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch licenses this * file to you 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, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.elasticsearch.test.integration.indices.store; import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse; import org.elasticsearch.client.Client; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.env.NodeEnvironment; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.node.internal.InternalNode; import org.elasticsearch.test.integration.AbstractNodesTests; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import java.io.File; import static org.elasticsearch.client.Requests.clusterHealthRequest; import static org.elasticsearch.client.Requests.createIndexRequest; import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; /** * */ public class IndicesStoreTests extends AbstractNodesTests { protected Client client1; @BeforeClass public void startNodes() { // The default (none) gateway cleans the shards on closing putDefaultSettings(settingsBuilder().put("gateway.type", "local")); startNode("server1"); startNode("server2"); client1 = getClient1(); } @AfterClass public void closeNodes() { client1.close(); closeAllNodes(); } protected Client getClient1() { return client("server1"); } @Test public void shardsCleanup() throws Exception { try { client1.admin().indices().prepareDelete("test").execute().actionGet(); } catch (Exception ex) { // Ignore } logger.info("--> creating index [test] with one shard and on replica"); client1.admin().indices().create(createIndexRequest("test") .setSettings(settingsBuilder().put("index.numberOfReplicas", 1).put("index.numberOfShards", 1))).actionGet(); logger.info("--> running cluster_health"); ClusterHealthResponse clusterHealth = client1.admin().cluster().health(clusterHealthRequest().setWaitForGreenStatus()).actionGet(); assertThat(clusterHealth.isTimedOut(), equalTo(false)); logger.info("--> done cluster_health, status " + clusterHealth.getStatus()); logger.info("--> making sure that shard and it's replica are allocated on server1 and server2"); assertThat(shardDirectory("server1", "test", 0).exists(), equalTo(true)); assertThat(shardDirectory("server2", "test", 0).exists(), equalTo(true)); logger.info("--> starting node server3"); startNode("server3"); logger.info("--> making sure that shard is not allocated on server3"); assertThat(waitForShardDeletion(TimeValue.timeValueSeconds(1), "server3", "test", 0), equalTo(false)); File server2Shard = shardDirectory("server2", "test", 0); logger.info("--> stopping node server2"); closeNode("server2"); assertThat(server2Shard.exists(), equalTo(true)); logger.info("--> running cluster_health"); clusterHealth = client1.admin().cluster().health(clusterHealthRequest().setWaitForGreenStatus().setWaitForNodes("2")).actionGet(); assertThat(clusterHealth.isTimedOut(), equalTo(false)); logger.info("--> done cluster_health, status " + clusterHealth.getStatus()); logger.info("--> making sure that shard and it's replica exist on server1, server2 and server3"); assertThat(shardDirectory("server1", "test", 0).exists(), equalTo(true)); assertThat(server2Shard.exists(), equalTo(true)); assertThat(shardDirectory("server3", "test", 0).exists(), equalTo(true)); logger.info("--> starting node server2"); startNode("server2"); logger.info("--> running cluster_health"); clusterHealth = client("server2").admin().cluster().health(clusterHealthRequest().setWaitForGreenStatus()).actionGet(); assertThat(clusterHealth.isTimedOut(), equalTo(false)); logger.info("--> done cluster_health, status " + clusterHealth.getStatus()); logger.info("--> making sure that shard and it's replica are allocated on server1 and server3 but not on server2"); assertThat(shardDirectory("server1", "test", 0).exists(), equalTo(true)); assertThat(shardDirectory("server3", "test", 0).exists(), equalTo(true)); assertThat(waitForShardDeletion(TimeValue.timeValueSeconds(1), "server2", "test", 0), equalTo(false)); } private File shardDirectory(String server, String index, int shard) { InternalNode node = ((InternalNode) node(server)); NodeEnvironment env = node.injector().getInstance(NodeEnvironment.class); return env.shardLocations(new ShardId(index, shard))[0]; } private boolean waitForShardDeletion(TimeValue timeout, String server, String index, int shard) throws InterruptedException { long start = System.currentTimeMillis(); boolean shardExists; do { shardExists = shardDirectory(server, index, shard).exists(); } while (shardExists && (System.currentTimeMillis() - start) < timeout.millis()); return shardExists; } }
src/test/java/org/elasticsearch/test/integration/indices/store/IndicesStoreTests.java
/* * Licensed to ElasticSearch and Shay Banon under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. ElasticSearch licenses this * file to you 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, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.elasticsearch.test.integration.indices.store; import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse; import org.elasticsearch.client.Client; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.env.NodeEnvironment; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.node.internal.InternalNode; import org.elasticsearch.test.integration.AbstractNodesTests; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; import java.io.File; import static org.elasticsearch.client.Requests.clusterHealthRequest; import static org.elasticsearch.client.Requests.createIndexRequest; import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; /** * */ public class IndicesStoreTests extends AbstractNodesTests { protected Client client1; @BeforeClass public void startNodes() { // The default (none) gateway cleans the shards on closing putDefaultSettings(settingsBuilder().put("gateway.type", "local")); startNode("server1"); startNode("server2"); client1 = getClient1(); } @AfterClass public void closeNodes() { client1.close(); closeAllNodes(); } protected Client getClient1() { return client("server1"); } @Test public void shardsCleanup() throws Exception { try { client1.admin().indices().prepareDelete("test").execute().actionGet(); } catch (Exception ex) { // Ignore } logger.info("--> creating index [test] with one shard and on replica"); client1.admin().indices().create(createIndexRequest("test") .setSettings(settingsBuilder().put("index.numberOfReplicas", 1).put("index.numberOfShards", 1))).actionGet(); logger.info("--> running cluster_health"); ClusterHealthResponse clusterHealth = client1.admin().cluster().health(clusterHealthRequest().setWaitForGreenStatus()).actionGet(); logger.info("--> done cluster_health, status " + clusterHealth.getStatus()); logger.info("--> making sure that shard and it's replica are allocated on server1 and server2"); assertThat(shardDirectory("server1", "test", 0).exists(), equalTo(true)); assertThat(shardDirectory("server2", "test", 0).exists(), equalTo(true)); logger.info("--> starting node server3"); startNode("server3"); logger.info("--> making sure that shard is not allocated on server3"); assertThat(waitForShardDeletion(TimeValue.timeValueSeconds(1), "server3", "test", 0), equalTo(false)); File server2Shard = shardDirectory("server2", "test", 0); logger.info("--> stopping node server2"); closeNode("server2"); assertThat(server2Shard.exists(), equalTo(true)); logger.info("--> running cluster_health"); clusterHealth = client1.admin().cluster().health(clusterHealthRequest().setWaitForGreenStatus().setWaitForNodes("2")).actionGet(); logger.info("--> done cluster_health, status " + clusterHealth.getStatus()); logger.info("--> making sure that shard and it's replica exist on server1, server2 and server3"); assertThat(shardDirectory("server1", "test", 0).exists(), equalTo(true)); assertThat(server2Shard.exists(), equalTo(true)); assertThat(shardDirectory("server3", "test", 0).exists(), equalTo(true)); logger.info("--> starting node server2"); startNode("server2"); logger.info("--> running cluster_health"); clusterHealth = client("server2").admin().cluster().health(clusterHealthRequest().setWaitForGreenStatus()).actionGet(); logger.info("--> done cluster_health, status " + clusterHealth.getStatus()); logger.info("--> making sure that shard and it's replica are allocated on server1 and server3 but not on server2"); assertThat(shardDirectory("server1", "test", 0).exists(), equalTo(true)); assertThat(shardDirectory("server3", "test", 0).exists(), equalTo(true)); assertThat(waitForShardDeletion(TimeValue.timeValueSeconds(1), "server2", "test", 0), equalTo(false)); } private File shardDirectory(String server, String index, int shard) { InternalNode node = ((InternalNode) node(server)); NodeEnvironment env = node.injector().getInstance(NodeEnvironment.class); return env.shardLocations(new ShardId(index, shard))[0]; } private boolean waitForShardDeletion(TimeValue timeout, String server, String index, int shard) throws InterruptedException { long start = System.currentTimeMillis(); boolean shardExists; do { shardExists = shardDirectory(server, index, shard).exists(); } while (shardExists && (System.currentTimeMillis() - start) < timeout.millis()); return shardExists; } }
Add check for health timeout to shardCleanup test
src/test/java/org/elasticsearch/test/integration/indices/store/IndicesStoreTests.java
Add check for health timeout to shardCleanup test
Java
apache-2.0
f757db63d5c601cc8fc8ae05400ee2a1783324cd
0
ThiagoGarciaAlves/intellij-community,FHannes/intellij-community,hurricup/intellij-community,da1z/intellij-community,ibinti/intellij-community,fitermay/intellij-community,ThiagoGarciaAlves/intellij-community,mglukhikh/intellij-community,xfournet/intellij-community,fitermay/intellij-community,signed/intellij-community,signed/intellij-community,idea4bsd/idea4bsd,fitermay/intellij-community,signed/intellij-community,FHannes/intellij-community,salguarnieri/intellij-community,vvv1559/intellij-community,allotria/intellij-community,lucafavatella/intellij-community,retomerz/intellij-community,youdonghai/intellij-community,asedunov/intellij-community,salguarnieri/intellij-community,youdonghai/intellij-community,hurricup/intellij-community,xfournet/intellij-community,FHannes/intellij-community,signed/intellij-community,asedunov/intellij-community,ThiagoGarciaAlves/intellij-community,hurricup/intellij-community,signed/intellij-community,xfournet/intellij-community,signed/intellij-community,hurricup/intellij-community,lucafavatella/intellij-community,FHannes/intellij-community,fitermay/intellij-community,salguarnieri/intellij-community,xfournet/intellij-community,lucafavatella/intellij-community,apixandru/intellij-community,apixandru/intellij-community,youdonghai/intellij-community,semonte/intellij-community,signed/intellij-community,xfournet/intellij-community,semonte/intellij-community,signed/intellij-community,fitermay/intellij-community,fitermay/intellij-community,hurricup/intellij-community,ibinti/intellij-community,asedunov/intellij-community,youdonghai/intellij-community,fitermay/intellij-community,ThiagoGarciaAlves/intellij-community,semonte/intellij-community,ibinti/intellij-community,vvv1559/intellij-community,vvv1559/intellij-community,idea4bsd/idea4bsd,da1z/intellij-community,hurricup/intellij-community,retomerz/intellij-community,mglukhikh/intellij-community,retomerz/intellij-community,vvv1559/intellij-community,retomerz/intellij-community,apixandru/intellij-community,asedunov/intellij-community,semonte/intellij-community,hurricup/intellij-community,da1z/intellij-community,allotria/intellij-community,semonte/intellij-community,salguarnieri/intellij-community,allotria/intellij-community,ThiagoGarciaAlves/intellij-community,apixandru/intellij-community,fitermay/intellij-community,allotria/intellij-community,hurricup/intellij-community,ibinti/intellij-community,suncycheng/intellij-community,FHannes/intellij-community,suncycheng/intellij-community,michaelgallacher/intellij-community,fitermay/intellij-community,vvv1559/intellij-community,semonte/intellij-community,vvv1559/intellij-community,da1z/intellij-community,idea4bsd/idea4bsd,xfournet/intellij-community,idea4bsd/idea4bsd,apixandru/intellij-community,idea4bsd/idea4bsd,salguarnieri/intellij-community,mglukhikh/intellij-community,michaelgallacher/intellij-community,lucafavatella/intellij-community,lucafavatella/intellij-community,da1z/intellij-community,salguarnieri/intellij-community,ibinti/intellij-community,vvv1559/intellij-community,salguarnieri/intellij-community,allotria/intellij-community,suncycheng/intellij-community,ThiagoGarciaAlves/intellij-community,ThiagoGarciaAlves/intellij-community,lucafavatella/intellij-community,youdonghai/intellij-community,michaelgallacher/intellij-community,suncycheng/intellij-community,retomerz/intellij-community,idea4bsd/idea4bsd,ibinti/intellij-community,mglukhikh/intellij-community,signed/intellij-community,ibinti/intellij-community,apixandru/intellij-community,michaelgallacher/intellij-community,apixandru/intellij-community,mglukhikh/intellij-community,allotria/intellij-community,asedunov/intellij-community,ThiagoGarciaAlves/intellij-community,da1z/intellij-community,da1z/intellij-community,ThiagoGarciaAlves/intellij-community,FHannes/intellij-community,retomerz/intellij-community,idea4bsd/idea4bsd,youdonghai/intellij-community,youdonghai/intellij-community,lucafavatella/intellij-community,da1z/intellij-community,michaelgallacher/intellij-community,suncycheng/intellij-community,FHannes/intellij-community,signed/intellij-community,allotria/intellij-community,mglukhikh/intellij-community,xfournet/intellij-community,michaelgallacher/intellij-community,signed/intellij-community,youdonghai/intellij-community,asedunov/intellij-community,idea4bsd/idea4bsd,mglukhikh/intellij-community,youdonghai/intellij-community,retomerz/intellij-community,da1z/intellij-community,apixandru/intellij-community,da1z/intellij-community,retomerz/intellij-community,idea4bsd/idea4bsd,da1z/intellij-community,asedunov/intellij-community,michaelgallacher/intellij-community,apixandru/intellij-community,asedunov/intellij-community,semonte/intellij-community,allotria/intellij-community,hurricup/intellij-community,semonte/intellij-community,retomerz/intellij-community,allotria/intellij-community,allotria/intellij-community,mglukhikh/intellij-community,retomerz/intellij-community,asedunov/intellij-community,lucafavatella/intellij-community,mglukhikh/intellij-community,ibinti/intellij-community,lucafavatella/intellij-community,semonte/intellij-community,michaelgallacher/intellij-community,suncycheng/intellij-community,vvv1559/intellij-community,youdonghai/intellij-community,semonte/intellij-community,youdonghai/intellij-community,suncycheng/intellij-community,FHannes/intellij-community,xfournet/intellij-community,asedunov/intellij-community,ThiagoGarciaAlves/intellij-community,semonte/intellij-community,apixandru/intellij-community,apixandru/intellij-community,FHannes/intellij-community,allotria/intellij-community,FHannes/intellij-community,FHannes/intellij-community,semonte/intellij-community,vvv1559/intellij-community,da1z/intellij-community,FHannes/intellij-community,ThiagoGarciaAlves/intellij-community,suncycheng/intellij-community,idea4bsd/idea4bsd,idea4bsd/idea4bsd,lucafavatella/intellij-community,ibinti/intellij-community,idea4bsd/idea4bsd,ibinti/intellij-community,xfournet/intellij-community,lucafavatella/intellij-community,suncycheng/intellij-community,suncycheng/intellij-community,fitermay/intellij-community,allotria/intellij-community,hurricup/intellij-community,salguarnieri/intellij-community,allotria/intellij-community,michaelgallacher/intellij-community,michaelgallacher/intellij-community,salguarnieri/intellij-community,hurricup/intellij-community,semonte/intellij-community,asedunov/intellij-community,vvv1559/intellij-community,retomerz/intellij-community,asedunov/intellij-community,apixandru/intellij-community,mglukhikh/intellij-community,idea4bsd/idea4bsd,fitermay/intellij-community,youdonghai/intellij-community,vvv1559/intellij-community,fitermay/intellij-community,suncycheng/intellij-community,michaelgallacher/intellij-community,retomerz/intellij-community,mglukhikh/intellij-community,salguarnieri/intellij-community,salguarnieri/intellij-community,vvv1559/intellij-community,lucafavatella/intellij-community,salguarnieri/intellij-community,hurricup/intellij-community,xfournet/intellij-community,xfournet/intellij-community,vvv1559/intellij-community,michaelgallacher/intellij-community,youdonghai/intellij-community,lucafavatella/intellij-community,retomerz/intellij-community,fitermay/intellij-community,signed/intellij-community,signed/intellij-community,da1z/intellij-community,ThiagoGarciaAlves/intellij-community,mglukhikh/intellij-community,apixandru/intellij-community,suncycheng/intellij-community,hurricup/intellij-community,ibinti/intellij-community,asedunov/intellij-community,FHannes/intellij-community,ibinti/intellij-community,ibinti/intellij-community,xfournet/intellij-community,apixandru/intellij-community,mglukhikh/intellij-community,xfournet/intellij-community
/* * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package git4idea.ui.branch; import com.intellij.dvcs.branch.DvcsMultiRootBranchConfig; import com.intellij.util.containers.ContainerUtil; import git4idea.GitLocalBranch; import git4idea.GitRemoteBranch; import git4idea.branch.GitBranchUtil; import git4idea.repo.GitBranchTrackInfo; import git4idea.repo.GitRepository; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; /** * @author Kirill Likhodedov */ public class GitMultiRootBranchConfig extends DvcsMultiRootBranchConfig<GitRepository> { public GitMultiRootBranchConfig(@NotNull Collection<GitRepository> repositories) { super(repositories); } @Override @NotNull public Collection<String> getLocalBranchNames() { return GitBranchUtil.getCommonBranches(myRepositories, true); } @NotNull Collection<String> getRemoteBranches() { return GitBranchUtil.getCommonBranches(myRepositories, false); } /** * If there is a common remote branch which is commonly tracked by the given branch in all repositories, * returns the name of this remote branch. Otherwise returns null. <br/> * For one repository just returns the tracked branch or null if there is no tracked branch. */ @Nullable public String getTrackedBranch(@NotNull String branch) { String trackedName = null; for (GitRepository repository : myRepositories) { GitRemoteBranch tracked = getTrackedBranch(repository, branch); if (tracked == null) { return null; } if (trackedName == null) { trackedName = tracked.getNameForLocalOperations(); } else if (!trackedName.equals(tracked.getNameForLocalOperations())) { return null; } } return trackedName; } /** * Returns local branches which track the given remote branch. Usually there is 0 or 1 such branches. */ @NotNull public Collection<String> getTrackingBranches(@NotNull String remoteBranch) { Collection<String> trackingBranches = null; for (GitRepository repository : myRepositories) { Collection<String> tb = getTrackingBranches(repository, remoteBranch); if (trackingBranches == null) { trackingBranches = tb; } else { trackingBranches = ContainerUtil.intersection(trackingBranches, tb); } } return trackingBranches == null ? Collections.<String>emptyList() : trackingBranches; } @NotNull public static Collection<String> getTrackingBranches(@NotNull GitRepository repository, @NotNull String remoteBranch) { Collection<String> trackingBranches = new ArrayList<String>(1); for (GitBranchTrackInfo trackInfo : repository.getBranchTrackInfos()) { if (remoteBranch.equals(trackInfo.getRemoteBranch().getNameForLocalOperations())) { trackingBranches.add(trackInfo.getLocalBranch().getName()); } } return trackingBranches; } @Nullable private static GitRemoteBranch getTrackedBranch(@NotNull GitRepository repository, @NotNull String branchName) { GitLocalBranch branch = repository.getBranches().findLocalBranch(branchName); return branch == null ? null : branch.findTrackedBranch(repository); } @Override public String toString() { StringBuilder sb = new StringBuilder(); for (GitRepository repository : myRepositories) { sb.append(repository.getPresentableUrl()).append(":").append(repository.getCurrentBranch()).append(":").append(repository.getState()); } return sb.toString(); } }
plugins/git4idea/src/git4idea/ui/branch/GitMultiRootBranchConfig.java
/* * Copyright 2000-2012 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package git4idea.ui.branch; import com.intellij.dvcs.branch.DvcsMultiRootBranchConfig; import com.intellij.util.containers.ContainerUtil; import git4idea.GitLocalBranch; import git4idea.GitRemoteBranch; import git4idea.branch.GitBranchUtil; import git4idea.repo.GitBranchTrackInfo; import git4idea.repo.GitRepository; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; /** * @author Kirill Likhodedov */ public class GitMultiRootBranchConfig extends DvcsMultiRootBranchConfig<GitRepository> { public GitMultiRootBranchConfig(@NotNull Collection<GitRepository> repositories) { super(repositories); } @Override @NotNull public Collection<String> getLocalBranchNames() { return GitBranchUtil.getCommonBranches(myRepositories, true); } @NotNull Collection<String> getRemoteBranches() { return GitBranchUtil.getCommonBranches(myRepositories, false); } /** * If there is a common remote branch which is commonly tracked by the given branch in all repositories, * returns the name of this remote branch. Otherwise returns null. <br/> * For one repository just returns the tracked branch or null if there is no tracked branch. */ @Nullable public String getTrackedBranch(@NotNull String branch) { String trackedName = null; for (GitRepository repository : myRepositories) { GitRemoteBranch tracked = getTrackedBranch(repository, branch); if (tracked == null) { return null; } if (trackedName == null) { trackedName = tracked.getNameForLocalOperations(); } else if (!trackedName.equals(tracked.getNameForLocalOperations())) { return null; } } return trackedName; } /** * Returns local branches which track the given remote branch. Usually there is 0 or 1 such branches. */ @NotNull public Collection<String> getTrackingBranches(@NotNull String remoteBranch) { Collection<String> trackingBranches = null; for (GitRepository repository : myRepositories) { Collection<String> tb = getTrackingBranches(repository, remoteBranch); if (trackingBranches == null) { trackingBranches = tb; } else { trackingBranches = ContainerUtil.intersection(trackingBranches, tb); } } return trackingBranches == null ? Collections.<String>emptyList() : trackingBranches; } @NotNull public static Collection<String> getTrackingBranches(@NotNull GitRepository repository, @NotNull String remoteBranch) { Collection<String> trackingBranches = new ArrayList<String>(1); for (GitBranchTrackInfo trackInfo : repository.getBranchTrackInfos()) { if (remoteBranch.equals(trackInfo.getRemote().getName() + "/" + trackInfo.getRemoteBranch())) { trackingBranches.add(trackInfo.getLocalBranch().getName()); } } return trackingBranches; } @Nullable private static GitRemoteBranch getTrackedBranch(@NotNull GitRepository repository, @NotNull String branchName) { GitLocalBranch branch = repository.getBranches().findLocalBranch(branchName); return branch == null ? null : branch.findTrackedBranch(repository); } @Override public String toString() { StringBuilder sb = new StringBuilder(); for (GitRepository repository : myRepositories) { sb.append(repository.getPresentableUrl()).append(":").append(repository.getCurrentBranch()).append(":").append(repository.getState()); } return sb.toString(); } }
git: IDEA-152430 Removing remote branch should offer to delete tracking branch This used to work, but was broken a while ago, during some refactoring related to using of GitRemoteBranch objects.
plugins/git4idea/src/git4idea/ui/branch/GitMultiRootBranchConfig.java
git: IDEA-152430 Removing remote branch should offer to delete tracking branch
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

Deduplicated Commits

Deduplicated based on diff:

content = '\n'.join(difflib.unified_diff(
    old_content.splitlines(keepends=True), 
    new_content.splitlines(keepends=True), 
    n=5
))

Parameters:

Minimum ngram size: 5 MinHash ngram size: 5 MinHash threshold: 0.8

Downloads last month
7,985