query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
metodo que genera los numeros de la tarjeta
public void generaNumeros() { int number =0; int numeroSeleccionado=gameMemoriaUno.getNumberaleatorio(); //se agrega numero a las lista de numeros if(numeroSeleccionado == -1){ llamaResultado(super.getActividad(), tFinal, tInicio, Num3_5_1Activity.class,gameMemoriaUno.getNumeros(),gameMemoriaUno.getAciertosTotales(),gameMemoriaUno.getFallosTotales(),gameMemoriaUno.getNumEcxluidosList(),gameMemoriaUno.getNumeroPregunta()); }else { gameMemoriaUno.addNumerosSet(numeroSeleccionado); for (int i = 1; i < 6; i++) { //obtiene numeros del costalito menos el numero seleccionado number = gameMemoriaUno.getNumeroArreglo(); //agrego numeros gameMemoriaUno.addNumerosSet(number); } Iterator<Integer> iter = gameMemoriaUno.getNumerosSet().iterator(); int contadorNumeros=0; while (iter.hasNext()) { int valor=iter.next().intValue(); lista.add(valor); if(gameMemoriaUno.getDificultad()==contadorNumeros){ gameMemoriaUno.setNumerosElejidos(new int[valor]); } contadorNumeros+=1; } Collections.shuffle(lista, new Random()); Collections.shuffle(lista, new Random()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mostrarTareasNumeradas(){\n int numeroPosicion = 1;\n for (String tarea : tareas){\n System.out.println(numeroPosicion + \". \" + tarea);\n numeroPosicion = numeroPosicion + 1;\n }\n }", "@Override\n\tpublic void teclaNumericaDigitada(String numTecla) {\n...
[ "0.6323349", "0.6164663", "0.6153351", "0.5923355", "0.5839832", "0.575", "0.5711704", "0.56872165", "0.56701905", "0.56132185", "0.5571282", "0.5557827", "0.555745", "0.5553283", "0.5550104", "0.55338913", "0.5479095", "0.5479095", "0.5479095", "0.54747295", "0.5468253", "...
0.62486416
1
fara COMBINEFN, fara ACCUm, KV cu
@Override public Accum addInput(Accum mutableAccumulator, Long input) { double x = -1 + 2 * Math.random(); // o pCollection de boolean, cu group numeram cate au nimerit tinta, double y = -1 + 2 * Math.random(); if (x * x + y * y <= 1.0) { return mutableAccumulator.newFromInsideEvent(); } return mutableAccumulator.newFromOutsideEvent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getCedula();", "public static String ControllaCF(String cf) {\r\n\t\tint i, s, c;\r\n\t\tString cf2;\r\n\t\tint setdisp[] = {1, 0, 5, 7, 9, 13, 15, 17, 19, 21, 2, 4, 18, 20,\r\n\t\t\t\t11, 3, 6, 8, 12, 14, 16, 10, 22, 25, 24, 23 };\r\n\t\tif( cf.length() == 0 ) return \"\";\r\n\t\tif( cf.length() != 16 )\r\n...
[ "0.6228128", "0.61902004", "0.60320973", "0.59914124", "0.58625627", "0.58127904", "0.5808316", "0.5796331", "0.57855076", "0.57636005", "0.57574815", "0.57545894", "0.5753505", "0.5751509", "0.57284915", "0.56862056", "0.5672603", "0.56651247", "0.5663808", "0.56433964", "0....
0.0
-1
/ compiled from: TXCStreamRecord
public interface b { void a(int i, String str, String str2, String str3); void a(long j); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SourceRecord convertTransactionDataRecord (\n DomainRecord domainRecord\n ) \n throws Exception \n {\n if (!domainRecord.isTransactionInfoRecord()) {\n throw new Exception (\n \"Invalid transaction data record, reason type is \" + \n domainRec...
[ "0.5866897", "0.5650048", "0.54907393", "0.53419864", "0.5331417", "0.532696", "0.52795136", "0.52769494", "0.5265417", "0.52612936", "0.52506083", "0.5243572", "0.5161338", "0.50495744", "0.50341666", "0.5022052", "0.49861655", "0.4980109", "0.4970694", "0.4951888", "0.49400...
0.0
-1
if it's the turn of the player who owns this controller:
public void makeRandomMove() { try{ if (playerId == game.getState().getTurn()){ game.execute(randPlayer.requestAction(game.getState())); } } catch(IllegalArgumentException e){ } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasTurn() {\n\t\treturn world.getCurrentPlayer() == this;\n\t}", "private boolean isPlayerTurn(Move move) {\n return this.turn == move.getPlayer().getId();\n }", "public boolean whoIsHere(){\r\n\t\treturn otherPlayer;\r\n\t}", "public boolean isPlayerTurn() {\n return playerTurn;\n ...
[ "0.706918", "0.701299", "0.6955295", "0.6871803", "0.68362635", "0.6811537", "0.6793838", "0.67908686", "0.66249543", "0.66051203", "0.6552269", "0.65177745", "0.6415634", "0.635124", "0.6348639", "0.6337273", "0.63210803", "0.63204634", "0.6316298", "0.62971073", "0.6283642"...
0.0
-1
This method is called when the user selects a new player mode. When switching from MANUAL to a non manual mode you should call decideMakeAutomaticMove().
public void changePlayerMode(PlayerMode p) { playerMode = p; if (playerMode != PlayerMode.manual) decideMakeAutomaicMove(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void changePlayerMode(PlayerMode mode) {\r\n\t\tthis.playerMode = mode;\r\n\t\tdecideMakeAutomaticMove();\r\n\t}", "private void decideMakeAutomaicMove(){\n\t\t\r\n\t\tif (playerMode != PlayerMode.manual){\r\n\t\t\tif (playerMode == PlayerMode.random) makeRandomMove();\r\n\t\t\telse makeSma...
[ "0.82522017", "0.7531996", "0.6781496", "0.66659653", "0.6501589", "0.6353007", "0.6344733", "0.6330832", "0.62295556", "0.61742634", "0.61723554", "0.61590195", "0.6115762", "0.6105889", "0.60986924", "0.60842645", "0.60738486", "0.60382575", "0.602168", "0.60206693", "0.599...
0.72695565
2
This method will be called by the view when it gets a notification from the model, in such case, if the event is INFO or CHANGE, and it is the turn player of this controller, then call decideMakeAutomaticMove(). It is important to get the current turn from the state e.getState() and not from game.getState()
public void handleEvent(GameEvent<S, A> e) { if (playerId == e.getState().getTurn() && !game.isFinished()){ if (playerMode != PlayerMode.manual && (e.getType() == GameEvent.EventType.Info || e.getType() == GameEvent.EventType.Change)) { decideMakeAutomaicMove(); } else if (e.getType() == GameEvent.EventType.Start){ if (playerMode == PlayerMode.random) makeRandomMove(); else if (playerMode == PlayerMode.smart) makeSmartMove(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void handleEvent(GameEvent<S, A> e) {\r\n\t\tif ((e.getType() == EventType.Info || e.getType() == EventType.Change) && e.getState().getTurn() == this.playerId) decideMakeAutomaticMove();\r\n\t}", "public void toMoving() {\n notifyStartMoving(this.getCurrentTurn().getCurrentPlayer()....
[ "0.8079342", "0.6148491", "0.59285975", "0.5926207", "0.5911976", "0.5679221", "0.5652436", "0.55576986", "0.5550975", "0.5531049", "0.5524473", "0.552273", "0.5499728", "0.5433156", "0.54106015", "0.5410123", "0.5407294", "0.5405616", "0.53581715", "0.53577745", "0.53542525"...
0.67708176
1
The purpose of this private method is to make an automatic move if needed. It first checks if the player mode is not manual, and in such case it should call makeRandomMove or makeSmartMove depending on the mode
private void decideMakeAutomaicMove(){ if (playerMode != PlayerMode.manual){ if (playerMode == PlayerMode.random) makeRandomMove(); else makeSmartMove(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void changePlayerMode(PlayerMode mode) {\r\n\t\tthis.playerMode = mode;\r\n\t\tdecideMakeAutomaticMove();\r\n\t}", "private void makeSmartComputerMove() {\n\t\tboolean b;\n\t\tint winningPos = 0;\n\t\tfor (int i = 1; i < board.length; i++) {\n\t\t\tb = isWinningMove(i, computerLetter);\n\t\...
[ "0.6706296", "0.64802223", "0.6475103", "0.6465253", "0.64395267", "0.64372486", "0.6383145", "0.6366628", "0.63574564", "0.6355179", "0.62723184", "0.6270619", "0.62101185", "0.61607313", "0.61500853", "0.60920715", "0.6082101", "0.6035816", "0.6007887", "0.60059524", "0.600...
0.85812354
0
formats the array of location into a sendable message
private String format(ArrayList<Location> locs) { String res = ""; for (Location loc : locs) { res += loc.getLatitude() + "-" + loc.getLongitude() + ";"; } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String message() {\r\n if (markers.size() == 0) return \"\";\r\n String s = \"expecting \";\r\n boolean first = true;\r\n for (Marker m : markers) {\r\n if (! first) s = s + \", \";\r\n first = false;\r\n s = s + m.toString().toLowerCase().replac...
[ "0.57280606", "0.5664406", "0.5631107", "0.54941446", "0.5485396", "0.546531", "0.53777134", "0.53381634", "0.5307047", "0.52857184", "0.525796", "0.5246353", "0.52303404", "0.52144825", "0.51828027", "0.5176862", "0.51380795", "0.5132793", "0.51217216", "0.51056224", "0.5097...
0.60690606
0
/ Getters and setters
public int getNumberOfFeatures() { return numberOfFeatures; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setAge(int age) { this.age = age; }", "@Override\n\tp...
[ "0.646901", "0.6434069", "0.6405327", "0.6374714", "0.61492217", "0.6088488", "0.6079561", "0.6056365", "0.6019692", "0.5977231", "0.597154", "0.5964837", "0.59290606", "0.5922731", "0.5914227", "0.59035057", "0.5893521", "0.5888251", "0.5875859", "0.58580583", "0.5830215", ...
0.0
-1
constructor / Constructs weather data class with sunset sunrise weather code and cityname
public WeatherData (Long sunset, Long sunrise, int weatherCode, String cityName, int temperature) { sunsetTime = sunset; sunriseTime = sunrise; weather = weatherCode; city = cityName; temp = temperature; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CityDailyWeather(String city, int startYear, int endYear, int stationID){\n\t\tthis.city = city;\n\t\tthis.startYear = startYear;\n\t\tthis.endYear = endYear;\n\t\tthis.stationID = stationID;\n\t}", "public Weather() {\n }", "public WeatherStation(String city, ArrayList<ie.nuig.stattion.Measurement> ...
[ "0.6833169", "0.68154615", "0.65757656", "0.64452076", "0.6426052", "0.6373893", "0.62829226", "0.6175669", "0.6109014", "0.610662", "0.6042296", "0.60366386", "0.60358846", "0.602692", "0.60218763", "0.6002214", "0.59850734", "0.59399235", "0.59071344", "0.59071344", "0.5882...
0.85219806
0
methods / Returns sunset time
public Long getSunsetTime(){ return sunsetTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getSignOffTime();", "public Date takeOff() {\n \t\r\n \tthis.lastTimeTookOf = new Date();\r\n \treturn lastTimeTookOf;\r\n }", "private void clearTime() {\n \n time_ = 0L;\n }", "private void clearTime() {\n \n time_ = 0L;\n }", "private voi...
[ "0.72615606", "0.6704464", "0.66966665", "0.66966665", "0.66966665", "0.6646835", "0.663928", "0.66038364", "0.65484613", "0.65484613", "0.65484613", "0.65484613", "0.64933735", "0.64884126", "0.6471566", "0.6422659", "0.6384784", "0.6378597", "0.6324568", "0.62809783", "0.62...
0.8079132
0
/ Returns sunrise time
public Long getSunriseTime(){ return sunriseTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isSunrise() { return Math.abs(Util.nowHour() - sunriseHour) < 0.1; }", "public String getSunriseString()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(sunrise_hour).append(\":\").append(sunrise_minute).append(\" AM\");\n\t\treturn sb.toString();\n\t}", "int getTtiSecond...
[ "0.72516906", "0.69811004", "0.5973078", "0.59170604", "0.59021324", "0.5897815", "0.58831704", "0.5815001", "0.5750936", "0.5738766", "0.5730503", "0.57030785", "0.5699977", "0.5689516", "0.5672374", "0.5667171", "0.5648973", "0.5644372", "0.5639225", "0.5607484", "0.5605102...
0.7745401
0
/ Returns weather code
public int getWeather(){ return weather; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getWeather() {\n int weatherCode = 0;\n String weather = \" \";\n if (readings.size() > 0) {\n weatherCode = readings.get(readings.size() - 1).code;\n\n if (weatherCode == 100) {\n weather += weather + \" Clear \";\n } else if (weat...
[ "0.7474886", "0.7266729", "0.6659514", "0.64903885", "0.6462422", "0.6349374", "0.6231541", "0.6195312", "0.6161357", "0.6134801", "0.60944957", "0.6066408", "0.6002308", "0.5983661", "0.58960575", "0.5869632", "0.5865938", "0.5840193", "0.5812041", "0.5766475", "0.5747057", ...
0.6250527
6
/ Returns city name
public String getCity(){ return city; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getCityName();", "public String getCityName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_CITY_NAME);\n\t}", "String getCity();", "private String getCityOrStateName() {\n System.out.println(\"Enter city/state name\");\n return scannerForAddressBook.scannerProvi...
[ "0.9057665", "0.80011487", "0.797788", "0.79306644", "0.7859038", "0.7764121", "0.77211154", "0.77211154", "0.77090496", "0.7596069", "0.75921506", "0.75390255", "0.7506309", "0.74785316", "0.74682295", "0.7459965", "0.74572295", "0.7452453", "0.7452453", "0.7405014", "0.7405...
0.68353575
72
/ Returns weather code
public int getTemp(){ return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getWeather() {\n int weatherCode = 0;\n String weather = \" \";\n if (readings.size() > 0) {\n weatherCode = readings.get(readings.size() - 1).code;\n\n if (weatherCode == 100) {\n weather += weather + \" Clear \";\n } else if (weat...
[ "0.7475572", "0.72683203", "0.6658962", "0.649385", "0.6464758", "0.63499063", "0.625175", "0.62317044", "0.61959374", "0.61610377", "0.6136237", "0.6096671", "0.60677874", "0.60030824", "0.59857446", "0.58952713", "0.5871103", "0.58682096", "0.5839819", "0.5812759", "0.57691...
0.0
-1
Processes exceptions thrown when the local value/object is committed to the parent object through a realtime link.
protected abstract void handleRealtimeLinkCommitException(Throwable t);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void errorWhenCommitting();", "protected void handleProcessingException(Exception e) throws NbaBaseException {\n unLockItems();\n if (e instanceof NbaBaseException) {\n NbaBaseException eb = (NbaBaseException) e;\n if (eb.isFatal() || eb instanceof NbaLockedException) {...
[ "0.5516631", "0.53098667", "0.52731067", "0.51195925", "0.5110846", "0.50901747", "0.50846916", "0.50743663", "0.5055916", "0.50367916", "0.50097406", "0.4985656", "0.4985656", "0.49729183", "0.49604598", "0.49505973", "0.49505973", "0.49430603", "0.4941146", "0.49265563", "0...
0.6791799
0
Ensures that the initial local value/object has been acquired.
protected void ensureIsInitialized() { if (initialized) { return; } encapsulatedObjectValueAccessor = new Accessor<Object>() { Object object = ErrorOccurrence.tryCatch(new Accessor<Object>() { @Override public Object get() { initialObjectValue = null; return initialObjectValue = loadValue(); } }); @Override public Object get() { return ErrorOccurrence.rethrow(object); } @Override public void set(Object o) { object = o; } }; initialized = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void makeSureInitialized() {\n if (!initialized) {\n init();\n initialized = true;\n }\n }", "protected void checkInitialized() {\n \tcheckState(this.breeder!=null && this.threads!=null, \"Local state was not correctly set after being deserialized.\"...
[ "0.6323876", "0.630405", "0.6025554", "0.564083", "0.5616976", "0.5614278", "0.5604188", "0.5527312", "0.5510657", "0.54952294", "0.5468413", "0.5375855", "0.5366214", "0.53660655", "0.53382754", "0.53373563", "0.5327905", "0.5269291", "0.5264259", "0.5252195", "0.5247713", ...
0.6686492
0
Creates and return the editor control.
public Form createEditorForm(boolean realTimeLinkWithParent, boolean exclusiveLinkWithParent) { Object capsule = getCapsule(); Form result = getSwingRenderer().createForm(capsule); setupLinkWithParent(result, realTimeLinkWithParent, exclusiveLinkWithParent); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Container createContainer() {\n\treturn new EditorContainer();\n }", "@Override\n\tprotected Control createControl(Composite parent) {\n\t\tthis.parent = parent;\n\t\t//return cellEditor.getControl();\n\t\treturn null; \n\t}", "public Component getEditorComponent ()\r\n {\r\n return editor...
[ "0.70977455", "0.7032249", "0.6982628", "0.6888814", "0.68325216", "0.67037755", "0.6676177", "0.6667706", "0.65028304", "0.645093", "0.6440053", "0.6440035", "0.64041954", "0.6348696", "0.6311129", "0.6290825", "0.6276129", "0.6244898", "0.623175", "0.6172893", "0.6160916", ...
0.5472158
99
Reloads the local object/value and refreshes the editor control.
public void refreshEditorForm(Form editorForm, boolean refreshStructure) { if (refreshStructure) { initialized = false; ensureIsInitialized(); editorForm.setObject(getCapsule()); } else { Object oldValue = ErrorOccurrence.tryCatch(new Accessor<Object>() { @Override public Object get() { return encapsulatedObjectValueAccessor.get(); } }); Object newValue = ErrorOccurrence.tryCatch(new Accessor<Object>() { @Override public Object get() { return loadValue(); } }); if (oldValue != newValue) { encapsulatedObjectValueAccessor.set(newValue); ReflectionUI reflectionUI = getSwingRenderer().getReflectionUI(); ITypeInfo oldValueType = (oldValue == null) ? null : reflectionUI.buildTypeInfo(reflectionUI.getTypeInfoSource(oldValue)); ITypeInfo newValueType = (newValue == null) ? null : reflectionUI.buildTypeInfo(reflectionUI.getTypeInfoSource(newValue)); if (!MiscUtils.equalsOrBothNull(oldValueType, newValueType)) { editorForm.setObject(getCapsule()); } } } editorForm.refresh(refreshStructure); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reload() {\n\n\t}", "public void reload();", "public void reload() {\n reload(true);\n reload(false);\n }", "public void refresh()\n {\n refresh( null );\n }", "public void update() {\n\t\tthis.editorView.update();\n\t}", "public void refresh()\n {\n Property...
[ "0.6210006", "0.6175037", "0.61747503", "0.6135758", "0.6087095", "0.60489446", "0.60113764", "0.59987056", "0.59544533", "0.5887137", "0.587315", "0.587315", "0.587315", "0.58608097", "0.5850319", "0.5843787", "0.5840612", "0.5826422", "0.58174634", "0.58139986", "0.5805806"...
0.5553673
51
Installs the link between the local value/object editor control and its parent object form.
protected void setupLinkWithParent(Form editorForm, boolean realTimeLinkWithParent, boolean exclusiveLinkWithParent) { if (realTimeLinkWithParent) { if (mayModifyParentObject()) { forwardEditorFormModificationsToParentObject(editorForm, exclusiveLinkWithParent); } if (isEditorFormRefreshedOnModification()) { refreshEditorFormOnModification(editorForm); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void install()\n {\n _parent = null;\n _label = new ScLocalString();\n _model = new ScLocalObject();\n }", "public void onLinkEdit()\n {\n getLinkWizard().start(LinkWizardStep.LINK_REFERENCE_PARSER.toString(), linkConfigFactory.createLinkConfig());\n }", "publi...
[ "0.6074239", "0.5937123", "0.55609936", "0.5473384", "0.5446691", "0.54373413", "0.5312836", "0.5177981", "0.5113829", "0.5109995", "0.51011586", "0.50917894", "0.50447786", "0.5039026", "0.5036844", "0.4999128", "0.49918705", "0.49912357", "0.49834174", "0.49430943", "0.4936...
0.5558311
3
Installs a listener that will trigger the editor control refreshing whenever a modification of the local value/object is detected.
protected void refreshEditorFormOnModification(final Form editorForm) { ModificationStack childModificationStack = editorForm.getModificationStack(); childModificationStack.addListener(new AbstractSimpleModificationListener() { @Override protected void handleAnyEvent(IModification modification) { refreshEditorForm(editorForm, false); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void registerListener(){\n game.addPropertyChangeListener(PROPERTY_GAME, evt -> {\r\n refresh();\r\n });\r\n }", "@Override\n public void addChangeListener(ChangeListener l) {}", "void addChangeListener( RegistryListener listener );", "@Override\n public void addChan...
[ "0.65058064", "0.6496722", "0.64267147", "0.6380437", "0.6380437", "0.63597494", "0.6301897", "0.6300698", "0.6281554", "0.62141937", "0.62023574", "0.61388254", "0.61041", "0.61041", "0.60987157", "0.60981625", "0.60841316", "0.604652", "0.6034694", "0.5998064", "0.5998003",...
0.0
-1
Installs on the editor control a listener that will forward the local value/object modifications to the parent object modification stack.
protected void forwardEditorFormModificationsToParentObject(final Form editorForm, boolean exclusiveLinkWithParent) { Accessor<Boolean> childModifAcceptedGetter = new Accessor<Boolean>() { @Override public Boolean get() { return shouldIntegrateNewObjectValue(getCurrentValue()); } }; Accessor<ValueReturnMode> childValueReturnModeGetter = new Accessor<ValueReturnMode>() { @Override public ValueReturnMode get() { return getReturnModeFromParent(); } }; Accessor<Boolean> childValueReplacedGetter = new Accessor<Boolean>() { @Override public Boolean get() { return isValueReplaced(); } }; Accessor<Boolean> childValueTransactionExecutedGetter = Accessor.returning(false); Accessor<IModification> committingModifGetter = new Accessor<IModification>() { @Override public IModification get() { if (!canCommitToParent()) { return null; } return createCommittingModification(getCurrentValue()); } }; Accessor<String> masterModifTitleGetter = new Accessor<String>() { @Override public String get() { return getParentModificationTitle(); } }; Accessor<ModificationStack> masterModifStackGetter = new Accessor<ModificationStack>() { @Override public ModificationStack get() { ModificationStack result = getParentModificationStack(); if (result == null) { throw new ReflectionUIError(); } return result; } }; Accessor<Boolean> masterModifFakeGetter = new Accessor<Boolean>() { @Override public Boolean get() { return isParentModificationFake(); } }; Listener<Throwable> masterModificationExceptionListener = new Listener<Throwable>() { @Override public void handle(Throwable t) { handleRealtimeLinkCommitException(t); } }; editorForm.setModificationStack(new SlaveModificationStack(editorForm.toString(), childModifAcceptedGetter, childValueReturnModeGetter, childValueReplacedGetter, childValueTransactionExecutedGetter, committingModifGetter, masterModifTitleGetter, masterModifStackGetter, masterModifFakeGetter, exclusiveLinkWithParent, ReflectionUIUtils.getDebugLogListener(getSwingRenderer().getReflectionUI()), ReflectionUIUtils.getErrorLogListener(getSwingRenderer().getReflectionUI()), masterModificationExceptionListener)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addNotify() {\n super.addNotify();\n \n // Enter key in the tree\n /*\n ExplorerManager newManager = ExplorerManager.find(this);\n System.out.println(\"newManager=\"+newManager);\n if (newManager != manager) {\n if (manager != null) {\n ...
[ "0.61087656", "0.5895375", "0.573759", "0.5727929", "0.5714106", "0.57084733", "0.57067096", "0.56887925", "0.56887925", "0.56403625", "0.558254", "0.556126", "0.5555869", "0.5554182", "0.5546959", "0.5544385", "0.5525321", "0.5519593", "0.5517792", "0.55150914", "0.5488942",...
0.5240958
64
20160504 15:34:22.759 [main] INFO com.ggj.MainTest 26 main group2.1 20160504 15:34:22.759 [main] INFO com.ggj.MainTest 26 main group2.2 20160504 15:34:22.759 [main] INFO com.ggj.MainTest 26 main group1.1 20160504 15:34:22.759 [main] INFO com.ggj.MainTest 26 main group1.2 20160504 15:34:22.760 [main] INFO com.ggj.MainTest 26 main group3.1 20160504 15:34:22.760 [main] INFO com.ggj.MainTest 26 main group3.2
private static void testmereService(ApplicationContext context) { MergeService mergeService = (MergeService) context.getBean("mergeServiceImp"); // 获取远程服务代理 List<String> result = mergeService.mergeResult(); for (String s : result) { log.info(s); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main( String[] args ) throws InterruptedException\n {\n \tString tmp;\n System.out.println( \"Hello World! v5: 2 second sleep, 1 mil logs\" );\n //System.out.println(Thread.currentThread().getContextClassLoader().getResource(\"log4j.properties\"));\n ClassLoader loader...
[ "0.5779685", "0.5541655", "0.5461991", "0.53809494", "0.5276124", "0.5133753", "0.511565", "0.5107732", "0.51009476", "0.5077671", "0.5071435", "0.50479656", "0.5041744", "0.5008113", "0.4982576", "0.497328", "0.49726033", "0.49668235", "0.49566847", "0.49224702", "0.49143922...
0.0
-1
one pass: time: O(n), space: O(1)
public int minDeletionsToObtainStringInRightFormat(String s) { if (s == null || s.isEmpty()) { return 0; } int countA = 0; int countB = 0; int toDelete = 0; for (char c : s.toCharArray()) { if (c == 'A') { countA++; if (countB > toDelete) { toDelete++; } } else { countB++; } } return Math.min(countA, Math.min(countB, toDelete)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n ...
[ "0.7134739", "0.69683516", "0.6598758", "0.64274025", "0.63421947", "0.6224074", "0.6199821", "0.6118305", "0.60536736", "0.58821785", "0.58592165", "0.58496976", "0.58174914", "0.5734297", "0.5711034", "0.57047033", "0.56497246", "0.56467485", "0.5595834", "0.5576553", "0.55...
0.0
-1
time: O(n), space: O(1)
public int minDeletionsToObtainStringInRightFormat2(String s) { if (s == null || s.length() == 0) { return 0; } int n = s.length(); int leftB = 0; int rightA = 0; for (int i = 0; i < n; i++) { if (s.charAt(i) == 'A') { rightA++; } } int ans = rightA; for (int i = 0; i < n; i++) { if (s.charAt(i) == 'A') { rightA--; } else { leftB++; } ans = Math.min(ans, rightA + leftB); } return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.705718", "0.69916224", "0.66178006", "0.62183434", "0.6136818", "0.6011898", "0.5931262", "0.5917208", "0.59139055", "0.5910935", "0.5900588", "0.584425", "0.5822885", "0.57799125", "0.5710328", "0.5606775", "0.56006515", "0.5594421", "0.5578878", "0.554511", "0.5539801", ...
0.0
-1
time: O(n), space: O(n)
public int minDeletionsToObtainStringInRightFormat3(String s) { // Go through the string, count the number of B at left side and the number of A at right side. // Then, find the minimum sum of left B and right A at each position. if (s == null || s.length() == 0) { return 0; } int n = s.length(); int[] left = new int[n]; // number of B from left int[] right = new int[n]; // number of A from right left[0] = s.charAt(0) == 'B' ? 1 : 0; for (int i = 1; i < n; i++) { left[i] = left[i - 1]; if (s.charAt(i) == 'B') { left[i]++; } } right[n - 1] = s.charAt(n - 1) == 'A' ? 1 : 0; for (int i = n - 2; i >= 0; i--) { right[i] = right[i + 1]; if (s.charAt(i) == 'A') { right[i]++; } } int min = n; for (int i = 0; i < n; i++) { int count = 0; if (i == 0) { count = right[i + 1]; } else if (i == n - 1) { count = left[i - 1]; } else { count = left[i - 1] + right[i + 1]; } min = Math.min(min, count); } return min; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++...
[ "0.6990045", "0.68685305", "0.65067405", "0.622167", "0.6164225", "0.5977381", "0.59020793", "0.5894702", "0.5891574", "0.5868582", "0.5860749", "0.5796246", "0.566869", "0.56216455", "0.56159425", "0.5606567", "0.55640364", "0.5533616", "0.54860973", "0.5470258", "0.545344",...
0.0
-1
get the directory of the to be installed libraries
@Override public void install(String dvName, String libName, String libPath) throws Exception { File installLibDir = ExternalLibraryUtils.getLibraryInstallDir(); // directory exists? if (!installLibDir.exists()) { installLibDir.mkdir(); } // copy the library file into the directory File destinationDir = new File( installLibDir.getAbsolutePath() + File.separator + dvName + File.separator + libName); FileUtils.deleteQuietly(destinationDir); destinationDir.mkdirs(); try { AsterixEventServiceUtil.unzip(libPath, destinationDir.getAbsolutePath()); } catch (Exception e) { throw new Exception("Couldn't unzip the file: " + libPath, e); } // for each file (library), register library ExternalLibraryUtils.registerLibrary(dvName, libName, true, destinationDir); // get library file // install if needed (add functions, adapters, datasources, parsers to the metadata) // <Not required for use> ExternalLibraryUtils.installLibraryIfNeeded(dvName, destinationDir, new HashMap<>()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static File getBluejLibDir()\n {\n if(bluejLibDir == null) {\n bluejLibDir = calculateBluejLibDir();\n }\n return bluejLibDir;\n }", "public String getJarLocation();", "private static File calculateBluejLibDir()\n {\n File bluejDir = null;\n String ...
[ "0.6879164", "0.66748744", "0.65973884", "0.6542997", "0.650425", "0.6454666", "0.635789", "0.6187415", "0.61693674", "0.610241", "0.6091826", "0.6083523", "0.60527396", "0.6028404", "0.59960103", "0.5983589", "0.59627795", "0.59527653", "0.5949903", "0.59221315", "0.59158844...
0.0
-1
computes the text content in this line.
public final String getTextContent() { StringBuilder builder = new StringBuilder(); for (int index = 0; index < words.size(); index++) { if (index != 0) { builder.append(" "); } builder.append(words.get(index).getTextContent()); } return builder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContent() {\r\n \r\n return text;\r\n }", "protected Text getText() {\n \t\treturn text;\n \t}", "@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}", "public String getCopyText(){\n // build text string (don't start with a blank as cursor is on\...
[ "0.6941141", "0.66917294", "0.66882753", "0.66369087", "0.6626791", "0.6611147", "0.6557617", "0.65410256", "0.65195435", "0.639874", "0.6395323", "0.6321459", "0.6320202", "0.6295656", "0.6291483", "0.6267317", "0.62618375", "0.62562215", "0.62530804", "0.6252361", "0.625236...
0.61513156
45
write the shortcut for making a main method
public static void main(String[] args) { //output Hello world System.out.println("Hello World"); methodSpacer(); //make a while loop which prints out hello world 100 times int i = 0; while(i < 100){ System.out.println("Hello World "+ i); i++; } //(don't forget to declare your variable first, and //increment it each time through the loop. methodSpacer(); //print out a diving line between each question, like "-------------------" //do the same looping thing as you just did, only with a for loop for(i = 0; i < 100; i++){ System.out.println("Hello World "+ i); } methodSpacer(); //remember to print out a dividing line between each question //Now, output the even numbers between and including 10 and 60 //using a for loop for(int a = 10; a < 61; a+=2){ System.out.println(a); } methodSpacer(); //and now a for loop printing out 15 to -35 (inclusive) down by //5 each time (so 15, 10, 5, 0, -5.... -30, -35 for(int b = 15; b > -36; b-=5){ System.out.println(b); } methodSpacer(); //Write a line to declare an array of 5 ints called myIntArray. int [] myIntArray = new int[5]; //Write a line to declare an array called dArray, which is 10 doubles. double [] dArray = new double[10]; //Write a line to declare an array called spiritWeek, which is 5 Strings. String [] spiritWeek = new String[5]; //Write a line to declare an array called stevenFloats, which is 7 floats. float [] stevenFloats = new float[7]; //Assign each of the elements of the int array above to be a number between 1 and 100. myIntArray[0] = 3; myIntArray[1] = 36; myIntArray[2] = 45; myIntArray[3] = 56; myIntArray[4] = 68; //Declare a variable of each integer data type of Java, //and comment how many bits each takes int myInt;//32 bits short myShort;//16 bits long myLong; //64 bits byte myByte; //8 bits //Declare a variable of each real number data type of Java, //and comment how many bits each takes // float myFloat = 0; //32 bits double myDouble = 0;//64 bits // GROUP QUESTION - You can solve this one together: // Given that the range of values byte can represent is: // byte: -2^7 <--> 2^7-1 // What is the range of values each integer data type can store? // Now assign each of the integer variables above a number close to its upper limit. int intLimit = 2147483647; // -2^31 -> 2^31 short shortLimit = 32000; // -2^15 -> 2^15 long longLimit = 2139999999; // -2^63 -> 2^63 byte byteLimit = 127; // -2^7 -> 2^7 //declare a boolean called isRaining and assign it false boolean isRaining = false; //write a conditional in which if isRaining is true, //print out "Take your rain coat with you.", //and if the isRaining variable is false, print out "No need for a raincoat". if(isRaining = true){ System.out.println("Take your rain coat with you."); } else{ System.out.println("No need for a rain coat."); } methodSpacer(); //Declare a Scanner object called sc. (Be sure it is imported properly....) //Ask the user the grade they got on the test (0 - 100) //Assign that to an int variable called score. Scanner sc = new Scanner(System.in); System.out.println("What grade did you get on the test? (0 - 100)"); int score = sc.nextInt(); //Now, write a conditional block in which if the score is //over 89, output A //else if over 79, output B //else if over 69, output C //else output below C if(score > 89){ System.out.println("A"); } else if(score > 79){ System.out.println("B"); } else if(score > 69){ System.out.println("C"); } else{ System.out.println("Below C"); } methodSpacer(); System.out.println(method2(4,5)); methodSpacer(); method1(); //******* Plus, method calling, and parameter passing. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main()\n\t{\n\t}", "public static void main(){\n\t}", "public static void main() {\n \n }", "public void main(){\n }", "public static void main() {\n }", "public void Main(){\n }", "public static void main(String[] args) {\r\n\t\t//method body\r\n\t}", "public st...
[ "0.81458676", "0.8125553", "0.8074905", "0.8059375", "0.7996767", "0.7857026", "0.7832584", "0.7528834", "0.7528834", "0.7523776", "0.74949837", "0.74927574", "0.7486102", "0.7482735", "0.7481066", "0.74555796", "0.7444075", "0.74325156", "0.7418942", "0.7416447", "0.74004596...
0.0
-1
Call a method here which is named method1(), and then implement it below, right after the main method. All that method1() is to do is print out "This is from method1."
public static void method1(){ System.out.println("This is from method 1."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void method1(){\n\t\tSystem.out.println(\"Method 1\");\n\t}", "@Override\r\n\tpublic void method1() {\n\t\t\r\n\t\tSystem.out.println(\"method1\");\r\n\t\t\r\n\t}", "public void method1()\r\n\t{\r\n\t}", "void method1();", "public void method1() {\n }", "private void methodOne() {\n\t\tSystem.o...
[ "0.8231272", "0.8230597", "0.8006931", "0.791569", "0.78984785", "0.76348335", "0.76053864", "0.75645304", "0.74970686", "0.7323026", "0.73199016", "0.7229706", "0.7207983", "0.71890235", "0.71698654", "0.715289", "0.7147644", "0.7102331", "0.7086275", "0.6952948", "0.6903040...
0.8551431
0
Next, call a method here named method2(), and send to it two parameters, which will be two ints. Then implement the method below, right after method1(); It is to take those two numbers, and print out their sum.
public static int method2(int x, int y){ return x + y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sum (int a, int b){\n\t\tSystem.out.println(\"Method-1 (2 PARAMETERS) SUM is: \" +(a+b));\n\t}", "static int sum(int value1, int value2) {\n return value1 + value2;\n }", "public static int sum(int n1, int n2){\n return n1 + n2;\n }", "public static void sumOfTwoNumbers(int no1, int ...
[ "0.78512996", "0.7420735", "0.71945477", "0.70538396", "0.6947452", "0.6938798", "0.6937113", "0.68792", "0.6850178", "0.6848756", "0.6832812", "0.68186855", "0.67807704", "0.67326814", "0.6719846", "0.67157733", "0.6670004", "0.6654379", "0.65946865", "0.6581212", "0.6498422...
0.73163056
2
/ Return the key value of the subsequence of arr WITHOUT indexes in idxList. (i.e., idxList represents the positions of elements in arr to be deleted.) This function is similar to the hash function of Record class.
protected static int getKey( int[] arr, IntArrayList idxList ) { int key = 0; int j = 0; int idx = idxList.size() > 0 ? idxList.getInt(j) : -1; for ( int i=0; i<arr.length; ++i ) { if ( idx == i ) { if ( j < idxList.size()-1 ) idx = idxList.getInt(++j); else idx = -1; } else { key = ( key << 3 ) + arr[i]; key %= Util.bigprime; } } // key %= Integer.MAX_VALUE; // is this line necessary? return key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int arraykey(int max);", "void removeKey(int i);", "@Override\n\tpublic String remove(String key) {\n\t\tint hashVal = hashFunc(key);\n\t\twhile (hashArray[hashVal] != null) {\n\t\t\tif (hashArray[hashVal].value.equals(key)) {\n\t\t\t\thashArray[hashVal] = deleted;\n\t\t\t\tthis.numOfItems--;\n\t\t\t\treturn k...
[ "0.5508343", "0.5427298", "0.54088223", "0.5359101", "0.53533566", "0.5304668", "0.52980965", "0.52278143", "0.5059584", "0.5020367", "0.5014677", "0.50083154", "0.49855042", "0.49828684", "0.49671513", "0.4955744", "0.49427608", "0.49361426", "0.4931795", "0.49205777", "0.48...
0.66740555
0
TODO Autogenerated method stub
@Override public boolean unlockIt() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean invalidateIt() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean approveIt() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean rejectIt() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean postIt() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean reverseCorrectIt() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean reverseAccrualIt() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String getSummary() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int getDoc_User_ID() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public int getC_Currency_ID() { return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public BigDecimal getApprovalAmt() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Returns the first and highest card in the ordered list of cards.
public Card.Face getHighestCard(){ return uniqueFaces.getFirst(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card getHighestCard() {\n Card rtrnCard = cardsPlayed[0];\n int i;\n int tempInt;\n int currentHighestRank = cardsPlayed[0].getIntValue();\n for(i = 0; i < cardsPlayed.length; i++){\n if(cardsPlayed[i].getSuit().equals(suit)){\n tempInt = cardsPl...
[ "0.6802761", "0.6570947", "0.6315224", "0.6287414", "0.62715584", "0.6250365", "0.6215534", "0.62047845", "0.61922026", "0.6189111", "0.60626507", "0.6053075", "0.6052661", "0.5992474", "0.59875405", "0.5982017", "0.59341156", "0.5925346", "0.59183794", "0.5899593", "0.589738...
0.68042177
0
Lists each card in the hand using it's face and suit.
@Override public String toString() { StringBuilder stringBuilder = new StringBuilder("Hand contains:\n"); for (Card c : cardList) { stringBuilder.append(c.getFace().toString()); stringBuilder.append(" of "); stringBuilder.append(c.getSuit().toString()); stringBuilder.append("\n"); } return stringBuilder.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<Card> setupDeck(){\n List<Card> llist = new LinkedList<Card>();\n String[] faceCards = {\"J\",\"Q\",\"K\",\"A\"};\n String[] suits = {\"spades\",\"clubs\",\"diamonds\",\"hearts\"};\n\n for(int i=2; i<=10; i++){\n for(int j=1; j<=4; j++){\n llist.add(new Card(Integer.toString(i)...
[ "0.7255068", "0.7069", "0.7057734", "0.69970524", "0.69646764", "0.6957745", "0.69261503", "0.69230586", "0.692138", "0.69049144", "0.6870896", "0.6817465", "0.67240214", "0.66996634", "0.66621476", "0.66572994", "0.66446304", "0.6635373", "0.6612659", "0.65987766", "0.659632...
0.6728157
12
Comparator used to compare two hands and output the difference in rankings.
@Override public final int compareTo(Hand otherHand) { return byTypeThenFaces.compare(this, otherHand); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int compareHandForWinner(Hand hand) {\n int thisRank = this.calcRank();\n int handRank = hand.calcRank();\n if (thisRank > handRank) return 1;\n if (thisRank < handRank) return -1;\n\n if( thisRank == 4 || thisRank == 7){\n if( getTripleIndex() > hand.getTripleI...
[ "0.6966749", "0.6837113", "0.67455375", "0.66419303", "0.6578596", "0.65388453", "0.65257466", "0.64763", "0.64374644", "0.6369176", "0.6366608", "0.636263", "0.6346811", "0.62778676", "0.6222683", "0.6212486", "0.6130487", "0.603536", "0.6022987", "0.5996369", "0.59553826", ...
0.6612727
4
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_check_login_status, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.72474307", "0.720233", "0.71960056", "0.7177653", "0.71080536", "0.70401675", "0.7038553", "0.70127106", "0.7010449", "0.6981193", "0.6946711", "0.694019", "0.6934445", "0.69181925", "0.69181925", "0.68916565", "0.6884232", "0.6875887", "0.6875264", "0.68624145", "0.686241...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79043454", "0.7805307", "0.7766523", "0.7726966", "0.76315224", "0.7621912", "0.758477", "0.75306976", "0.74880254", "0.74575543", "0.74575543", "0.7438532", "0.7421883", "0.7402763", "0.73917615", "0.7386916", "0.7379295", "0.7370095", "0.7362524", "0.7355668", "0.7345373...
0.0
-1
Constructs the List of Line.
public Lines() { lines = new LinkedList<Line>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resou...
[ "0.7095382", "0.70352906", "0.66698724", "0.6669848", "0.66073906", "0.6599725", "0.6475417", "0.64466214", "0.6405152", "0.6356871", "0.6348248", "0.6280176", "0.62715983", "0.61980647", "0.61839503", "0.6174551", "0.61248744", "0.6115223", "0.6113028", "0.61001474", "0.6096...
0.7075357
1
Adds a line to the collection of lines.
public synchronized void addLine(Line line) { lines.add(line); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addLine(String line){\n if (line != null && line.trim().length() > 0){\n fileLines.add(line);\n parsed = false;\n }\n }", "private void addLine()\n\t{\n\t\tlines.add(printerFormatter.markEOL());\n\t}", "public void addItem(LineItem lineItem){\n\t\t\n\t\tlineItems.add(lineItem);\n\t...
[ "0.75882655", "0.7519813", "0.74026644", "0.73868185", "0.73712194", "0.71934384", "0.71329856", "0.7115084", "0.70570034", "0.70278805", "0.6963663", "0.6924217", "0.6893064", "0.6847574", "0.6795001", "0.6783011", "0.675332", "0.65992033", "0.6566145", "0.654087", "0.652435...
0.86380124
0
Returns the amount of lines in the collection.
public int size() { synchronized (lines) { return lines.size(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLinesCount() {\n return lines.length;\n }", "int getLinesCount();", "int getNumberOfLines();", "public int lines() {\n return list.size();\n }", "public int getNumLines() {\n\t\treturn numLines;\n\t}", "public int size() {\n return lines.size();\n }", "public...
[ "0.8404109", "0.8204435", "0.8015038", "0.794792", "0.7940673", "0.7879491", "0.78486127", "0.7821207", "0.7704724", "0.763534", "0.75897294", "0.7543978", "0.74713284", "0.7466045", "0.74443394", "0.72951525", "0.72530216", "0.71888936", "0.70192677", "0.69186294", "0.690561...
0.7970364
3
Clears the collections of lines.
public void clear() { synchronized (lines) { lines.clear(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\r\n this.line.clear();\r\n }", "public synchronized void resetLineItems() {\n lineItems = null;\n }", "public void resetLines() {\r\n\t\tsetLines(new HashMap<String, ArrayList<Integer>>());\r\n\t}", "public void resetClearedLines() {\n this.myClearedLines = 0;\n ...
[ "0.80432653", "0.7583062", "0.748056", "0.747127", "0.7249293", "0.72462845", "0.71358204", "0.7094422", "0.6775879", "0.6772087", "0.6735283", "0.6702374", "0.66883457", "0.6651945", "0.6634698", "0.6627504", "0.66224396", "0.6617331", "0.65367067", "0.6521737", "0.6512313",...
0.8754068
0
A single line of data representing all of the lines.
@Override public synchronized String toString() { synchronized (lines) { StringBuilder sb = new StringBuilder() .append(lines.size()).append(' ') .append(numberOfClients).append(' '); for(int i = size()-1; i >= 0; i--) { sb.append(lines.get(i).toString()).append(' '); } return sb.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LineData() {\n\t\t\tallPoints = new ArrayList<>(SIZE_OF_ORIGINAL_LIST);\n\t\t}", "@Override\n public Line getLine() {\n return line;\n }", "public static ArrayList getLines() {\n return lines;\n }", "public String Line() {\n return \"======================================...
[ "0.6310711", "0.60707027", "0.6038626", "0.60179937", "0.5994606", "0.59889597", "0.59856087", "0.5965953", "0.5957542", "0.5956325", "0.59352106", "0.59236556", "0.58833045", "0.58822143", "0.5845768", "0.58433324", "0.58156174", "0.58041227", "0.5795671", "0.57622635", "0.5...
0.58042514
17
Increments the number of clients by one.
public synchronized void incrementClients() { numberOfClients++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void increaseNumberOfClients()\n {\n ++numberOfClients;\n }", "public void incrementClients() {\n\t\tconnectedClients.incrementAndGet();\n\t}", "private synchronized void incrNumCurrentClients() {\n\t\t\tthis.numCurrentClients++;\n\t\t\tthis.numTotalClients++; // only increases, neve...
[ "0.8549339", "0.8381283", "0.800545", "0.7177814", "0.70608914", "0.7053468", "0.6987763", "0.6964277", "0.6878056", "0.6840863", "0.6830974", "0.682256", "0.6796721", "0.6786111", "0.6716718", "0.67090714", "0.6700663", "0.6685986", "0.66761416", "0.66682404", "0.6667499", ...
0.86784095
0
Decrements the number of clients by one.
public synchronized void decrementClients() { numberOfClients--; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void decreaseNumberOfClients()\n {\n --numberOfClients;\n }", "public void decrementClients() {\n\t\tconnectedClients.decrementAndGet();\n\t}", "public static void clientsDecrement() {\n if (clientsNumber > 0) {\n clientsNumber--;\n }\n System.out.prin...
[ "0.81408125", "0.80348563", "0.78883284", "0.70479614", "0.7036396", "0.69688904", "0.6811017", "0.6666048", "0.6467926", "0.6426999", "0.6335748", "0.63104004", "0.63083595", "0.62945646", "0.61399347", "0.61099386", "0.6107222", "0.6030678", "0.59980685", "0.597609", "0.593...
0.8292591
0
How many clients are connected?
public int getClients() { return numberOfClients; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}", "int getConnectio...
[ "0.8544379", "0.82958037", "0.7953395", "0.7852908", "0.78244317", "0.7812878", "0.7807157", "0.7804446", "0.77550954", "0.7641792", "0.76290274", "0.7543383", "0.7510872", "0.7503415", "0.7487362", "0.746108", "0.7453423", "0.74380535", "0.74245006", "0.7323457", "0.73194164...
0.7966055
2
Safely draw the contents of the lines array to the screen.
public void draw() { synchronized (lines) { for(int i = lines.size()-1; i >= 0; i--) { lines.get(i).draw(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawLines(float[] sDebugLines, Paint paint) {\n\t\t\n\t}", "private void drawString(final Graphics2D gfx, final List<String> lines) {\n for (int offset = 0; offset < lines.size(); ++offset) {\n gfx.setPaint(Color.BLACK);\n gfx.drawString(\n lines.get(offset...
[ "0.67554265", "0.63383967", "0.611986", "0.6098606", "0.60046995", "0.584221", "0.57496506", "0.5721517", "0.5716394", "0.56989825", "0.5695703", "0.56907433", "0.5660984", "0.5646288", "0.5645665", "0.5624667", "0.55608314", "0.5554818", "0.5553563", "0.5517947", "0.5503289"...
0.69489217
0
Autogenerated main method to display this JPanel inside a new JFrame.
public static void main(String[] args) { JFrame frame = new JFrame(); frame.getContentPane().add(new StartPanel()); frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); frame.pack(); frame.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Main() {\n initComponents();\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n }", "public JFrameMain() {\n initComponents();\n \n }", "public Main() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n \n ...
[ "0.7508166", "0.7435579", "0.73652273", "0.73221266", "0.7316699", "0.73064786", "0.72991896", "0.7263739", "0.7250871", "0.7250871", "0.7250871", "0.7250871", "0.7250871", "0.72151387", "0.7208178", "0.7187399", "0.7167483", "0.7163679", "0.7161737", "0.7161441", "0.7146514"...
0.0
-1
Created by kkk on 7/7/2018.
public interface DetailVO { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.61362845", "0.58923197", "0.5798911", "0.578337", "0.57645714", "0.57612175", "0.57131976", "0.57131976", "0.5673241", "0.56719196", "0.56677705", "0.56407624", "0.5635371", "0.5586097", "0.55746603", "0.55667883", "0.5555253", "0.5555253", "0.5555253", "0.5555253", "0.555...
0.0
-1
Costruttore vuoto per istanziare un oggetto AETinteractions
public AETinteractions() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TypeAssociation getAssocieCommeObjetAction();", "public RisultatiRicercaStampaAllegatoAttoModel() {\n\t\tsuper();\n\t\tsetTitolo(\"Risultati di ricerca stampe allegato atto\");\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "@Override\n public void atacar(Jinete jinete, Pie...
[ "0.5905014", "0.576142", "0.5549407", "0.5546395", "0.5536359", "0.5503159", "0.5448924", "0.54381365", "0.54178506", "0.54123455", "0.5411353", "0.54111385", "0.5376126", "0.5342133", "0.5339412", "0.53375137", "0.53327185", "0.53322905", "0.52860373", "0.528468", "0.5284517...
0.67935115
0
Istanzia un oggetto AETinteractions con le interazioni di input e output indicate dai parametri
public AETinteractions(InputInteractions inIn, OutputInteractions ouIn) { // assegna le interazioni di input this.InIn = inIn; // assegna le interazioni di output this.OuIn = ouIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void print()\r\n\t\t{\r\n\t\tSystem.out.println(\"AETInteractions object\");\r\n\t\tSystem.out.println(\"Input interactions\");\r\n\t\t// stampa le interazioni di input\r\n\t\tif (getInIn() != null) getInIn().print();\r\n\t\tSystem.out.println(\"Output interactions\");\r\n\t\t// stampa le interazioni di out...
[ "0.55750936", "0.5485706", "0.54378647", "0.54031307", "0.5373103", "0.5322596", "0.5320722", "0.53108644", "0.52714044", "0.5264627", "0.52534336", "0.5221642", "0.52095854", "0.5190755", "0.51700246", "0.5166724", "0.5166714", "0.51456857", "0.5121657", "0.5105896", "0.5101...
0.68065655
0
Restituisce le interazioni di input di un tipo architetturale.
public InputInteractions getInIn() { // restituisce le interazioni di input return this.InIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Input getObjetivo();", "protected void readData(DataInput input) throws IOException {\n try {\n operationStatus = input.readByte();\n\n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n exception = input.readByte();\n } else {\n // We ha...
[ "0.5956795", "0.57385373", "0.5507448", "0.5400573", "0.5324761", "0.5248673", "0.5219775", "0.5177469", "0.51523566", "0.51488996", "0.50916606", "0.5071985", "0.5041291", "0.5036773", "0.5027104", "0.50092924", "0.4992025", "0.49786058", "0.49772063", "0.497204", "0.4961327...
0.0
-1
Restituisce le interazioni di output di un tipo architetturale.
public OutputInteractions getOuIn() { // restituisce le interazioni di output return this.OuIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OutputArchive(ObjectOutput output) {\n this.output = output;\n }", "public abstract Object getOutput ();", "private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\...
[ "0.609348", "0.5910354", "0.5895036", "0.5716219", "0.5711013", "0.5626886", "0.55642647", "0.55608374", "0.5528962", "0.5527362", "0.5481974", "0.5435361", "0.5435361", "0.54318166", "0.54156375", "0.53982866", "0.5397827", "0.53754365", "0.53728074", "0.53424066", "0.532385...
0.0
-1
Imposta le interazioni di input uguali a quelle indicate dal parametro.
public void setInIn(InputInteractions inIn) { // assegna le interazioni di input this.InIn = inIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void limparCamposInput(){\n txtDisciplina.setText(\"\");\n txtAssunto.setText(\"\");\n txtDescricao.setText(\"\");\n imagemEnunciado.setImage(imageDefault);\n imagemResposta.setImage(imageDefault);\n }", "public void userInput() {\r\n System.out.println(\"You w...
[ "0.6063579", "0.6059378", "0.59281033", "0.5882194", "0.5757655", "0.574035", "0.57287025", "0.5671394", "0.56532925", "0.55767894", "0.5532324", "0.55170983", "0.5495068", "0.54917526", "0.54896533", "0.54842347", "0.54746664", "0.54525346", "0.54334843", "0.54231286", "0.54...
0.0
-1
Imposta le interazioni di output uguali a quelle indicate dal parametro.
public void setOuIn(OutputInteractions ouIn) { // assegna le interazioni di output this.OuIn = ouIn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void output() {\n System.out.printf(\"Dien tich: %.2f \\n\", getArea());\n System.out.printf(\"Chu vi: %.2f \\n\", getPeripheral());\n }", "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t\tSystem.out.println(\"Condicoes atuais: \" + temp + \"°C e \" + umid + \"% de umidade \" \r\n\t\t\t...
[ "0.5965992", "0.5906522", "0.5895467", "0.5831038", "0.57987267", "0.57671744", "0.5735087", "0.57338184", "0.5714738", "0.57075816", "0.5672247", "0.56721413", "0.5666305", "0.56288505", "0.5616008", "0.55992293", "0.5580347", "0.5575413", "0.5565248", "0.55500954", "0.55458...
0.0
-1
Stampa sullo standard output le informazioni relative ad un oggetto AETinteractions.
public void print() { System.out.println("AETInteractions object"); System.out.println("Input interactions"); // stampa le interazioni di input if (getInIn() != null) getInIn().print(); System.out.println("Output interactions"); // stampa le interazioni di output if (getOuIn() != null) getOuIn().print(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}", "public void ektypwsiAstheni() {\n\t\t// Elegxw an yparxoun astheneis\n\t\tif(numOfPatient != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPatient; i++)\n\t\t\t{\n\t\t\t\tSystem.out.pr...
[ "0.60339266", "0.5900778", "0.5846487", "0.5837829", "0.58176804", "0.5793287", "0.57773656", "0.57679904", "0.5767228", "0.5759394", "0.5738178", "0.57109225", "0.5696897", "0.5677269", "0.567442", "0.5655315", "0.5613026", "0.55848134", "0.55715775", "0.55523115", "0.554640...
0.62832695
0
Copia i dati contenuti in questo oggetto.
public AETinteractions copy() { AETinteractions a = new AETinteractions(); if (getInIn() != null) a.setInIn(getInIn().copy()); if (getOuIn() != null) a.setOuIn(getOuIn().copy()); return a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getDato() {\r\n return dato;\r\n }", "public void setDato(int dato) {\r\n this.dato = dato;\r\n }", "private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n ...
[ "0.61876863", "0.61470443", "0.6098559", "0.5955736", "0.59357953", "0.5883296", "0.58627677", "0.585701", "0.5812864", "0.58055145", "0.5799305", "0.5766225", "0.57567954", "0.57481223", "0.5747031", "0.5746294", "0.5741885", "0.56600654", "0.5656613", "0.564607", "0.5632435...
0.0
-1
Checks for whether it is white or black's turn.
public void switchPlayer() { isWhitesTurn = !isWhitesTurn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean meTurn(){\n return (isWhite && isWhitePlayer) || (!isWhite && !isWhitePlayer);\n }", "public int hasBlackWon() {\n\t\tif(blackPieces == 0) {\n\t\t\treturn 1;\n\t\t} else if(whitePieces == 0) {\n\t\t\treturn 2;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "public boolean isBlack () { return (this...
[ "0.7663791", "0.710471", "0.705276", "0.6828261", "0.6749153", "0.6685214", "0.6674756", "0.6633488", "0.6628327", "0.65978", "0.65875363", "0.6517042", "0.64796907", "0.6475463", "0.64708877", "0.6466975", "0.6464902", "0.6453271", "0.64287156", "0.6423537", "0.6417981", "...
0.0
-1
Create the login pane.
public PalletOverviewPane(Database db) { super(db); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void login(){\n displayPane(loginP);\n }", "public LoginWindow()\n {\n super(\"Login\");\n\n myLoginPanel = new LoginPanel(this);\n this.setResizable(false);\n this.setContentPane(makePanel());\n this.pack();\n this.setVisible(true);\n }", "p...
[ "0.7773247", "0.7493506", "0.74667275", "0.7437241", "0.73921233", "0.7330408", "0.73264503", "0.72964406", "0.7250353", "0.72284657", "0.7227949", "0.72264874", "0.7216277", "0.71765214", "0.70323455", "0.69977117", "0.69877243", "0.696063", "0.695014", "0.69480485", "0.6931...
0.0
-1
Create the top panel, consisting of the text field.
public JComponent createTopPanel() { // content(); fields = new JTextField[NBR_FIELDS]; myTable = new PalletTable(db); table = new JTable(myTable); table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); table.setPreferredScrollableViewportSize(new Dimension(750, 100)); table.setFillsViewportHeight(true); scroll = new JScrollPane(table); // content(); mainPanel= new JPanel(); mainPanel.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); c.gridy=0; mainPanel.add(scroll,c); c.gridy=1; mainPanel.add(content(),c); //scroll.setPreferredSize(new Dimension(300,250)); return mainPanel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPanel topPanel()\r\n\t{\r\n\t\tJPanel top = new JPanel();\r\n\t\ttop.setLayout(new GridLayout(0,1));\r\n\t\ttop.add(input);\r\n\t\t//top.add(submit);\r\n\t\treturn top;\r\n\t}", "private JPanel buildTopPanel() {\n\t\tJPanel topPanel = new JPanel(new BorderLayout());\n\t\t\n\t\tJLabel titleLabel = new JL...
[ "0.7485949", "0.74739474", "0.7012473", "0.691309", "0.68782836", "0.673046", "0.67006224", "0.6681267", "0.66731685", "0.6668624", "0.66562515", "0.66175085", "0.6597464", "0.65607333", "0.6538924", "0.65381116", "0.6441469", "0.6414854", "0.6414203", "0.63817084", "0.638169...
0.74541664
2
Create the bottom panel, consisting of the login button and the message line.
public JComponent createBottomPanel() { JButton[] buttons = new JButton[0]; /* buttons[0] = new JButton("Save"); buttons[0].setActionCommand("0"); buttons[1] = new JButton("Cancel"); buttons[1].setActionCommand("1");*/ ActionHandler actHand = new ActionHandler(); // fields[PRODUCT_NAME].addActionListener(actHand); return new ButtonAndMessagePanel(buttons, messageLabel, actHand); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@AutoGenerated\r\n\tprivate Panel buildPnlLogin() {\n\t\tpnlLogin = new Panel();\r\n\t\tpnlLogin.setImmediate(false);\r\n\t\tpnlLogin.setWidth(\"-1px\");\r\n\t\tpnlLogin.setHeight(\"500px\");\r\n\t\t\r\n\t\t// layoutLogin\r\n\t\tlayoutLogin = buildLayoutLogin();\r\n\t\tpnlLogin.setContent(layoutLogin);\r\n\t\t\r\n...
[ "0.6945626", "0.6851197", "0.68484575", "0.67996734", "0.6770511", "0.6739808", "0.67202884", "0.6622576", "0.6560356", "0.65150356", "0.6500813", "0.6495179", "0.64804655", "0.64770186", "0.64503", "0.64478153", "0.6447293", "0.6429977", "0.64243037", "0.63923335", "0.638495...
0.6792396
4
Perform the entry actions of this pane, i.e. clear the message line.
public void entryActions() { clearMessage(); myTable.update(); mainPanel.revalidate(); mainPanel.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void ACTION_ON_CLEAR(ActionEvent arg0) {\n\t\ttextArea_1.setText(\"\");\r\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tchatArea.setText(\"\");\n\t\t}", "public synchronized void clearMessage() {\n\t\tthis.commonTxtView.setText(\"\");\n\t}", "private void clearButt...
[ "0.6735923", "0.66212153", "0.6587222", "0.6390465", "0.61761045", "0.61642337", "0.61606705", "0.6122897", "0.6112217", "0.60600096", "0.60309535", "0.6019201", "0.5933153", "0.5924673", "0.5920938", "0.59015864", "0.5868775", "0.5829935", "0.57898647", "0.57709634", "0.5749...
0.65014964
3
Called when the user clicks the login button. Checks with the database if the user exists, and if so notifies the CurrentUser object.
public void actionPerformed(ActionEvent e) { //String userId = fields[PRODUCT_NAME].getText(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"admin@gibmit.ch\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)co...
[ "0.73439527", "0.7025766", "0.69365764", "0.6892769", "0.68316174", "0.67317027", "0.6722561", "0.6691748", "0.6674312", "0.66020536", "0.6597385", "0.6593096", "0.65689576", "0.65674716", "0.65561104", "0.6544391", "0.6531175", "0.653113", "0.65204805", "0.6519562", "0.65060...
0.0
-1
Without tradition, art is a flock of sheep without a shepherd. Without innovation, it is a corpse. Winston Churchill
public static void main(String[] args) { System.out.println("Hello World! :)"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String makeUpMetaphysics() {\n\t\treturn \"Yes I know what I'm talking about and I understand existence more than everyone else. As \"\n\t\t\t\t+ \"you can see I wrote all these books: \" + books + \". I am truly the wokest being alive.\";\n\t}", "public void art() {\n arJ();\n }", "public Art...
[ "0.572057", "0.55392605", "0.54650825", "0.54570454", "0.5436583", "0.5421407", "0.5416929", "0.52964526", "0.52645826", "0.5257316", "0.5237383", "0.5229503", "0.52092314", "0.5206749", "0.5186512", "0.51825905", "0.5177986", "0.51713526", "0.51339877", "0.5125481", "0.50971...
0.0
-1
Instantiates a new Client instance that will communicate with the SevenBridges REST API. See the classlevel JavaDoc for a usage example.
public DefaultClient(ApiKey apiKey, String baseUrl, Proxy proxy, AuthenticationScheme authenticationScheme, int connectionTimeout) { Assert.notNull(apiKey, "apiKey argument cannot be null."); Assert.isTrue(connectionTimeout >= 0, "connectionTimeout cannot be a negative number."); RequestExecutor requestExecutor = createRequestExecutor(apiKey, proxy, authenticationScheme, connectionTimeout); this.dataStore = createDataStore(requestExecutor, baseUrl, apiKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Client createClient() {\n JacksonJaxbJsonProvider provider = new JacksonJaxbJsonProvider();\n provider.setAnnotationsToUse(new Annotations[]{Annotations.JACKSON});\n\n ClientConfig config = new ClientConfig(provider);\n //Allow delete request with entity\n config.pr...
[ "0.66307646", "0.633632", "0.6329847", "0.63095874", "0.62686217", "0.62065357", "0.6146611", "0.6082432", "0.6072442", "0.606821", "0.59856665", "0.5980274", "0.5947927", "0.5931063", "0.5879905", "0.58389205", "0.5837925", "0.57917047", "0.57796794", "0.5764947", "0.5755182...
0.0
-1
/ updates location if force or location information is newer or more accurate maybe not always the newer location should be used, maybe it should sometimes use the more accurate
@Override public Location updateLocation(Location location, boolean force) { if(force|| location.getTimestampmilis()>=pos.getTimestampmilis()|| ( pos.getAccurancy()==-1|| location.getAccurancy()>=0&&(location.getAccurancy()<pos.getAccurancy()) ) ){ pos=location; }else { Logger.d( "Location not updated"); } return pos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateLocation(Location l){\n\n //Check if we are due an update (the difference between now and the last update must be more than the frequency of updates)\n long time = System.currentTimeMillis();\n l.setTime(time); //Use the time from the device TODO Do we need this step?...
[ "0.7297006", "0.7289221", "0.7246266", "0.71723187", "0.70260763", "0.70066786", "0.69863766", "0.6961322", "0.69131345", "0.69074816", "0.6897251", "0.6894784", "0.6874629", "0.6872632", "0.6855693", "0.6839225", "0.683439", "0.683436", "0.6818683", "0.681437", "0.67858636",...
0.7484065
0
constructor that accept an array of objects of type T and sets array field
public NumberAnalyzer(T[] array){ this.array = array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setArrayGeneric(int paramInt)\n/* */ {\n/* 1062 */ this.length = paramInt;\n/* 1063 */ this.datums = new Datum[paramInt];\n/* 1064 */ this.pickled = null;\n/* 1065 */ this.pickledCorrect = false;\n/* */ }", "public MyArray() {\n this.length = 10;\n this.array = (T[]) Arra...
[ "0.6872971", "0.6854474", "0.68294305", "0.6824044", "0.66973674", "0.66785496", "0.66703665", "0.6643855", "0.65312916", "0.6521516", "0.6315316", "0.6299874", "0.62619877", "0.62273043", "0.6188447", "0.6173878", "0.6173385", "0.616987", "0.6162719", "0.61093587", "0.610213...
0.65983456
8
methods that finds the highest value in the array
public T findHighest(){ T highest = array[0]; for (int i=0;i<array.length; i++) { if (array[i].doubleValue()>highest.doubleValue()) { highest = array[i]; } } return highest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t...
[ "0.820777", "0.79264885", "0.7916531", "0.76920855", "0.75777364", "0.7566722", "0.7561208", "0.7552078", "0.7546082", "0.7523085", "0.7509662", "0.7503172", "0.75018865", "0.7493489", "0.749287", "0.7486448", "0.7477822", "0.74690425", "0.74506456", "0.742881", "0.7383663", ...
0.85870475
0
methods that finds the lowest value in the array
public T findLowest(){ T lowest = array[0]; for (int i=0;i<array.length; i++) { if (array[i].doubleValue()<lowest.doubleValue()) { lowest = array[i]; } } return lowest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t...
[ "0.83465374", "0.81309956", "0.80247015", "0.79920727", "0.79091793", "0.7790307", "0.77594", "0.7726405", "0.771069", "0.7707769", "0.76904505", "0.75715125", "0.756236", "0.75394386", "0.75354487", "0.75265366", "0.7524477", "0.74995786", "0.7493393", "0.7470156", "0.746566...
0.8611744
0
method that finds total of the elements of the array
public double getTotal(){ double total = 0; for(int i=0;i<array.length; i++){ total += array[i].doubleValue(); } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTotalElements();", "public int sum()\n\t{\n\t\tint sum = 0;\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tsum += array[index];\n\t\t}\n\t\treturn sum;\n\t}", "public void calculateArray() {\n\n for (int i = 0; i < array.length; i++) {\n sum += array[i];\n }\...
[ "0.7686397", "0.7302115", "0.72577477", "0.7174479", "0.71663064", "0.7061218", "0.7059164", "0.70283175", "0.7003978", "0.682496", "0.6816075", "0.67514133", "0.6711858", "0.66753346", "0.66694325", "0.6602372", "0.66003245", "0.6595636", "0.65874445", "0.65809023", "0.65753...
0.7772078
0
method that finds average of the elements of the array
public double getAverage(){ return getTotal()/array.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double average(){\n double avg = 0;\n double sum = 0;\n for (T t : arr) {\n // sum += t.doubleValue();\n }\n\n return sum / arr.length;\n }", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\tretu...
[ "0.8544105", "0.84776944", "0.84762484", "0.8352217", "0.833154", "0.81015754", "0.80881065", "0.80755836", "0.8057593", "0.8005013", "0.79795843", "0.78563637", "0.7848062", "0.78472835", "0.7824747", "0.7771646", "0.77507603", "0.77506196", "0.7679627", "0.7648006", "0.7633...
0.8001103
10
Method that prints out the array
public void printArray() { for (int i=0;i<array.length; i++) { System.out.print(array[i] + " "); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}", "public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t...
[ "0.8455384", "0.8210579", "0.77639997", "0.77026194", "0.76962125", "0.7677944", "0.7669864", "0.76541096", "0.7640236", "0.76386374", "0.7622377", "0.757818", "0.7577105", "0.7569001", "0.7557512", "0.75441736", "0.7536687", "0.7526212", "0.75216925", "0.7519968", "0.7504161...
0.799411
2
Creates a RandomObject as a ObjectType.SimpleObject
public RandomObject(Config conf, Service parentService) { super(conf, parentService, ObjectType.SimpleObject, "SimpleObject"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OBJECT createOBJECT();", "Simple createSimple();", "public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }", "ObjectElement createObjectElement();", "public abstract OwObjectSkeleton createObjectSkeleton(OwObjectClass objectclass_p, OwResource resour...
[ "0.6910257", "0.6689187", "0.6323046", "0.6163234", "0.6088824", "0.60883296", "0.5926333", "0.59012043", "0.5844803", "0.5765079", "0.5685143", "0.5666749", "0.5656007", "0.56496793", "0.5627754", "0.56214553", "0.5615166", "0.56135833", "0.5603242", "0.5585098", "0.5580136"...
0.6334497
2
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7248419", "0.7203426", "0.71970934", "0.7178769", "0.71092147", "0.7040898", "0.7039756", "0.70138675", "0.70115006", "0.6982194", "0.694743", "0.69407934", "0.6935566", "0.6919299", "0.6919299", "0.68929094", "0.68849903", "0.68766844", "0.6876271", "0.68636256", "0.68636...
0.0
-1
TODO: check this.exception TODO: do something with the feed
protected void onPostExecute(String feed) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFeed() {\n\t\tfeedSvc.getFeed(date, new GetFeedCallback());\n\t\tdate=new Date();\n\t}", "private void refreshFeed() {\n Calendar cal = new GregorianCalendar();\n cal.set(Calendar.HOUR_OF_DAY, 0);\n cal.set(Calendar.MINUTE, 0);\n cal.set(Calendar.SECOND, 0);\n c...
[ "0.67663413", "0.6731803", "0.6681636", "0.63528603", "0.6322203", "0.61723095", "0.61572605", "0.6117782", "0.6009863", "0.5962585", "0.5955266", "0.5946947", "0.5941059", "0.59163797", "0.5898071", "0.58874947", "0.58724016", "0.5845921", "0.5838648", "0.583712", "0.5815586...
0.5647599
32
Create the ExportThread object. The supplied parameters will be passed to the native process.
public ExportThread( String[] params ) { super(); execParams = params; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createThread() {\n }", "private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInte...
[ "0.5443543", "0.5312684", "0.5263173", "0.52105206", "0.5024171", "0.49984762", "0.49573997", "0.48923483", "0.4891871", "0.48228824", "0.47323805", "0.4722643", "0.4718589", "0.47113332", "0.46695673", "0.45896712", "0.45866635", "0.4584968", "0.45533237", "0.45359462", "0.4...
0.7092094
0
Run the native export process with the parameters supplied to the constructor. The status of the export can be retrieved by calling getStatusCode.
public void run() { Process exportProc = null; try { exportProc = Runtime.getRuntime().exec( execParams ); exportProc.waitFor(); } catch( IOException ex ) { statusCode = ExportStatusCode.SCCERR_JAVA_IO_ERROR; return; } catch( InterruptedException ex ) { // We've been interrupted (probably a timeout). Kill the process. exportProc.destroy(); statusCode = ExportStatusCode.SCCERR_JAVA_INTERRUPTED; return; } statusCode = new ExportStatusCode( exportProc.exitValue() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static native void export(int pin, int direction) throws RuntimeException;", "public static void main(String[] args) throws Exception {\n\t\texport();\r\n\t}", "public void runExport(AbstractONDEXPluginInit export, ONDEXGraph inputGraph) throws Exception {\n ExportArguments exportArgs = (ExportAr...
[ "0.5816493", "0.56844145", "0.5549704", "0.547865", "0.54336876", "0.5349131", "0.52027965", "0.5101203", "0.5068238", "0.5020993", "0.4991417", "0.49743626", "0.49657393", "0.48084283", "0.47288844", "0.47021216", "0.4697017", "0.4694645", "0.4693044", "0.46875864", "0.46437...
0.7257029
0
Return the ExportStatusCode for the result of the export.
public ExportStatusCode getStatusCode() { return statusCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int toStatusCode(){\n\t\t\treturn _code;\n\t\t}", "public BigDecimal getExportStatus(String id) throws ProvisioningApiException {\r\n\t\ttry {\r\n\t\t\tExportStatusResponse resp = exportApi.getExportStatus(id);\r\n\t\r\n\t\t\tif (!resp.getStatus().getCode().equals(0)) {\r\n\t\t\t\tthrow new ProvisioningAp...
[ "0.6120547", "0.6019866", "0.59689003", "0.59502906", "0.59502906", "0.5836465", "0.5762301", "0.5762301", "0.5762301", "0.5762301", "0.5762119", "0.57135284", "0.57054245", "0.5659155", "0.5657054", "0.563044", "0.55989283", "0.5590847", "0.5589196", "0.5589196", "0.5589196"...
0.7655898
0
Get the ViewPager and set it's PagerAdapter so that it can display items
@Override public void onViewCreated(View view, Bundle savedInstanceState) { mViewPager = (ViewPager) view.findViewById(R.id.viewpager); mViewPager.setAdapter(new TabsPagerAdapter(getActivity().getSupportFragmentManager())); mViewPager.setOffscreenPageLimit(0); // Give the SlidingTabLayout the ViewPager, this must be done AFTER the ViewPager has had // it's PagerAdapter set. mSlidingTabLayout = (SlidingTabLayout) view.findViewById(R.id.sliding_tabs); //mSlidingTabLayout.setCustomTabView(R.layout.custom_tab_title, R.id.tabtext); mSlidingTabLayout.setDividerColors(Color.parseColor("#EEEEEE")); TypedValue tv = new TypedValue(); if (getActivity().getApplicationContext().getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true)) { actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data, getActivity().getResources().getDisplayMetrics()); } mSlidingTabLayout.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, actionBarHeight)); mSlidingTabLayout.setSelectedIndicatorColors(Color.parseColor("#d32f2f")); mSlidingTabLayout.setBackgroundColor(Color.parseColor("#FFFFFF")); mSlidingTabLayout.setCustomTabView(R.layout.tab_custom_layout, 0); mSlidingTabLayout.setViewPager(mViewPager); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initializeViewPager() {\n mProductsViewPagerAdapter = new ProductsViewPagerAdapter(this, mMobileImages);\n mBinding.vPPdpProductImages.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positio...
[ "0.71545595", "0.70294565", "0.7021111", "0.6974758", "0.69657844", "0.69563717", "0.69534326", "0.69407296", "0.6933994", "0.6932523", "0.69048905", "0.68995225", "0.68457484", "0.6840814", "0.68024844", "0.67914665", "0.67760205", "0.6760195", "0.67577034", "0.67330474", "0...
0.0
-1
/ Same size n
public static int getMedian(int[] A, int[] B) { int i = 0; int j = 0; int count; int m1 = 0; int m2 = 0; int n = A.length; // For different size case // int n = A.length + B.length; // if (n % 2 == 0) { // n = n/2; // } // else // n = (n/2 + 1); for (count = 0; count <= n; count++) { if (i == n) { m1 = m2; m2 = B[0]; break; } else if (j == n) { m1 = m2; m2 = A[0]; } if (A[i] < B[j]) { m1 = m2; m2 = A[i]; } else { m1 = m2; m2 = B[j]; } } return ((m1+m2)/2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int size(){return n;}", "public static void test_WQU_BySize(int n) {\n WQU_BySize bySize = new WQU_BySize(n);\n Random random = new Random();\n\n while (bySize.count() != 1) {\n int first = random.nextInt(n);\n int second = random.nextInt(n);\n\n if (!...
[ "0.6566714", "0.6448944", "0.61378956", "0.6071689", "0.6012186", "0.59995407", "0.5987517", "0.59863645", "0.5964519", "0.5958396", "0.5935646", "0.5914537", "0.58767426", "0.5871044", "0.586878", "0.5844501", "0.5823944", "0.5814263", "0.58142203", "0.5812244", "0.57924396"...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.subscribed_user_list_recyclar_view_fragment, container, false); ButterKnife.bind(this, v); topLayout.setVisibility(View.GONE); final LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getContext()); recyclerView.setLayoutManager(linearLayoutManager); DividerItemDecoration mDividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(), linearLayoutManager.getOrientation()); recyclerView.addItemDecoration(mDividerItemDecoration); if (isConnectionAvailable()) { userInfos = getUser(0); } else { emptyView.setVisibility(View.VISIBLE); progress.setVisibility(View.GONE); empty.setImageDrawable(getResources().getDrawable(R.drawable.ic_plug)); emptyText.setText("Oops, out of Connection"); setHasOptionsMenu(false); } searchEditText = NavDrawerActivity.getSearchEditText(); searchEditText.setHint("Search users"); searchEditText.addTextChangedListener(new TextWatcher() { @Override public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { } @Override public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { filterString = charSequence.toString(); tempuserINFO = new ArrayList<UserInfo>(); if (!userINFO.isEmpty()) { for (UserInfo ui : userINFO) { if (ui.getFullName().toLowerCase().contains(filterString.toLowerCase())) tempuserINFO.add(ui); } useradapter = new UserAdapter(getActivity(), R.layout.user_list_item_view, tempuserINFO); DividerItemDecoration mDividerItemDecoration = new DividerItemDecoration(recyclerView.getContext(), linearLayoutManager.getOrientation()); VerticalSpaceItemDecoration verticalSpaceItemDecoration = new VerticalSpaceItemDecoration(8); recyclerView.addItemDecoration(verticalSpaceItemDecoration); recyclerView.addItemDecoration(mDividerItemDecoration); recyclerView.setAdapter(useradapter); }else { emptyView.setVisibility(View.VISIBLE); empty.setVisibility(View.GONE); emptyText.setText("No users found"); } } @Override public void afterTextChanged(Editable editable) { } }); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.67412907", "0.6724716", "0.6723187", "0.670014", "0.66930395", "0.668976", "0.66880935", "0.66859615", "0.66779804", "0.6676099", "0.666739", "0.666672", "0.66664", "0.66621804", "0.66547215", "0.6650026", "0.6644537", "0.6640096", "0.66391146", "0.6635195", "0.6625797", ...
0.0
-1
Toast.makeText(getActivity(),res,Toast.LENGTH_SHORT).show(); Log.d("TAG", "onConnectListener: "+res);
@Override public void onConnectListener(String res) { try { JSONArray ja = new JSONArray(res); //Log.d(TAG, "onConnectListener: "+ja.length()); if (ja.length() == 0) { emptyView.setVisibility(View.VISIBLE); empty.setImageDrawable(getResources().getDrawable(R.drawable.ic_graduates)); progress.setVisibility(View.GONE); emptyText.setText("No students have registered yet"); } else { emptyView.setVisibility(View.GONE); for (int i = 0; i < ja.length(); i++) { UserInfo user = getuserInfo((JSONObject) ja.get(i)); if (UtilitiesAdi.getString(getActivity(), "sn").equals(String.valueOf(user.getUserNumber()))) { // Toast.makeText(getActivity(), "" + user.getUserNumber()+UtilitiesAdi.getString(getActivity(), "sn"), Toast.LENGTH_SHORT).show(); } else { userINFO.add(user); } } getActivity().setTitle("Users(" + userINFO.size()+")"); // Toast.makeText(getActivity(), ""+userINFO.size(), Toast.LENGTH_SHORT).show(); if (userINFO.isEmpty()){ emptyView.setVisibility(View.VISIBLE); empty.setImageDrawable(getResources().getDrawable(R.drawable.ic_graduates)); progress.setVisibility(View.GONE); emptyText.setText("No students have registered yet"); } } } catch (JSONException e) { e.printStackTrace(); //Log.d("TAG","ERROR "+e.toString()); } useradapter = new UserAdapter(getActivity(), R.layout.user_list_item_view, userINFO); recyclerView.setAdapter(useradapter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onConnected(Bundle arg0) {\n\n Toast.makeText(getContext(),\"Connected\",Toast.LENGTH_LONG);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"response is:\", error.toString());\n Toast.makeText(getActivity(...
[ "0.73398966", "0.7229416", "0.71969074", "0.7154754", "0.7037414", "0.6922921", "0.68710166", "0.68710166", "0.68378425", "0.6803384", "0.67232996", "0.67036617", "0.6669202", "0.6658883", "0.66482216", "0.66453445", "0.65674794", "0.6541065", "0.65087247", "0.65025985", "0.6...
0.60342926
75
2. Override the onCreateViewHolder method
@Override public UserHolder onCreateViewHolder(ViewGroup parent, int viewType) { // 3. Inflate the view and return the new ViewHolder View view; view = LayoutInflater.from(parent.getContext()) .inflate(this.itemResource, parent, false); return new UserHolder(this.context, view); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n }", "@Override\n public void onBindViewHolder(ViewHolder itemViewHolder, int position) {\n }", "@Override\n public void onBindViewHolder(MyHolder holder, int position) {\n\n }", "@Override\r\n public void onB...
[ "0.77755594", "0.7742763", "0.76526374", "0.76507133", "0.7613309", "0.7531119", "0.74482024", "0.734734", "0.7328331", "0.7315729", "0.73002195", "0.7266523", "0.7249225", "0.7243262", "0.7224357", "0.7221868", "0.72213745", "0.7221224", "0.72177356", "0.7215936", "0.7189808...
0.0
-1
4. Override the onBindViewHolder method
@Override public void onBindViewHolder(final UserHolder holder, final int position) { final UserInfo ui = userInfos.get(position); holder.fullName.setText(ui.getFullName()); holder.email.setText(ui.getUserName()); holder.view.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.content_frame, UserToUserChatFragment.newInstance("" + ui.getUserNumber(), ui.getFirstName() + " " + ui.getLastName())).addToBackStack(null).commit(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onBindViewHolder(ViewHolder itemViewHolder, int position) {\n }", "@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n }", "@Override\n public void onBindViewHolder(MyHolder holder, int position) {\n\n }", "@Override\r\n public void onB...
[ "0.83835167", "0.8329101", "0.81213236", "0.7927414", "0.77941525", "0.7775421", "0.7753369", "0.7685556", "0.7406441", "0.7280686", "0.72159404", "0.70852077", "0.707117", "0.7070244", "0.7063805", "0.70579326", "0.69677216", "0.69394755", "0.6928842", "0.6923363", "0.687435...
0.0
-1
Calculate the reward for the
public double getReward() { if (inGoalRegion()) { return REWARD_AT_GOAL; } else { return REWARD_PER_STEP; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTotalReward();", "public double getReward() {\n return reward;\n }", "private double getReward(History.HistoryView stateHistory){\n\t\tdouble reward = 0;\n\t\tList<DeathLog> friendlyDeaths = getDeaths(stateHistory, playernum);\n\t\tList<DeathLog> enemyDeaths = getDeaths(stateHistory, getEne...
[ "0.8295796", "0.764182", "0.73291665", "0.73291236", "0.70216084", "0.6986881", "0.6825726", "0.6821231", "0.67787766", "0.6715375", "0.6643313", "0.65405536", "0.65291977", "0.645806", "0.64293826", "0.6385031", "0.63799787", "0.63576573", "0.6314192", "0.62563074", "0.61720...
0.71490544
4
IS the agent past the goal marker?
public boolean inGoalRegion() { return position >= GOAL_POSITION; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isGoalReached(Transform currentRobotPose, Transform goal) {\n return currentRobotPose.planarDistanceToSquared(goal) < mDistanceCloseToGoalSquared;\n }", "public boolean foundGoal() \r\n\t{\r\n\t\t// Write the method that determines if the walker has found a way out of the maze.\r\n\t\tr...
[ "0.70972866", "0.70020616", "0.6971798", "0.6888297", "0.6744693", "0.67399853", "0.6730553", "0.66888887", "0.66888887", "0.66888887", "0.66888887", "0.66888887", "0.66888887", "0.6626267", "0.66158813", "0.65900314", "0.65503985", "0.6547475", "0.65258753", "0.6496495", "0....
0.7424757
0
Get the height of the hill at this position
public double getHeightAtPosition(double queryPosition) { return -Math.sin(HILL_PEAK_FREQUENCY * (queryPosition)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getH() {\n\t\treturn this.height;\n\t}", "public int getH() { return height; }", "long getHeight();", "public double getHeight();", "public double getHeight();", "double getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeight();", "public int getHeigh...
[ "0.78707653", "0.7837635", "0.7798813", "0.7789401", "0.7789401", "0.77529454", "0.7749669", "0.7749669", "0.7749669", "0.7749669", "0.7749669", "0.7749669", "0.7708404", "0.76955056", "0.7692742", "0.76917297", "0.769006", "0.769006", "0.769006", "0.769006", "0.769006", "0...
0.0
-1
Get the slop of the hill at this position
public double getSlope(double queryPosition) { /*The curve is generated by cos(hillPeakFrequency(x-pi/2)) so the * pseudo-derivative is cos(hillPeakFrequency* x) */ return Math.cos(HILL_PEAK_FREQUENCY * queryPosition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSegsLeft(){\r\n return segsLeft;\r\n }", "public int getSoul() {\n \t\treturn soul;\n \t}", "public int getSnakeStartLength();", "public double smilePos(){\r\n\r\n\t\treturn smile.getY();\r\n\r\n\t}", "public int getHgap()\n {\n return hgap;\n }", "public int getHgap() {\n/* */ ...
[ "0.6261678", "0.59832686", "0.5938175", "0.5798704", "0.57402825", "0.56905204", "0.5663932", "0.5642526", "0.56273115", "0.5616775", "0.560986", "0.5601958", "0.5585835", "0.5550407", "0.55313224", "0.55219096", "0.55090183", "0.5481382", "0.5477906", "0.5447484", "0.543682"...
0.0
-1
TODO Autogenerated method stub
@Override public String toString() { String rtn=this.x+"."+this.y; return rtn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
End of variables declaration//GENEND:variables
public Cliente getCliente() { return objCliente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1