query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
1145bbd15ab0c6ca4c15e01790e39ea0
Generates an unique and anonymous deviceidentifier based on the time of generation in milliseconds concatenated to a random String. This guarantees that every user has a different identifier with a very high certainty. To be the same: must be generated at the exact same millisecond + get the exact the same random strin...
[ { "docid": "4eecfdf722e8e15f33783d3da5cbb736", "score": "0.7849062", "text": "private String generateAnonymID() {\n\t\t// time in millis as a string\n\t\tlong time = System.currentTimeMillis();\n\t\tsetRegisteredTime(time);\n\t\tString timeAsString = time + \"\";\n\n\t\t// random string to complete to 3...
[ { "docid": "e120b9ec2a6b9edc91fc88c5cbabd54d", "score": "0.76219004", "text": "public static String generateUniqueRandomString() {\r\n\t\treturn System.currentTimeMillis() + UUID.randomUUID().toString().replace(\"-\", \"\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "747209f4ac8d27b812d6fe3...
e1641857b1bf035239460ee21e33d55c
Executes command. Displays all tasks in TaskList
[ { "docid": "ac0fe9d338f70b225f35a7f16e0b485a", "score": "0.6272231", "text": "@Override\n public String execute(TaskList tasks, Ui ui, Storage storage) {\n String commandResult = tasks.sort(getLine());\n return ui.showSortedList(commandResult);\n }", "title": "" } ]
[ { "docid": "43a95a50e837ca53a36eb830112e1e50", "score": "0.77090263", "text": "public static void listOutTasks() {\n DukeUI.printLine();\n int i = 0;\n while (i <taskCount()) {\n i++;\n Task selectedTask = getTaskWithInt(i);\n DukeUI.print(i + \". \"...
1bce8efd3bfb11700383e54ea2672158
TODO Autogenerated method stub change of show hide image
[ { "docid": "c0357c0f2183fa8357087f65cafd2aea", "score": "0.0", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tpassword = (EditText)findViewById(R.id.pwd);\n\t\t\t\t\t\n\t\t\t\t\tshow = (TextView)findViewById(R.id.show);\n\t\t\t if(flag) {\n\n\t\t\t show....
[ { "docid": "628a8817575ee7cbe76ee99d201e8ef6", "score": "0.7509425", "text": "public void imshow(){\n imageIzq.setVisibility(View.VISIBLE);\n imageIzq.setImageBitmap(pieizqBitmap);\n imageDer.setVisibility(View.VISIBLE);\n imageDer.setImageBitmap(piederBitmap);\n }", "...
40366c28cc40dab9cec1d346dd6c3cce
optional .lockerbox.DeliveryPoint.Lockerbox lockerbox = 4; if type == LOCKERBOX
[ { "docid": "3f2db83fedbf5f8bb745b958cd27fa07", "score": "0.56780684", "text": "public Builder mergeLockerbox(com.zpaslab.lockerbox.LockerboxProtos.DeliveryPoint.Lockerbox value) {\n if (lockerboxBuilder_ == null) {\n if (((bitField0_ & 0x00000004) == 0x00000004) &&\n lockerb...
[ { "docid": "2f481f025afd5afb4cdd36c5b3cb5b0a", "score": "0.78841454", "text": "com.zpaslab.lockerbox.LockerboxProtos.DeliveryPoint.Lockerbox getLockerbox();", "title": "" }, { "docid": "54a030241f06a65d0d463d0ddb604701", "score": "0.7797556", "text": "com.zpaslab.lockerbox.LockerboxP...
efd637cced6ba14d1ccc8d3eb8d37562
The constructor of the ls store method
[ { "docid": "d73cc67063392e237e3ed3d5900fd789", "score": "0.0", "text": "public LsServiceStackEntry(ProcessStackEntry parent,\n Map variables, CallStatement callStatement, Object target,\n List parameters) {\n super(parent.getProcessorMemoryManager(), parent, variables);\n ...
[ { "docid": "4df179da6141ede2245e52c6a46c0e35", "score": "0.67439646", "text": "public Store() {\r\n\t}", "title": "" }, { "docid": "248a5aa57bb2a85b2e1dc30212ee7ab2", "score": "0.65029806", "text": "public Store() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.sales.tables.S...
d4db7da7045aca3ec513f6e7ac3a1da1
/ Grid section Following methods are for execution in Grid mode . Make sure to include abstract and grid group and exclude nongrid group in testng.xml file
[ { "docid": "66cc429adc7a31fbe5673834c001e0bd", "score": "0.5750358", "text": "@Parameters({ \"config-file\" })\r\n\t@BeforeTest(groups = {\"abstract\", \"grid\"})\r\n\tpublic void initTestInGrid(String configfile) throws Exception {\r\n\t\tlogger.warn(\"Config File :\" + configfile);\r\n\t\tconfig = new...
[ { "docid": "e02193b6f6302d97d8c0bfb7d7b5e8cb", "score": "0.6762625", "text": "public void testRenderGrid() throws Exception {\n UnitTestsHelper.loadConfig(\"config.xml\");\n Graphics graphics = new MockGrahpics();\n DiagramViewer viewer = new DiagramViewer();\n Diagram diagra...
497d0c242ea7a95a32f52dd077d24b94
Gets the "Contacts" element
[ { "docid": "92d67d79f35c3e420523ab2090d9e6f5", "score": "0.6725308", "text": "public org.erdc.cobie.cobielite.core.ContactCollectionType getContacts()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.erdc.cobie.cobielite.core.ContactCollection...
[ { "docid": "6a7a9e4385a744a3eb9c5abc0c2197e3", "score": "0.7426727", "text": "public String getContacts() {\n return contacts;\n }", "title": "" }, { "docid": "dca64bad8edb7903e64b86a587258a57", "score": "0.7238686", "text": "public java.util.List<ContactDetail> contact() {...
63013c7e06a74a7aaafe321d589ea40b
Creates an effect that causes the player to take a card stacked on a card accepted by the specified stackedOn filter into hand.
[ { "docid": "cdb571abe57454252b2665e7963b8474", "score": "0.7636773", "text": "public TakeStackedCardIntoHandEffect(Action action, String playerId, Filterable stackedOnFilters) {\n super(action, playerId, 1, 1, stackedOnFilters);\n }", "title": "" } ]
[ { "docid": "dcd77e991d99ac86dc9be41f82109f7d", "score": "0.80285656", "text": "public TakeStackedCardIntoHandEffect(Action action, String playerId, PhysicalCard stackedOn, Filterable filters) {\n super(action, playerId, 1, 1, stackedOn, filters);\n }", "title": "" }, { "docid": "07...
87c6bf8a00bcf9a7dfff78a48d26165d
Takes a user query and finds the grid of images that best matches the query. These images will be combined into one big image (rastered) by the front end. The grid of images must obey the following properties, where image in the grid is referred to as a "tile". The tiles collected must cover the most longitudinal dista...
[ { "docid": "ff931a2dda93e945519ef6f494096616", "score": "0.49562746", "text": "public Map<String, Object> getMapRaster(Map<String, Double> params) {\n\n double queryUllon = params.get(\"ullon\");\n double queryUllat = params.get(\"ullat\");\n\n\n double queryLrlon = params.get(\"lrl...
[ { "docid": "4f44358af81f068ba84eb9cb2c10ff40", "score": "0.5522849", "text": "private static ArrayList<ArrayList<ArrayList<String>>> getTileFromSpatialIndex(Canvas c, int minx, int miny, ArrayList<String> predicates, Project project)\n throws SQLException, ClassNotFoundException {\n\n ...
792980de00fce873f4ccf715fb8e33fb
finds intersected point of two segments
[ { "docid": "bc2327881b267382980fa286ce547781", "score": "0.5679181", "text": "public static Point2D intersectPoint(Point2D a, Point2D b, Point2D c, Point2D d) {\n if(!intersect(a,b,c,d)) return null;\n\n if(Double.compare(a.getX(),b.getX()) == 0 && Double.compare(a.getY(),b.getY()) == 0 )...
[ { "docid": "6926fdbefc09249f103cd73ea46bb50a", "score": "0.7732774", "text": "public Point intersect(Segment s1) {\n\t\tPoint intersect = new Point();\n\t\tif (this == null || s1 == null) {\n\t\t\treturn null;\n\t\t}\n\t\tintersect.x = ((s1.a.x * s1.b.y - s1.a.y * s1.b.x)\n\t\t\t\t* (this.a.x - this.b.x...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "8b4b8ce17f5fa60012d1bf888feb8104", "score": "0.0", "text": "@Override\n\tpublic List<Dewatering> getByIds(List<Long> ids) throws ServiceException {\n\t\treturn this.pumpwellDao.getByIds(ids);\n\t}", "title": "" } ]
[ { "docid": "ffe5fe3cec40acf4b0b07ea257dfa06a", "score": "0.6831473", "text": "private void apparence()\r\n\t\t{\r\n\r\n\t\t}", "title": "" }, { "docid": "838a915c9ea69d56cc37df198cff9cb2", "score": "0.67589027", "text": "@Override\n\t\t\t\tpublic void pintar() {\n\t\t\t\t\t\n\t\t\t\t...
99d180f940037b67c6d3d04e1804b363
/mSearchView.setQuery("", false); mSearchView.clearFocus(); mSearchView.setIconified(true);
[ { "docid": "9fc2cb1bf1a3d9af3580822f414325d1", "score": "0.63527244", "text": "@Override\n public void closeSearchViewIfOpened() {\n mSearchView.onActionViewCollapsed();\n }", "title": "" } ]
[ { "docid": "5158d218dac6fdd48d9eb9fe50964a3d", "score": "0.77938193", "text": "@Override\n public void onStart(){\n super.onStart();\n // mSearchView.setIconified(false);\n if( flag == true) mSearchView.setQuery(\"\", false); flag = false;\n }", "title": "" }, { "do...
8935c302bbddbae7752900ec21414d67
The work flow is: 1) File should be copied from tempFile to networkTempFile (networkTempFile is not in OUT folder 2) File should be renamed from networkTempFile to networkTargetFile 3) File transporter should move networkTargetFile to Sigma
[ { "docid": "198e0f23adf8a89786ec3d9c03cff797", "score": "0.8463826", "text": "private void moveFileFromTempToNetwork(File tempFile, File networkTempFile, File networkTargetFile) {\n \ttry {\n\n \t\t//1. Skip moving file if file with this name is already at file transporter\n\t logObjectEven...
[ { "docid": "4b9d9d959969b67adbd9ca2ee0fd9e86", "score": "0.60224175", "text": "public void moveFile(Pipefile pipe, String packageName) throws Exception{\t\t\n \t\t// Get destination directory, create if necessary\n \t\tString root = ServerUtils.extractDirName(ServerUtils.extractDirName(ServerUtils.extra...
60a8527a0eb438e2fb0f20a487eb51c1
ImageNode supports the xlink:href trait.
[ { "docid": "5ebb95230a75d1f51178cf73d17cd7c9", "score": "0.55668944", "text": "public void setTraitNSImpl(final String namespaceURI, \n final String name, \n final String value)\n throws DOMException {\n try {\n if (SVG...
[ { "docid": "decb21c6e88cabf96aae81131fd976ef", "score": "0.63486433", "text": "String getTraitNSImpl(String namespaceURI, String name)\n throws DOMException {\n if (SVGConstants.XLINK_NAMESPACE_URI == namespaceURI\n &&\n SVGConstants.SVG_HREF_ATTRIBUTE == name) {\n ...
de3c9aef9092307868951ccf7a617176
Set timer and loop over all keys.
[ { "docid": "e2b3778464ba4dbb7a3e477461fcabd8", "score": "0.0", "text": "public void timeToInsert() {\n\t\tlong t = System.nanoTime();\n\t\tfor (int i = 0; i < keys.size(); i++) {\n\t\t\t// Get key from vector, put in value based on loop counter. \n try {\n \t\t// Call put adding k...
[ { "docid": "fa8a1f08630870a140e2d2e0d5147c38", "score": "0.69254", "text": "@Override\n public void tic() {\n for (GuitarString keys:keyStrings) {\n keys.tic();\n }\n count++;\n }", "title": "" }, { "docid": "78c3f56c73b180ba0570a44f3b33a485", "score...
abb33f85d76f7e8736e63ece06e7d531
databinding method to get an XML representation of this object
[ { "docid": "00154b3a0b073801128eb73a730261a1", "score": "0.0", "text": "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n \n //We can safely assume an...
[ { "docid": "bab0329654e9098c1f9ae75e3297864c", "score": "0.65159607", "text": "public String toXml() {\r\n\t\treturn new XStream().toXML(this);\r\n\t}", "title": "" }, { "docid": "604e04bbf9da4596b20c2423d241a629", "score": "0.6513003", "text": "@Override\n public String toString(...
0bd938957b01927362b13c5568944f0b
Creates a new item with the primary key. Does not add the item to the database.
[ { "docid": "e56f2420a0c6c1f142a37b1243554594", "score": "0.68241274", "text": "@Override\n\tpublic it.vmt.gh.sb.model.Item createItem(long itemId) {\n\t\treturn _itemLocalService.createItem(itemId);\n\t}", "title": "" } ]
[ { "docid": "7b5072de76551f70bfb855d261518735", "score": "0.7442865", "text": "Item createItem() throws RepositoryException;", "title": "" }, { "docid": "274d347616f590281edd6db7c4dba1d3", "score": "0.7303976", "text": "@Override\n\tpublic Item createItem(Item item) {\n\t\treturn item...
ff4432174458d93602de1b0df04a77f7
Object > Component > Container
[ { "docid": "fa4e6c118a1f24999ae5beaf5e259bb0", "score": "0.0", "text": "public void testInheritanceSimple() {\n\t\tassertTrue(ClassHelper.classOf(Component.class, Container.class));\n\t}", "title": "" } ]
[ { "docid": "961e70f6bcc8aa06b974314f16f34ece", "score": "0.7019914", "text": "Container getContainer();", "title": "" }, { "docid": "ad808973ef03ed2426e1cf71e5c4bca4", "score": "0.6842745", "text": "public interface ViewComponent {\n\t\n\tpublic JComponent getComponent();\n\n}", ...
f22699b785c1c1388d4602d64cd26920
write the method mostNumberVisitsByIP, which has one parameter, a HashMap This method returns the maximum number of visits to this website by a single IP address
[ { "docid": "33d1298bd60d495682cbbd05581b3da4", "score": "0.87539256", "text": "public int mostNumberVisitsByIP (HashMap<String, Integer> countVisitsPerIP) {\n int mostNumberVisitsByIP = 0;\n for (int num: countVisitsPerIP.values()) {\n if (num > mostNumberVisitsByIP) {\n ...
[ { "docid": "e68cb8ff61b60193b801c6f4878ea127", "score": "0.82606393", "text": "public int mostNumberVisitsByIP( HashMap<String, Integer> counts ) {\n \n int max = 0;\n \n for ( String s : counts.keySet() ) {\n int val = counts.get( s );\n \n ...
805662adcc491921f3e69823c90f6eec
use player as a common synchronization object
[ { "docid": "19a775f149d21c07645cdb75523b6c85", "score": "0.0", "text": "public void onGameStateReceive(GameState gs) {\n synchronized(player) {\r\n receivedGameState = new GameState(gs);\r\n if(receivedGameState != null) {\r\n //replace the par...
[ { "docid": "6e081cf2b9ba1818671c0165b7385d6d", "score": "0.67686135", "text": "@Override\r\n\tpublic void use(Player player) \r\n\t{\n\t}", "title": "" }, { "docid": "b9ca4f0fdf3b31c85fc3b0174ee2fbd0", "score": "0.67338336", "text": "Player getPlayer();", "title": "" }, { ...
f6b038d05e70d5b790d7344cc2b1a37d
Setter yposisjon til spillobjektet
[ { "docid": "e0914d449adda685d815473cc415b268", "score": "0.0", "text": "public void setY(double y) {\n Y = y;\n }", "title": "" } ]
[ { "docid": "ce613e49f99c0898f1dc66ad61667829", "score": "0.74506795", "text": "void setYPosition(int yPos);", "title": "" }, { "docid": "3ece9ece747b03b522c217b00ac2be8d", "score": "0.7264234", "text": "public void setPosition(double px, double py){\r\n\tthis.x = px;\r\n\tthis.y = py...
0cee633c2f231cf3cd3a7f57dcd687ed
Image color & paint
[ { "docid": "0f1c4dc8d3177b6523867483b454e946", "score": "0.0", "text": "public void paintFigure(final Graphics gfx) {\n if (disposed || loadingImage || originalImageData == null)\n return;\n // Generate Data\n if (imageData == null) {\n generateAnimatedData();\...
[ { "docid": "797031b61c0bd89a852283b49fdbd2bc", "score": "0.72111833", "text": "private void colorChange() {\n for (int x = 0; x < img.getWidth(); x++) {\n for (int y = 0; y < img.getHeight(); y++ ) {\n int alpha = new Color(img.getRGB(x, y), true).getAlpha();\n if (alpha != 0) {\n ...
caf4c2b8c48414b63ec0efd2faa377af
Assign default month at start (ex: Calendar.DECEMBER)
[ { "docid": "4444bf611fec0a9925c06d34656850e0", "score": "0.7446399", "text": "public void setDefaultMonth(int month) {\n this.dateTimeCalendar.set(Calendar.MONTH, month);\n }", "title": "" } ]
[ { "docid": "4c19f15a90f5fd8b080225908de6ba91", "score": "0.67970437", "text": "public DateTime goStartOfMonth() {\n\t\tgoStartOfDay();\n\t\tset(Calendar.DAY_OF_MONTH, 1);\n\t\treturn this;\n\t}", "title": "" }, { "docid": "fa9846450a097ffaf14b02efa0faa5fc", "score": "0.6633199", "tex...
0a6f87b57131c8d90edb6290c6c999d9
/ Returns the number of messages.
[ { "docid": "046442e0ffc7fd43227c1026cb604ac7", "score": "0.81064284", "text": "public int getMessageCount(){\n Cursor c=db.rawQuery(\"select count(*) from messages\",null);\n c.moveToFirst();\n return c.getInt(0);\n }", "title": "" } ]
[ { "docid": "56d818f8a1aad74d489f06bd258c1a69", "score": "0.91739005", "text": "int getMessagesCount();", "title": "" }, { "docid": "d72c3b35300aee6099b6435a85b0a69b", "score": "0.89813626", "text": "public int getMessagesCount();", "title": "" }, { "docid": "2bde75ec394ce...
71ca3ba4e97662d7d1eebb8e365b41ff
Dot multiply this sparse matrix and the B matrix. dot multiply is a pairwise multiply
[ { "docid": "c3bb5979ffff2ec04b413fc0256d423f", "score": "0.7255856", "text": "public JavaSparseArray dotMultiply(JavaSparseArray B)\n\t{\n\t\tint[][] Bindex = B.getIndexArray();\n\t\tfloat[][] Bvalue = B.getValueArray();\n\t\tint[][] Cindex = new int[dimension][];\n\t\tfloat[][] Cvalue = new float[dimen...
[ { "docid": "99a94e17d5974f7e656a4184e5bd0ae3", "score": "0.64778167", "text": "public int dotProduct(int vect_A[], int vect_B[]);", "title": "" }, { "docid": "dc9867004f26d6fcb8191c31fb723d09", "score": "0.64751273", "text": "public static int[] dotProduct(int[] A, int[][] B) {\r\n\t...
9b20cc20e96ac8809b69c1c75c126fe5
String username = "henrychen222";
[ { "docid": "7af4c2f502641abecf1c83b7f7a50804", "score": "0.0", "text": "public List<Map<String, String>> retrieveFollowersByUsernameOperation(String username) throws Exception {\n String link = \"https://api.github.com/users/\" + username + \"/followers\";\n URL url1 = new URL(link);\n ...
[ { "docid": "60408a9937f009388ad0b53a3f1b9b06", "score": "0.75116307", "text": "String getUsername();", "title": "" }, { "docid": "0499fd87beada200a8c90bf15f02b6b7", "score": "0.7409661", "text": "java.lang.String getUsername();", "title": "" }, { "docid": "0499fd87beada20...
4308108df61f3544814488e4a28ffc6d
Extracts the ids of the resources from the message
[ { "docid": "0ff47f194a7c7da5e5e0ef6b51fa76e3", "score": "0.556492", "text": "private List<RegistryObjectType> getResources(Message message,\n boolean isSoapCall) throws EbxmlRegistryException {\n List<RegistryObjectType> registryObjects = new ArrayList<RegistryObjectType>();\n L...
[ { "docid": "4321432ebb0354293175e543b760b54b", "score": "0.64087254", "text": "public String[] getSourceMessageIds() {\n\treturn this.srcMsgs.split(\",\");\n }", "title": "" }, { "docid": "ec1785591cfcb9fb7b9dc890ac56363f", "score": "0.63951886", "text": "long[] getCrossWorldMessa...
98c2a72e870cb9c1f23d65e8372964cd
fail("Not yet implemented"); //muestra los fallos assertNotNull(null, "es nulo");//siga si esta nulo
[ { "docid": "e461f5b7ccd63ea8c3ea2ebe8f26a68f", "score": "0.0", "text": "@Test\n\t@DisplayName(\"ConsultarTodos\")\n\tvoid dTest() {\n\t\tEntityManagerFactory entityManagerFactory = Persistence.createEntityManagerFactory(\"banco-logic\");\t\t\n\t\tassertNotNull(entityManagerFactory, \"el entityManagerFac...
[ { "docid": "097f971452affbe54d8d17a3d9c80299", "score": "0.7784625", "text": "@Test\n\tpublic void test() {\n\t\t// TODO\n\t\t// Assert.fail(\"not done\");\n\t}", "title": "" }, { "docid": "2aeaa483fc7c23a904120b0fb734e938", "score": "0.7262608", "text": "public void testPostSwear() ...
6fc4118c45ec33db816a6baf54ade902
check if input string contains emoji
[ { "docid": "ca020146425abd626165a901e6ed5d89", "score": "0.7435417", "text": "public static boolean containsEmojis(String input) {\n List<UnicodeCandidate> unicodeCandidates = getUnicodeCandidates(input);\n return !unicodeCandidates.isEmpty();\n }", "title": "" } ]
[ { "docid": "a647d9c7621245e298f29c9b61509adc", "score": "0.7051569", "text": "@Test\n public void isEmojiTest() {\n for (int codePoint : EMOJI_LIST) {\n assertTrue(EmojiHelper.isEmoji(codePoint));\n }\n }", "title": "" }, { "docid": "2fa830ce7d2e7bcfd9ad1d8d483...
f956990ae705b51c231e64eeb1a1a95b
This method was generated by MyBatis Generator. This method sets the value of the database column FMSAPPDOCDET.DOC_CODE
[ { "docid": "76b5ec340f44b698b4ee301f8b19da97", "score": "0.7081278", "text": "public void setDOC_CODE(BigDecimal DOC_CODE) {\r\n this.DOC_CODE = DOC_CODE;\r\n }", "title": "" } ]
[ { "docid": "8809637214630c291adbac6e21bbcf7d", "score": "0.75283957", "text": "public void setDocCode(String docCode) {\n this.docCode = docCode;\n }", "title": "" }, { "docid": "ea5496ec8e04e4b670e14df86b7a02c7", "score": "0.65908736", "text": "public String getDocCode() {...
1eead1d75f86fc42e5bb51366ea6891c
Note: This is NOT a request message (that would otherwise correspond to AnnotationResponse).
[ { "docid": "3a71f3b9ea60482ae4e9e750be0b1a9b", "score": "0.5769964", "text": "public interface AnnotationRequest<D, L> {\n\tlong getAnnotatorId();\n\tFlatInstance<D, L> getInstance();\n\t// TODO: ideally, the API enforces that cancel/store can only be invoked once.\n\tvoid cancelRequest();\n\t// TODO: a...
[ { "docid": "d87e294b77c123a20a857ece9511781e", "score": "0.6148842", "text": "public AddAnnotationFieldResponse(int code) {\n\n\t\tthis.code = code;\n\n\t}", "title": "" }, { "docid": "eb022f25256f67aab2dd0c27e7a3f17b", "score": "0.593302", "text": "public interface Response {}", ...
e806da43cef21d51ba147855980adbdc
map&lt;string, string&gt; string_string_map = 536870010;
[ { "docid": "33f175fbff4ca4c0bcd7c347ce58fe47", "score": "0.0", "text": "public java.lang.String getStringStringMapOrThrow(\n java.lang.String key) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n java.util.Map<java.lang.String, java.lang.String> map =\n ...
[ { "docid": "d0d2d72d73a141763f77e76c87006018", "score": "0.69538975", "text": "java.util.Map<java.lang.String, java.lang.String>\n getStringStringMapMap();", "title": "" }, { "docid": "d33ea6c682b9727de060e879c0ea5359", "score": "0.6600408", "text": "java.util.Map<String, String>\...
766fcf791d10c5b858018f5f6433c8e3
Getter for the accountcredentials.
[ { "docid": "d45f9fb50a03a8509b9fb6614e1c9d09", "score": "0.72451717", "text": "public Credentials getCredentials() {\n return credentials;\n }", "title": "" } ]
[ { "docid": "14337c56ca372dfdbce34efa82ecac79", "score": "0.7281999", "text": "public Credentials getCredentials();", "title": "" }, { "docid": "047373b8856eaf40b86dcca93263b07b", "score": "0.71112776", "text": "public Credentials credentials() {\n return this.innerProperties()...
6462119d3a2d2a09c74ec94d31a73657
Get instance of PreferencesManager. Really constructor
[ { "docid": "02ccfa811bc2f9d47db51404689b6d64", "score": "0.656577", "text": "public static PreferencesManager getPreferencesManager(String aUserName) {\n if (cInstance == null || !aUserName.equals(cInstance.getUserName())) {\n if (cInstance != null && !aUserName.equals(cInstance.getUse...
[ { "docid": "8373e28d3d58b1957d3e1390309fad43", "score": "0.81065196", "text": "public static PreferencesManager getInstance() {\n if (instance == null) {\n instance = new PreferencesManager();\n }\n return instance;\n }", "title": "" }, { "docid": "97f54934...
9e55195f7a3f69c9134cc478a8e5e4d9
Returns the turn needed to change direction from this to 'other'
[ { "docid": "2f1b62de749ebd5c3be5add7d7a55cdf", "score": "0.62541646", "text": "public Relative subtract(Direction other)\n {\n Relative[] directions = Relative.values();\n int ordinal = this.ordinal();\n ordinal = (directions.length + other.ordinal() - ordinal) % directions.le...
[ { "docid": "8396fb7f5e01a4e4fef06082c1de32ac", "score": "0.6884643", "text": "private int decideDirection(SpaceShipPhysics thisShip, SpaceShipPhysics otherShip) {\r\n double targetAngle = thisShip.angleTo(otherShip);\r\n\r\n int targetDir = this.DONT_TURN;\r\n if (targetAngle < 0) {...
18dfc679ce8182e4f0941613b8d258ab
Display a menu for selecting a materialparameter type using the "new override " action prefix. TODO distinguish the 3 Vector4 types
[ { "docid": "b90634fe8d3e3b3ab1b75036e8fa9fff", "score": "0.6815833", "text": "public static void selectOverrideType() {\r\n MenuBuilder builder = new MenuBuilder();\r\n\r\n int numValues = VarType.values().length;\r\n List<String> names = new ArrayList<>(numValues);\r\n for (...
[ { "docid": "dc8c55e80134f173a331f6458532a5ab", "score": "0.5972536", "text": "public static void selectTextureType() {\r\n MenuBuilder builder = new MenuBuilder();\r\n\r\n SelectedTexture texture = Maud.getModel().getTarget().getTexture();\r\n if (!texture.hasKey()) {\r\n ...
59fcaefab3fc5a089eeaf2e49f8c1abb
b/3350645 Test to confirm that an SSLSocket.close() performing an SSL_shutdown does not throw an IOException if the peer socket has been closed.
[ { "docid": "befc79c35418d2e1f78999ba204eaa5f", "score": "0.84515744", "text": "public void test_SSLSocket_shutdownCloseOnClosedPeer() throws Exception {\n TestSSLContext c = TestSSLContext.create();\n final Socket underlying = new Socket(c.host, c.port);\n final SSLSocket wrapping =...
[ { "docid": "e0fecf84f0a50949025f8c688c5062bd", "score": "0.7018219", "text": "@Override\n @SuppressWarnings(\"UnsynchronizedOverridesSynchronized\")\n public final void close() throws IOException {\n\n SSLInputStream sslInputStream;\n SSLOutputStream sslOutputStream;\n\n if (s...
541c3640e98e02b3dd3df453d8c1f4c3
optional uint32 power_current = 4;
[ { "docid": "e7b49f6871437740ab572bf248d59f87", "score": "0.5771668", "text": "boolean hasPowerCurrent();", "title": "" } ]
[ { "docid": "4ea0f607ba29830e70537f936e43595f", "score": "0.75667167", "text": "int getPowerCurrent();", "title": "" }, { "docid": "7f39ad225f184a8311cd142f8ee75022", "score": "0.694907", "text": "public int getPowerCurrent() {\n return powerCurrent_;\n }", "title"...
d19b911d76b5beed5688c40642e935b6
check if company exist using the power of JpaRepository and delete it and its coupons
[ { "docid": "08628e24986620fcf2124e08b5927949", "score": "0.6977473", "text": "public void deleteCompany(int id) throws AdminExceptions {\n try {\n if (!companyRepo.existsById(id))\n {\n throw new AdminExceptions(\"Company not found\");\n }\n ...
[ { "docid": "eb5a188236af5ce825f98d1003819fd5", "score": "0.73323846", "text": "@Override\npublic void deleteCompany(Company company) {\n\tcompanyDao.delete(company);\n\t\n}", "title": "" }, { "docid": "6b0de5a2257dbd6d517b3e1e5c8bc466", "score": "0.6886667", "text": "@Override\n\tpub...
226f5a43cee9354d2fc17db7b93cdcb3
TODO: port exact behavior from MRI, and move most locking logic into ChannelDescriptor TODO: for all LOCK_NB cases, return false if they would block
[ { "docid": "e36ab2ff11637a2e475197fcafce66d3", "score": "0.0", "text": "@JRubyMethod(required = 1)\n public IRubyObject flock(ThreadContext context, IRubyObject lockingConstant) {\n ChannelDescriptor descriptor = openFile.getMainStream().getDescriptor();\n \n // null channel ...
[ { "docid": "c3e37f722dd129d8b781cc1f4a51b6d7", "score": "0.68885726", "text": "@Override\n\tpublic void isLock() {\n\t\t\n\t}", "title": "" }, { "docid": "c129219cbb578cd0fc5fd024ef82ec8a", "score": "0.6823859", "text": "boolean tryLock();", "title": "" }, { "docid": "a3b...
9db72541a756a87013e33be86f684eae
Indicates whether to enable dictionary compression.
[ { "docid": "4c12f75b82af5702371301ebd43d0c42", "score": "0.5869514", "text": "public ParquetSerDe withEnableDictionaryCompression(Boolean enableDictionaryCompression) {\n setEnableDictionaryCompression(enableDictionaryCompression);\n return this;\n }", "title": "" } ]
[ { "docid": "0b81cb5c85743f8a5c7a2c2cfd44afd9", "score": "0.8512439", "text": "public Boolean isEnableDictionaryCompression() {\n return this.enableDictionaryCompression;\n }", "title": "" }, { "docid": "ca3fba17e07ce3ef00c8f432155cd3d1", "score": "0.84913397", "text": "publ...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "fee75327e200f75d35214b6562de90ae", "score": "0.0", "text": "public List<Object> selectRecordAllByCatSub(String arg0, String arg1) {\n\t\t\treturn null;\n\t\t}", "title": "" } ]
[ { "docid": "81005989525ec80103fbaf46f9c37779", "score": "0.6694239", "text": "@Override\n\tpublic void agit() {\n\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65686274", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, ...
b32c16b734e866ff8c00ad356f7aeb1c
repeated uint32 stack_id = 7; stack indices in case the procedure was running
[ { "docid": "ae251a0a16fa2a683d393c93a406c8f1", "score": "0.6859657", "text": "int getStackId(int index);", "title": "" } ]
[ { "docid": "d8e6bfc6c68194ca26ef55fee8e00fc3", "score": "0.68518364", "text": "public void pinStackIndexed() {\n pinStackAll();\n }", "title": "" }, { "docid": "356ab75434e5a80b5236a6b600e762d4", "score": "0.6589937", "text": "int getStackIdCount();", "title": "" }, ...
9e0831c8356a5f0e07c89626b3d4fea5
Creates the main pipeline.
[ { "docid": "71342e1b94c2cae4641220b6f4f4686e", "score": "0.7979002", "text": "public static Pipeline createMainPipeline(){\t\n\t\tPipeline returnPipeline = null;\n\t\t\n\t\tfor(Pipeline pipeline : transcoder.listPipelines().getPipelines()){\n\t\t\tif(pipeline.getName().equals(name)){\n\t\t\t\treturnPipe...
[ { "docid": "de8b42dc01a350a4f807563158b28ab4", "score": "0.6905399", "text": "protected XMLPipeline createPipeline() {\n XMLPipelineFactory pipelineFactory = createTestable();\n return pipelineFactory.createPipeline(createContext()); \n }", "title": "" }, { "d...
ef67955dce731f31cde77c1ec71a6539
Change an existing row to be equal to new data.
[ { "docid": "81da965260c2799feabf93edac21a203", "score": "0.0", "text": "public boolean updateCorrect2(String area, int level, int correct) {\n String where = KEY_AREA2 + \"='\" + area + \"' and \" + KEY_LEVEL2 + \"=\" + level;\n // Create row's data:\n ContentValues newValues = new ...
[ { "docid": "3dac6f8bf4abeff8fdc160b9cd849f76", "score": "0.65307", "text": "@Override\n public void updateRow() throws SQLException {\n\n realResultSet.updateRow();\n }", "title": "" }, { "docid": "7fd3056d0d31651b6f8a410fe9b4f946", "score": "0.6410816", "text": "public Object[]...
1c314d02be9226e5ab6c10dd3c2d21dd
add message request or response record.
[ { "docid": "4e3f74b7ef387b08156c44f11e70d917", "score": "0.7282144", "text": "public void addRecord(Object obj){\n // System.out.println(obj.getClass());\n if (obj instanceof Response){\n lock.lock();\n try{\n // add record, sender set, and total receiv...
[ { "docid": "c43da922ec65c6f446ea789596c6fbef", "score": "0.6569833", "text": "public void addRequest(DatagramPacket message) {\n\t\t\r\n\t}", "title": "" }, { "docid": "7ab33b4a2773ff5d539821d355b3ad96", "score": "0.6532463", "text": "private void addReceivedRecord(Record targetRec, ...
f0ab4f12a508e183aa877113cf58f2b7
Sets the chemical marker of the specified type and colour in the specified cell to be false Mostly supplied as pseudocode
[ { "docid": "4d247c615fe964ddee57b36fb3164a80", "score": "0.5942045", "text": "private void clearMarkerAt (Point p, Colour c, int i){\n map.getCell(p).setMarker(i, false, c);\n }", "title": "" } ]
[ { "docid": "b73259ad5b58b264bcbe75b3e384a56e", "score": "0.5903233", "text": "public static void setCell(Cell c, int type) {\n if (type != 7 && type != 3) {\r\n c.setType(type);\r\n }\r\n // must be in level editor, and either be labelling something OR be giving a key and...
e2938a1235bca92552a201ed862220f0
Gets the value of the totalRVMCount property.
[ { "docid": "c566c2588b621d344529cce47aae7d29", "score": "0.8812694", "text": "public int getTotalRVMCount() {\n return totalRVMCount;\n }", "title": "" } ]
[ { "docid": "a72e86dbd9ceb695b73a327ce775d431", "score": "0.8224067", "text": "public void setTotalRVMCount(int value) {\n this.totalRVMCount = value;\n }", "title": "" }, { "docid": "596362127552441d3e2418e30d2b0d9e", "score": "0.7305601", "text": "public long getTotalCount...
ffff4e93706986a8214fc3357472dd45
Test of setGuid method, of class ModTree.
[ { "docid": "52daf88fde0076e9a6886f83b010e283", "score": "0.82907313", "text": "@Test\r\n\tpublic void testSetGuid() throws BadLocationException {\r\n\t\tSystem.out.println(\"setGuid\");\r\n\t\tString guid = \"11 22 33 AA 87 \";\r\n\t\tModTree t = new ModTree();\r\n\t\tt.setGuid(guid);\r\n\t\tassertEqual...
[ { "docid": "6f7fdf5f00cb5e4f8a40c6a10630fd58", "score": "0.6918794", "text": "@Test\r\n\tpublic void testGetGuid() throws BadLocationException {\r\n\t\tSystem.out.println(\"getGuid\");\r\n\t\tModTree instance = new ModTree();\r\n\t\tString expResult = \"\";\r\n\t\tString result = instance.getGuid();\r\n...
dfebf804678fcd0c801b5d9731aafeb3
Adding tabs to text fit column
[ { "docid": "05f5d7eb00b92b152730b524876c0579", "score": "0.57400393", "text": "public static String tabs(int count, String delimiter, String text)\n\t{\n\t\tint length = 8;\n\t\tString tabs = \"\\t\";\n\t\tint size = (length * count) - (text.length() + delimiter.length() + 1);\n\t\twhile (size > length ...
[ { "docid": "dcfcb1c3c10555eb122ae04c1fd07ccb", "score": "0.65453535", "text": "private String printTab(int tab){\n\t\tString spacer = \"\";\n\t\tfor(int i = 0; i < tab; i++){\n\t\t\tspacer = spacer + \" \";\n\t\t}\n\t\treturn spacer;\n\t}", "title": "" }, { "docid": "cc39cf2c950bfc0240c9a...
6e87184668c7fca5378eb794887f13df
This Method Checks the Cache Annotation Presence on Requested method.
[ { "docid": "bd0b5ff604773e577d747d25190ee5fa", "score": "0.7053263", "text": "private Object checkCacheAnnotationPresent(final Method method, final Class<?> ...types) {\n\t\tObject result = null;\n\t\ttry {\n\t\t\tfinal Method objMethod = this.obj.getClass().getMethod(method.getName(), types);\n\t\t\tif...
[ { "docid": "e0156411124f0ce66b0f5985c8a2ca19", "score": "0.69276583", "text": "private boolean isCacheMethod(Method method) {\n CacheMethod cacheMethod = method.getAnnotation(CacheMethod.class);\n return cacheMethod != null && cacheMethod.isCache();\n }", "title": "" }...
cf256a849edf76d2f89b74d0b26a57f2
Checks to make sure the ball bounces off the edge of the world
[ { "docid": "ddc96c399fdf70f9dfef129885169d81", "score": "0.63175124", "text": "private void checkBorder() {\n if (xPos < 8) {\n if((angle < 180) && (angle > 90)) {\n angle -= 90;\n } else if (angle == 180) {\n angle = 45;\n } else {\n...
[ { "docid": "d907c48734c9a592b16e0ab95d05cde8", "score": "0.74304765", "text": "private void checkBallCollision() {\n // check if the ball has hit the paddle or reached out of the screen\n if (player.intersects(ball)) {\n ballyVel *= -1;\n ball.y = player.y - ball.heig...
163d0d78b8f4f2780f68df0604b2e8b5
SET color PART 1
[ { "docid": "7b42614e17a78d07e35280772c30d846", "score": "0.0", "text": "private void setColorBarStatut(String result){\n switch (result){\n case RISE :\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n mPaint.setColor(getContext().getColor(R.c...
[ { "docid": "c3cb5f0ff11842558ec666fb83ee2b07", "score": "0.73231477", "text": "public void setColor1(Color color1)\r\n {\r\n this.firstColor = color1;\r\n }", "title": "" }, { "docid": "89436dc7456cf0a77a60f97e5873a1d8", "score": "0.7057981", "text": "public void setColo...
1c8b86d8227b1352bfffeef78e223edf
This method was generated by MyBatis Generator. This method sets the value of the database column role_resource.role_id
[ { "docid": "090e8534cc91211efd9ff859e6747429", "score": "0.7201848", "text": "public void setRoleId(Integer roleId) {\n this.roleId = roleId;\n }", "title": "" } ]
[ { "docid": "eb76e00e1d7a72efd96ba3e93c91de47", "score": "0.7556691", "text": "public void setRoleid(int role_id) {\n\tthis.roleId=role_id;\n}", "title": "" }, { "docid": "cd281d397c26923e49164ff38d7b5c23", "score": "0.74173665", "text": "public void setRoleId(int role_id) {\n ...
b865db948b2458ac34aa05888ad2a27b
Force snake reset, used to restart game
[ { "docid": "6ef1c0583ba4cc2cf205ab4772eb83db", "score": "0.0", "text": "public void initSnakes(int amount);", "title": "" } ]
[ { "docid": "4fac8554c7713f1442af2871b7eb0182", "score": "0.7998139", "text": "public void resetGame() {\n\t\tsnakeHead.setHeadPosition(80, 80);\n\n\t\tfx1 = random.nextInt(980);\n\t\tfy1 = random.nextInt(580);\n\n\t\tf1 = new Food();\n\n\t\tscore = 0;\n\n\t\tsnakeTail.clear();\n\n\t\tcollisionDetector =...
db14dff279aa6c424137005336968d4a
Find the _Fields constant that matches name, or null if its not found.
[ { "docid": "df89e0a3046c32259e386bf9daf4403c", "score": "0.0", "text": "public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" } ]
[ { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": "0.7755163", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByName(String name) {\n return byName.get(name);\n }", "title": "" }, { "docid": "2aedca74101f3519831ef106c8e1a7b6", "score": ...
9ab50f0346dc72d699ddbaf6fc6cee6f
For the last step, Copy the contents of the file to the screen
[ { "docid": "5dfdf0fdfaeed789a3d43def90afe859", "score": "0.5873294", "text": "private void printToScreen(String filename)\r\n\t\t {\r\n\t\t \tint counter=0;\r\n\t\t Scanner scan = null;\r\n\t\t try {\r\n\t\t FileInputStream fis = new FileInputStream(filename);\r\n\t\t ...
[ { "docid": "4c105c1a881a41eadc851277d8c645d4", "score": "0.6360835", "text": "public void takeScreenshotAtEndOfTest() throws IOException {\n\t\tFile scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\tFileUtils.copyFile(s...
78253adcc39a8a4673b1d03c938ec9d8
Gets the text to show to describe the effect result.
[ { "docid": "12f116ed18e5b9fbd67e617c8ab59168", "score": "0.6270707", "text": "@Override\n public String getText(SwccgGame game) {\n return \"Initial attrition calculated\";\n }", "title": "" } ]
[ { "docid": "5d5ddf1667132b97acccc3a10c2c402d", "score": "0.69798476", "text": "@Override\n\tpublic String getDescription() {\n\t\tStringBuilder string = new StringBuilder(this.getName()+\"\\n\");\n\t\tfor (Effect e : this.getEffect()) {\n\t\t\tstring.append(e.generateDescription());\n\t\t}\n\t\treturn s...
2b2b283e2d9a3b268a973a788feb9462
Closes this CardChannel. It can still be opened again. While the channel is not open, invocations of the send methods will throw an exception.
[ { "docid": "ab1c8da36a67994d9d441644613b256d", "score": "0.7958004", "text": "public void close()\n {\n is_open = false;\n itracer.debug(\"close\", \"CardChannel closed\");\n }", "title": "" } ]
[ { "docid": "aef300e43328063ebeeaf6a10acd716e", "score": "0.6909451", "text": "protected abstract void channelClose();", "title": "" }, { "docid": "77544285390a0ee36c2e71c2db79e1e5", "score": "0.66698784", "text": "public void kill() {\n\t\tchannel.close();\n\t}", "title": "" },...
1dda45b306a26eb2b1539ee5d654970c
Init pgbench with unlogged tables
[ { "docid": "75c18338b41ed958e3c6cf97e7468c3b", "score": "0.7748722", "text": "private static void initUnlogged() throws Exception\n {\n ProcessBuilder pbCreateDB =\n new ProcessBuilder(PGSQL_ROOT + \"/bin/createdb\",\n \"-E\",\n \"UTF8...
[ { "docid": "da3ee0a0f492d5658e1f43b6fa8cbac0", "score": "0.6374371", "text": "void init()\n\t{\n\t\tfinal String sql = \t\"drop table if exists CLIENTS;\" +\n\t\t\t\t\t\t\t\"create table CLIENTS(\" +\n\t\t\t\t\t\t\t\"CLIENT_ID int auto_increment primary key,\" +\n\t\t\t\t\t\t\t\"USERNAME varchar(32), \"...
735cd4e08162a5beee2ea95521557043
Feature set to retrieve the statistics for. A fully qualified feature set id in the format of project/feature_set must be provided. string feature_set_id = 1;
[ { "docid": "440b163d2cc01d5c19669878969b2a5f", "score": "0.0", "text": "public Builder setFeatureSetIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n featureSetId_ = va...
[ { "docid": "d4c151589f595184fce72d39d5a2b771", "score": "0.6802649", "text": "public feast.proto.core.FeatureSetProto.FeatureSet getFeatureSet() {\n if (featureSetBuilder_ == null) {\n return featureSet_ == null ? feast.proto.core.FeatureSetProto.FeatureSet.getDefaultInstance() : feature...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "1694bcfbe506b9af43d5c43d5bebab55", "score": "0.0", "text": "public static void main(String[] args) throws AWTException, InterruptedException {\nSystem.setProperty(\"webdriver.chrome.driver\", \"./software/chromedriver.exe\");\r\nWebDriver driver=new ChromeDriver();\r\ndriver.get(\"https://ww...
[ { "docid": "9208773f8d675a45ef2786d0cb668514", "score": "0.654538", "text": "@Override\n\tpublic void addiion() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "titl...
8bff538a326e9f3ce6625b68a5664e67
Initialize the contents of the frame.
[ { "docid": "9ae7271c14381ab9cfc9894a106a0007", "score": "0.0", "text": "private void initialize() {\n\t\tfrmCodeSmells = new JFrame();\n\t\tfrmCodeSmells.setResizable(false);\n\t\tfrmCodeSmells.setTitle(\"Code Smells & Rules\");\n\t\tfrmCodeSmells.setBounds(100, 100, 1111, 800);\n\t\tfrmCodeSmells.setDe...
[ { "docid": "eec4e7f1b87ef8b4320509df7493a0d4", "score": "0.8125882", "text": "public _Frame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "21f8fac4b5f0a16b691ecb8695fe4a4a", "score": "0.75652915", "text": "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\...
d17aca8d97c24a38cc06ea3da487be11
/ Restituisce lo stato
[ { "docid": "1d9cc383a6d8a9bf2a506e0780db47dd", "score": "0.0", "text": "public boolean isOnline() {\n \n return this.online;\n }", "title": "" } ]
[ { "docid": "40f97fe4b075026de05ad71219293216", "score": "0.68328863", "text": "Exemplar getStatusDeEmprestimo();", "title": "" }, { "docid": "704effb4e4c5e62f19f0f723423d6f93", "score": "0.67337656", "text": "Exemplar getStatusDeReserva();", "title": "" }, { "docid": "bfa...
7141bfb698f1c85133e4f6ff009c6369
Commodity method for getting a reference to the service singleton
[ { "docid": "6719f14a4756c31a92de5070441dddd3", "score": "0.0", "text": "private static ProfilerService getService() {\n return (ProfilerService) TurbineServices.getInstance().getService(\n ProfilerService.SERVICE_NAME);\n }", "title": "" } ]
[ { "docid": "afb00a42ec1402bf810a6036431e599f", "score": "0.78254545", "text": "public static synchronized Service getInstance() {\n return Service.singleton;\n }", "title": "" }, { "docid": "2d3ff5778b83f3da2cad1e67b0a66661", "score": "0.7415493", "text": "public synchroniz...
2f5bcdd3de71156cb1f644f37eab62bd
Compares the distance between the two reports and returns a string representing this value
[ { "docid": "b50b68f8603c68c6acbb63efed5d481d", "score": "0.8012064", "text": "private String compareDistance(Report reportOne, Report reportTwo) {\n double distance = Comparer.locationDifference(reportOne, reportTwo);\n if (distance == -1) {\n return String.format(\" Crime %s ha...
[ { "docid": "ecc3163475c9c6da01d972b166f751b2", "score": "0.6419563", "text": "public double calcDistance(String a, String b) {\n\t\tdouble distance;\n\t\tif (a.length() != b.length()) {\n\t\t\tSystem.out.println(\"diff length\");\n\t\t\tdistance = 0;\n\t\t} else {\n\t\t\tdouble differences = 0;\n\t\t\td...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "07b2a0c9d50871450a84332eca598b9d", "score": "0.0", "text": "@Override\n\tpublic User getUser(User user) {\n\t\treturn loginDao.getUser(user);\n\t}", "title": "" } ]
[ { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.68867725", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b645eacb329adc01490ab5013a6c4f7f", "score": "0.67295986", "text": "@Override\n\t\t\tpublic void perfom() {\n\n\t\t\t}", "t...
affc0f80ab828c8ccc25e31473da25f5
FUNCTION TO SORT SMALL BUCKETS
[ { "docid": "187f6e958ca722a5b6108483f3f8eff5", "score": "0.0", "text": "private static void insertionSort(ArrayList<Integer> array){\n int current;\n for (int currentIndex = 1; currentIndex < array.size(); currentIndex++) {\n current = array.get(currentIndex);\n for (...
[ { "docid": "3a43440913e4ea22615f461f752271a2", "score": "0.6577924", "text": "public void sort(){\r\n //TO DO\r\n for(int i=0;i<size;i++)\r\n {\r\n \r\n for(int j=start;j<start+size-1;j++)\r\n {\r\n int a = (int) cir[j%cir.length];\r\n int b= (int) cir...
15121b9336eca6bc209801244aa4c172
click on warning message
[ { "docid": "ecb92d2e3b9e0ecc5c14f783eecce8c8", "score": "0.0", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n finish(); // go back to previous activity when item not cascade deleted\n\n }", "title": "" } ]
[ { "docid": "17e46da538459d69d77aa656250631a9", "score": "0.6833058", "text": "public void warningAlert(String message){\n Alert alert = new Alert(Alert.AlertType.WARNING, message, ButtonType.CLOSE);\n alert.showAndWait();\n }", "title": "" }, { "docid": "973db4b1390b8108a083...
b1bd23ab2ccbc605afb567d225015ab5
Constructor to call the parent class constructor
[ { "docid": "c6392be2648b7fc7c716117e3e6c913c", "score": "0.0", "text": "public TestUtil() {\r\n\t\tsuper();\r\n\r\n\t}", "title": "" } ]
[ { "docid": "5f9ce005233e0c0d7911ce7e26ad0f80", "score": "0.7441622", "text": "public Superclass() {\r\n\t\tSystem.out.println(\"super class :: constructor\");\r\n\t}", "title": "" }, { "docid": "a50e225049de5302e22a2a0c0cc041a3", "score": "0.7310576", "text": "protected abstract void...
67da3d99ba10d117fa1ade05651d7490
Convert from internal ADXP to external ADXP object
[ { "docid": "31a55833ecc03f1ac75217a7f2575209", "score": "0.6910181", "text": "private static org.opencds.vmr.v1_0.schema.ADXP aDXPInternal2ADXP(ADXP pADXPInternal) {\n\n\t\tString _METHODNAME = \"aDXPInternal2ADXP(): \";\n\t\tif (pADXPInternal == null)\n\t\t\treturn null;\n\n\t\torg.opencds.vmr.v1_0.sch...
[ { "docid": "2313672dc6faf79ca853d85b38d2f1e8", "score": "0.71194595", "text": "private static ADXP aDXP2ADXPInternal(org.opencds.vmr.v1_0.schema.ADXP pADXP) \n\t\t\tthrows DataFormatException, InvalidDataException {\n\n\t\tString _METHODNAME = \"aDXP2ADXPInternal(): \";\n\t\tif (pADXP == null)\n\t\t\tre...
b5d4066bbb2f4ecff300365910eafc91
Created by Leonardo Tarjadi on 10/09/2016.
[ { "docid": "ead3f9a235dd6f17f7938908dad8547d", "score": "0.0", "text": "public interface PceItemRepository extends JpaRepository<PceItem, Long> {\n\n @Query(\"FROM PceItem pi WHERE pi.pce.pceId = :pceId\")\n List<PceItem> findByPceId(@Param(\"pceId\") long pceId);\n\n @Query(\"FROM PceItem pi WHERE p...
[ { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.6200209", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.60947406", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t...
52fa2a25529a6d0dea7389200f97638b
Gets an iterator over the parameters of the query method.
[ { "docid": "51e5f870d81c785005ab3daf2d0f6b72", "score": "0.7839464", "text": "public Iterator getMethodParams() {\n return methodParams.iterator();\n }", "title": "" } ]
[ { "docid": "ef136a6d14afa7012cf7d68b3f968410", "score": "0.79608244", "text": "public Iterator<String> getQueryParameters();", "title": "" }, { "docid": "5fb569b0572d1cb116aa6b832a391f14", "score": "0.73450756", "text": "public Iterator getParameters() {\r\n return Collections...
52af9178036862ad9b3af8882cf2efb5
prepare the printer driver and the connection to the printer
[ { "docid": "1753d7b978664b5ef6864d8363a02144", "score": "0.79440105", "text": "public void preparePrinter() {\n }", "title": "" } ]
[ { "docid": "2d4ebd68e38ece950a722de9dad15f8c", "score": "0.66013896", "text": "public void doSetPrinter()\n\t{\n String driverName = jTextField_prtrDriverName.getText();\n String prtrName = jTextField_prtrName.getText();\n String prtrPort = jTextField_prtrPort.getText();\n tr...
61c9ca52b3afc1952b248957d5965bf2
Seek the currently playing track
[ { "docid": "10960e11d570cca9bbcd3a9e368606ad", "score": "0.6307359", "text": "public void seek(long currentPosition) {\n this.currentPosition = currentPosition;\n if (mediaPlayerState != MediaPlayerState.INVALID) {\n audioService.setCurrentPosition(currentPosition);\n }\n...
[ { "docid": "570398aab93ac8c5d320573cbf33f5df", "score": "0.7301752", "text": "void startplaying() {\n double seekto = System.currentTimeMillis();\n player_time = new Duration(seekto);\n mp3player.seek((player_time.subtract(radio_time)));\n mp3player.play();\n }", "titl...
44b3a7b84ee22e5d73321e3625f0ff00
Tests content dao update collection2.
[ { "docid": "51a451865b4822ebe0cc80049bcacee2", "score": "0.8238945", "text": "@Test\n public void testContentDaoUpdateCollection2() throws Exception {\n User user = getUser(userDao, \"testuser\");\n CollectionItem root = (CollectionItem) contentDao.getRootItem(user);\n\n NoteItem...
[ { "docid": "ffc9ce73b34c0ae2c2eb9bde5615e039", "score": "0.77906823", "text": "@Test\n public void testContentDaoUpdateCollection() throws Exception {\n User user = getUser(userDao, \"testuser2\");\n CollectionItem root = (CollectionItem) contentDao.getRootItem(user);\n\n Collect...
08e84c797f5dce20760b49c3d21d7d62
check for required fields
[ { "docid": "f656ae2e53a7448eb1a1ae59d10aa6ae", "score": "0.0", "text": "public void validate() throws org.apache.thrift.TException {\n }", "title": "" } ]
[ { "docid": "120dbb6750f04f56da8c14d0c56a46bc", "score": "0.8007302", "text": "public boolean isRequiredFieldsNotNull(){ \r\n if (this.getFieldKey() == null) return false;\r\n if (this.getAllrngKey() == null) return false;\r\n if (this.getAllrngProject() == null) return f...
2226d6a8d2048d9f7c69fc0592389a54
Sets the required white Player instance.
[ { "docid": "755f63a62bddfba314e7cec14e7c7ba8", "score": "0.79729253", "text": "public void setPlayerWhite(final Player player) {\n this.whitePlayer = player;\n }", "title": "" } ]
[ { "docid": "a0c0f6f36620d1ed322a64ef8c0c3bd3", "score": "0.7270499", "text": "public Player(boolean isWhite)\r\n {\r\n this.isWhite = isWhite;\r\n }", "title": "" }, { "docid": "dcb9b93610002894f0b3f00721f5e55f", "score": "0.7258811", "text": "public void setPlayer(Playe...
5da5b666f8e215afbfb571ad152e49e0
This methods remove the query string parameter Because the history manager will not find the views
[ { "docid": "920f4ce619e468a26a77d255c8e5b560", "score": "0.710794", "text": "private String removeQueryString(String historyToken)\r\n \t{\r\n \t\tif (historyToken.contains(\"?\"))\r\n \t\t{\r\n \t\t\tint index = historyToken.indexOf('?');\r\n \t\t\thistoryToken = historyToken.substring(0, index);\r\n \...
[ { "docid": "85d0b0ff0d9cd3001212c61898d1f967", "score": "0.67298895", "text": "private void clearQueryString() {\n this.setQueryString(\"\");\n }", "title": "" }, { "docid": "fd186bd122bfe5b48fead17b8d0794de", "score": "0.638013", "text": "private static String removeQuery(...
fa2fd3df236cbe3bb4c12173ac0ca0ac
Logica de los movimientos en postOrden en el arbol
[ { "docid": "27713664f39b32f7208c5316282db3af", "score": "0.5530971", "text": "private void postOrden(NodoArbol<T> nodo) {\n if (nodo.getIzquierda() != null) {\n this.postOrden(nodo.getIzquierda());\n }\n if (nodo.getDerecha() != null) {\n this.postOrden(nodo.ge...
[ { "docid": "86645a4e99e44e459ec88cb052a76a97", "score": "0.6367473", "text": "public void publicarpost(Post post);", "title": "" }, { "docid": "f0209341e0e7458e1816e94b6e32bf5d", "score": "0.6343175", "text": "public void morir(){\r\n\t\tmiNivel.aumentarPuntuacion(puntos);\r\n\t}", ...
2935010e887bdf1e8fb34fc60f7beeab
Takes in a list of search terms and parses them by all white space. For example, 'Orange Juice' would be come 'Orange' and 'Juice'
[ { "docid": "3140a32a4a61d9972055ab0c71131edb", "score": "0.65152365", "text": "public ArrayList<String> parseTerms(ArrayList<String> terms) {\n\t\tArrayList<String> individualTerms = new ArrayList<String>();\n\t\tfor (String term : terms) {\n\t\t\tString[] pieces = term.split(\"\\\\s+\");\n\t\t\tindivid...
[ { "docid": "97620734e6919cc07c567a85a9352a2b", "score": "0.6731144", "text": "private Collection<String> filter(Collection<String> pTerms) {\n ArrayList<String> terms = new ArrayList<String>();\n for (String term : pTerms) {\n term = term.replace(\" \", \"\");\n Strin...
eb3efb0c2413e0d81af4d59151e46818
Switches the vehicle's engine on (true) or off (false). Example: vehicle player engineOn false
[ { "docid": "b0021153b7325aaa8a4e97e42fcc008c", "score": "0.6178307", "text": "public native static void engineOn(GameObject oper1, boolean oper2);", "title": "" } ]
[ { "docid": "e0b8707bc1503343155e20969781db1c", "score": "0.75080484", "text": "public void toggleOn(){\n\t\tif (canStart == true && vehicleIsOn == false){\n\t\t\t\tvehicleIsOn = true;\n\t\t\t}\n\t\telse if (canStart == true && vehicleIsOn == true){\n\t\t\t\tvehicleIsOn = false;\n\t\t\t}\n\t\t}", "ti...
95854dfc9f9d200919083b582f755c35
/ Fills array of npcs that need to be drawn on the map and arrays of x/y positions for the npcs. Fills list of buildings and draws polygons for each building Updates and plays music Updates state change history Written by Tian
[ { "docid": "afdce5cf66e800f9b669d002e3d44a2c", "score": "0.62482154", "text": "@Override\n public void enter(GameContainer gc, StateBasedGame g) throws SlickException {\n GameData.fromstate2 = GameData.fromstate;\n Game.currentMusic = Game.village;\n if (GameData.fromstate != Gam...
[ { "docid": "1d2deb0f3d97474d5530bc2d4fc1afed", "score": "0.64868885", "text": "private void createBuildings(){\n _totalBuildings = 11;\n\n int minHeight = 5 - _difficulty;\n int i;\n int[] buildingPosition = {4,BOTTOM_LIMIT};\n for(i = 0; i < _totalBuildings; i++){\n\n...
3e411c1aaf1e07600b608bd52cc7f2e9
Handle navigation view item clicks here.
[ { "docid": "9bda3ed41c08c4c200f26cba2fefde24", "score": "0.0", "text": "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n\n int id = item.getItemId();\n\n if (id == R.id.carrito) {\n\n SeccionesAdapter di...
[ { "docid": "4485fb866422d769648782e0bda087c1", "score": "0.7055897", "text": "private void clickOnView() {\n mNavigationView.setNavigationItemSelectedListener(this);\n }", "title": "" }, { "docid": "80293433b09626040e70df461213f72f", "score": "0.6870788", "text": "public vo...
56343b78db00fe4fdf6c21720529db6c
Handles the HTTP POST method.
[ { "docid": "a4d6191746ad49b4def8ce5d514d3b1a", "score": "0.0", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }", "title": "" } ]
[ { "docid": "bd091204fa37a7e91c29f6887e39b9a4", "score": "0.7442579", "text": "public void handlePost( String httpMethodString,\n HttpServletRequest request,\n HttpServletResponse response ) throws ServletException, IOException {\n\n super.doPost(request, response);\n \n }", "title":...
c44f382f0d5c28a104dee049a12163ca
PARA VER SI HAY ELEMENTOS EN LISTA
[ { "docid": "5214d71bf11f6d2135851046ddb6d809", "score": "0.0", "text": "public boolean elementosLista() {\n\t\t\t\t\r\n\t\t\t\tboolean hayElementos= false;\r\n\t\t\t\t\r\n\t\t\t\tif (l.isEmpty()==true) {\r\n\t\t\t\t\t hayElementos = false; // si vacia, no hay elementos en lista\r\n\t\t\t\t\t\r\n\t\t\t\t...
[ { "docid": "c6641d9a80119edd1ce376c6b3a7eda6", "score": "0.73268425", "text": "Lista elemento(int id);", "title": "" }, { "docid": "3c2477e9b010f9cbfe5ee82289422982", "score": "0.7243082", "text": "public void listar() {\r\n // Verifica si la lista contiene elementoa.\r\n ...
5cec3a56d233f9b349f9530904377382
Share photo using file
[ { "docid": "45987070e213fe195c406cd4dd384152", "score": "0.7810839", "text": "public static void sharePhoto(Activity activity, File file) {\n Uri uri = Uri.fromFile(file);\n\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(ExternalServiceConfig.INTENT_IMAGE_TYPE);\...
[ { "docid": "9fa7f966a249a462498e2835d106c34f", "score": "0.78790617", "text": "private void shareImage(File file){\n Uri uri = FileProvider.getUriForFile(SinglePlayerEndGame.this, SinglePlayerEndGame.this.getApplicationContext().getPackageName() + \".provider\", file);\n Intent intent = ne...
56733c4210f6e21e76cfb2cc1494f656
Find the _Fields constant that matches fieldId, throwing an exception if it is not found.
[ { "docid": "12fddf206fd292af75ba4f0ae29f423a", "score": "0.0", "text": "public static _Fields findByThriftIdOrThrow(int fieldId) {\n _Fields fields = findByThriftId(fieldId);\n if (fields == null) throw new IllegalArgumentException(\"Field \" + fieldId + \" doesn't exist!\");\n retu...
[ { "docid": "818fecd57ed0061bd9fba97afc82552b", "score": "0.7655612", "text": "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // E1\n retu...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "a1fa17e02f2ba599b1fe9b8c30e4e906", "score": "0.0", "text": "public static void main(String[] args) {\n\n\t\tList<Integer> myList = new ArrayList<>();\n\t\t\n\t\t\n\t\tmyList.add(10);\n\t\tmyList.add(7);\n\t\tmyList.add(2);\n\t\tSystem.out.println(myList);\n\n\t\t//\n\t\t// myList.add(1,4);\n...
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6840622", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6566127", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", "...
91026e748b0a84f6493b02bcd14305d6
Affiche le contenu de l'arraylist chambre
[ { "docid": "8fcbb9d213abc9a6d6c04e4a179b93bd", "score": "0.0", "text": "public void getAllSingleRoom() {\n\t\t for(SuiteRoom elem: suiteroom)\n\t {\n\t \t System.out.println (\"capacité : \" +elem.getCapacity());\n\t \t System.out.println (\"prix : \" +elem.getPrice());\n\t \t Sy...
[ { "docid": "7002a9d6a6ced22ca26ad1d580c1fc64", "score": "0.64110917", "text": "public ArrayList<String> mostraLlistaDiscret(){\n ArrayList<String> tauleta = new ArrayList<>();\n int p = 0;\n System.out.print(\"num atribs disc de 0: \"+list.getAtribs().get(0).getAtribsDisc().size());...
336d0bd7e8b6443075acd59915a412aa
called from ListSelectionListener of BOM List.
[ { "docid": "bb9eab0238d3400cfd03b5e5afff2a03", "score": "0.0", "text": "private void bomSelected(int selectedRow){\n \tbomDet=new inventorycontroller.function.BillOfMaterialProcessor(dbInterface1)\n \t .getBomDescForPoMaster(jTable1.getModel().getValueAt(selectedRow, 3).toString());\n \t\n \...
[ { "docid": "d0b26c2eba21df8c767ab5a176815e1e", "score": "0.6931889", "text": "@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }", "title": "" }, { "docid": "42523de4c6f8293563b4b1891c5e0376", "score": "0.682473...
347f80a8b7406039e56db181964ec983
Test get catalogue file upload errors not present.
[ { "docid": "595d23e7516277966ffcc4fc44648681", "score": "0.7212749", "text": "@Test(priority = 34)\n\t@Transactional\n\tpublic void testGetCatalogueFileUploadErrors_notPresent() throws Exception {\n\t\tlog.info(\"==================================================================================\");\n\t\...
[ { "docid": "22bed4200df73ba62b6c7455394293eb", "score": "0.68614846", "text": "@Test\n\tpublic void testGetUploadFileProcessFailure() throws Exception {\n\n\t\tlog.info(\"==========================================================================\");\n\t\tlog.info(\"testGetUploadFileProcessFailure - Star...
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "2211341c2265bd1deddfde739e6b4570", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n View v = inflater.inflate(R.lay...
[ { "docid": "4b82389ff8a7e5951b863f83f452858c", "score": "0.6931775", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rss_details, container, false)...
7132a9b88f460d1827456d3fd09dae07
Deletes the entity year model from the database. Also notifies the appropriate model listeners.
[ { "docid": "32874352537c2933f0dedebf167ff581", "score": "0.7658999", "text": "public static com.consistent.ucwrt.model.EntityYearModel deleteEntityYearModel(\n com.consistent.ucwrt.model.EntityYearModel entityYearModel)\n throws com.liferay.portal.kernel.exception.SystemException {\n ...
[ { "docid": "c2e4d56b9e6296f2563aa7eb0b55801c", "score": "0.7758844", "text": "public static com.consistent.ucwrt.model.EntityYearModel deleteEntityYearModel(\n int yearModel)\n throws com.liferay.portal.kernel.exception.PortalException,\n com.liferay.portal.kernel.exception.Syst...
c11d86ef5588782eac34c362c91dccb7
This method stores the gephi project file at the path specified in the Settings file
[ { "docid": "ec2df4e559cfed2d136724903a46ebb9", "score": "0.0", "text": "public String getProject(String hashPath) {\n\t\t//Init a project\n\t\tProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n\t\tpc.newProject();\n\t\tWorkspace workspace = pc.getCurrentWorkspace();\n\n\t\tImp...
[ { "docid": "4eea92a67e15c5570ea8c48825d5b3fa", "score": "0.6313898", "text": "public void storeSettings() {\n Globals.prefs.put(application.commandPathPreferenceKey, path.getText());\n }", "title": "" }, { "docid": "1e41808b163c4e43135262834de40031", "score": "0.60719067", ...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "8248b61c6ea381b38f55638c7063ad11", "score": "0.0", "text": "@Override\r\n\tpublic void SendData(String data) throws IOException {\n\t\t\r\n\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69752145", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.69362766", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}...
86acb3738509d4fa88dbc8bee6c91b86
Information about the current build, taken from system properties.
[ { "docid": "19036d7ae85015c10674999c681d5f66", "score": "0.0", "text": "public static void logDeviceInfo(String tag) {\n Log.d(tag, \"Android SDK: \" + Build.VERSION.SDK_INT + \", \"\n + \"Release: \" + Build.VERSION.RELEASE + \", \"\n + \"Brand: \" + Build.BRAND + \...
[ { "docid": "603341d138b545dc182229d4cad67a16", "score": "0.7447525", "text": "public String getBuildOsInfo() {\n return buildOsInfo;\n }", "title": "" }, { "docid": "a84c7b2b68820d72c6e6f21138049bd7", "score": "0.73590624", "text": "public static String obtBuild() {\r\n\t\t...
e5b269f4679ca09d3ac5c20133f6fa2b
Using JavaRegex to validate name.
[ { "docid": "cc4e39323f1706a34b3c78978b548cf8", "score": "0.71247417", "text": "private String correctNamePattern() {\n while (true) {\n String name = this.takeInput.nextLine();\n String regx = \"^[a-zA-Z\\\\s]+$\";\n\n Pattern pattern = Pattern.compile(regx, Patte...
[ { "docid": "ab12d3f9f33e9c31c86e24723c94ebfb", "score": "0.79594004", "text": "private boolean isValidName(String name) \r\n\t{\r\n\t\treturn name.matches(\"[A-Z][a-zA-Z0-9\\\\s'\\\"]+\");\r\n\t}", "title": "" }, { "docid": "0079ce5e12d863035dcfbf0670f69fd4", "score": "0.7911057", "t...
ea47321c9539b2dd8a095ad4e7ff939c
Creates a list of related recipe items
[ { "docid": "d7bb1274c4970ff697a3dd05fc7f2a43", "score": "0.61116755", "text": "private List<HashMap<String, String>> getRelatedRecipes(JsonNode node)\n\t{\n\t\tArrayList<HashMap<String, String>> relatedRecipes = \n\t\t\t\t\t\t\t\tnew ArrayList<HashMap<String, String>>();\n\t\tIterator<JsonNode> i = node...
[ { "docid": "7998c89ab8a42412c3f2deb15d3c19b3", "score": "0.6674184", "text": "public void createRecipe_TwoIngredients(){\n Category category2 = new Category(-1, \"Lunch\");\n int categoryID2 = testDatabase.addCategory(category);\n\n RecipeCategory recipeCategory2 = new RecipeCategor...
587f62082341edfb05df6577b24bd45f
Encapsulation. Demonstrate with different class attributes: methods and fields. Access modifiers.
[ { "docid": "2d9e4e12dda86186488bdce27e78f0db", "score": "0.0", "text": "public static void main(String[] args) {\n\n Doctor d1 = new Doctor(\"Ivan\", 28, 3000000, 1);\n Engineer e1 = new Engineer(\"Igor\", 29, 9000000, \"support\");\n\n double totalSalary = d1.getSalaryUah() + e1.ge...
[ { "docid": "ab719372f3ca1177eb57e07a1dccc66d", "score": "0.6861159", "text": "@Test\r\n public void EncapsulationTest() {\r\n food.setname(\"Pork \");\r\n food.setFoodtype(\" Protein Meat \");\r\n food.setTocook(true);\r\n \r\n System.out.print(food.getName() + food.getFoodtype()...