query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
For updating the definition of class my.X, say: VersionManager.update("my.X");
public static void update(String qualifiedClassname) throws CannotUpdateException { try { Class c = getUpdatedClass(qualifiedClassname); Field f = c.getField(latestVersionField); f.set(null, c); } catch (ClassNotFoundException e) { ...
[ "void update(U modelUpdater, V oldVersion, V newVersion);", "PackageDefinition updatePackageDefinitionVersion(PackageDefinition packageDef, Long packageVersion);", "public Class getUpdateClass();", "public abstract void updatePackage(PackageParser.Package pkg);", "Vendor.Update update();", "void setVersio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether two nodes in the graph are connected via a directed edge with the given value.
public abstract boolean isConnectedInDirection(N n1, E edgeValue, N n2);
[ "public abstract boolean isConnected(k vertex1, k vertex2);", "boolean isEdge(int v1, int v2);", "public abstract boolean isConnected(N n1, E e, N n2);", "public abstract boolean hasEdge(int from, int to);", "@Override\n\tpublic boolean hasEdge(E node1, E node2) {\n\t\treturn connections.get(node1).contains...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
These are the canonical encodings specified by the Pack200 spec
static Stream<Arguments> canonicalEncodings() { return Stream.of( Arguments.of(1, "(1,256)"), Arguments.of(2, "(1,256,1)"), Arguments.of(3, "(1,256,0,1)"), Arguments.of(4, "(1,256,1,1)"), Arguments.of(5, "(2,256)"), ...
[ "String getDataEncoding();", "String getEncoding();", "public ICodec<String> utf_16be();", "public String getEncoding();", "String getSupportedEncoding(String acceptableEncodings);", "public String getEncodingType();", "public ICodec<String> utf_16le();", "public ICodec<CharSequence> utf_16be_sequence...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to convert StoreDto to Store Domain
public static Store getStore(final StoreDto _store){ Store store = new Store(); store.setStoreAddress(_store.getStoreAddress()); //store.setStoreCity(Integer.parseInt(_store.getStoreCity())); //store.setStoreId(Integer.parseInt(_store.getStoreId())); //store.setStoreLocality(Integer.parseInt(_store.getStoreLo...
[ "public static StoreDto getStoreDto(final Store _store){\n\t\tStoreDto store = new StoreDto();\n\t\tstore.setStoreAddress(_store.getStoreAddress());\n\t\tstore.setStoreCity(Integer.toString(_store.getStoreCity()));\n\t\tstore.setStoreId(Integer.toString(_store.getStoreId()));\n\t\tstore.setStoreLocality(Integer.toS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if an alarm requires being reinitialized, then sets a new pending intent
private static void reinitialize(Alarm alarm, Context context) { DateTime now = DateTime.now(); if(alarm.getEnabled() && alarm.getDate().isAfter(now.toInstant().getMillis())) { BroadcastRepository.getInstance().insert((Otter) context, alarm); } }
[ "public void setAlarm(){\n Log.d(\"AlarmManager\", \"Setting next alarm\");\n manager.set(AlarmManager.RTC_WAKEUP, (System.currentTimeMillis() + interval), pendingIntent);\n }", "private void addSetAlarmFromIntent()\n\t{\n\t\tIntent intent = getIntent();\n\t\tNacCardAdapter cardAdapter = this.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retorna o valor do atributo identificadorPainel
public String getIdentificadorPainel() { return identificadorPainel; }
[ "public void setIdentificadorPainel(String identificadorPainel) {\n\n\t\tthis.identificadorPainel = identificadorPainel;\n\t}", "public String getId_Pelanggan(){\r\n \r\n return id_pelanggan;\r\n }", "public java.lang.String getIdentificadorOde();", "java.lang.String getAoisId();", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Get Phone Number of Specific Contact from Name
public String getPhone(String name) { String num = ""; SQLiteDatabase db = this.getReadableDatabase(); Cursor cursor = db.rawQuery(DBQuery.ContactTable.SQL_GET_PHONE + "\"" + name + "\";", null); if(cursor.moveToFirst()) { if(cursor != null) { num = cursor.getString(0); ...
[ "java.lang.String getContactNum();", "public Contact getContact(String phoneNumber);", "public static String getContactName(Context context, String num) {\n\t\tString name = \"\";\n\t\tContentResolver resolver = context.getContentResolver();\n\t\tUri uri = Uri.parse(\"content://com.android.contacts/data/phones/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends a fixed length of the string to this string buffer, padding further if necessary.
public StringBufferFast appendLength(String str, int fixLen, char pad) { int len = (str != null) ? str.length() : 0; int newcount = count + fixLen; if (newcount > value.length) expandCapacity(newcount); if (fixLen > len) { if (len != 0) { str.getChars(0, len, value, count); count += len; } ...
[ "private void appendAndPad(final StringBuffer line_buffer,\n final int max_width,\n final String string) \n {\n final int string_width = string.length();\n\n for(int char_index = 0; char_index < max_width - string_width;\n ++char_index) \n l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the values in the given SharedPreference.
public static void clearSharedPreference(SharedPreferences pref) { SharedPreferences.Editor editor = pref.edit(); editor.clear(); editor.apply(); }
[ "private void clearSharedPreference() {\n //Instantiate SharedPreferences\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n //clears all saved data in SharedPreferences with tag sm_tag\n editor.clear();\n editor.apply();\n }", "public void clearPrefs() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the list of all animation callbacks that have been requested and have not been canceled.
public List<AnimationCallback> getAnimationCallbacks() { return callbacks; }
[ "public ArrayList<TweenCallback> getCallbacks()\n\t{\n\t\treturn callbacks;\n\t}", "@NonNull\n protected final List<Pair<PlayerCallback, Executor>> getCallbacks() {\n List<Pair<PlayerCallback, Executor>> list = new ArrayList<>();\n synchronized (mLock) {\n list.addAll(mCallbacks);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Informs player they landed on free parking and the amount collected.
@Override public void displayMessage() { Message.freeParking(getFreeParking()); }
[ "public void freeParking(Player player){\r\n player.addToWallet(FREEPARKING_FEE);\r\n }", "private void collectFreeParking(Player player) {\n int balance = player.getWallet();\n player.setWallet(balance + getFreeParking());\n setFreeParking(MIN_VALUE);\n }", "private void acqui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the employees value for this Account.
public java.lang.String getEmployees() { return employees; }
[ "public Set<Employee> getEmployees() {\n\t\treturn employees;\n\t}", "public RowSet getEmployeesVA() {\n return (RowSet) getAttributeInternal(EMPLOYEESVA);\n }", "public Set getEmployees() {\n return Collections.unmodifiableSet(employees);\n }", "private Employee[] getEmployees() {\n\t\tfo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checkAndMutate that atomically checks if a row matches the specified condition. If it does, it performs the specified action.
default CheckAndMutateResult checkAndMutate(CheckAndMutate checkAndMutate) throws IOException { return checkAndMutate(Collections.singletonList(checkAndMutate)).get(0); }
[ "public boolean checkAndMutate(byte [] row, byte [] family, byte [] qualifier,\n byte [] expectedValue, Writable w, Integer lockId, boolean writeToWAL)\n throws IOException{\n checkReadOnly();\n //TODO, add check for value length or maybe even better move this to the\n //client if this becomes a glob...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the minutes, between 0 and 59, in UTC.
public final native int getUTCMinutes() /*-{ return this.getUTCMinutes(); }-*/;
[ "public int Minutes() { return minutes; }", "public String getMinutes();", "public int getMinutes(){\n return (int) ((totalSeconds%3600)/60);\n }", "public int getMinutes() {\r\n return FormatUtils.uint8ToInt(mMinutes);\r\n }", "public final native double setUTCMinutes(int minutes) /*-{\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of all usable lab shelf versions. This method currently just returns dummy data. It still needs to be either fully implemented or removed altogether.
public String getLabShelfVersions() { return "{\"0\":\"5.1\", \"1\":\"5.2\", \"2\":\"5.3\", \"3\":\"6.0\"}"; }
[ "public String getAllLabShelves() {\n\n\t\t// For now, return only 6.0\n\t\tList<String> res = LabShelfManager.getShelf().getVersionNames();\n\t\treturn implode(res, \";\");\n\n\t\t// For some reason this code does not work once ant build is run...\n\t\t// why???\n\t\t/*\n\t\t * String res = \"\"; Vector<String> re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the RC se phone number.
public static String getRCSePhoneNumber(CallManager cm) { if (sFgCall != null) { String number = sFgCall.getDetails().getHandle().toString().substring(4); if (DBG) { log("getRCSePhoneNumber(), call is " + sFgCall + "number" + number); }...
[ "public String getCrrNo() {\n return crrNo;\n }", "java.lang.String getPhoneNumber();", "public String getPhoneNumber() {\n\t\tPreferences prefs = new Preferences(context);\n\t\tString phoneNumber = prefs.getPhoneNumber();\n\t\tif (!phoneNumber.equals(\"\")) {\n\t\t\treturn phoneNumber;\n\t\t}\n\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all the wilayas.
@Override @Transactional(readOnly = true) public List<WilayaDTO> findAll() { log.debug("Request to get all Wilayas"); return wilayaRepository.findAll().stream() .map(wilayaMapper::toDto) .collect(Collectors.toCollection(LinkedList::new)); }
[ "java.util.List<Report.LocationOuterClass.Wifi> \n getWifisList();", "public Collection<? extends Hobie_Wildcat> getAllHobie_WildcatInstances() {\n\t\treturn delegate.getWrappedIndividuals(Vocabulary.CLASS_HOBIE_WILDCAT, DefaultHobie_Wildcat.class);\n }", "public List<TaiKhoan> getTaiKhoanAll();", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check whether the given array of enum constants contains a constant with the given name, ignoring case when determining a match.
public static boolean containsConstant(Enum<?>[] enumValues, String constant) { return containsConstant(enumValues, constant, false); }
[ "public static boolean containsConstant(Enum<?>[] enumValues,\r\n String constant, boolean caseSensitive) {\r\n for (Enum<?> candidate : enumValues) {\r\n if (caseSensitive ? candidate.toString().equals(constant)\r\n : candidate.toString().equalsIgnoreCase(constant)) {\r\n return true;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__TestDSL__Group__7__Impl" $ANTLR start "rule__Configs__Group__0" InternalDsl.g:7373:1: rule__Configs__Group__0 : rule__Configs__Group__0__Impl rule__Configs__Group__1 ;
public final void rule__Configs__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:7377:1: ( rule__Configs__Group__0__Impl rule__Configs__Group__1 ) // InternalDsl.g:7378:2: rule__Configs__Group__0__Impl rule__Configs__G...
[ "public final void rule__Config__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:7512:1: ( rule__Config__Group__0__Impl rule__Config__Group__1 )\n // InternalDsl.g:7513:2: rule__Config__Group__0__Impl rule__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the offerName property: Bandwidth descriptive name.
public String offerName() { return this.offerName; }
[ "public String offerName() {\n return this.innerProperties() == null ? null : this.innerProperties().offerName();\n }", "@Schema(description = \"Name of the product offering\")\n \n public String getName() {\n return name;\n }", "public String offer() {\n return this.offer;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create pointcut for setter metthods
@Pointcut("execution(* com.vinay.springaopdemo.dao.*.set*(..))") public void setter() { }
[ "@Pointcut(\"execution(* com.iamscratches.aopdemo.dao.*.set*(..))\")\n\tpublic void setter() {}", "@Pointcut(\"execution(* com.ron.aop.dao.*.set*(..))\")\n\tpublic void setter() {\n\t}", "@Pointcut(\"execution(* com.luv2code.aopdemo.dao.*.set*(..))\")\n\tprivate void forDAOPackageSetters() {}", "@Pointcut(\"a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Select from database one runway where certain spaceship is landed
public Runway selectRunwayBySpaceship(String nameSpaceship) throws SQLException { connection(); String query = "select * from runway where spaceship ='" + nameSpaceship + "'"; Statement st = conexion.createStatement(); ResultSet rs = st.executeQuery(query); Runway runway = n...
[ "public List<Runway> selectRunwaysBySpaceport(String spaceport) throws SQLException {\r\n connection();\r\n String query = \"select * from runway where spaceport ='\" + spaceport + \"'\";\r\n Statement st = conexion.createStatement();\r\n ResultSet rs = st.executeQuery(query);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Output_expression_list__Group_2__0" $ANTLR start "rule__Output_expression_list__Group_2__0__Impl" ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/srcgen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:4371:1: rule__Output_expression_list_...
public final void rule__Output_expression_list__Group_2__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/a...
[ "public final void rule__Output_expression_list__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the The path used to identify the TAG in the P2DB
public Path getTagPath() { return tagPath; }
[ "public String getPath() { return db.getPath(); }", "public static String getTagsFileFullPath(IFile file) {\n \t\treturn file.getRawLocation().removeLastSegments(1).toOSString()\n \t\t\t\t+ java.io.File.separator\n \t\t\t\t+ getTagsFileNameRelative(file.getName());\n \t}", "List<Long> selectPath(Tag tag);", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clone this solution and add it to the solution's Strategy
Solution clone();
[ "@Override\r\n\tpublic SolutionRepresentationInterface clone() {\n\t\tint[] oSolution = new int[getNumberOfLocations()];\r\n\t\toSolution = aiSolutionRepresentation.clone();\r\n\t\tSolutionRepresentation oRepresentation = new SolutionRepresentation(oSolution);\r\n\t\t\r\n\t\treturn oRepresentation;\r\n\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if class has a super class.
public boolean hasSuperClass() { return this.superClass != null; }
[ "public boolean isSuperClassForced() {\n return m_superClass != null;\n }", "public boolean hasSuperClassAccess() {\n\t\treturn getSuperClassAccessOpt().getNumChild() != 0;\n\t}", "boolean hasSuperclass(AbstractClass superclass);", "public boolean isSetSuperClasses() {\n return this.superClasses ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method used to connect GoogleApiClient
public void connectApiClient() { googleApiClient.connect(); }
[ "protected synchronized void buildGoogleApiClient() {\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addApi(LocationServices.API)\n .build();\n\n // Connect to Google Play Services, by calling the connect() method/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
PDI11363. when using getLookup calls there is no need to make attempt to retrieve row set metadata for every call. That may bring performance penalty depends on jdbc driver implementation. For some drivers that penalty can be huge (postgres). During the execution calling getLookup() method we changing usually only look...
@Test public void testGetLookupMetaCalls() throws KettleDatabaseException, SQLException { DatabaseMeta meta = Mockito.mock( DatabaseMeta.class ); Mockito.when( meta.getQuotedSchemaTableCombination( Mockito.anyString(), Mockito.anyString() ) ).thenReturn( "a" ); Mockito.when( meta.quoteField( Mockito.anySt...
[ "@Test\n public void testGetLookupCallPSpassed() throws SQLException, KettleDatabaseException {\n DatabaseMeta meta = Mockito.mock( DatabaseMeta.class );\n\n PreparedStatement ps = Mockito.mock( PreparedStatement.class );\n ResultSet rs = Mockito.mock( ResultSet.class );\n Mockito.when( ps.executeQuery...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the target value for this ConverterTaskSpec.
public void setTarget(com.vmware.converter.ConverterComputerSpec target) { this.target = target; }
[ "public void setTarget(String target);", "public void setTarget(Object target) {\n\t\tthis.target = target;\n\t\tthis.handleConfig(\"target\", target);\n\t}", "public void setTarget(Target target) {\n this.target = target;\n }", "public void setTarget (Targets target)\n\t{\n\t\tthis.Target = target;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the type of the Entropy contents
String getEntropyType();
[ "public String getTypeOfData();", "long getType();", "public abstract String getBlobType(long length);", "prometheus.Types.Chunk.Encoding getType();", "public MetadataType getType();", "public String getMime_type()\r\n {\r\n return getSemanticObject().getProperty(data_mime_type);\r\n }", "i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies that a formatted string with three object arguments will be logged correctly at any level.
@Test public void logFormattedStringWithThreeObject() { logger.logf(org.jboss.logging.Logger.Level.DEBUG, "%s, %s or %s", "one", "two", "three"); if (debugEnabled) { verify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(PrintfStyleFormatter.class), eq("%s, %s or %s"), eq("one"), eq("two")...
[ "@Test\n\tpublic void logFormattedMessageWithThreeArguments() {\n\t\tlogger.logv(org.jboss.logging.Logger.Level.DEBUG, \"{0}, {1} or {2}\", 1, 2, 3);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(eq(2), isNull(), eq(Level.DEBUG), same(null), any(JavaTextMessageFormatFormatter.class),\n\t\t\t\t\teq(\"{0}, {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a fetch group to use for this query.
public void addFetchGroup(final String group) { query.getFetchPlan().addFetchGroup(group); }
[ "public void addInternalFetchGroup(FetchGroup grp)\n {\n getFetchGroupManager().addFetchGroup(grp);\n }", "protected void addFetchGroupLines(NonreflectiveMethodDefinition method, FetchGroup fetchGroup, String fetchGroupIdentifier) {\r\n method.addLine(\"FetchGroup \" + fetchGroupIdentifier + \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methode permettant d'activer ou non le bouton Retablir.
public void activerRetablir(boolean active) { retablirButton.setEnabled(active); }
[ "public void activarAceptar() {\n aceptar = false;\n }", "public void actionFinie(){\n\t\tbouton2.setEnabled(false);\n\t}", "public void setActivado(boolean value) {\n this.activado = value;\n }", "public void DesactivarVictoria(){\n this.Btn00.setEnabled(false);\n this.Btn01...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'field357' field
public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField357() { field357 = null; fieldSetFlags()[357] = false; return this; }
[ "public void unsetFieldValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FIELDVALUE$2, 0);\n }\n }", "public com.maxpoint.cascading.avro.TestExtraLarge.Builder clearField232() {\n field232 = null;\n fieldSetFlags(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the list of all known theme names. The returned values are theme property names, not theme display names.
public String[] getAllThemeNames() { java.util.List names = resources.getStringList("themelist"); return (String[]) names.toArray(new String[names.size()]); }
[ "public List<String> getThemeNames() {\n return getElementListText( themes );\n }", "public LinkedList<String> getThemeWords(){\r\n\t\treturn this.themeWords;\r\n\t}", "public String[][] getThemes()\n {\n return configfile.themes;\n }", "public static String[] getAvailableGraphicalThemes() {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of selecionarItemTbViewPagamentos method, of class ListaPagamentosController.
@Test public void testSelecionarItemTbViewPagamentos() { }
[ "@Test\n public void testGetItemsAvailableSelectOne() {\n \n CuestionarioController instance = new CuestionarioController();\n List<Cuestionario> expResult = null;\n List<Cuestionario> result = instance.getItemsAvailableSelectOne();\n assertEquals(expResult, result);\n \n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the stride of the given dimension.
public long stride(int dim) { return TH.THTensor_(stride)(this, dim); }
[ "public long stride()\n\t\t{\n\t\treturn stride;\n\t\t}", "public int getStride() {\n\t\treturn this.stride;\n\t}", "public double getWidth( int dimension )\n {\n return max[dimension] - min[dimension];\n }", "@NativeType(\"EGLint\")\n public int iStride() { return niStride(address()); }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the grand child flag.
public void setGrandChild(boolean isGrandChild) { m_isGrandChild = isGrandChild; }
[ "public void setIsChild(Boolean isChild) {\n this.isChild = isChild;\n }", "public void setIsParent(boolean value) {\r\n this.isParent = value;\r\n }", "public void setChild(boolean p_82227_1_)\n {\n this.getDataWatcher().updateObject(12, Byte.valueOf((byte)(p_82227_1_ ? 1 : 0)));\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the frame macro.
public void setMacro(String macro) { graphicFrame.setMacro(macro); }
[ "public void setFrame(int frame) {\n this.frame = frame;\n }", "public void setFrame(Frame frame) {\n this.frame = frame;\n }", "public static void setFrame(String frameName) {\r\n\t\tstaticWait(1);\r\n\t\tsDriver.switchTo().defaultContent();\r\n\t\tsDriver.switchTo().frame(frameName);\r\n\t\tstat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleBooleanBinaryOperator" $ANTLR start "rule__ActivityNode__Alternatives" InternalActivityDiagram.g:837:1: rule__ActivityNode__Alternatives : ( ( ruleOpaqueAction ) | ( ruleInitialNode ) | ( ruleActivityFinalNode ) | ( ruleForkNode ) | ( ruleJoinNode ) | ( ruleMergeNode ) | ( ruleDecisionNode ) );
public final void rule__ActivityNode__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalActivityDiagram.g:841:1: ( ( ruleOpaqueAction ) | ( ruleInitialNode ) | ( ruleActivityFinalNode ) | ( ruleForkNode ) | ( ruleJoinNode ) | ( rul...
[ "public final void ruleBooleanBinaryOperator() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalActivityDiagram.g:823:1: ( ( ( rule__BooleanBinaryOperator__Alternatives ) ) )\n // InternalActivityDiagram.g:824:1: ( ( rule__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Nils the "incident_id" element
void setNilIncidentId();
[ "public void setNilIncidentId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(INCIDENTID$4, 0);\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'E'.
E createE();
[ "EObject getE();", "public <E> E getE(E e){\n return e;\n }", "EList createEList();", "@Override\n\tpublic NetlistEdge createE(final NetlistEdge other) {\n\t\tNetlistEdge rtn = new NetlistEdge(other);\n\t\treturn rtn;\n\t}", "protected TreeNode<E> createNewNode(E e) {\n return new TreeN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column sys_role.role_rights
public void setRoleRights(String roleRights) { this.roleRights = roleRights == null ? null : roleRights.trim(); }
[ "public String getRoleRights() {\n return roleRights;\n }", "public void setRights(int rights) {\r\n this.rights = rights;\r\n }", "public void setRoleId(DBSequence value) {\n setAttributeInternal(ROLEID, value);\n }", "public void setAdminRights (String email, int rights){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The demons had captured the princess (P) and imprisoned her in the bottomright corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initially positioned in the topleft room and must fight his way through the dungeon to rescue the princess. The knight has an initial ...
public int calculateMinimumHP(int[][] dungeon) { int rows = dungeon.length, cols = dungeon[0].length; int[][] dp = new int[rows + 1][cols + 1]; for (int r = rows; r >= 0; r--) { dp[r][cols] = Integer.MAX_VALUE; } for (int c = cols; c >= 0; c--) { dp[rows...
[ "int calculateMinimumHP(int[][] dungeon) {\n int m = dungeon.length;\n assert (m > 0);\n int n = dungeon[0].length;\n int[] dp = new int[n + 1];\n for (int j = n - 1; j >= 0; j--) dp[j] = Integer.MAX_VALUE;\n dp[n] = 1;\n\n for (int i = m - 1; i >= 0; i--) {\n for (int j = n - 1; j >= 0; j...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 eventType = 1;
int getEventType();
[ "EventType getEvent();", "public void setEventType(int eventType)\r\n {\r\n this._eventType = eventType;\r\n this._has_eventType = true;\r\n }", "java.lang.String getEventType();", "public SimpleEvent(int type){\n this.type = type;\n }", "public String getEventType() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads value from cache for the given key using given read mode.
@SuppressWarnings("unchecked") protected Object readByMode(IgniteCache cache, final Object key, ReadMode readMode, ObjectCodec codec) { assert cache != null && key != null && readMode != null && readMode != SQL_SUM; assert readMode != SQL || codec != null; boolean emulateLongQry = ThreadLoc...
[ "public Object read(Object key) {\n synchronized(cache) {\n CacheEntry entry = (CacheEntry)cache.get(key);\n if (entry != null)\n return entry.getData();\n else\n return null;\n }\n }", "public Object get(Object key) throws CacheExcep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get accessor for persistent attribute: centro_sap
public abstract java.lang.String getCentro_sap();
[ "public abstract java.lang.String getAlmacen_sap();", "public abstract java.lang.String getClase_mov_sap();", "pomelo.area.CardHandler.CardPropertyStruct getBaseAtt();", "public abstract co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Catalogo_causalLocal getCatalogo_causal();", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert the provided String to UTF8 encoded bytes.
public static final byte[] asUTF8(final String s) { return s.getBytes(StandardCharsets.UTF_8); }
[ "public static byte[] toBytes(String s) {\n return s.getBytes(UTF8_CHARSET);\n }", "static ByteString toBytes(String str) {\n return ByteString.copyFrom(str.getBytes(Internal.UTF_8));\n }", "public static byte[] getUTF8Bytes(String str) {\n try { return str.getBytes(\"UTF-8\"); } catch (Exc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a fresh wallFrame for each test.
@Before public void setUp() { wallFrame = new WallFrame(new Vector3f(), "logo.png", Direction.NORTH, new Vector2f(1, 3)); }
[ "public void createFrame() {\r\n System.out.println(\"Framing: Adding the log walls.\");\r\n }", "public void createFrame() {\n\t\tsuper.createFrame();\n\t\tSystem.out.println(\"log walls.\");\n\t}", "private void createWalls() {\n int environmentWidth = config.getEnvironmentWidth();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine). string cause = 1;
java.lang.String getCause();
[ "public String getCauseName() {\n\t\treturn causeName;\n\t}", "public java.lang.String getReasonDelayComplain () {\n\t\treturn reasonDelayComplain;\n\t}", "java.lang.String getReason();", "public String getREASON_DESC() {\r\n return REASON_DESC;\r\n }", "public java.lang.String getFailureReason()\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all matching classes that are annotated with the given Annotation. Note that this method only returns those classes that actually contain the annotation, and does not return classes whose superclass contains the annotation.
public List<Class<?>> getAnnotatedMatches(Class<? extends Annotation> annotation) { return getAnnotatedMatches(annotation, false); }
[ "public static Set<Class<?>> getClassSetByAnnotation(Class<? extends Annotation> annotationClass) {\n Set<Class<?>> classSet = new HashSet<Class<?>>();\n for (Class<?> cls : CLASS_SET) {\n if (cls.isAnnotationPresent(annotationClass)) {\n classSet.add(cls);\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form WCreateExam
public WCreateExam() { initComponents(); setLocationRelativeTo(null); this.setExamID(); this.updateTable(); }
[ "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationFor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Implies__Group_1__2" $ANTLR start "rule__Implies__Group_1__2__Impl" InternalDsl.g:31009:1: rule__Implies__Group_1__2__Impl : ( ( rule__Implies__RightAssignment_1_2 ) ) ;
public final void rule__Implies__Group_1__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:31013:1: ( ( ( rule__Implies__RightAssignment_1_2 ) ) ) // InternalDsl.g:31014:1: ( ( rule__Implies__RightAssignment_1_2 ) ) ...
[ "public final void rule__Implies__Group_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:30987:1: ( ( ( rule__Implies__OpAssignment_1_1 ) ) )\n // InternalDsl.g:30988:1: ( ( rule__Implies__OpAssignment_1_1 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: this should be separated into a MapDescription class, from which a map can be constructed. returns the positions where a ghost needs to be positioned
public List<Point> getGhostPositions() { throw new RuntimeException("Not Implemented"); }
[ "public final void generatePositions() {\r\n for (int i = 0; i < length; i++) {\r\n for (int j = 0; j < height; j++) {\r\n if (i == 0 && j == 0) {\r\n dungeonMap.put(new Position(0, 0), player);\r\n } else {\r\n dungeonMap.put(new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty "outputOptions" element
gov.nasa.gsfc.spdf.ssc.OutputOptions addNewOutputOptions();
[ "private static void initOutput() {\n Iterator<CommandOption> iterator = optionList.iterator();\n CommandOption option;\n String outputPath = \"\";\n boolean isTimestampEnabled = true;\n\n while (iterator.hasNext()) {\n option = (CommandOption) iterator.next();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests handleFlowScope method setting values to scope.
@SuppressWarnings("unchecked") @Test public void testHandleFlowScopeSetToScope() throws Exception { Assert.assertNotNull(actionFlowInterceptor); final MockActionFlowAction action = new MockActionFlowAction(); final Map<String, Object> session = new HashMap<String, Object>(); //...
[ "@Test\n public void testHandleFlowScopeSetToScopeNull() throws Exception {\n Assert.assertNotNull(actionFlowInterceptor);\n\n final MockActionFlowAction action = new MockActionFlowAction();\n final Map<String, Object> session = new HashMap<String, Object>();\n\n // set flowScopeField...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets number of diamonds
private void setNbDiamond(int nbDiamond) { this.nbDiamond = nbDiamond; }
[ "public void setDrums(Integer drums) {\n this.drums = drums;\n }", "protected void setDiameter(int size)\r\n\t{\r\n\t\tdiameter = size;\r\n\t}", "void setNumberOfHands(int numberOfHands);", "void setNoOfBuckets(int noOfBuckets);", "public int numberOfDiamonds() {\n\t\treturn diamondCnt;\n\t}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a cloned instance of texture shared per home or the texture itself if home is null. As sharing textures across universes might cause some problems, it's safer to handle a copy of textures for a given home.
protected Texture getHomeTextureClone(Texture texture, Home home) { if (home == null || texture == null) { return texture; } else { Map<Texture, Texture> homeTextures = homesTextures.get(home); if (homeTextures == null) { homeTextures = new WeakHashMap<Texture, Texture>(); home...
[ "public HomeTexture getGroundTexture() {\n return this.groundTexture;\n }", "public INTexture2D getTexture()\n {\n return this.texture.clone();\n }", "public Image clone() {\r\n\t\treturn new Image(renderer, texture, textureX, textureY, textureWidth, textureHeight, width, height);\r\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the read() method, with a null bean.
@Test(expected = NullPointerException.class) public void testReadWithNullBean() throws IOException { beanReader.read((Object) null, HEADER); }
[ "@Test(expected = NullPointerException.class)\n\tpublic void testReadWithNullBeanClass() throws IOException {\n\t\tbeanReader.read(null, HEADER);\n\t}", "@Test(expected = NullPointerException.class)\n\tpublic void testReadWithNullNameMapping() throws IOException {\n\t\tbeanReader.read(PersonBean.class, (String[])...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Is the ODBC Extended SQL grammar supported?
public boolean supportsExtendedSQLGrammar() throws SQLException { return false; }
[ "public boolean supportsExtendedSQLGrammar()\n throws SQLException\n {\n // The SimpleText driver does not even support the most minimum\n // SQL grammar\n\n return false;\n }", "public boolean supportsExtendedSQLGrammar()\n throws SQLException\n {\n return false;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for InputPriceBy, using the alias name InputPriceBy.
public String getInputPriceBy() { return (String)getAttributeInternal(INPUTPRICEBY); }
[ "public void setInputPriceBy(String value) {\n setAttributeInternal(INPUTPRICEBY, value);\n }", "public BigDecimal getInputPrice() {\r\n return inputPrice;\r\n }", "public java.lang.String getInputBy() {\n return inputBy;\n }", "public String getInputBy() {\n return inputB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Output only. The impact on account performance as a result of applying the recommendation. .google.ads.googleads.v13.resources.Recommendation.RecommendationImpact impact = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
com.google.ads.googleads.v13.resources.Recommendation.RecommendationImpactOrBuilder getImpactOrBuilder();
[ "com.google.ads.googleads.v13.resources.Recommendation.RecommendationImpact getImpact();", "public Impact getImpact() {\r\n\t\treturn impact;\r\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(example = \"critical\", value = \"The impact of the incident.\")\n\n public String getImpact() {\n return im...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setName method, of class Library.
@Test public void testSetName() { System.out.println("setName"); String name = "Test"; Library instance = new Library(); instance.setName(name); String result = instance.getName(); assertEquals(name, result); }
[ "public void testSetName() {\n System.out.println(\"setName\");\n String name = \"changeNameTest\";\n Module instance = new Module(\"testModule\", 1001);\n instance.setName(name);\n assertEquals(name, instance.getName());\n }", "@Test\r\n\tpublic void testSetName()\r\n\t{\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load the given program an begin running it. The program will be run asynchronously in another thread after this method has returned. The task can be modified, canceled or extended with the returned future. The boolean contained within the future will be true if the program completed successfully and false for non excep...
public XFuture<Boolean> startCRCLProgram(CRCLProgramType program) { if (null == crclClientJInternalFrame) { throw new IllegalStateException( "Must show CRCL client frame before starting CRCL program: crclClientJInternalFrame==null"); } setStartRunTime(); S...
[ "<T> AsyncResult<T> startProcess(Callable<T> task);", "public @Nullable\n XFuture<Boolean> getCrclRunProgramFuture() {\n if (null == crclClientJInternalFrame) {\n throw new IllegalStateException(\"CRCL Client View must be open to use this function.\");\n }\n return crclClientJIn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the MunicipalityOperatesAFireDepartment field.
public void setMunicipalityOperatesAFireDepartment(java.lang.String value);
[ "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getMunicipalityOperatesAFireDepartment();", "public void setMunicipality(java.lang.String municipality) {\n\t\t_person.setMunicipality(municipality);\n\t}", "public void setDepartment( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: method_type
public java.lang.String getMethodType () { return methodType; }
[ "public static String GetMethodType(){\n return methodType;\n }", "public MethodType getMethodType() {\n return methodType;\n }", "private static String mapResultSetGetter(final FieldType.Type type) {\n switch (type) {\n case DATE:\n return \"getDate\";\n case INTEG...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form Details
public Details() { initComponents(); }
[ "@RequestMapping(params = {\"create\", \"form\"}, produces = \"text/html\")\n public String createForm_new(Model uiModel) {\n \tpopulateEditForm(uiModel, new Flight());\n return \"flights/create_new\";\n }", "FORM createFORM();", "public PatientDetailsDialog() {\n super();\n this.m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save all file patterns to disk (XML format).
public static void save() { String xml = "<FILE-PATTERNS>\n"; for (Collection<FilePattern> c : patterns.values()) { for (FilePattern fp : c) xml += "\n" + fp.toStorageString(); } xml += "</FILE-PATTERNS>"; try { FileOutputStream fo...
[ "public void saveToFile(){\n fileManager.saveToFile(graphManager.getGraphs());\n }", "private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}", "public void saveAll() {\n try {\n writeObject(IMAGE_DATA_PATH, imageFiles);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Note: TO AVOID ISSUES... before calling this function, must ensure that: 1) maxVal > minVal 2) stepSize > 0 3.a) stepSize <= (maxVal minVal) IF both minVal & maxVal have the same sign 3.b) stepSize <= max(|minVal|, |maxVal|) IF minVal & maxVal have different signs
public void reScale(float minVal, float maxVal, float stepSize, int numDecimals) { numDecimalDigits = numDecimals; minValue = minVal; maxValue = maxVal; ticStep = stepSize; float zTol = ZTolMult * (maxValue - minValue); if ((minValue < -zTol) && (maxValue > zTol)) { //Different si...
[ "void urg_step_min_max(urg_t urg, IntByReference min_step, IntByReference max_step);", "float getXStepMax();", "float getMaxRange();", "private void checkLimits() {\r\n /*\r\n * since the shooter spins forward with negative speeds, 0 is the largest\r\n * possible speed without spinning ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Abator for iBATIS. This method returns the value of the database column MI043.quotaid
public String getQuotaid() { return quotaid; }
[ "public String quotaId() {\n return this.quotaId;\n }", "public Quota getQuota() {\n\t\treturn this.quota;\n\t}", "public double getQuotaLimit() {\n\t\treturn this.quotaLimit;\n\t}", "public void setQuotaid(String quotaid) {\n\t\tthis.quotaid = quotaid == null ? null : quotaid.trim();\n\t}", "int ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
initialization for share button
private void initializeManualButtonShare() { if(movie==null) this.manualButtonShare.setVisibility(INVISIBLE); Context context = getApplicationContext(); if(context.getPackageManager().hasSystemFeature(android.content.pm.PackageManager.FEATURE_CAMERA_ANY)){ manualButtonSh...
[ "private void initShare() {\n // Create ShareHelper\n mShareHelper = new ShareHelper(mContext);\n }", "private void setupShare() {\n\t\tLog.d(TAG,\"setup share\");\n\t\tParseQuery.clearAllCachedResults();\n\t\tsetShareIntent(shareIntent());\n\t}", "@Override\n\tpublic void onShareButton() {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column SNP_Marker.ltm
public abstract void setLtm(Float ltm);
[ "void setLinpMapping(org.lindbergframework.schema.LinpMappingDocument.LinpMapping linpMapping);", "public void setTokenMarker(TokenMarker tm)\n {\n tokenMarker = tm;\n\n if (tm == null)\n {\n return;\n }\n\n tokenMarker.insertLines(0, getDefaultRootElement().getEle...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get any HTML page from an URL, specifying encoding
public static String getHTMLfromURL(String urltext,String encoding){ String ret = new String(""); URL url = null; try { url = new URL(urltext); URLConnection conn = url.openConnection(); conn.connect(); String contentEncoding = conn.getContentEncoding(); if (contentEncoding==null) con...
[ "public static StringBuilder retrieveHTML(URL url){\n StringBuilder builder = new StringBuilder();\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));\n String inputLine;\n while...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the ArchivePartition field. Unique number to partition the data so that the multiple workers can work independently
@gw.internal.gosu.parser.ExtendedProperty public java.lang.Long getArchivePartition() { return (java.lang.Long)__getInternalInterface().getFieldValue(ARCHIVEPARTITION_PROP.get()); }
[ "public int getPartition() {\n return partition;\n }", "public void setArchivePartition(java.lang.Long value) {\n __getInternalInterface().setFieldValue(ARCHIVEPARTITION_PROP.get(), value);\n }", "public int getPartitionNumber() {\n\treturn partitionNumber;\n }", "public int getPartitionN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a pixel to the pixelList
public void addPixel(int index, TokenizedPixel pixel) { this.pixelList.add(index, pixel); }
[ "public void addpixeltoList() {\n for (int i = 0; i < 100; i++) {\r\n pixellist.add(new humanpixel());\r\n }\r\n }", "void addPixel(MosaicPixel pixel);", "public PixelSet(Pixel pixel) {\n\t\tthis.pixelSet = new LinkedHashSet<Pixel>();\n\t\tpixelSet.add(pixel);\n\t}", "void addPixel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter del JTable con el productos.
public JTable getjTableProducto() { return jTableProducto; }
[ "public ViewJTable() {\n initComponents();\n DefaultTableModel modelo = (DefaultTableModel) tabelaProdutos.getModel();\n tabelaProdutos.setRowSorter(new TableRowSorter(modelo));\n\n readJTable();\n\n }", "public AgregarProductos() {\n initComponents();\n String[] titul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Whether there is an event that matches the given reason and involved object.
public static boolean containsEventWithInvolvedObject( @NotNull List<CoreV1Event> events, String reason, String name, String namespace, String k8sUID) { return getEventsWithReason(events, reason) .stream().anyMatch(e -> involvedObjectMatches(e, name, namespace, k8sUID)); }
[ "public static boolean containsEventWithInvolvedObject(\n @NotNull List<CoreV1Event> events,\n String reason,\n String name,\n String namespace) {\n return getEventsWithReason(events, reason)\n .stream().anyMatch(e -> involvedObjectMatches(e, name, namespace));\n }", "boolean matche...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Does the LUP decomposition of this matrix. Both L and U matrices are stored in a single matrix, where L is located in lower triangular part and U in upper triangular part. Matrix is properly permuted due to pivoting.
public Matrix decomposeLUP() throws Exception { Matrix result = new Matrix(this); result.decomposeLUPThis(); Matrix permutedMatrix = new Matrix(result.rows, result.columns); for (int i = 0; i < rows; ++i) { for (int j = 0; j < columns; ++j) { permutedMatrix.matrixValues.put(new Coordinate(i, j)...
[ "public void decomposeLUPThis() throws Exception {\r\n\t\tif (!(this.isSquare())) {\r\n\t\t\tthrow new Exception(\"Matrix must be squared in order to do LUP decomposition.\");\r\n\t\t}\r\n\t\tpivotArray = new int[rows];\r\n\t\tfor (int i = 0; i < rows; ++i) {\r\n\t\t\tpivotArray[i] = i;\r\n\t\t}\r\n\t\tint pivotEle...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An interface to agriculture sector infrastructure elements.
public interface AgricultureElement extends InfrastructureElement, FoodUnitsOutput, WaterUnitsOutput { /** * Gets the cost intensity of land used. * * @return the cost intensity of land used */ public double getCostIntensityOfLandUsed(); /** * Gets the food distribution efficiency. * ...
[ "Infrastructure getInfrastructure();", "public interface ConicSection extends GeoObject {\r\n\t/*\r\n\t * ======================================================================\r\n\t * ========================== VARIABLES =================================\r\n\t * ==================================================...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the current state of the simulator.
public SimulatorState getState() { return aState; }
[ "public SimState getState() {\n return _simState;\n }", "public double getCurrentState(){\n\t\treturn currentState;\n\t}", "STATE getCurrentState();", "public PneumaticState getState() {\r\n return currentState;\r\n }", "public State getCurrentState(){\n return this.currentState;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete the mSituation by id.
public void delete(Long id) { log.debug("Request to delete MSituation : {}", id); mSituationRepository.deleteById(id); }
[ "public void delete(Long id) {\n log.debug(\"Request to delete TipoSituacao : {}\", id);\n tipoSituacaoRepository.delete(id);\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete IntrusionSet : {}\", id);\n intrusionSetRepository.deleteById(id);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert to audit event list.
public List<AuditEvent> convertToAuditEvent(Iterable<PersistentAuditEvent> persistentAuditEvents) { if (persistentAuditEvents == null) { return Collections.emptyList(); } List<AuditEvent> auditEvents = new ArrayList<>(); for (PersistentAuditEvent persistentAuditEvent : pers...
[ "java.util.List<kitty_protos.Adventure.AdventureEvent> \n getEventsList();", "java.util.List<com.estafette.ci.manifest.v1.EstafetteEvent> \n getEventsList();", "public List<LogEvent> getLogEvents()\n {\n return new ArrayList<LogEvent>(logEvents);\n }", "ArrayList<Event> getEvents();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__TypeSwitchGuard__Group__2" $ANTLR start "rule__TypeSwitchGuard__Group__2__Impl" InternalGo.g:10840:1: rule__TypeSwitchGuard__Group__2__Impl : ( '.' ) ;
public final void rule__TypeSwitchGuard__Group__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalGo.g:10844:1: ( ( '.' ) ) // InternalGo.g:10845:1: ( '.' ) { // InternalGo.g:10845:1: ( '.' ) ...
[ "public final void rule__TypeSwitchGuard__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:10832:1: ( rule__TypeSwitchGuard__Group__2__Impl rule__TypeSwitchGuard__Group__3 )\r\n // InternalGo.g:10833...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This test will return total of 1 result, filtered by documentNumber from "CRN003" to "CRN006" with documentStatus "Closed".
@Test public void shouldReturnPagedClosedDocumentsFilteredByDocumentNumberRange() { final SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getAllPagedDocuments( createPageableData(0, 10, StringUtils.EMPTY), Collections.singletonList(AccountSummaryAddonUtils .createRangeCriteriaObject("CRN-003...
[ "@Test\n\tpublic void shouldReturnPagedClosedDocumentsForCustomRetailFilteredByDocumentNumberRange()\n\t{\n\t\tfinal SearchPageData<B2BDocumentModel> result = pagedB2BDocumentDao.getPagedDocumentsForUnit(UNIT_CUSTOM_RETAIL,\n\t\t\t\tcreatePageableData(0, 10, StringUtils.EMPTY), Collections.singletonList(AccountSumm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves all competencies for a particular qualification. Returns 404 if qualification has no competencies.
@GetMapping("/{forQualificationCode}/competencies") public CollectionModel<CompetencyForQualification> getAllCompetencies(@PathVariable String forQualificationCode) { final var competencies = qualificationService.getAllCompetencies(forQualificationCode); if (competencies.isEmpty()) { thr...
[ "public List<Competency> getCompetencies() {\r\n return competencies;\r\n }", "@GetMapping(\"/{forQualificationCode}/competencies/{competencyTafeCode}\")\n public CompetencyForQualification getOneCompetency(@PathVariable String forQualificationCode,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns which datatype was detected for the maximum number of times in the given column
private int getLikelyDataType(int[][] typeCounts, int colNum) { int[] colArray = typeCounts[colNum]; int maxIndex = 0; int i = 1; for (; i < colArray.length; i++) { if (colArray[i] > colArray[maxIndex]) maxIndex = i; } return maxIndex; }
[ "int maxColumnIndex();", "public short getColMaximum() {\n return colMaximum;\n }", "public double columnMax(int col) {\n\t\tdouble m = MISSING;\n\t\tfor(int i = 0; i < rows(); i++) {\n\t\t\tdouble v = get(i, col);\n\t\t\tif(v != MISSING)\n\t\t\t{\n\t\t\t\tif(m == MISSING || v > m)\n\t\t\t\t\tm = v;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle remove button selected.
public void handleRemoveButtonSelected() { if (getMemberElementsViewer().getSelection() instanceof StructuredSelection) { StructuredSelection selection = (StructuredSelection) getMemberElementsViewer() .getSelection(); executeRemoveCommand(selection.toList()); refresh(); } }
[ "private JButton getRemoveSelectedButton() {\n\t\tif (removeSelectedButton == null) {\n\t\t\tremoveSelectedButton = new JButton();\n\t\t\tremoveSelectedButton.setText(\"remove selected\");\n\t\t\tremoveSelectedButton.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called by the menu when the player presses left. It just forwards the message to the currentDeck.
public void leftPressed() { if (edit) { currentDeck.left(); } }
[ "public void leftPressed() {\n System.out.println(\"leftPressed()\");\n current.translate(0, -1);\n display.showBlocks();\n }", "public void leftMessage() {\r\n\t\tJOptionPane.showMessageDialog(this.frame, \"Game Ends. One of the players left.\", \"Message\", JOptionPane.INFORMATION_MESSAG...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Chooses a random tree to reproduce Parameters: distribution array of probabilities of being chosen trees array of all trees in a generation Return: tree random tree
public static Tree chooseRandTree(double[] distribution, Tree[] trees){ double r = new Random().nextDouble(); //System.out.println(r); //System.out.println(Arrays.toString(distribution)); for (int i = 0; i < distribution.length; i++){ if (r <= distribution[i]){ return trees[i]; } ...
[ "public Generation makeNewGeneration() {\n\t\tGPTree[] treePair = new GPTree[g.getNumTrees()];\n\t\tRandom rand = new Random();\n\t\tfor (int i = 0; i < treePair.length; i++) {\n\t\t\tGPTree tree1 = g.chooseTreeProportionalToFitness().duplicate();\n\t\t\ttree1.eval(d);\n\t\t\tGPTree tree2 = g.chooseTreeProportional...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read the wifi mac from wifi model,before read the wifi, model should be open.
@Deprecated public String readWiFiMAC(String wifiModelType) { return mFactoryBurnUtil.readWiFiMAC(wifiModelType); }
[ "public static String wlanMacAddress() {\n\t\tString _ret = null;\n\n\t\t// get wifi manager\n\t\tWifiManager _wifiManager = (WifiManager) CTApplication.getContext()\n\t\t\t\t.getSystemService(Context.WIFI_SERVICE);\n\n\t\t// check wifi manager and return waln mac address\n\t\tif (null != _wifiManager) {\n\t\t\t// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TRSDEAL_PROMISSORY_FX.PROMISSORY_SETTLEMENT_DATE
public void setPROMISSORY_SETTLEMENT_DATE(Date PROMISSORY_SETTLEMENT_DATE) { this.PROMISSORY_SETTLEMENT_DATE = PROMISSORY_SETTLEMENT_DATE; }
[ "public void setOLD_PROMISSORY_SETTLEMENT_DATE(Date OLD_PROMISSORY_SETTLEMENT_DATE)\r\n {\r\n\tthis.OLD_PROMISSORY_SETTLEMENT_DATE = OLD_PROMISSORY_SETTLEMENT_DATE;\r\n }", "public Date getPROMISSORY_SETTLEMENT_DATE()\r\n {\r\n\treturn PROMISSORY_SETTLEMENT_DATE;\r\n }", "public Date getOLD_PROMISSO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value assigned to the given PropositionSymbol in this Model to the given boolean VALUE.
public void set(Symbol sym, Boolean value) { assignments.put(sym, value); }
[ "public void setValue(Boolean value) {\r\n this.value = value.booleanValue();\r\n }", "public void setValue(boolean booleanValue);", "public void setBoolean(String pKey, boolean pValue)\r\n {\r\n mProperties.put(pKey, Boolean.valueOf(pValue));\r\n }", "void setPropertyBoolean(\n\t\tStri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load all values that can be safely copied (shared by multiple rows). This means all values except private, primary, order and archive.
public final void loadAllSafe(final SQLRowValues vals, final SQLRow row) { check(vals); check(row); vals.setAll(row.getAllValues()); vals.load(row, this.getNormalForeignFields()); if (this.getParentForeignFieldName() != null) vals.put(this.getParentForeignFieldN...
[ "static void setNotCopying(){isCopying=false;}", "@SuppressWarnings(\"unchecked\")\n private void copyInstanceValues(RDFResource resource) {\n Collection<RDFProperty> properties = resource.getRDFProperties();\n for (RDFProperty property : properties) {\n if (shouldCopyValues(property))...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "condition" /home/oussama/Desktop/Compil/vincent66u/comp.g:74:1: condition : 'if' exp 'then' ( instruction )+ ( 'else' ( instruction )+ )? 'fi' > ^( 'if' exp ^( 'then' instruction ) ( ^( 'else' ( instruction )+ ) )? ) ;
public final compParser.condition_return condition() throws RecognitionException { compParser.condition_return retval = new compParser.condition_return(); retval.start = input.LT(1); CommonTree root_0 = null; Token string_literal89=null; Token string_literal91=null; Tok...
[ "private Stmt ifStatement() {\n consume(LPAREN, \"Expect '(' after 'if'.\");\n\n Expr condition = expression();\n consume(RPAREN, \"Expect ')' after condition.\");\n Stmt then = statement();\n Stmt elsee = null;\n if (match(ELSE)){\n elsee = statement();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a monomer to the store and optionally sets the dbChanged flag
public void addMonomer(Monomer monomer, boolean dbChanged) throws IOException, MonomerException { Map<String, Monomer> monomerMap = monomerDB.get(monomer.getPolymerType()); String polymerType = monomer.getPolymerType(); String alternateId = monomer.getAlternateId(); String smilesString = mono...
[ "public synchronized void addNewMonomer(Monomer monomer) throws IOException,\r\n MonomerException {\r\n monomer.setNewMonomer(true);\r\n addMonomer(monomer, true);\r\n }", "public void addMonomer(Monomer monomer) throws IOException,\r\n MonomerException {\r\n addMonomer(monomer, false);\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Operation Call Exp'.
<C, O> OperationCallExp<C, O> createOperationCallExp();
[ "OperationCallExp createOperationCallExp();", "Call createCall();", "public Operation createOperation();", "Operation createOperation();", "FunctionCall createFunctionCall();", "public Operation() {\n super();\n }", "private Call createCall(N operationName, Vector< Object > arguments) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setter for familyRec sets
public void setFamilyRec(FSArray v) { if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_familyRec == null) jcasType.jcas.throwFeatMissing("familyRec", "net.myerichsen.gedcom.GEDCOMType"); jcasType.ll_cas.ll_setRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_familyRec, jcasType.ll...
[ "public void setFamily(FTCFamilyRec family) {\n this.family = family;\n }", "public void setFamilyRecords(ArrayList<FamilyRecord> familyRecords) {\n\t\tthis.familyRecords = familyRecords;\n\t}", "public void setFamily(Vertex family) {\n\t\tthis.family = family;\n\t}", "public void setFamilyArray(com.walgr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XOrExpression__RightOperandAssignment_1_1" $ANTLR start "rule__XAndExpression__FeatureAssignment_1_0_0_1" ../com.avaloq.tools.dslsdk.check.ui/srcgen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18564:1: rule__XAndExpression__FeatureAssignment_1_0_0_1 : ( ( ruleOpAnd ) ...
public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../com.avaloq.tools.dslsdk.check.ui/src-gen/com/avaloq/tools/dslsdk/check/ui/contentassist/antlr/internal/InternalCheck.g:18568:1: ...
[ "public final void rule__XAndExpression__FeatureAssignment_1_0_0_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3043...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Filters out files and returns the files that are left in a list, or an empty list when a null is passed in.
List<F> filterFiles(F[] files);
[ "public Optional<List<File>> getSelectedFiles() {\n return Optional.ofNullable(selectedFiles == null || selectedFiles.length == 0\n || (selectedFiles.length == 1 && selectedFiles[0] == null)\n ? null : Arrays.stream(selectedFiles).collect(Collectors.toList()));\n }", "priva...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "expr" Forrest.g:88:1: expr : expr_assign ;
public final ForrestParser.expr_return expr() throws RecognitionException { ForrestParser.expr_return retval = new ForrestParser.expr_return(); retval.start = input.LT(1); ForrestTree root_0 = null; ParserRuleReturnScope expr_assign14 =null; try { // Forrest.g:89:2: ( expr_assign ) // For...
[ "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }