query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
string conn = 1;
public java.lang.String getConn() { java.lang.Object ref = conn_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; ...
[ "int getConnectionNumber ();", "public Connection getConn() { return conn; }", "public void setConnection( Connection connection ) { this.conn = connection; }", "public void SetConnection();", "public static String get_connection_front_String(String GV_num){\r\n\t\tString connection_front = \r\n\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method supports the Avro framework and is not intended to be called directly by the user.
@Override @SuppressWarnings("unchecked") public void put(int index, Object value) { switch (index) { case 0: this.hosts = (List<String>)value; break; case 1: this.configParams = (List<Map<String, String>>)value; bre...
[ "protected abstract T createAvroWrapper();", "java.lang.Void message(java.lang.CharSequence contents) throws org.apache.avro.AvroRemoteException;", "public SmallConsumerObjectAvro() {}", "@Test\n public void shouldMatchAvroFormatter() throws Exception {\n String USER_SCHEMA = \"{\\n\" +\n \" ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads from filename character by character, and sets sortedCharFreqList to a new ArrayList of CharFreq objects with frequency > 0, sorted by frequency
public void makeSortedList() { StdIn.setFile(fileName); int[] occurances = new int[128]; int sum = 0; sortedCharFreqList = new ArrayList<>(); while(StdIn.hasNextChar()) { occurances[(int) StdIn.readChar()]++; sum++; } for (int i = ...
[ "public String getFrequencies(File inputFile) {\n\t\tHashMap<Integer, Integer> hash = new LinkedHashMap<>();// created a hashmap that is used to store the characters and their frequencies. used linked hashmap to preserve the order of keys and values\n\n\t\tBufferedReader reader = null;\n\t\ttry {\n\t\t\treader = ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onDismiss() { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether entity exists by the specified keys.
public boolean exists(Serializable... keys);
[ "@Override\n public List isEntityExists(ArrayList<String> argsNames, Object... args) {\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<Transactions> criteriaQuery = cb.createQuery(Transactions.class);\n Root<Transactions> transactions = criteriaQuery.from(Transactions.class);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void makeNoise() { System.out.println("rawr"); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remove file with the same name in different dirs
@Override public int compare(File file1, File file2) { String name1 = getName(file1); String name2 = getName(file2); String ext1 = getExtension(file1); String ext2 = getExtension(file2); if (StringUtils.equals(ext1, ext2)) { // a simple way to detect nested node...
[ "public void removeFiles(){\r\n //if names match, remove from filefam\r\n for (int i=0;i<fg.size();i++){\r\n for (int j=0;j<wrongFiles.size();j++){\r\n if(fg.get(i).getFileName().equalsIgnoreCase(wrongFiles.get(j))){\r\n fg.remove(i);\r\n }\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/basic Select, Like Select A FROM R, SELECT FROM R
private int mem_BasicSelect(String tableName, int hasLimit) throws FileNotFoundException, UnsupportedEncodingException { int k = 0; MemSelectIterator selectIterator = new MemSelectIterator(tableName, outerTableName, plainSelect, selectItems); while (selectIterator.hasNext()) { Row agrAns = selectIter...
[ "public R visit(SQLSelectSimple n);", "public R visit(SQLSelectWhere n);", "Query select(Query query, String alias, String... fields);", "Query select(String tableName, String alias, String... fields);", "public R visit(SelectClause n);", "Select getSelect();", "private <T> String getSelectFromSql(Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
accounts are the existing accounts repeated .google.protobuf2.Any accounts = 1 [(.cosmos_proto.accepts_interface) = "AccountI"];
public Builder addAccounts( int index, com.google.protobuf2.Any.Builder builderForValue) { if (accountsBuilder_ == null) { ensureAccountsIsMutable(); accounts_.add(index, builderForValue.build()); onChanged(); } else { accountsBuilder_.addMessage(index, ...
[ "java.util.List<com.google.protobuf2.Any> \n getAccountsList();", "@Override\r\n public void addAccounts(List accounts) {\r\n this.accounts.addAll(accounts);\r\n }", "java.util.List<? extends EconGcmessages.CMsgLookupMultipleAccountNamesResponse.AccountOrBuilder> \n getAccountsOrBuild...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Columndefinitions for the Version table
public interface VersionColumns extends BaseColumns { /** * The version of the Registration and Capabilities content provider. * * <P> * TYPE: INTEGER (int) * </P> * <P> * PRESENCE: REQUIRED * </P> ...
[ "public abstract String getColumnDefinition();", "public interface SnapshotsTable {\n\n /* compiled from: dialogready */\n public interface Columns {\n public static final SqlColumn f14982a = new SqlColumn(\"snapshot\", \"BLOB\");\n public static final SqlColumn f14983b = new S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method supports the Avro framework and is not intended to be called directly by the user.
@Override @SuppressWarnings("unchecked") public void put(int index, Object value) { switch (index) { case 0: this.joinTableName = (String) value; break; case 1: this.tableNames = (List<String>) value; break; ...
[ "protected abstract T createAvroWrapper();", "java.lang.Void message(java.lang.CharSequence contents) throws org.apache.avro.AvroRemoteException;", "public SmallConsumerObjectAvro() {}", "@Test\n public void shouldMatchAvroFormatter() throws Exception {\n String USER_SCHEMA = \"{\\n\" +\n \" ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
asignara a la variable Titulo el valor que se le pase por parametro
@Override public void SetTitulo(String titulo){ this.Titulo = titulo; }
[ "public void setTitulo(final String nombre) {\n titulo = nombre;\n }", "private void setTitulo(String titulo) throws TituloNoValidoException {\n\t\tif (esValido(titulo, patronNombres))\n\t\t\tthis.titulo = titulo;\n\t\telse\n\t\t\tthrow new TituloNoValidoException(\"Título no correcto (Debe comenzar por...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new inscription.
public Inscription(Account account, Training training) { super(); this.account = account; this.training = training; }
[ "Prescription createPrescription();", "public static SIN getInstance() {\n return new SIN();\n }", "public Influencer() {\n }", "private void instantiateIT() {\n\t\tidentifiers.add(\"IT\");\r\n\t\tvalues.add(\"NOOB\");\r\n\t}", "public Invoice() {\r\n // nothing to do\r\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The first stage of a NetworkProfile definition.
interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> { }
[ "public Profile() {\n }", "private ProfileCreator() {\n\t}", "public void setNetworkProfile(final NetworkProfile networkProfileValue) {\n this.networkProfile = networkProfileValue;\n }", "public ProfileService()\n\t{\n\t\tprofiles.put(\"KieranW\", new Profile(1, \"KieranW\", \"Kieran\", \"Why...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the clipboard collections to show
public void setCollections(String collections) { this.collections = collections; }
[ "public void copyToClipboard()\n \t{\n \t\t// Clipboard clipboard = new Clipboard (this.getDisplay());\n \n \t\tList<PathwayElement> result = new ArrayList<PathwayElement>();\n \t\tfor (VPathwayElement g : drawingObjects)\n \t\t{\n \t\t\tif (g.isSelected() && g instanceof Graphics\n \t\t\t\t\t&& !(g instanceof Sele...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 169: / 170:
public void setCcui_fecultapli(String string) /* 171: */ { /* 172:155 */ this.ccui_fecultapli = string; /* 173: */ }
[ "private String m6337k() {\n try {\n Rect a = C2765z.m6388a(super.mo29008f());\n int width = a.width();\n int height = a.height();\n HashMap hashMap = new HashMap();\n hashMap.put(\"width\", Integer.toString(width));\n hashMap.put(\"height\", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Decodes but discards input until the offset.
public T setStartOffset(long offset, TimeUnit units) { checkNotNull(units); this.startOffset = units.toMillis(offset); return getThis(); }
[ "@Test\n public void decode_caaabcccaccf(){\n System.setIn(new ByteArrayInputStream(new byte[]{\n 99,\n 98,\n 0,\n 0,\n 99,\n 2,\n 0,\n 0,\n 2,\n 1,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Could make this more efficient: String.hashCodeIgnoreCase
@Override public int hashCode(File f) { return f.getPath().toLowerCase(Locale.ENGLISH).hashCode() ^ 1234321; }
[ "private int hashFunc(String input) {\n int hashCode = 0;\n for (char c : input.toCharArray()) { // only capstures lowercase char\n hashCode = (hashCode * 27 + (c - 'a' + 1)) % hashArray.length;\n }\n return hashCode;\n }", "@Override\n public int hashCode() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Scanner leia = new Scanner(System.in); float n1,n2,n3,mediaFinal; System.out.println("Digite a primeira nota: "); n1 = leia.nextFloat(); System.out.println("Digite a segunda nota: "); n2 = leia.nextFloat(); System.out.println("Digite a terceira nota: "); n3...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets game attributes, as well as parsing the config file and the appropriate map to represent the game cells in window
public void gameSetup(){ ParseJSON.reader("config.json", this); this.gameFont = app.createFont("PressStart2P-Regular.ttf", 32); MapParser mp = new MapParser(); this.cells = mp.parse(this, this.map); mp.setGameAttributes(this); }
[ "private void loadConfig() {\n\t\tthis.width.setValue(Config.getWorldWidth());\n\t\tthis.height.setValue(Config.getWorldHeight());\n\t\tthis.masksize.setValue(Config.getMaskSize());\n\t\tthis.music.setSelected(Config.getMusic());\n\t\tthis.intro.setSelected(Config.getIntro());\n\t}", "public void loadConfigurati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prepare for a new collection increment.
public void prepare() { flushAvailableBlocks(); }
[ "protected void rawPrepareForCollection(int numberImagesPerCollection, ScanInformation scanInfo) throws Exception {\n\t\tgetDecoratee().prepareForCollection(numberImagesPerCollection, scanInfo);\n\t}", "public void nextContainerCounter()\n {\n this.containerCounter = this.containerCounter % 100 + 1;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will be called to set the specimen position.
private void setSpecimenPosition(final SpecimenForm form) throws ApplicationException { if (!form.isVirtuallyLocated()) { /*final String containerName=form.getSelectedContainerName(); this.specimenPosition.storageContainer.setName(containerName); this.specimenPosition.setPositionDimensionOneString(form.ge...
[ "public void setPosition(int position){\n this.position=position;\n }", "public void setPosition(float x, float y) { setX(x); setY(y); }", "public void setPosition(double position) {\n this.position=position;\n }", "void setPosition(double newPosition);", "public void setPosition(int pos...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the BinaryMessageDecoder instance used by this class.
public static BinaryMessageDecoder<StationInformation> getDecoder() { return DECODER; }
[ "public static BinaryMessageDecoder<DSPBid> getDecoder() {\n return DECODER;\n }", "public static BinaryMessageDecoder<Autopay> getDecoder() {\n return DECODER;\n }", "public static BinaryMessageDecoder<Product> getDecoder() {\n return DECODER;\n }", "public static BinaryMessageDecoder<my_record> ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub Carica la data
@SuppressWarnings("deprecation") @Override public void onClick(View v) { showDialog(START_DATE_DIALOG_ID); }
[ "@Override\n }", "@Override\r\n\t\tprotected void getData() {\n\r\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "protected void iniziaData() {\n super.iniziaDataStandard();\n this.company.findOrCrea();\n this.utente.findOrCrea();\n }", "@Override\n\t\t\t\tp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String getRawr() { return "Bzzzzzzzzzzzzzzzzzzzz"; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get Captured Image Rotation Degree
public static int getImageOrientation(String imagePath) { int rotate = 0; try { File imageFile = new File(imagePath); ExifInterface exif = new ExifInterface( imageFile.getAbsolutePath()); int orientation = exif.getAttributeInt( ...
[ "@VTID(46)\n float getRotation();", "default public float getRotation(){\n\t\treturn getTransform().getRotation();\n\t}", "int getRot();", "Expression getRotation();", "public int getRotation() {\n \t\treturn rotation;\n \t}", "double getDegSec();", "public int getRotation() {\r\n return rotatio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Signature: ArrayList > Void Purpose: Simply sets the moments variable to whatever ArrayList is passed in. RETURNS: Void
public void setMoments(ArrayList<Moment> moments) { this.moments = moments; }
[ "private void getArrayList(ArrayList result){\n }", "public void setThe_geom(ArrayList<LatitudeLongitude> the_geom) {\n this.the_geom = the_geom;\n }", "public Mazzo(){mazzo=new ArrayList<>();}", "void setValues(TwoDimensionArrayList<T> values);", "public static void avarage(ArrayList<Double> a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean commitPurchase() { return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Caches the hr actions in the entity cache if it is enabled.
public static void cacheResult(List<HrAction> hrActions) { getPersistence().cacheResult(hrActions); }
[ "public static void cacheResult(\n\t\torg.opencps.processmgt.model.ActionHistory actionHistory) {\n\t\tgetPersistence().cacheResult(actionHistory);\n\t}", "@Override\n\tpublic void cacheResult(SapEmployee sapEmployee) {\n\t\tEntityCacheUtil.putResult(SapEmployeeModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tSapEmployeeIm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
attrId = base_attr_info.id select from base_attr_info where id = attrId
@Override public BaseAttrInfo getAttrInfo(Long attrId) { BaseAttrInfo baseAttrInfo = baseAttrInfoMapper.selectById(attrId); // 给attrValueList 赋值 平台属性值集合 baseAttrInfo.setAttrValueList(getAttrValueList(attrId)); return baseAttrInfo; }
[ "DeviceBase selectByPrimaryKey(Integer id);", "OrgDynamic selectByPrimaryKey(Integer id);", "@Override\n public List<BaseAttrValue> getAttrValueList(Long attrId) {\n return baseAttrValueMapper.selectList(new QueryWrapper<BaseAttrValue>().eq(\"attr_id\", attrId));\n\n\n\n }", "BaseResource select...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void setStrValue(int nStrIndex, String str) throws RemoteException { Mtc100.mSetVarStr( nStrIndex, str); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Class constructor of the Done command.
public DeleteCommand (String description) { this.description = description; }
[ "public DoneCommand(String userData) {\n this.userData = userData;\n this.toExit = false;\n }", "public DoneCommand(boolean isExit, String description) {\n super(isExit, description);\n }", "public DoneCommand(String taskIndex) {\n this.taskIndex = taskIndex;\n }", "privat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get User object by user id
public User getUserById(int userId) { return userDao.findUserById(userId); }
[ "User getUserById( Long id );", "public User getUser(String id);", "User getById(int userId);", "public User userFromId(Long id) {\n if (id == null) {\n return null;\n }\n return userRepository.findOne(id);\n }", "@Override\n public User getUser(Integer id) {\n return em.find(User.c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean addStudentInfo(Student student) { return studentDao.saveStudent(student); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine if this configuration is of a release equal or lesser than version.
public boolean atMostVersion(final String version);
[ "public boolean isReleaseVersion() {\n\t\treturn suffix.equals(RELEASE_SUFFIX);\n\t}", "private static Boolean compareVersion(String current) {\n URL urlCurrent, urlLatest;\n try {\n urlCurrent = new URL(DOCKSTORE_CLI_REPO_URL + \"/tags/\" + current);\n urlLatest = new URL(DOCK...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test that spring has been correctly configured the cache.
@Test public void test() { for(int i=0; i<10; i++) { sampleCacheableBean.call("hey"); } assertThat(sampleCacheableBean.getCalled(), is(1)); sampleCacheableBean.call("ho"); sampleCacheableBean.call("let's go!"); assertThat(sampleCacheableBean.getCalled(), is(3)); sampleCacheable...
[ "@Test\n public void cachedTest() {\n // TODO: test cached\n }", "@Ignore\n @Test\n public void testCacheConfigurationAreInSync() {\n Configuration configuration = new Configuration().cache(new CacheConfiguration(\"one\", 0));\n CacheManager cacheManager = new CacheManager(configu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Friend friend1 = new Friend("Carthur", "Pongpatimet"); Friend friend2 = new Friend("James", "Scott", 2016, 04, 19); Friend friend3 = new Friend("Matt", "Jarvie", 1990, 11, 20, Gender.MALE, "Dunedin", "matt.jarvie@gmail.com", Relationship.COMPLICATED); System.out.print...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find all the most recent tricks.
List<TrickDTO> findTheMostLatests();
[ "public ArrayList<String> getRecentStreamers() throws IOException {\n ArrayList<String> prev = getLiveStreamers(), after, recent = new ArrayList<>();\n updateStreamers();\n after = getLiveStreamers();\n\n for (String foo : after) {\n\n if (prev.contains(foo) == false) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the String encoded encrypted text
public String getEncryptedTextMessage(String binaryData) { String encryptedMessage = ""; for (int numberOfChar = 0; numberOfChar < binaryData.length(); numberOfChar = numberOfChar + 8) { char[] charArrayEncryptText = binaryData.toCharArray(); String strEncrypt = ""; for (int j = numberOfChar; j < numb...
[ "public static String getEncryptedText(String plainText){\n\t\tString encryptedText = null;\t\t\n\t\t try {\n\t\t\t \t// Getting encoder \n\t\t Base64.Encoder encoder = Base64.getEncoder(); \n\t // Create MessageDigest instance for MD5\n\t MessageDigest md = MessageDigest.getInstance(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the refEq argument matcher with strict mode and different vararg values.
@Test public void testRefEq_notEqualsVarArgs() { testMock.method(refEq("stringValue"), refEq(3), refEq("objectValue1"), refEq("objectValue2")); replay(testMock); try { testMock.method("stringValue", 3, "objectValue1"); fail("Expected AssertionError"); ...
[ "public void testEquals() {\n System.out.println(\"equals\");\n Object obj = null;\n VarReference inreferencea = new VarReference(\"test\");\n VarReference inreferenceb = new VarReference(\"test\");\n boolean expResult = true;\n boolean result = inreferencea.equals(inrefere...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
agregado para chequeo, no estaba
public BufferedImage getREIMG(int numReclamo) throws IOException, ImagenException{ Imagen i= new ImagenDAO().findById(numReclamo); InputStream in = new ByteArrayInputStream(i.getEnBytes()); BufferedImage img = ImageIO.read(in); return img; }
[ "public void regReservaAlojamiento() \n\t{\n\n\t}", "private void escribirEnPantalla() {\n }", "private void elitismo() {\n\t\tMELHOR_INDIVIDUO = this.melhorAptidao();\r\n\t\t//Adiciona o melhor individuo a nova população\r\n\t\tnovaGeracao.add(this.get(MELHOR_INDIVIDUO));\r\n\t\tLOG(\"ELITISMO: Melhor Indi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to update patient record
public String update(Patient p){ try{ connection = getConnection(); PreparedStatement stmt=connection.prepareStatement("update patient set pname=?,cel=?,email=?,gjinia=?,adresa=?,diagnoza=? where patient_id=?"); stmt.setString(1, p.getPname()); stmt.setString(2, p.getCel()); stmt.setString(...
[ "private void updatePatientInformation() {\n System.out.println(\"Identification number of patient file to be modified:\");\n id = specifyID();\n System.out.println(\"Has patient developed eczema?\");\n updateEczemaStatus = selectEczemaStatus();\n\n System.out.println(\"Has patien...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a binary vector
public SparseVector (int[] indices, int capacity, int size, boolean copy, boolean checkIndicesSorted, boolean removeDuplicates) { ...
[ "Vector createVector(int length);", "@Override\n public Vector convertToVector()\n {\n return VectorFactory.getDefault().copyValues( this.getExponent() );\n }", "public static Vector identityVector(int length) {\n return new Vector(new double[length]);\n }", "public void vectorCopy(BitV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Store a value corresponding to a key. If the key already has an associated value, that value will be replaced.
public void put(K key, V value) { contents.put(key, value); }
[ "public void store(final Object _key, final Object _value) {\n\t\tinternalStore(_key, _value, -1L);\n\t}", "public void set(K key, V value) {\n if (!contains(key)) {\n // doesn't contain the key, so set a new pairing\n pairs.add(new Pair<K, V>(key, value));\n } else {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks that this element environment string
static boolean isEnvStringLiteral(PsiLiteralExpression literal) { PsiElement parent = literal.getParent(); if (parent instanceof PsiExpressionList) { PsiExpression[] expressions = ((PsiExpressionList) parent).getExpressions(); if (expressions.length < 1) return false; ...
[ "private void checkPair(String pair) throws ActionExecutorException {\n String[] varValue = pair.split(\"=\");\n if (varValue == null || varValue.length <= 1) {\n throw new ActionExecutorException(ActionExecutorException.ErrorType.FAILED, \"JA010\",\n \"Wrong ENV format [...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method used to setup our Device class, and SQL driver
public static void BackgroundTasks() { try { ColorSettingsUtility cs = new ColorSettingsUtility(); DeviceHandler dHandler = new DeviceHandler(); cs.setHandler(dHandler); Controller.setDh(dHandler); if (dHandler.getDevice() == null) { ...
[ "private void setupDatabaseConnection()\r\n\t{\r\n\t\tmanager = getLoaderManager();\r\n\t\tmanager.initLoader(ScreenProvider.LOADER_ID_SCREENS, null, this);\r\n\t\t//adapter = new ScreenAdapter(getApplicationContext(), null, true);\r\n\t}", "public void initialize() throws SQLException, IOException {\n connect...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use VerifyPhoneReq.newBuilder() to construct.
private VerifyPhoneReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "private pSetPhoneNumberReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public com.practicaldime.common.avro.ProfileAvro.Builder setPhoneVerified(boolean value) {\n validate(fields()[6], value);\n this.phoneVerified = value;\n fiel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
goods for the position
Product getProduct(int position) { return ((Product) getItem(position)); }
[ "public float getPos() {\n return (spos-xpos)/swidth;\n }", "public int getPosition_order();", "public int getxPos(){return xPos;}", "public int getPos(){\r\n\t\treturn pos;\r\n\t}", "@Override\n public ISalle getPosition(){\n return position;\n }", "long getXPosition();", "public int g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether the given list is sorted ascendingly. A list is sorted ascendingly if for two subsequent elements x,y the function x.compareTo(y) returns 0 or 1.
public static <T extends Comparable<T>> boolean isSortedAscending(final List<T> list) { return isSorted(list, SortOrder.ASC); }
[ "public static boolean isSorted(List list) {\n return list.stream().sorted(Comparator.naturalOrder()).collect(Collectors.toList()).equals(list);\n }", "public static boolean isSorted(int[] list){\n \n //Create a loop.\n for (int index=0; index<list.length; index++){\n for (int ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean isFinished() { return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onActivityResult(int requestCode, int resultCode, Intent data) { mMediaHelper.onActivityResult(requestCode, resultCode, data); super.onActivityResult(requestCode, resultCode, data); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the height drag option.
public boolean isHeightDrag() { return heightDrag; }
[ "public int getHeight() {\n return getProperty(\"height\") == null ? -1 : Integer.parseInt((String) getProperty(\"height\"));\n }", "public int getHeight() {\n\t\ttry { \n\t\treturn Integer.parseInt(height.getText());\t\n\t\t} catch ( NumberFormatException e) {\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the process variable measurement here
@Override public double getMeasurement() { return m_rightEncoder.getPosition(); }
[ "double getMeas();", "public double getMeasurement() {\n return measurement;\n }", "java.lang.String getProcessStat();", "private double getCpuUsage() {\n return cpuUsage;\n }", "private double getSystemUtilization() {\n File statFile = new File(PROC_STAT);\n FileReader fr ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get removable SD card path via reflections
public String getRemovableSDCardPath(){ StorageManager mStorageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); Class<?> storageVolumeClazz = null; try { storageVolumeClazz = Class.forName("android.os.storage.StorageVolume"); Method getVolume...
[ "private String LocatePath()\r\n {\r\n\t\t/*\tThis file seems to take on \r\n\t\t *\t one of the following formats. Note however there is some variation between manufactures \r\n\t\t * \tand even deviced from the same manufacturer\r\n\t\t\t# internal sdcard\r\n\t\t\t{\r\n\t\t\t\t \tmount_deep = 0\r\n\t\t\t\tums_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
dxGeom::dxGeom (dSpace _space, int is_placeable)
protected DxGeom (DxSpace space, boolean isPlaceable) { // setup body vars. invalid type of -1 must be changed by the constructor. type = -1; _gflags = GEOM_DIRTY | GEOM_AABB_BAD | GEOM_ENABLED; if (isPlaceable) _gflags |= GEOM_PLACEABLE; _data = null; body = null; body_next = null; if (isPlaceable) { ...
[ "public Gun (double xpos, double ypos, double delZ, int w, int h, int dW, int dH)\n {// assigns correct values to instance variables\n x = xpos;\n y = ypos;\n z=0;\n dZ=Math.PI/delZ;\n scaleW=dW;\n scaleH=dH;\n width=w;\n height=h;\n \n }", "@Override\r\n\tpublic void dibujarse(Graphi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the attributes to use when displaying the error pipe to the process being monitored.
public void setErrorAttributes(AttributeSet a) { errorAttr = a.copyAttributes(); }
[ "void setSystemError(SystemError err);", "@Override\n\tpublic void setErrorStream(OutputStream arg0) {\n\t}", "static void setErrToLog(){\r\n System.setErr(new PrintStream(new LoggerStream(LogManager.getLogger(\"err\"), Level.ERROR, System.err)));\r\n }", "public void setError(String errorMessage) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spring Data JPA repository for the Nap entity.
@SuppressWarnings("unused") @Repository public interface NapRepository extends JpaRepository<Nap, Long> { @Query("select nap from Nap nap where nap.user.login = ?#{principal.username}") Page<Nap> findByUserIsCurrentUser(Pageable pageable); }
[ "public interface LN002Repository extends JpaRepository<LN002, Integer> {\n\n\n\n\n}", "NominaRepository forNomina();", "public interface ProvinciaRepository extends JpaRepository<Provincia,String> {\n\n}", "@Repository\npublic interface ProvinsiDb extends JpaRepository<Provinsi, Long> {\n\n @Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string Description = 9;
public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { java.lang.String s = ((com.google.protobuf.ByteString) ref) .toStringUtf8(); description_ = s; return s; } else { return...
[ "public void setDescription(String description){ this.description = description; }", "public void setDescription(String i) \n { \n itsDescription = i; \n }", "public void setDescription(String description) {\r\n\tthis.description = description;\r\n}", "public void setDescription (String descripti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
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_ventana_principal) { return true; } else { finish(); } return super.onOptionsItemSelected(it...
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a variable field
@Deprecated public VariableField(String string, boolean strict) { canonicalIndex = DateTimePatternGenerator.getCanonicalIndex(string, strict); if (canonicalIndex < 0) { throw new IllegalArgumentException("Illegal datetime field:\t" + string); ...
[ "ConfiguredVariableItem createVariableItem();", "CreateFieldResult createField(CreateFieldRequest createFieldRequest);", "private AsnNode variableTypeValueFieldSpec(AsnNode parent){\n\t\ttrace(\"variableTypeValueFieldSpec\");\r\n\t\tskipOver(TokenType.AMPERSAND);\r\n\t\tAsnNode vtv = new AsnNode(AsnProduction.V...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
starts event loop for specified worker
public void controlWorker(int employeeID);
[ "public void startWorker(){\n Arrays.asList(workerPool).forEach(Worker::start);\n }", "Worker() {\n\t\t\tthis.start();\n\t\t}", "public void run() {\n\t\ttry {\n\t\t\tServerSocket listeningSocket = new ServerSocket(_port);\n\t\t\t\n\t\t\twhile(true){\n\t\t\t\tWorkerNodeHandler handler = new WorkerNode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility function to test grid
private void highlight() { for (int i = 0; i < CELL_SIZE * 20; i += CELL_SIZE) { for (int j = 0; j < CELL_SIZE * 10; j += CELL_SIZE) { if (grid[i / CELL_SIZE][j / CELL_SIZE] != null) {img.setColor(Color.RED);} else {img.setColor(Color.BLUE);} img.fillR...
[ "@Test\n public void testGrid () {\n /*\n * Grid grassGrid = new Grid(10, 10);\n * Grid waterGrid = new Grid(6, 6);\n * \n * assertEquals(10, grassGrid.getWidth(), DELTA);\n * assertEquals(10, grassGrid.getHeight(), DELTA);\n * assertEquals(6, waterGrid.getW...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleDto" $ANTLR start "entryRuleQualifiedName" InternalNestDsl.g:178:1: entryRuleQualifiedName : ruleQualifiedName EOF ;
public final void entryRuleQualifiedName() throws RecognitionException { try { // InternalNestDsl.g:179:1: ( ruleQualifiedName EOF ) // InternalNestDsl.g:180:1: ruleQualifiedName EOF { before(grammarAccess.getQualifiedNameRule()); pushFollow(FO...
[ "public final String entryRuleQualifiedName() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleQualifiedName = null;\n\n\n try {\n // ../org.eclipse.xtext.graphview.map/src-gen/org/eclipse/xtext/graphview/map/parser/antlr/internal/InternalGraph...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
parse XML file add information to the List
public void parse() throws SAXException, IOException { XMLReader reader = XMLReaderFactory.createXMLReader(); MenuSaxHandler handler = new MenuSaxHandler(); reader.setContentHandler(handler); reader.parse(new InputSource(FILE_NAME)); meals = handler.getMealList(); }
[ "public List<Set<DataTransferObject>> parseXml(File xmlFile, String root) throws ParserConfigurationException, IOException, SAXException ;", "public void parse() {\n // read and parse XML document\n\n try {\n // get root node of XML document\n DocumentBuilderFactory factory = D...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Scanner will store user input Ask user for month number (__), day (__), and year (__) I have to change month number to month string (conditionals) i have to change year (20) to look like 2020
public static void main(String[] args) { Scanner keybd = new Scanner(System.in); String monthName = ""; System.out.println("Please enter the month in number (1-12): "); int month = keybd.nextInt(); System.out.println("Please enter today's date: "); int day = keybd.nextI...
[ "public static void main(String[] args) {\n\n\t\t Scanner input=new Scanner(System.in);\n\t System.out.println(\"Please enter month number\");\n\t int month=input.nextInt();\n\t if(month==1){System.out.println(\"January\");}\n\t if(month==2){System.out.println(\"February\");}\n\t if(month==3){Sy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for Storage object.
public Storage(String filePath) throws IOException { this.file = new File(filePath); if (!file.exists()) { file.createNewFile(); } }
[ "public Storage() {\n this(null);\n }", "private Storage()\n {\n\t super();\n }", "public Storage() {\n this.storage = new File(FILEPATH);\n try {\n if (!this.storage.exists()) {\n this.storage.getParentFile().mkdirs();\n this.storage.createNew...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
buffer next count and return true if usable
abstract boolean bufferCount() throws IOException;
[ "boolean isBufferFull();", "int checkNext(int len, boolean changePos) throws IOException;", "public abstract boolean isBufferAlwaysFull();", "@Override\n public boolean hasNext() {\n return pointer < amount;\n }", "public synchronized boolean hasMoreElements() {\n\t\tif (buffer.total > total)\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Preload the first frame from a streaming animation.
void preloadFrame(GL gl) { waitBufferNotEmpty(); ImageData imagedata = new ImageData(gl, removeImage(0), format, texturewidth, textureheight); frames.put(0, imagedata); widthratio = imagedata.getWidthRatio(); heightratio = imagedata.getHeightRatio(); }
[ "private void loadFrame()\r\n\t{\n\t\tif (framePos >= 0 && framePos < frames.length)\r\n\t\t{\r\n\t\t\tskelett.loadFrame(frames[framePos].points);\r\n\t\t\tfireChangeEvent(framePos);\r\n\t\t}\r\n\t\telse \r\n\t\t\tSystem.err.println(\"Animation: loadFrame:\"+ framePos + \" frames.length: \" + frames.length);\r\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: packageprivate
public void populateFromPagerAdapter() { int curItem; removeAllTabs(); if (this.pagerAdapter != null) { int adapterCount = this.pagerAdapter.getCount(); for (int i = 0; i < adapterCount; i++) { addTab(newTab().setText(this.pagerAdapter.getPageTitle(i)), fa...
[ "protected void method_5557() {}", "@Override\n }", "@Override\n public void extornar() {\n \n }", "public void mo28221a() {\n }", "protected void mo4791d() {\n }", "protected void method_2117() {\n }", "@Override\r\n public void publicando() {\n }", "private ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changes the zip code for the customer's account pre: The new zip code is required post: The zip code is changed
public void changeZip(String newZip) { zip = newZip; }
[ "public void doSetZipCode(String zipCode) {\n this.zipCode = zipCode;\n }", "@Override\n\tpublic void setZipCode(java.lang.String zipCode) {\n\t\t_patientRegistration.setZipCode(zipCode);\n\t}", "public void setZipCode(int param){\r\n \r\n // ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if RMM has been initialized already or not.
public static boolean isInitialized() throws RmmException { return !defaultInitialized && isInitializedInternal(); }
[ "public boolean isCorrectlyInitialized ()\n {\n return m_initOk;\n }", "public static boolean isInitialized() {\n Space space = getSpace();\n return space != null\n && space.copyObjectFunc != null\n && space.restoreObjectFunc != null;\n }", "public boo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Simple Method To load in image database. I have generated this database using the ARcore Database generator tool It currently only contains one image, map.png for testing purposes but it can house up to 1000 images.
private boolean setupAugmentedImageDatabase(Config config) { AugmentedImageDatabase augmentedImageDatabase; // This is an alternative way to initialize an AugmentedImageDatabase instance, // load a pre-existing augmented image database. try (InputStream is = getAssets().open(...
[ "@Source(\"database.png\")\n\tImageResource database();", "public void loadImages(){\n\t\tImageLibrary.load(\"grass_tile\", \"assets/images/grass_tile.png\");\n\t\tImageLibrary.load(\"sand_tile\", \"assets/images/sand_tile.png\");\n\t\tImageLibrary.load(\"grass_tuft\", \"assets/images/grass_tuft.png\");\n\t\tImag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Decodes your encoded data to tree.
public TreeNode deserialize(String data) { var dataList = new LinkedList<String>(Arrays.asList(data.split(","))); return recursiveDeserialize(dataList); }
[ "public TreeNode deserialize(String data) {\r\n return null;\r\n }", "private void decode() {\n\t\t\n\t\tHuffNode huffNode = huffTree.root; // assigns root of tree to a variable\n\n\t\t// iterates through encoded message\n\t\tfor (int i = 0; i < encodedMessage.length(); i++) {\n\t\t\t\n\t\t\t// loops un...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CONSTRUCTOR Creates a new tofieldbutton to the given room
public ToFieldButton(Area area) { super(GameSettings.SCREENWIDTH - 100, GameSettings.SCREENHEIGHT - 100, "To field", area); }
[ "public JButton getROOM() {\n return roomButton;\n }", "public void L_CreateButton()\r\n\t{\r\n\t\tselectCharacterButton = new JButton(\"Select Character\");\r\n\t\tselectCharacterButton.setBackground(dark_pink);\r\n\t\tselectCharacterButton.setBorder(blackBorder);\r\n\t\tselectCharacterButton.addAction...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
validate the array for _return
protected void validate_return(java.lang.String[] param){ }
[ "protected void validate_return(java.lang.String[] param) {\n }", "protected void validate_return(EntregaFaltantes[] param){\r\n \r\n }", "protected void validateResult(PublResultType[] param){\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form ProyectoGrafico
public ProyectoGrafico() { super("Banco FCC"); listaAhorro= new java.util.LinkedList<>(); listaCheques= new java.util.LinkedList<>(); initComponents(); }
[ "public void newPersona() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}", "public void crearPreguntaProyecto() {\r\n\t\tConexion conexion = new Conexion();\r\n\t\tList<Plan> planes = null;\r\n\t\ttry {\r\n\r\n\t\t\tconexion.setAuto...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to print the results to 3 decimal places
public static void printResults (double radius, double area, double volume) { //print results for the user System.out.printf("\nWith a radius of %10.3f :\n" + "Circle area = %10.3f\n" + "Sphere volume = %10.3f\n", radius, area, volume); }
[ "@Test\n public void test2(){\n\n DecimalFormat decimalFormat = new DecimalFormat(\".000000\");\n System.out.println(decimalFormat.format(113.7234123234));\n\n double speed = 5969 * 1.0 / 515 * 3.6;\n System.out.println(speed);\n\n }", "public static void main(String[] args) {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will print the users previous guesses.
public void printGuesses() { System.out.println("Your previous guess(es): "); for (int i = 0; i < MAX_GUESSES - GUESSES_LEFT; i++) { if (i > 0) { System.out.print(", " + guessNum[i]); } else { System.out.print(guessNum[i]); ...
[ "void printWrongGuesses() {\r\n\t\tif (incorrectGuesses.size() > 0) {\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"Bad guesses: \");\r\n\t\t\tfor (int i = 0; i < incorrectGuesses.size(); i++) {\r\n\t\t\t\tSystem.out.print(incorrectGuesses.get(i) + \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Constructor Insertion sort based on label probability.
private void sortLabels( LabelMatch[] arr ) { int i, j; LabelMatch index; for( i = 1; i < arr.length; i++ ) { index = arr[i]; j = i; while( ( j > 0 ) && ( arr[( j - 1 )].getProbability( ) > index.getProbability( ) ) ) { arr[j] = arr[( j - 1 )]; j-...
[ "protected InsertionSort(String description, int N, Config config) {\n super(description, N, config);\n }", "Sorter() {}", "private static void insertionSort() {\n\t\t\r\n\t}", "private Sorting() {}", "private TopologicalSort() {\n }", "public CocktailSort() {\n }", "private Sort() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .TravelTransOrderCancelled travel_trans_order_cancelled = 56;
public com.gzligo.ebizzcardstranslator.mqtt.protobuf.MQTTProtobufMsg.TravelTransOrderCancelled getTravelTransOrderCancelled() { if (travelTransOrderCancelledBuilder_ == null) { if (msgCase_ == 56) { return (com.gzligo.ebizzcardstranslator.mqtt.protobuf.MQTTProtobufMsg.TravelTransOrderCance...
[ "com.voole.hobbit.proto.V3APB.V3aOrderCancelResponse getResponse();", "public void setCancelOrderResult(ObjPlaceOrderResponse param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required int64 fundCurrency = 21;
boolean hasFundCurrency();
[ "public double getPux16OtherPaymentAmt();", "public void setReinsuranceCurrency(typekey.Currency value);", "public void setPreferredCurrency(typekey.Currency value);", "AmountDTO buyCurrency(BuyCurrencyDTO buyCurrencyDTO);", "@Test\r\n public void depositSmallValueToBigBalance() throws UniqueIDConstraint...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); String commentAgencyName = ""; String commentStory = ""; ...
[ "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n Enumeration<String> parameterNames = request.getParameterNames(); //checking for unappropriate parameters\r\n if (parameterNames.hasMoreEleme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column decoration_info_decision.gmt_modified
public void setGmtModified(Date gmtModified) { this.gmtModified = gmtModified; }
[ "@Column(name=\"modified\")\r\n/* 62: */ public Date getModified()\r\n/* 63: */ {\r\n/* 64:68 */ return this.modified;\r\n/* 65: */ }", "@Basic\n @Column(name = \"gmtModify\")\n public Timestamp getGmtModify() {\n return gmtModify;\n }", "public Date getModifyDatetime() {\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
takes movementStrategy of this
@Override public IMovementStrategy getMovementStrategy() { return movementStrategy; }
[ "public void setMoveStrategy(MoveStrategy moveStrategy) {\r\n\t\tthis.moveStrategy = moveStrategy;\r\n\t}", "public void makeMove(){\n\t\t\n\t}", "@Override\n public void move(int framesPerSecond) {\n\n if(strategy != null){\n strategy.performStrategy(this, gw);\n }\n else {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public void configureGeneratedId(String str, StringBuilder sb, FieldType fieldType, List<String> list, List<String> list2, List<String> list3, List<String> list4) { if (fieldType.getSqlType() == SqlType.INTEGER || fieldType.getSqlType() == SqlType.LONG) { sb.append(SQLBuilder.PRIMARY_KEY_AUTOINCREME...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Vyber vsetkych dat o stavkovych prilezitostiach z databazy.
public List<BettingEvents> getAllBetEvents(EntityManager em) { TypedQuery<BettingEvents> q = em.createNamedQuery("BettingEvents.findAll", BettingEvents.class); return q.getResultList(); }
[ "public void dodaj() {\r\n \r\n PracownikDAO pracownikDAO = new PracownikDAO();\r\n String imie = name.getText();\r\n String nazwisko = surname.getText();\r\n Pracownik pracownik = new Pracownik(imie, nazwisko);\r\n pracownikDAO.save(pracownik);\r\n load();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve a parameter as a certain given class
public <T> T getParameterAsClass(String key, Class<T> clazz) { Collection c = parameters.get(key); if (c == null || c.isEmpty()) { return null; } else { Object o = c.iterator().next(); if (o != null && clazz.isAssignableFrom(o.getClass())) { re...
[ "public Class getParameterClass() {\n if( parameterClasses.length == 0) {\n return null;\n } else {\n return parameterClasses[0];\n }\n }", "Object getParameter(String name, T instance);", "public EffectParameterClass getParameterClass()\n\t{\n\t\treturn _parameterC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a PertGraf by reading the PERT formatted file 'path' .
static PertGraf createFromPertFile(String path) throws FileNotFoundException, InvalidFormatException { Set<TaskRaw> tasks = new HashSet<>(); FileReader input = new FileReader(path); BufferedReader reader = new BufferedReader(input); String line; try { while ((line = ...
[ "public static ProblemAGraph<String> loadFromFile(String path) throws FileNotFoundException {\n // reading data from file\n File file = new File(path);\n String vertices[];\n String edges[];\n Scanner sc = new Scanner(file);\n vertices = sc.nextLine().split(\" \");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public C2437b mo9336a() { return this.f7394s; }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
AJAX Days of month List Data Make Statics for each day on month
@RequestMapping(value = "list_days") public ModelAndView dayStaticListData(Model model, @RequestParam(value = "id", required = true) String id, @RequestParam(value = "y", required = true) Integer year, @RequestParam(value = "m", required = true) Integer month, // warn : jan.=1 ...
[ "private void populateMonth() {\n\n //Header with day names\n mItems = new ArrayList<>();\n Collections.addAll(mItems, mDays);\n\n //Days last month\n int firstDayWeek = mMonthDate.getDayOfWeek();\n mDaysLastMonth = firstDayWeek-1;\n int firstDayDisplay = mMonthDate....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets this vehicle's priority used for priority scheduling
public final void setPriority(int priority) { if(priority < 0 || priority > 4) { throw new RuntimeException("Invalid priority: " + priority); } this.priority = priority; }
[ "private void setPriority(int priority) {\n this.priority = priority;\n }", "public void setPriority(double priority) {\n this.priority = priority;\n }", "public void setPriority(long priority) {\n super.priority = priority;\n }", "public void setPriority(int priority) {\r\n _pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the singleton of this class. Must be initialized before used.
public static TravelAgency getInstance() { if (instance == null) { instance = new TravelAgency(); } return instance; }
[ "public static Singleton getInstance() {\n // lazily loaded\n if (instance == null) {\n instance = new Singleton();\n }\n\n return instance;\n }", "public static Singleton getInstance( ) {\r\n return singleton;\r\n }", "public static synchronized Singleton get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
copies match data from other Standing object
public void copyFrom(Standing other) { this.winCount = other.winCount; this.drawCount = other.drawCount; this.lossCount = other.lossCount; this.playerId = other.playerId; }
[ "public SoElement \n\t copyMatchInfo()\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t SoGLUpdateAreaElement result =\n\t (SoGLUpdateAreaElement )getTypeId().createInstance();\n\t \n\t result.origin.copyFrom(origin);\n\t result.size...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the TreeTable view object.
public TreeViewer getTreeView() { return treeViewer; }
[ "public TreeView getTreeView() {\n return treeView;\n }", "private TableView getTableView() {\n\t\tif (tableView == null) {\n\t\t\ttableView = new TableView(getListView(), getTxtCount());\n\t\t}\n\t\treturn tableView;\n\t}", "public TableView getTableView() {\n return tableView;\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Waits for a specified number of milliseconds.
protected final void waitTime(long millis) { Timer timer = new Timer(); timer.start(millis, HALTimeUnit.MILLISECONDS); while (robot.opModeIsActive() && !timer.requiredTimeElapsed()) ((LinearOpMode) robot.getOpMode()).sleep(1); }
[ "private static void wait(int milliseconds) {\r\n try {\r\n Thread.sleep(milliseconds);\r\n } catch (Exception e) {\r\n }\r\n }", "public void wait(int milliseconds) {\n try {\n Thread.sleep(milliseconds);\n } catch (Exception e) {\n // ignori...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
used for resizing the world.
private void updateSW() { sw = width*pixelSize; sh = height*pixelSize; }
[ "public void resize() {\n\t\t// Resizing screws up the spriteBatch projection matrix\n\t\tspriteBatch.getProjectionMatrix().setToOrtho2D(0, 0, getWidth(), getHeight());\n\t}", "private void resize() {\n Range rx = new Range(120, this.getWidth() - 120);\n Range ry = new Range(this.getHeight() - 70, 1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialise le menu de l'application.
private void initMenus() { JMenuBar menuBar = new JMenuBar(); saveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,ActionEvent.CTRL_MASK)); addMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_J,ActionEvent.CTRL_MASK)); deleteMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DE...
[ "private void initialMenu() { \t\t\r\n\t\tSystem.out.println(\"Welcome to our Punto Banco game \"+ player.getName()+\"!\");\r\n\t\tinitialMenu = new Menu(comm);\r\n\t\tinitialMenu.addMenuOption( new MenuOption('1',\"Start the game!\") );\r\n\t\tinitialMenu.addMenuOption( new MenuOption('2',\"Quit to the main menu!\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get info about bot and member
public void execute(MessageReceivedEvent e){ final Member self = e.getGuild().getSelfMember(); final GuildVoiceState selfvoiceState = self.getVoiceState(); final Member member = e.getMember(); assert member != null; final GuildVoiceState memberVoiceState = member.getVoiceStat...
[ "public LobbyInfo getLobbyInfo() {\n return lobbyInfo.getInfoForUser();\n }", "Map<String, String> getUserInfo();", "public Cmd.Public.stRoomUserInfoOrBuilder getInfoOrBuilder(\n int index) {\n if (infoBuilder_ == null) {\n return info_.get(index); } else {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for the channel name field
public final String getChannelName() { return channelName; }
[ "public final String getChannelName() {\n return mChannelName;\n }", "public String getChannelname() {\n return channelname;\n }", "public String getChannelName() {\r\n return ChannelName;\r\n }", "private String getChannelName() {\n\t\treturn self().path().name();\n\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a parameter definition to those contained in the dictionary.
public void registerParameterDefinition( ParameterDefinition parameterDefinition) throws NullPointerException, InvalidParameterException;
[ "public void addParameter(String key, String value);", "Components addParameter(String key, Parameter parameter);", "public void addParameter(String key, String value) {\n\t\tparameterMap.put(key, value);\n\t}", "public void addParameter (ParameterInfo parameter) {\n parameters.add (parameter);\n }", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }