query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns a boolean flag signifying the Operating System being Windowsbased. | public static boolean isWin() {
return Utils.isWin(Utils.getOS());
} | [
"public static boolean isWindows(){\n return os.toLowerCase().startsWith(\"win\");\n }",
"public boolean isWindows() {\n\t return checkOSPlatform().toLowerCase().contains(\"windows\");\n\t }",
"private static boolean isWindowsOperatingSystem() {\n return System.getProperty(\"os.name\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Declare variable to hold number of books purchased | public static void main(String[] args) {
int numBooks;
// Prompt user for number of books and store in temporary variable
String input1 = JOptionPane.showInputDialog("Enter the number of monthly books purchased");
// Convert user input to data-type int
numBooks = Integer.parseInt(input1);
// Design... | [
"public int setAmountOfBooks() {\n return amountofBooks;\n }",
"public void setnumOfBooks(){\n numOfBooks = books.size();\n }",
"int getBookShelfsCount();",
"public void setNumItemsBorrowed() { this.numItemsBorrowed++; }",
"int getInvoiceNumberCount();",
"@Override\n\tpublic int selPur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary generalinfo: The retrieve service call consolidated processing record | public Object getInventoryAllocationRetrieveActionTaskRecord() {
return inventoryAllocationRetrieveActionTaskRecord;
} | [
"public com.pccth.rdbservice.InquiryImportCompOperationResponse inquiryImportCompOperation(\n\n com.pccth.rdbservice.InquiryImportCompOperation inquiryImportCompOperation212)\n \n\n throws java.rmi.RemoteException\n \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get user's session details TODO: Handle session error edge cases? | public void publish(View view) {
Session session = Session.getActiveSession();
EditText contentView = (EditText) findViewById(R.id.ad_content);
EditText titleView = (EditText) findViewById(R.id.ad_title);
Bitmap currBitmap = mApp.getAdCreationManager().getCurrentBitmap();
Uri fileUri = mApp.get... | [
"private User getUser() {\n return (User) session.getAttribute(\"user\");\n }",
"public UserModel getUserDetails() throws LmsException {\n\t\tString sessionId = super.getSessionId();\n\t\tSession session = SessionCache.sessionExists(sessionId);\n\t\tif (session == null) {\n\t\t\tLOG.error(\"Session does... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string tmgi = 3; | public Builder setTmgiBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tmgi_ = value;
onChanged();
return this;
} | [
"public void mo3697b(String str) {\n this.f5032g = str;\n }",
"public String method_178() {\r\n String[] var10000 = field_7722;\r\n return \"texture\";\r\n }",
"void onimagetext(String[] strings,int[] imgs);",
"public abstract Image mo3321t();",
"void mo7901vI(String str);",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by samir on 8/1/16. | public interface AddStockCallBack {
void setError(Exception e);
} | [
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n }",
"protected void method_5557() {}",
"protected void mo4791d() {\n }",
"@Override\n \tpublic void init... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Purges the cache. It releases all the Sprite Frames and the retained instance. | public static void purgeSharedSpriteFrameCache() {
if (sharedSpriteFrameCache_ != null) {
sharedSpriteFrameCache_.removeAllSpriteFrames();
sharedSpriteFrameCache_ = null;
}
} | [
"void releaseCache() {\n handlerCache.clear();\n inMemoryCache.clear();\n }",
"protected void free()\n {\n synchronized (cache)\n {\n // if opened to write then remove the block\n if (openedToWrite)\n cache.removeWriteOpen(owd[0].getAddressAsString() + getPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates a CBOR object from a data stream in JavaScript Object Notation (JSON) format and UTF8 encoding. This function only accepts maps and arrays. | public static CBORObject ReadJSON(InputStream stream) throws IOException {
JSONTokener tokener = new JSONTokener(stream, 0);
try {
CBORObject obj = tokener.ParseJSONObjectOrArray();
if (tokener.nextClean() != -1)
throw tokener.syntaxError("End of data stream not reached");
... | [
"public abstract JsonValue readFrom( InputStream data, Charset charset ) throws IOException, JsonException;",
"public JSONStreamDecoder(final InputStream inStream) {\n this.buffer = CharBuffer.allocate(25);\n try {\n this.reader = new BufferedReader(\n new InputStreamReader(inStream, \"UTF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A representation of the IAM policy set on a Google Cloud resource. There can be a maximum of one IAM policy set on any given resource. In addition, IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both ... | boolean hasIamPolicy(); | [
"public interface AuthorizationPolicy {\n\n /**\n * Get the collection of roles this policy is related to.\n */\n Set<Role> getRoles();\n\n /**\n * Get the collection of groups this policy is related to.\n */\n Set<Group> getGroups();\n\n /**\n * Get the description of an existing... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a random String of numbers and letters (lower and upper case) of the specified length. The method uses the Random class that is builtin to Java which is suitable for low to medium grade security uses. This means that the output is only pseudo random, i.e., each number is mathematically generated so is not truly... | public static final String randomString(int length) {
if (length < 1) {
return null;
}
// Create a char buffer to put random letters and numbers in.
char[] randBuffer = new char[length];
for (int i = 0; i < randBuffer.length; i++) {
randBuffer[i] = numbe... | [
"public String getRandomAlphaNumeralString(int length) {\n return RandomStringUtils.random(length, \"0123456789ABCDEFabcdef\");\n }",
"public static String generateString(int length) {\n return RandomStringUtils.randomAlphabetic(length).toLowerCase(Locale.ENGLISH);\n }",
"public static Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .hadoop.mapreduce.TaskAttemptIdProto task_attempt_id = 1; | org.apache.hadoop.mapreduce.v2.proto.MRProtos.TaskAttemptIdProtoOrBuilder getTaskAttemptIdOrBuilder(); | [
"protected final String getTaskAttemptId() {\n return stageConfig.getTaskAttemptId();\n }",
"public static int getAppAttemptId(JobContext context) {\n return getAppAttemptId(context.getConfiguration());\n }",
"@Override\n\tpublic void setAttemptId(long attemptId) {\n\t\t_testItemAttempt.setAttemptId(att... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void onBrowserEvent(Event event) {
} | [
"@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"
]
]
}
} |
Gets the attribute value for InvoiceValue, using the alias name InvoiceValue. | public Number getInvoiceValue() {
return (Number)getAttributeInternal(INVOICEVALUE);
} | [
"public String getValue() {\n return getAttributeValue(ATTR_VALUE);\n }",
"org.cwv.client.sdk.model.Account.AccountValue getValue();",
"com.palantir.paxos.persistence.generated.PaxosPersistence.PaxosValue getVal();",
"@SuppressWarnings({\"AutoBoxing\"})\n public Object getValue() {\n Atomi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Displays the start and end of the event Loads picture | @Override
public View getView(int position, View convertView, ViewGroup parent) {
DtoEventBase event = getItem(position);
ViewHolder holder;
if (convertView == null) {
convertView = LayoutInflater.from(getContext()).inflate(R.layout.my_up_adapt, parent, false);
holder... | [
"public void showLoad() {\n\t\trevalidate();\n\t\trepaint();\n\t\t/**Si ferma per 100 millisecondi, perché il cambiamento sia visibile*/\n\t\ttry {\n\t\t\tThread.sleep(100);\n\t\t}\n\t\tcatch(InterruptedException exc)\n\t\t{\n\t\t\t/**Questo catch si attiva se il programma viene interrotto durante lo sleep della ba... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper method to publish a performed action metric immediately | public static void publishPerformedAction(MetricsDataModel dataModel) {
dataModel.addAttribute(END_RESULT, SUCCEEDED).publishEvent();
} | [
"@Override\n\tpublic void immediateAction() {\n\t}",
"public void exportAction(WeakReference<Action> action);",
"void addAction(Runnable action, float expirationTime);",
"public interface Action {\n\t// actions contain the specific code of an event\n\tvoid trigger( float time );\n }",
"public void perfor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.object_detection.protos.SsdAnchorGenerator ssd_anchor_generator = 2; | public object_detection.protos.SsdAnchorGeneratorOuterClass.SsdAnchorGenerator.Builder getSsdAnchorGeneratorBuilder() {
return getSsdAnchorGeneratorFieldBuilder().getBuilder();
} | [
"private SsdAnchorGenerator(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:34:36.601 -0500\", hash_original_method = \"02D67B7BBDDCEC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the MIFEntrySetEntry list the be persisted | protected MIFEntrySetEntry createMIFEntrySetEntry(EntityManagerFactory emf, EntityManager em, MIFEntrySetEntry objectList) throws Exception {
if (objectList != null) {
printMsg(new Exception().getStackTrace()[0].getMethodName());
MIFEntrySetEntry mIFEntrySetEntry = em.find(objectList.get... | [
"public Set entrySet() {\n \n return new EntrySet();\n \n }",
"public Set entrySet() {\n return null;\n }",
"public Set entrySet() {\n\t\treturn null;\n\t}",
"@Override\n\t\tpublic Set entrySet() {\n\t\t\treturn null;\n\t\t}",
"public Set<Map.Entry<K,V>> entrySet()\n {\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called when the back button is pressed. | @Override
public void onBackPressed() {
// If the product hasn't changed, continue with handling back button press
if (!mProductHasChanged) {
super.onBackPressed();
return;
}
// Otherwise if there are unsaved changes, setup a dialog to warn the user.
... | [
"@Override\n\tpublic void backButtonPressed() {\n\n\t}",
"@Override public void onBackPressed() {\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\t\n\t\tsuper.onBackPressed();\n\t\t\n\t}",
"public void backButton() {\n\t\t\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new instance of the special form. | protected SpecialForm(final String... definition) {
super(definition);
} | [
"protected QuestionForm() {/* intentionally empty block */}",
"@Override\n public AbstractForm createSingletonForm(String layerName) {\n \treturn null;\n }",
"public FormUtil() {}",
"public PrescriptionForm () {\r\n }",
"protected GuiTestObject form_convictionForm() \n\t{\n\t\treturn new GuiTestO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the empleado_bitacora_posicion table that match the criteria 'velocidad_m_x_seg = :velocidadMXSeg'. | public EmpleadoBitacoraPosicion[] findWhereVelocidadMXSegEquals(double velocidadMXSeg) throws EmpleadoBitacoraPosicionDaoException; | [
"public List<FecetImpuesto> findWhereMontoEquals(BigDecimal monto) {\n\n return getJdbcTemplateBase().query(SQL_SELECT.append(\" WHERE MONTO = ? ORDER BY MONTO\").toString(),\n new FecetImpuestoMapper(), monto);\n\n }",
"public TipoPago[] findWhereClaveMetodoSatEquals(String claveMetodoSa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .org.jetbrains.kotlin.gradle.idea.proto.generated.kpm.IdeaKpmProjectProto project = 24; | public boolean hasProject() {
return ((bitField0_ & 0x00000010) != 0);
} | [
"com.google.protobuf.StringValueOrBuilder getProjectNameOrBuilder();",
"com.google.protobuf.StringValue getProjectName();",
"com.google.protobuf.ByteString\n getProjectManagerBytes();",
"@java.lang.Override\n public com.google.protobuf.ByteString getProjectBytes() {\n java.lang.Object ref = p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checker if task is done | @Override
@NotNull
public synchronized boolean isReady() {
return supplier == null;
} | [
"boolean hasFinish();",
"public boolean isDone() {\n return status != 0;\n }",
"public boolean isTaskCompleted();",
"@Override\r\n\tpublic int isDone() {\n\t\treturn 0;\r\n\t}",
"public boolean isDone() {\n return false;\n }",
"@Override\r\n\t\t\tpublic boolean isDone() {\n\t\t\t\treturn fal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Page'. This implementation returns null; returning a nonnull result will terminate the switch. | public T casePage(Page object)
{
return null;
} | [
"public T caseEntityPages(EntityPages object) {\r\n\t\treturn null;\r\n\t}",
"public T caseCardPage(CardPage object) {\n\t\treturn null;\n\t}",
"public Page page();",
"public PSPage getPage()\n {\n return page;\n }",
"public T casestaticPage(staticPage object) {\r\n\t\treturn null;\r\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds a block at the designated location during initialization of the level | void addBlock(Block block); | [
"public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state) {\n/* 102 */ worldIn.setBlockState(pos, state, 3);\n/* 103 */ notifyHook(worldIn, pos, state);\n/* */ }",
"public void onBlockAdded(World world, int x, int y, int z) {\n\t}",
"public void beginBlock() {\n stm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize the provided sample rules to be triggered when needed | public void initRules() {
// Register rules to the engine
ProjectQualityRule projRule = new ProjectQualityRule();
ThresholdReachedRule threshRule = new ThresholdReachedRule();
MetricUpdateRule metRule = new MetricUpdateRule();
rulesEngine.registerRule(projRule);
rulesEngine.registerRule(threshRule);
... | [
"public void initialize() {\n initializeRules();\r\n }",
"private void init() {\n\t\tbasicRules = new BasicRules(model.getGridModel(), 0);\n\t}",
"private void learnerInit(){\n conclusionSet.setConclusionSet(Main.KB.getConclusionSet());\n \n Rule newRule = new Rule();\n \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
:DateProcessed = "20080829 16:57:38 +0000" ; :date_created = "20080829T16:57:38 +0000" ; :FlightDate = "08/27/2008" ; | private String getDates(String dmtr) {
String ret="";
String date = ""+fin.findGlobalAttribute("FlightDate");
if (date.equals("null") || date.length() == 0) {
date = "01/01/1970";
}
date = trimBegEndQuotes(date);
ret += date.split("/")[2] + dmtr + " " +
date.split("/")[0] + dmtr + " " +
... | [
"@DISPID(2012) //= 0x7dc. The runtime will prefer the VTID if present\n @VTID(13)\n java.lang.String fileCreatedDate();",
"public String systemDateandTime()\n{\n String Systemdate = currentdate.replace(' ', '_').replace(':', '_');\n\treturn Systemdate;\n}",
"public void setcreated_time(String ct) throws Pa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draws the LimitLines associated with this axis to the screen. | @Override
public void renderLimitLines(Canvas c) {
List<LimitLine> limitLines = mYAxis.getLimitLines();
if (limitLines == null || limitLines.size() <= 0)
return;
float[] pts = mRenderLimitLinesBuffer;
pts[0] = 0;
pts[1] = 0;
Path limitLinePath = mRender... | [
"public void draw() {\r\n double w = getWidth();\r\n double h = getHeight();\r\n\r\n GraphicsContext gc = getGraphicsContext2D();\r\n gc.setFill(Color.WHITE);\r\n gc.clearRect(0, 0, w, h);\r\n gc.fillRect(0, 0, w, h);\r\n drawLines();\r\n }",
"@Override\n pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For the given interface, get the stub implementation. If this service has no port for the given interface, then ServiceException is thrown. | public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
try {
if (web.Producer.class.isAssignableFrom(serviceEndpointInterface)) {
web.ProducerSoapBindingStub _stub = new web.ProducerSoapBindingStub(new java.net.URL(Producer_address),... | [
"public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {\n try {\n if (mc_style.functions.soap.sap.document.sap_com.ZFM_BUSINESS_PARTNER_SERVICE.class.isAssignableFrom(serviceEndpointInterface)) {\n mc_style.functions.soap.sap.document.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests that deserialized input returns appropriate values when no environment variables are set. | @Test
public void deserializeWithoutEnvironmentVariablesTest() throws CodecException {
//default values specified in resource input file
int expectedMyInt = 100;
String expectedMyString = "default-appended";
boolean expectedMyBoolean = false;
String expectedNestedString = "de... | [
"@Test\n @SetEnvironmentVariable(key = \"MP_MESSAGING_CONNECTOR_SOME_CONNECTOR_ATTR3\", value = \"used\")\n @SetEnvironmentVariable(key = \"MP_MESSAGING_CONNECTOR_SOME_CONNECTOR_ATTR4\", value = \"used-2\")\n public void testGetFromEnv() {\n assertThat(config.getOptionalValue(\"ATTR3\", String.class... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the OMSSA cutoff expectation score. | public double getOmssaCutoff() {
return omssaCutoff;
} | [
"public double get_score() {\n /*if(Args.circuit_score.equals(\"onoff_ratio\")) {\n return _onoff_ratio;\n }\n else if(Args.circuit_score.equals(\"noise_margin\")) {\n return _noise_margin;\n }\n else if(Args.circuit_score.equals(\"histogram\")) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
reinitialise all vertices to positive infinity | public static void initialiseVertices (Vertex[] allvertices)
{
for (int i = 0; i < allvertices.length; i++){
allvertices[i].minDistance = Double.POSITIVE_INFINITY;
}
} | [
"private void resetAllVertices() {\n for (Vertex vertex: graph.values()) {\n vertex.visited = false;\n //reset edges\n vertex.previous = null;\n }\n }",
"private void reset() {\n\t\tCollection<node_data> ver = algo.getV();\n\t\tfor(node_data tmp : ver) {\n\t\t\tVe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Silence the ringer (if an incoming call is ringing.) | private void internalSilenceRinger() {
if (DBG) log("internalSilenceRinger()...");
final CallNotifier notifier = mApp.notifier;
if (notifier.isRinging()) {
// ringer is actually playing, so silence it.
notifier.silenceRinger();
}
} | [
"private void silenceRingerInternal() {\n //MTK-START [mtk04070][111117][ALPS00093395]MTK modified\n /* Fion add start */\n Phone.State state;\n /*if (FeatureOption.MTK_GEMINI_SUPPORT == true)\n {\n state = ((GeminiPhone)mPhone).getState(); // IDLE, RINGING, or OFFHOOK... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize with icon and data array | public Qnadetail_Item(String[] obj) {
this.aData = new String[obj.length];
for(int i=0; i<obj.length; i++) {
this.aData[i] = obj[i];
}
} | [
"void setIcon(byte[] icon);",
"private void initIcon() {\n Icons upbook = new Icons(\"浏览和删除用户\", R.drawable.c);\n IconsList.add(upbook);\n Icons debook = new Icons(\"浏览和删除评价\", R.drawable.e);\n IconsList.add(debook);\n }",
"public void InitData() {\n this.mItemTitleIds = ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the effective group ID. | long getegid(); | [
"public String getIdGroup() {\r\n\t\treturn this.idGroup;\r\n\t}",
"@Override\r\n\tpublic long getGroupId() {\r\n\t\treturn _esfTool.getGroupId();\r\n\t}",
"public long getGroupID() {\r\n\t\treturn groupID;\r\n\t}",
"@Override\n\tpublic long getGroupId() {\n\t\treturn _officeSupply.getGroupId();\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO add your handling code here: | private void ByrButtonActionPerformed(java.awt.event.ActionEvent evt) {
if (cashFieldText.getText().isEmpty()){
JOptionPane.showMessageDialog(null, "Masukkan Cash Duit Anda Dulu!");
}
else if (totalFieldText.getText().isEmpty()){
JOptionPane.showMessageDialog(null, "Anda ... | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"protected void method_5557() {}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\tprotected void handleResponse(Response response) {\n\n\t}",
"@Override\n protecte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for a SocketUDPNode that only receives data, with an option to ignore the timestamp on incoming packets. | public SocketUDPNode(String name, int dimension, int localPort, int socketTimeout,
boolean ignoreTimestamp) throws UnknownHostException {
this(name, dimension, localPort, "", -1, Math.max(socketTimeout, 1), ignoreTimestamp);
} | [
"pstake.lscosmos.v1beta1.Packet.NoDataOrBuilder getNoDataOrBuilder();",
"public UDP2()\n {\n // initialise instance variables\n x = 0;\n }",
"public DatagramIOConfigurationImpl(int timeToLive, int maxDatagramBytes) {\n/* 37 */ this.timeToLive = timeToLive;\n/* 38 */ this.maxDatagramB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Cart findfidByuid(Cart cart) {
return dao.findfidByuid(cart);
} | [
"@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 ADD RATING BY BOOK ISBN / GET ALL BOOKS WITH RATING Shows only title and rating as the task said | @GetMapping()
public List<BookList> retrieveAllRating() {
return bookListService.retrieveAllRating();
} | [
"public List<RatingValue> getRating(Textbook book);",
"@GET\n\t@Path(\"getbooksbyrating/{rating}\")\n\tpublic Response getBooksByRating(@PathParam(\"rating\") Integer rating);",
"private static void getBbooks() {\n\t\toutput(\"\");\r\n\t\tfor (book book : lib.getBooks()) {\r\n\t\t\toutput(book + \"\\n\");\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whether instant run is enabled optional bool instant_run_enabled = 4; | public boolean hasInstantRunEnabled() {
return ((bitField0_ & 0x00000008) != 0);
} | [
"public void setShouldRun(boolean shouldRun);",
"public void setRunning(boolean run);",
"boolean isHasRun();",
"public boolean inRunMode() {\n\t\tif (execution_mode == RxConstants.EM_RUN) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void setIsFirstRun(boolean state) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method returns the value of the database column GHPORT.OB_VIDEO.DESCRIPTION | public String getDescription() {
return description;
} | [
"public String getDescription()\n {\n return this.getStringValue(AVKey.DESCRIPTION);\n }",
"public VideoDescriptionElements getVideoDescriptionAccess() {\n\t\treturn pVideoDescription;\n\t}",
"@Override\n\tpublic Blob getVIDEO() {\n\t\treturn _projectAcknowledgementRegistration.getVIDEO();\n\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int getLayout() {
return R.layout.activity_choose_pay_method;
} | [
"@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"
]
]
}
} |
List findById_TxtAnoprocesoAndId_CodMesAndId_CodOrigenAndId_CodComprobanteAndCodCtacontable( String s, String s2, String s3, String s4, String s5); | List<ScpComprobantedetalle> findById_TxtAnoprocesoAndId_CodMesAndId_CodOrigenAndId_CodComprobante(
String s, String s2, String s3, String s4); | [
"String getSqlCab(int tlaCodi, int sbeCodi)\n {\n if (tlaCodi == LISTADO_GENERICO)\n { \n String condArt = \" 1 = 1 \"+\n (!proiniE.isNull() ? \" and pro_codi \"+(profinE.isNull()?\"\":\">\") +\n \"= \" + proiniE.getValorInt() : \"\") +\n (!profinE.isNull() ? \" ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wait for dynamic control does not display | public void waitForControlNotDisplayed(WebDriver driver, String dynamicControlName, long timeout, String... inputValue) {
try {
By by = control.getBy(driver, dynamicControlName, inputValue);
WebDriverWait wait = new WebDriverWait(driver, timeout);
wait.until(ExpectedConditions.invisibilityOfElementLocated(by... | [
"protected abstract void waitUntilVisible();",
"public void waitForDisplay() {\n ui.waitUntilVisible(By.cssSelector(\"#graphContent svg g\"));\n Utils.sleep(300);\n }",
"@Override\n public void waitUntilPageObjectIsLoaded() {\n wait.until(ExpectedConditions.visibilityOf(newBtn));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Random of its owned countries to move from | @Override
public Country toMoveFrom() {
return toDefend();
} | [
"public String randomCountry() {\n //get the active player\n Player player = holder.getActivePlayer();\n // retrieving the countries conquered by the player\n HashMap<String, Integer> countriesConquered = player.getCountriesConquered();\n Random rand = new Random();\n int n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
String dateUser = "02/04/2017/11/14"; | public void onBloodSubmit(String bloodGlucoseNum, String dateSend) {
String[] splitOnSlash = dateSend.split("/");
Date date = null;
SimpleDateFormat format = new SimpleDateFormat("MM/dd/yyyy/HH/mm", Locale.US);
try {
date = format.parse(dateSend);
} catch (ParseExcept... | [
"void valdate(String date){\n DateTimeFormatter format=DateTimeFormatter.ofPattern(\"MMM/dd/yyyy\");\n format.parse(date);\n }",
"public LocalDate getUsersDate() { //Pass a paramater here?\n LocalDate usersDate = myIO.readLocalDate(\"Enter a date in the format MM/dd/yyyy\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void keyPressed(KeyEvent e) {
} | [
"@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"
]
]
}
} |
Returns the String representation of the stack | @Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("[");
for (int i = 0; i < size; i++) {
sb.append(array[i]);
if(i != size - 1) {
sb.append(", ");
}
}
sb.append("]");
retu... | [
"public String toString () {\n\t\treturn stack.toString();\n\t}",
"private String stringRepresentationOfStack(){\n\t\tchar[] stackChars=this.stack.toString().replace(\"[\",\"\").replace(\"]\",\"\").replace(\",\",\"\").replace(\" \",\"\").toCharArray();\n\t\tString s=\"\";\n\t\tfor(int i=stackChars.length-1;i>=0;i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the policyDefinitionCategory property: Policy definition category. | public PolicyEventInner withPolicyDefinitionCategory(String policyDefinitionCategory) {
this.policyDefinitionCategory = policyDefinitionCategory;
return this;
} | [
"public CreatePolicyRequest withDefinition(PolicyDefinition definition) {\n setDefinition(definition);\n return this;\n }",
"public void setCategory(String category) {\r\n\t\tthis.category = category;\r\n\t\tnotifyChanged(new ModelEvent(this, PROPERTY_CHANGED, \"category\"));\r\n\t}",
"public v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method is used to substitute the subtractive | public static String removeSubtractive(String input){
//This part is used to correspond to remove subtractives
Map<String,String> map = new HashMap<String,String>();
map.put("IV","IIII");
map.put("IX","VIIII");
map.put("XL","XXXX");
map.put("XC","LXXXX");
map.put(... | [
"@Override\n\tpublic void visit(LateralSubSelect lateralSubSelect) {\n\t\t\n\t}",
"private void Subdivisable() {\n\t\t\r\n\t}",
"@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 trabalhar() {\n\t\t\r\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
////////////////////////////////////////////////////////////////////////////// Package Internal Static Methods ////////////////////////////////////////////////////////////////////////////// Performs a unit test of WITM. | static void performTest ()
{
ThreadTester theThreadTester;
theThreadTester = new ThreadTester ();
theThreadTester.perfTest ();
} | [
"private static void testInventoryTime(){\n InventoryUI.noCoins = 2;\n InventoryUI.noMedals = 2;\n assert(InventoryUI.getInventoryTime() == 44);\n\n InventoryUI.noCoins = 0;\n InventoryUI.noMedals = 4;\n assert(InventoryUI.getInventoryTime() == 80);\n\n InventoryUI.noCoins ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void setHoldability(int holdability) throws SQLException {
} | [
"@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"
]
]
}
} |
challengeTwo: String sorting and searching Data Set an array of 10,000 random strings (strings will be of length 5) Task: Sort the list and determine if it contains a given string, return the index of the first instance of that string, or 1 if not found | @Override
public int challengeTwo(String[] arr, String query)
{
int y = 0;
bubbleSort(arr);
for (int x = 0; x < arr.length; x++)
{
if (arr[x].equals(query))
{
return x;
}
}
return -1;
} | [
"private int buscarArray(String[] array, String string) {\n\t\tint i = 0;\n\n\t\twhile (i < array.length) {\n\t\t\tif (array[i].equalsIgnoreCase(string)) return i;\n\t\t\ti += 1;\n\t\t}\n\t\treturn -1;\n\t}",
"public static String mfind(String substring, String TargetString){ \n if (substring == null){\n \t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for street name | public String getStreet() {
return street;
} | [
"public String getStreetName() {\r\n return streetName;\r\n }",
"public String getStreetName() {\r\n return this.streetName;\r\n }",
"public java.lang.String getStreet();",
"public java.lang.String getStreetName(){\r\n return localStreetName;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creating a new instance of the Access Session. Note the session is not active (started) yet. | public synchronized String createAccessSession() throws KernelException {
log.debug("-> start processing ...");
String ret = null;
try {
log.debug("getting instance of ServiceLocator");
ServiceLocator serviceLocator = ServiceLocator.getInstance();
log.debug("getting instance of AccessSessionLocal");
A... | [
"public Session createSession() {\n return Session.getInstance(this.properties, null);\n }",
"Session createSession(String accessKey) throws AccessDeniedException, RemoteException;",
"private void createSession() {\n\t\tif(session == null) {\n\t\t\tsession = SessionUtil.getSession();\n\t\t}\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function attempts to guess which OracleData type a particular column is based on its properties. Be careful to define all database fields in a standard way. | @Override
public Class<?> assignType(Class<?> columnClass, int precision, int scale) {
Class<?> type;
if (columnClass == BigDecimal.class) {
switch (precision) {
case 0:
switch (scale) {
case -127:
// type = OracleDecimal.class;
// break;
default:
type = BigDecimal.class;
break... | [
"public native String\tgetColumnType(String col);",
"private String getColumnType() {\n\n if (dd.optimise_TextOnly == true) {\n fieldType = 2;\n }\n \n String columnType = null;\n\n if (databaseType == 1) {\n columnType = getColumnType_MySql();\n } else if (databaseType == 2) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'type' field | public com.linkedin.whiteelephant.analysis.TaskType getType() {
return type;
} | [
"public String getType() { return this.type.toString(); }",
"public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}",
"public String getType() {\n return (type_);\n }",
"public String getType() {\n \t\treturn _type;\n \t}",
"public String getType() {\r\n return this.type;\r\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TestClass s = (TestClass)SpringBeanUtil.getBean(TestClass.class); s.test(); SpringBeanUtil.destroyContext(); | public static void main(String args[]) {
A a = (A)SpringBeanUtil.getBean(A.class);
a.fun();
SpringBeanUtil.destroyContext();
// Map<String, String> map = new HashMap<String, String>();
// String s1 = new String("zhangsan");
// map.put("hellp", s1);
// s1= ne... | [
"@Test\n public void test01(){\n AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MainConfigOfLifeCycle.class);\n\n printBean(applicationContext);\n applicationContext.close();\n }",
"public static void main(String[] args) throws Exception \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove an item from the buffer. | public double pop()
{
if (isEmpty())
{
throw new RingBufferException("underflow - pop");
}
size--;
int tmp = first;
first = (first + 1) % ring.length;
return ring[tmp];
} | [
"public BufferItem remove_item() {\n BufferItem remove = null;\n try {\n full.acquire();\n mutex.acquire();\n } catch (InterruptedException ex) {\n System.out.println(ex.getMessage());\n }\n\n if (size > 0) { // If size is bigger than 0, buffer is ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
LeftScaleLR() has NOT been tested. Try this whenever possible. | public void LeftScaleLR() {
LeftSwitch();
} | [
"public RightStartToLeftScale() {\n\t\t\n\t\tSystem.out.println(\"Robot moving to Left side Scale\");\n\t//\taddSequential(new DriveBackward(2));\n\t//\taddSequential(new TurnRobot(180));\n\t\taddSequential(new DriveForward(3));//before turning\n\t\taddSequential(new TurnRobot(40, true), 0.5);\n\t\taddSequential(ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the credit value of the course. | public double getCredit(){
return credit;
} | [
"double getCreditAmount();",
"@Override\n\tpublic int getcredit() {\n\t\treturn upo.getCredit();\n\t}",
"public double getCredit(){\n Object result = attributes.get(\"credit\");\r\n if(result != null){\r\n return Double.parseDouble((String)result);\r\n }\r\n //TODO: throw ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Drops the data associated with this bucket from the database. | Publisher<Success> drop(ClientSession clientSession); | [
"@Override\r\n\tpublic void dropBucket(String bucketName) throws JDOException {\r\n\t\tassertNotClosed();\r\n\t\texecute(\"DROP TABLE \"+bucketName);\r\n\t}",
"public void drop() {\n lmdbEnvironment.doWithWriteTxn(this::drop);\n }",
"private void removeFromDb()\n\t{\n\t\t// cancel lazy update task if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Initialize standard Hardware interfaces | public void init(HardwareMap ahwMap) {
// Save reference to Hardware map
hwMap = ahwMap;
/**********************************************************************************
* Define and Initialize Motors
**********************************************************************... | [
"public void initHardware() {\n drivetrain.initHardware();\n intake.initHardware();\n outtake.initHardware();\n markerArm.setPosition(MARKER_ARM_UP);\n }",
"@Override\r\n public void init() {\r\n robot = new HardwareChassis(hardwareMap);\r\n colorTools = new ColorTo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET SUM OF ALL PREVIOUS EFFECTIVE DOSES Total of all internal and external exposition doses. OF ALL _PREVIOUS_ YEARS (excluding the current year) | public double getSumOfAllPreviousEffectiveDoses(){
int firstDosiYear = Integer.parseInt(new SimpleDateFormat("yyyy").format(new java.util.Date()));
int firstIEYear = Integer.parseInt(new SimpleDateFormat("yyyy").format(new java.util.Date()));
double dose = -1;
try{
firstDosi... | [
"public int cumulativeSum() {\n // YOUR CODE HERE\n int total = 0;\n EquationList d = history;\n while (d != null){\n total = total + d.result;\n d = d.next;\n }\n return total;\n }",
"public int cumulativeSum() {\n // YOUR CODE HERE\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
noinspection all // Sample code | public void testViewMatch() {
String expected =
""
+ "src/com/example/helloworld/AppIndexingApiTest.java:26: Warning: GoogleApiClient mClient is not connected [GoogleAppIndexingApiWarning]\n"
+ " AppIndex.AppIndexApi.view(mClient, this, APP_URI,... | [
"public @Test @Ignore void foo() {}",
"void mo15741a() throws Throwable;",
"@Ignore\n public void testDisapproveReason() throws Exception {\n\n }",
"private static void exceptionCausingCode() {\n }",
"private void method3()\n { // JavadocStyle should not report any error for this method\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A.4.3.3 DescribeProcess operation response | @Test(groups = "A.4.3. DescribeProcess operation test module", description = "Verify that a server satisfies all requirements on the DescribeProcess operation response.")
public void DescribeProcessResponseValidation() throws IOException, SAXException {
//Set KVP request
String serviceURL = testSubjectUri.toStrin... | [
"public DescribeProcessStatisticsResponse DescribeProcessStatistics(DescribeProcessStatisticsRequest req) throws TencentCloudSDKException{\n JsonResponseModel<DescribeProcessStatisticsResponse> rsp = null;\n String rspStr = \"\";\n req.setSkipSign(false);\n try {\n Type ty... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional float start_time = 2; | public float getStartTime() {
return startTime_;
} | [
"void start(float time, float... value);",
"public void setStartTime(double time)\n {\n start = time;\n }",
"public void setStartTime()\n\t{\t\t\n\t\tthis.startTime = (double) System.nanoTime()/Math.pow(10, 9);\n\t}",
"@Override\npublic void girarIzquierda(float time) {\n\t\n}",
"@Override\n\t\t\t\t\tp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generate code for the nesC interface connections. The order of ports in the model is the order in which the connections are generated. | private String _includeConnection(CompositeActor model) {
_CodeString codeString = new _CodeString();
Actor actor;
// Generate "Driver functions" for common actors.
Iterator actors = model.entityList().iterator();
while (actors.hasNext()) {
actor = (Actor) actors.next();
if (_needsInputDriver(actor))... | [
"private void writeConnections()\n\t{\n\t\tCOBIEType cType = this.GetCobie();\n\t\tIfcToConnection.writeConnections(cType, model);\n\t}",
"public void generateOutputCPorts() {\n if ((!_task.hasSplitDecorator()) ||\n (_task.getSplitDecorator().getType() == Decorator.AND_TYPE)) {\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method gets the predicate between two concepts connected by one edge. The dataset/sparqlendpoint used is dbpedia | public ResultSet getPredicate(String conceptOne,String conceptTwo) {
String queryString = createSparqlQueryToGetProperties(conceptOne, conceptTwo);
ResultSet results = null;
try {
queryEngine = new QueryEngineHTTP("http://dbpedia.org/sparql",queryString);
results = queryEngine.execSelect();
} catch (Resul... | [
"public NamedNode getPredicate();",
"private void indexPredicate(BeaconPredicate bpt, Integer beaconId) {\n\t\t\n\t\tString id = bpt.getId() ;\n\t\tString uri = bpt.getUri();\n\t\tString edgeLabel = bpt.getEdgeLabel();\n\t\tString relation = bpt.getRelation();\n\t\tString description = bpt.getDescription();\n\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an iterator over the four corners of the sector, starting with the southwest position and continuing counterclockwise. | public Iterator<LatLon> iterator() {
return new Iterator<LatLon>() {
private int position = 0;
public boolean hasNext() {
return this.position < 4;
}
public LatLon next() {
if (this.position > 3)
throw new NoSu... | [
"public Iterator<Vector4f> getParentGlobalCorners() {\n\t\treturn Streamerator.map(getLocalCorners(),\n\t\t\t\tlocal -> new Vector4f(local, 1.0f).mul(getModelTransform()));\n\t}",
"public Iterator<Point> iterator() {\n return new Iterator<Point>() {\n int i = 0;\n public b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Persists the contract instance. | public void persistContract(DelegateExecution test) {
Map<String, Object> variables = test.getVariables();// Get all process variables
name=(String)variables.get("name");
phone=(String)variables.get("phone");
mail=(String)variables.get("mail");
address=(String)variables.get("address");
// Create cus... | [
"public int saveContract(Contract contract);",
"public void save() {\n this.persist();\n }",
"@Override\n public void commitInstance() {\n fileWriter(toString(), MembershipCard.directory, id+\"\");\n }",
"void storeCommit() {\n try {\n File existing = new F... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A service role for the run. | public String getRoleArn() {
return this.roleArn;
} | [
"public void setServiceRole(String serviceRole1) {\r\n this.serviceRole = serviceRole1;\r\n }",
"public void setServiceRole(java.lang.String param){\n localServiceRoleTracker = true;\n \n this.localServiceR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Places a new pollution source | public void placePollutionSource(Point p, double rate) {
Tile t = world.getTile(p);
placePollutionSource(t, rate);
} | [
"void addSource(Location loc, float count, float rate, float max);",
"public void placeSoldierNewCountry(Point mouse) {\n\n if (board.getSelectedCountry().inBounds(mouse)) {\n board.setTroopsToPlace(board.getTroopsToPlace() - 1);\n board.getSelectedCountry().numSoldiers++;\n }\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleForm" $ANTLR start "ruleForm" InternalDSLSAT.g:514:1: ruleForm returns [EObject current=null] : ( ( (lv_form_0_0= ruleConst ) ) | ( (lv_form_1_0= ruleVar ) ) | ( (lv_form_2_0= ruleNotForm ) ) | (otherlv_3= '(' ( (lv_form_4_0= ruleBiImplForm ) ) otherlv_5= ')' ) ) ; | public final EObject ruleForm() throws RecognitionException {
EObject current = null;
Token otherlv_3=null;
Token otherlv_5=null;
EObject lv_form_0_0 = null;
EObject lv_form_1_0 = null;
EObject lv_form_2_0 = null;
EObject lv_form_4_0 = null;
enterR... | [
"public final EObject ruleForm() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_3=null;\n Token otherlv_5=null;\n EObject lv_form_0_0 = null;\n\n EObject lv_form_1_0 = null;\n\n EObject lv_form_2_0 = null;\n\n EObject lv_form_4_0 = null;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the message based on the 'constant' and the given 'value' param. This method will join a message kept on a constant with some extra information (value) like the filename. | public static final String getMessage(String constantName, String value) throws IllegalAccessException {
boolean constantChecked = false;
String constantValue = null;
Field[] fields = Message.class.getDeclaredFields();
for (Field f : fields) {
if (f.getName().equals(consta... | [
"public static String getDisplayValue(String value, String namePrefix) {\n String key;\n if (StringUtils.isNotBlank(namePrefix)) {\n key = namePrefix + \".\" + value;\n }\n else {\n key = value;\n }\n String message = MessagesUtils.get(key);\n i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Toast.makeText(getActivity(), "Cancelled" , Toast.LENGTH_SHORT).show(); | @Override
public void onNegativeActionClicked(DialogFragment fragment) {
super.onNegativeActionClicked(fragment);
} | [
"public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(MainActivity.this, R.string.cancelled, Toast.LENGTH_SHORT).show();\n\n }",
"public void ShowCancelMsg(){\n Toast.makeText(this,\"Message Cancelled\",Toast.LENGTH_LONG).show();\n }",
"@Over... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates an item type. | protected ItemType(final int theLife, final int theFood,
final int theMobileDamage, final int theBlockDamage,
final ItemCategory theCategory, final char theDisplay,
final Color theColor) {
// Non missile have always a range of 1.
this(ItemType.class, theLife, the... | [
"public FoodItemType(FoodItemTypes type){\n this.type = type;\n }",
"public static ItemType createEntity(EntityManager em) {\n ItemType itemType = new ItemType()\n .code(DEFAULT_CODE)\n .completeCode(DEFAULT_COMPLETE_CODE)\n .name(DEFAULT_NAME)\n .speci... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: OooO00o reason: collision with other method in class | public View m19139OooO00o(int i) {
int size = this.f20355OooO00o.size();
for (int i2 = 0; i2 < size; i2++) {
View view = this.f20355OooO00o.get(i2);
RecyclerView.AbstractC5079OooOoo0 OooO00o2 = this.f20354OooO00o.m19150OooO00o(view);
if (!(OooO00o2.OooO0OO() != i || O... | [
"protected void method_5557() {}",
"public abstract class_503 method_279();",
"@Override\n public void extornar() {\n \n }",
"protected void method_2117() {\n }",
"@Override\n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\r\n public void publicando() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Put method for updating an instance of SoilAnalysesEvents identified by id using XML as the input format. | @PUT
@Consumes({"application/xml", "application/json"})
public void put(SoilAnalysesEventConverter data) {
PersistenceService persistenceSvc = PersistenceService.getInstance();
try {
persistenceSvc.beginTx();
EntityManager em = persistenceSvc.getEntityManager();
updateEntity(getEntity(), data.resolveE... | [
"protected void touch(String id) throws OXException {\n Event eventUpdate = new Event();\n eventUpdate.setId(id);\n Consistency.setModified(session, timestamp, eventUpdate, session.getUserId());\n storage.getEventStorage().updateEvent(eventUpdate);\n }",
"@Validate(param = 1, resolv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Override saveOrUpdate(T masterEntity, List detailEntities) if necessary | @Override
protected void saveOrUpdate(T masterEntity) {
BeanWrapper beanWrapper;
// Set master into child entity
for (E child : detailEntities) {
beanWrapper = new BeanWrapperImpl(child);
beanWrapper.setPropertyValue(getParentFieldName(), masterEntity);
... | [
"public void saveOrUpdate(E entity);",
"@Override\n\tpublic void save(Detail t) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void save(List<Object> list) {\n\t\tfor (Object obj: list){\n\t\t\thibernateTemplate.saveOrUpdate(obj);\n\t\t}\n\t}",
"@Override\n\tpublic void save(Object obj) {\n\t\thibernate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Service Interface for managing Pleasewor. | public interface PleaseworService {
/**
* Save a pleasewor.
*
* @param pleaseworDTO the entity to save
* @return the persisted entity
*/
PleaseworDTO save(PleaseworDTO pleaseworDTO);
/**
* Get all the pleasewors.
*
* @param pageable the pagination information
... | [
"public abstract void manage();",
"public interface TeacherService {\n\n //Lesson methods\n void addLesson(Lesson lesson) throws DuplicateKeyException;\n\n List<Lesson> getAllLessons();\n\n Lesson findLessonByTitle(String title) throws NoSuchLessonException;\n\n Lesson findLessonById(ObjectId id) t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated int32 visitingAppointmentIDs = 7; | int getVisitingAppointmentIDsCount(); | [
"static private int getUnusedIID(){\r\n\t\tint i=0;\r\n\t\twhile(usedIIDs.contains(i)) i=i+1;\r\n\t\treturn i;\r\n\t}",
"public long[] getFlowIdArray(){\r\n return localFlowIdArray;\r\n }",
"public void loadPatientsAppointment() {\n\t\tlog.info(\"loading ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jDateChooser1 = new com.toedter.calendar.JDateChooser();
jLabel1 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Container's getter for ProcessBookingsView1. | public BookingsViewImpl getProcessBookingsView1() {
return (BookingsViewImpl) findViewObject("ProcessBookingsView1");
} | [
"public BookingView getView() {\n PaymentView pv = pe.queryPayment(this.id);\n BookingView bv = new BookingView(pv.ref, pv.wallet, pv.fee, pv.paid);\n \n return bv;\n }",
"public ViewObjectImpl getProdBudgetByCustView1() {\n return (ViewObjectImpl)findView... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verify that the validate method fails to validate WifiConfiguration with bad Protocol value. | @Test
public void testValidateNegativeCases_InvalidProtocol() {
WifiConfiguration config = WifiConfigurationTestUtil.createOpenNetwork();
assertTrue(WifiConfigurationUtil.validate(config, WifiConfigurationUtil.VALIDATE_FOR_ADD));
config.allowedProtocols.set(4);
assertFalse(WifiConfi... | [
"protected final void checkConfig(Builder builder)\r\n {\r\n if (builder.myDataTypeInfo.getWmsConfig() == null)\r\n {\r\n throw new IllegalArgumentException(\"layer configuration cannot be null\");\r\n }\r\n if (builder.getLayerCellDimensions() == null)\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
> \brief \b DLANST returns the value of the 1norm, or the Frobenius norm, or the infinity norm, or the element of largest absolute value of a real symmetric tridiagonal matrix. =========== DOCUMENTATION =========== Online html documentation available at > \htmlonly > Download DLANST + dependencies > > [TGZ] > > [ZIP] >... | public double dlanst_(CHARACTER NORM,INTEGER N,double[] D,double[] E); | [
"public static double det(double A[][])\n {\n assert(A.length == A[0].length);\n\n if (A.length == 3)\n return LinAlg.det33(A);\n\n if (A.length == 2)\n return LinAlg.det22(A);\n\n // Otherwise compute the LU decomposition, multiply the diagonals\n LUDecom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / / | public float getCloudiness() {
/* 327 */ return this.cloudiness;
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public int mo10118a(int i) {
return (int) Math.ceil((double) (((float) i) * this.f7675a.getResources().getDisplayMetrics().density));
} | [
"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"
]
]
}
} |
Allocate a new process. | public VMProcess() {
super();
if (kernel == null) {
try {
kernel = (VMKernel) ThreadedKernel.kernel;
} catch (ClassCastException cce) {
}
}
} | [
"public static Resource createNewProcess() {\n\t\tModel model = createModelWithObservables();\n\t\tResource rv = model.createResource(NS + \"process\" + count++);\n\t\tmodel.add(rv, RDFS.label, \"Process \" + (count - 1));\n\t\tmodel.add(rv, RDF.type, RNRM.Process);\n\t\treturn rv;\n\t}",
"private IProcess newPro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print Perfect Maze with println | public void printMaze() {
String space = " "; // one space
// One tab
String tabe = " ";
// Independently print the beginning cell of the Maze
System.out.print("+");
System.out.print(" ");
//System.out.print(space);
// For every cell, except the first beginning, print a "+ - "
for (int i = 1; i <... | [
"private void printMaze() {\r\n\t\tSystem.out.print(maze.compileMaze());\r\n\t}",
"public void printMaze()\n {\n\t \tSystem.out.print(\"_\");\n\t \tfor(int ix = 0; ix < columns; ++ix)\n\t \t{\n\t \t\tSystem.out.print(\"__\");\n\t \t}\n\t \tSystem.out.println();\n\t \tfor(int ix = 0; ix < n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The doGet method of the servlet. This method is called when a form has its tag value method equals to get. | public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doPost(request,response);
} | [
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(request, response); //susing doPost方法执行 对应jsp页面中的form表单中的method\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the tree node from the UI corresponding the the annotation number | protected void removeAnnotationTreeNode (int annotationNum) {
documentMetadataUI.removeAnnotationTreeNode (annotationNum);
} | [
"@Override\n public void removeNoAnim(int elem) {\n\n // Logs removal.\n logRemove(elem);\n\n if (contains(root, elem)) {\n root = removeNoAnim(root, elem);\n nodeCount--;\n }\n\n // Renders the tree.\n finalRender();\n\n }",
"private void unhi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
specify the distance in metres you want method onPositionChanged(int metres) to be called. onPositionChanged() will be called everytime position changes return 0 if not required float getCallbackDistance(); | void onPositionChanged(T mapModel); | [
"void onMeasureResult(double distance);",
"public void onPositionUpdate();",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n Float distance = sensorEvent.values[0];\n\n if(distance == 0){\n if(!OnOff){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
HASHCODE Y EQUALS DE LA CLASE | @Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((funcionalidades == null) ? 0 : funcionalidades.hashCode());
result = prime * result + ((nombre == null) ? 0 : nombre.hashCode());
result = prime * result + ((precio == null) ? 0 : precio.hashCode());
retu... | [
"public int hashCode() {\n\t\tint code = 0;\n\t\tchar[] na = this.name.toCharArray();\n\t\tfor(char letter:na) {\n\t\t\tcode = code + Character.valueOf(letter);\n\t\t}\n\t\treturn code;\n\t}",
"public int hashCode() {\n/* 102 */ int hash = 17;\n/* 103 */ hash = LangUtils.hashCode(hash, this.name);\n/* 104... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
It get item count | @Override
public int getItemCount() {
return searchResultsList == null ? 0 : searchResultsList.size();
} | [
"public int getNumOfItems();",
"public int getNumItems(){\n return this.numItems;\r\n }",
"public int getNumItems() {\n return items.size();\n }",
"public int itemCount() \n {\n return itemCount;\n }",
"int getMoreItemsCount();",
"public int getCount() {\n return this.it... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column user.lastIP | public String getLastip() {
return lastip;
} | [
"public String getLastIP();",
"public java.lang.String getAddressValueLastUpdateUser() {\n return addressValueLastUpdateUser;\n }",
"public String getLatestIp() {\n\t\treturn latestIp;\n\t}",
"public UserAccount lastLoginFailIp(String lastLoginFailIp) {\n this.lastLoginFailIp = lastLoginFailIp;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as the attribute value for ItemCode. | public void setItemCode(String value) {
setAttributeInternal(ITEMCODE, value);
} | [
"public Builder setItemCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n itemCode_ = value;\n onChanged();\n return this;\n }",
"public void setItemCode(java.lang.String param){\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is to run the loads by date range when the missed loads encompasses so many records that it throws a Java heap error | public static void load_stg1_BO_runhist_Date_Range (String EnterpriseEnv, String login, String pswd,String auth, String destTblNm, String env, String stDate, String endDt){
IEnterpriseSession objEnterpriseSession;
//IInfoStore objInfoStore;
IInfoObjects colInfoObjects;
IInfoObject objInfoObject;
IInfoObje... | [
"private void loadRange()\n\t{\n\t\tJsonPointService jps = new JsonPointService();\n\t\ttry {\n//\t\t\tdps.getPoints(m_in, m_infoHashMap);\n\t\t\tjps.getPoints(m_in, m_infoHashMap);\n\t\t} catch (Throwable e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public RecordSet l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses by using ColumnOrder & Map. | @Deprecated
public static void executeCdrValidatorParallel(final Path inputPath, List<String> columnOrder,
Map<String, CdrColumn<?>> columnMap) {
TimeElapser elapser = new TimeElapser();
elapser.start();
Parser parser = new Parser(inputP... | [
"protected static LinkedHashMap<String, Object> orderAndParseFields(ElasticSearchDataSetDef definition, ElasticSearchDataSetMetadata metadata, Map<String, JsonElement> fields, List<DataColumn> columns) {\n if (fields == null) return null;\n if (columns == null) return new LinkedHashMap<String, Object>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is called to get an instance of the PrintMonitor class Allows for there to only be 1 instantiation of the class | public static PrintMonitor getInstance() {
if (instance == null) {
instance = new PrintMonitor();
}
return instance;
} | [
"public synchronized static HttpMonitor getInstance(){\n\t\tif(instance == null){\n\t\t\tinstance = new HttpMonitor();\n\t\t\tinstance.start();\n\t\t}\n\t\t\t\n\t\treturn instance;\n\t}",
"private static ModuleFactory getMonitorLite()\n {\n return AccessController.doPrivileged\n (\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
urn:uuid:798714a5794e4357bcfe491825f9c9f5 Remote_rush_blob Remote rush blob Stream MaterialPackage 0xff9c true | public Stream getRemoteRushBlob()
throws PropertyNotPresentException; | [
"@Override\n\tpublic String toString() {\n\t\treturn \"Blob \" + getChecksum() + \"\\n\";\t\n\t}",
"com.adsizzler.mangolaa.commons.protobuff.OpenRtb.NativeRequest.Asset.Data getData();",
"public PushBufferStream getStream()\n {\n return stream;\n }",
"public void setRAW_MATERIALS_R(BigDecimal RAW... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |