query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
$ANTLR end "rule__XbaseConstructorCall__TypeArgumentsAssignment_3_1" $ANTLR start "rule__XbaseConstructorCall__TypeArgumentsAssignment_3_2_1" InternalSARL.g:47921:1: rule__XbaseConstructorCall__TypeArgumentsAssignment_3_2_1 : ( ruleJvmArgumentTypeReference ) ;
public final void rule__XbaseConstructorCall__TypeArgumentsAssignment_3_2_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSARL.g:47925:1: ( ( ruleJvmArgumentTypeReference ) ) // InternalSARL.g:47926:2: ( ruleJvmArgumentTypeReferenc...
[ "public final void rule__XConstructorCall__TypeArgumentsAssignment_3_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:16322:1: ( ( ruleJvmArgumentTypeReference ) )\n // InternalScripting.g:16323:2: ( ruleJvmAr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mithilfe von diesem Konstruktor wird verhindert, dass eine neue Instanz der Klasse erzeugt wird.
protected MatchdayMapper() { }
[ "@Override\n }", "@Override\n protected void init()\n {\n\n }", "@Override\n public void extornar() {\n \n }", "private O()\r\n {\r\n super();\r\n }", "Cokolady()\t{\r\n\t\tsuper();\r\n\t}", "public Levyt(){\n\t\t\t//oletus muodostaja\n\t\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "T__25" $ANTLR start "T__26"
public final void mT__26() throws RecognitionException { try { int _type = T__26; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalOntoUMLArchive.g:25:7: ( 'to' ) // InternalOntoUMLArchive.g:25:9: 'to' { match("to"); } ...
[ "public final void mT__26() throws RecognitionException {\n try {\n int _type = T__26;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalTest.g:19:7: ( 'end' )\n // InternalTest.g:19:9: 'end'\n {\n match(\"end\"); \n\n\n }\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
File f = new File(uri); if(!f.exists())
@Override public void run(String uri) { Utils.saveLocalApkIcon(packageManager, uri); }
[ "public boolean exists()\r\n/* 50: */ {\r\n/* 51: */ try\r\n/* 52: */ {\r\n/* 53: 90 */ URL url = getURL();\r\n/* 54: 91 */ if (ResourceUtils.isFileURL(url)) {\r\n/* 55: 93 */ return getFile().exists();\r\n/* 56: */ }\r\n/* 57: 97 */ URLConnection con = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prototype interface for Search File.
public interface SearchFileServiceInterface { public File[] getListOfFileByFolder(String path); }
[ "public String find (String fileName,File file);", "@Override\n public void searchFile (String fileToBeSearched){\n\n File file = getDirectoryPath(fileToBeSearched);\n\n String[] fileList = getDirectoryPath().list();\n\n for (String tempFileName: fileList) {\n if (tempFileName....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets true if has a PFlowRef
public boolean hasPFlowRef(org.semanticwb.model.PFlowRef value) { boolean ret=false; if(value!=null) { ret=getSemanticObject().hasObjectProperty(swb_hasPFlowRef,value.getSemanticObject()); } return ret; }
[ "public boolean hasReference() {\n return reference_ != null;\n }", "public boolean hasPayloadRef() {\n return fieldSetFlags()[1];\n }", "boolean hasRefNum();", "boolean hasParamsRef();", "public boolean getHasReference() {\n return hasReference;\n }", "boolean hasRefProcessId();", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for objects of class FlyWorld.
public FlyWorld() { // Create a new world with 800x600 cells with a cell size of 1x1 pixels. super(800, 600,1, false);//size of world, //false = buttery can pass screen // Butterfly object buttery = new Butterfly(); counter = new Counter(); //Add buttery...
[ "public MyWorld()\n {\n super(800, 500, 1);\n prepare();\n prioridadeClasses();\n \n }", "public World(){\n\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n addObject(n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method: Send Description: This method places output data onto the Output Stream
public void Send(byte[] outData) { if(btSocket.isConnected()) { try { //Write to output stream outStream.write(outData); } catch (IOException io) { //Error writing to stream io.pri...
[ "public static void sendData() {\n }", "public void sendData() {\n port.write(getNextData());\n }", "public BufferedOutputStream getServerDataSendStream(){\n return out;\n }", "public void dataSent () {\n /* STUB */\n }", "public StreamOutput(byte[] data, Socket conn){\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the Annotated Methods.
public List<Method> getAnnotatedMethods() { return annotatedMethods; }
[ "private String annotations(Method method) {\n StringBuilder str = new StringBuilder();\n Annotation[] annotations = method.getAnnotations();\n for (Annotation ann : annotations) {\n str.append(ann.toString()).append(\"\\n\");\n }\n return str.toString();\n }", "An...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when BlojsomServlet is taken out of service
public void destroy() throws PluginException { }
[ "@Override\r\n\tpublic void unload() throws ServletException {\n\t\t\r\n\t}", "public void destroy() {\n\t\tSystem.out.println(\"Servlet is being destroyed\");\n\t}", "public void destroy() {\n System.out.println(\"Servlet is being destroyed\");\n }", "protected void servletShutdown () {}", "@Over...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads a ThrowsSignature from buffer and sets buffer's current position to char following it. In a .class file, a ThrowsSignature is represented as either ^ClassTypeSignature or ^TypeVariableSignature.
protected String readThrowsSignature(CharBuffer buffer) { if(buffer.get() != '^') return "?"; if(buffer.charAt(0) == 'L') return readClassTypeSignature(buffer); else return readTypeVariableSignature(buffer); }
[ "public void test29() throws Exception {\n String signature = \"public class ExceptionForTest {\";\n checkSignatureWithBraces(\"Package_29.ExceptionForTest\", signature, \"Test 29 failed.\");\n\n signature = \"public ExceptionForTest(String message)\";\n checkSignature(\"Package_29.Excep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with those attributes. If you specify InstanceRequirements, you can't specify InstanceType.
public void setInstanceRequirements(InstanceRequirements instanceRequirements) { this.instanceRequirements = instanceRequirements; }
[ "public void setInstanceType(com.autodesk.ws.avro.InstanceType value) {\n this.instance_type = value;\n }", "private static void checkAttributes(Instances instances){\n\t\tSystem.out.println(\"Check attributes:\");\n\t\tfor(int ii = 0; ii < instances.numAttributes(); ii++)\n\t\t\tSystem.out.println(ii + \" : ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get book genre from a given string
public static BookGenre fromString(String bookGenre){ if(bookGenre != null){ for(BookGenre genre: BookGenre.values()){ if(bookGenre.equalsIgnoreCase(genre.toString())){ return genre; } } } return null; }
[ "public static Genre interpretGenre(String genre) {\n String sGenre = \"Genre.\" + genre;\n Genre genreSelected = null;\n try {\n Class<?> reflectGenre = Class.forName(sGenre);\n genreSelected = (Genre) reflectGenre.newInstance();\n } catch (ClassNotFoundException e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table sys_acl
int updateByExampleSelective(@Param("record") sysAcl record, @Param("example") sysAclExample example);
[ "List<String> getAclSqlColumns() {\n return aclSqlCols;\n }", "java.lang.String getAcl();", "public final native String acl() /*-{\n\t\treturn this.ACL;\n\t}-*/;", "public void setAcl(java.lang.String acl) {\n this.acl = acl;\n }", "public com.google.protobuf.ByteString\n getAclBy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Procura uma cidade caso exista
public Cidade procurar(String nome) throws CidadeNaoExisteException{ if(existe(nome)){ return repositorioCidade.procurar(nome); }else{ throw new CidadeNaoExisteException(); } }
[ "public boolean verifIntExistaCarrera(Carrera carrera){\n String[] id = {carrera.getId_carrera() + \"\"};\n Cursor c = db.query(\"Carrera\", null, \"id_carrera= ?\", id, null, null, null);\n if (c.moveToFirst()){\n return true;\n }\n return false;\n }", "@Override\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of deleteAlbumAt method, of class AlbumCollection.
@Test public void testDeleteAlbumAt() { for (int i = 0; i < 10; i++) { L1.addAlbum("Artist" + i, "title" + i, "genre" + i, 1990 + i, new Money(i + 2, (byte) (i + 10))); } try { L1.deleteAlbumAt(3); assertEquals(L1.getArtist(3), "Artist4"); ass...
[ "@Test\n\tpublic void testRemoveAlbum() {\n\t\tAlbum album = new Album(\"Master Of Puppets\", \"1985-01-01\", \"Metallica\",\n\t\t\t\t\"blackAlbum.jpg\", \"Metal\", \"Epic Records\", 12, new Date(),\n\t\t\t\t5.99, 9.99, 7.99, false);\n\n\t\tdbManager.insertAlbum(album);\n\n\t\talbum.setAlbumId(1);\n\n\t\tdbManager....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the originating script code for a given ArrayMarker, due to the fact that before a primitive can be worked with it has to be defined and made known to the script language.
public void create(ArrayMarker am);
[ "@Test\n\tpublic void buildScriptTest() {\n\t\t\n\t\tassetQuantities.add(10000L);\n\t\tmetadata = \"u=https://cpr.sm/5YgSU1Pg-q\";\n\t\tmarkerOutput = new MarkerOutput(assetQuantities, metadata);\n\t\tScript script = markerOutput.buildScript();\n\t\tassertEquals(true, script.isOpReturn());\n\t\tString scriptData = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for MessageID for wsa:RelatesTo header.
public void setRelatesToID(String id) { this.relatesToID = id; }
[ "public String getRelId() {\n return relationshipId;\n }", "public String getToId() {\n Object ref = toId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a wallet based on a list of coins.
private Wallet(String userUid, String date, List<String> coins, String walletUid) { this(userUid, date, coins, walletUid, WalletType.MAIN_WALLET); }
[ "public Wallet(String owner, int id, double money, double cryptoCoins) {\r\n this.owner = owner;\r\n this.id = id;\r\n this.money = money;\r\n this.cryptoCoins = cryptoCoins;\r\n }", "public Wallet(String owner, double money) {\r\n Random random = new Random();\r\n thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ P U B L I C G E T M E T H O D S Returns a list of all KLV sets in this payload (value field) assuming the existing key length and length field encoding.
public List<KLV> getSubKLVList(){ return this.getSubKLVList(this.keyLength, this.lengthEncoding); }
[ "public final native JsArrayInteger keySet() /*-{\n\t\tvar arr = [];\n\t\tvar index = 0;\n\t\tfor (var key in this) {\n\t\t\tif (this.hasOwnProperty(key)) {\n\t\t\t\tarr[index] = key;\n\t\t\t\tindex = index+1;\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}-*/;", "public Set<String> keySet() {\n\t\t\treturn bufwrs.keySet()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
used when starting a client
public static void remote(String ip, int port) { TheDbms.ip = ip; TheDbms.port = port; }
[ "public void initClient()\n\t{\n\t}", "@Override\n public void clientInit() {\n }", "void setupClient();", "@Override\n public void launch() {\n\n chooseConnection();\n try {\n mainClient.connect();\n } catch (NotBoundException| IOException e) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setter based sprint dependency injection
public void setMessage(String message) { this.message = message; }
[ "@Override\n\tpublic void inject() {\n\t}", "private DI(){}", "@PostConstruct\n private void setup(){\n }", "public void setService(Accessor accessor) {\n this.accessor=accessor;\n }", "void inject(Startup a);", "public Main() {\n injector.injectMembers(this);\n }", "@Before\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to handle Qnames
private void writeQName(javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String namespaceURI = qname.getNamespaceURI(); if (namespaceURI != null) { java.lang.String prefix ...
[ "public int getIndex(String qName);", "public void setQyName(String qyName) {\n this.qyName = qyName;\n }", "private String qName(Namespace namespace, String localName)\n {\n \tString prefix = namespaces.getPrefix(namespace.URI);\n if (prefix == null || prefix.equals(\"\"))\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for objects of class Condition
public Condition(Expression e1, Expression e2, String r) { // initialise instance variables exp1 = e1; exp2 = e2; relop = r; }
[ "protected Criterion(String condition) {\r\n super();\r\n this.condition = condition;\r\n this.typeHandler = null;\r\n this.noValue = true;\r\n }", "public FieldCondition() {\n }", "@Override\n\tpublic Condition createCondition() {\n\t\treturn new LogicalCon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
async initialization of the manager.
public Future<Void> init(Vertx vertx) { webClient = WebClient.create(vertx, webClientOptions); return readKubeConfig(vertx, fname).compose(x -> { if (server == null) { return Future.succeededFuture(); } logger.info("Enable Kubernetes config server {} namespace {}", server, namespace); ...
[ "private void init() {\n RemoteConfigManager.getInstance().tryFetchAsync();\n ThreadUtil.executeOnCommonThread(new SignRunnable());\n }", "private void asyncInitialize()\n\t{\n\t\tnew Thread(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tinitialize();\n\t\t\t}\n\t\t}).start();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method show somethings like "player '' attack." in below map.
public void guid() { }
[ "public void map(){\n System.out.println(\" ARMOURY\" );\n System.out.println(\" ↑ North \");\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create new intent to go to editor
@Override public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) { Intent intent = new Intent(MainActivity.this, DetailActivity.class); // Get current book Uri Uri currentBookUri = ContentUris.withAppendedId(BookEntry.CONTENT_URI...
[ "public void callTextEditor(){\n Intent intent = new Intent(MainActivity.mainActivity, TextEditorActivity.class);\n //give text editor an ID of a note folder\n intent.putExtra(\"NOTE_FOLDER_ID\", noteFolder.getID());\n startActivity(intent);\n }", "@Override\n\n p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the template that asset factory will use to generate the asset, template is string that could be processed by EEx with the given args, and its output is json. Then the json will be parsed and converted against the asset_name. e.g. If your asset name is `Ticket`,e.g. the the generated json data will be converted with `F...
public java.lang.String getTemplate() { java.lang.Object ref = template_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); template_ = s; retur...
[ "Asset create(Asset asset);", "Asset createAsset(String classname);", "java.lang.String getFromAssetName();", "public static R EntityTemplateWriteFile(JSONObject params) {\n\n StringBuffer content = new StringBuffer(\"package \" + params.getString(\"packageName\") + \";\" + \"\\n\");\n content.a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated setter method
public void setBrand(java.lang.String param){ this.localBrand=param; }
[ "abstract protected void set(Object value);", "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a container listener.
void addListener(Listener listener);
[ "CheflingBuilder addContainerListener(CheflingContainerListener listener);", "void addContainerGroupsListener(ContainerGroupsListener<CG,CN> listener);", "public void addToListener() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "public void addServerEventListener(IClientEventListener listener);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private boolean flag = true;
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_create_shop); shopName = findViewById(R.id.create_shop_name); shopGenre = findViewById(R.id.create_genre); shopLoc = findViewById(R.id.create_l...
[ "public boolean getFlag()\n {\n return flag;\n }", "public void setFlag(boolean flag) {\n\t\tthis.flag = flag;\n\t}", "public void setFlag(boolean b) {\n\n }", "public String getFlag() { return flag; }", "public int getFlag()\n {\n return 0;\n }", "public static void setFlag(b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end rule__Phase__Group__4__Impl $ANTLR start rule__Phase__Group__5 ../br.ufes.inf.nemo.ontouml.dsl.ui/srcgen/br/ufes/inf/nemo/ontouml/dsl/ui/contentassist/antlr/internal/InternalDslOntoUML.g:4457:1: rule__Phase__Group__5 : rule__Phase__Group__5__Impl rule__Phase__Group__6 ;
public final void rule__Phase__Group__5() throws RecognitionException { int stackSize = keepStackSize(); try { // ../br.ufes.inf.nemo.ontouml.dsl.ui/src-gen/br/ufes/inf/nemo/ontouml/dsl/ui/contentassist/antlr/internal/InternalDslOntoUML.g:4461:1: ( rule__Phase__Group__5__Impl...
[ "public final void rule__Phase__Group__6__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalKPIGenerator.g:798:1: ( ( ( rule__Phase__Group_6__0 )* ) )\n // InternalKPIGenerator.g:799:1: ( ( rule__Phase__Group_6__0 )* )\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor of the auction class
public Auction(String name, String description, int targetPrice, int entryPrice, int duration, Auctionable item) throws Exception { this.name = name; this.description = description; this.targetPrice = targetPrice; this.entryPrice = entryPrice; this.duration = duration; if (item.isEnable()) { this.item...
[ "public Auction(Auction auction)\n {\n if (auctionOpen == false){\n lots = auction.getNoBids();\n nextLotNumber = auction.nextLotNumber;\n auctionOpen = true;\n }else{\n lots = new ArrayList<Lot>();\n nextLotNumber = 1;\n auctionOpen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used locate the element by Name and click the element
public void clickByName(String name) { try { driver.findElement(By.name(name)).click(); ATUReports.add(name+"-Button is clicked successfully", LogAs.PASSED, new CaptureScreen(ScreenshotOf.DESKTOP)); } catch (NoSuchElementException e) { ATUReports.add("Expected Button does not exists", Log...
[ "public void actionsClick(WebElement element,String elementName) throws Exception{\n try{\n actions = new Actions(driver);\n actions.moveToElement(element).click().build().perform();\n log.info(\"Element \"+elementName+\" clicked successfully\");\n }catch (Exception e)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserts DBRows into the correct tables automatically
public final DBActionList insert(DBRow... listOfRowsToInsert) throws SQLException { DBActionList changes = new DBActionList(); for (DBRow row : listOfRowsToInsert) { changes.addAll(this.getDBTable(row).insert(row)); } return changes; }
[ "@Test\n public void testBatchInsert() throws SQLException {\n List<ClientTestModel> entities = new ArrayList<>();\n for (int i = 0; i < 3; i++) {\n ClientTestModel model = new ClientTestModel();\n model.setQuantity(10 + 1 % 3);\n model.setType(((Number) (1 % 3)).sh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts an object literal of style properties and values into a string of css text. This can then be assigned to el.style.cssText.The optional second parameter is a cssText string representing the starting state of the style prior to alterations. This is most often extracted from the eventual target's current el.style...
public native final String toCssText(Style css, String cssText) /*-{ return this.toCssText(css, cssText); }-*/;
[ "protected String getFormattedCss() {\n String result = \"\";\n if (this.cssStyle != null) {\n result = \" style=\\\"\" + this.cssStyle + \"\\\"\";\n }\n if (this.cssClass != null) {\n result += \" class=\\\"\" + this.cssClass + \"\\\"\";\n }\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method called by user to import User Data from a selected File PreCondition: Valid .diy file to read from PostCondition: File read into program data for use.
public void importData(File selectedPath) throws ClassNotFoundException, IOException { ObjectInputStream decoderim = null; FileInputStream fileIn = new FileInputStream(selectedPath); decoderim = new ObjectInputStream(fileIn); myUserData = (UserData)decoderim.readObject(); decoderim.close(); fileIn.clo...
[ "private void readFile() {\n if (inFile != null) {\n try {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(inFile));\n\n Toggle currentToggle = toggleGroupDataType.getSelectedToggle();\n if (currentToggle == radioAirline) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Scans directory with save files and populate list with file paths
private List<String> loadSaveFileNames() { List<String> saveFiles = new ArrayList<>(); File dir = new File(saveDirectory); if (dir.isDirectory()) { File[] files = dir.listFiles(); for (File file : files) { saveFiles.add(file.getAbsolutePath()); ...
[ "private void getFiles() {\n \tString pathSplitter = \"/\";\n \t\n \t// Windows file delimeter needs to escape delimeter to prevent regex compilation error\n \tif (File.separator.equals(\"\\\\\")) {\n \t\t//pathSplitter = pathSplitter + File.separator;\n \t}\n \t\n \t\tfor (Iterator iter...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the flow rate given the vehicles per minute. As per program requirements, the rate should divide 60.
public static void setWestFlowRateCars(int rate) { check(rate); westFlowRateCars = 60 / rate; }
[ "public void setRate(int rate);", "public void setRate(double rate) {\n if (rate < 0) {\r\n rate = 0.15f;\r\n } else {\r\n this.rate = rate;\r\n }\r\n }", "protected abstract void setRateImpl(float rate);", "public void setRate(double rate) {\n this.rate = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string s2c_msg = 2;
public Builder setS2CMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; s2CMsg_ = value; onChanged(); return this; }
[ "public void setMessage2(String message2){\n this.message2 = message2;\n }", "public com.futu.opend.api.protobuf.Notify.S2C getS2C() {\n return s2C_;\n }", "CtoSMessage parseInCtoSMessage(String message);", "public pomelo.area.ActivityHandler.totalInfo getS2CData() {\n if (s2CDataBui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the evmovfin id.
public void setEvmovfinId(Integer evmovfinId) { this.evmovfinId = evmovfinId; }
[ "public final void setMov(int mov) {\r\n this.mov = mov;\r\n }", "public void setEvent ( int id, Event event ) {\n this.events[ id ] = event;\n }", "public void setIdSistemaEspecifico(UUID idSistemaEspecifico){\t\t\n\t\tmiIdEstructuraFrame = idSistemaEspecifico;\t}", "public void setDetall...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles each epoch by receiving an unordered array of proposed transactions, checking each transaction for correctness, returning a mutually valid array of accepted transactions, and updating the current UTXO pool as appropriate.
public Transaction[] handleTxs(Transaction[] possibleTxs) { // make a Set for valid transactions. Set<Transaction> validTxs = new HashSet<>(); for (Transaction tx : possibleTxs) { if (isValidTx(tx)) { // if the transaction is valid add it to Set. vali...
[ "public Transaction[] handleTxs(Transaction[] allTxToBeHandledArr)\n {\n // Defensive copy of the original TXs in the array used in each handling round.\n Transaction[] poolTXsToBeHandled = copyOf(allTxToBeHandledArr, allTxToBeHandledArr.length);\n\n // Initialization of the array of transac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets student's last name.
public String getLastName() { return lastName; }
[ "public String getLastName(){\r\n\t\treturn student.getLastName();\r\n\t}", "public static String lastName() {\n return fetchString(\"name.last_name\");\n }", "public String getStudentLastName() {\n return mStudentLastName;\n }", "public String getLastName()\n {\n return name.las...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table sys_user
int updateByExample(SysUser record, SysUserExample example);
[ "public SysUser getUser() throws Exception {\n/* 47: 47 */ return (SysUser)getSessionAttribute(\"user\");\n/* 48: */ }", "@Override\n public String getUsername() {\n return sysUser.getUsername();\n }", "public long getSU_SysUserID() {\n return this.SU_SysUserID;\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table order_info
int updateByPrimaryKey(OrderDo record);
[ "@Override\n public OrderInfo getOrderInfo(Long orderId) {\n OrderInfo orderInfo = orderInfoMapper.selectById(orderId);\n // select * from order_detali where order_id =orderIdorderId 还需要查询订单明细信息。\n QueryWrapper<OrderDetail> orderDetailQueryWrapper = new QueryWrapper<>();\n orderDetail...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
addFromArrays adds further books to the library (if possible). For an index i, pos[i] specifies the position in the library where the book in books[i] shall be added. However, if there is already another book at position pos[i], then books[i] cannot be added. The array returned as result (of the same size as pos and bo...
public boolean[] addFromArrays(String[] pos, String[] books) { if(pos.length!=books.length){ return null; } if(pos==null || books==null){return null;} boolean[] FillWithBoolean=new boolean[pos.length]; for(int i=0;i<pos.length; i++){ if(library.contains...
[ "public void addBooks(Book books)\n {\n borrowedBooks.add(books);\n }", "public boolean add(Book book)\n {\n if (!isFull())\n {\n books[total] = book;\n total++;\n return true;\n }\n else \n return false;\n }", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_income_log.standard_money
public void setStandardMoney(Long standardMoney) { this.standardMoney = standardMoney; }
[ "public void setCostStandardAmt (BigDecimal CostStandardAmt)\n\t{\n\t\tset_Value (COLUMNNAME_CostStandardAmt, CostStandardAmt);\n\t}", "public void setMoney(int param){\r\n \r\n this.localMoney=param;\r\n \r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end setTenderCurrencyCountryCode() Returns whether to hide expected amounts for a blind close.
public boolean isBlindClose() { return blindClose; }
[ "public boolean isCurrency()\n {\n return (m_flags & COL_CURRENCY) == COL_CURRENCY;\n }", "public boolean hasPurchaseCountryCode() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }", "public boolean contactCodeTextDisplayed() {\n\n\t\treturn element(\"contactCountryCode\").isDis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates filter with given start and end dates
public TimeSlotStartedInPeriod(Date startDate, Date endDate) { this.startDate = dayStart(startDate); this.endDate = dayEnd(endDate); }
[ "public void setCreatedDateRange(Date start, Date end) {\n\n if (start == null) {\n return;\n }\n\n if (end == null) {\n String createdRange = String.format(\"created:[%s/DAY TO *]\",\n formatDate(start));\n this.solrQuery.addFilterQuery(creat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The last two arguments ensure LayoutParams are inflated properly. Log.i("message", "create the fragment view");
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate( R.layout.list_layout, container, false); mSwipeRefreshLayout = new ListFragmentSwipeRefreshLayout(container.getContext()); ...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n /**\n * Inflate the layout for this fragment\n */\n// Log.d(\"test\", \"layoutId \" + getArguments().getInt(\"layout\"));\n// return inflater.inflate(layoutId, c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get value from dob attribute of User class.
public Date getDob() { return dob; }
[ "public User get(String cdsid);", "public String getLDAPUser() {\n\t\treturn (String) get_Value(\"LDAPUser\");\n\t}", "protected DerpibooruUser getUser() {\n return mUserData;\n }", "@Override\n\tpublic User getUser(Integer idUser) throws DataOperationException {\n\t\treturn userDao.getUser(idUser);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
OTTO EVENT BUS LISTENER These events are managed via the Otto plugin, which is not a part of the Bridgefy framework.
@Subscribe public void onMoveReceived(Move move) { // work only with Move objects from our current match or if a match hasn't been set yet if (move.getMatchId().equals(matchId) || matchId == null) { if (move.getSequence() > sequence) { // get a reference to our matchId ...
[ "@Override\n public void onEvent(int eventType, Bundle params) {\n\n }", "@Override\n public void onEvent(int eventType, Bundle params) {\n\n }", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\n public void registerForEvents() {\n }", "public void hookEvents()\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
EFFECTS: prints banner options
private void bannerOptions() { System.out.println("Banner Options - Please select the options from the following: "); System.out.println("s -> single summon"); System.out.println("m -> multi summon"); System.out.println("v -> view banner"); System.out.println("b -> return to prev...
[ "public void printBanner() {\n\t\n\t}", "private static void printBanner()\r\n {\r\n System.out\r\n .println( \"Welcome to the Professional Magician's Crystal Ball!\" );\r\n System.out\r\n .println( \"----------------------------------------------------\" );\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a ElPropertyValue for a ToOne or ToMany.
ElPropertyValue createElPropertyValue(String propName, String remainder, ElPropertyChainBuilder chain, boolean propertyDeploy) { // associated or embedded bean BeanDescriptor<?> embDesc = targetDescriptor(); if (chain == null) { chain = new ElPropertyChainBuilder(isEmbedded(), propName); } cha...
[ "long createProperty(long typeId, FxPropertyEdit property, String parentXPath, String assignmentAlias) throws FxApplicationException;", "private Property createProperty(Classifier owner, String name,\r\n\t\t\tClassifier type, PropertyCall<?> handler) {\r\n\r\n\t\tProperty result = UMLFactory.eINSTANCE.createPrope...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); fondo12 = new javax.swing.JPanel(); btnBusqueda = new javax.swing.JButton(); btn2 = new ja...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property action.
public void setAction(String action) { this.action = action; }
[ "public void setAction(int action)\n {\n this.action = action;\n }", "public synchronized void setAction (ITestAction action) {\r\n\t\tthis.action = action;\r\n\t}", "public void setAction(String action)\r\n\t{\r\n\t\tthis.action = action;\r\n\t}", "public final void setOnAction(EventHandler<Acti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println(CaixaBD.getId()); // ID N RECONHECE !!!!!!!!!!!
public void AtualizaOrdemServico (OrdemServico ordem_servico) throws Exception { ConectionSingleton conexaosingleton = ConectionSingleton.getInstancia(); Connection connection = conexaosingleton.conectar(); String UPDATE = "UPDATE ordem_servico " + "SET " + "cl...
[ "public String getIdDocumento(){return idDocumento;}", "public int getId()\r\n/* 88: */ {\r\n/* 89:104 */ return this.idDetalleGuiaRemision;\r\n/* 90: */ }", "public int getIdRepresentante(){\r\n return localIdRepresentante;\r\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the upgradePauseEndTimestampUtc property: Indicates the end date and time to pause automatic runtime version upgrades on the cluster for an specific period of time on the cluster (UTC).
public OffsetDateTime upgradePauseEndTimestampUtc() { return this.innerProperties() == null ? null : this.innerProperties().upgradePauseEndTimestampUtc(); }
[ "com.google.protobuf.ByteString\n getEndUtcTimestampBytes();", "public Timestamp getEndTimestamp() {\n return _endTimestamp;\n }", "public long getSleepInEnd()\n {\n return sleepInEnd;\n }", "@ApiModelProperty(required = true, value = \"A [UNIX Timestamp](https://currentmillis.com/) in milli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ PURPOSE:identifies the min value in an array of integers INPUT:int[] values, array of integers OUTPUT: returns the min value as an integer
public static int min(int[] values){ int i = 0; int row =values.length; int temp = values[0]; while(i<row){ if (temp>values[i]) temp = values[i]; i++; } return temp; }
[ "public static int getMinValue(int[] numbers){\n int minValue = numbers[0];\n for(int i=1;i<numbers.length;i++){\n if(numbers[i] < minValue){\n minValue = numbers[i];\n }\n }\n return minValue;\n }", "public int min(int[] array) {\n\t\t// return ...
{ "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_settings) { return true; } if (id == R.id.action_profiledetails) { displayProfileDetailsPage(this....
[ "@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" ] ] } }
Processes requests for both HTTP GET and POST methods.
final void processRequest(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { response.setContentType("application/json; charset=utf-8"); response.setStatus(HttpServletResponse.SC_OK); final Result result = new Med...
[ "@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" ] ] } }
Change device tenant via DeviceStatus menu
private void changeDeviceTenant(String deviceName, String nonDefTenant) { // Change device tenant testFuncs.myDebugPrinting("Change device tenant", testVars.logerVars.NORMAL); testFuncs.myClick(driver, By.xpath("//*[@id='dl-menu']/a"), 2000); testFuncs.myClick(driver, By.xpath("//*[@id='dl-menu']/ul/li[2]...
[ "public void editTenant(int id){\n System.out.println(\"Edit Tenant # \"+id);\n }", "public void setTenant(List<Tenant> tenant) {\n this.tenant = tenant;\n }", "public TenantName tenant() { return tenant; }", "void setContext(TenantContext context);", "@Test(dataProvider=\"switchTenantDP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private / access modifiers changed from: public
private void clearFlags() { this.bitField0_ &= -4194305; this.flags_ = 0; }
[ "@Override\n }", "protected void method_5557() {}", "@Override\r\n public void publicando() {\n }", "private Propriedades() {\r\n\t}", "@Override\n public void extornar() {\n \n }", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", "protected void method_2117() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
template location is regarded as the template's name
@Override public String getTemplateName() { String templateName = null; switch(mTemplateToTest){ case JME: templateName = "resources/jme/class.vsl"; break; case DJANGO: templateName = "resources/django/class.vsl"; ...
[ "@Override\r\n public String templateName()\r\n {\r\n return template.getName();\r\n }", "private String getTemplateName(String contextPath, String requestURI)\n {\n String path = requestURI.substring(contextPath.length());\n\n if (path.endsWith(\"/\"))\n {\n path = path.concat(\"index.mustac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_pacientes_tab1, container, false); }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default Constuctor. Initialize firstName, middleName, and lastName to empty strings. Precondition: Input must be a String. Postcondition: firstName = ""; lastName = "";
public Person() { setName("", ""); }
[ "public Person(String iFirstName, String iLastName, String iMiddleInitial) {\n firstName = iFirstName;\n lastName = iLastName; \n middleInitial = iMiddleInitial; \n }", "public Name(String firstName, String lastName) {\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tth...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Service Interface for managing HHVC.
public interface ProductHHVCService { ProductHhvcVM createOrUpdateHhvcPolicy(ProductHhvcVM tnc, AgencyDTO currentAgency) throws AgencyBusinessException; PremiumHHVCVM calculatePremium(PremiumHHVCVM param) throws AgencyBusinessException; }
[ "public interface IServiceHr {\n\n\t/**\n\t * method for add {@link Vacancy} for {@link Hr}\n\t * \n\t * @param request is HTTPRequest\n\t * @param response is HTTPResponse\n\t * @return void\n\t * @throws ({@link IOException}\n\t */\n\tvoid addVacancy(HttpServletRequest request, HttpServletResponse response) thro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Whether or not the player is sneaking.
public boolean isSneaking() { return sneaking; }
[ "public boolean isPausingGame() {\n\t\treturn snake.isPause();\r\n\t}", "public boolean isShrunken() {\n return shrunken;\n }", "public boolean isSnooperEnabled()\n {\n return gameSettings.snooperEnabled;\n }", "public boolean hasBeenStunned(){\n if (stuncount > 0){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Starts and resumes the lifecycle. The lifecycle is put into the STARTED and RESUMED states. The lifecycle must already be in the CREATED state or an exception is thrown.
public void startAndResume() { if (mLifecycleRegistry.getCurrentState() != Lifecycle.State.CREATED) { throw new IllegalStateException("Invalid state transition."); } mLifecycleRegistry.setCurrentState(Lifecycle.State.STARTED); mLifecycleRegistry.setCurrentState(Lifecycle.Stat...
[ "@Override\n public void start() throws LifecycleException {\n }", "@Override\n\tprotected void startInternal() throws LifecycleException {\n\n\t}", "public void resume() {\n status = Constants.STATUS_RUNNING;\n run();\n }", "public void resume() {\n\t\tthis.onResume();\n\t}", "@Visib...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ If rabbit checkbox is clicked execute a method in the controller named actionPerformed under rabbitListener
void addRabbitsListener(ActionListener _listenForRabbitsButton) { jCheckBoxRabbits.addActionListener(_listenForRabbitsButton); }
[ "public void actionPerformed(ActionEvent event) {\r\n String command = event.getActionCommand();\r\n Object source = event.getSource();\r\n\r\n if (command.equals(\"OK\")) {\r\n\r\n if (setVariables()) {\r\n callAlgorithm();\r\n }\r\n } else if (comma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs with the default.
public ComboBoxGroupActionListener() { setSelectedIndex(0); currentItem = getSelectedItem(); }
[ "DefaultConstructor() {\n\t\tSystem.out.println(\"DefaultConstructor\");\n\t}", "public Default() {\r\n\t\tsetCompositionRoot(new Label(\"Default\"));\r\n\t}", "public BasicBuilder() {\r\n // NOP \r\n }", "DefaultConstructorDemo(){\n\t\tthis.x = x;\n\t\tthis.s = s;\n\t}", "public NLGFactory() {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reduces the size of the population and keeps the best solutions.
private void reducePopulationSize(int popSize) { for (int i=popSize; i<=endPopIndex; i++) { int insertIndex = -1; for (int j=0; j<popSize; j++) { if (solutionValues.get(i).doubleValue() < solutionValues.get(j).doubleValue()) { if (insertIndex == -1) { insertIndex = j; } else i...
[ "private void truncation(ArrayList<ParetoNode> population) {\n\n ArrayList<ParetoNode> nextGen = new ArrayList<ParetoNode>();\n //find best index\n while(nextGen.size()<populationSize){\n int current_best = 0;\n for(int i = 0; i<population.size(); i++){\n if...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Diese Methode dient dazu, einen nicht leeren Text aus ev. mehreren Worten einzulesen Diese Methode liest solange Text von der Eingabe ein, bis ein nicht leerer Text gefolgt von einem Linefeed/CarrageReturn (/r/n) eingelesen wurde
private String getLine() { String line = ""; while (line.trim().isEmpty()) { line = IN.nextLine(); } return line; }
[ "@Override\n public String getTexteSauvegarde() {\n return \"\";\n }", "@Override\n\tpublic void process_Text() {\n\n\t}", "@Override\n\tpublic String getTextoExibicao() {\n\t\treturn null;\n\t}", "public String readText() {return \"\";}", "public Text()\n\t\t{\n\t\tsuper();\n\t\t}", "private...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void setEditForm() { }
[ "@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" ] ] } }
/ renamed from: d.a.a.a.y0.b.h1.k0
public interface C6115k0 extends C6157j { /* renamed from: w */ C6034d mo23259w(); }
[ "static androidx.constraintlayout.motion.widget.C0394w m2195b(java.lang.String r1) {\n /*\n int r0 = r1.hashCode()\n switch(r0) {\n case -1249320806: goto L_0x007d;\n case -1249320805: goto L_0x0073;\n case -1225497657: goto L_0x0068;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Optional. The client supports applying batch edits to the workspace by supporting the request 'workspace/applyEdit'. bool apply_edit = 1 [(.google.api.field_behavior) = OPTIONAL];
public boolean getApplyEdit() { return applyEdit_; }
[ "@Override\n\tpublic boolean UpdateApply(Apply apply) {\n\t\treturn applyDao.UpdateApply(apply);\n\t}", "public boolean applyChanges(boolean askForApply) {\n // nothing to do :)\n return bHasChange = false;\n }", "public void setApplyContent(String applyContent) {\r\n this.applyContent =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This methods runs, before running any one of the test case This method is used to initialize the required variables
@BeforeClass public static void setup() { dam = new q3(); }
[ "@BeforeAll\n public static void initVariables() throws ParserException {\n model = new ModelManager();\n storage = new StorageManager();\n foodList = SampleUtil.generateSampleData(5);\n }", "@Before\n public void init() {\n game = new Game(gameRule, betTokenAuth);\n ga...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
uint32 pts_count = 4;
int getPtsCount();
[ "public int getNumPoints() {\n return 2;\n }", "int getCoordsCount();", "int getNumbVertices();", "public int getPointCount() { return _points.size(); }", "int getPoints0();", "public static native int GetControlPointsCount(long lpjFbxTrimNurbsSurface);", "@Override\n\tpublic int nbPoints() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To get the jobEvent
public JobEvent getJobEvent() { return jobEvent; }
[ "public interface JobGeneratorEvent {\n}", "E getEvent();", "public Object event() {\n return event;\n }", "String getJob();", "public Object getEvent() {\n return event;\n }", "public Q getEvent() {\n\t\t\treturn event;\n\t\t}", "Object getOtherjob();", "Job getJobInstance();", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The following method takes as a parameter the id of a tile and if this tile has a supply it returns the supply else it returns a supply with id 0
public Supply tileWithSupply(int tileId){ // Iterate the array of supplies with an enhanced for loop for(Supply x : supplies){ if(x.getSupply_tile_id() == tileId) return x; } return new Supply(); }
[ "public Tile getTileById(int tileId){\n Tile found = null;\n\n for(Tile tile : tiles) {\n if(tile.getId() == tileId){\n found = tile;\n break;\n }\n }\n\n return found;\n }", "int getTowerTileId();", "boolean hasTileId();", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert Daltons to PPM
public static float convertDaToPPM(float deltaMass , float centerMass) { return deltaMass * 1000000 / centerMass; }
[ "long calcPennies(int p, int d) {\n\t\tlong total = p;\n\n\t\twhile (d > 0) {\n\t\t\ttotal *= 2;\n\t\t\tSystem.err.printf(\"%d\\t\", total);\t/* TMP */\n\t\t\td -= 1;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\n\t\ttotal -= p;\t/* do not double the amount on the first day */\n\n\t\treturn total;\n\t}", "public sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public ICuentaCorriente darCuentaCorriente() { return new CincuentaCorriente(); }
[ "@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" ] ] } }
repeated .innova.protocol.ActorList entered_actors = 202;
public Builder setEnteredActors( int index, innova.protocol.InnovaProtocol.ActorList.Builder builderForValue) { if (enteredActorsBuilder_ == null) { ensureEnteredActorsIsMutable(); enteredActors_.set(index, builderForValue.build()); onChanged(); } else { ...
[ "public List<String> getActors(){ return this.actors; }", "public List<Actor> getActores() { return actors; }", "public interface ActorService extends ActorReference{\n\n}", "public interface Actor\n{\n /**\n * Ejecuta el comportamiento normal de un actor\n * @param La lista de actores que son crea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Maximum number of seconds to execute workflow instances per quartz job fire.
@Override public int getMaxSecondsPerFire(String workflowClassName) { // TODO Fix specific maxSeconds // String maxSeconds = configFor("workflow.maxSeconds." + workflowClassName); // if (StringUtils.isBlank(maxSeconds)) { // maxSeconds = configFor("workflow.maxSeconds"); // }...
[ "public int getEffectiveMaxSecsSubmittedJob() {\r\n\t\treturn emmsj / 1000;\r\n\t}", "int getSyncJobMaxAttempts();", "public int getRunLimit();", "int getMaxDaysOfOnlyFailedJobsBeforeConnectionDisable();", "long getMaxRunCount();", "public int getMaxWaitTime() {\n\t\treturn maxWaitTime;\n\t}", "int getW...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to update the Ships image
private void updateShip() { if (spaceship.isVisible()) { spaceship.move(); } }
[ "@Override\n\tpublic void updateImage() {\n\t\t\n\t}", "public void generateShips(){\n deleteDataFromMap();\n deleteDataFromPositionOfShip();\n boolean temp = isItVertical;\n generate((byte) shipLength);\n wspXOfImage =(wspXOfImage*sizeOfSquare)+ShipPanel.gapForCoordinates;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extraction de la position unique de la liste
private void finishFlagPositioner(){ for(Vector2 position : finishPosition){ finishFlagPosition.x = position.x; finishFlagPosition.y = position.y; } }
[ "@Override\n\tpublic int hashCode(){ return position.hashCode(); }", "List<BigInteger> getPos();", "public int indexdupais(String nompays){\r\n int index=-1;\r\n PointPlacemark mark;\r\n for(int i=0;i<this.listpays.size();i++){\r\n if(listpays.get(i).getNom().equa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a potential folder
public void remFolder(String folderName) { if(folders.contains(folderName)) { folders.remove(folderName); } }
[ "void removeFolder(CommonPath path, OperationCallback callback);", "@Override\n public void deleteFolder(String path) {\n\t\tFile file = new File(path);\n\t\tif(file.list()!=null){\n\t\t\tint i = file.list().length;\n\t\t\tfor(int t = 0; t<i; t++){\n\t\t\t\tString s = file.listFiles()[0].toPath().toString();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 94 /Coverage entropy=1.5258700885844751
@Test(timeout = 4000) public void test094() throws Throwable { StringReader stringReader0 = new StringReader("$A,\"|'/6z1|UhB!T"); assertNotNull(stringReader0); char[] charArray0 = new char[5]; charArray0[0] = 'O'; int int0 = stringReader0.read(charArray0); assertArrayEqu...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "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 url = BOOK_PAGE; HttpSession session = request.get...
[ "@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" ] ] } }
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String operacion=request.getParameter("operacion"); try{ Class[] mParams={HttpServletRequest.class, HttpServletResponse.class}; Met...
[ "@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" ] ] } }
/ close the gas station
public void closeGasStation() { gasStation.closeGasStation(); }
[ "void closeDoor();", "private void doorClosing(Hallway hallway) {\n }", "public void closeDoor() {\n\t\topenOrClosed = \"closed\";\n\t}", "public void as_close()\r\n\t\t{\n\t\t\tm_as_state = AS_STATE_BASE + AS_CLOSED;\r\n\t\t}", "public void close()\n\t{\n\t\t// set claw to close\n\t\tclawSolenoid.set(tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Moves two marbles in a given direction by pushing opponent marbles
public boolean moveWithPushing(String pos1, String pos2, int direction, Marble m) { String headcoord; String endcoord; if (nextCoordinates(pos1, direction) != null && nextCoordinates(pos1, direction).equals(pos2)) { headcoord = pos2; endcoord = pos1; } else { headcoord = pos1; endcoord = pos2; } ...
[ "private void movePile() {\n\t\twhile(beepersPresent()) {\n\t\t\tpickBeeper();\n\t\t\tmove();\n\t\t\tputBeeper();\n\t\t\tturnAround();\n\t\t\tmove();\n\t\t\tturnAround();\n\t\t}\n\t\tmove();\n\t\tturnAround();\n\t}", "private void move(){\r\n List<Position> w1 = player1.getCar().move();\r\n List<Pos...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Tests dealer's hitStayBust method
@Test public void hitStayBustDealer() { Dealer dealer1 = new Dealer(); Dealer dealer2 = new Dealer(); Dealer dealer3 = new Dealer(); Dealer dealer4 = new Dealer(); dealer1.addToHand(new Card(1, Card.Suit.SPADES)); dealer1.addToHand(new Card(10, Card.Suit.SPADES)); dealer1.addToHand(new Card(13, Card...
[ "@Test\n\tvoid testStay() {\n\t\t\n\t\tint[] firstLocation = { 1, 1 };\n\t\tint[] secondLocation = { 2, 2 };\n\t\tint[] thirdLocation = { 3, 3 };\n\t\t\n\t\t// a healthy Hobbit\n\t\tHobbit healthy = new Hobbit(firstLocation, 10, 3, 4);\n\t\thealthy.sustenance = 6;\n\t\thealthy.turnsSinceReproduction = 1;\n\t\theal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the shortest path from the departure to the arrival
public void findPath() { MBox departure = getDeparture(); MBox arrival = getArrival(); if(departure == null) { JOptionPane.showMessageDialog(null,"The maze does not contain any departure box","Error",JOptionPane.WARNING_MESSAGE); return; } if(arrival == null) { JOptionPane.showMessageDialog(null,"The...
[ "public String findShortestPath()\r\n {\r\n Vertex stop = u;\r\n stop.setTime(0); //start vertex has no cost and time\r\n stop.setCost(0);\r\n\r\n\r\n\r\n //perform edge relaxation\r\n edgeRelaxation(stop);\r\n\r\n return backtrackPath(v, distanceType) + \"\\n\";\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field poolName is set (has been assigned a value) and false otherwise
public boolean isSetPoolName() { return this.poolName != null; }
[ "public boolean isSetPool() {\n return this.pool != null;\n }", "public boolean isPooled() {\r\n return poolName != null;\r\n }", "public boolean isSetInstance_name() {\n return this.instance_name != null;\n }", "public boolean isSetOfferPoolId()\n {\n synchronized (monitor())\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo que regresa todas las encuestas relacionadas al evento
public Set<Encuesta> getEncuestas() { return this.encuestas; }
[ "@Override\n\tpublic void encender() {\n\t\tSystem.out.println(\"El Dispositivo se ha encendido. \");\n\t\t\n\t}", "@Override\n public void enMensajeEntregado() {\n //TODO\n }", "@Override\n\tpublic void serChocado(EscudoEnemigo e) {\n\t\t\n\t}", "public void eventEnter() {\n // Add t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Copies the binary file of an instance to a specified location on the filesystem.
public static void getBinaryFileOfInstance(Instance i, File f) throws FileNotFoundException, IOException, NoConnectionToDBException, InstanceNotInDBException { FileOutputStream out = new FileOutputStream(f); try { Util.sevenZipDecode(getBinary(i.getId()), out); } catch (SQLExcept...
[ "Path copy();", "public CopyOperation (Shell shell, File src, File dest) {\r\n\tsuper (shell, new File [] {src});\r\n\tthis.dest = dest;\r\n}", "boolean copyTo(String desPath) throws IOException;", "void copyFile(String source, String target);", "static void doSaveBinaryFile(File path, InputStream content)\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Need to log out if currently logged in
@Test public void testUserRegistration() { onView(withId(R.id.create_user_email)) .perform(typeText(validEmail)).check(matches(isDisplayed())); onView(withId(R.id.create_password_input)) .perform(typeText(validPassword)); onView(withId(R.id.confirm_password_i...
[ "public void logOut() {\n techIsLoggedIn = false;\n }", "public void logOut() {\n this.loggedIn = null;\n }", "public void logOut() {\n setLogin(false);\n logInOrRegister();\n }", "public void logOut(){\n\t\tuserName = \"\";\n\t\tpassword = \"\";\n\t\tloggedIn = false;\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes key from the cache.
public boolean delete(Object key) throws IllegalArgumentException, CapabilityDisabledException { return ms.delete(key); }
[ "public void remove(Object key)\n\t{\n\t\tm_cache.remove(key);\n\t}", "ScriptResourceCacheManager<K, V> remove(K key);", "@Override\n public Object remove(Object key) {\n // Removes from cache.\n int index = key.hashCode() & _mask;\n if (key.equals(_keys[index])) {\n _keys[ind...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void dragGestureRecognized(DragGestureEvent dge) { try { this.sourceStack=(CardStack)this.sourceCard.getParent(); this.dragStack=new ListedCards(); int idx=this.sourceStack.cards.indexOf(this.sourceCard); int n=0; for (int i=idx;i<this.sourceStack.cards.size();i++) { this.dragS...
[ "@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" ] ] } }