query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Metodo que imprime la lista
@Override public void Imprimir() { GenNodo<T> tmp = _head; String L = ""; while (tmp != null){ L += " " + tmp.get_Criatura(); tmp = tmp.get_Siguiente(); } System.out.println(L); }
[ "public void imprimeListaIdiomas() {\r\n//\t\tfor(String x:idiomasQueDomina) {\r\n//\t\t\tSystem.out.println(x);\r\n//\t\t}\r\n\t}", "public void imprimirLista(List<Polissa> lista) {\r\n System.out.println(\"Numero de polisses= \" + lista.size());\r\n for (int i = 0; i < lista.size(); i++) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Restart a particular datanode, on the same port if keepPort is true
public synchronized boolean restartDataNode(int i, boolean keepPort) throws IOException { DataNodeProperties dnprop = stopDataNode(i); if (dnprop == null) { return false; } else { return restartDataNode(dnprop, keepPort); } }
[ "public String restartReplica();", "void clientRestart();", "void redeclarePort(int newPort);", "public void simulateServerRestart(){\r\n\t\ttry{\r\n\t\t\tserverRestartExecutor.scheduleWithFixedDelay(new Runnable(){\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tif(!isRunning){\r\n\t\t\t\t\t\t//check current ser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether warning enabled or not
boolean isWarningEnabled();
[ "public boolean isWarning() {\n\t\treturn isWarning;\n\t}", "public final boolean isWarnEnabled() {\n/* 570 */ return isLevelEnabled(4);\n/* */ }", "public boolean isWarnEnabled() {\n return logger.isLoggable(WARNING);\n }", "public boolean isWarning() {\n\t\treturn this.warning;\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Weather will be disabled in the future
public boolean isDisabled() { return disabled; }
[ "@Override\n\tprotected void updateWeather() {\n\t\tif (!provider.hasNoSky) {\n\t\t\t;\n\t\t}\n\t}", "private void clearWeather()\n {\n worldInfo.setRainTime(0);\n worldInfo.setRaining(false);\n worldInfo.setThunderTime(0);\n worldInfo.setThundering(false);\n }", "@Override //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ WHAT IT DOES: Creates the ShotGun object altogether PARAMETERS: NONE RETURN: NONE
private void generateSG() { trigger = new Trigger(1025, 455.0, 2); pump = new SGPump(622, 428); rifle = new ShotGun(WIN_W/2, WIN_H/2, pump, trigger); SGSound.add(new Sound("SG1")); SGSound.add(new Sound("SG2")); }
[ "@Override\n public void useGun() {\n \n }", "public ShotGun(double posx, double posy, SGPump pump, Trigger trigger) {\n\t\tsuper(posx, posy);\n\t\t// TODO Auto-generated constructor stub\n\t\ttry {\n\t\t\tavatar = ImageIO.read(getClass().getResourceAsStream(\"/assets/SGBase.png\"));\n\t\t} catch (IOExceptio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add group to groups
public void addGroupToGroups(Groups group) { if (groups != null) { groups.add(group); } }
[ "public void addGroup(String group);", "void addGroup(CG group);", "private CyNode addGroup(PathwayElement group) {\n \t\tCyGroup cyGroup = CyGroupManager.findGroup(group.getGroupId());\n \t\tif(cyGroup == null) {\n \t\t\tcyGroup = CyGroupManager.createGroup(group.getGroupId(), null);\n \t\t}\n \t\tCyNode gn = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Kery on 2018/11/28.
public interface BasePresenter { void initialize(); void success(Object response, String tag, String operate); void error(Request request, Response response, Context context, Exception e, String tag, String operate); void inProgress(int progress); void showLoading(); void hideLoading(); }
[ "@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\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An extra bitmap will be kept in the dictionary for deleted rows. The record will not be deleted from the bitmap. As many 0 are there this bitmap is highly compressible. Assumption ==> id = rowNumber
public void Delete(int rowNumber, String recordvalue) {// The recordvalue // should be in the // index. String hashKey = hashKey(recordvalue); this.data_dictionary.get(hashKey)[INSTRUCTION_BIT_LENGTH + rowNumber - 1] = false;// set the bitmap to 0 this.Insert(DELETE_BITMAP_INDEX_...
[ "public void remove(Record r) \n {\n \t//int k=toHashKey(r.key);\n \tint k=r.hashKey;\n \tint i=0;\n \twhile(i<elements){\n \t\tlong sh=(long)stepHash(k);\n \t\tlong l=(long)i;\n \t\tlong n=l*sh;\n \t\tlong b=(long)baseHash(k);\n \t\tlong m=(long)max;\n \t\tlong q=(int) ((b+n)%m);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string uniqueId = 1;
public boolean hasUniqueId() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "public int getUniqueID() {\n return uniqueID;\n }", "String registerNewId();", "public void setUniqueId(long uniqueId) {\n this.uniqueId = uniqueId;\n }", "int getUniqueID();", "Identifier generateTempUniqueIdentifier();", "public void setUniqueId(String value) {\r\n this.uniqueId ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_admin_leave_management_approve, container, false); }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes the variance of a given array.
public double computeVarianceOfArray(int[] elements) { double average = computeAverageOfArray(elements); double squareSum = 0; for (int element : elements) { double distanceToAverage = element - average; squareSum += Math.pow(distanceToAverage, 2); } return squareSum / elements.length; }
[ "public static double variance(double[] data) {\n\t\tdouble var = 0d;\n\t\tint n = data.length;\n\t\tdouble mean =mean(data);\n\t\tfor (int i=0; i<n; i++)\n\t\t\tvar+=(data[i]-mean)*(data[i]-mean);\n\t\tvar /= n;\n\t\n\t\treturn var;\n }", "public static double calculateVariance(double[] data) {\n Doubl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Only valid when networkEndpointType is "SERVERLESS". Only one of cloudRun, appEngine or cloudFunction may be set. optional .google.cloud.compute.v1.NetworkEndpointGroupCloudFunction cloud_function = 519893666;
com.google.cloud.compute.v1.NetworkEndpointGroupCloudFunctionOrBuilder getCloudFunctionOrBuilder();
[ "public Get setNetworkEndpointGroup(java.lang.String networkEndpointGroup) {\n this.networkEndpointGroup = networkEndpointGroup;\n return this;\n }", "@Override\n public boolean supportsMultipleTrafficTypes() throws CloudException, InternalException {\n return false;\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column CULSITE.M_CUST_VOUCHER_PURSE.VALID_START
public Date getValidStart() { return validStart; }
[ "public String getCheckInStart() { return CheckInStart; }", "@Temporal(TemporalType.DATE)\n @Column(name=\"START_DATE\", length=10)\n public Date getStartDate() {\n return this.startDate;\n }", "public java.util.Date getValidFrom() {\n\t\treturn this.validFrom;\n\t}", "public long getStart(){ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Activity interface, an activity should implement this interface to work where Dk library.
public interface DkActivity { /** * Obtain itself. */ Activity getActivity(); /** * Specify id of layout resource for this fragment. */ int layoutResourceId(); /** * Specify id of container inside the layout of this fragment. This id can be used in * fragment transaction for other screens. */ int ...
[ "public interface ExtensionActivity extends Activity {\n}", "public interface IActivityController {\n\n /**\n * Adds new activity\n *\n * @return\n *\n * @param title\n * @param desc\n */\n boolean addActivity(String title, String desc);\n\n /**\n * Označí činnost jako \"a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
save Or update Order
@RequestMapping(value = "/order/save", method = RequestMethod.POST, consumes = "application/json") public int saveOrder(@RequestBody Order order) { Order o = this.orderRepository.findById(order.id).get(); if (o != null) { order.id = o.id; } this.orderRepository.save(order); return 0; }
[ "void save(Order order);", "XiaobaoResult saveOrder(TbOrder order);", "public void ordersave(Order order) {\n\t\tordermapper.insert(order);\n\t}", "public abstract int saveOrder(Order order);", "boolean saveOrder(Order order) throws SQLException;", "@Override\n\tpublic void saveOrUpdate(Orders order) {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Callback interface for delivering parsed responses.
interface ResponseListener<T> { /** * Called when a response is received. */ void onResponse(T response); }
[ "public void onResponseParsed() throws IOException {\n // NoOp.\n }", "@Override\n public void onResponse(String response) {\n parseItem(response, code);\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t}", "@Override\n pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string userAgent = 16; optional string userAgent = 16;
boolean hasUserAgent();
[ "public Builder setUserAgent(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000200;\n userAgent_ = value;\n onChanged();\n return this;\n }", "@Nullable\n public abstract String getDefaultUserAgent();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
finds the gate ID using the name of the gate
public int findGateIndex(String gateName) { //TESTING System.out.println("Inside Loader.findGateIndex()"); Iterator gateIter = gm.createIterator(); int gateId = -1; //cannot find while(gateIter.hasNext()) { Gates gate = (Gates) gateIter.next(); /* create gate object over iterator list */ ...
[ "public abstract String getGateID();", "public static String getID(String name){\n\t\treturn nameMapping.get(name);\n\t}", "public String getGate() {\r\n\treturn gate;\r\n }", "private BuiltInGateWithGUI getGUIChip(String chipName) {\n BuiltInGateWithGUI chip = null;\n\n BuiltInGateWithGUI[] ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Admin Check for approve button. Click Button
@Test public void testEnrouteTimesheetApproveAdmin() throws Exception { }
[ "public void onApprovedPressed() {\n if (!summary.isApproved()) {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Approval\");\n alert.setHeaderText(\"Are you sure you want to approve this report?\");\n alert.setContentText(\"This action...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Direction of container. Shows along generating line into direction, where the container is open. Length of this vector is exactly containers height.
public Vector3f getDirection() { return direction; }
[ "public Vector getDirection() {\n\t\treturn direction;\n\t}", "public Vector4f direction() {\r\n\t\treturn new Vector4f(\r\n\t\t\t\tx > 0 ? 1 : x < 0 ? -1 : 0, \r\n\t\t\t\ty > 0 ? 1 : y < 0 ? -1 : 0,\r\n\t\t\t\tz > 0 ? 1 : z < 0 ? -1 : 0,\r\n\t\t\t\tw > 0 ? 1 : w < 0 ? -1 : 0\r\n\t\t\t);\r\n\t}", "public Vector...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the cif of this empresa.
public void setCif(String cif);
[ "public void setORM_Certifcertif(orm.Certif value) {\r\n\t\tthis.certifcertif = value;\r\n\t}", "@Override\n\tpublic void setCivico(String civico) {\n this.civico = civico;\n }", "public void setICconf(ICconf ic) {\n this.icConf = ic;\n }", "public void setONE_FACILITYBY_CIF(String ONE_FAC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__JSonObject__Group_2_1__0" $ANTLR start "rule__JSonObject__Group_2_1__0__Impl" InternalJsonDsl.g:9602:1: rule__JSonObject__Group_2_1__0__Impl : ( ',' ) ;
public final void rule__JSonObject__Group_2_1__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalJsonDsl.g:9606:1: ( ( ',' ) ) // InternalJsonDsl.g:9607:1: ( ',' ) { // InternalJsonDsl.g:9607:1: ( ',' ) ...
[ "public final void rule__JsonAnnexObject__Group_2_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJsonParser.g:1834:1: ( rule__JsonAnnexObject__Group_2_1__1__Impl )\n // InternalJsonParser.g:1835:2: rule__JsonAnnexObj...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo estatico para cerrar la conexion a la base de datos del DAO
public void close() { try{ _conn.close(); } catch ( SQLException e ){ e.printStackTrace(); } }
[ "void closeConnection() throws DAOException;", "private void desconectar() {\n if (this.hayConexion()) {\n try {\n this.conexion.close();\n this.conexion = null;\n } catch (SQLException ex) {\n Logger.getLogger(JDBCM.class.getName()).log(Le...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getter method for field "imagePath" (generated)
public String get__imagePath() { // create form for service request to pass reference ID Form form = new Form(); form.param("klu__referenceID", getKlu__referenceID()); klu__logger.info("[Product] Calling service "+klu__serviceURI+ "/get__imagePath with form: "+form.asMap());...
[ "@Override\n public String getPath() {\n return this.imagePath;\n }", "public File getImagePath()\n\t{\n\t\treturn img;\n\t}", "String getPathImg();", "public String getImgPath() {\r\n\t\treturn imgPath;\r\n\t}", "public java.lang.String getImgPath () {\r\n\t\treturn imgPath;\r\n\t}", "@Effec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); T = Integer.parseInt(br.readLine()); for(int tc=1;tc<=T;tc++) { StringTokenizer st = new StringTokenizer(br.readLine()); N = Integer.parseInt(st.nextTo...
[ "@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" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { SplashScreen.fonteditor.putString( SplashScreen.Key_GET_FONT_ID, "3"); SplashScreen.fonteditor.commit(); Constants.selectedFont = SplashScreen.fontpref .getString(SplashScreen.Key_GET_FONT_ID, ""); final FragmentTransaction ft ...
[ "@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" ] ] } }
Sets the "CascadeConfiguration" element
public void setCascadeConfiguration(com.microsoft.schemas.xrm._2011.metadata.CascadeConfiguration cascadeConfiguration) { generatedSetterHelperImpl(cascadeConfiguration, CASCADECONFIGURATION$2, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON); }
[ "public void setCascadePolicy(int policyConstant) {\r\n cascadePolicy = policyConstant;\r\n }", "@Override\n\tpublic void setConfiguration(Configuration arg0) {\n\t\tconf = arg0;\n\t}", "public void setCascadeStyles(Iterable<CascadeStyle> cascadeStyles);", "void setConfiguration(String aConfiguratio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an info number about this Header instance. It can be used for sorting purposes (to distinguish Header objects that would otherwise compare as equal). Currently only VBus 2.0 datagrams using command 0x0900 use this info.
public int getInfo() { return 0; }
[ "public int get_header_seqno() {\n return (int)getUIntElement(offsetBits_header_seqno(), 16);\n }", "public java.lang.String getHeaderInfo12 () {\n\t\treturn headerInfo12;\n\t}", "@java.lang.Override public int getHdrValue() {\n return hdr_;\n }", "public java.lang.String getHeaderInfo6 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Database at the given (= variable url) location
public static void createNewDatabase(Connection conn) { DatabaseMetaData meta = null; try { meta = conn.getMetaData(); //System.out.println("The driver name is " + meta.getDriverName()); } catch (SQLException e) { e.printStackTrace(); } //System.out.println("A new database has been created."); }
[ "public void createNewDatabase() {\r\n try (Connection conn = DriverManager.getConnection(driverURL)) {\r\n if (conn != null) {\r\n DatabaseMetaData meta = conn.getMetaData();\r\n// System.out.println(\"Database database.db created.\");\r\n }\r\n } c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Transfer ORR assembly instruction to machine code instruction.
private String orr(String arg[], Integer line) { // Initialize String instr = new String("0000000000000000"); // Check the Number of Parameters if(arg.length != 2) { mySimulator.ui.display(line.toString() + ": " + "ORR: The number of parameters is incorrect. ORR should have 2 parameters.\n"); return...
[ "public final void mOR() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = OR;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// C:\\\\Users\\\\darfores\\\\git\\\\asup_0_9_0\\\\org.smeup.sys.db.syntax.ibmi\\\\src\\\\org\\\\smeup\\\\sys\\\\db\\\\syntax\\\\ibmi\\\\parser\\\\ddl\\\\DDL.g:295:4: ( O R )\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to create znode in zookeeper ensemble
public static void create(String path, byte[] data) throws KeeperException,InterruptedException { if(zk.exists(path, true) == null) { zk.create(path, data, ZooDefs.Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT); // System.out.println("då den här"); } }
[ "public void createZnode() throws KeeperException, InterruptedException {\n\n byte data_value[] = new String(\"watchone\").getBytes();\n List<ACL > acl = ZooDefs.Ids.OPEN_ACL_UNSAFE;\n CreateMode createMode = CreateMode.EPHEMERAL;\n String s = zooKeeper.create(ZNODE_PATH, data_value, acl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a string representation of this stack. Complexity: O(n) Precondition: The LinkedStack object has been instantiated. Postcondition: Returns a string representation of the stack. The stack itself is unchanged.
public String toString() { iterator = new LinkedStackIterator(); String stackString = "<TOP OF STACK>"; while (iterator.hasNext()) { stackString += "\n" + iterator.next(); } return stackString + "\n<BOTTOM OF STACK>"; }
[ "public String toString() {\n String str = \"\";\n for (int i = stack.size() - 1; i >= 0; i--) {\n str += stack.get(i).toString() + \"\\n \";\n }\n str += \"\\n\";\n return str;\n }", "public String toString () {\n\t\treturn stack.toString();\n\t}", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: use constant instead of number
private boolean walkerIsNearToSurface(final Walker walker) { return walker.getPosition().getZ() >= (substrate.getValueWithFront(walker.getPosition().getX(), walker.getPosition().getY()) - configuration.getKernel3D().length * 0.6928); }
[ "private static void excliurNum() {\n\t\t\n\t}", "long getValue203();", "@Override\n public int factor() {\n return 1;\n }", "long getValue031();", "int getValue210();", "long getValue175();", "long getValue071();", "int getValue298();", "long getValue231();", "private static int getMin(){\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public abstract void colRemoveAt(int i);
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use PutRequest.newBuilder() to construct.
private PutRequest() {}
[ "public cn.nextop.gadget.etcd.grpc.PutResponse put(cn.nextop.gadget.etcd.grpc.PutRequest request) {\n return blockingUnaryCall(\n getChannel(), getPutMethod(), getCallOptions(), request);\n }", "HttpRequestBuilder PUT(String url);", "@Override\n\tpublic void performPUT(PUTRequest request) {\n\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Callbacks to form the AD to the model
protected abstract void models__notifyDeparted(NetworkEvent event);
[ "public void createObject() {\n if (this.selectedAd_id != null && !this.selectedAd_id.equals(\"\")) {\r\n try {\r\n APIContext context = new APIContext(UserSessionBean.getUserSession().getUser().getLogin_token());\r\n CustomAudience customAudience = new AdAccount(this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called by the system to remove the Service when it is no longer used. Ends textToSpeech and Voice_Engine, as well as calling Activity's onDestroy(). The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object a...
@Override public void onDestroy() { Log.d(TAG, "onDestroy()"); disableVoiceEngine(); sensorListener.disable(); if (textToSpeech != null) { textToSpeech.stop(); textToSpeech.shutdown(); textToSpeech = null; } super.onDestroy(); }
[ "@Override\n public void onDestroy() {\n super.onDestroy();\n\n this.serviceInstance = null;\n sendBroadcast(new Intent(eWINESensingService.INTENT_SERVICE_STOPPED));\n\n }", "@Override\n\tpublic void onDestroy() {\n\t\tdisableVoiceEngine();\n\t\tif (textToSpeech != null) {\n\t\t\ttextTo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
onPostExecute displays the results of the AsyncTask.
@Override protected void onPostExecute(String result) { try { if (result.startsWith("[")) { JSONArray jsonArray = new JSONArray(result); for (int i = 0; i < jsonArray.length(); i++) { JSONObject myJson = jsonArra...
[ "@Override\n protected void onPostExecute(String s) {\n // execution of result of Long time consuming operation\n progressDialog.dismiss();;\n tv_result.setText(response);\n super.onPostExecute(s);\n\n Log.e(\"Print\", \"Response in onPostExecute section...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/create a method createEmail().Based on provided username, last name and email type. your method should return complete email address
public static void main(String[] args) { Main email=new Main(); //2- wirte a method to return whether giving number is prime or not? /*3- create class student that will have a method getGrade. *your method should accept the score of a student and return a grade: * score >90 A * score >80 B * score >70 ...
[ "public SiteRegistrationPage step_Create_New_Account_Using_Email() throws FrameworkException {\n textfield(txtFld_emailAddr).enterText((faker.color().name()+faker.number().numberBetween(100,999)+\"@mailinator.com\").replaceAll(\"\\\\s+\",\"\"));\n button(btn_createAcc).click();\n log.info(\"Cre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Access method for addable.
public Character getAddable() { return addable; }
[ "public boolean isAddable() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tvoid add() {\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean isAddable() {\n\t\treturn false;\r\n\t}", "@Override\n\tvoid add() {\n\n\t}", "public void add(){\n \n }", "public void add(){\n }", "@Override\n public boole...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fin proc. funcion que me retorna si es un caracter especial o una variable de una char
public static boolean esEspecial(char caracter){ boolean band; //En caso de que sea un caracter especial... if(caracter==' '||caracter==10||caracter==')'||caracter=='('||caracter==','||caracter==';'||caracter==':'||caracter=='.'||caracter=='?'||caracter=='¿'){ band=true; }else{ band=false; } return...
[ "public boolean hasChar();", "static boolean isText(char param1Char) {\n/* 4589 */ switch (param1Char) {\n/* */ case '%':\n/* */ case 'n':\n/* 4592 */ return true;\n/* */ } \n/* 4594 */ return false;\n/* */ }", "boolean hasVarString();", "sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates a value from 0 to 1 for the community cards, similar to the pattern player
private double mapCommunityCards(List<Card> communityCards) { double communityValue = 0; for (Card card : communityCards) { communityValue += card.getRank() / (double) Card.ACE; } return communityValue / (communityCards.size() == 0 ? 1 : communityCards.size()); ...
[ "int value(){\n int nSumPlayer = 0;\n for(int i=0 ; i<= 5 ; i++)\n nSumPlayer += pits[i];\n\n int nSumOpponent = 0;\n for(int i=7 ; i<= 12; i++)\n nSumOpponent += pits[i];\n\n if(nSumPlayer == 0\n || nSumOpponent == 0)\n {\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string s2c_msg = 2;
public java.lang.String getS2CMsg() { java.lang.Object ref = s2CMsg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ...
[ "public void setMessage2(String message2){\n this.message2 = message2;\n }", "public com.futu.opend.api.protobuf.Notify.S2C getS2C() {\n return s2C_;\n }", "CtoSMessage parseInCtoSMessage(String message);", "public pomelo.area.ActivityHandler.totalInfo getS2CData() {\n if (s2CDataBui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the configured frame factory.
FrameFactory getFrameFactory();
[ "@SuppressWarnings(\"rawtypes\")\n public Class<? extends Factory> getFactory() {\n return factory;\n }", "public final BaseTypeFactory getFactory() {\n return factory;\n }", "public DefaultRxFrameFactory() {\n factories = new HashMap<>();\n //\n // add basic rx frame factori...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register a namespace prefix
private java.lang.String registerPrefix(javax.xml.stream.XMLStreamWriter xmlWriter, java.lang.String namespace) throws javax.xml.stream.XMLStreamException { java.lang.String prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); ...
[ "public void addNamespace(String pPrefix) {\n // check if already registered.\n if (!namespaces.containsKey(pPrefix)) {\n LOGGER.debug(\"Add namespace for prefix '{}'\", pPrefix);\n namespaces.put(pPrefix, NAMESPACE_PREFIX + pPrefix);\n }\n }", "private java.lang.String registerPrefix(javax.xm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Replace the contents of a view (invoked by the layout manager)
@Override public void onBindViewHolder(final PointAdapterViewHolder h, final int position) { h.e_text.setText(points.get(h.getAdapterPosition()).text); h.text.setText(points.get(h.getAdapterPosition()).text); h.check.setChecked(points.get(h.getAdapterPosition()).checked); if (editMo...
[ "public void updateView(){\n\t\tview.updateView();\n\t}", "@Override\n public void updateView() {\n view.update();\n }", "protected abstract void setView(IJssView anotherView);", "public void updateView(JPanel newView) {\r\n\t\tremoveAll();\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tGridBagCon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a data evictor that sets fields to their default values. Primitive fields are only evicted if evictPrimitives=true.
public DataEvictor(ZooClassDef def, boolean evictPrimitives) { ArrayList<Field> rfl = new ArrayList<>(); ArrayList<ZooFieldDef> pfl = new ArrayList<>(); for (ZooFieldDef f: def.getAllFields()) { if (!f.isPrimitiveType()) { rfl.add(f.getJavaField()); } else if (evictPrimitives) { pfl.add(f); } }...
[ "private FetchedManifestData createDefaultFetchedManifestData() {\n FetchedManifestData data = new FetchedManifestData();\n populateDataWithDefaults(data);\n return data;\n }", "interface Compiled extends TypeWriter.FieldPool {\n\n /**\n * A no-op field registry that does no...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The invocation handler API.
public interface Function { /** * Preserves arguments for partial and deferred invocation. * @param args the arguments to defer to a later invocation * @return the function with the preserved arguments */ Function curry(Object... args); /** * Transforms the inner target set according to th...
[ "public interface InvocationHandler {\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable ;\n\n }", "public void invoke() throws Exception {\n Object returnVal = method.invoke(handler, args);\n responder.setEntity(returnVal);\n responder.send();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor. Loads all of the Favorite Podcasts into memory.
DataStore() { Log.getInstance().write(Log.LOGLEVEL_TRACE, "DataStore: Starting."); //PodcastCache = new ArrayList<Podcast>(); podcastMap = new HashMap<PodcastKey, Podcast>(); podcastLock = new HashMap<PodcastKey, Boolean>(); podcastLockTime = new HashMap<PodcastKey, Long>(); ...
[ "private void fetchFavorites() {\n String[] projection = {\n FavoriteEntry._ID,\n FavoriteEntry.COLUMN_MOVIE_POSTER_PATH,\n FavoriteEntry.COLUMN_MOVIE_ORIGINAL_TITLE,\n FavoriteEntry.COLUMN_MOVIE_ID\n };\n Cursor cursor = getContentRes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the rodun value for this AflamarkTypeUser.
public void setRodun(java.math.BigDecimal rodun) { this.rodun = rodun; }
[ "public void setUren(int ur) {\n\t\tthis.uren = ur;\n\t}", "public void setRuc(String ruc) {\n this.ruc = ruc;\n }", "public void setRaUserId(Integer raUserId) {\n this.raUserId = raUserId;\n }", "@POST\n @Path(\"/set__RND_USER\")\n public void set__RND_USER(\n @FormParam(\"RN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The working directory of the process
public void setDir( final File dir ) { m_dir = dir; }
[ "public String getWorkingDir(){\n Path WD = Paths.get(\"\");\n return WD.toAbsolutePath().toString();\n }", "public static final String getCurrentWorkingDir() {\r\n\t\treturn System.getProperty(\"user.dir\");\r\n\t}", "private static String getWorkingDir() {\n\t\tFile f = new File(\"\").getAbso...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
L'action FenetreSupprimer permet l'appel de la fenetre Supprimer
public FenetreSupprimerAction (ListeObjet listeObjet) { super(Langue.getTraduction("delete")); this.listeObjet = listeObjet; }
[ "@FXML\n public void supprimer(ActionEvent event) {\n Entrainement selectedForDeletion = tableView.getSelectionModel().getSelectedItem();\n if (selectedForDeletion == null) {\n AlertMaker.showErrorMessage(\"Entrainement non séléctionné\", \"séléctionner un entrainement à ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use your MMOS ApiKey credentials and an MMOS host to create an instance to send and receive player and classification specific data
public Api(String apiKey, String apiSecret, String game, String protocol, String host, String port, Version version) { this.apiKey = apiKey; this.apiSecret = apiSecret; this.game = game; this.protocol = protocol; this.host = host; this.port = port; switch (version...
[ "public void createSpot() {\n RequestSpotInstancesRequest requestRequest = new RequestSpotInstancesRequest();\n\n // Request 1 x t1.micro instance with a bid price of $0.03.\n requestRequest.setSpotPrice(\"0.03\");\n requestRequest.setInstanceCount(Integer.valueOf(1));\n\n // Setu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the v invest policy local service.
public com.viettel.ims.core.service.VInvestPolicyLocalService getVInvestPolicyLocalService() { return vInvestPolicyLocalService; }
[ "PolicyManager getPolicyManager();", "public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }", "public java.lang.String getServicefeetype(){\n return localServicefeetype;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final String mo26325a(int i, int i2, String str, byte[] bArr, String str2, String str3, List<C6809a> list) throws Exception { String str4 = str2; String str5 = str3; ArrayList arrayList = new ArrayList(); if (str4 != null) { arrayList.add(new C12461b("Content-Encoding"...
[ "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" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); myEditText = (EditText)findViewById(R.id.myEditText); ListView myListView = (ListView) findViewById(R.id.customListView); Button btnAddItem ...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo para mostrar parametro titulo
public String getTitulo() { return titulo; }
[ "public void buscarDescripcion(String titulo) {\n //Comprobamos que no llega una cadena vacia.\n if (!titulo.isEmpty()) {\n //Preparamos la consulta HQL para buscar el objeto Film con dicho titulo.\n String consulta = \"SELECT peli.description FROM Film peli WHERE peli.title like...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: p
public abstract long mo40150p() throws IOException;
[ "public final void p(){\n\t\t\n\t}", "private Object p(Object P){\n\t\tSystem.out.println(P); logFile.add(P + \"\"); return P;\n\t}", "@Override\n\tpublic int getP() {\n return p_;\n }", "public P getP();", "void transform(P p);", "public void paly() {\n\t\t\n\t}", "private static void pythP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 reason = 2;
public boolean hasReason() { return ((bitField0_ & 0x00000002) == 0x00000002); }
[ "public int getReason( )\r\n {\r\n return reason;\r\n }", "int getFAILURE();", "private AnswerReason(int aReasonCode) {\n reasonCode = aReasonCode;\n }", "public AlarmReason get_alarm_reason()\r\n/* */ {\r\n/* 1001 */ return this.alarm_reason;\r\n/* */ }", "Reason getReas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse the predicate string as a unary CharPred.
private static CharPred parseCharPredicate(String predicate) throws AutomataException { LinkedList<ImmutablePair<Character, Character>> intervals = new LinkedList<ImmutablePair<Character, Character>>(); if (predicate.charAt(0) != '[' || predicate.charAt(predicate.length() - 1) != ']') throw new AutomataExce...
[ "protected Predicate parsePredicate(String predImage) {\n\t\treturn TestLib.genPred(typenv, predImage);\n\t}", "public void testParsePredicateNoArguments() throws MUParserException {\n ParseTree pt = parser.parse(\"predicate\", \"PredicateName ()\");\n System.out.println(\"parse tree: \" + pt);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve all posts from all of author's friends.
List<Post> getAllPostsByAuthorAllFriends(long id);
[ "public ArrayList<Post> getAllPosts(){\n\t\tArrayList<Post> allPosts = new ArrayList<Post>();\n\t\tallPosts.addAll(posts);\n\t\tfor(User friend: friends) {\n\t\t\tallPosts.addAll(friend.getUsersPosts());\n\t\t}\n\t\t\n\t\tCollections.sort(allPosts);\n\t\t return allPosts;\n\t}", "public Collection<Post> getUserPo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performing action onItemSelected and onNothing selected
public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long id) { item = category[position]; }
[ "public void onItemSelected(Bundle params);", "public void onItemSelected(AdapterView arg0, View arg1, int arg2, long arg3) {\n }", "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n }", "@Overri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks that quota is decreased when workspace is removed but not when is just stopped.
public void testQuotaWhenWorkspaceIsRemoved() throws Exception { ManageableRepository repository = helper.createRepository(container, DatabaseStructureType.MULTI, null); WorkspaceEntry ws1Entry = helper.createWorkspaceEntry(DatabaseStructureType.MULTI, null); WorkspaceEntry ws2Entry = helper.cr...
[ "boolean hasRemoveQuota();", "private Boolean isExceeded(Project project){\n\t\treturn false;\n\t}", "void checkQuota(Collection<Dag.DagNode<JobExecutionPlan>> dagNode) throws IOException;", "private boolean quotaStorageExceeded(QuotaStorage quotaStorage) {\n if (quotaStorage.getStorageSizeGB() == null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Narrow CORBA::Object to ServerIMpl
public static ServerIMpl narrow(org.omg.CORBA.Object obj) { if (obj == null) return null; if (obj instanceof ServerIMpl) return (ServerIMpl)obj; if (obj._is_a(id())) { _ServerIMplStub stub = new _ServerIMplStub(); stub._set_d...
[ "public static org.chan.quicklife.service.aidl.IServer asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof org.chan.quicklife.service.aidl.IServer))) {\nreturn ((org.chan.quicklife.service.ai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all org.semanticwb.model.Collection with a determined Creator
public static java.util.Iterator<org.semanticwb.model.Collection> listCollectionByCreator(org.semanticwb.model.User value,org.semanticwb.model.SWBModel model) { org.semanticwb.model.GenericIterator<org.semanticwb.model.Collection> it=new org.semanticwb.model.GenericIterator(model.getSemanticObject...
[ "public static List<Creator> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public List<Creator.Builder> getCreators() {\r\n\t\t\tif (_creators == null)\r\n\t\t\t\t_creators = new LazyList(Creator.Builder.class);\r\n\t\t\treturn _creators;\r\n\t\t}", "public List<Creator> getCreators() {\r\n\t\tret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Util method to write an attribute with the ns prefix
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName, java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ if (xmlWriter.getPrefix(namespace) == null) { ...
[ "private void writeAttribute(java.lang.String namespace, java.lang.String attName, java.lang.String attValue,\r\n\t\t\tjavax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {\r\n\t\tif (namespace.equals(\"\")) {\r\n\t\t\txmlWriter.writeAttribute(attName, attValue);\r\n\t\t} else {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method sets the value of the database column KMORDER.ORDER_ASSESS_INFO_REPLY.REPLY_CONTENT
public void setReplyContent(String replyContent) { this.replyContent = replyContent; }
[ "java.lang.String getReplyNote();", "public void setmReply(String mReply) {\n this.mReply = mReply == null ? null : mReply.trim();\n }", "public Builder setOrderReply(client.Protos.OrderReply value) {\n if (orderReplyBuilder_ == null) {\n if (value == null) {\n throw new Nul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.activity_experience_diary_edit); experienceDetials = new ArrayList<ExperienceDiaryDetailEntity>(); int sid = getIntent().getIntExtra("sid", 0); uid = getIntent().getIntExtra("uid", 0); activityid = getIntent().ge...
[ "@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" ] ] } }
optional int32 eresult = 1 [default = 2];
public int getEresult() { return eresult_; }
[ "int getResultNum();", "public int getResultValue() {\n return result_;\n }", "int getSrval();", "public int getRet() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getResult(int x) {\n\t\treturn 0;\n\t}", "long getValue111();", "long getValue031();", "long getResult();", "long getValue011();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allow derived classes to insert an event into the event stream to be recorded.
protected synchronized void insertEvent(AWTEvent e) { if (watcher != null) watcher.eventDispatched(e); }
[ "public void addEvent(SushiEvent event) {\n\t\tNode node = XMLUtils.eventToNode(event);\n//\t\tXMLUtils.printDocument((Document) node);\n\t\tif (node == null) System.err.println(\"Event was not parseable!\");\n\t\tlong timeInMilliseconds = event.getTimestamp().getTime();\n\t\tthis.esperRuntime.sendEvent(new Current...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
VoteFirst is the first round for which this participation is valid.
@ApiModelProperty(required = true, value = "VoteFirst is the first round for which this participation is valid.") public Integer getVotefst() { return votefst; }
[ "public Boolean getVoteStart() {\n return voteStart;\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof FirstRoundVote)) {\n return false;\n }\n FirstRoundVote other = (FirstRoundVote) object;\n if ((this.cpr == null && other.cpr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ User findWithFeedbacksById(Long id)
@Test @DisplayName("ID로 User 찾기, Feedbacks 페치 조인 -> 존재하지 않음") void findWithFeedbacksByIdNonExist() { //Given Long nonExistId = Long.valueOf(1); given(userRepository.findWithFeedbacksById(nonExistId)).willReturn(Optional.empty()); //When, Then assertThrows(UserNotFoundedException.class, () -> { use...
[ "@GetMapping(\"/feedbacks/{id}\")\n @Timed\n public ResponseEntity<Feedback> getFeedback(@PathVariable Long id) {\n log.debug(\"REST request to get Feedback : {}\", id);\n Feedback feedback = feedbackService.findOne(id);\n return Optional.ofNullable(feedback)\n .map(result -> n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ENDPOINT get billadministration: if we click on a cartracker, we get the vehicle
public Vehicle getVehicleByCartrackerId(Long cartrackerId){ Vehicle vehicle = null; return vehicle; }
[ "private void getVehicleList() {\n ApiCall mApiCall = new ApiCall(getActivity(), this);\n mApiCall.getVehicleList();\n }", "public nl.webservices.www.soap.DutchVehicleGetVehicleResponseType dutchVehicleGetVehicle(nl.webservices.www.soap.DutchVehicleGetVehicleRequestType parameters) throws java.rm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a digest view holder.
public SingleImageArticleDigestViewHolder(SingleImageArticleDigestView singleImageArticleDigestView) { super(singleImageArticleDigestView.getView()); mSingleImageArticleDigestView = singleImageArticleDigestView; digestView = (RelativeLayout) itemView; mDigestTitle = (Text...
[ "public ViewHolder(View itemView) {\n // Stores the itemView in a public final member variable that can be used\n // to access the context from any ViewHolder instance.\n super(itemView);\n\n iconDetail = (ImageView) itemView.findViewById(R.id.iconDetail2);\n n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A method for fetching arena spawns.. This should only be used for startup because it can lag the main thread (slow harddrive or something like that)
public List<String> getArenaSpawns(String arenaName) { File arenaFile = new File(pluginDirectory.getName() + "/arenas/" + arenaName + ".act"); // checking to see if the arena actually exists or not.. if (!arenaFile.exists()) return null; try { FileReader fReader = new FileReader(arenaFile); ...
[ "public ArenaData loadArena (String name) {\n ArenaData arena = new ArenaData();\n\n if (arena_list.contains(name)) {\n File arenaFile = new File(mainDir + File.separator + \"Arenas\" + File.separator + name + \".yml\");\n FileConfiguration arenaConf = YamlConfiguration.loadConf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the contents of the given list by following the rdf:first/rdf:rest structure of the list
public static List<Value> asList(final Model theGraph, final Resource theRes) { List<Value> aList = Lists.newArrayList(); Resource aListRes = theRes; while (aListRes != null) { Optional<Resource> aFirst = getResource(theGraph, aListRes, RDF.FIRST); Optional<Resource> aRest = getResource(theGraph, aListRe...
[ "public List <RandomVariable> rest(List <RandomVariable> rvlist){\n\t\treturn rvlist.subList(1, rvlist.size());\n\t\t\n\t}", "List<NaturalResource> list();", "@Test\n public void testGetConceptsWithList() throws Exception {\n\n // NOTE, this includes a middle concept code that is bougs\n final String url...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fields of a profile
public void CreateAccount() { Scanner scan = new Scanner(System.in); System.out.println("Create an username"); setUsername(scan.nextLine()); System.out.println("Create a password"); setPassword(scan.nextLine()); System.out.println("Account succesfully created!"); profs.add(new Profiles(userna...
[ "public List<ProfileFieldProperty> profileFieldProperties();", "public static List getAccountInfoFields() {\n\t\tList fields = new ArrayList();\n\t\t\n\t\tfields.add(authType);\n\t\tfields.add(action);\n\t\tfields.add(telephoneNumber);\n\t\tfields.add(username);\n\t\tfields.add(entryPoint);\n\t\tfields.add(startT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load cubrid broker config info
public void loadData() { try { if (firstView) { String contents = persistUtil.loadCubridBrokerConfigString( confFile.getAbsoluteFile(), charset); BrokerConfig brokerConf = persistUtil.parseStringLineToBrokerConfig(contents); firstView = false; editorComp.setBrokerConfig(brokerConf); edito...
[ "private void loadConfig() {\n\t\tConfiguration config = new Configuration(AuctionCon);\n\t\tconfig.load();\n\t\tthis.globalMessage = config.getBoolean(\"use-global-messages\", false);\n\t\tthis.useMysql = config.getBoolean(\"use-mysql\", true);\n\t\tthis.mysqlHost = config.getString(\"MysqlHost\", \"localhost:330...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the invocation interface.
public void setInvocationInterface(String newVal){ invocationInterface = newVal; }
[ "public void setInterface(final String _interface);", "public void setInterface(java.lang.String _interface) {\r\n this._interface = _interface;\r\n }", "public void setInterface(String inInterface){\n\t\tInterfaceKey = inInterface;\n\t}", "public void setInterfaceName(java.lang.String interfaceName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Number of segments in each piecewise classifier
public void general_classifier(dLFormula formula, File templatefile) throws FileNotFoundException { Scanner read = new Scanner(templatefile); read.useDelimiter(","); String templ = ""; String dummy_string = "xsampling=["; ArrayList<String> template_lists = new ArrayList<String>(); int counter = 0; whi...
[ "private int segmentCount(boolean segmented) {\n return segmented ? segmentCount : 1;\n }", "public int numberOfSegments() {\n int temp = segsindex;\r\n \treturn temp;\r\n }", "public int obtainNumSplits(){\n\n ContinuousProbabilityTree cpt;\n \n cpt = getTree();\n \n return cpt.obtainN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method performs the move on the server side board
public ChessBoard doMove(PlayerMove theMove, ChessBoard newB) { ChessPiece piece = newB.board[theMove.sourceX][theMove.sourceY]; newB.board[theMove.targetX][theMove.targetY] = piece; newB.board[theMove.sourceX][theMove.sourceY] = null; return newB; }
[ "private void move() {\n if (bot != null && bot.getPlayer() == board.getCurrentPlayer()\n || !board.verify(x, y)) {\n return;\n }\n setSign(board.getCurrentPlayer());\n board.makeMove(x, y);\n if (board.getGameStatus() != Board...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Go through roads[] and find if roads[i] == n save it and return an array of those roads Make an array of the roads
private int getNumNodesRoads(OSMNode n) { OSMRoad[] roads = map.getRoads(); int numRoads = roads.length; int countRoads = 0; for(int i = 0; i < numRoads; i++) { if(isInRoad(roads[i], n)) { countRoads ++; } } return countRoads; }
[ "public void checkRoads(){\n\n //first player to build 5 uninterrupted roads you get longest\n //road card worth 2 victory points.\n if(!longestRoad){\n for(int i = 0; i < 4; i++){\n if(players.get(i) != null){\n if(players.get(i).getRoadLength()>=5)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
factory method to create a deep copy of CustomerSetSalutationAction
@Nullable public static CustomerSetSalutationAction deepCopy(@Nullable final CustomerSetSalutationAction template) { if (template == null) { return null; } CustomerSetSalutationActionImpl instance = new CustomerSetSalutationActionImpl(); instance.setSalutation(template.ge...
[ "@Nullable\n public static StagedOrderSetCustomShippingMethodAction deepCopy(\n @Nullable final StagedOrderSetCustomShippingMethodAction template) {\n if (template == null) {\n return null;\n }\n StagedOrderSetCustomShippingMethodActionImpl instance = new StagedOrderSet...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void setMicState(Integer mic_state, String mic) { dao.setMicState(mic_state, mic); }
[ "@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" ] ] } }
////////////////////////// END ///////////////////////////////////////// /////////////////////////// CLICKS /////////////////////////////////////////
@Override public void onClick(View view) { final int pos = recyclerView.getChildLayoutPosition(view); String symbol = stockList.get(pos).getSymbol(); Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(URL_MARKET+symbol)); startActivity(i); }
[ "@Override\n }", "@Override\n\tpublic void cafeteria() {\n\t\t\n\t}", "@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}", "private static void EX5() {\n\t\t\r\n\t}", "private static void click() {\n\t\t\n\t}", "@Override\r\n\tvoid c() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Get a ProvisionRequest created from a redeploy invocation. If not found return null
ProvisionRequest getRedeploymentProvisionRequest(Object service) { ProvisionRequest pr = null; ProvisionRequest[] prs = redeployRequestList.toArray(new ProvisionRequest[redeployRequestList.size()]); for (ProvisionRequest pr1 : prs) { try { if (pr1....
[ "public com.conferma.cpapi.UpdateDeploymentRequest getUpdateDeploymentRequest()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.conferma.cpapi.UpdateDeploymentRequest target = null;\n target = (com.conferma.cpapi.UpdateDeployment...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The getTableData method returns the table data.
public String[][] getTableData() { return tableData; }
[ "private Object[][] getTableData()\r\n {\r\n\t\r\n\treturn a.getTableData();\r\n\r\n\t\r\n }", "@Override\n\tpublic EquationDataStructureRepeatingData getTableData()\n\t{\n\t\treturn tableData;\n\t}", "public List<String> getTableData() {\r\n\t\tif (data.isEmpty()) {\r\n\t\t\tinfo(\"Get all the table data...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
b a b a b 0 0 0 0 0 a 0 0 1 1 1 1 b 0 1 1 2 2 2 b 0 1 1 2 2 3 b 0 1 1 2 2 3 b 0 1 1 2 2 3
private static int lcsFastMyWay(String str1, String str2) { char[] char1Array = str1.toCharArray(); char[] char2Array = str2.toCharArray(); int[][] result = new int[char1Array.length + 1][char2Array.length + 1]; for (int char1Idx = 1; char1Idx <= char1Array.length; char1Idx++) { ...
[ "private int bytesInSequence(int b) {\n int chr = (b & 0b11111111);\n\n\n if ((chr & 0b11100000) == 0b11000000) {\n return 2;\n }\n if ((chr & 0b11110000) == 0b11100000) {\n return 3;\n }\n if ((chr & 0b11111000) == 0b11110000) {\n return 4...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Repeating task that will load and unload worlds as needed.
@Override public void run() { syncWorldUnload(); syncWorldLoad(); }
[ "@Override\n public void run() {\n syncWorldUnload();\n syncWorldLoad();\n }", "private void syncWorldUnload() {\n if (worldUnloadQueue.isEmpty()) return;\n WorldData worldData = worldUnloadQueue.remove();\n World world = loadedWorlds.get(worldData);\n\n // Unload c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field res is set (has been assigned a value) and false otherwise
public boolean isSetRes() { return this.res != null; }
[ "public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case SUCCESS:\n return isSetSuccess();\n case IR:\n return isSetIr();\n case ERR:\n return isSetErr();\n }\n throw new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Process the header and output it.
protected long processHeader(Index index) throws IOException, TimeIndexException { long writeCount = 0; // get the header IndexItem header = fetchIndexItem(0, index); // output the header writeCount = outputPlugin.write(header, outputProperties); return writeCount; }
[ "protected int processHeader (byte[] header)\r\n\t\t{\r\n\t\t\r\n\t\t// TBD\r\n\t\t\t\r\n//\t\tif (Outliner.DEBUG) { System.out.println(\"\\tStan_Debug:\\tPdbBFReaderWriter:processHeader\"); }\r\n\t\t\t\r\n\t\treturn SUCCESS ;\r\n\t\t\t\r\n\t\t}", "public void outputHeader()\n {\n if(xhtml)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Initializes all listeners.
private void initializeListeners() { newShotClockButton.setOnClickListener(new RefreshShotClockListener(shotClock, SHOTCLOCK, startPauseGameTimeButton)); newOffenseShotClockButton.setOnClickListener(new RefreshShotClockListener(shotClock, SHOTCLOCK_OFFENSIVE_REBOUND, startPauseGameTimeButton)); ...
[ "private void _initListeners()\n\t{\n\t\t\n\t}", "public void init_Listeners()\n\t{\n\n\t}", "@Override protected void initListeners() {\n\n }", "private void initListener() {\n\t}", "public void initListener() {\n\n\t}", "private void initListener() {\n\t\tapp.getMyUserBeanManager().addOnUserStateChan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private List courses = new ArrayList(Arrays.asList( new Course("Spring","Spring Framework","Spring Description"), new Course("Java","Core Java","Java Description"), new Course("Python","Python Programming","Python Description")));
public List<Course> getCourses(String topicId) { //return courses; List<Course> courses = new ArrayList<>(); courseRepository.findByTopicId(topicId).forEach(courses::add); return courses; }
[ "@Test\n public void testAddCourse() \n {\n list.addCourse(0, data);\n list.addCourse(1, calc);\n list.addCourse(2, chem);\n list.addCourse(1, java);\n list.addCourse(6, phys);\n \n assertEquals(\"index 0 failed\", \"Course Name: Intro to Data; Course ID: eecs233; Capacity: 10\", list.print(0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return the result of a dice roll
private int[] roll(int dice, int type) { // create the result int[] result = new int[dice]; //create the random number generator java.util.Random rand = new java.util.Random(); //roll the dice for (int i = 0; i < result.length; i++) { result[i] = (int...
[ "public int roll()\n\t{\n\t\tint result = 0;\n\t\tRandom diceRoll = new Random();\n\t\tresult = diceRoll.nextInt(numSides) + 1;\n\t\t\n\t\treturn (result);\n\t}", "public void rollDice (int diceroll);", "public static int statRoll(){\n int value = 0;\n for(int i = 0; i < 4; i++){\n valu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return true if we can connect this anchor to this target. We recursively follow connections in order to detect eventual cycles; if we do we disallow the connection. We also only allow connections to direct parent, siblings, and descendants.
public boolean isConnectionAllowed(ConstraintWidget target) { HashSet<ConstraintWidget> checked = new HashSet<>(); if (isConnectionToMe(target, checked)) { return false; } ConstraintWidget parent = getOwner().getParent(); if (parent == target) { // allow connections t...
[ "public boolean canConnectChildren(Port input, Port output) {\n // TODO: Move implementation from Port here once we move to readonly.\n checkNotNull(input);\n checkNotNull(output);\n return input.canConnectTo(output);\n }", "public boolean canConnect(Figure start, Figure end) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Hash code test Pass Condition = returns the correct hash code for the test object
@Test(timeout=5000) public void testHashCode() { assertNotNull(temp.hashCode()); Movie fixture = new Movie(new Integer(1), "", (Integer) null, (Integer) null, new Integer(1), (Integer) null, "", ""); int result = fixture.hashCode(); assertEquals(887504642, result); }
[ "@Test\n public void checkSameHashReturnedForSameInput() {\n }", "@Test\n public void testHashCode_1()\n throws Exception {\n ScriptGroupStep fixture = new ScriptGroupStep();\n fixture.setPosition(new Integer(1));\n fixture.setScriptGroup(new ScriptGroup());\n fixture.s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
React to each Player Input.
private void dealWithPlayerInput(BlackJackGameConstants.INPUT playerInput) { player.setPlayerInput(playerInput); switch (playerInput) { case HIT: player.addToCardsInHand(deckOfCards.pickFirstCard()); break; case STAND: while(dealer.getValueOfCardsInHand() < BlackJackGameConstants.DEALER_TAK...
[ "private void processInput() {\n inputController.entrySet().forEach(i -> {\n world.movePlayer(i.getKey(), i.getValue());\n });\n }", "private void handleInputs(){\n\n if(Gdx.input.isKeyPressed(Input.Keys.W)){\n jump();\n }\n\n if(Gdx.input.isKeyPressed(I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to retrieve the last samples and all states and all states of a single parameter. The method will return A maximum of 'rows' entries Starting from the last received sample of the parameter and sorted on timestamp in DECENDING order
public Map<Parameter, List<State>> getParameterAndStates(String name, int rows);
[ "public double[] getLastValues() {\n return lastValues;\n }", "public static List<?> getNewestRecords(ArrayList<Long> params)\n\t{\n\t\tStringBuilder sqlBuilder = new StringBuilder(\"SELECT * FROM \" + TABLE + \" WHERE id IN ( \");\n\t\tsqlBuilder.append(\"SELECT MAX(id) FROM \" + TABLE + \" WHERE SVID...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Methods / /
public void deleteEnd() { this._has_end = false; }
[ "@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\r\n public void publicando() {\n }", "@Ov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }