query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Reset the event sequence to its starting position | public void reset(){
eventNum = 0;
} | [
"public void reset()\n\t{\n\t\tstopped = false;\n\t\trunning = false;\n\t\tallDone = new CountDownLatch( 1 );\n\t\tsequencer = null;\n\t\tatEndEvent.get()\n\t\t\t.reset();\n\t}",
"@Override\n\tpublic void resetEvent() {\n\t\t\n\t}",
"public void reset() {\n wrong = false;\n pressed = false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the sake of coverage. | @Test
public void constructor() {
new Reflective();
} | [
"public CoverageFactoryImpl() {\n\t\tsuper();\n\t}",
"@Test\n public void constructorTest()\n {\n // We aren't actually testing anything here - just addressing a bug in the\n // code coverage computation\n new Bank();\n // Web-Cat wants an Assert here: use one that will always p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bytes content = 3; | boolean hasContent(); | [
"public substitute_bytes() \r\n {\r\n }",
"public int contentLength(){\n\t\treturn 1;\n\t}",
"byte[] getRawContent();",
"void content(byte[] content, int off, int len) {\n\t\tbuffer.put(content, off, len);\n\t}",
"public void setContents(int startByte, byte[] data);",
"byte[] getData()\r\n/* 27: *... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Blindly delete all shoppingcarts, wishlists and shoppers based on the list of shoppers. | private void deleteCascadeOnShopperList(final List<ShopperMemento> shopperList) {
final List<Long> shopperUids = makeShopperUidList(shopperList);
totalShoppingCartsDeleted += shoppingCartService.deleteAllShoppingCartsByShopperUids(shopperUids);
totalWishListsDeleted += wishlistService.deleteAllWishListsByShop... | [
"private static void deleteWarehousesClicked(TableView<Warehouse> warehouseTable) {\n\t\tObservableList<Warehouse> selectedWarehouses, warehousesItems;\n\t\twarehousesItems = warehouseTable.getItems();\n\t\tselectedWarehouses = warehouseTable.getSelectionModel().getSelectedItems();\n\t\twarehouseFactory.removeAllWa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method deletes vacation (Changes it's status to 0). Also this method removes all approval steps, related to this vacation. | @Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class)
public void deleteVacation(final Vacation vacation) throws CustomMessageException {
if (vacation == null) {
throw new IllegalArgumentException("Input vacation should not be null");
}
/*
* Check whether vacations state i... | [
"void deleteReservation(Invoice reservation) throws ServiceException;",
"private void performDelete(){\n //Cancel appointment\n Container.getAppointmentManager().cancelAppointment(app, this);\n\n SessionManager sessionMgr = new SessionManager(this);\n long accountId = 0;\n try {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method for escaping text when building SQL | public static String escape(final String text, final boolean forLike) {
if (text == null) {
return "";
}
String escapedText = text.replaceAll("'", "''");
if (forLike) {
escapedText = escapedText.replaceAll("_", "\\\\_")
.replaceAll("%", "\\\\%"... | [
"SqlTester withQuoting( Quoting quoting );",
"private String escapeSqlQuotes(String originalString) {\n return originalString.replace(\"\\\"\", \"\\\"\\\"\");\n }",
"public static String escapeSql(String str) {\n\t\tif (str == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn replace(str, \"'\", \"''\");\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is to retrieve the last save text file from user If the | public static void retrieveTexts (File file){
try{
Scanner scanner = new Scanner (file);
while (scanner.hasNextLine()){
text.add(scanner.nextLine());
}
scanner.close();
}catch (FileNotFoundException e){
}
} | [
"public String getLastSaveDiretory()\n {\n return lastSaveDirectory;\n }",
"protected File getSavingFile() {\n\t\tFile lastDir = getConfigDir(\"save\");\r\n\t\tJFileChooser fc;\r\n\t\tif (lastDir != null) {\r\n\t\t\tfc = new JFileChooser(lastDir);\r\n\t\t} else {\r\n\t\t\tfc = new JFileChooser();\r\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
java BasicCalculate value1 operator value1 value1 : Any Number operator : Arithmetic Operator value2 : Any Number For Example:java BasicCalculate 1 + 3 | public static void main(String args[])
{
if(args.length!=3)
{
System.out.println("Invalid Argument");
System.out.println("i.e. java BasicCalculate <value1> <operator> <value1>");
System.out.println("<value1> : Any Number");
System.out.println("<operator> : Arithmetic Operator ");
System.out.println(... | [
"private Token calculate(Token opr, Token opd1, Token opd2)\n {\n // Get the first char from opr, it is the operator: +, -, ...\n\n\n\n String s = opr.getBody().toString();\n\n //Get the two operands by converting from String to int\n\n int op2 = 0;\n int op1 = 0;\n\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int getTotalCount(Object...objects) {
ResultSet rs=null;
int count=0;
String sql="select count(id) from easybuy_product";
Object[] params=null;
if(objects.length!=0&&objects.length%2==0){
params=new Object[objects.length/2];
for(int i=0;i<params.length;i++){
params[i]=0;
}//初始化对... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
looks for all valid tries for A to win | public void checkValidRounds() {
for (int checkAllCases = (int)(Math.pow(2, tries - 1)); checkAllCases < Math.pow(2, tries); checkAllCases ++) {
binSum = 0;
currentA = permMoneyA;
currentB = permMoneyB;
totalMoney = permMoneyA + permMoneyB;
validity = true;
binaryStr = Integer.toBinaryString(checkAl... | [
"public int checkWinning() {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < getSize() - 2; i++)\n\t\t\tfor (int j = 0; j < getSize(); j++) {\n\t\t\t\tCoordinate coloum = new XYCoordinate(i, j);\n\t\t\t\tresult = checkSequence(coloum, 0, 1); // Dette der rykker fra 1 ned for hver check\n\t\t\t\tif (result != 0) {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check for win, draw or continue on each click. | private void handleMouseClick() {
if (token.equals(" ") && !whoseTurn.equals(" ")) {
setToken(whoseTurn);
if (hasPlayerWon(whoseTurn)) {
lblStatus.setText(whoseTurn + " won! The game is over.");
whoseTurn = " ";
btnAgain.setVisible(true);
}
else if (i... | [
"public void check(){\n currMoves++;\n if(networkGameStarted){\n if(ng.haveCircle()){\n if(checkWinO(win)){\n win();\n }\n else if(currMoves==maxMoves){\n draw();\n }\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Moves the top of the stack up, redoing the new top command. | void redo(); | [
"public void moveTop(Tower tower){\n int top = disks.pop();\n tower.add(top);\n }",
"@DISPID(1610809346) //= 0x60030002. The runtime will prefer the VTID if present\r\n @VTID(11)\r\n void top(\r\n int pyTop);",
"public void push(Node newTop) {\n newTop.setPrev(top);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
to render the mutation | public void render(Graphics g) {
if(active){
g.drawImage(sprite, game.getCamera().getRelX((int) (org.getX()+org.getCurrentSize()*xOff)), game.getCamera().getRelY((int) (org.getY()+org.getCurrentSize()*yOff)), (int) (org.getCurrentSize()*wOff), (int) (org.getCurrentSize()*hOff), null);
}
} | [
"@Override\n\tvoid applyMutation() {\n\t\t\n\t}",
"@Override\n public void render() {}",
"@Override\n public void render () {\n }",
"@Override\n public void render() {\n }",
"@Override\r\n\tprotected final void render() {\n\t}",
"@Override\n\tpublic ByteVector Render()\n\t{\n\t\treturn Rend... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new conversation info. | public ConversationInfo() {
} | [
"public Conversation() {\n this(\"CONVERSATION\", null);\n }",
"public ConversationImpl()\n {\n }",
"public NewTransactionInfo() {}",
"public Conversation(JSONObject gvJSON) throws JSONException\n {\n _id = gvJSON.getString(\"id\");\n _isRead = gvJSON.getBoolean(\"read\");\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the 'Connection Policy Type' literal with the specified literal value. | public static ConnectionPolicyType get(String literal)
{
for (int i = 0; i < VALUES_ARRAY.length; ++i)
{
ConnectionPolicyType result = VALUES_ARRAY[i];
if (result.toString().equals(literal))
{
return result;
}
}
return null;
} | [
"public java.lang.String getConnectionType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CONNECTIONTYPE$4, 0);\n if (targ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Here, the adjoint serves as the inverse: | public static PerspectiveTransform quadrilateralToSquare(float x0, float y0,
float x1, float y1,
float x2, float y2,
float x3, float y3) {
... | [
"public I inverse();",
"public void mirrorInverse() {\n\t\t// TODO implement me\n\t}",
"default double[][] adjointMatrix(double[][] matrix, int a, int b) {\n\t\tfinal int k = matrix.length;\n\t\tfinal double[][] adj = new double[k - 1][k - 1];\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tfor (int j = 0; j < b; j++... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Store the specified object in the attributes collection. | private <T> Optional<T> set(final T obj) {
ITestResult result = Reporter.getCurrentTestResult();
Optional<T> val = TestBase.optionalOf(obj);
result.setAttribute(key, val);
return val;
} | [
"@Override\n\tpublic void setAttributeObject(String attributeName, Object obj) {\n\t\t\n\t}",
"@Override\n\tpublic void setAttributeObject(String attributeName, Object obj,\n\t\t\tInteger index) {\n\t\t\n\t}",
"public abstract void put(EOAttribute att, Object value);",
"public void add(WithAttribute object) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
//////////////////////////////////////////////////// Methodo para listar Distritos... | public java.util.List<Distrito> listaDistrito(Canton Canton) {
//instanciar Objeto para retorno....
java.util.List<Distrito> respuestaDistrito = new ArrayList<>();
try {
//Conectar Servicio para mandar datos y recoger respuesta...
UbicacionGeograficaWS_Service ws = new UbicacionGeograficaWS_Service(ne... | [
"public List<Recurso> consultarRecursos();",
"@Override\n public List<Registrador> obtenerListaRegistradores() {\n List<Registrador> registradores = new ArrayList<>();\n try {\n queryResult = handler.selectFromWhere(\"*\", \"personas\", \"tipo_persona\", \"REGISTRADOR\");\n } ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Documentation__Group__1" $ANTLR start "rule__Documentation__Group__1__Impl" InternalStubbrLang.g:17130:1: rule__Documentation__Group__1__Impl : ( ( rule__Documentation__NameAssignment_1 )? ) ; | public final void rule__Documentation__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalStubbrLang.g:17134:1: ( ( ( rule__Documentation__NameAssignment_1 )? ) )
// InternalStubbrLang.g:17135:1: ( ( rule__Documenta... | [
"public final void rule__Name__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../at.ac.univie.swa.ase2015.a9902268.task3.ui/src-gen/at/ac/univie/swa/ase2015/a9902268/task3/ui/contentassist/antlr/internal/InternalWikiML.g:4069:1: ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to select store | public void GA_set_store(String ZipCode) throws Throwable {
actionLib.WebdriverWaitForPage();
actionLib.javascriptClick(CommonVariables.CommonDriver.get().findElement(Ecom.New_Find_My_Store));
extentLogs.pass("ClickonSetStore", "");
actionLib.type(CommonVariables.CommonDriver.get().findElement(Ecom.GA_Ent... | [
"StoreModel getStoreByIdStore(Long idStore);",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic StoreOwner selectStore(StoreOwner store) {\n\t\tString query = \"from StoreOwner where userid=:userid\";\n\t\t//String query = \"from StoreOwner s join fetch s.user u join fetch s.product p where u.userid=:use... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new Detection migration resource. | public DetectionMigrationResource(MetricConfigManager metricConfigDAO,
AnomalyFunctionManager anomalyFunctionDAO, DetectionConfigManager detectionConfigDAO,
AnomalyFunctionFactory anomalyFunctionFactory, AlertFilterFactory alertFilterFactory) {
this.anomalyFunctionDAO = anomalyFunctionDAO;
this.dete... | [
"public Vision() {\n\n }",
"public MigrationPath() {\n }",
"public Prevision() {\n\t\n\t}",
"public void create() {\n Flyway flyway = new Flyway();\n\n // Point it to the database\n flyway.setDataSource(configManager.getDatabaseUrl(), configManager.getDatabaseUser(), configManager.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
// TODO: 29.07.15 Remove duplicate code checking for deletehash Sets images for an album | public void setAlbumImages(@NonNull Album album, @NonNull Callback<ImgurResponse> cb) {
//anonymously created albums have a deletehash, which can be used
//to update and delete an album
String deleteHash = album.getDeletehash();
if (deleteHash.isEmpty()) {
getImgurAPI().setAl... | [
"boolean hasAlbumArtwork();",
"void removePhoto(String photoName, String albumName);",
"private int deleteMismatchedEntriesFromImageCounts()\n\t{\n//\t\tAlbumProfiling.getInstance ().enter (7);\n\n\t\tint rowsAffected = 0;\n\n\t\ttry (SqlSession session = _sqlSessionFactory.openSession()) {\n\t\t\tAlbumImageMap... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the standard options menu for Android | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.options_menu, menu);
return true;
} | [
"private void makeMenu() {\n if (mMenu != null) {\n mMenu.removeItem(R.id.action_newsfeed_overflow);\n // TODO: Options 번역 필요\n SubMenu subMenu = mMenu.addSubMenu(Menu.NONE, R.id.action_newsfeed_overflow, 0, \"Options\");\n subMenu.setIcon(R.drawable.ic_menu_moreov... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates a clusterer. Has to initialize all fields of the clusterer that are not being set via options. | public String[][] buildClusterer(String[][] data, LinkedList attributes, LinkedList[] translator) throws Exception {
String[][] strReturn;
m_Iterations = 0;
m_Min = new double [attributes.size()];
m_Max = new double [attributes.size()];
for (int i = 0; i < attributes.size(); i++)
m_Min[i] = ... | [
"public Clusterer() {\n\t}",
"public ClusterChainGenerator() {\n logger.info(\"Initialized new ClusterChainGenerator instance\");\n }",
"protected AbstractClusterer(AbstractClusterer caller, BaseClustererParameters planner) {\n\t\tthis.dist_metric\t= null == planner ? caller.dist_metric : planner.getM... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
multiply by 20, round to the nearest integer, then divide by 20 | private BigDecimal roundUpToNearestFiveCents(BigDecimal value) {
BigDecimal result = new BigDecimal(Math.ceil(value.doubleValue() * 20) / 20);
return result.setScale(2, RoundingMode.HALF_UP);
} | [
"double getBidceil();",
"@Test\n public void testDivisionRounding()\n {\n long expectedLong = 0;\n double expected = 0.0;\n for( long i = 0; i < 10000; i += 2 )\n {\n if ( (i % 10 == 0) && ( (i / 10) % 2 == 1) )\n {\n expectedLong += 1;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the size of the image layer, sued for when the pane resizes. | public void updateSize(){
imageLayer.maxWidth(imageView.getBoundsInParent().getWidth());
imageLayer.maxHeight(imageView.getBoundsInParent().getHeight());
} | [
"public void updateSize() {\n\t\tupdate();\n\t\tselY = fieldHeight / 2 + paddingTop;\n\t\tsc.setMaxMin(selMaxX, selMinX, selMaxY, selMinY);\n\t\tcpHueSlider.updateSize(fieldWidth, fieldHeight);\n\t}",
"public void repaint() {\r\n Dimension currentSize = getCurrentSize();\r\n if ( piccoloImage == nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Connection Tracking configuration for this BackendService. Connection tracking policy settings are only available for Network Load Balancing and Internal TCP/UDP Load Balancing. optional .google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy connection_tracking_policy = 143994969; | @java.lang.Override
public com.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy
getConnectionTrackingPolicy() {
return connectionTrackingPolicy_ == null
? com.google.cloud.compute.v1.BackendServiceConnectionTrackingPolicy.getDefaultInstance()
: connectionTrackingPolicy_;
} | [
"protected void setConnectionPolicy(ConnectionPolicy connectionPolicy) {\n this.connectionPolicy = connectionPolicy;\n }",
"public java.util.List<? extends com.yandex.yql.analytics.AnalyticsProtos.ConnectionEntityOrBuilder> \n getConnectionOrBuilderList() {\n return connection_;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that shows the lines per player. | public void render() {
ArrayList<String> lstScores = new ArrayList<String>();
lstScores.add("Frame" + SEPARATOR + "1" + DOUBLE_SEPARATOR + "2" + DOUBLE_SEPARATOR + "3" + DOUBLE_SEPARATOR
+ "4" + DOUBLE_SEPARATOR + "5" + DOUBLE_SEPARATOR + "6" + DOUBLE_SEPARATOR + "7" + DOUBLE_SEPARATOR
+ "8" + DOUBLE_SEPARA... | [
"public void printAllWinningLines()\n\t{\n\t\tSystem.out.println(winningLines.size());\n\t\tfor (int i=0;i<winningLines.size();i++)\n\t\t{\n\t\t\tSystem.out.println(\"Winning Line \"+i+\":\");\n\t\t\tfor (int j=0;j<winningLines.get(i).size();j++)\n\t\t\t{\n\t\t\t\twinningLines.get(i).get(j).printPosition();\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The user is disconnecting from the server. Just clear out the stream | protected void receiveDisconnect()
throws IOException
{
istream.readInt();
istream.readUTF();
istream.readFully(new byte[istream.available()]);
// Do it. Don't attempt to notify this user, obviously.
server.disconnect(this, false);
} | [
"public void disconnect() {\n deleteUserChatFile();//delete user file.\n if (connection != null) {\n if (connection.isConnected()) {\n connection.disconnect();//disconnect from facebook server\n }\n connection.removePacketListener(packetListenerImp);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bytes blockid = 7; String form preferred by TIGER data, concatenated state,county,tract,block | public com.google.protobuf.ByteString getBlockid() {
return blockid_;
} | [
"public String getBlockString() {\n if (data != 0) {\n return id + \":\" + data;\n } else {\n return id + \"\";\n }\n }",
"private long branch2BlockID(TestRecordHelper testRecordData, String blockname) {\n\n\t\tString fileid = \"\";\n\t\tString sep = \"\";\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all jobs Get all classification job definitions and their current state. | public ApiResponse<ClassificationJobResponse> getJobsWithHttpInfo(List<String> status) throws ApiException {
com.squareup.okhttp.Call call = getJobsValidateBeforeCall(status, null, null);
Type localVarReturnType = new TypeToken<ClassificationJobResponse>(){}.getType();
return apiClient.execute(c... | [
"List<PbcsJobDefinition> getJobs();",
"public ArrayList<Job> findAll() {\n return jobs;\n }",
"public List<Job> getJobs() {\n return jobList;\n }",
"public JobStatus[] getAllJobStatuses() throws IOException, InterruptedException {\n return client.getAllJobs();\n }",
"@Transactional\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the JSourceCode for the method body. | public JSourceCode getSourceCode() {
return this._source;
} | [
"private String getMethodSourceCode(int startPos, int endPos) {\n\t\tString javaCode = FileHelper.readFile(this.javaFile);\n\t\treturn javaCode.substring(startPos, endPos);\n\t}",
"String toJava_asSourceCode();",
"public List<Statement> body() {\n\treturn body ;\n }",
"public String getFunctionBody() {\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use GMsg_12002013.newBuilder() to construct. | private GMsg_12002013(Builder builder) {
super(builder);
} | [
"private GMsg_11012005(Builder builder) {\n super(builder);\n }",
"private GMsg_12012002(Builder builder) {\n super(builder);\n }",
"private OmnicommMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static OrderMsg.Builder newBuilder()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__LinkBody__Group__3" $ANTLR start "rule__LinkBody__Group__3__Impl" ../info.kwarc.mmt.lf.ui/srcgen/info/kwarc/mmt/ui/contentassist/antlr/internal/InternalLF.g:10606:1: rule__LinkBody__Group__3__Impl : ( ( rule__LinkBody__Group_3__0 )? ) ; | public final void rule__LinkBody__Group__3__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../info.kwarc.mmt.lf.ui/src-gen/info/kwarc/mmt/ui/contentassist/antlr/internal/InternalLF.g:10610:1: ( ( ( rule__LinkBody__Group_3__0 )? ) )
... | [
"public final void rule__RuleBody__Group_3__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLpp.g:2473:1: ( rule__RuleBody__Group_3__0__Impl rule__RuleBody__Group_3__1 )\r\n // InternalLpp.g:2474:2: rule__RuleB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a wrapper for an instance. | IdentityWrapper(final T instance) {
this.instance = instance;
} | [
"InstanceWrapper<T> createInstanceWrapper(WorkContext workContext) throws ObjectCreationException;",
"public Wrapper createWrapper() {\n\t\treturn null;\r\n\t}",
"T createNewInstance();",
"T instance();",
"public abstract Instance getInstance();",
"public WrapperInfo() {\n }",
"private T newInstance(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When the set of selected fields changes, we need to reflect the selection in the settings stored by this page... | @Override
public void changed(ChangeEvent event) {
storeSettings();
fireChangeEvent();
} | [
"private void handleSelect(boolean selected) {\n \touterLoop: for(TableItem tableItem : projectTable.getItems()) {\n \t\t//Update UI\n \t\ttableItem.setChecked(selected);\n \t\tfor(Extension e : model.getSelectableExtensions()) {\n \t\t\tif (e.getName().equals(tableItem.getText())) {\n \t\t\t\t//U... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the session's owner is online | public boolean isOnline()
{
Player player = Bukkit.getPlayer(this.name);
if(player != null)
{
return true;
}
return false;
} | [
"public boolean isOnline() {\n \treturn megaApi.isOnline();\n }",
"public boolean isSessionAlive() {\n\t\tif (session!=null && session.id!=-1 && session.timestamp!=null) {\n\t\t\treturn timeIsWithinSpan(session.timestamp.longValue(), SESSION_SPAN);\n\t\t}\n\t\treturn false;\n\t}",
"protected boolean isAcs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the response type. Should be the literal "code". | public AuthorizationCodeRequestBuilder withResponseType(final String responseType) {
this.responseType = responseType;
return this;
} | [
"public void set_response_code(int code);",
"public void setResponseCode(final String value) {\n this.responseCode = value;\n }",
"public InformationModel setResponseCode(int code);",
"public void setResponseType(String type) throws ParseException {\n log.trace(\"Entering & Leaving\");\n thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an instance of the dialog fragment and show it android.app.DialogFragment dialog1 = new AddedInfoList(); | public void showInfoDialog(android.app.DialogFragment dialog1) {
dialog1.show(getFragmentManager(), "D_DialogFragment");
} | [
"private void showDialogAdd() {\n DialogAdd dialog = new DialogAdd();\n //show the dialog by passing fragment manager\n dialog.show(getSupportFragmentManager(), \"Add\");\n\n }",
"private void showDialog() {\n NewOrderDialogFragment newFragment = NewOrderDialogFragment.newInstance(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetch records that have static_data_id IN (values) | public List<ClanHelpPojo> fetchByStaticDataId(Integer... values) {
return fetch(ClanHelp.CLAN_HELP.STATIC_DATA_ID, values);
} | [
"@Query(\"SELECT rv FROM RecordValidation rv INNER JOIN FETCH rv.validation INNER JOIN FETCH rv.recordValue record \"\n + \"WHERE record.id in (:recordIds)\")\n List<RecordValidation> findByRecordValueIdIn(@Param(\"recordIds\") List<String> recordIds);",
"QueryBuilderInterface<QueryT> in(int... values);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This lets the user view the classes they are taking | public void takingCourse(View view)
{
String type = "student";
CheckUser check = new CheckUser(this);
check.execute(type, username);
} | [
"private void showClasses() {\n\t\tList<UMLClass> listClasses = this.model.getClasses();\n\t\tString[] classes = new String[listClasses.size()];\n\t\tfor (int i=0; i<classes.length;i++) {\n\t\t\tclasses[i] = listClasses.get(i).getClassName();\n\t\t}\n\t\tthis.classesShown = listClasses;\n\t\tthis.view.setListClasse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string accept = 5; | public Builder setAccept(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
accept_ = value;
onChanged();
return this;
} | [
"public void setAccept(String accept);",
"public String getAccept();",
"java.lang.String getAccept();",
"public String getAccept() {\n return accept;\n }",
"public void setAccept(ArrayList<String> accept) {\n\t\tthis.accept = accept;\n\t}",
"boolean canAccept(int length);",
"public void accept... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo para colocar los datos del objeto que se consulta en la vista // | public void mostrarDatos(Object obj) throws Exception {
Sucursal sucursal = (Sucursal) obj;
try {
tbxCodigo_sucursal.setValue(sucursal.getCodigo_sucursal());
tbxNombre_sucursal.setValue(sucursal.getNombre_sucursal());
tbxDireccion_sucursal.setValue(sucursal.getDirecci... | [
"@Override\n\tpublic List<DiaDTO> consultar(DiaDTO objeto) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void consultarInformacion() {\n\t\t\n\t}",
"public Objeto obtenerObjeto() {\r\n try {\r\n Connection con = (Connection) DriverManager.getConnection(\"jdbc:mysql://localhost/tontunadungeon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Teste da consulta de pedido por ID | @Test
public void testBuscarPedidoPorId() {
final PedidoEntity pedido = this.pedidoDAO.consultarPedidoPorCodigo(9999L);
assertNotNull(pedido);
} | [
"@Test\n public void testGetTipoPorID() {\n System.out.println(\"getTipoPorID\");\n int id = tipoVeiculo.getId();\n TipoVeiculoDAO dao = new TipoVeiculoDAO();\n TipoVeiculo resultTipo = dao.getTipoPorId(id);\n assertEquals(tipoVeiculo.getId(), resultTipo.getId());\n asse... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
make sure all forms are filled | private boolean isFilled() {
if (firstName.isEmpty()) {
return false;
} else if (lastName.isEmpty()) {
return false;
} else if (dob == null) {
return false;
} else if (gender.equals("-")) {
return false;
} else if (username.isEmpty(... | [
"public void validate() {\n for (Field f : getAllFields()) {\r\n String value = f.getValue();\r\n if (value != null && value.length() > 0) {\r\n return;\r\n }\r\n }\r\n\r\n addFormError(\"No form data sent with this request.\");\r\n }",
"@Ove... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the PersistentCollection object for an array | @Override
public PersistentCollection getCollectionHolder(Object array) {
return arrayHolders.get(array);
} | [
"T createArray(Collection<T> elements);",
"ArrayPropertyType getArrayProperty();",
"public static <T> SwiftArray<T> SwiftArray(Collection<T> collection) {\n return new SwiftArray<T>(collection);\n }",
"public List<Entity> getCollection();",
"protected Collection<StackMobModel> getFieldAsCollecti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method used to add a tag to the AppacitiveObject. On the basis tags, the article could be searched. | public void addTag(String tag) {
if (this.mTags == null) {
this.mTags = new ArrayList<String>();
}
this.mTags.add(tag);
} | [
"void addTag(Tag tag) throws DuplicateTagException;",
"public boolean addBookTag( Book book, BookTag bookTag );",
"void addTagToDocument(long documentId, String tag);",
"public void addTag(String tag) {\n this.tagList.add(tag);\n }",
"public Tag addTag(String tagName) throws Exception;",
"public synch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a map where the key is the provider name and the value is the project reference analyzer for the provider | protected static Map<String, IProjectReferenceAnalyser> getProjectReferenceAnalyserMap() {
if (projectReferenceAnalyserMap == null) {
List<String> installedProviders = Arrays.asList(RepositoryProvider.getAllProviderTypeIds());
projectReferenceAnalyserMap = new HashMap<String, IProjectReferenceAnalyser>();
pr... | [
"public Map<String, Map<DocConverterProvider, Set<String>>> getDocConverterProviderMap();",
"public Map getProjectReferences()\n {\n return Collections.EMPTY_MAP;\n }",
"@NonNull\n public Map<PlatformDataKey<?>, PlatformDataProvider> getPlatformDataProviders() {\n return new Ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for the parameters used by tests comparing schemas. | public interface ConfigureCompareSchema {
// Used in:
//
// org.ensembl.healthcheck.testcase.generic.CompareSchema
// org.ensembl.healthcheck.testcase.funcgen.CompareFuncgenSchema
//
@Option(longName = CompareSchema.MASTER_SCHEMA, description = "Parameter used only in "
+ "org.ensembl.healthcheck.testcase.gen... | [
"void checkDifferenceBetweenSchemaDescription(TreeNode<Object> actualSchemaTree, TreeNode<Object> schemaToCompareTree);",
"VersionTypeValidation validateTestParameterSet(Set<SourceFile> sourceFiles);",
"public void testParameters() {\n Graph data = GraphMemFactory.createGraphMem();\n data.add(Trip... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To create Spring Data Flow App and bind the redis Service and RabbitMQ service and to import the all the apps od SDF. | @SuppressWarnings({ "unchecked", "rawtypes" })
public static String createSDF(ServiceEnvironment environment, Map<String, Object> parameters,
String downloadDirectory, String servicename) throws ServiceException {
String app_guid = null;
try {
String app_name;
String cf_url = environment.getCfHttpsUrl();
... | [
"public static void main(String[] args) throws Exception {\n ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[]{\"context-logicserver.xml\",\"context-jredis.xml\",\"beanRefRuleDataAccess.xml\"});\n Map<String,IRuleLoader> loaders = ctx.getBeansOfType(IRuleLoader.class... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void readTimeSiemens(String verName, File versionFolder) {
List<Object> results = new ArrayList<Object>();
System.out.print(verName + "\t");
for(int i = 0; i < timeFolders.length; i++){
int time = readTimeFile(new File(new File(versionFolder, timeFolders[i]), "time"));
results.... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method sets the value of the database column approval.checkTime | public void setChecktime(Date checktime) {
this.checktime = checktime;
} | [
"public void setCheckTime(java.util.Calendar checkTime)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(CHECKTIME$2, 0);\n if... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the sms_compra_bitacora table that match the criteria 'id_usuario_preto = :idUsuarioPreto'. | public SmsCompraBitacora[] findWhereIdUsuarioPretoEquals(int idUsuarioPreto) throws SmsCompraBitacoraDaoException; | [
"public List<FecetBitacora> findWhereRfcUsuarioEquals(String rfcUsuario) {\n\n return getJdbcTemplateBase().query(SQL_SELECT.append(\n getTableName()).append(\" WHERE RFC_USUARIO = ? ORDER BY RFC_USUARIO\").toString(),\n new FecetBitacoraMapper(), rfcUsuario);\n\n }",
"priv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
cargar el combo de actividad | public ResultSet loadComboUser() {
ResultSet result = model.loadComboUser();
return result;
} | [
"public void cargarCombo() {\n try {\n PresupuestoDao pdao = new PresupuestoDao();\n ResultSet consulta = pdao.listarProyectos();\n comboProyecto.addItem(\"Seleccione un proyecto\");\n comboproyectotabla.addItem(\"Seleccione un proyecto\");\n while (cons... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method creates a new Workout in the database. | public void createNewWorkout(Workout w)
{
session = DBConnection.getSession();
transaction = session.beginTransaction();
w.setUser(user);
session.save(w);
transaction.commit();
session.close();
} | [
"public Workout createWorkout(Workout workout) {\r\n ContentValues values = new ContentValues();\r\n values.put(DatabaseContract.WorkoutsTable.WORKOUT_NAME, workout.getName());\r\n long newRowId = database.insert(DatabaseContract.WorkoutsTable.TABLE_NAME, null, values);\r\n workout.setId... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retorna um iterador da lista de grupos do utilizador. | Iterator<Group> listContactGroups(); | [
"public abstract Object[] getGrupos();",
"@XmlElement(name = \"grupo\")\r\n\tpublic List<Grupos> getGrupos() {\r\n\t\treturn grupos;\r\n\t}",
"List<IGroup> getGroupList();",
"Collection<CG> getGroups();",
"public Collection getGroupings(int suid, MugenCaller caller) throws ApplicationException {\n va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
todo your code here | public int read(byte[] b) throws IOException {
int length = b.length;
int read_size = 0;
List<LocatedBlock> blocks;
for (int i = index; i < fileNode.blockNum(); i++) {
System.out.println("index: "+i);
if (read_size<b.length){
//选取对应的文件block
... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"protected void method_5557() {}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Abstract method, modifies the attribute value | public abstract boolean modify(boolean b); | [
"protected void modifyAttributeValue( Object value )\n {\n IAttribute attribute = getAttribute();\n if ( ( attribute != null ) && ( attribute.getValueSize() > 0 ) )\n {\n attribute.deleteValue( attribute.getValues()[0] );\n attribute.addValue( new Value( attribute, valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
execute(); go by deadline > event > floating go by date > time | @Test
public void testObtainAllCompleteTasks() throws IOException {
ArrayList<Task> complete = new ArrayList<Task>();
complete.add(task3); //event
complete.add(task6); //floating
assertEquals(complete, Search.obtainAllCompleteTasks(storage));
} | [
"void schedule(String id, String category, Deadline deadline, Object data);",
"private synchronized void runDay() {\n\t\tBeing event = (Being) eventQueue.top();\n\t\twhile (event.getNextUpdate() == today) {\n\t\t\tevent = (Being) eventQueue.remove();\n\t\t\tevent.execute(worldArray, today, rand, eventQueue);\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a new user record | void addUser(String uid, String proxyMail, String realMail); | [
"UserResponse addNewUser(UserRequest user);",
"org.copasi.copasiws.services.parameterestimationws.types.User addNewUser();",
"public void addUser() {\n\t\tString lastName = getResponseTo(\"New User Entry\\nLast name:\");\n\t\tString firstName = getResponseTo(\"First name:\");\n\t\tString inputAge = getResponseT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the functionality of updating a specific Rating contained within the database, like the above tests the associated get method is also tested. | @Test
public void updateRating() {
RatingDTO rating = new RatingDTO(new Long(1), new Long(1), "new", new Long(1234));
Response response = _client
.target(WEB_SERVICE_URI+"Rating/2").request()
.put(Entity.xml(rating));
if (response.getStatus() != 204) {
... | [
"public RatingInfoEntity updateRating(RatingDto ratingDto) {\n var info = RatingMapper.convertDTOToEntity(ratingDto);\n UUID uuid = UUID.randomUUID();\n info.setId(uuid.toString());\n\n return ratingDao.save(info);\n }",
"@Override\n\tpublic int updateReviewBook(ReviewBook reviewBoo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the value is greater than 0 (meaning a value has been set by the user), set the seek bar's progress label to the integer value, followed by s to indicate seconds. Otherwise, set the TextView to read "Not Set". | @Override
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
if (progress > 0) {
seekBarProgress.setText(progress + "s");
} else {
seekBarProgress.setText("Not Set");
}
} | [
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar arg0, int progress, boolean arg2) {\n\t\t\t\tseekdialog_seek_value_txv.setText(Integer.toString(progress + valMin));\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void OnChange(int progress) {\n\t\t\t\t\t\tif (progress / SEEKBARDURATION - 7 > 0) {\n\t\t\t\t\t\t\tb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True if has "from" element | public boolean isSetFrom()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(FROM$0) != 0;
}
} | [
"public boolean hasFrom() {\n return instance.hasFrom();\n }",
"public boolean getHasFrom() {\n return hasFrom_;\n }",
"public boolean isFromTo() {\n if (parsedDeadline.size() == 0) {\n return false;\n }\n return this.parsedDeadline.get(0).getDates().size(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo para generar el indice2 (keywords procesados) | private void hacerXmlIndice2(list KeywordList) throws Exception{
createXmlForKeywords cfkw=new createXmlForKeywords();
node tmp= KeywordList.getHead();
nodeKey tmp2= ((palabra)(KeywordList.getHead().getData())).getListaReferencia().getHead();
ArrayList links = new ArrayList();
Ar... | [
"String getKeyword3();",
"public void jKeyword2() {\n\t\t\n\t}",
"RuleKeywordToIndex createRuleKeywordToIndex();",
"java.lang.String getKeywordsArray(int i);",
"KEYWORD getKeywords();",
"public super_Keywords() {\n\t\tsuper.num1=300;\n\t}",
"void mapPage2(String text) {\n String[] temp = text.spl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private ArrayList incomeList = new ArrayList(); | public IncomePicker(IncomePickerFace incomePickerFace) {
this.incomePickerFace = incomePickerFace;
} | [
"public abstract ArrayList getSocietyList();",
"private static ArrayList getPeople(){\n return people;\n }",
"public ArrayList<Double> balanceList() {\r\n return balanceList;\r\n }",
"public void recieveArrayList(ArrayList<Birthday> birthdays) {\r\n birthdaysAll = birthdays;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected Runnable getOnVisibleAction() {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Process the reception of a split commercial order line | @Override
public void process(CommercialOrderLineSplit line) throws ProcessorException {
try {
repository.insert(new CommercialOrderLineSplitEntity(line));
LOGGER.info(">>> Split commercial order line uuid={} inserted in mongoDB", line.getUuid());
}
catch (Exception e... | [
"private void procOrden(MOrder orden){\n\t\t/*\n\t\t * Se crean las lineas a partir de las lineas de la orden\n\t\t */\n\t\tMOrderLine lineasOrden[] = orden.getLines();\n\t\tfor(MOrderLine lineaOrden : lineasOrden){\n\t\t\t/*\n\t\t\t * Crea el encabezado de la Recepcion a partir de la orden\n\t\t\t */\n\t\t\trecepc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.lvl6.proto.MinimumUserProtoWithMaxResources sender = 1; | public Builder setSender(
com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources.Builder builderForValue) {
if (senderBuilder_ == null) {
sender_ = builderForValue.build();
onChanged();
} else {
senderBuilder_.setMessage(builderForValue.build());
}
... | [
"Resource getSender();",
"public bridgempp.services.socket.protobuf.UserOrBuilder getSenderOrBuilder() {\n return getSender();\n }",
"com.ubbcluj.amcds.myDalgs.communication.Protocol.ProcessIdOrBuilder getSenderOrBuilder();",
"POGOProtos.Rpc.BuddyLevel getMinBuddyLevel();",
"comm.CommModel.MemberOrBuild... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
persistLogActivityReconCommentHistory persists a country | public LogActivityReconCommentHistory persistLogActivityReconCommentHistory(LogActivityReconCommentHistory logActivityReconCommentHistory); | [
"public void escribeLog(String linea, Context context)\n {\n try {\n SharedPreferences preferences = context.getSharedPreferences(\"Historial\", Context.MODE_PRIVATE);\n\n SharedPreferences.Editor editor = preferences.edit();\n\n String contenido = preferences.getString(\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Execute the command <a href=" Summary: Get one or multiple random elements from a sorted set Group: sortedset Requires Redis 6.2.0 | List<ScoredValue<V>> zrandmemberWithScores(K key, int count); | [
"public static void main(String[] args) {\n\t\tjedisClient = new Jedis(\"192.168.100.106\",6379);\n\t\tjedisClient.append(\"tokunaga\", \"1111\");\n\t\tJedisPool pool = new JedisPool(new JedisPoolConfig(),\"192.168.100.106\");\n\t\ttry(Jedis jedis = pool.getResource()){\n//\t\t\tjedis.set(\"foo\", \"bar\");\n//\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Funkcija kopira jedan niz u drugi | public static void copyArray2(int[] niz1, int[] niz2)
{
if (niz1.length < niz2.length)
{
niz2 = new int [niz1.length];
for (int i=0; i<niz1.length; i++)
{
niz2[i] = niz1[i];
}
}
else if (niz1.length > niz2.length)
{
niz2 = new int [niz1.length];
for (int i=0; i<niz1.length; i++)
{
... | [
"public void dodaj() {\r\n \r\n PracownikDAO pracownikDAO = new PracownikDAO();\r\n String imie = name.getText();\r\n String nazwisko = surname.getText();\r\n Pracownik pracownik = new Pracownik(imie, nazwisko);\r\n pracownikDAO.save(pracownik);\r\n load();\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ziskani ID vybraneho zdroje pro editaci | private void loadParam() {
sourceId = getIntent().getLongExtra("sourceId", NO_SOURCE_ID);
if (isEdit())
currentSource = db.getSource(sourceId);
} | [
"public void switchToEdit(long id)\r\n {\r\n Obat o = dataSource.getObat(id);\r\n Intent i = new Intent(this, EditObat.class);\r\n Bundle bun = new Bundle();\r\n bun.putLong(\"id\", o.getId_obat());\r\n bun.putString(\"nama\", o.getNama_obat());\r\n bun.putString(\"jenis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface. | public NetworkInterfaceInner withEnableIpForwarding(Boolean enableIpForwarding) {
if (this.innerProperties() == null) {
this.innerProperties = new NetworkInterfacePropertiesFormatInner();
}
this.innerProperties().withEnableIpForwarding(enableIpForwarding);
return this;
} | [
"public void tunnelEnableSip(boolean enable)\n/* 1171: */ {\n/* 1172: 851 */ tunnelEnableSip(this.nativePtr, enable);\n/* 1173: */ }",
"@java.lang.Override\n public com.google.protobuf.BoolValue getEnableIpv4() {\n return enableIpv4_ == null ? com.google.protobuf.BoolValue.getDefaultInstance()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set and define the access property | public final void defineAccess(int access) {
this.accessProperty.setValue(access);
} | [
"public void setAccess(String access) {\r\n m_access = access;\r\n }",
"public void setAccessType(String accessType);",
"public Access access() {\n return access;\n }",
"public void setAccessURL(String accessURL);",
"@Override\r\n\tpublic void access(boolean accessed) {\n\t\t\r\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleDBMapAttr" $ANTLR start "entryRuleDBMapAttrIdentity" InternalRdl.g:4667:1: entryRuleDBMapAttrIdentity returns [EObject current=null] : iv_ruleDBMapAttrIdentity= ruleDBMapAttrIdentity EOF ; | public final EObject entryRuleDBMapAttrIdentity() throws RecognitionException {
EObject current = null;
EObject iv_ruleDBMapAttrIdentity = null;
try {
// InternalRdl.g:4667:58: (iv_ruleDBMapAttrIdentity= ruleDBMapAttrIdentity EOF )
// InternalRdl.g:4668:2: iv_ruleDBMap... | [
"public final JPA2Parser.qualified_identification_variable_return qualified_identification_variable() throws RecognitionException {\n\t\tJPA2Parser.qualified_identification_variable_return retval = new JPA2Parser.qualified_identification_variable_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ ========================== Support methods ========================== Set the exception information into the response. | private void captureCheckedException(FFDCResponseBase response,
OCFCheckedExceptionBase error,
String exceptionClassName)
{
response.setRelatedHTTPCode(error.getRe... | [
"public Response(Throwable exception) {\n _exception = exception;\n }",
"@Override\n\tprotected ResponseEntity<Object> handleExceptionInternal(Exception ex,\n\t\t\tObject body, HttpHeaders headers, HttpStatus status,\n\t\t\tWebRequest request) {\n\t\treturn super.handleExceptionInternal(ex, body, header... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Affiche les squelettes selon la kinect en cours | public void drawSkeleton(int userId); | [
"public Mat processFrame(CvCameraViewFrame frame)\n {\n Mat imageMat = frame.rgba();\n int cols = imageMat.cols();\n int rows = imageMat.rows();\n //pemrosensan Region Of Interest yang ditunjukaan oleh garis indikator warna merah\n Mat subMat = imageMat.submat(rows/2, rows/2+30... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to set the OnCompleteListener | @Override
public void setmListener(RefreshableFragment.OnCompleteListener mListener) {
this.mListener = mListener;
} | [
"public void setOnCompleteListener(OnCompleteListener listener) {\n\t\tonCompleteListener = listener;\n\t}",
"public void setActionCompleteListener(OnActionCompleteListener listener) {\n mActionCompleteListener = listener;\n }",
"public void onCompleted() {\n\t\t\t\t\r\n\t\t\t}",
"private OnComplete... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ajout d'un callback de destruction. | public final void registerRequestDestructionCallback(String name, Runnable callback) {
if (name == null)
throw new IllegalStateException("Name must not be null");
if (callback == null)
throw new IllegalStateException("Callback must not be null");
synchronized (this.reques... | [
"@Override\n public void registerDestructionCallback(String name, Runnable callback) {\n }",
"public void destroy(SimpleCallback callback);",
"public interface destruct_callback extends Callback {\n\t\tvoid apply(AVPacket AVPacketPtr1);\n\t}",
"@Override public void destroy() {\n sendMessage(EVT_DEST... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Randomly fill a matrix with a specific size, using JMetalRandom | public static DenseMatrix randomFill(int rows, int cols, double minValue, double maxValue) {
DenseMatrix matrix = new DenseMatrix(rows, cols);
JMetalRandom rnd = JMetalRandom.getInstance();
for (int i = 0; i < rows; i++)
for (int j = 0; j < cols; j++)
matrix.set(i, j, rnd.nextDouble(minValue, maxValue... | [
"void randomize(Matrix m);",
"public static void _mFillMatrixWithRandom(double in[][])\n\t{\n\t\tfor(int i = 0; i < in.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < in[i].length; j++)\n\t\t\t{\n\t\t\t\tin[i][j] = Math.random();\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void populateGrid()\n {\n Rand... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check if the actual value has NOT child elements. | public ElementAssertion hasNotChildElements() {
checkActualIsNotNull();
if (getChildElementsCount() > 0) {
throw getAssertionErrorBuilder().addMessage(Messages.Fail.Actual.HAS_NOT_CHILD_ELEMENTS).addActual().build();
}
return this;
} | [
"@Override\n public boolean isEmpty() {\n return (this.children.isEmpty() && this.value == null);\n }",
"@Override\n public final boolean hasValue() {\n for (int i = 0; i < getChildCount(); i++) {\n if (getChild(i).hasValue())\n return true;\n }\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Basic decoding method: decode a 16bit short value that is represented at receivedBuffer[offset], receivedBuffer[offset + 1]. This method does not need to manage the offset updates, since it calls decodeByte() to get those two bytes' values. | public short decodeShort()
{
// e.g. the short we want is 0x0123
// In receviedBuffer, this should be [..., 0x01, 0x23, ...]
// first get the higher byte
// so its value would be 0x01
byte higherByte = this.decodeByte();
// get the lower byte, which should be 0x23
... | [
"int decodeShort(ByteBuffer input, int inputSize, short[] output, int frameSize) throws NativeAudioException;",
"private int readShort() {\n // read 16-bit value, LSB first\n int byte1 = mData[mPosition++] & 0xff;\n int byte2 = mData[mPosition++] & 0xff;\n return byte1 | (byte2 << 8);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get position of item, including sections. | public int positionToSectionedPosition( int position ) {
int offset = 0;
for( int i = 0; i < sections.size(); i++ ) {
if( sections.valueAt( i ).firstPosition > position ) {
break;
}
++offset;
}
return position + offset;
} | [
"private int getPosition() {\n\t\treturn itemPosition;\n\t}",
"public long getPosition()\r\n {\r\n return this.itemPosition;\r\n }",
"public final int getPosition() {\n\t\treturn m_pos;\n\t}",
"public final int getPosition() {\r\n return position;\r\n }",
"@Override\n\tpublic int getPositio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int rssi = intent.getIntExtra(BluetoothLeService.EXTRA_DATA, 0); | private void progressTopTaskRssi(Intent intent) {
int rssi = intent.getIntExtra(BluetoothLeService.EXTRA_DATA, 0);
String address = intent.getStringExtra(BluetoothDevice.EXTRA_DEVICE);
ArrayList<DeviceSetInfo> deviceList = mDatabaseManager.selectDeviceInfo(address);
ArrayList<DisturbInfo> disturbList = mDataba... | [
"@Override\n public void onReceive(Context context, Intent intent) {\n\n Log.d(\"Rssi\", \"RSSI changed\");\n float level = intent.getIntExtra(WifiManager.EXTRA_NEW_RSSI, -1);\n MessageQueue.getQueueInstance().push(WIFI_SIGNAL_STRENGTH,\"\"+level);\n }",
"@Override /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Like evalFun_obj_rep_of_inbox_of_user, but returns an object attribute. Parameters: a user. | private ActOpnd[] evalFun_oattr_rep_of_inbox_of_user(EventContext eventCtx,
String sFunType, Vector<ActOpnd> funArgs) {
ActOpnd[] res = new ActOpnd[1];
if (funArgs.isEmpty() || funArgs.size() != 1) {
res[0] = new ActOpnd(null, null, n... | [
"public Object getUserObject();",
"@Override\r\n\tpublic Object getUserObject() {\n\t\treturn super.getUserObject();\r\n\t}",
"UserMemento getUser();",
"UserObject getUser(String userName);",
"public final C3657b invoke(UserProto$User userProto$User) {\n boolean z;\n C12932j.m3... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin | @Override
@Generated(value = "com.sun.tools.xjc.Driver", date = "2014-06-21T12:56:12-04:00", comments = "JAXB RI v2.2.7")
public String toString() {
return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.MULTI_LINE_STYLE);
} | [
"public String toGenericString() {\n\t\tStringBuilder sb = new StringBuilder(80);\n\t\t// append modifiers if any\n\t\tint modifier = getModifiers();\n\t\tif (modifier != 0) {\n\t\t\tsb.append(Modifier.toString(modifier)).append(' ');\n\t\t}\n\t\t// append generic type\n\t\tappendGenericType(sb, getGenericType());\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: protected / renamed from: d | public boolean mo19978d() {
View view = (View) this.f17324c.get();
if (view != null) {
return this.f17323b.mo19974a(view, this.f17326e);
}
return false;
} | [
"protected void method_5557() {}",
"protected void d()\r\n/* 49: */ {\r\n/* 50:57 */ super.d();\r\n/* 51: */ }",
"@Override\n\tpublic void doof() {\n\t\t\n\t}",
"private void d() {\n }",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The DeleteMediaContent method removes the media content from the database by its id. It returns the media content id in the database or an errorcode. | @WebResult(name = "out", targetNamespace = "")
@RequestWrapper(localName = "DeleteMediaContent", targetNamespace = "http://ehealth.eu/StorageComponent/", className = "eu.ehealth.db.storagecomponent.DeleteMediaContent")
@WebMethod(operationName = "DeleteMediaContent", action = "http://ehealth.eu/StorageComponent/Delet... | [
"void deleteMedia(String id);",
"public void deleteMedia(Media media) throws Exception\n {\n Connection con = dbCon.getConnection();\n \n int id = media.getId();\n String sql = \"DELETE FROM songs_2 WHERE id=?;\";\n String sql2 = \"delete from playlist_content_table where son... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MODIFIES: this EFFECTS: adds new event to current planned events | public void addNewEvent(String activity, String time, String address) {
TripEvent newEvent = new TripEvent(activity, time, address);
events.add(newEvent);
} | [
"@Override\n\tpublic void addEvents() {\n\t}",
"protected void putInNewEvent(IEvent event){\n\t\tevents.putAway(event);\n\t}",
"public void addEvent(){\n\n }",
"@EventHandler(priority = EventPriority.HIGH)\r\n \tpublic void ex(PlayerEggThrowEvent event) {\n \t\tEgg egg = event.getEgg();\r\n \t\t\r\n \t\tbo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XSwitchExpression__Group_2_0_0_0__2__Impl" $ANTLR start "rule__XSwitchExpression__Group_2_1__0" InternalSARL.g:25756:1: rule__XSwitchExpression__Group_2_1__0 : rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 ; | public final void rule__XSwitchExpression__Group_2_1__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSARL.g:25760:1: ( rule__XSwitchExpression__Group_2_1__0__Impl rule__XSwitchExpression__Group_2_1__1 )
// InternalSARL.g:25761:2: ... | [
"public final void rule__XSwitchExpression__Group_2_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:20331:1: ( rule__XSwitchExpression__Group_2_0__1__I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Punte di campiglio had urls instead of Structure instance | @Test
public void testCreatePunteDiCampiglio() {
Entity en = enServ.readEntity(PUNTE_DI_CAMPIGLIO_URL);
Entity newEntity = enServ.createEntity(en);
checker.checkEntity(newEntity);
} | [
"public UrlType getUrl(){\n return localUrl;\n }",
"public void simpleLinkCreator(){\n //recuperare id cloud su cui viene istanziato lo stack e poi creare la tabella conformemente a \n //quanto realizzato nel test del southbridge api\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void create(Usuario entity) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Redirect to add page. | @RequestMapping(value = "/redirectToAddPage")
public ModelAndView redirectToAddPage(HttpSession session,HttpServletRequest req,HttpServletResponse res){
ModelAndView model = new ModelAndView();
EmployerRegistrationForm empRegForm=new EmployerRegistrationForm();
model.addObject(EMPREGFORM, empRegForm);
mod... | [
"public String goToAdd(Integer id) {\n\t\treturn \"/finance/financial-document-form.xhtml?id=\"+id+\"&faces-redirect=true\";\n\t}",
"public ExamHomePage clickOnAaddPageButton() throws Exception {\n\t\ttry {\n\t\t\tlogInstruction(\"LOG INSTRUCTION: CLICKING THE ADD PAGE BUTTON. \");\n\t\t\tframeSwitch.switchToFram... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string secureQue = 9; | public Builder setSecureQue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
secureQue_ = value;
onChanged();
return this;
} | [
"String cipher();",
"String passaHMS(Integer s);",
"public ScytaleCipher(String string, int key){\n this.string = string;\n this.key = key;\n classicProcedure = new ClassicProcedure();\n }",
"private void generateSecret(){\n String str=\"\";\n Random random=new Random();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Return the closest player within the given range from the given coordinates | public Player closestPlayer(float x, float y, int range) {
Player closestPlayer = null;
float distance = range;
for(Player player: d_players) {
if(player.health() == 0)
continue;
if(Math.hypot(player.x() - x, player.y() - y) < distance)
closestPlayer = player;
}
return clo... | [
"public EntityPlayer getNearestPlayer(double x, double y, double z, double dist)\r\n/* 2460: */ {\r\n/* 2461:2454 */ double d1 = -1.0D;\r\n/* 2462:2455 */ EntityPlayer res = null;\r\n/* 2463:2456 */ for (int i1 = 0; i1 < this.playerList.size(); i1++)\r\n/* 2464: */ {\r\n/* 2465:2457 */ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column PMSCONTROL.ZAK_RATE | public BigDecimal getZAK_RATE() {
return ZAK_RATE;
} | [
"public void setZAKAT_CODE(BigDecimal ZAKAT_CODE)\r\n {\r\n\tthis.ZAKAT_CODE = ZAKAT_CODE;\r\n }",
"public Double getRATE() {\n\treturn RATE;\n}",
"public BigDecimal getMAX_RATE() {\r\n return MAX_RATE;\r\n }",
"public int getRate() {\n return info.rate;\n }",
"public int getRate()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleDecision" $ANTLR start "entryRuleIncoming" ../org.xtext.example.rmodp/srcgen/org/xtext/example/rmodp/parser/antlr/internal/InternalRmOdp.g:2636:1: entryRuleIncoming returns [EObject current=null] : iv_ruleIncoming= ruleIncoming EOF ; | public final EObject entryRuleIncoming() throws RecognitionException {
EObject current = null;
EObject iv_ruleIncoming = null;
try {
// ../org.xtext.example.rmodp/src-gen/org/xtext/example/rmodp/parser/antlr/internal/InternalRmOdp.g:2637:2: (iv_ruleIncoming= ruleIncoming EO... | [
"public final EObject entryRuleNode() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleNode = null;\n\n\n try {\n // InternalFeatureResults.g:172:45: (iv_ruleNode= ruleNode EOF )\n // InternalFeatureResults.g:173:2: iv_ruleNode= ruleNode EOF\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
time is how many people has given out his card. time start from 0; 0 for he is the first one who give card 6 is he is the last one who give card return the positon of card | public int play(int round, char trump1, Card leadCard,
ArrayList<Card> trick, int time, ArrayList<Card> trickAll) {
char trump;
// if there is no trump, he give his prefer trump
if (trump1 == '0') {
trump = this.maxSuit;
return this.getMaxTrumpCard(trump);
... | [
"public void animateCard(Card card, long time, Point fromPoint, Point toPoint, int cards) {\n\t\t\r\n\t}",
"@Override\n\tpublic int compete(Random time) {\n\t\treturn 0;\n\t}",
"public void makePlayerMove() {\n\t\t\r\n\t\tif(firstMove) {\r\n\t\t\tDeck playerHand = game.getPlayer(1).getHand();\r\n\t\t\tCard draw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to verify that the begin and length parameters designate a subarray of positive length and the weights are all nonnegative, nonNaN, finite, and not all zero. returns true iff the parameters designate a subarray of positive length and the weights array contains legitimate values. throws IllegalArgume... | public static boolean verifyValues(
final double[] values,
final double[] weights,
final int begin,
final int length) throws MathIllegalArgumentException {
return verifyValues(values, weights, begin, length, false);
} | [
"@Contract(value = \"null -> true\", pure = true)\n private static boolean checkArray(Integer[] initArray) {\n if (initArray == null || initArray.length == 0) {\n return true;\n }\n return false;\n }",
"@Test\n public void testIsValid_1()\n throws Exception {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | FeedVoteHeaderViewPart$populateRunningPKVote$1(FeedVoteHeaderViewPart feedVoteHeaderViewPart, Feed feed) {
super(1);
this.this$0 = feedVoteHeaderViewPart;
this.$data = feed;
} | [
"public void method_5753() {\r\n super();\r\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void parentMethod() throws Exception {\n\t\tsuper.parentMethod();\r\n\t}",
"@Override\n }",
"protected void method_5557() {}",
"protected void d()\r\n/* 49... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |