query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
get the string in utf8
public static String getStringUtf8(byte[] buf, int start, int len) { String strutf8 = ""; try { strutf8 = new String(buf, start, len, "UTF-8"); } catch (Exception e/*UnsupportedEncodingException e*/) { //#debug error System.out.println("Error in getStringUtf8: " +e.toString()); } return strutf8; }
[ "public static String Utf8(String text){\n String str = null;\n try {\n str = new String(text.getBytes(), \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n }\n return str;\n }", "public static String convertUTF8ToString(String s) {\n String out = null;\n if (Build.VERSI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the light location
private void setLightLocation(double x, double y) { center.x = x; center.y = y; for (Segment segment : segments) { double dx = 0.5 * (segment.p1.x + segment.p2.x) - x; double dy = 0.5 * (segment.p1.y + segment.p2.y) - y; segment.d = dx * dx + dy * dy; ...
[ "void setPointLight(int lightNumber, Vector3f mPosition, Color4f color);", "public void setLocation (Vector3f location)\n {\n _camera.setLocation(bound(location));\n _camera.update();\n }", "public void changeLight() {\n open_north_south=!open_north_south;\n }", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Completes the request and receives response from the server.
public byte[] finish() throws IOException { List<String> response = new ArrayList<String>(); writer.append(LINE_FEED).flush(); writer.append("--" + boundary + "--").append(LINE_FEED); writer.close(); return baos.toByteArray(); }
[ "void requestComplete(ServerResponse serverResponse);", "public void completed(Object result) {\n\t\t\t\t\tfinal HttpResponse response = (HttpResponse) result;\n\t\t\t\t\tlatch.countDown();\n\t\t\t\t\tSystem.out.println(request.getRequestLine() + \"->\"\n\t\t\t\t\t\t\t+ response.getStatusLine());\n\t\t\t\t}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the id property.
public void setID(int value) { this.id = value; }
[ "public void setId(int id) {\r\n\t\tthis.id.set(id);\r\n\t}", "public void setID(int id) {\n this.id.set(id);\n }", "public void setId(final int id)\r\n {\r\n this.id = id;\r\n }", "public void setId(final String id) {\r\n\t\tthis.id = id;\r\n\t}", "public void setId(final Long id) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ pour faire des affichages divers
public void affichage() { System.out.println(this.jeu.getAffichage()); this.suivant(); }
[ "private void divPool()\n {\n setDivPool((float)(getQuathostPrivado() / getQuathostPublic()));\n }", "double getDivida();", "@Override\n public void DIVI() {\n\n int primeiroValor = this.pilha.retornaTopo();\n this.pilha.remove();//remove o topo\n int segundoValor = this.pil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end synpred512_InternalSARL $ANTLR start synpred514_InternalSARL
public final void synpred514_InternalSARL_fragment() throws RecognitionException { // InternalSARL.g:40389:3: ( rule__JvmParameterizedTypeReference__Group_1_4__0 ) // InternalSARL.g:40389:3: rule__JvmParameterizedTypeReference__Group_1_4__0 { pushFollow(FOLLOW_2); rule__JvmPar...
[ "private void parseSSA() {\n }", "public final void mo38539a(StringBuilder sb) {\n super.mo38539a(sb);\n sb.append(\": \");\n C3246hp.m2232a(this, sb, \"timescale\", \"duration\", \"rate\", \"volume\", \"created\", \"modified\", \"nextTrackId\");\n }", "public ConversorWagnerSATLIBPar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the telephone number.
public String getTelNumber() { return telNumber; }
[ "public String getTeleNum() {\n return teleNum;\n }", "public String getPhoneNumber() {\n return sharedPreferences.getString(CyfaConfig.KEY_PHONE_NUMBER, CyfaConfig.EMPTY_STRING);\n }", "public int getTelefone() {\n return this.number;\n }", "public String getPhoneNumber() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clear the voice mode file for the grammar language if there is one deleteArchitectGrammarLanguageFilesVoice is a preview method and is subject to both breaking and nonbreaking changes at any time without notice
public ApiResponse<Void> deleteArchitectGrammarLanguageFilesVoice(ApiRequest<Void> request) throws IOException { try { return pcapiClient.invoke(request, null); } catch (ApiException exception) { @SuppressWarnings("unchecked") ApiResponse<Void> response = (ApiResponse<Void>)(ApiResponse<?>...
[ "public Future<Void> deleteArchitectGrammarLanguageFilesVoiceAsync(DeleteArchitectGrammarLanguageFilesVoiceRequest request, final AsyncApiCallback<Void> callback) {\n try {\n final SettableFuture<Void> future = SettableFuture.create();\n final boolean shouldThrowErrors = pcapiClient.getShouldThrowError...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the mnemonic index for the Cancel button.
public int getMnemonicCancel() { return mnemonicCancel; }
[ "private UIButton getBnCancel() {\n\t\tif (bnCancel == null) {\n\t\t\tchar cHotKey = 'C';\n\t\t\tbnCancel = new UIButton();\n\t\t\tbnCancel.setSize(DIME_BTN);\n\t\t\tbnCancel.setBounds(360, 163, 60, 24);\n\t\t\tbnCancel.setText(ResHelper.getString(\"60130payfile\", \"060130payfile0280\")/*\n\t\t\t\t\t\t\t\t\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column t_user.org_id
public Long getOrgId() { return orgId; }
[ "public int getOrg_ID() {\n\t\tInteger ii = (Integer) get_Value(\"Org_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "protected int getOrgId() {\n\t\treturn orgId;\n\t}", "public com.jic.tnw.db.mysql.tables.pojos.UserOrg fetchOneById(Integer value) {\n return fetchOne(User...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "norm6_IdOrKeyword2" $ANTLR start "norm7_IdOrKeyword2" PsiInternalTwoParametersTestLanguage.g:905:1: norm7_IdOrKeyword2 returns [Boolean current=false] : (kw= 'keyword' | this_ID_1= RULE_ID ) ;
public final Boolean norm7_IdOrKeyword2() throws RecognitionException { Boolean current = false; Token kw=null; Token this_ID_1=null; try { // PsiInternalTwoParametersTestLanguage.g:906:1: ( (kw= 'keyword' | this_ID_1= RULE_ID ) ) // PsiInternalTwoParametersTest...
[ "public final AntlrDatatypeRuleToken ruleOpOr() throws RecognitionException {\r\n AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();\r\n\r\n Token kw=null;\r\n\r\n\r\n \tenterRule();\r\n\r\n try {\r\n // InternalIdeDsl.g:1297:2: (kw= '||' )\r\n // Intern...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A classification has been removed from an entity.
@Override public void processDeclassifiedEntityEvent(String sourceName, String originatorMetadataCollectionId, String originatorServerName, String ...
[ "void deleteClassification(String classificationKey, String domain)\n throws ClassificationInUseException, ClassificationNotFoundException, NotAuthorizedException;", "@Override\n public void EntityRemoved(LaunchEntity entity)\n {\n }", "public void _unlinkClassifierInState(ClassifierInState classi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Change la valeur du double operand
protected void setOperand(double d) { this.operand = d; }
[ "public void setOperand() {\r\n\t\tthis.operand = Double.parseDouble(this.getOperands()[0]);\r\n\t}", "public void setValue(double p){\n value = p;\n }", "public void setValue(double value) {\n }", "public void Squared() {\r\n\t\tmyDouble = myDouble * myDouble;\r\n\t}", "Builder setDouble(String na...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets progress value shown in this progress dialog.
void setProgressValue(float percentage) { if (progressBar == null) { // Add progressBar progressBar = new JProgressBar(0, 100); GridBagConstraints constraints = new GridBagConstraints(); constraints.gridy = 2; constraints.fill = GridBagConstraints.HORIZONTAL; //constrain...
[ "private void setProgress(double value) {\n \n progress_ = value;\n }", "public void setProgressBarValue(int value) {\n\t\tprogressBar.setValue(value);\n\t\tprogressBar.repaint();\n\t}", "public void SetProgressbarValue(final int value) {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get an array of [from to] for all the features of a transcript. raw array for easy R/python interfacing
public int[] getTranscriptRangesFromTo(String transcript) { ArrayList<Range> list=mapTranscriptRanges.get(transcript); int[] outlist=new int[list.size()*2]; for(int i=0;i<list.size();i++) { outlist[i*2+0]=list.get(i).from; outlist[i*2+1]=list.get(i).to; } return outlist; }
[ "public abstract double[] asArray(Features features);", "public FeatureTag[] toArray()\n\t{\n\t\treturn (FeatureTag[]) features.toArray(new FeatureTag[features.size()]);\n\t}", "float[] getFeatures(E data) throws FeatureExtractionException;", "public native float[] toArray(float[] array, int index);", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main constructor. Properties may be null. Properties are not documented on purpose, as this is a private JQM API.
@SuppressWarnings("unchecked") public Db(Properties properties) { this.p = properties != null ? properties : new Properties(); if (p.containsKey("com.enioka.jqm.jdbc.url")) { // In this case - full JDBC construction, not from JNDI. Only works for HSQLDB. // Allo...
[ "public ApplicationUI() {\n litReg = new LiteratureRegister();\n parser = new Parser();\n ProductNumbers productTypes = new ProductNumbers();\n }", "public UI()\n {\n // initialise instance variables\n\n }", "public Example() {\n\t\tinitUI();\n\t}", "public UI() {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the supported input formats.
@Override public Format[] getSupportedInputFormats() { return supportedInputFormats; }
[ "public List<String> supportedFormats();", "@Override\n public Set<MimeType> getSupportedInputFormats() {\n Parser parser = Parser.getInstance();\n try {\n Set<MimeType> mimeSet = new HashSet<MimeType>();\n for (String mediaFormat : parser.getSupportedFormats()) { ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check if a broker is connected a connected broker implies is attached to cores or cores could reach out to communicate return 0 if not connected , something else if it is connected
public static int helicsBrokerIsConnected(SWIGTYPE_p_void broker) { return helicsJNI.helicsBrokerIsConnected(SWIGTYPE_p_void.getCPtr(broker)); }
[ "boolean hasConnectMsg();", "public boolean isConnected(){\n return _connected;\n }", "@Override\n\tpublic boolean isConnected() {\n\t\t// For now, we will check whether we are still connected by checking if our reader is still connected.\n\t\treturn this.queuedMessageReader.isConnected();\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ ==================== MAS FUNCTIONS (JADE) ====================
public void registerService() { MethodEnvelope me = new MethodEnvelope(); me.setFunctionName("registerService"); me.addArgument(serviceTypeName); me.addArgument(getAID().getName()); String msgContent = me.toXML(); ACLMessage msg = new ACLMessage( ACLMessage.REQUEST ); msg.setContent...
[ "void mo3362m();", "public void jatekMenet();", "void mo37715E_();", "void mo33915a();", "void mo4901a();", "void mo4394m();", "void mo32105a();", "void mo104304a();", "int mo92777m();", "void mo62413a();", "void mo96465a();", "protected abstract void mo3493a();", "void mo3958xv();", "as m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 202 /Coverage entropy=1.5832584594204766
@Test(timeout = 4000) public void test202() throws Throwable { NumberInput numberInput0 = new NumberInput((Component) null, "[ONAaX}0sKp%c\"urys", "[ONAaX}0sKp%c\"urys"); // Undeclared exception! try { numberInput0.fieldset(); fail("Expecting exception: NullPointerException"); ...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "pmesappdeploypath" element
public void unsetPmesAppDeployPath() { synchronized (monitor()) { check_orphaned(); get_store().remove_element(PMESAPPDEPLOYPATH$16, 0); } }
[ "public void undeploy(String serviceUnitRootPath) throws JBIException {\n }", "public void clearDeploymentState()\n\t{\n\t\tdeployed = false;\n\t\ttarget = null;\n\t}", "public void removeAppraisal()\r\n {\r\n getSemanticObject().removeProperty(bsc_appraisal);\r\n }", "synchronized void clearL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convenience alternative which creates longHash from CharSequence
public int bucketFor(CharSequence cs, int upTo) { return bucketFor(hash(cs), upTo); }
[ "private static long getLongHashCode(String string) {\r\n long h = 0;\r\n long l = string.length();\r\n if (l > 0) {\r\n char val[] = string.toCharArray();\r\n for (int i = 0; i < l; i++) {\r\n h = 31 * h + val[i];\r\n }\r\n }\r\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
moves blocks on screen for next render
private void updatestopedBlockArray() { for (int x = 0; x < stopedBlocks.length; x++) { for (int y = 0; y < stopedBlocks[x].length; y++) { if (stopedBlocks[x][y] != null) { // sort out positions // oldPosition = movingBlocks[x][y].getPosition(); newPosition = new Vector3(x * 25, y * 25,...
[ "private void drawNext(){\n\n Block next = game.getNextBlock();\n Sprite currSprite = new Sprite();\n ArrayList<Vector2> positions = new ArrayList<Vector2>();\n\n w=viewport.width/Assets.backgroundRegion.getRegionWidth();\n h=viewport.height/Assets.backgroundRegion.getRegionHeight...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GETTERS FOR ROW BY ROW UPDATES
public int getTotalCustomers() { return totalCustomers; }
[ "private void rowsUpdated(int firstRow, int lastRow, int column) {\n\n RowInfo.Filter filter = (column == TableModelEvent.ALL_COLUMNS)\n ? null : filters[column];\n while (firstRow <= lastRow) {\n RowInfo row = rows.get(firstRow);\n rowEntry.row = f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private / access modifiers changed from: public
private boolean checkScanOnlyModeAvailable() { if (this.mSettingsStore.isManagedByAutoWifi() || this.mWifiPermissionsUtil.isLocationModeEnabled()) { return this.mSettingsStore.isScanAlwaysAvailable(); } return false; }
[ "@Override\n }", "protected void method_5557() {}", "@Override\r\n public void publicando() {\n }", "private Propriedades() {\r\n\t}", "@Override\n public void extornar() {\n \n }", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", "protected void method_2117() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the doctors rating
public void setDoctorRating(ArrayList<String> doctorRating) { this.doctorRating = doctorRating; }
[ "@Override\n\tpublic void setRating(double rating) {\n\t\tsuper.setRating(rating);\n\t}", "@Test\n public void testSetDoctorRating() {\n Doctor instance = new Doctor(\"Firstname\", \"Lastname\", \"Address\", \"Gender\", \"Date of Birth\", \"ID\", \"Password\", 0.0);\n Double expected = 1.0;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end shiftRight Multiplies two big numbers together and returns the result. Uses addition and shifting.
public BigNumber multiply(BigNumber bigNumber) { BigNumber result, tempResult; result = tempResult = new BigNumber(0); // the current big number BigNumber thisTemp = this; // number we are multiplying by BigNumber thatTemp = bigNumber; // variable used to keep track of sign of the result boolean posResu...
[ "public static Object shiftRight(Object val1, Object val2) {\r\n \t\tBigInteger bi1 = getBigInteger(val1);\r\n \t\tint i2 = getIntValue(val2);\r\n \t\tif (bi1 == null) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\treturn getIntValue(getBigInteger(val1).shiftRight(i2));\r\n \t}", "public static Number rightShiftUnsig...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return an int array that contains the needed data to create a calendar object
private int[] convertDateTime(String dateTime){ String[] parts = dateTime.trim().split(" "); String date = parts[0]; String time = parts[1]; parts = date.split("-"); int year = Integer.parseInt(parts[0]); int month = Integer.parseInt(parts[1]); int day = Integer.parseInt(parts[...
[ "public int[] getSequence() {\n // TODO: raise error if hoursInDay() != hoursOnClock()\n int hours = hoursInDay();\n int[] result = new int[hours];\n for(int i=0; i < hoursInDay(); i++) {\n result[i] = i;\n }\n return result;\n }", "public static ArrayList<I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method replaces the .NET static string method 'IsNullOrEmpty'.
public static boolean isNullOrEmpty(String string) { return string == null || string.equals(""); }
[ "public static boolean isNullOrEmpty(String s) {\n/* 536 */ return (s == null || s.isEmpty());\n/* */ }", "boolean hasEmptyStr();", "private static boolean isEmptyString(String value){\r\n\t\treturn value.equalsIgnoreCase(\"\");\r\n\t}", "public static boolean isNullOrEmpty(CharSequence s) {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses the prefixed JCR name and returns the resolved Name object.
public Name getQName(String name) throws IllegalNameException, NamespaceException { return NameParser.parse(name, resolver, NAME_FACTORY); }
[ "private int parsePrefixedName(int idx) {\n idx = parsePrefix(idx);\n if ( idx == ERR )\n return idx;\n int z = parseLocal(idx);\n return z;\n }", "QualifiedPrefix getName();", "protected String parseName() throws ParseException, IOException {\n\t\tStringBuilder sb = ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extracts the information of the embedded start nodes that are in a given process (level) and returns the actor references to that nodes. This info is needed by the sub process.
protected List<ActorRef> getEmbeddedNodeActorReferences( String clientId, TProcess processJaxb, List<TSubProcess> subProcessesJaxb, TFlowNode flowNodeJaxb, List<TSequenceFlow> sequenceFlowsJaxb) { if (flowNodeJaxb instanceof TSubProcess) { TSubProcess subProcessJaxb = (TSubProcess) flowNodeJaxb; // the ...
[ "java.util.List<io.automatiko.engine.workflow.marshalling.impl.JBPMMessages.ProcessInstance.NodeInstance> getNodeInstanceList();", "@Override\n public void start() {\n NodeInstance startTask = NodeInstanceFactory.newNodeInstance(this, process.getTasks().get(0L));\n this.nodeContainer.addNodeInsta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the required EXP.
public int getRequiredEXP() { return requiredEXP; }
[ "public Integer getUsedExp()\n {\n return usedExp;\n }", "public int getRequiredExp(int index) {\n return requiredExp_.getInt(index);\n }", "public Double getAbilityRemainingExp() {\n \t\t\n \t\tint attrPoints = ExperienceConfiguration.config().getAbilityPoints(exp);\n \t\t\n \t\treturn Experie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Update argument type and name
void removeViewForOtherFragment(int myFragmentId, int viewId);
[ "private void parseArgument() {\n }", "@Override\n public void parseArguments(String[] args)\n {\n \n }", "@Test\r\n\tpublic void capturingArguments() {\r\n\t}", "public T userArgument();", "java.lang.String getArgu1();", "public Object_ArgumentTest(String name) {\n\t\tsuper(name);\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method controls the translation of the ImageView in our sample application. It handles the translation of the View regardless of API level, and takes advantage of more advanced methods in higher API levels (setY(float)).
private void translateView(View view, float yPos) { // If the device that we will run this code on is running API 11 or greater. if(usingAPI11()){ // Simply set the y-coordinate of the ImageView using the setY(float) method. view.setY(yPos); }else{ // Otherwise, we implement a workaround that...
[ "private void animation(ImageView imageView, long duration) {\n imageView.animate().translationY(-750).setDuration(duration).start();\n }", "public static void m47218b(ImageView imageView) {\n boolean[] a = m47217a();\n AnimationSet animationSet = new AnimationSet(true);\n a[12] = t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<SysArea> selectByExample(SysAreaCriteria example) { return this.sysAreaMapper.selectByExample(example); }
[ "@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" ] ] } }
C TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java: /endregion C TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java: /region Public Properties Gets a abstract representation of all tags stored in the current instance. A object representing all tags stored in the current instance.
@Override public Rasad.Core.Media.MediaMetadataManagement.Tag getTag() { return tag; }
[ "public interface CustomerTags extends Constants {\n\n\tString customer();\n\tString customerBrowserTitle();\n\tString mobilePhone();\n\tString homePhone();\n\tString homeAddress();\n\tString homeLocation();\n\tString workPhone();\n\tString workAddress();\n\tString workLocation();\n\tString customerGroup();\n\tStri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
disable all wifi in OS wifi config
public static void disableAllWifi(Context context, WifiManager mWifiManager) { if (WifiUtil.isWifiRadioOpen(context)) { List<WifiConfiguration> configList = mWifiManager.getConfiguredNetworks(); for (int i = 0; i < configList.size(); i++) { mWifiManager.disableNetwork(i); } } }
[ "public void disableWifi() {\n changeMode(ModeStateMachine.CMD_DISABLE_WIFI);\n }", "public void recoveryDisableWifi() {\n mWifiController.sendMessage(WifiController.CMD_RECOVERY_DISABLE_WIFI);\n }", "public static void setWifiChaged() {\n getInstance();\n if (mWifiManager.isWi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the next patient for a specific queue
public void show(String name) { boolean found = false; String tempPatient; for(int i = 0; i < this.queueName.size(); i++){ if(queueName.get(i).equals(name) && queueList.get(i).getSize() != 0){ tempPatient = queueList.get(i).getPatient(); System.out.println("Next Patient: " + tempPatient); to...
[ "private StorageQueue<Item> getQueueByID(String nextID)\n {\n // Loop through the queues that currently exist\n for (int i = 0; i < queues.size(); i++)\n {\n // If there is a match, return the reference\n if (queues.get(i).getID().compareTo(nextID) == 0)\n {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: i
public boolean mo23393i() { C6888i.m12438e(this, "this"); return Modifier.isAbstract(mo23339t()); }
[ "public void mo2977a(int i) {\n }", "public abstract void mo91949l(int i);", "public abstract void mo46067wj(int i);", "public void mo39659c(int i) {\n }", "private int harta(int i) {\n\t\treturn 0;\n\t}", "public void mo9595a(int i) {\n }", "public void mo105a(int i) {\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called only once when the service should free any resources it is using and prepare to be terminated.
public void shutdown() { continueRunning.set(false); try { //TODO: determine if this is the correct thing to try es.awaitTermination(1, TimeUnit.MINUTES); es.shutdown(); } catch (InterruptedException ex) { LOG.warn("problem sh...
[ "protected void cleanup() {\n if(this.rpcClient != null) {\n this.rpcClient.shutdown();\n this.rpcClient.releaseExternalResources();\n }\n if(this.rpcClientChannel != null) {\n this.rpcClientChannel.close();\n }\n this.getGuaguaService().stop();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the fully qualified class name of the persistencecapable superclass of the persistencecapable class described by this JDOClass.
public void setPersistenceCapableSuperclassName(String pcSuperclassName) throws ModelException;
[ "public void setSuperClass(BValuable name);", "public void setSuperclass(Class superclass) {\n if (superclass != null && superclass.equals(Object.class)) {\n superclass = null;\n }\n this.superclass = superclass;\n\t\t// SPRING PATCH BEGIN\n\t\tsetContextClass(superclass);\n\t\t// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Request string username = 1;
java.lang.String getUsername();
[ "public void setUsername(String username)\r\n {\r\n this.username = username;\r\n }", "public void setUsername(String usernameIn)\n {\n this.username = usernameIn;\n }", "public void setUsername(String inUsername) {\n this.username = inUsername;\n }", "public void getUser(Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ helper method to determine if a line is eligible to be included in the merged file
public boolean isValidLine() { if (this.providerName.isBlank() || this.campaignId.isBlank() || this.cpac == null || this.redirect.isBlank() || this.address.isBlank() || this.zip.isBlank()) { return false; } return true; }
[ "private boolean excludeLine(String line) {\n\t\tif (excludes == null) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (String excludeLine : excludes) {\n\t\t\tif (line.equals(excludeLine)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasLine() {\n return line != null;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a sample EntailmentGraphRaw Nodes: (bs base statement): A "Food was really bad." (modifier: really) B (bs) "Food was bad." C (bs) "I didn't like the food." D "a little more leg room would have been perfect" (modifier: "a little") E (bs) "more leg room would have been perfect" F "Disappointed with the amount of legr...
public static EntailmentGraphRaw getSampleOuput(boolean randomEdges) { // create the to-be graph nodes EntailmentUnit A = new EntailmentUnit("Food was really bad.",1,"Food was really bad.","interaction1"); EntailmentUnit B = new EntailmentUnit("Food was bad.",0,"Food was really bad.","interaction1"); Entailm...
[ "String toGraphViz(Properties props, final String title, boolean simpleLayout) {\n final String invisNode = \" \" + props.getProperty(\"invisible.node\", \"[shape=point,style=filled,label=\\\"\\\",height=.001,width=.001]\") + \";\\n\";\n final String maleShape = props.getProperty(\"male.shape\", \"box\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unused changed Vanilla Methods
protected String i() { return (this.random.nextInt(3) == 0 ? (getHealth()*100/getMaxHealth() <= 25 ? "mob.wolf.whine" : "mob.wolf.panting") : "mob.wolf.bark"); }
[ "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "protected void mo4791d() {\n }", "public void mo28221a() {\n }", "@Override\n\t\tprotected void swop() {\n\n\t\t}", "protected void method_2117() {\n }", "private static void EX5() {\n\t\t\r\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The entity personRaceTitle is defined as null before being initialized.
protected abstract void _personRaceTitle(Wrap<String> w);
[ "public String getRace() {\n return race;\n }", "public void setRace(java.lang.String value) {\n this.race = value;\n }", "public String getRace() {\n return _race;\n }", "@Override\n public int getRaceNumber() {\n return raceNumber;\n }", "public void setRace(Race param) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The session, timestamp, proj triple on which to run this operation
LockAndSync(String sess, String timestamp, String proj, PrearcStatus status) { this.sess = sess; this.timestamp = timestamp; this.proj = proj; this.status = status; }
[ "public static void main(String[] args) throws Exception {\n\t\t\r\n\t\tGeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory( null ); \r\n\t\tString starttime=\"2008-02-02 15:46:08\";\r\n\t\tString endtime=\"2008-02-02 23:40:32\";\r\n\t\t\r\n\t\t/*\r\n\t\t//query1\r\n\t\tString time=\"2008-02-04 23...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new book.
public Book(Account account, Element element, String description, Date dateStart, Date dateEnd) { super(); this.account = account; this.element = element; this.description = description; this.dateCreate = new Date(); this.dateStart = dateStart; this.dateEnd = dateEnd; this.state = states.MANAGEMENT; t...
[ "public Book() {\r\n\t}", "public Book(String book) {\r\n\t\t\r\n\t}", "public Book() {\n this.isbn = \"0450040186\";\n this.title = \"The Shining\";\n this.author = \"King\";\n this.price = 25.95;\n }", "public Book(){\n author = \"John Steinbeck\";\n title = \"Of...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is invoked when the user clicks display in the Edit menu of Proposal module
private void showProposalDetails(String proposalNumber) { int selRow = tblProposal.getSelectedRow(); if (proposalNumber == null) { log(coeusMessageResources.parseMessageKey( "protoBaseWin_exceptionCode.1052")); } else { try{ proposalNumber = getSelectedProposalNumb...
[ "@Override\n\tpublic void editClick(int id) {\n\t\t\n\t}", "public void editItem() {}", "void editClicked(SpecialisationProxy specialization, int left, int top);", "@FXML\n\tvoid editButton_OnClick()\n\t{\n\t\t// Show the board page with the selected board\n\t\tvm.showBoardPage(stage, user, selectedBoard, tre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
given an array of WordNet nouns, return an outcast
public String outcast(String[] nouns) { int max; List<Integer> distances = new ArrayList<>(); Arrays.asList(nouns).stream().map(noun -> { return Arrays.asList(nouns).stream().mapToInt(n -> wordnet.distance(noun, n)).reduce((total, dist) -> total + dist).getAsInt(); }).forEach...
[ "public String outcast(String[] nouns){\n int distMax = -1;\n String outcast_noun=\"\";\n int size = nouns.length; \n // for each noun check the distance\n for(int i=0; i<size; ++i){\n int dist = 0; \n for(int j=0; j<size; ++j){\n if(i!=j){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
calls merge for each n^2
public void sort(int[] arr, int[] copy, int ileft, int iright, int iend) { int w; // for current width of array for (w = 1; w <= arr.length; w *= 2) { for (int i = 0; i < arr.length; i += 2*w) merge(arr, copy, i, min(arr.length,i + w), min(arr.length,i + 2*w)); /...
[ "static void mergePass (int x[], int y[], int s, int n)\n\t {\n\t\t // Merge adjacent segments of size s.\n\t int i = 0;\n\n\t while (i <= n - 2 * s)\n\t {\t\n\t \t //Merge two adjacent segments of size s\n\t merge (x, y, i, i+s-1, i+2*s-1);\n\t i = i + 2*s;\n\t }\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO GREY TABLE greyTable();
@Override public void run() { }
[ "StarTreeTable getTable();", "public void printTable() {\r\n for (int i = 0; i < 8; i++) {\r\n System.out.println(\" \");\r\n for (int j = 0; j < 8; j++) {\r\n System.out.print(\"|\" + i + j + this.table[i][j].type + \"|\");\r\n }\r\n }\r\n }", "v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated method signature
public org.apache.ws.axis2.GetUserArrayResponse getUserArray( org.apache.ws.axis2.GetUserArray getUserArray4) throws java.rmi.RemoteException ;
[ "default String getSignature() {\n StringBuffer sb = new StringBuffer();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Revert to last valid.
private boolean revertToLastValid(String msg, String msgDetails) { String[] buttonLabels = new String[2]; buttonLabels[0] = Messages.getString("MultiPageEditor.revertToLastValid"); //$NON-NLS-1$ buttonLabels[1] = Messages.getString("MultiPageEditor.EditExisting"); //$NON-NLS-1$ MessageDialog dialog = ne...
[ "public void invalidate() {\r\n\t\tthis.valid = false;\r\n\t}", "public void invalidate(){\n _valid = false;\n _saved = false;\n }", "public boolean undoIsValid() {\n\t\treturn !(moves.isEmpty());\n\t}", "public void undoLastMove()\n {\n synchronized (this)\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return all individuals URI of the ontology. This method is performed using the Jena API.
static public List<String> getIndividualsURI(OntModel model) { List<String> lista = new ArrayList<String>(); ExtendedIterator<Individual> i = model.listIndividuals().filterKeep(new Filter<Individual>() { @Override public boolean accept(Individual o){ return o...
[ "@Override\n public Set<OWLAxiom> getReferencingAxioms(OWLOntology ontology) {\n return ontology.getReferencingAxioms(this);\n }", "public String getURI() {\n return this.uris;\n }", "private Iterator<String> listOntModelURIs(boolean workflows) {\n\t\tArrayList<String> ontURIs = new Array...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form Form_Data_Petugas
public Form_Data_Petugas() { initComponents(); setLocationRelativeTo(this); koneksi_database(); tampil(); autonumber(); // fillcombo(); }
[ "public void newForm() {\r\n\t\tthis.jPanelFormDataPet.newForm();\r\n\t\tthis.jPanelComments.jtaComments.setText(\"\");\r\n\t}", "public void newPersona() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}", "public Result registroEmp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
back navigation button working
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: // app icon in action bar clicked; go home Intent intent = new Intent(this, MyProfileActivity.class); intent.addFlags(Intent.FLAG_AC...
[ "public void backButton() {\n\t\t\n\t}", "private void naviBack() {\n\t\tonBackPressed();\r\n\t}", "public void goBack()\r\n \t\t{\n \r\n \t\t}", "void BackButton();", "@Override\n\tpublic void backButtonPressed() {\n\n\t}", "public void goBack()\n\t\t{\n\t\t\tm_historyPosition--;\n\t\t\tthis.loadURL( (UR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property oldList.
public void setOldList(AdjustmentList oldList) { this.oldList = oldList; }
[ "protected List(Object newElement, List oldList){\n\t\telement = newElement;\n\t\tnext = oldList;\n\t}", "public ListChangeEvent(Model source, String listName) {\r\n\t\tthis(source, listName, -1, Collections.emptyList(), Collections.emptyList(), -1, -1);\r\n\t}", "public ListChangeEvent(Model source, String lis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the ProcessStatusSet for this model.
public final ProcessStatusSet getProcessStatusSet() { return m_processStatusSet; }
[ "public final customlvnl.proxies.ProcessStatus getProcessStatus()\r\n\t{\r\n\t\treturn getProcessStatus(getContext());\r\n\t}", "@Override\n\tpublic ProcessStatus getProcessStatus() {\n\t\treturn null;\n\t}", "public org.apache.ode.bpel.pmapi.TProcessStatus.Enum getStatus()\r\n {\r\n synchronized (mon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Confirm that every resolution result describes an error, i.e., the text failed to assemble
protected void checkAllSemanticErrs(AssemblyResolutionResults res) { for (AssemblyResolution ar : res) { if (ar.isError()) { continue; } dbg.println("Got:"); dbg.println(ar.toString(" ")); fail("All results were expected to be errors"); } }
[ "private static String runTest7() {\r\n\t\t// the possible corrections for the error\r\n\t\tArrayList<String> candidates = null;\r\n\t\ttry {\r\n\t\t\tError e = new Error(5,\"teh\",candidates);\r\n\t\t} catch(NullPointerException err) {\r\n\t\t\treturn \"Test 7 passed\";\r\n\t\t}\r\n\t\treturn \"Test 7 failed\\n\" ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodo de prueba del metodo buscarBinario de la clase Jugador
public void testBuscarBinario() { assertNull( escenario1.buscarBinario("Aleja")); }
[ "@Test\r\n\tvoid testBinario() {\r\n\t\tCalculadora micalculadora = new Calculadora(5);\r\n\t\tString resultado=micalculadora.binario();\r\n\t\tassertEquals(\"101\",resultado);\r\n\t}", "private Documento[] buscarPor(Connection con, String BDNombre, String porCodigo){\n\t\t\tbusqueda = new Documento[1];\n\t\t\tD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public boolean addShoppingCart(ShoppingCart shoppingCart) { return this.shoppingCartDao.addShoppingCart(shoppingCart); }
[ "@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" ] ] } }
plugSwap swaps a letter for its "plugged" letter Example: A and B were declared as a pair for the plugboard. Any time plugSwap is called, A is swapped for B, and B is swapped for A Inputs: String letter is used to swap for its "plugged" letter Returns the "plugged" letter
public String plugSwap(String letter) { if (map.containsKey(letter)) { return map.get(letter); } else { return letter; } }
[ "public void plug (char c1, char c2) {\n int posc1=Util.letterToIndex(c1),\n posc2=Util.letterToIndex(c2);\n \n if ((swaps[posc1]==c1)&&(swaps[posc2]==c2)) {\n // swap the two letters in the permutation (only if they have not been pluged before)\n swaps[posc1]=c2;\n swaps[posc2]=c1;\n }\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Replace contents of a view
@Override public void onBindViewHolder(ViewHolder holder, int position) { System.out.println("OnBindViewHolder " + position); String item = _historyList.get(position); holder.historyItem.setText(item); }
[ "public void updateView(){\n\t\tview.updateView();\n\t}", "@Override\n\t\t\tpublic void atualizarView() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void updateView() {\n view.update();\n }", "@Override\n\tpublic void refreshView() {\n\t}", "public abstract IViewPart tweakView(Object viewContribu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return new Block(new Rectangle(SCREEN, SCREEN_WIDTH, SCREEN_HEIGHT), Color.lightGray, false);
@Override public Sprite getBackground() { return new SnowMan(); }
[ "public Block block();", "public Block(BlockColor c){\n xPos = 0;\n yPos = 0;\n content = generateContent();\n color = c;\n }", "public List<Block> blocks() {\r\n \tMap<String, Color> colorBlock = new TreeMap<String, Color>();\r\n Map<String, Image> imageBlock = new Tree...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the Temp value used to sort nations.
public int getSort() { return sort; }
[ "public Nation getTempNation() {\n return tempNation;\n }", "public int getTempA() {\n return TempA_;\n }", "public float getCnsTemp() {\r\n return cnsTemp;\r\n }", "public String getTemp() {\r\n\t\treturn myTemperature;\r\n\t}", "public double getReferenceTemperature() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets remaining cities from CITY_LIST
public void searchRemainingCities() { try { ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo networkInfo = connMgr.getActiveNetworkInfo(); ListView lvCities = findViewById(R.id.main_listView);...
[ "public abstract java.util.Collection getCities();", "@Override\r\n public Stream<String> getAllCities() {\r\n return cityList.stream();\r\n }", "@Override\n\tpublic List<String> listCities() {\n\t\ttry {\n\t\t\tlogger.info(\"DB-Query: SELECT DISTINCT l.city FROM Location l ORDER BY l.city ASC\");\n\t\t\tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns OR of regions
public Region makeOr(Region[] regions) { Region tmp = rmgr.makeFalse(); // neutral for OR for (Region r : regions) { tmp = rmgr.makeOr(tmp, r); } return tmp; }
[ "RegionSet getRegions();", "S getRegion(Range range);", "Region getRegion() {\n\t\tRegion region = new Region();\n\n\t\t// First add geometry part\n\t\tif (rectangle_ != null)\n\t\t\tregion.union(rectangle_);\n\n\t\t// Add extent of all texts\n\t\tif (texts_ != null) {\n\t\t\tfor (Iterator i = texts_.iterator()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET session variables for user by token (used in client Portal)
@Override public UserSession getUserByToken(String token, String ip) { List<UserSession> userSessions = jdbcTemplate.query(SP_GET_USER_DETAIL_BY_TOKEN, new Object[] {token,ip}, new UserSessionMapper()); if(CollectionUtils.isNotEmpty(userSessions)){ return userSessions.get(0); } return null; }
[ "public String getSessionToken() {\n return resourceResponse.getSessionToken();\n }", "public String GetTokenUser(String token);", "public String getSessionToken() throws IllegalStateException;", "@RequestMapping(value = \"/api/user/current\", method = RequestMethod.GET)\n\tpublic ResponseEntity<Use...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void delete(Iterable<? extends Product> arg0) { }
[ "@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" ] ] } }
HashMap that holds the ingredients of the user.
@Test @DisplayName("Setting user ingredients") public void testSetTrolley() { Map<String, Boolean> ingredients = new HashMap<>(); // Add ingredients to the HashMap ingredients.put("Ingredient1",true); ingredients.put("Ingredient2",true); ingredients.put("Ingredient3",tru...
[ "public HashMap<String, Ingredient> getIngredients() ;", "public HashMap< Ingrediente, Double > getIngredientes ()\n\t{\n\t\treturn ingredientes;\n\t}", "public Set<Ingredient> getIngredients()\n {\n return ingredients.keySet();\n }", "public String[] getIngredients() {\n\t\treturn ingredients;\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recipient's email ID needs to be mentioned.
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Random r = new Random(); String to = ((User) request.getSession().getAttribute("user")).getUser(); // Sender's email ID needs to be mentioned String from = "emandi74@gm...
[ "@Override\n\t\t\t\tpublic boolean hasRecipient() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public String getRecipient() {\r\n return recipient;\r\n }", "public String getRecipient() {\n return recipient;\n }", "public String getRecipient() {\r\n return this.recipient;\r\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test basic set and get methods
public void testUserAccessControlEntrySets() throws ClassNotFoundException { // protect the language type LanguageType languageType = new LanguageType(); languageType.setId(44l); languageType.setName("languageName"); // create the language type class IrClassType classType = new IrClassType(langua...
[ "@Test\n\tvoid settersTest(){\n\t\talbum.setArtist(\"Salem\");\n\t\tAssertions.assertEquals(\"Salem\",album.getArtist());\n\t\talbum.setLength(200);\n\t\tAssertions.assertEquals(200, album.getLength());\n\t}", "@Test\n public void whenCalledGetAndSet() {\n assertThat(simple.get(1), is(77f));\n si...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { Date start =new Date(29,10,29,18,30,00); S...
[ "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n Enumeration<String> parameterNames = request.getParameterNames(); //checking for unappropriate parameters\r\n if (parameterNames.hasMoreEleme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the mouse is pressed
public void mousePressed() { }
[ "public static boolean isMousePressed(){\n\t\treturn mousePressed;\n\t}", "private static boolean isMouseButtonPressed() {\n return IntStream.range(0, getInstance().mouseButtonPressed.length).anyMatch(i -> getInstance().mouseButtonPressed[i]);\n }", "public static boolean mousePressed(int mouseButton)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
endregion region CRUD methods
public long cadastrarMateria(Materia m) { ContentValues values = new ContentValues(); long retornoDB; values.put(NOME, m.getNome()); values.put(AREA, m.getArea()); values.put(CARGA_HORARIA, m.getCargaHoraria()); values.put(CAMPUS, m.getCampus()); values.p...
[ "public interface RenovacionPasaporteDAO extends CRUD<RenovacionPasaporte> {\n}", "public abstract boolean dbUpdate();", "@Repository\npublic interface RecruitDao {\n public void saveRecruit(Recruit recruit);\n public List<Recruit> queryRecruit();\n public void deleteById(int id);\n public Recruit q...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created timestmap for this record. .opencannabis.temporal.Instant created = 99;
public io.opencannabis.schema.temporal.TemporalInstant.Instant getCreated() { return created_ == null ? io.opencannabis.schema.temporal.TemporalInstant.Instant.getDefaultInstance() : created_; }
[ "public Instant getCreated() {\n return created;\n }", "public void setCreated(Instant created) {\n this.created = created;\n }", "public long getCreationInstant() {\n return _creationInstant;\n }", "public OffsetDateTime createTime() {\n return this.createTime;\n }", "public Dat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests get patient by id.
@Test void testGetPatientById() { Patient patient = patientRepository.get(4); String firstName = patient.getFirstName(); assertEquals("Claudia", firstName); }
[ "@Test\r\n public void testGetById() {\n\tPersona p = (Persona) s.get(Persona.class, (long) 1);\r\n\tassertEquals(\"dummy\", p.getNombre());\r\n\tassertEquals(18, p.getEdad());\r\n\r\n }", "@Override\n\t\tpublic Patient retrievePatient(Long id) {\n\t\t\treturn patientRepo.findById(id).get();\n\t\t}", "@We...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to transfer authors from a list into a String
public String authorsToString() { String output = ""; int length = this.authors.size(); if (length == 1) { output = this.authors.get(0); } if (length == 2) { output = this.authors.get(0) + " and " + this.authors.get(1); } if (length > 2)...
[ "public String getAuthorsAsString() {\n\n return authors.toString().replace(\"[\" , \"\").replace(\"]\", \"\");\n }", "public String getAuthors() {\n\t\tString authors = \"\";\n\t\tList<String> auths = plugin.getDescription().getAuthors();\n\t\tif (auths.size() == 0) {\n\t\t\treturn \"\";\n\t\t}\n\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Similarly, the worker thread is not inferred. But we could be explicit if we wanted to.
@Override public void handleMessage(Message msg) { onUiThread(); // UNEXPECTED: no warning. }
[ "public Worker getWorker() {\r\n return worker;\r\n }", "Thread getThread() {\n return t;\n }", "public Worker getWorker()\n {\n return this.worker;\n }", "IWorkerThreadAccessBuilder setExecutor(ThreadFactory threadFactory);", "Worker createWorker();", "private void getRunnable(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check for multiples (pair, 2 pair, Trips, quadruples and Yatzy)
private void checkForMultiples(ArrayList<Integer> occurrencesOfDices) { int pair1Sum = 0; //loop through the different dice values staring with the highest number for (int i = 5; i >= 0; i--) { int occurrences = occurrencesOfDices.get(i); //check id pair is already identi...
[ "public static boolean isTwoPair() {\r\n\t\t\r\n\t\tint count = 0;\r\n\t\tint amountOfPairs = 0;\r\n\t\t\r\n\t\tfor(int x = 0; x < hand.length; x++){\r\n\t\t\t\r\n\t for(int y = 0; y < hand.length; y++){\r\n\t \t\r\n\t if(hand[x].value() == hand[y].value()) {count++;}\r\n\r\n\t }\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clicked on New Person on Case Person Tab Created By Dharmesh
public void clickNewPerson() throws AcisException { logger.info("Clicking on New Person Button"); waitForPageLoad(); waitForPageLoadTill(5); clickWebElement(newPerson); waitForPageLoadTill(10); if(isElementPresent(personInvolvedVerifyBy)==false) { waitForPageLoadTill(10); } waitForElement(personInv...
[ "public void newPersona() {\n\t\tcleanForm();\n\t\tthis.action = Action.NEW;\n\t\tthis.stateNewEdit();\n\t\tthis.addMessage(\"Hice click en Nuevo\");\n\t}", "private void createNewCrime() {\n Crime crime = new Crime();\n CrimeLab.get(getActivity()).addCrime(crime);\n //Intent intent = CrimePa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This class cannot be instantiated
private Support() { }
[ "private O()\r\n {\r\n super();\r\n }", "@Override\n }", "private ErlangConversionUtils() {\n throw new UnsupportedOperationException(\"do not instantiate\");\n }", "private Engine() {\n\t\tthrow new UnsupportedOperationException(\n\t\t\t\"This utility class shoul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Android Activity results feedback function depending on your results obtained you might want to feedback different logic to your users.
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); if (requestCode == PICK_IMAGE) { if(requestCode == PICK_IMAGE && resultCode == RESULT_OK && data != null && data.getData() != null ) { ...
[ "private void showResult(){ \n String result = \"\";\n String testResult = \"0\";\n\t\t//Gionee <GN_BSP_AutoMMI><lifeilong><20161115> modify for 6697 begin\n\t\tLog.e(TAG,\"mTestResult = \" + mTestResult);\n\t\t//Gionee <GN_BSP_AutoMMI><lifeilong><20161115> modify for 6697 end\n\n if(mCmdId == ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves a collection of all room lists in the organization.
public EmailAddressCollection getRoomLists() throws Exception { GetRoomListsRequest request = new GetRoomListsRequest(this); return request.execute().getRoomLists(); }
[ "public Collection<Room> getAllRooms(){\n return Utils.makeCollection( roomRepository.findAll() );\n }", "public List<Room> getRoomList() {\n return new ArrayList<>(this.rooms);\n }", "public List<Room> findAll() {\n\t\treturn roomRepository.findAll();\n\t}", "public static List<Room> all(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clean up the datasource
@PreDestroy public void cleanUpDataSource() { if (dataSource != null) { dataSource.shutdown(); } }
[ "protected void cleanUp()\n {\n if (log.isDebugEnabled())\n {\n log.debug(\"Cleaned up the data sources for the table.\");\n }\n appDB = null;\n noOfApps = -1;\n }", "@AfterAll\n public static void closeDataSource() throws SQLException {\n dataSource.d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/! \brief Returns whether video tracking is active.
public boolean videoIsActive() { return this.videoEngagementManager != null && this.videoEngagementManager.started; }
[ "@java.lang.Override\n public boolean hasVideoObjectTracking() {\n return detailCase_ == 8;\n }", "public boolean isSetVideo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(VIDEO$8) != null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Code here will be triggered once the drawer open as we dont want anything to happen so we leave this blank
@Override public void onDrawerOpened(View drawerView) { super.onDrawerOpened(drawerView); }
[ "@Override\n\t\t\t\t\t\t\tpublic void onDrawerOpened(View drawerView) {\n\t\t\t\t\t\t\t}", "@Override\n public void onDrawerClosed(View arg0) {\n\n }", "@Override\r\n\t\t\tpublic void onDrawerOpened(View drawerView) {\n\t\t\t\tsuper.onDrawerOpened(drawerView);\r\n\t\t\t}", "@Override\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the destination directory.
public void setTodir(final File destDir) { writeline("/home/ubuntu/results/coverage/Copy/Copy_2_10.coverage", "1b412f1b-614f-47c8-b15a-d8af1bd69ebd"); this.destDir = destDir; }
[ "public void setDestinationDirectory() {\n String destinationDirectory;\n File dumpDestination;\n\n System.out.println(\"Please enter the destination folder where the files will be organized\");\n currentDirectory(\"destination\",\"destinationLocation\");\n\n destinationDirectory ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
true jika di H ada CD (angka)
@Override public boolean isKondisiTerpenuhi(InfoTeks t, InfoTeks h) { boolean out =false; ArrayList<String> arrNumH = h.cariTag("CD"); out = (arrNumH.size()>0); return out; }
[ "boolean hasInitialModeChinese();", "boolean getInitialModeChinese();", "boolean hasConversionCharacterForm();", "boolean hasInitialModeSimplifiedChinese();", "public static boolean 용사의의지(int 스킬) {\n switch (스킬) {\n case 22171004:\n case 1121011:\n case 1221012:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 239 /Coverage entropy=2.5709924469628094
@Test(timeout = 4000) public void test239() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); Block block0 = new Block(errorPage0); String string0 = ""; block0.u(); FileInput fileInput0 = new FileInput(block0, "", ""); block0.b(); // Undeclared exception! try...
[ "@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function traits symptoms for diseases through the Jalgorithm.
public SearchSystem(final String symptoms, final int runtime) throws Exception { Findtrait bb = new Findtrait(); /*if cutoff value is given (not 0), apply it*/ if (runtime > 0) { bb.setCutoffTime(runtime); } bb.setDiseases(symptoms); this.results = bb; ...
[ "public void describeBehaviour(Description d) {\n d.append(\"Treating \") ;\n d.append(patient) ;\n }", "public void setSymptoms(String symptoms) {\n\t\tthis.symptoms = symptoms;\n\t}", "public void recordSymptoms(Patient patient, String symptoms){\r\n\t\tReport report = patient.getCurrentReport();\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets (as xml) array of all "Causale" elements
it.gov.agenziaentrate.ivaservizi.docs.xsd.fatture.v12.String200LatinType[] xgetCausaleArray();
[ "@Override\n public CarroCompra getElements() {\n return carro;\n }", "public abstract java.util.Collection getCausal_ps_oc_actividad();", "public Collection<CPElement> getElements() {\n Collection<CPElement> all = new ArrayList<>();\n all.addAll(getVariables());\n all.addAll(g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
print on console, if human is instance from one of the following classes: Student, StudentAssistant, Employee
private void print(Human human) { SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); System.out.println("\n"+human.getName()); System.out.printf("\t%d \t %c \t ", human.getAge(), human.getSex() ); printFreeDays(human); if (human.getClass().equals(Student.class)) { System.out.println("\nSt...
[ "public static void main(String[] args) {\n\n Human[] humans = new Human[4];\n humans[0] = new Student();\n humans[1] = new Teacher(10000);\n humans[2] = new Employee(7000);\n humans[3] = new Officer(9000);\n\n ThiThuatToan hieu = new HieuImplement();\n System.out.pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests unpacking a loose file.
@Test public void testUnpack() throws Exception { File baseDir = temporaryFolder.getRoot(); File sourceDir = baseDir.getAbsoluteFile(); File source = createSourceFile(baseDir); File target = getTargetFile(baseDir); FileQueue queue = new FileQueueFactory(Platforms.WINDOW...
[ "@Test\n\tpublic void testModeleUnzip() throws IOException {\n\t\tFile modeleFile = new File(pathZipModele);\n\t\tString repositoryZip = modeleFile.getAbsolutePath();\n\t\tmodeleFile = new File(repositoryZip);\n\t\tString repositoryTemp = modeleFile.getParent()+\"/temp\";\n\t\tFile repositoryFile = new File(reposit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the following random generators draw binary tree having a maximal size. They stop as soon as the size gets greater than the maximal size. They are useful for draw_K (3connected networks), that demands a rejection step.
public static BinaryTree draw_b(int maxSize, Random r){ init_static_parameters(); r.nextDouble(); int c=ch_u_or_v.choose(r); BinaryTree tree=new BinaryTree(); if (c==0){ // System.out.println("black"); tree=draw_u(r); BinaryTree.rootNodeOfLastGeneratedTre...
[ "public void generate(int max){\n max_depth = max;\n root.type = random.nextInt(2);\n root.height = 0;\n if(root.type == 0){\n root.branch[0] = new Node();\n full(1, max, root.branch[0]);\n root.branch[1] = new Node();\n grow(1, max, root.branc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Funciona cuando se cambia el distrito
public void changeDistrito() { if (this.arrendador.getDistrito() != null) { if (!this.arrendador.getDistrito().getId().equals(this.arrendador.getDistritoId())) { loadDistrito(this.arrendador.getDistritoId()); this.arrendador.setDistrito(this.distritoSelected); } } // Cuando es un nuevo Arrendador el...
[ "public void setDistribuidor(java.lang.String distribuidor) {\n this.distribuidor = distribuidor;\n }", "Distribution getDistrbution();", "public void setDistribution(String t){distribution=t;}", "private TypicalDistributors() {}", "LoadDistribution loadDistribution();", "String licensor();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BFStree = new ArrayList>();
public static boolean BFS(int V,int start, int finish, double bwMax,ArrayList<ArrayList<Integer>> BFStree) { int color[]= new int[V+1]; int back[]= new int[V+1]; Queue<Integer> qList= new LinkedList<Integer>(); for (int i=0;i<V;i++) { //color = 0-> chua di qua lan nao //color = 1 -> da di qua 1 lan ...
[ "public StackArrayList(){\n stack = new ArrayList<T>();\n }", "public MyStack()\n {\n storage= new ArrayList<T>();\n }", "public AssignmentFive(){\r\n for(int i = 0 ; i < list.length; i++) \r\n list[i] = new BinarySearchTree<>();\r\n }", "public CamperBST() {\n\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }