query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Set whether or not element is enabled
public void setEnabled(boolean enabled) { this.enabled = enabled; }
[ "public void setEnabled(boolean value);", "public void setEnabled(boolean b){\n enabled = b;\n }", "public void setEnabled(Boolean enabled);", "public void setEnabled(boolean newValue) {\n enabled = newValue;\n }", "public void setEnabled(boolean b) {\n \tif (b) {\n\t pEnable...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for pulling new data for prediction
private Tuple getNewData() throws InterruptedException { return new Tuple1<Integer>(1); }
[ "public void predict(Dataset newData) { \n \n if(GeneralConfiguration.DEBUG) {\n System.out.println(\"predict()\");\n }\n \n knowledgeBase.load();\n \n predictDataset(newData);\n\n }", "private void getDataValues() {\n PredictionData data;\n\n f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public void mo52873a() { AppMethodBeat.m2504i(98028); this.f14988p = null; this.f14973a = null; if (this.f14986n != null) { this.f14986n.clear(); this.f14986n = null; } if (this.f14987o != null) { this.f14987o.clear(); this....
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__3" $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl" ../de.emueller.xtext.recordmapper.ui/srcgen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:7539:1: rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl : ( ruleOpSin...
public final void rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../de.emueller.xtext.recordmapper.ui/src-gen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:7543...
[ "public final void rule__XMemberFeatureCall__Group_1_0_0_0__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:6084:1: ( ( ruleOpSingleAssign ) )\n // InternalScripting.g:6085:1: ( ruleOpSingleAssign )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Bombilla b1 = new Bombilla(true); Bombilla b2=new Bombilla(false); System.out.println(b1.estadoBombilla(b1.estado)); System.out.println(b2.estadoBombilla(b2.estado)); System.out.println(b1.interruptorGeneral(true)); }
[ "@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" ] ] } }
given we delete medicalRecord from Person1
@Test @Order(6) void postMedicalRecord_whenExistedPersonWithoutRecordWithNewMedicationOrAllergy_thenReturn201() throws Exception { mockPerson1.setMedicalRecord(null); // we retrieve person without medicalRecord when(personService.getPersonByNames(Mockito.anyString(), Mockito.anyString())) ...
[ "void deletePerson(Person per) throws SQLException;", "public abstract boolean deleteForRecord(long recordId);", "@Override\n\tpublic boolean deleteRecord(Record record) {\n\t\tboolean check = false;\n\t\tcheck = this.fullListOfRecords.remove(record);\n\t\treturn check;\n\t}", "int deleteRecord(Object id);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / /
public int getDensity() { /* 131 */ throw new RuntimeException("Stub!"); /* */ }
[ "private void calculatePaths() {\n\n\n }", "public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cleans the object and releases its resources It's a programming error to call another method on this object after the release method has been called.
public void release() { Log.i(TAG, "Release was called, cleaning TimeService objects"); // Prevent usage of the TimeServiceClient stale object if (managerMap != null) { for (TSItemsManager<?> manager : managerMap.values()) { manager.release(); ...
[ "@Override\n public void cleanup() {\n }", "public void cleanup() {\r\n\t}", "@Override\r\n public void cleanup() {\r\n }", "public final void cleanUp()\n {\n this.finalOperations();\n this.removeListeners();\n this.releasePointers();\n }", "@Override\r\n\t\tpublic void cleanu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
public void mo2086b(View view) { if (!this.f1465a) { C0600h0.this.f1446a.setVisibility(this.f1466b); } }
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a skill and a teacher When I associate the skill with the teacher
@Test @SneakyThrows public void findBySkillsNameShouldWork() { mockMvc .perform(post("/teachers/{id}/skills", savedTeacher1.getId()) .contentType("text/uri-list") .accept(MediaType.APPLICATION_JSON_UTF8) .content("/skills/" + savedSkill1.getId())) .andDo(print()) .andExpect(status().isNoCont...
[ "@Override\r\n\tpublic void addSkillsToTeacher(Long teacherId, List<Skill> skills) {\n\t\t\r\n\t}", "public void createTeacher(Teacher teacher) {\n\t\t\r\n\t}", "public void addSkill(Skill skill) {\n skillDAO.addSkillById(skill.getIdStudent(), skill);\n }", "public int insertSkill(Skill skill);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { }
[ "@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" ] ] } }
put your documentation comment here
public void keyPressed(KeyEvent e) {}
[ "@Override\n public String printDocumentation() {\n return (documentation);\n }", "MainteneanceDocumentation createMainteneanceDocumentation();", "public CompDocumentation() {\n }", "@Override\n\tpublic void writeFakeDocu() {\n\t\t\n\t}", "public String getDocumentation()\r\n {\r\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform hit testing on the graph. Objects registered with the as HitTestListeners will be notified of success.
public void performHitTesting(HitTesterMap map, Viewport vp, Rectangle2D rect, MouseEvent event) { // FIX: Should do corse hit testing first using world coordinates. boolean graphObjectHit = false; // // ...
[ "public void hit(GameObject gameObject) \n\t{\n\t\t//If the hit GameObject is a tree\n\t\tif(gameObject instanceof Tree)\n\t\t\t//Delegate the method call to the hitTree() method.\n\t\t\thitTree((Tree)gameObject);\n\t\t\n\t}", "public void testHitTest()\n {\n // load the \"hittest\" test data\n S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the company ID of this ctb store type.
@Override public void setCompanyId(long companyId) { _ctbStoreType.setCompanyId(companyId); }
[ "public void setCompanyID(int companyID)\n {\n this.companyID = companyID;\n }", "public void setCompanyId(long companyId) {\r\n this.companyId = companyId;\r\n setChanged(true);\r\n }", "public void setCompany(int company) {\n\t\tthis.company = company;\n\t}", "@Override\n pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void configureViewResolvers(ViewResolverRegistry registry) { WebMvcConfigurer.super.configureViewResolvers(registry); registry.jsp().prefix("WEB-INF/views").suffix(".jsp"); }
[ "@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" ] ] } }
Application entry point. The given runtime parameters must be a service port, the session awareness, and the list of address:port combinations for the cluster nodes.
static public void main (final String[] args) throws IOException { LogManager.getLogManager(); final long timestamp = System.currentTimeMillis(); final int servicePort = Integer.parseInt(args[0]); final boolean sessionAware = Boolean.parseBoolean(args[1]); final Set<InetSocketAddress> nodeAddresses = new Ha...
[ "public static void main(String[] args) throws Exception {\n\t\ttry{\n\t\tLocateRegistry.createRegistry(1099);\n\t\t//System.setProperty(\"java.rmi.server.hostname\",\"192.168.1.2\");\n\t\tNaming.bind(\"cypher-service\", new VigenereBreakerImpl());\n\t\tSystem.out.println(\"service started...\");\n\t\t}\n\t\tcatch(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column game_mind_question.title
public String getTitle() { return title; }
[ "@Column(name = \"title\", nullable = false, length = 45)\n public String getTitle() {\n return this.title;\n }", "public String getQuestionTitle()\n\t{\n\t\treturn question_title;\n\t}", "@Column(length = TITLE_LENGTH, nullable = false)\n\tpublic String getTitle() {\n\t\treturn title;\n\t}", "@C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the "name" of this status or basically a string representation of it. All possible return values are "stopped", "starting", "listening", "stopping" and "unknown". Note that this string should never be parsed or evaluated. If states are to be compared, always use state1.equals(state2) or (better yet) state1.isIn...
public String getName() { return name; }
[ "protected String stateName()\n {\n return (_state != null ?\n _state.getName() :\n (_previousState != null ?\n _previousState.getName() :\n \"(state unknown)\"));\n }", "protected String getStatusString() {\n\t\t\n\t\treturn status_.name(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onFailure(ErrorObject err) { }
[ "@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" ] ] } }
/ Access modifiers changed, original: protected|final
public final boolean dzt() { AppMethodBeat.m2504i(106324); this.mScroller.forceFinished(true); AppMethodBeat.m2505o(106324); return true; }
[ "protected void method_5557() {}", "@Override\n }", "@Override\r\n public void publicando() {\n }", "@Override\n public void extornar() {\n \n }", "protected void method_2117() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "protected abstrac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converte os dados de DTO para Aluno
private Aluno converterDtoParaAluno(AlunoDto alunoDto, BindingResult result) throws NoSuchAlgorithmException { Aluno aluno = new Aluno(); aluno.setId(alunoDto.getId()); aluno.setNome(alunoDto.getNome()); aluno.setSerie(alunoDto.getSerie()); aluno.setRa(alunoDto.getRa()); aluno.setUsuario(alunoDto.getUsuari...
[ "public UsuarioDTO convertirEntidad(Usuario entidad){\n\t\tUsuarioDTO dto=new UsuarioDTO();\n\t\tdto.setId(entidad.getId());\n\t\t\t\tdto.setNombreDeUsuario(entidad.getNombreDeUsuario());\n\t\t\t\tdto.setContraseña(entidad.getContraseña());\n\t\t\t\tdto.setRol(entidad.getRol());\n\t\t\n\t\t\n\t\treturn dto;\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int getCount() { return BookList.size(); }
[ "@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" ] ] } }
Set search value for Plan qty
public void setPlanQty(int arg[]) throws ReadWriteException { setValue(_Prefix + InventoryCheck.PLANQTY.toString(), arg); }
[ "public abstract void setQtyOnOrder(int val) ;", "public void setQtyReserved(String qtyReserved) {\r\n/* 243 */ this._qtyReserved = qtyReserved;\r\n/* */ }", "public void setQty(String aQty)\n {\n qty = aQty;\n setItDirty(true);\n }", "private void setQty() {\n\t\tStringBuilder qt = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method sets the password of RegistrationManager
public void setPassword(String password) { this.password = password; }
[ "public void setPassword(String newPassword) \r\n { \r\n password = newPassword; \r\n }", "public void setPassword(String password) { }", "@Override\n public void setPassword(String password) {\n }", "public void setPassword(String nuevoValor) { password = nuevoValor; }", "public void set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
false if not found
boolean delete(int id);
[ "private boolean checkIfExist(int npm) {\n\t\tif(kuriMapper.checkIfExist(npm).isEmpty()) {\n\t\t\treturn false;\n\t\t}else return true;\n\t\t\n\t}", "@Override\r\n public boolean containsKey(K key) {\n \tif(this.indexOf(key) == NOT_FOUND) \r\n \t\treturn false;\r\n \treturn true;\r\n }", "boolean...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use DiscoverRsp.newBuilder() to construct.
private DiscoverRsp(com.google.protobuf.GeneratedMessageLite.Builder builder) { super(builder); this.unknownFields = builder.getUnknownFields(); }
[ "private Demo1008Rsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private ResoucesRsp(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private RedHeartRsp(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
nicht relevant, server beendet das spiel act.displayStatus("TIMER done!");
@Override public void onFinish() { }
[ "public void timer() {\n\t\t\n\t}", "private void showTempStatus(final String msg) {\n statusLabel.setText(msg);\n Thread t = new Thread(new Runnable() {\n\n @Override\n public void run() {\n // Wait a bit\n try {\n Thread.sleep(STATUS_DISPLAY_TIMEOUT_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Marsel on 6/4/2016.
public interface MasterAPI { @GET("city") @Headers({ "Content-Type: application/json;charset=utf-8", "Accept: application/json" }) Observable<List<City>> City(); @GET("country") @Headers({ "Content-Type: application/json;charset=utf-8", "Accept: a...
[ "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Main entry point
void run() { mote = new MoteIF(PrintStreamMessenger.err); mote.registerListener(new SniffControlMsg(), this); new PipeReader("Read Control Pipe").start(); }
[ "public static void main(String[] args) throws Exception {\n \n\n \n \n }", "public static void main(String []args)\n {\n \n }", "public static void main(String[]args){\n \n }", "public static void main (String args[]) {\n \n }", "public static void main(String []args) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table MN_BAD_CELL_PROVINCE_3G
void insertSelective(MnBadCellProvince3g record);
[ "public void insert(MnBadCellRegion record) {\n getSqlMapClientTemplate().insert(\"MN_BAD_CELL_REGION.ibatorgenerated_insert\", record);\n }", "public void insertSelective(MnBadCellRegion record) {\n getSqlMapClientTemplate().insert(\"MN_BAD_CELL_REGION.ibatorgenerated_insertSelective\", record);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the given mark meets the win condition of having a diagonal in the plains of rows and height.
public boolean hasRowHeight(Mark m) { boolean fullRowHeight; for (int row = 0; row < dim; row++) { fullRowHeight = true; for (int rh = 0; rh < dim; rh++) { if (fields[rh][row][rh] != m) { fullRowHeight = false; } } if (fullRowHeight) { return true; } } for (int row = 0; row < dim...
[ "public boolean isWin(int mark){\n boolean isWin=false;\n if(((board[0][0]+board[0][1]+board[0][2])==mark*3) //row0\n ||((board[1][0]+board[1][1]+board[1][2])==mark*3) //row1\n ||((board[2][0]+board[2][1]+board[2][2])==mark*3) //row2\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the manifest list view.
public Node getBrowseManifestsView() { return ListController.getTableView(this, DatabaseController.getInstance().getManifestDataColumns(), DatabaseController.getInstance().getAllManifests()); }
[ "@Override\n\tpublic ListView getListView() {\n\t\treturn list;\n\t}", "public ViewObjectImpl getinstallmentListView1() {\n return (ViewObjectImpl)findViewObject(\"installmentListView1\");\n }", "@GET\n @Path(\"/_manifest\")\n @Produces(MediaType.APPLICATION_JSON)\n public String getManife...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column OSOADATA.T_ACCEPTED_CUSTOMER_INFO.AGENT_BEGINDATE
public String getAgentBegindate() { return agentBegindate; }
[ "public String getAgentNo() {\n return agentNo;\n }", "public String getAgentno() {\r\n\t\treturn agentno;\r\n\t}", "@Accessor(qualifier = \"agent\", type = Accessor.Type.GETTER)\n\tpublic EmployeeModel getAgent()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(AGENT);\n\t}", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected EnumerationExample doQueryExample(Enumeration model) { 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" ] ] } }
Get field value for a given jsonFormattedString and fieldName
@Override public String getFieldValue(String jsonFormattedString, String fieldName) { Assert.notNull(jsonFormattedString, "jsonFormattedString can't be null"); Assert.notNull(fieldName, "fieldName can't be null"); String fieldValue = ""; JsonNode actualObj = null; tr...
[ "private static String getStringByField(JSONObject jsonObject, String field) {\n return jsonObject.getString(field);\n }", "public String getString(String jsonText, String field) throws JSONException {\n\t\tJSONParser parser = new JSONParser(jsonText);\n\t\t\n\t\treturn parser.parse(field).getString(\"r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
public final C11669s<C11585f> mo29067b() { return C11593a.m34075b(this); }
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a specific cell from the grid
public PlayingFieldMetaCell getCellAt(final int column, final int row) { return this.grid[column][row]; }
[ "Cell getCell(int row, int column);", "public Cell getCell(int row, int col);", "Cell getCellAt(int x, int y);", "public Cell getCell(int x, int y) throws IndexOutOfBoundsException {\n return grid[y][x];\n }", "public Cell getCell(int row, int col){\n\t\treturn this.grid[row][col];\n\t}", "public Grid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Before Delete Rules
public void beforeDelete0B12( ) { }
[ "public void beforeDelete1138( )\n {\n }", "public void beforeDelete1D48( )\n {\n }", "@Override\n\tpublic void beforeDelete(ContatoInstituicao entity) {\n\t\t\n\t}", "protected void preDelete(Model model, Long id) {\n\t\t\n\t}", "public int deleteRule(){\n return 0; //TODO codavaj!!\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use the current date as the default date in the date picker
@Override public Dialog onCreateDialog(Bundle savedInstanceState){ final Calendar c = Calendar.getInstance(); int year = c.get(Calendar.YEAR); int month = c.get(Calendar.MONTH); int day = c.get(Calendar.DAY_OF_MONTH); long milliseconds = 0; dpd = new DatePickerDialo...
[ "public void setDefaultDate(Date defaultDate){\r\n\t\ttriggerOption( \"defaultDate\", defaultDate);\r\n\t}", "private void setTodayDate()\n {\n \tmCalendar.setTime(new Date());\n \tString currentDateString = G.dateFormatterToDisplay.format(mCalendar.getTime());\n \tString currentTimeString = G.timeFor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if has "tx" attribute
boolean isSetTx();
[ "public boolean hasTxId() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasTransaction() {\n return transaction_ != null;\n }", "boolean hasTxpkt();", "boolean isTxState();", "public boolean hasTransactionId() {\n return ((bitField0_ & 0x00000002) == 0x...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { btngrp = new javax.swing.ButtonGroup(); jLabel1 = new javax.swing.JLabel(); nama = new javax.swing.JTextField(); absen = new j...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
1 Menyambungkan layout item
@NonNull @Override public MyViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType) { View itemView = LayoutInflater.from(context).inflate(R.layout.layout_item_organisasi_2, viewGroup,false); return new MyViewHolder(itemView); }
[ "private static void tampilkanMenu() {\n int nomorItem = 1;\n for (Item item : menu) {\n System.out.println(nomorItem+ \". \" +item.showDetail());\n nomorItem++;\n }System.out.println(\"\");\n }", "public void viewMain(){\n int count=0;\n if(count>0){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
querypageby method for field updatedDate
public final CursorPage<DParticipant> queryPageByUpdatedDate(java.util.Date updatedDate, int pageSize, String cursorString) { final Filter filter = createEqualsFilter(COLUMN_NAME_UPDATEDDATE, updatedDate); return queryPage(false, pageSize, null, null, null, false, null, false, cursor...
[ "CursorPage<DFactory> queryPageByUpdatedBy(java.lang.String updatedBy,\n int pageSize, String cursorString);", "CursorPage<DSeries, java.lang.Long> queryPageByUpdatedBy(java.lang.String updatedBy,\n int pageSize, String cursorString);", "Iterable<DFactory> queryByUpdatedBy(java.lang.String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ The above variables are what we call 'class members'. What this means is that every 'instance' of the Fruit class will have these variables. They might (and probably will) have different values, but the variables do exist for every instance of Fruit. This would make sense, because logically you could assume that ever...
public Fruit(String newName, String newSize, String newColor){ name = newName; size = newSize; color = newColor; System.out.println("We just created a new fruit called " + name + " with size = " + size + " and color = " + color); }
[ "public Fruit(String name, double weight, int price){\n super(name);\n this.weight = weight;\n this.priceKg = price;\n }", "public FoodAndDrinks()\r\n\t{\r\n\t\thamburger=5;\r\n\t\thotdog=4;\r\n\t\twater=2;\r\n\t\tsoda=3;\r\n\t\tchamburger=0;\r\n\t\tchotdog=0;\r\n\t\tcwater=0;\r\n\t\tc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new server change region event.
public ServerChangeRegionEventImpl(Server server, Region newRegion, Region oldRegion) { super(server); this.newRegion = newRegion; this.oldRegion = oldRegion; }
[ "private void createRegion() {\n \n \t\ttry {\n \t\t\tint x = getPosition(pos_x.getText());\n \t\t\tint y = getPosition(pos_y.getText());\n \t\t\tint z = getPosition(pos_z.getText());\n \t\t\tCoord c = new Coord((float) x, (float) y, (float) z);\n \t\t\tint r = getPosition(radius.getText());\n \t\t\tString name = r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int[] oikeatNumerot = { 3, 19, 18, 1, 2, 17, 16 }; int[] omatNumerot = new int[7]; int numero; int oNumerot=0; Scanner input = new Scanner(System.in); for (int i = 0; i < 7; i++) { System.out.print("Anna " + (i + 1) + ". lottonumerosi: "); ...
[ "@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" ] ] } }
Take the 3 Hexduples and converts them to the actual time the cube was on one side.
private static int ConvertTime(String first, String second, String third) { String temp = ""; for(int i = 0; i < 2; i++){ temp += third.charAt(i); } temp += second; temp += first; return Integer.parseInt(temp, 2); }
[ "public String getTimehex() {\n return timehex;\n }", "public static void test3() {\r\n\t\tHexOff origin = new HexOff(65, 58);\r\n\t\tHexOff target = new HexOff(67, 59);\r\n\t\t\r\n\t\torigin.DisplayType();\r\n\t\torigin.DisplayHex();\r\n\t\ttarget.DisplayHex();\r\n\t\tSystem.out.println(\"Distance is \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Erstellt neues Fressen, wenn keins existiert. Dazu wird erst gewartet bis der Counter abgelaufen ist. Danach wird der Counter zurueckgesetzt. Existiert das Fressen, wird dieses auch gezeichnet.
private void handleFood(){ if(food == null){ foodCounter--; if(foodCounter<=0){ food = new SnakePart(-1, -1); do{ food.setX((int)(Math.random()*WIDTH)); food.setY((int)(Math.random()*HEIGHT)); }while(field[food.getY()][food.getX()] != EMPTY_FIELD); ...
[ "public void countFrequency() {\r\n int freq = 0;\r\n //parcurg fiecare carte din mana\r\n for (int i = 0; i < cardsInHand.size(); i++) {\r\n freq = 0;\r\n Goods currentGood = cardsInHand.get(i);\r\n for (Goods goods : cardsInHand) {\r\n if (curre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
protected AnimationSet m14486a(int i, Rect rect) { AnimationSet animationSet = new AnimationSet(false); Animation translateAnimation = new TranslateAnimation(0.0f, i == 0 ? (float) (rect.left - rect.right) : (float) ((-rect.left) + rect.right), 0.0f, 0.0f); translateAnimation.setDuration(200); ...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .com.vidal.sandbox.statelessvxp.pojo.protbufgen.SimpleModel simpleCOBJ = 13;
public Builder setSimpleCOBJ(com.vidal.sandbox.statelessvxp.pojo.protbufgen.FulltypesmodelProt.SimpleModel value) { if (simpleCOBJBuilder_ == null) { if (value == null) { throw new NullPointerException(); } simpleCOBJ_ = value; onChanged(); } else { ...
[ "public ObxAvroModel() {}", "ObjectModelPackage getObjectModelPackage();", "public ObjectFactoryModelInvioFat() {\n \t// Default empty constructor (only for javadoc)\n }", "public PersonalDetailPojo() {\n }", "public interface XMDLGenModel extends XModel {\r\n\t/**\r\n\t * <!-- begin-user-doc -->\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method makes an array of all possible moves of certain Piece.
protected abstract int[][] makeArray();
[ "public ArrayList<Cell> possibleMoves(Piece givenPiece) throws NullPointerException{\n if(givenPiece == null){\n throw new NullPointerException(\"The Piece provided is null. Cannot find possible moves of a null Piece\");\n }\n return possibleMoves(givenPiece.getCell());\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// public SplashConnectScreenView(Context context) //
public SplashConnectScreenView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); mMainActivity = (MainRemoteControllerActivity) context; InitView(); }
[ "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //SplashScreen.show(this); // here\n //setContentView(R.layout.layout_screen);\n}", "public interface SplashActivityView {\n void enterApp();\n}", "public interface SplashView {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column b_tasks.allDay
public void setAllday(String allday) { this.allday = allday; }
[ "public void setTaskDayId(long taskDayId) {\r\n\t\tthis.taskDayId = taskDayId;\r\n\t}", "public LocalDate getAllDayDate() {\n return this.allDayDate;\n }", "void setTodaysDate(Date time);", "public TimelordTaskDay getTodayTaskDay() {\r\n return this.todayTaskDay;\r\n }", "public void setSchedu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a random subset of feature indices
private ArrayList<Integer> getRandomSubset(int featureSize, int subsetSize) { // Start with an ArrayList that contains all possible feature index ArrayList<Integer> possibilities = new ArrayList<Integer>(); for (int i = 0; i < featureSize; i++) { possibilities.add(i); } /* Randomly choose indices from pos...
[ "public Feature randomPick(){\n\t\tint i = (int)(Math.random() * (samples.size()-1));\n\t\treturn samples.get(i);\n\t}", "double[] generateFeatureVector()\n\t{\n\t\tdouble[] features = new double[numberOfFeatures];\n\n\t\tfor (int i = 0; i < numberOfFeatures; i++)\n\t\t{\n\t\t\tdouble x = SRES.random.nextDouble()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static EditRequest createEntity(EntityManager em) { EditRequest editRequest = new EditRequest() .requestDate(DEFAULT_REQUEST_DATE) .isApproved(DEFAULT_IS_APPROVED); return editRequest; }
[ "protected abstract Entity createEntity();", "EntityInstance createEntityInstance();", "@Override\n protected void createEntity() {\n Company company = createCompany(1001);\n setEntity(company);\n }", "public final Entity createEntity() {\n Entity entity = new Entity(this);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the source location on construction.
public static Location getLocation(Entity n) { if (n == null) { return null; } return n.getCenterLocation(); }
[ "public static String getSourceLocation() { return LTO_SRC; }", "public int getLocationSource() {\n return this.locationSource;\n }", "public String getSource () {\r\n return source;\r\n }", "public String getSource() {\r\n return _source;\r\n }", "public String getLocation() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .protos.Tower deep_tower = 1;
public com.alibaba.alink.operator.batch.dl.ctr.protos.TowerOuterClass.Tower.Builder getDeepTowerBuilder() { bitField0_ |= 0x00000001; onChanged(); return getDeepTowerFieldBuilder().getBuilder(); }
[ "void mo1789d(Tower tower);", "public TeleOpLift() {\n requires(RobotMap.liftSystem);\n }", "proto.Game getVersionParent();", "cruz.agents.ProtoMessage.BandanaRequest.Type getType();", "@Override\n public void eastablishConnectionWithYourTower() {\n }", "PeeringService.DefinitionStages.Bla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string TradingPhaseCode = 3;
java.lang.String getTradingPhaseCode();
[ "public void onTradePhaseStart() {\n // Todo: implement\n }", "public void setPhase(int num) { phase = num; }", "public int getPhase() { return phase; }", "String getAlm_ProjectPhaseFVA();", "public String getPhase()\n {\n return txtPhase.getText();\n }", "public void setPhase...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the list of monsters.
public ArrayList<Monster> getMonsterList() { return monsterList; }
[ "public List<Monsters> getMonsters(){\n return this.monsters;\n }", "public Monster[] getMonsters() {\n return monsters;\n }", "public Collection<Monster> findAllMonsters() {\n\t\treturn getEm().createQuery(\"From Monster\").getResultList();\n\t}", "public Collection<Monster> getMonsters() {\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
kondisi: kalau sebagian nyala sebagian ga, null. semua nyala: true. semua ga nyala: false.
void aturTampilanFilterLamaBaru() { Boolean lama = null; Boolean baru = null; int satuSatunyaNyala = -1; { int c_nyala = 0, c_mati = 0; for (int i = 0; i < 39; i++) { boolean nyala = xkitabPosTerpilih.get(i, false); if (nyala) c_nyala++; else c_mati++; } if (c_nyala == 39) lama = true; ...
[ "public boolean dodajKorisnika(Korisnik korisnik);", "public boolean onkoKaikkiUponnut(){\n for(Laiva l : laivat){\n if(!l.uponnut()){\n return false;\n }\n }\n return true;\n }", "public boolean themNhanVien(){\n return false;\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notkun: y = getY(); Eftir: skilar xhniti
public double getY() { return this.y; }
[ "public int getY() { return y ; }", "long getY();", "public double getY()\n {\n return y;\n }", "@Override\r\n \tpublic float getY(){\r\n \t\treturn xy.getY();\r\n \t}", "public int getY(){\treturn y; }", "public double getY() \r\n\t{\r\n\t\treturn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Andriana on 19.09.2016.
public interface Interface3 { public void method5(); public void method6(); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the data for this graph part
public void setData(Object data);
[ "public void setData(VertexData data) {\n\t\tthis.data = data;\n\t}", "public void setData(Object data){\n\t\t\tthis.data = data;\n\t\t}", "public void setDataSet(GraphDataSet d)\n{\n if (dataSet != null)\n {\n dataSet.removePropertyChangeListener(this);\n }\n\n dataSet = d;\n if (dataSet ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Maps Plan entity to PlanDTO object.
public static PlanDTO mapFromPlanEntity(Plan plan) { return new PlanDTO(plan.getId(), plan.getTitle(), plan.getDescription(), plan.getMonthlyFee()); }
[ "private Plan getPlanInformation(String planName) {\n\t\tPlanEntity planEnt = planRepo.findByPlanName(planName);\n\t\tPlan planDet = new Plan();\n\t\tBeanUtils.copyProperties(planEnt, planDet);\n\t\treturn planDet;\n\t}", "MODEL map(DTO dto);", "@PostMapping(value = \"/plans\")\n\tpublic void addPlan(@RequestBo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unconditionally sets to false.
public void unLock() { locked.set(false); LockSupport.unpark(waiters.peek()); }
[ "public boolean setOff() {\n\t\treturn false;\r\n\t}", "public void setFalse(){\n\t\tAvailable = false;\n\t}", "private void setFalseToFlag() {\n operatorPressedBefore = false;\n allClearPressed = false;\n }", "public void setDoNotUse(boolean doNotUse);", "@Override\n\tpublic void setFalse(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to fetch all the provider names under a firm to load the filter
private void loadServiceProviders(Integer resourceId){ ArrayList<ProviderDetail> arrServiceProvidersList = null; try { arrServiceProvidersList = soMonitorDelegate.loadServiceProviders(resourceId); setAttribute("ServiceProvidersList", arrServiceProvidersList); } catch (Exception e) { logger.error("E...
[ "private void getPartners() {\n showProgressDialog();\n IApiClient client = ApiClient.getApiClient();\n ReqGetFilters reqGetFilters = new ReqGetFilters();\n reqGetFilters.setServiceKey(mAppSharedPreference.getString(PreferenceKeys.KEY_SERVICE_KEY, ServiceConstants.SERVICE_KEY));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
void mo18884a(C3340r rVar);
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.kedacom.ops.flink.etl.proto.DssNetAddr DstAddr = 5;
public com.kedacom.ops.flink.etl.proto.Dssevstruct.DssNetAddr.Builder getDstAddrBuilder() { bitField0_ |= 0x00000010; onChanged(); return getDstAddrFieldBuilder().getBuilder(); }
[ "public Ip4Address tunDstAddr() {\n return tunDestAddr;\n }", "static void Z41_ssN0_dddd_addr(void)\n{\n\tGET_DST(OP0,NIB3);\n\tGET_SRC(OP0,NIB2);\n\tGET_ADDR(OP1);\n\taddr += RW(src);\n\tRW(dst) = ADDW( RW(dst), RDMEM_W(addr) );\t/* ASG */\n}", "static void Z56_0000_dddd_addr(void)\n{\n\tGET_DST(OP0,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the bit rate as a string. May be VBR etc
public String getBitRate(){ return this.bitRate; }
[ "public static String readableTransferRate(Context context, long bits) {\n final String[] units = context.getResources().getStringArray(R.array.transfer_rate_units);\n if (bits <= 0) return \"0 \" + units[0];\n int digitGroups = (int) (Math.log10(bits) / Math.log10(1024));\n return new D...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the ID of the item on the action bar that was clicked
public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()){ case R.id.create_order: //start order activity return true; default: return super.onOptionsItemSelected(item); } }
[ "java.lang.String getClickid();", "public int getActionId()\n {\n return m_actionid;\n }", "public int getIdAction() {\n\t\treturn this.getIntExtra(EXTRA_ACTION, 0);\n\n\t}", "public abstract String getActionID();", "public int getActionID() {\n return actionID;\n }", "@Override\n pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.kitty_protos.S2C_StartAdventure s2cStartAdventure = 10012;
public Builder clearS2CStartAdventure() { copyOnWrite(); instance.clearS2CStartAdventure(); return this; }
[ "public void mo23233n() {\n }", "public void mo7102i() {\n }", "public void mo6819c() {\n }", "public void mo23235b() {\n }", "public void mo105722a() {\n }", "private ProtoSyntax() {\n void var2_-1;\n void var1_-1;\n }", "C14303y mo36019X();", "C6340o mo22528a();", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set Date. Date when business is not conducted
public void setDate1 (Timestamp Date1);
[ "public void setBusinessDate(String businessDate) {\n this.businessDate = businessDate;\n }", "protected EYSDate setNextBusinessDate(EYSDate date)\n {\n // clone business date and roll date by one, increment business day\n // per calendar constraints - update pieces (month, day, year)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/////////////////////////////////////////////////// ///////////////// Accessors /////////////////////// ///////////////////////////////////////////////////
public String getKeyword() { return keyword; }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n \tpublic void init() {\n \n \t}", "@Override\n protected void init()\n {\n\n }", "@Override\r\n public void publicando() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test method to check the cancel request
public void test_RDownloader_Cancel_Request_by_ID() throws Exception { int id = mRDownloader.load(new Request("TESTURL", "TESTURL", null) { @Override public Object parseResponse(InputStream stream) throws Exception { return null; } }); mRDownlo...
[ "public void testIsCanceled() {\n System.out.println(\"isCanceled:see run\");\n \n }", "@Test\r\n public void testCancelRent() {\r\n }", "protected void cancel() {\n }", "@Override\r\n\t\t\tpublic void onLocatedCancel() {\n\t\t\t\tisRequestting=false;//set false while canceled;\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated getter method
public boolean getUrgentDelivery () { return localUrgentDelivery; }
[ "public MethodDoc getGetter()\r\n {\r\n return m_jvdGetter;\r\n }", "public long getGetter() {\n return getter_;\n }", "public T get() {\n return value;\n }", "public abstract M get();", "@Override\n \tpublic String get() {\n \t\treturn null;\n \t}", "public Object get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of X509TokenBuilder
public KeyValueTokenBuilder(JAXBFilterProcessingContext context, AuthenticationTokenPolicy.KeyValueTokenBinding binding) { super(context); this.binding = binding; }
[ "public RequestBuilderWithToken() {\r\n\r\n }", "private JsonWebToken.Builder createBuilder() {\n\n LocalDateTime now = LocalDateTime.now();\n LocalDateTime hourBefore = now.minusHours(1);\n LocalDateTime hourAfter = now.plusHours(1);\n\n long issuedAt = toSinceEpoch(hourBefore);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ParamBusquedaDto dto = new ParamBusquedaDto();
@DirectMethod @SuppressWarnings("unchecked") public MonitorConciliacionDTO obtenerReporteGlobalMonitor(ParamBusquedaDto dto){ JRDataSource jrDataSource = null; try{ System.out.println("JCRE 0"); conciliacionService = (ConciliacionBancoSetService) contexto.obtenerBean("conciliacionBancoSetBusinessImpl")...
[ "public EntidadDTO() {\n }", "public DetalleEntregaDTO() {\n }", "public RegistroCompraDTO()\n {\n \n }", "public GroupeDto() {}", "public SedeDTO() {}", "public IdentificadorDto() {}", "public HwaDto()\n {\n super(); \n }", "public HabilitadoDTO(){ }", "public Move...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toast.makeText(HomeActivity.this, "Position: " + position, Toast.LENGTH_SHORT).show();
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if(position==0){ startActivity(new Intent(getApplicationContext(), ProspectActivity.class)); finish(); }else if(position==1){ ...
[ "@Override\n protected void onPostExecute(String result) {\n Toast.makeText(getActivity() , \"Data Sent!\", Toast.LENGTH_LONG).show();\n Toast.makeText(getActivity(), pos.toString(), Toast.LENGTH_LONG).show();\n Log.d(\"position ======== \", pos.toString());\n\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a transaction based on the transaction identifier.
public abstract Transaction getTransaction( Xid xid );
[ "Transaction getTransactionById(long id);", "@NonNull\n public Transaction getTxn(String txnId) throws Exception {\n for (DocumentReference document : collection.listDocuments()) {\n if (document.getId().equals(txnId)) {\n DocumentSnapshot snap = document.get().get();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the socket connection timeout.
@SuppressWarnings("deprecation") public int getSocketConnectTimeoutMs() { int result = getHelped().getConnectTimeout(); if (getHelpedParameters().getNames().contains("socketConnectTimeoutMs")) { result = Integer.parseInt(getHelpedParameters().getFirstValue( "socketCo...
[ "public int getSocketTimeout() {\n/* 225 */ if (this.socket != null) {\n/* */ try {\n/* 227 */ return this.socket.getSoTimeout();\n/* 228 */ } catch (SocketException ignore) {\n/* 229 */ return -1;\n/* */ } \n/* */ }\n/* 232 */ return -1;\n/* */ }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .pb4server.UpdateAllianceMemberInfoVo updates = 1;
int getUpdatesCount();
[ "@Override\npublic int update(Member member) throws Exception {\n return 0;\n}", "interface Update extends Appliable<VpnGatewayNatRule>, UpdateStages.WithExternalMappings, UpdateStages.WithId, UpdateStages.WithInternalMappings, UpdateStages.WithIpConfigurationId, UpdateStages.WithMode, UpdateStages.WithName, Upd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Move the player up one square
public void moveUp() { if (this.getX() != 0) { this.setX(this.getX() - 1); } }
[ "public GridPosition moveUp()\n {\n GridPosition playerPosition = gameGrid.getPlayerPosition();\n\n //move player\n playerPosition.y = (playerPosition.y + 1)%gameGrid.getGridEdge();\n\n //set new position\n gameGrid.setPlayerPosition(playerPosition);\n\n return playerPos...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 74: / 75:
public Chunk[] getChunks(int column) /* 76: */ { /* 77: 78 */ return this.chunks[column]; /* 78: */ }
[ "private static void EX5() {\n\t\t\r\n\t}", "public void mo17751g() {\n }", "public void mo26342c() {\n }", "public int method_5482() {\r\n return 4;\r\n }", "void mo37715E_();", "public void mo6726a() {\n }", "public static void Elyazi_53() {\n\t\t\n\t}", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
call from the client when fail to complete purchase
protected void onPurchaseFail() { executeJs(JS_METHOD_PURCHASE_FAIL); }
[ "void onPurchaseFailed(int responseCode);", "void onPurchaseCancelled();", "void onPurchaseFinished(int requestCode, PurchaseOrderType purchaseOrder, ProductPurchaseType purchase);", "@Override\n void onIabPurchaseFailed(IabHelper h, int errorNum) {\n // We did set up in such a way so that error mes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load a specific container from the config file.
public void loadContainerFromXml(Type type) { try { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(CONFIG_PATH); IDataContainer container = this.getContainer(type); if(container != null) ...
[ "private Container loadContainer(String configFile, ContainerConfig.Configuration containerCfg, List<StartupCommand> ofbizCommands) throws StartupException {\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n\t\tClass<?> containerClass;\n\t\ttry {\n\t\t\tcontainerClass = loader.loadClass(co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the min common multiple if argument "isMax" is true or the max common divisor of given numbers if argument "isMax" is false
public static int commonMultipleOrDivider(int fst, int snd, boolean isMultiple) { if (fst > snd) { int tmp = fst; fst = snd; snd = tmp; } int commonFactor; int counter = 0; if (isMultiple) { commonFactor = snd; do { ...
[ "public long smallestMultiple(int max_divisor) {\n\t\tfor (long candidate_result = max_divisor; \n\t\t\t\tcandidate_result < Long.MAX_VALUE; \n\t\t\t\tcandidate_result += max_divisor) {\n\t\t\t\n\t\t\t// For each candidate, check even divisibility by 1..max_divisor. Except that,\n\t\t\t// if a candidate is divisibl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .WebRTCCancelNotice webrtc_cancel = 2;
boolean hasWebrtcCancel();
[ "void OnVoiceRcdStopRequest(boolean isSend);", "public void stopThread() {\n/* 158 */ Logging.d(\"WebRtcAudioTrackExternal\", \"stopThread\");\n/* 159 */ this.keepAlive = false;\n/* */ }", "public void onCallCancel(Call call, Message cancel)\n { printLog(\"onCallCancel()\",Log.LEVEL_LOW);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the label that displays the total score the player has
private void updateScoreLabel(){ scoreLabel.updateText(Integer.toString(score)); if(getWorld()!=null) getWorld().addObject(scoreLabel, 813 + (scoreLabel.getLength()/2), 622); }
[ "private void updateScore() {\n\t\tlevelLabel.setText(\"Level: \" + game.getLevel());\n\t\tlinesLabel.setText(\"Number of line cleared: \" + game.getScore());\n\t\ttetrisesLabel.setText(\"Number of Tetrises: \" + game.getTetrises());\n\t}", "public JLabel getTotalScoreLabel() {\r\n return playerTotalScore;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jComboBoxBanco1 = new javax.swing.JComboBox<>(); jPanel1 = new javax.swing.JPanel(); jScrollPane3 = new javax.swing.JScrollPane(); ...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Records a Log entry for the specified SQL statement, on behalf of the specified Session object.
void writeToLog(Session session, String statement) throws SQLException { if (lLog != null) { lLog.write(session, statement); } }
[ "public void logStatement(String statement) {\n \t\t// for now just assume a DML log for formatting\n \t\tlogStatement( statement, FormatStyle.BASIC.getFormatter() );\n \t}", "private void log() {\n long elapse = end - start;\n Level level = getLogLevel(elapse);\n if (logger.isLoggable(level)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finalize the game, removing all arlready played and data from that game
public Response finalizeGame(final String name) throws Exception { final String nothingToDelete = "{\"success\": {\"nothingToDelete\":\"true\"}}"; Response respToReturn = null; final GamesDAO gamesDAO = new GamesDAO(); final PlayDAO playDAO = new PlayDAO(); final UserDAO userDAO ...
[ "private void clearGame() {\n\n\t\tremoveAll();\n\t\tendAllThreads();\n\t}", "public void clean(){\n hand.clear();\n score = 0;\n }", "public void clearGames() {\n games.clear();\n }", "public static void Done() {\n animatedSprite = null;\n hotSeat = null;\n btM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO flatten for storage, insert fill values
public void setAdcpsJlnComponent2(List<Integer> adcpsJlnComponent2) { this.adcpsJlnComponent2 = adcpsJlnComponent2; }
[ "private void expand() {\n int[] bigType = new int[2 * typeOfElements.length];\n int[] bigInt = new int[2 * intData.length];\n double[] bigDouble = new double[2 * doubleData.length];\n String[] bigString = new String[2 * stringData.length];\n\n for (int b = 0; b < typeOfElements.l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This populator is to fetch the product details for getFilteredProductLists,getCategoryProductLists apis
public ReadableProduct populateFilteredProduct( Product source, ReadableProduct target, MerchantStore store, Language language) throws ConversionException { // TO DO // need to explore the pricingService to get the product price Validate.notNull(pricingService, "Requires to set PricingService");...
[ "@Override\n public List<Product> getProducts()\n {\n final Map<String, Object> map = new HashMap<>(2);\n map.put(\"queryString\", getId());\n map.put(\"enabled\", true);\n return JpaController.getController(Product.class)\n .executeNamedQueryListResult(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier generalinfo: reference to the processing of term deposit interest application
public String getDepositAccountInterestApplicationTaskReference() { return depositAccountInterestApplicationTaskReference; }
[ "public static void DS_for_Permanent_Expenses_Debt (EObject input, String ADName)\n\t{\n\tOCLForJAVA.init(ADName,input);\n\tString tempOCL=\"\";\n\ttempOCL= \"self.from_agent.taxation_year\";\n\tint taxation_year = OCLForJAVA.evaluateInt(input,tempOCL,\"taxation_year\"); \n\t/** TRACEABILITY: Agent type: officer - ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Describe a subvolume Get details of the specified subvolume.
@ServiceMethod(returns = ReturnType.SINGLE) SubvolumeModelInner getMetadata( String resourceGroupName, String accountName, String poolName, String volumeName, String subvolumeName, Context context);
[ "SubscriptionInfo getSubInfoBySubId(Context ctx, int subId);", "@Path(\"{id}\")\n\tpublic BucketSubResource get(@PathParam(\"id\") String id);", "@Test\n public void eventsEventIdSectorsSectorIdSubsectorsSubsectorIdGetTest() throws ApiException {\n String clientId = null;\n String accessToken =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to decide which move to play.
public int play_move(Info my_info) { // Here is where the user needs to code and return the move. Position temp = my_info.my_posn; temp.update( GlobalDataStore.WEST ); if( my_info.map.moveable_position( temp ) != 0 ) { return GlobalDataStore.WEST; } temp = my_info.my_posn; temp.update( GlobalDat...
[ "public int chooseMove(){\r\n\t\tif(!triedNorth){\r\n\t\t\treturn 1;\r\n\t\t} else if(!triedEast){\r\n\t\t\treturn 2;\r\n\t\t} else if(!triedSouth){\r\n\t\t\treturn 3;\r\n\t\t}else if(!triedWest){\r\n\t\t\treturn 4;\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "public int move(String way) {\r\n\t\tswitch ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { RATE = seekBar.getProgress(); mText.setText(RATE + "拍/分"); }
[ "@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" ] ] } }
int64 rate = 3;
long getRate();
[ "public int bitRate()\n{\n switch(getSamplesPerSecond()/5000) {\n case 1: return BitRate5k; case 2: return BitRate11k;\n case 4: return BitRate22k; case 8: return BitRate44k;\n default: return BitRateUndefined;\n }\n}", "float getIntrestRate(){\n return (0);\n }", "public lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getters and Setters of name, age & salary go here
public String toString(){ DecimalFormat dformat = new DecimalFormat(".##"); return "Employee Name:"+this.name + " Age:"+this.age + " Salary:"+dformat.format(this.salary); }
[ "public void setSalary(double salary) {\n this.salary = salary;\n }", "public Employee(String name, int age, Gender gender, double salary) {\r\n \t//write your code here\r\n this.name = name;\r\n this.age = age;\r\n this.gender = gender;\r\n this.salary = salary;\r\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the longitude of this store information.
public void setLongitude(String longitude);
[ "@Override\n public void setLongitude(double longitude) {\n _location.setLongitude(longitude);\n }", "public void setLongitude(double longitude)\n {\n this.longitude=longitude;\n }", "public void setLongitude(double longitude) {\n\t\tsetValue(Property.LONGITUDE, longitude);\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }