query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
4216a64588b38171298591c162a254da
/ 265: / 266:
[ { "docid": "a288dd3301d3b9f614252b91e69d1a5e", "score": "0.0", "text": "public SSLParameters getSSLParameters()\r\n/* 267: */ {\r\n/* 268:273 */ return this.engine.getSSLParameters();\r\n/* 269: */ }", "title": "" } ]
[ { "docid": "5c806bfd66d858ecdc6fbee7bd89db16", "score": "0.60549027", "text": "static int H (String chave) {\n int c= ((int) chave.charAt(1))*100 + ((int) chave.charAt(0));\n double d=OURO*c;\n //return c % m;\n return (int) ((d- Math.floor(d)) * m);\n }", "title": "" }, { "docid": "9716...
84ff18aaaaab611fc182dc0eef85f12d
Sets the completeTime value for this WorkOrdersEntity.
[ { "docid": "4947cfa0c09eb84b4ef2bc475514fea9", "score": "0.76350516", "text": "public void setCompleteTime(java.lang.String completeTime) {\n this.completeTime = completeTime;\n }", "title": "" } ]
[ { "docid": "86fcc8c8542a79c57b837d61858c9028", "score": "0.78241515", "text": "public void setCompleteTime(Date completeTime) {\n this.completeTime = completeTime;\n }", "title": "" }, { "docid": "818f40dfbdd8b459ba0e0d3d0d333c8a", "score": "0.7815619", "text": "public void...
ce00efe83592b9a0f5cb5bd35e1eb0d4
Leads Method to get all leads
[ { "docid": "c27d3d3538dba71eab4fba9c65c6f334", "score": "0.6314119", "text": "public LeadList getLeads(String facility_id, Options options) {\n String json = \"\";\n\n try {\n json = forward(\"GET\", facility_id + \"/leads\" + load(options), null);\n } catch (Exception e)...
[ { "docid": "8e1a46bc80c620b264a81c8699d6c3f7", "score": "0.6344061", "text": "@Override\n public List<Lesson> findLessons() {\n System.out.println(\"..........DemoService..........findLessons.........\");\n List<Lesson> list;\n List<Refund> listr;\n\n try {\n li...
9a04fe5249684cba2d761c5cc472697e
Creates new form UpdaterFrame
[ { "docid": "13517205d2a92fb4d46880a56cd616e7", "score": "0.7325064", "text": "public UpdaterFrame() {\n initComponents ();\n pack ();\n center();\n }", "title": "" } ]
[ { "docid": "abf20ed9fb1218926e5297a36ef3bec9", "score": "0.65261894", "text": "public UpdateFrame() {\n\t\tinitComponents();\n\t\tthis.setResizable(false);\n\t}", "title": "" }, { "docid": "848d6b2564dd0a7a3fdd753c0839ac89", "score": "0.63214916", "text": "public CreateFrame() {\n ...
7e7b11188a96543832d6097532a063ea
This method identifies whether the map has the data with daraitemId or not.
[ { "docid": "e8b2397ba305f344a93a257c8225696b", "score": "0.79662013", "text": "public boolean contain(int dataitemId) {\r\n return map.containsKey(dataitemId);\r\n }", "title": "" } ]
[ { "docid": "93bbdb70a9f29e826f30cc1383148bb2", "score": "0.6784585", "text": "boolean hasItemId();", "title": "" }, { "docid": "93bbdb70a9f29e826f30cc1383148bb2", "score": "0.6784585", "text": "boolean hasItemId();", "title": "" }, { "docid": "93bbdb70a9f29e826f30cc138314...
4186fab2b5c98c605fd46abebd7482a3
[UC1136] Inserir Contrato de Parcelamento por Cliente Filtra os Usuarios por Id ou Nome para ser utilizado no Autocomplete
[ { "docid": "acbb5c91316b50db8d4a67d26b01ebe8", "score": "0.64055026", "text": "public Collection filtrarAutocompleteUsuario(String valor)throws ControladorException;", "title": "" } ]
[ { "docid": "ccf413a941177118900cdd5ea4f4002f", "score": "0.6499044", "text": "private void pesquisarUsuario() {\n try {\n String result = dao.selecionaUsuario(Integer.parseInt(tfCod.getText()));\n tfNome.setText(result);\n if (result.length() > 0) {\n ...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "54ac12dbeaf32cada319239d8fd49462", "score": "0.0", "text": "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Close Clicked\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}", "title": "" } ]
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", ...
dcc4f469f8da3b400849db710dfa64fb
Constructs a default Triangle object with color, filled, sideA, sideB, and sideC value
[ { "docid": "b81ead89dc090270fe0c7ef6dcafd730", "score": "0.7253769", "text": "public ComparableTriangle(String color, boolean filled,\r\n double sideA, double sideB, double sideC) {\r\n super();\r\n this.sideA = sideA;\r\n this.sideB = sideB;\r\n this.sideC = sideC...
[ { "docid": "d33bb939d91d65d3767e6d52a5b16b3f", "score": "0.7309381", "text": "public Triangle() {\r\n\t\t triangleType = new String(\"Unset\");\t\t\r\n\t}", "title": "" }, { "docid": "acbab1780f21ca867698dac21dcb11e1", "score": "0.72925556", "text": "public Triangle() {\n heig...
6075a44ecc4ac5ac7739d0bbd10c6903
Gets the profile2.profile.entity.set.minimal list of properties that should be used in the minimal profile view. Returns default list of ProfileConstants.ENTITY_SET_MINIMAL if none.
[ { "docid": "935ec2d7265056a426b4a94b23ea1a21", "score": "0.6638182", "text": "public List<String> getMinimalEntityConfigurationSet();", "title": "" } ]
[ { "docid": "a8b42929d887be1879ca41538f74eb40", "score": "0.5505762", "text": "public Set<String> getProperties();", "title": "" }, { "docid": "fa2eb2300850da6e8ee0c87ca1920f44", "score": "0.52944", "text": "public abstract Set<String> getProperties();", "title": "" }, { "...
7b439c4ab7ccf64f330f1e919b31ee62
Sellers characteristics, generates cars
[ { "docid": "95b103cb39794ea586fc3119e41a7695", "score": "0.6195439", "text": "protected void setup() {\n\t\tRandom rd = new Random();\n\t\tagreeableness = rd.nextInt(20);\n\t\tfor(iter = 0; iter < 10; iter++) {\n\t\t\tCar car = null;\n\t\t\ttry {\n\t\t\t\tcar = JsonLoader.GenerateCar();\n\t\t\t\tcar.car...
[ { "docid": "4d51de2cfbb4e595d886baf25a13e63e", "score": "0.7265112", "text": "public void generateCars() {\r\n\t\tCar car;\r\n\r\n\t\tfor(short i=1; i<100; i++)\r\n\t\t{\r\n\t\t\tcar = new Car(i, true, predDomains, carContextFactory, factFactory);\r\n\t\t\tallCars.add(car);\r\n\t\t\tavailableCars.add(ca...
39d9407841f45d1f892e82667edb4eda
Delete sessions (bulk) Delete message sessions, together with all nested messages, by given ID(s) or delete all message sessions.
[ { "docid": "555868c4dc57f1211144c79f8f5ad7fd", "score": "0.5529112", "text": "public ApiResponse<Void> deleteMessageSessionsBulkWithHttpInfo(DeleteMessageSessionsBulkInputObject deleteMessageSessionsBulkInputObject) throws ApiException {\n com.squareup.okhttp.Call call = deleteMessageSessionsBulk...
[ { "docid": "10938d90256b78e129247ca5b9eb3e4e", "score": "0.614738", "text": "public void deleteMessageSessionsBulk(DeleteMessageSessionsBulkInputObject deleteMessageSessionsBulkInputObject) throws ApiException {\n deleteMessageSessionsBulkWithHttpInfo(deleteMessageSessionsBulkInputObject);\n }...
f786dcb40b9b7d2e4e47cc3edfaa455d
Get the raw token text
[ { "docid": "d219f5ef86cb1a78ded30a8341b0a8cc", "score": "0.0", "text": "String getText();", "title": "" } ]
[ { "docid": "e4edc6855ba12f8e536b44d92daa784c", "score": "0.760641", "text": "public String getToken() {\n return token.getPlainText();\n }", "title": "" }, { "docid": "55ea9cce2cdcc62df0b42ca6b606fc6a", "score": "0.7326302", "text": "java.lang.String getToken();", ...
d19379ae13e86ca263226d2f5947320c
int32 oneof_1531 = 1531;
[ { "docid": "ef6f83d5fd9055f860c174528d51198a", "score": "0.5295968", "text": "int getOneof1531();", "title": "" } ]
[ { "docid": "8e6e1fb5554302c4ea4f1fb00f513fe5", "score": "0.63207495", "text": "int getFixed32Value();", "title": "" }, { "docid": "8e6e1fb5554302c4ea4f1fb00f513fe5", "score": "0.63207495", "text": "int getFixed32Value();", "title": "" }, { "docid": "07aaff2f289111ce495e8d...
c892abe19d7e5c5481b417c584aff051
is the current node closed... Create an XmlWriter on top of an existing java.io.Writer.
[ { "docid": "8510b38ec476dbb3e18eec91b982a2da", "score": "0.59520453", "text": "public XmlWriter(Writer writer) {\n this.writer = writer;\n this.closed = true;\n this.stack = new Stack();\n }", "title": "" } ]
[ { "docid": "de332b76a4a0ad8a0dd0908455784fbe", "score": "0.6389644", "text": "public void close() throws XmlWriterException {\n if(!this.stack.empty()) {\n throw new XmlWriterException(\"Tags are not all closed. \"+\n \"Possibly, \"+this.stack.pop()+\" is unclosed. \");\...
2d7d481121478712f99ff072b25773b8
$ANTLR end T66 $ANTLR start T67
[ { "docid": "58fdc01dd57e82758a4ac4f8e2847e5f", "score": "0.51464754", "text": "public final void mT67() throws RecognitionException {\n try {\n int _type = T67;\n // ../com.emftriple.query.jpql.ui/src-gen/com/emftriple/query/ui/contentassist/antlr/internal/InternalJpql.g:60:...
[ { "docid": "b5e923c4575e48798d5eaf2393ac8fcf", "score": "0.5609418", "text": "private int yyr67() {\n {\n yyrv = svExpr(new Binary(BinaryOp.AND, yysv[yysp-3].expr, yysv[yysp-1].expr, yysv[yysp-2].pos));\n }\n yysv[yysp-=3] = yyrv;\n return y...
896279ec50eb9a3521b8e28835f94695
List all possible failures, given the information about this pointcut. It's up to the FIState modelchecker and the server filter to decide which failures that we want to exercise later. All we want to do here is simply list all possible failures.
[ { "docid": "56000a0e5a8c0fa1749d1d58d5e8f642", "score": "0.6501012", "text": "private static FailType[] listPossibleFailures(FMAllContext fac) {\n\n List<FailType> list = new ArrayList<FailType>();\n\n boolean crash = false;\n boolean exception = false;\n boolean corruption = false;\n boo...
[ { "docid": "0f40a221ad9ebe4419115683a68600ac", "score": "0.60467094", "text": "public List whyFailed() {\n\n return failureReasons;\n\n }", "title": "" }, { "docid": "9bf805ca6bd0e3175c4b9d4ee73eb6c1", "score": "0.59361446", "text": "java.lang.String getFailedactions();", "ti...
49588ff534426bdfff021bb39ffcb425
Retrieves one of the static objects in this class by name.
[ { "docid": "d2844bb68b7ed76f8aff8e3b9cc6be4e", "score": "0.0", "text": "public static AudioMediaType valueOf(String typeName)\n\t{\n\t\ttypeName = typeName.replaceAll(\"-\", \"_\").toUpperCase();\n\t\ttry {\n\t\t\tField f = AudioMediaType.class.getField(typeName);\n\t\t\tObject obj = f.get(null);\n\t\t\...
[ { "docid": "fb1a885fda8647037a28e4ce3008d58b", "score": "0.6155683", "text": "Object get(String name);", "title": "" }, { "docid": "7baba7346644176c28293183f076dddd", "score": "0.59684545", "text": "public abstract Object get(String name);", "title": "" }, { "docid": "421...
94475d35953013fea34f82add1c8d5bc
/ A3 ap = new A3(); B3 bp = new B3(); System.out.println("ap= " +ap); System.out.println("bp= " +bp);
[ { "docid": "648b20f0e4ec2c66d170fd2ad590e1d7", "score": "0.61908066", "text": "public static void main(String[] args) {\n\t\tObject[] obj = new Object[2];//��� Ŭ������ ObjectŬ������ ��� \n\t\tobj[0] = new A3();\n\t\tobj[1] = new B3();\n\t\tfor(int i =0;i<obj.length;i++) {\n\t\t\tSystem.out.println(\"obj...
[ { "docid": "2b26de84b0733b6343d0601d37a6186f", "score": "0.7075757", "text": "public static void main(String[] args) {\nBB b=new BB();\r\nSystem.out.println(b.a);\r\n\t}", "title": "" }, { "docid": "73b11e008a403101bcead54c657cd148", "score": "0.6893089", "text": "public static void ...
0dd45514dbf6eb43c4c87ff5b9b2f48a
change UI elements here
[ { "docid": "09357a1649f5a21b24ed9281847be246", "score": "0.0", "text": "@Override\n public void run() {\n String sqStr = NskAlgoSignalQuality.values()[fLevel].toString();\n sqText.setText(sqStr);\n }", "title": "" ...
[ { "docid": "d7124645b22c5662ba58f21d92dcd42d", "score": "0.8003524", "text": "public void modifyUI() {\n\t\t}", "title": "" }, { "docid": "4c57561c47240dfbc7061dfbf948d262", "score": "0.7645568", "text": "private void updateUI() {\n }", "title": "" }, { "docid": "c05e4...
b34df1cd7fb386c38423a79df6825702
required string itemid = 2;
[ { "docid": "d60586fe9d3925c06c9505f3550260c6", "score": "0.0", "text": "public boolean hasItemid() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "title": "" } ]
[ { "docid": "5555309d9a6498b686a60a7b224f5062", "score": "0.7047322", "text": "public void setID(int id) {itemID = id;}", "title": "" }, { "docid": "0f2dccb10c44f8b40686ec8740783ab1", "score": "0.65075976", "text": "public static final String USE_ITEM(int id)\r\n/* 129: */ {\r\...
a8071c3fc34d80446de18fbfe36205e7
Generates assessment records for user selection First, calculates the number of records to generate and sets it to status.totalNumber
[ { "docid": "62066ea9890f2ff3e2984cfbe324575b", "score": "0.5594145", "text": "public void generateAssessmentRecords(String projectId, String siteId, String buildingId,\n String floorId, String activityType, String recordsFor) {\n // total number of records to generate\n int tota...
[ { "docid": "4ff92d0c0d3f6999c2dff8e88371d46a", "score": "0.54174685", "text": "public void getCount(boolean status) {\n\n\t\tif (status) {\n\t\t\tinventoryLinkedList.sort(\n\t\t\t\t\t(s1, s2) -> Double.valueOf(s1.getQuantity()).compareTo(Double.valueOf(s2.getQuantity())) * -1);\n\t\t\tLOG.info(\"User se...
59dd0a6c5cf26d61c52f9eb1f558d4f4
Util method to write an attribute without the ns prefix
[ { "docid": "fd6dc57573a0fb4ed77a13ff3febd90c", "score": "0.0", "text": "private void writeQNameAttribute(java.lang.String namespace,\r\n\t\t\t\tjava.lang.String attName, javax.xml.namespace.QName qname,\r\n\t\t\t\tjavax.xml.stream.XMLStreamWriter xmlWriter)\r\n\t\t\t\tthrows javax.xml.stream.XMLStreamEx...
[ { "docid": "4032b8c44c9067682aec7c95df9e1e42", "score": "0.7244922", "text": "private void writeAttribute(java.lang.String namespace,java.lang.String attName,\r\n java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamE...
45a8a809882172ef70243a21683b5fc1
Generates hexadecimal string from given byte array
[ { "docid": "a49f74aec6d00aef2c83431e2334b00f", "score": "0.8192628", "text": "public static String bytetohex(byte[] bytearray) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor (byte b : bytearray) {\n\t\t\tbyte first = (byte) ((b & 0xf0) >> 4);\n\t\t\tbyte second = (byte) (b & 0x0f);\n\t\t\...
[ { "docid": "41e4fdb3ba7f5c83e0b62040048fb272", "score": "0.79772496", "text": "public static String hex(byte[] array) {\n \tStringBuffer sb = new StringBuffer();\n \tfor (int i = 0; i < array.length; ++i) {\n \t\tsb.append(Integer.toHexString((array[i]& 0xFF) | 0x100).substring(1,3)); \n...
2f63bfbe7e01845836e6ed27dfd7f7e2
rellena el tablero con las minas y adyacentes
[ { "docid": "885664db3660607efd20a9d7ddca8559", "score": "0.6464529", "text": "private void algoritmoRelleno(int[][] tablero) {\n int contador = 0; //contador a 0 para saber la posición de las minas\n for (int j = 0; j < tablero.length; j++) { // recorremos el array y vamos poniendo las min...
[ { "docid": "3c5fe95bbb8e259739e0214d3b8ab8c2", "score": "0.6863797", "text": "private void limparTabelaAbaDois() {\n DefaultTableModel modelo = (DefaultTableModel) tbProdutos.getModel();\n modelo.setNumRows(0);\n }", "title": "" }, { "docid": "c027058ac57e6e5efb96a4b9f54f80a...
d186395a57aceb648ae418603fb8ff8d
The async counterpart of Service.
[ { "docid": "8213df8aae256510a3e58e296f18a89d", "score": "0.69750184", "text": "public interface ContentServiceAsync extends AbstractServiceAsync<Content> {\r\n}", "title": "" } ]
[ { "docid": "196524bdf4ab88a57255e12fd00106ab", "score": "0.71475255", "text": "public interface DemoServiceAsync {\n\tvoid load(AsyncCallback<Void> callback) throws IllegalArgumentException;\n\tvoid processPost(Source source, Post post, AsyncCallback<DemoResult[]> callback) throws IllegalArgumentExcepti...
1b0db9a86fbc30535f4932272842fb48
/ renamed from: a
[ { "docid": "ac3fa0824382876c20e973e1b9baba1d", "score": "0.0", "text": "public xr m39005a() {\n return this.f31402a;\n }", "title": "" } ]
[ { "docid": "e8b407e15e709133d36c40b376c5772b", "score": "0.6288352", "text": "@C4056a\n /* renamed from: a */\n public abstract Object mo18472a(String str);", "title": "" }, { "docid": "b7e8cbc10834bded8ca03375afdf1d79", "score": "0.6287218", "text": "public interface C35231a {...
f5adb876e78e27ca318650d474ee5425
"""""""""""Reset password api calling""""""""""//
[ { "docid": "5958978625f5cdf631bc142dd07318ad", "score": "0.6070057", "text": "private void dilogResetPass(String email, final RelativeLayout forgot_layout, final Dialog dialog, final ProgressBar progressBar1) {\n if (Constant.isNetworkAvailable(this, forgot_layout)) {\n progressDialog....
[ { "docid": "0b733d426ccadc6945b0faca60a9eec5", "score": "0.8028921", "text": "private void callResetPwdApi() {\n try {\n RequestParams requestParams = new RequestParams();\n requestParams.put(\"email\", mIntent.getStringExtra(\"email\"));\n requestParams.put(\"ver...
549137de62ab124e7d29716a7761bd6e
This is called when the server sends a register packet.
[ { "docid": "b83bb33f8a78299b56953f243705c8b2", "score": "0.60999304", "text": "public void registerPacket (ICBEvent event);", "title": "" } ]
[ { "docid": "7b6c192c879b7c17f920c479d852bf91", "score": "0.7644886", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic void register() throws SocketException, IOException {\n\t\tspinUpListener();\n\n\t\tString str = new StringBuilder()\n\t\t\t.append(REG_STR)\n\t\t\t.append(\" \")\n\t\t\t.append(nick)...
0de62d1ea438a6e3594eb168f2eb3b58
How much time it took to parse the trace file Not set if |capture_status| is not set to |SUCCESS| optional uint64 parsing_time_ms = 5;
[ { "docid": "9aa104c8e8cd5237fd64214490cf8241", "score": "0.52343667", "text": "public boolean hasParsingTimeMs() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "title": "" } ]
[ { "docid": "8c54cde4a6cfd818783f9b34fa751e5b", "score": "0.56911683", "text": "public long getParsingTimeMs() {\n return parsingTimeMs_;\n }", "title": "" }, { "docid": "e53035f3e13b5f2dabf2f1f5b460fdca", "score": "0.5622819", "text": "public long getParsingTimeMs() {\n retu...
798fcbed57e51b6865b39b7da74c50ea
At this point this is only changed on testcases The bridge shouldn't be sending blocking anyways
[ { "docid": "9dfa1a36453f62be234ccae8b34eba58", "score": "0.0", "text": "public BridgeConfiguration setCallTimeout(long callTimeout) {\n this.callTimeout = callTimeout;\n return this;\n }", "title": "" } ]
[ { "docid": "a57fcc0448f43c5cbd6a245902de38d5", "score": "0.67728597", "text": "public boolean isBlocking() {return true;}", "title": "" }, { "docid": "bb150cb65736df0ce66b42efc4af8f34", "score": "0.6470238", "text": "void testReceiveSend() throws IOException {\n Isolate i = Is...
b5784cacaa3cd061380cc2d7612cfab2
This method was generated by MyBatis Generator. This method returns the value of the database column doctors_login_info.doctors_phone
[ { "docid": "8ac154dacab82b97bb001fdbd6d4297c", "score": "0.7049127", "text": "public String getDoctorsPhone() {\n return doctorsPhone;\n }", "title": "" } ]
[ { "docid": "afde6bfa3350e62d08a050e5aa73d8d1", "score": "0.6050129", "text": "public void setDoctorsPhone(String doctorsPhone) {\n this.doctorsPhone = doctorsPhone == null ? null : doctorsPhone.trim();\n }", "title": "" }, { "docid": "eea09a917c4794eab9c0368dcc3dbbba", "score":...
b80e7fb6ce0da6ebee1824cbbad39492
optional .assistant.api.params.ResponseLoggingParams assistant_logging_params = 12;
[ { "docid": "08343dcc689671e9e13ffcfcba919f25", "score": "0.6280021", "text": "boolean hasAssistantLoggingParams();", "title": "" } ]
[ { "docid": "0b89a80b08ecdecf1dc686c01d2d5e4e", "score": "0.82790697", "text": "com.google.assistant.api.params.proto.ResponseLoggingParamsProto.ResponseLoggingParams getAssistantLoggingParams();", "title": "" }, { "docid": "ed2a733124e348955d5764e26afe951d", "score": "0.79400134", "t...
a52101f7570e6c33feca63eb584ccb35
Sets the list of options for a question.
[ { "docid": "ea3f80fe86dca2a5b80e0ae375bcf36c", "score": "0.62881064", "text": "public void setOptionList(List<OptionDef> optionList){\n\t\toptions = optionList;\n\n\t\tfor(int index = 0; index < changeListeners.size(); index++)\n\t\t\tchangeListeners.get(index).onOptionsChanged(this,optionList);\n\t}", ...
[ { "docid": "d2a3e7a5c90c3a9d8314e31f9c7a0c80", "score": "0.7206785", "text": "public void setQuestionAndOption(){\n optionText1.setText(questionList.get(index).getOptions().get(0));\n optionText2.setText(questionList.get(index).getOptions().get(1));\n optionText3.setText(questionLis...
0566f5e4da278a628afd0136d285cfbd
To solve this problem, you first need to know what isedit distance. You may refer to this wikipedia article for more information. For this problem, it implicitly assumes to use the classicLevenshtein distance, which involves insertion, deletion and substitution operations and all of them are of the same cost. Thus, if ...
[ { "docid": "1ca953eea9fc7d4231eaf94a16399bbc", "score": "0.6276428", "text": "public boolean isOneEditDistance(String s, String t) {\n if (null == s || null == t)\n return false;\n int m = s.length(), n = t.length();\n if (m > n)\n return isOneEditDistance(t, s...
[ { "docid": "c005fa443e8ab30381962492bd59f134", "score": "0.72516274", "text": "int LevenshteinDistance(String s,int len_s, String t,int len_t)\n\t{\n\t\tint cost;\n\t\t\n\t /* base case: empty strings */\n\t if (len_s == 0) return len_t;\n\t if (len_t == 0) return len_s;\n\t \n\t /* test if last cha...
1bf89447b80ec86ff401a389c9f91f7d
/ access modifiers changed from: protected
[ { "docid": "d816ad0aa00e11d87131ab635aa3d143", "score": "0.0", "text": "@Override // androidx.recyclerview.widget.RecyclerView.r\r\n public void a(View view, RecyclerView.s sVar, RecyclerView.r.a aVar) {\r\n int b2 = b(view, c());\r\n int a2 = a(view, d());\r\n int a3 = a((int) M...
[ { "docid": "74a4209c94e08d9f5eb0b60e580f5e04", "score": "0.68727666", "text": "@Override\r\n\tpublic void comit() {\n\t\t\r\n\t}", "title": "" }, { "docid": "534c466f09845319b9edaf959a891c09", "score": "0.68639606", "text": "@Override\r\n\tpublic void debriyaj() {\n\t\t\r\n\t}", ...
dcba33888bc1728052d4f6c2630a2384
empty constructor(needed to create a new instance) return types while methods do Instantiates a new Contestant.
[ { "docid": "5aa4cb1115fbc16e6df6af6c06c52852", "score": "0.6596482", "text": "public Contestant(int attackLevel, int defenseLevel, int healthLevel) {}", "title": "" } ]
[ { "docid": "a7863313a1c5e65da74460613a8bac47", "score": "0.677827", "text": "public CompteCourant() {\r\n\r\n\t}", "title": "" }, { "docid": "145d821e62344f7cf4d7e77a30e72573", "score": "0.6442312", "text": "public SiacDSoggettoClasse() {\n\t}", "title": "" }, { "docid": ...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "344e83216905dcad3a26bab664b7c2b3", "score": "0.0", "text": "@Override\r\n\tpublic void onProviderDisabled(String provider) {\n\t\tToast.makeText(this, \"Disabled provider \" + provider,\r\n\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t}", "title": "" } ]
[ { "docid": "05a606445504484958a1c21e14b7198e", "score": "0.69474965", "text": "@Override\r\n\tpublic void sapace() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8619203d4867f5c6d05eb9a5354405c0", "score": "0.6920049", "text": "@Override\n\t\tpublic void pintate() {\n\t\t\t\n\t\t}", ...
7d7b361728a3d0d1ff1d46db12e6346f
toAtributeType / Positive or Negative; Sim or Nao
[ { "docid": "7bdd482cd9c77622cdacb29972b513cb", "score": "0.0", "text": "static boolean toBoolean(String s) {\n if ( \"N\".equals(s) || \"false\".equalsIgnoreCase(s)) {\n return false;\n }\n return true;\n }", "title": "" } ]
[ { "docid": "281fdf6a6ad540f2db762ce0e26a865b", "score": "0.5774827", "text": "public AssemType translateToIntType() {\n\t\tAssemType retAssemType = null;\n\n\t\tTemp temp = new Temp();\n\t\tAssemTemp assemTemp = new AssemTemp(temp, getValueProperties());\n\t\t\n\t\tAssemMove assemMove = new AssemMove(as...
181ba21dd5618a0493567df6ffbe6b14
Returns the result of interpreting the object as an instance of 'Function Call'. This implementation returns null; returning a nonnull result will terminate the switch.
[ { "docid": "1aacf0950ee34180912be8c688cb84b0", "score": "0.7152695", "text": "public T caseFunctionCall(FunctionCall object)\n {\n return null;\n }", "title": "" } ]
[ { "docid": "2d2ee17b7dca356dccdca8263ac53fcb", "score": "0.7548947", "text": "public T caseCallFunction(CallFunction object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d2f9b3e47af159f679c2639ab9d6eea6", "score": "0.7276139", "text": "public T caseProcCall(ProcCall object)\...
60541a071e6c48d1c24d32be1fea3a74
An import transaction may contain one or more outputs repeated .PlainOutput outputs = 1;
[ { "docid": "01371001efacb89cb402143c972035c5", "score": "0.0", "text": "public Builder addOutputs(\n int index, org.hyperledger.fabric.protos.token.Transaction.PlainOutput value) {\n if (outputsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerExceptio...
[ { "docid": "0e0923786b2613fbd1d74dcd2c25bd8b", "score": "0.5838448", "text": "private ArrayList<Long> storeTransactionInputs(long transactionId, ArrayList<TransactionInput> inputs, int isCoinbase){\n \t\tint inputindex = 0;\n \t\tlong previousOutputId;\n \t\tString prevOutputHash;\n \t\tResultSet findOu...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "0e3527146f151dcf20a158934372f296", "score": "0.0", "text": "public Actividadasignada insertar(Actividadasignada actividadasignada) {\n\t\treturn actividadasignadaRepository.save(actividadasignada);\n\n\n\n\t}", "title": "" } ]
[ { "docid": "b7c706d331e2b507ec0ff8404ad87dc7", "score": "0.69742316", "text": "@Override\r\n\t\t\tpublic void crispel() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "76b3966c8e3f64884c4127d1a3df09a8", "score": "0.68059677", "text": "@Override\r\n\t\t\tpublic void maruti() {\n\t...
752b86226cd1c932cc72771a33008057
Tests the batchCreate(DataObject[], String, boolean, ResultData) when not using the own connection. All the records should be added into the database.
[ { "docid": "5c49a61d481ba110b5bb596c18a6a416", "score": "0.7171389", "text": "public void testBatchCreate_InAtomNotUseOwnConnectionAccuracy() throws Exception {\n TimeEntry[] myTimeEntrys = new TimeEntry[10];\n\n for (int i = 0; i < 10; i++) {\n myTimeEntrys[i] = new TimeEntry()...
[ { "docid": "b9ca594071c1c9613c98c63732996bb9", "score": "0.729001", "text": "public void testBatchCreate_InAtomUseOwnConnectionAccuracy() throws Exception {\n TimeEntry[] myTimeEntrys = new TimeEntry[10];\n\n for (int i = 0; i < 10; i++) {\n myTimeEntrys[i] = new TimeEntry();\n ...
cb23a0e69a89a022cfdf42be238185aa
Called when the activity is first created
[ { "docid": "efa6b01ad62e70093acee4491e76f5e4", "score": "0.0", "text": "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tLogUtils.info(CLASS_NAME, CLASS_NAME, \"Activity Created\");\n\t\t\n\t\t//show splash screen\n\t\tsetContentView(R.layou...
[ { "docid": "829f14c50876832c151f887509682464", "score": "0.77526313", "text": "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2b888ba6778573b9a721f33447b0c3ae", "score...
263dcb9838302d75cdd3db372cfbdb5b
Inflate the layout for this fragment
[ { "docid": "bd1bfc13e490d3df9f9f6327d7b596e4", "score": "0.0", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView= inflater.inflate(R.layout.fragment_dung, container, false);\n ...
[ { "docid": "20692959eae44893b50b4d537901ae50", "score": "0.67938715", "text": "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_base, container, false);\...
491c41c891c26bf63bf7575198e489d4
Gets the processCount value for this SMTPPlainReport.
[ { "docid": "86ae35768559f402232d96b2e0c40ce6", "score": "0.7198812", "text": "public int getProcessCount() {\n return processCount;\n }", "title": "" } ]
[ { "docid": "e74ae2a6ab5c347b1b4481be5427f328", "score": "0.65731674", "text": "@ManagedAttribute\n public long getNumberOfMessagesProcessed() {\n return numberProcessed.get();\n }", "title": "" }, { "docid": "3d0d70aca101175794b4c2a8fbaff8c7", "score": "0.64671487", "tex...
69002e183897f7ba7136393da6184199
Pulls the given branch.
[ { "docid": "851061cd24c0c2812b07d6fb63cfe6fd", "score": "0.7960896", "text": "private void pullBranch(String gitDir, String branch) {\n try {\n Repository fr = new FileRepositoryBuilder()\n .setGitDir(new File(gitDir + \"/.git\"))\n .readEnvironment()\n ...
[ { "docid": "31faec1fd2f2ebfaed22240f877416ac", "score": "0.6491192", "text": "Branch getBranch(String branch, boolean updateable) throws RepositoryException;", "title": "" }, { "docid": "a69b40d277b442a8dd0e4c11348c0e0e", "score": "0.62780404", "text": "public static void gitPull(Git...
17627d12a7ab31982a60a25c2a06d767
Gets the attribute value for CreatedBy, using the alias name CreatedBy.
[ { "docid": "8ee5a76068f42099fbe8e3b85a19a4ef", "score": "0.75492704", "text": "public Number getCreatedBy() {\n return (Number)getAttributeInternal(CREATEDBY);\n }", "title": "" } ]
[ { "docid": "54adb0eba35ef55bf88a7eccac5cbde1", "score": "0.77700865", "text": "public String getCreatedBy() {\r\n return (String) getAttributeInternal(CREATEDBY);\r\n }", "title": "" }, { "docid": "52f8c346f5e32467777ae9b6dff32409", "score": "0.7750887", "text": "public Str...
2be0006167bb132400c7d8a2e5785bae
Setter for the turn field.
[ { "docid": "92b4d1a9c321b8f4454a20c8c267a332", "score": "0.72788715", "text": "void setTurn(ITurn turn);", "title": "" } ]
[ { "docid": "cee94a1c86db0a5fdfa42e14d4ee06f2", "score": "0.7939988", "text": "public void setTurn(Turn turn) { this.turn = turn; }", "title": "" }, { "docid": "380424e991e23ee8ac4692472e96bdf9", "score": "0.77211386", "text": "public void setTurn(Turn turn){\r\n\t\tthis.turn = turn;\...
a594efe6a0ae74c773897991fa1478e4
Function to get all the links:
[ { "docid": "1a31f07021ab06080bb59f0dbc7b37dd", "score": "0.7092544", "text": "public List<String> getLinks() {\n return this.links;\n\n }", "title": "" } ]
[ { "docid": "d39cb2eea7c0af66c4de95a6ee4f78c9", "score": "0.7861875", "text": "public String getLinks() {\n Elements links = this.doc.select(\"a[href]\");\n int length = links.size();\n String urls = \"\";\n\n for (int i = 0; i < length+1; i++) {\n String linkHref =...
d1fd4dd68a879e764f19dbcc3ee017a3
// Functions for type membership. // Returns a set of fields named name defined in type container or a supertype. The list returned may be empty.
[ { "docid": "97d59d27cc25d1e18ad5cafd7a1e1e66", "score": "0.5913653", "text": "private Set<FieldInstance> findFields(Type container, TypeSystem_c.FieldMatcher matcher) {\n assert_(container);\n \n Set<FieldInstance> candidates = CollectionFactory.newHashSet();\n \n for (Type t : e...
[ { "docid": "8df95f77caf7901b676eefb583599595", "score": "0.632302", "text": "private Set<Field> selectAllDeclaredFields( Class<?> type){\n\t\tSet<Field> fields = new HashSet<Field>();\n\t\tlogger.debug(\"selectAllDeclaredFields:\"+type.getSimpleName());\n\t\trecDefineAllFields(fields, type);\n\t\tMap <...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "2c76077234168502bb95a89a87c0fb6d", "score": "0.0", "text": "public void onClick(ClickEvent event) {\n\t\t\t\teventBus.fireEvent(new FlipHorizontalEvent());\n\t\t\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cdf542363f5b089e84183e3d9020935f", "score": "0.6697644", "text": "@Override\n\t protected void ramana() {\n\t\t\n\t}", "ti...
bef42a0cc6a73a06948ecd37982fc2aa
dap status should be off
[ { "docid": "0196c40864a33d8956fcb1700a1aab62", "score": "0.60549676", "text": "private void checkOffStatus(String profileName){\n viewAction_consumer_ui.turnOffDaxFromConsumerUI();\n\n // check dap is off in consumer ui\n viewAssertions_consumer_ui.checkConsumerUIDisplay(SOUND_SETTI...
[ { "docid": "cf987cb061b69d5e598974b3c176504d", "score": "0.6405266", "text": "public void off() {\n\n System.out.println(\"TV is off\");\n }", "title": "" }, { "docid": "ec48ab956430217cd9ea3d3624e755bb", "score": "0.6330475", "text": "public void switchOff()\r\n\t{\n\t\tte...
1988d40442ce3f04617c8b841ef166bb
Gets the implements clause.
[ { "docid": "bfcda81e8614a147cdc55e1ff3c0f2b9", "score": "0.71090406", "text": "public DeclaredTypeListNode getImplementsClause()throws ClassCastException;", "title": "" } ]
[ { "docid": "8a6aeeb98561966ad6e1186fad06bf60", "score": "0.6700378", "text": "public Enumeration getImplements()\n {\n ensureLoaded();\n return m_tblInterface.keys();\n }", "title": "" }, { "docid": "09446cb8abbc615a646871086906cd08", "score": "0.64344096", ...
4e8dd64688e49496777b152c9bf42a19
/ BACKEND METHOD PARAMS
[ { "docid": "3c3b0e18c856b1fec08591397a85d728", "score": "0.0", "text": "private Object[] getReturnPatientsParams(String session) {\r\n \r\n \t\treturn new Object[] {\r\n \t\t\t\t1,\r\n \t\t\t\tgetAdminSession(),\r\n \t\t\t\tgetAllPatientIds(),\r\n \t\t\t\tnew String[] { \"rec_name\", \"age\", \"diseases...
[ { "docid": "8b1109ae93fa10b675810abe6ffa3e5c", "score": "0.6190537", "text": "@Override\n public void setParams()\n {\n\n }", "title": "" }, { "docid": "1ca77b09e8fbb0082f000ae98606af81", "score": "0.6159638", "text": "public abstract String getParams();", "title": "" ...
123923d713cad85db4c06f23b0afec53
Creates an ordered array of unique letters corresponding to the letters used as first characters in the items name
[ { "docid": "083f7d534936a062cc0923ebeee9889d", "score": "0.7647952", "text": "public static String[] getCustomAlphabetSet(Set<String> items) {\n Set<String> first_letters = new HashSet<>();\n String[] res;\n\n for (String item:items) {\n first_letters.add(item.substring(0...
[ { "docid": "724d802627d2635ec11e38191e3eed5b", "score": "0.65887076", "text": "public static List<String> createAlphabet() {\n List alphabet = new ArrayList();\n // Add all letters of alphabet\n for (char c = 'A'; c <= 'Z'; c++)\n alphabet.add(\"\" + c);\n // Add w...
a5d969949dc2248f2b56775cef885f56
RequisitionGroupMapper maps the RequisitionGroup entity to corresponding representation in database. Also provides methods like getting all requisition groups for a supervisory node, getting requisition group for a program and facility.
[ { "docid": "4e43d22e4f40b492ed3d315849242c8e", "score": "0.5700668", "text": "@Repository\npublic interface RequisitionGroupMapper {\n\n @Insert(\"INSERT INTO requisition_groups\" +\n \"(code, name, description, supervisoryNodeId, createdBy, modifiedBy, modifiedDate) \" +\n \"VALUES (#{code}, #{n...
[ { "docid": "01df060d519af516f2109cf7b31960e3", "score": "0.56211585", "text": "@MapsId(\"groupId\")\n @ManyToOne(fetch = FetchType.LAZY)\n @JoinColumn(name = \"groupId\", referencedColumnName = \"id\")\n public Group getGroup() {\n return _group;\n }", "title": "" }, { "do...
61ba1b9307585a1fe70e5343f784870f
Creates a new instance of PostulanteBean
[ { "docid": "a672a7c970bf62afa007b09be7ed7e9f", "score": "0.0", "text": "public void getPostulantes(){\n postulaciones = postulacionFacade.findAll();\n }", "title": "" } ]
[ { "docid": "190cd4e818322a6c47800466ceb6aa52", "score": "0.7112014", "text": "public PostBean()\n {\n }", "title": "" }, { "docid": "c0cf66c0d0a5423c526f3a962001441f", "score": "0.70147395", "text": "public PagoBean() {\r\n }", "title": "" }, { "docid": "1fe6fb6a...
87f73b6fd9b006cf9f2148272c6e999d
Convert the given object to string with each line indented by 4 spaces (except the first line).
[ { "docid": "8279fe35d1f3c688ad6983974b78755b", "score": "0.0", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
[ { "docid": "63c12a4413c6af0d7a213d6c691564e6", "score": "0.75527424", "text": "private String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n}", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead1...
139aeb7e74358dc4f09b509d92db1c4c
we need two arguments
[ { "docid": "1c96c7f6d81e960df3236c083d0d531a", "score": "0.0", "text": "public static void main(String[] args)\r\n {\n GenJSP app = new GenJSP(args);\r\n app.start();\r\n }", "title": "" } ]
[ { "docid": "ef2f5827eb1a968bb58c64de6c471171", "score": "0.6334536", "text": "@Override\n\tpublic void implementionTwo(String[] args) throws Exception {\n\n\t}", "title": "" }, { "docid": "8fd980ec82abcb69c8fe839c70b9ee94", "score": "0.6137306", "text": "private void test(int side1, ...
3a7296d000176a31688ffda9ddee2c29
Public Methods Converts the specified grade from a table to a grade as shown in the grade combo box.
[ { "docid": "68d8edf448772308f0aea0bb8e930724", "score": "0.65891576", "text": "public static String getGradeTblToBox(String tblGrade) {\r\n String boxGrade = null;\r\n switch (tblGrade) {\r\n case \"9\":\tboxGrade = \"Freshman - 9th\";\r\n\t\t\t\t\t\tbreak;\r\n case \...
[ { "docid": "ead8ca171256ccf880b0722b58d77ece", "score": "0.64675945", "text": "public static String getGradeBoxToTbl(String boxGrade) {\r\n String tblCSA = null;\r\n switch (boxGrade) {\r\n case \"Freshman - 9th\": tblCSA = \"9\";\r\n ...
c8a7b065f3bb60b7e46c9ebe24a19470
Allows to draw a color filled rectangle on the RecyclerView item swiped area
[ { "docid": "1e43e76ba3d377a0e4df2c00592b2890", "score": "0.677528", "text": "public static Paint drawRectOnSwipe(View _itemView,\n Canvas _canvas,\n final int _color,\n final float _dX) {\n ...
[ { "docid": "fde7c4c9cb802b8e0ef53556c0f13c7a", "score": "0.67585474", "text": "@Override\n public void onChildDraw(@NonNull Canvas c, @NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) {\n new...
8a0afba9209dd5e51ea2c66fbe568a57
/ / / / / / / / / / / /
[ { "docid": "bc3e93adccb541bdd5e203a2af8911c4", "score": "0.0", "text": "public static String randomAlphabetic(int count) {\n/* 125 */ return random(count, true, false);\n/* */ }", "title": "" } ]
[ { "docid": "40250d8ac5d37747fdda383a712a674e", "score": "0.54664886", "text": "int whisper_full_n_segments (Pointer ctx);", "title": "" }, { "docid": "a74c758496d482b079833c1a94bd2305", "score": "0.5319465", "text": "public int getMinVertSpace () {return 80;}", "title": "" }, ...
470060344556c20d390d66f919a5fb32
get data model of this page
[ { "docid": "3dc8d66d4de1076b74ceedebb406400b", "score": "0.0", "text": "UrlBean execute(HttpServletRequest request,HttpServletResponse response)\n\t\t\tthrows IOException;", "title": "" } ]
[ { "docid": "a1da7d1f08f1a789e3ac6695241e3f84", "score": "0.7325418", "text": "PageModel getModel();", "title": "" }, { "docid": "3ea87875d13ab210666c59c9e7fe81b0", "score": "0.71637166", "text": "public PageModel getPageModel() {\n\t\treturn pageModel;\n\t}", "title": "" }, {...
cfbe02649ca21263c3021fc64c347d50
Gets a instance of the class.
[ { "docid": "c8e9a7d20df70984f84071ee94f85edb", "score": "0.0", "text": "public static AlarmPersistenceFacade getInstance() {\n\n\t\tif (instance == null) {\n\t\t\tinstance = new AlarmPersistenceFacade();\n\t\t}\n\t\treturn instance;\n\t}", "title": "" } ]
[ { "docid": "607f18f518b6f88ecb57c86a65332cb3", "score": "0.7122604", "text": "<T> T getInstance(Class<T> classType);", "title": "" }, { "docid": "7ab8de83fb70c561c22b5cf5aa731702", "score": "0.7009464", "text": "Instance getInstance();", "title": "" }, { "docid": "fdffc36...
d2de3d11303b0a530f3cfd6655280ef2
Get the current version of BlocksHub API
[ { "docid": "9fd5d82f473802c3291c8a13bfeb704d", "score": "0.0", "text": "double getVersion();", "title": "" } ]
[ { "docid": "4f1b3bf4205c0c70d53d837f0aed982c", "score": "0.68991387", "text": "@GetMapping(path = RestEndpoints.URL_VERSION)\n public ResponseEntity<VersionRepresentationModel> currentVersion() {\n VersionRepresentationModel resource = new VersionRepresentationModel();\n resource.setVersion(Taska...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "2b1ef26e5ae4d2fac5e1e17c98296393", "score": "0.0", "text": "@Override\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tjsonFavs = loadJSONFromAsset();\n\t\t\t\tarray = new JSONArray(jsonFavs);\t\t// asset den çağırılan json objesi json arrayine dönüştürülüyo...
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.68399656", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "118f2b8a20f48999973063ac332d07d3", "score": "0.6563993", "text": "@Override\r\n\t\t\tpublic void atras() {\n\r\n\t\t\t}", ...
62c8adaed979977c08726b295fe340e2
if isALL, do not print drop message, and ignore foreign key constraints
[ { "docid": "f73e97471a14762aea0b9c90ce4eec37", "score": "0.6422579", "text": "private void dropTableInternal(Table table, boolean isALL)\n\t{\n\t\tString key = getTableKey(table.getName());\n\t\tif( ! isALL)\n\t\t{\n\t\t\tif(table.hasReferencing())\n\t\t\t{\n\t\t\t\tprintMessage(Constant.DropReferencedT...
[ { "docid": "7371bcb40c36958d9bc324ecf210e51c", "score": "0.682609", "text": "protected void dropConstraints() throws Exception {\n\n\t\t/*\n\t\t * Remove as chaves estrangeiras\n\t\t */\n\t\tboolean writeCommentForeignKey = true;\n\t\tfor (TableSchema tableSchema : tables) {\n\t\t\tif (tableSchema.getFo...
6defc4bfbef7ec7244f19bd5c7d6208c
We are going to create our own custom manifest so we can add multiple resource paths to it.
[ { "docid": "764a853620b51b14377e2500e0d607de", "score": "0.57785743", "text": "@Override\n protected AndroidManifest getAppManifest(Config config) {\n try {\n // Using the manifest file's relative path, we can figure out the application directory.\n final URL appRoot = ne...
[ { "docid": "49fd1bd38f984dffe465b21b46599719", "score": "0.6646316", "text": "protected Manifest createNewManifest()\n {\n Manifest manifest = new Manifest();\n manifest.getMainAttributes().put( Attributes.Name.MANIFEST_VERSION, \"1.0\" );\n manifest.getMainAttributes().put( Attr...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "50e7c3bbb9d1f70d45a63ba228c05201", "score": "0.0", "text": "@Override\n\tpublic void startactivity(Activity activity,String name) {\n\t\tactivity.startActivity(new Intent(activity,Web.class));\n\t\tactivity.finish();\n\t}", "title": "" } ]
[ { "docid": "d7194e467f51e022c107531d8614b6a3", "score": "0.6905833", "text": "@Override\r\n\tpublic void anular() {\n\t\t\r\n\t}", "title": "" }, { "docid": "941cb2826e3c700358fcaba402e6bb01", "score": "0.66775143", "text": "@Override\r\n\tpublic void hissetmek() {\n\r\n\t}", "ti...
7ed9565ad8ea4e0b103d3e737a276f8a
Test case number: 16 / 150 covered goals: Goal 1. org.jfree.chart.plot.CategoryPlot.(Lorg/jfree/data/category/CategoryDataset;Lorg/jfree/chart/axis/CategoryAxis;Lorg/jfree/chart/axis/ValueAxis;Lorg/jfree/chart/renderer/category/CategoryItemRenderer;)V: Line 512 Goal 2. org.jfree.chart.plot.CategoryPlot.(Lorg/jfree/data...
[ { "docid": "9434fad01d863aa991817608c2e71020", "score": "0.7311913", "text": "@Test\n public void test16() throws Throwable {\n DefaultCategoryDataset defaultCategoryDataset0 = new DefaultCategoryDataset();\n CategoryAxis categoryAxis0 = new CategoryAxis();\n NumberAxis3D numberAxis3D0...
[ { "docid": "5ebdd11e62eaf38253ea1862f00e4097", "score": "0.7638241", "text": "@Test\n public void test27() throws Throwable {\n Point2D.Double point2D_Double0 = new Point2D.Double(0.0, 0.0);\n String string0 = point2D_Double0.toString();\n CombinedDomainCategoryPlot combinedDomainCateg...
f37e08e124019032fffee63f45e2124a
Creates a Stats from the given values.
[ { "docid": "4411e09b3766af48ad01e3fc7a68edd8", "score": "0.46441296", "text": "public Stats(int health, int attack, int speed, int defense, int vision) {\n\t\tthis.health = health;\n\t\tthis.attack = attack;\n\t\tthis.speed = speed;\n\t\tthis.defense = defense;\n\t\tthis.vision = vision;\n\t}", "tit...
[ { "docid": "84536051dd680669853756cd840d8519", "score": "0.5659423", "text": "public Stats() {}", "title": "" }, { "docid": "e3278f022a978e2959a2014589a68b48", "score": "0.5601031", "text": "protected UIEfficiencyStatistic createStatistic( Object value ) {\n\t\treturn new UIEfficienc...
71bfa370eefd4c7aa3eb534832774e33
result3 team1 inputed into getScore not taking into account if score is valid
[ { "docid": "58fc20a55d6001441da8454f0d6020e9", "score": "0.8062813", "text": "@Test\n\tpublic void result3GetScoreTeam1() {\n\t\tassertEquals(6.1, result3.getScore(8.1, 3, true),0.01);\n\t}", "title": "" } ]
[ { "docid": "95d74754f60491a8d1fc8cc5fdf2c9e4", "score": "0.7445377", "text": "@Test\n\tpublic void result2GetScoreTeam2() {\n\t\tassertEquals(23 , result2.getScore(16, 7, false), 1);\n\t}", "title": "" }, { "docid": "5c318be17383030331a18091673e52bf", "score": "0.6920495", "text": "I...
d4275aa32619b5978fbbab04dbe21335
Creates a nonexpiring basic cache
[ { "docid": "4f171b36958a5985b8617e24f5c39362", "score": "0.601004", "text": "public <K, V> Cache<K, V> simpleCache(String cacheName) {\n synchronized (caches) {\n checkName(cacheName);\n\n GuavaBasicCache<K,V> cache = GuavaBasicCache.permanent(cacheName);\n caches...
[ { "docid": "4a9c521db448c824d4d2446e64634af8", "score": "0.7229349", "text": "private void creatingCache() {\n\n\n\n }", "title": "" }, { "docid": "09af19c41b720a76f63c9ea21e21e7c4", "score": "0.72178936", "text": "public abstract Cache<Object, Object> makeCache();", "title": ...
3f70a77cd149ae2de60201215e6f7cac
This will be AUTO IMPLEMENTED by Spring into a Bean called userRepository CRUD refers Create, Read, Update, Delete
[ { "docid": "39194921219594a94ffa729b139b5ff6", "score": "0.0", "text": "public interface PlayerRepository extends JpaRepository<Player, Long> {\n}", "title": "" } ]
[ { "docid": "31fb2e3e168ac138a2dd5bf328dd2098", "score": "0.744403", "text": "public interface UsersRepository {\n\n List<User> getAll();\n\n User getById(long id);\n\n void add(User user);\n\n void modify(User user);\n\n void delete(long id);\n\n}", "title": "" }, { "docid": "...
b6b6122093c496fef9fc3d2ec192c1f3
Log.e("Keith", "onCompleted, entity: " + entity.toString());
[ { "docid": "697e87684917c3c3e60d6849b2dec1c2", "score": "0.0", "text": "public void onCompleted(BMRData entity, Exception exception,\n\t\t\t\t\t\tServiceFilterResponse response) {\n\n\t\t\t\t\tif (exception == null) {\n\t\t\t\t\t\tBMRUtil.createAndShowDialog(\"Insert successfully.\",\n\t\t\t\t\t\t\t\t\"...
[ { "docid": "ea42e07360651c9cda7744a930c60615", "score": "0.56491464", "text": "@Override\n public void onComplete() {\n Log.d(TAG, \"onComplete: completed..\");\n }", "title": "" }, { "docid": "70a1f8349f1c8bca0d03ff0da1f4e39e", "score": "0.55608946", "text": "@Override\...
23f68ea5ebe985f4582b0da1dbe47761
Add tests for the updateBalance method to the overall test suite.
[ { "docid": "237951ae9d1f3b32788c342855dbecd6", "score": "0.77645445", "text": "private void addTestSuiteFor$TestUpdateBalance\r\n (junit.framework.TestSuite overallTestSuite$)\r\n {\r\n junit.framework.TestSuite methodTests$\r\n = this.emptyTestSuiteFor(\"updateBalance\");\r\...
[ { "docid": "c2f2833ade60a8566a4394801ab305f5", "score": "0.6541014", "text": "@Test\n public void testOnGame_UpgradeOneBuyAction() {\n //Arrange\n int price = 10;\n int oldprice = 10;\n int Bankvalue = 100;\n int ActiveIncome = 0;\n \n //act\n i...
33e1ffecb517bb0957828cf731b1459c
BA.debugLineNum = 343;BA.debugLine="Public Sub ClearCart"; BA.debugLineNum = 344;BA.debugLine="ScannedItems.Clear";
[ { "docid": "dd56801878e581df32d70252e9874cc3", "score": "0.83540046", "text": "public String _clearcart() throws Exception{\n_scanneditems.Clear();\n //BA.debugLineNum = 345;BA.debugLine=\"CallSub(Main,\\\"ClearItemInfo\\\")\";\n__c.CallSubNew(ba,(Object)(_main.getObject()),\"ClearItemInfo\");\n //BA.d...
[ { "docid": "5bc9d2fea615ce1836b38f81abe58a94", "score": "0.72678685", "text": "public String _removeitemfrombasket(b4a.diplomna.types._good _good) throws Exception{\n_itemssuppliers.Remove((Object)(_good.SupplierID));\n //BA.debugLineNum = 146;BA.debugLine=\"ScannedItems.Remove(Good.ID)\";\n_scannedite...
99245bc9cda61ce9e9ec00570d823160
Creates a new pathSelector at the current getGamePanel().boardCursor position. Does nothing if the current tile is unoccupied or the unit has already moved.
[ { "docid": "56dcf1eef60ade57151a1183f48b7f50", "score": "0.72087276", "text": "private void startPathSelection() {\n Tile t = getGamePanel().boardCursor.getElm();\n if (!t.isOccupied() || !t.getOccupyingUnit().canMove()) return;\n\n locationSelector = new PathSelector(this, (MovingUnit) t.getOc...
[ { "docid": "117293e95714bd66c0973dd31194a50e", "score": "0.58854175", "text": "private void drawSelector(){\n if(selectorVisible) {\n int[] pos = RenderUtils.getPositionFromMouse();\n selectedTiles.add(pos);\n for(int[] t : selectedTiles) {\n final ...
16d9c45488a997f499757c39060f743c
Get a story by id
[ { "docid": "60a5b246f15e2ccdea12eb05b399f9de", "score": "0.75882584", "text": "@RequestMapping(value = \"{id}\", method = RequestMethod.GET) @ResponseBody\n public final Story get( @PathVariable( \"id\" ) final Long aId){\n return _projectsService.getStoryById(aId);\n }", "title": "" ...
[ { "docid": "f842a7ba7c5f0335d48b7dc8a3372899", "score": "0.7657847", "text": "@Override\n public Story findStoryById(int storyid){\n return storyDao.findStoryById(storyid);\n }", "title": "" }, { "docid": "bdc004cfdda0e7e43c4fed67dabb1ded", "score": "0.6759312", "text": ...
0cc6e7293b5885359d1bea66d6d9113d
Gets the name of the customer.
[ { "docid": "51fb80fdffa08b5af32087c1e8b2dcbe", "score": "0.0", "text": "public String getName()\n {\n return name;\n }", "title": "" } ]
[ { "docid": "b58409412c5780abc70ef3a8b2f0211d", "score": "0.9008514", "text": "public String getCustomerName(){\n\t\treturn customer.getName();\n\t}", "title": "" }, { "docid": "a4a2f6740f50d9bc51b8f52298eb73d4", "score": "0.8463702", "text": "public String getCustomerName() {return c...
062f989cfea917c9c46161d608888950
This method was generated by MyBatis Generator. This method corresponds to the database table store
[ { "docid": "e1b1e96dbc0df50e01cc4c97951ef1a5", "score": "0.0", "text": "int deleteByPrimaryKey(Integer id);", "title": "" } ]
[ { "docid": "13226d2553ac57f716637d8e529e8e0d", "score": "0.63245285", "text": "public abstract String tableName();", "title": "" }, { "docid": "6dcf527b2bd7fb1521d96da9f78104cf", "score": "0.6301815", "text": "public abstract String getTableName();", "title": "" }, { "doc...
bae88e51aba598ca579921f488461f43
Flushes a single entity's state to the database, by scheduling an update action, if necessary
[ { "docid": "930af3893ae9cfd1934ff87040d06bdd", "score": "0.0", "text": "public void onFlushEntity(FlushEntityEvent event) throws HibernateException {\n\t\tfinal Object entity = event.getEntity();\n\t\tfinal EntityEntry entry = event.getEntityEntry();\n\t\tfinal EventSource session = event.getSession();\...
[ { "docid": "338168715f07b6cb1204d122e4a2324f", "score": "0.67533666", "text": "void flush(Entity entity);", "title": "" }, { "docid": "0454ad2963e2fc0dd30def5d613133d1", "score": "0.6717066", "text": "public void flushUpdates() {\n\t}", "title": "" }, { "docid": "5cb1b5f3...
635e2d6c6b3ed7b4da383657f00f4d98
number of salesman which is basically like the length/size of the team array This is the main method. This method just calls different methods from the instances created in an order and the actual calculations and results are given from the other methods.
[ { "docid": "ffb1c291d42ea804ee52f221b8ac1a28", "score": "0.5165559", "text": "public static void main(String[] args) {\r\n\t\t// instance of the class SalesReporter\r\n\t\tSalesReporter myReporter = new SalesReporter(); // instance created using 'new' operator\r\n\r\n\t\t//various methods from instance ...
[ { "docid": "79892f8d8ba34d5ccae4f6d74ee295bc", "score": "0.67056847", "text": "public void getData() {\r\n\t\t// defines the datatype of team array to be of Salesman class\r\n\t\tteam = new Salesman[numOfSalesman]; // sets the length of team array to numOfSalesman\r\n\r\n\t\t// for loop to get to every ...
1006d5af7baf745290de3c763b222126
A mix of pre and postrename super classes. The postrename supers should not get renamed.
[ { "docid": "0ce654c76c6782087e0475d4bef1ef02", "score": "0.6712331", "text": "@Test\n public void testRenamingPreRenameClassInfoWithPreAndPostRenameNames() {\n String self = \"self\";\n String postRenameSuper1 = CommonType.SHADOW_ENUM.dotName;\n String postRenameSuper2 = PackageC...
[ { "docid": "876227d7bc5557e88db64194b517bcf3", "score": "0.7071041", "text": "@Test\n public void testPostRenameClassInfoWithNoSupers() {\n // Check a regular class.\n ClassInformation info = ClassInformation.preRenameInfoFor(false, \"class\", null, null);\n ClassInformation rena...
893cd12e0ae908f04f892e59f06d7808
Returns the sentence start word.
[ { "docid": "98a55f87acd6e7c19891840bf3227549", "score": "0.85756904", "text": "public Word getSentenceStartWord() {\n return getWord(SENTENCE_START_SPELLING);\n }", "title": "" } ]
[ { "docid": "7ce58f74fb92967c90190a458e3b88d8", "score": "0.81726277", "text": "private String getStart_Word() throws FehlerhafterSatzException {\n\t\tJsonObject sentence = json_sentence.get(satzNummer).getAsJsonObject();\n\t\tif (sentence.has(\"start_word\")) {\n\t\t\treturn sentence.get(\"start_word\")...
ef5a6d66f05637a0e1f836687d384487
Internal query to resolve the "userBudgets" tomany relationship of user.
[ { "docid": "fa7258de21c29558a5609fd4529830b0", "score": "0.68314105", "text": "public List<budgets> _queryUser_UserBudgets(long idUser) {\n synchronized (this) {\n if (user_UserBudgetsQuery == null) {\n QueryBuilder<budgets> queryBuilder = queryBuilder();\n ...
[ { "docid": "c2419f3c919c9a2e52d5699460a080a3", "score": "0.50788885", "text": "@Override\n\tpublic List<Account> getAllAcountsForUser(User user) {\n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from A...
35588e24b1aa3cc28d4e136ab6116f7a
Add a Customer to the customer list.
[ { "docid": "1ab2a0c03de5c839f81f7355f2f9c159", "score": "0.6879496", "text": "Boolean addCustomer(ICustomer customer);", "title": "" } ]
[ { "docid": "dafea0734c90df43e376d0e8481c99be", "score": "0.83556014", "text": "public static void addCustomer(Customer customer)\n {\n customers.add(customer);\n }", "title": "" }, { "docid": "19162f1ee35a6af8a362fdf9132fefdc", "score": "0.7784763", "text": "public void ...
b5676a38bfec4b458fb6efb1cb461f03
A course components exists most of the times of multiple lectures. This number gives the index number of the lecture in all the given lectures.
[ { "docid": "333c1d287a598acf8422d7b97e72e227", "score": "0.64966196", "text": "public int getIndexInCourseComponent() {\n\t\treturn indexInCourseComponent;\n\t}", "title": "" } ]
[ { "docid": "18fe1efa5cbb7c0c279cfc0f42cce11c", "score": "0.59472907", "text": "public int getNumberOfCourses() {\n\t\treturn courses.size();\n\t}", "title": "" }, { "docid": "9aba7f971d4d6d75ac0803528e5cd785", "score": "0.57473135", "text": "public int component_count() {\n re...
5e185150f8b61ce5105970ef4a853eb6
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.
[ { "docid": "cc7ff149e829ffca72855e85cd1514b3", "score": "0.0", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblId = new javax.swing.JLabel();\n txtId = n...
[ { "docid": "0683d7c04886f33eb3de4cd0ed5cbadc", "score": "0.7454324", "text": "public Herrendjimi1() {\n initComponents();\n }", "title": "" }, { "docid": "a265c28895719fa5abe69bc5acb37bbf", "score": "0.73023176", "text": "public FormLat3() {\n initComponents();\n ...
a573b1697d91b802fe2e8709b295e409
private recursive method that does the work refer to pg.1057, x = change(x)
[ { "docid": "5cdcfae853ac19ac8520c3bb3751bd04", "score": "0.0", "text": "private IntTreeNode add(IntTreeNode root, int value)\n {\n if(root == null)\n {\n root = new IntTreeNode(value);\n }\n \n else if(value <= root.data)\n {\n root.left = add(root.left, v...
[ { "docid": "f2523f527e9ddabc3ff52ea6d5f29a8e", "score": "0.62898004", "text": "@Test\n public void testChange() throws Exception {\n int[] expResult = \n {10, -8, 3, -2, 9, -8, -3, -5, -1, -3, 2, 2, 8, -9, 7, 0, -9, 9, 4, 6};\n int[] result = instance.change(input);\n ...
c0c36ef85926255e75604c54d0ddc1e7
overriding hasNext to check if reached end of deck
[ { "docid": "4c8bc64a3f1e58b7582c86cbc4f294ea", "score": "0.76370907", "text": "@Override\n public boolean hasNext()\n {\n return pos < hand.size();\n }", "title": "" } ]
[ { "docid": "22887f38f4d709d939f5cacdadfa235a", "score": "0.75306755", "text": "public abstract boolean hasNext();", "title": "" }, { "docid": "4a4199578a1bcc90b10acb90b83e4e40", "score": "0.7320102", "text": "public boolean hasNext();", "title": "" }, { "docid": "4a419957...
f5774eed4dc2d249995de0e7b6877ca3
A PlayerBanSource is the source of a ban that has been issued by a Player
[ { "docid": "1da47c020eaeb8013fe87a6b5cee78b4", "score": "0.72865516", "text": "public interface PlayerBanSource extends BanSource {\n\n\tUUID getUUID();\n\n\t/**\n\t * Does no guarantee that the player is online\n\t */\n\tPlayer getPlayer();\n\n}", "title": "" } ]
[ { "docid": "daf64321f91fd9182905396f23b6f337", "score": "0.5885944", "text": "@Override\n\tpublic CommandResult execute(CommandSource source, CommandContext args)throws CommandException {\n\n\t\t\n\t\t\n\t\tif(source instanceof Player) {\n\t\t\tPlayer player = (Player) source;\n\t\t\tString playerName;\...
9e34f523e87f3a717aedebd765aa5055
Declarar variables numerico y texto
[ { "docid": "d14db76085c91d95cda948897f1a02b7", "score": "0.0", "text": "public static void main(String[]args){\n int edad; // Declarando\r\n edad=25; // asignando e inicializando\r\n char genero ='F';\r\n String nombre = \"Mireya\";\r\n boolean estadocivil = false;\r\...
[ { "docid": "40152ab5a6dac79b7d2c1185206cc2c5", "score": "0.65372276", "text": "public void creaArmas(){\n tipo = \"Baston de Aire\";\n precio = 120;\n atk = 33;\n descripcion = \"Un baston de aire, es magnifico. Daño 33, Precio 120.\";\n}", "title": "" }, { "docid": "802d858c8010...
eda4e4e054efd91eaefbf4bfeab03a8c
Returns curve associated with this point. No copy of curve is made before return, so change of returned object will also change curve for this point.
[ { "docid": "d8f9ce20f381d8d919983b2c99ac5a7e", "score": "0.7185384", "text": "public ECCurve getCurve() {\n \treturn theCurve;\n }", "title": "" } ]
[ { "docid": "b3c058f4575e2fc36da4844b9b3ffb80", "score": "0.7183551", "text": "public Curve getUnderlyingCurve() {\n return underlyingCurve;\n }", "title": "" }, { "docid": "2259402cd9b4ad39fb3ecdb7dc18bbca", "score": "0.69731885", "text": "public CompositeCurve getCompositeCurve(...
864126338e4a8fe7ab025a95663e342e
end check left method ______________________________________________________________________________________________
[ { "docid": "013f596a9715305e6a9f575a1fd61077", "score": "0.0", "text": "public static double nextPoissonInterval(double lambda){\r\nreturn Math.log(rand.nextDouble()/(-lambda));\r\n}", "title": "" } ]
[ { "docid": "e6ecf2aef08a4557dcb0a9134380fdf7", "score": "0.7266574", "text": "private void branchLeft()\n\t\t{\n\t\t\tif(current_branch > 0)\n\t\t\t{\n\t\t\t\tcurrent_branch--;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5ad65f61f33c8e4b706de14f7e9dcba0", "score": "0.721778", "text"...
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "49bbd478c0b26fdf298c7bf1a20aaedf", "score": "0.0", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tswitch(v.getId()) {\n\t\t\t\tcase R.id.red : //red버튼을 눌러서 들어왔느냐?\n\t\t\t\t\tr.setBackgroundColor(Color.RED); //레드버튼을 누르면 te의 백그라운드 컬러를 레드로 바꿔라\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\...
[ { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33d41636b65afa8267c9085dae3d1a2d", "score": "0.6679176", "text": "private void apparence() {\r\n\r\n\t}", "title": "" }, ...
defbde0c1c7016f6a64bb0af244171c3
Creates a new GameListRequest that holds a response listener that listens for a response from the game table database
[ { "docid": "465f58a458a6c8d320ced917a767dc1f", "score": "0.744302", "text": "public GameListRequest(Response.Listener<String> listener) {\r\n super(Request.Method.POST, GAME_LIST_REQUEST_URL, listener, null);\r\n }", "title": "" } ]
[ { "docid": "cdb4a701a2e1dcc2c91876005eaf58ad", "score": "0.69234645", "text": "@SuppressWarnings(\"unused\")\n\tprivate void createGameRequest() {\n\t\tgameClientStub.sendNewGameRequest();\n\t}", "title": "" }, { "docid": "4a95dd83d6026906ccb6764fc0f4e506", "score": "0.6210674", "tex...
9464fad79aef09ae07aac681b2a6fd65
Gets the telefoni value for this Anagrafica.
[ { "docid": "c5459b2f85de2b6c3403262ec281be8d", "score": "0.731603", "text": "public it.equitalia.gestorefascicolows.dati.Telefono[] getTelefoni() {\r\n return telefoni;\r\n }", "title": "" } ]
[ { "docid": "0820e5d1ed05aa66404bedc0a12aac4c", "score": "0.7445506", "text": "public java.lang.String getTelefone() {\r\n return telefone;\r\n }", "title": "" }, { "docid": "a711584a11a1c0e8c4943c8278748d70", "score": "0.7327006", "text": "public String getTelefone() {\n\n\...
18d4ef427aa0dc08cc5a1776e9483e08
Process one operator: Take an operator from operatorStack and apply it on the operands in the operandStack
[ { "docid": "a369261bb3130ec182b66886009099be", "score": "0.7823257", "text": "public static void processOperator(Stack<Integer> operandStack, Stack<Character> operatorStack){\n char operator = operatorStack.pop();\n int op1 = operandStack.pop();\n int op2 = operandStack.pop();\n\n ...
[ { "docid": "8b68d52533275aab54b74ad41f2f717c", "score": "0.77358043", "text": "public static void processAnOperator(\r\n\t\t\tStack<Integer> operandStack, Stack<Character> operatorStack) {\r\n\t\tchar op = operatorStack.pop();\r\n\t\tint op1 = operandStack.pop();\r\n\t\tint op2 = operandStack.pop();\r\n...
1be1f0c3228ed8b60c218a51d1e95d9b
METHODS FOR EXPANDING THIS STATE Returns a Value object that represents the value of this state based on which player's turn it is or if a random action will occure. It will expand itself to a depth of 'maxDepth' to calculate the value of this state. It acts as a expectaminimax function.
[ { "docid": "a89f5dcb064d6019e70f244fa8c56216", "score": "0.79481035", "text": "final Value getValue(int maxDepth){\n\t\t\n\t\t//if this state is at the max depth return the value of this state\n\t\tif(maxDepth == depth)\n\t\t\treturn evaluateState();\n\t\t\n\t\t//if not - must continue expanding tree\n\...
[ { "docid": "3c984dcbe4cf9da5dadf74ae2749900e", "score": "0.7206506", "text": "@Override\r\n\tpublic double max_value(GameState s, int depthLimit) \r\n\t{\r\n\t\tdouble stateEvaluationValue = stateEvaluator(s);\r\n\r\n\t\tif (depthLimit == 0)\r\n\t\t{\r\n\t\t\treturn stateEvaluationValue;\r\n\t\t}\r\n\t\...