query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Start / stopping the server shouldn't generate any errors. Also it shouldn't bloat the journal with lots of IDs (it should do some cleanup when possible) This is also validating that the same server could be restarted after stopped | @Test
public void testStartStopAndCleanupIDs() throws Exception {
try (AssertionLoggerHandler loggerHandler = new AssertionLoggerHandler()) {
ActiveMQServer server = null;
for (int i = 0; i < 50; i++) {
server = createServer(true, false);
server.start();
s... | [
"public boolean startAll() throws ServerException;",
"private void startServerSync() {\r\n mServerSyncRequired = false;\r\n mFailureList = \"\";\r\n mDatabaseChanged = false;\r\n mMode = Mode.SERVER_SYNC;\r\n mServerSyncTimeout = null;\r\n setTimeoutIfRequired();\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the tbody value for this Array. | public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Tr[] getTbody() {
return tbody;
} | [
"TbodyType getTbody();",
"public com.walgreens.rxit.ch.cda.StrucDocTbody[] getTbodyArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(TBODY$10, targetList);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update a rule using the given DTO's fields | RuleDto updateRule(Integer ruleId, RuleDto rule); | [
"void updateFrom(RuleDetail ruleDetail);",
"UdrRule update(UdrRule rule, User user);",
"public UdrRule update(UdrRule rule, String userId);",
"D update(D dto);",
"public void update(UserTaskFilledPk pk, UserTaskFilled dto) throws UserTaskFilledDaoException;",
"@Path(\"/{groupId}/artifacts/{artifactId}/rul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the root element. The default implementation of this framework method forwards to getInput. Override if the root element is different from the viewer's input element. | protected Object getRoot() {
return getInput();
} | [
"protected InteractionFragment getRoot()\n\t{\n\t\treturn rParent != null ? rParent.getRoot() : this;\n\t}",
"public Node getRootElement() {\n return doc.getRootElement();\n\n }",
"public XMLElement getRootXML() { return _root; }",
"protected IJavaElement getInput() {\n\t\treturn fCurrentViewInput;\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set selection property name (used for 'if' method generation). This is only used with group selectors. | public void setSelectPropName(String name) {
m_selectPropName = name;
} | [
"private String updateSelectorName( String name ) {\n return name.replace( \".\", \"_\" );\r\n }",
"public String getSelectPropName() {\n return m_selectPropName;\n }",
"public void setSelectConstName(String name) {\n m_selectConstName = name;\n }",
"public void setPr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Decodes a credential line. | public String decode(String line) throws Exception {
Key key = generateKey();
Cipher instance = Cipher.getInstance("AES");
instance.init(Cipher.DECRYPT_MODE, key);
return new String(instance.doFinal(new BASE64Decoder().decodeBuffer(line)));
} | [
"public LinePrivateKey decodeLinePrivateKey(byte[] buffer) throws TelehashException;",
"private String decryptSecret(NedWorker worker, String line) {\n Pattern p = Pattern.compile(\"( \\\\$[48]\\\\$[^\\\\s]*)\"); // \" $4$<key>\" || \" $8<key>\"\n Matcher m = p.matcher(line);\n while (m.find(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dialog for otp match api | private void OTP_Matchapi() {
final ProgressDialog progressDialog = new ProgressDialog(Vendor_Booking_ConfirmDetails.this);
progressDialog.setTitle("Loading..");
progressDialog.show();
String url = BaseUrl + OTP_MATCH_by_vendor_usergiven;
AndroidNetworking.post(url)
... | [
"private void callVerifyOtpApi()\n\t{\n\t\tif (!ApplicationController.isConnected(mMainContainer))\n\t\t\treturn;\n\t\tshowProgresDialog();\n\t\tmVerifyTextView.setEnabled(false);\n\t\tCall<GeneralResponseBean> call = AppRetrofit.getInstance().getApiServices().verifyOtp(verifyOtpApiParams());\n\t\tAppUtils.enqueueC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method sets whether the current resource is observable | public void setObservable(final boolean observable) {
this.observable = observable;
} | [
"public boolean isObservable() {\r\n return this.observable;\r\n }",
"public void setRx(boolean value) {\n this.rx = value;\n }",
"public void setSubscribing(boolean isSubscribing) {\n\t\tthis.isSubscribing = isSubscribing;\n\t}",
"public abstract boolean getEventObservability();",
"public int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initialize the printer when needed based on user input | private void initializePrinterIfNeeded() {
if (!printConfigurations) {
return;
}
printer = new Printer();
boardSize = board.length;
} | [
"private static void createPrinterMenuLogic() {\n\n\t\tmenuHandler.clrscr();\n\n\t\t// Printer name\n\t\tString printerName = menuHandler.inputString(\"Please input the printer name (cannot be empty)\");\n\n\t\t// Printer paper format\n\t\tSystem.out.println(\"Select printer paper format capabilities\");\n\t\tint m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
mPlayerNext.setEnabled(isNetworkConnected); mPlayerSequenceButton.setEnabled(isNetworkConnected); mPlayerSaveButton.setEnabled(isNetworkConnected); mPlayerStartButton.setEnabled(isNetworkConnected); mPlayerPrevious.setEnabled(isNetworkConnected); mPlayerVolumeButton.setEnabled(isNetworkConnected); mPlayerTurn3DButton.s... | private void updateControlButtonStatus(boolean isNetworkConnected) {
if (isNetworkConnected) {
// if (mPlayShareButton.getVisibility() == View.VISIBLE) {
// mPlayShareButton.requestFocus();
//
// } else {
// mPlayerStartButton.requestFocus();
// }
// if (mVideoContrl != null && !mVideoCont... | [
"private void enableButtons() {\n\t\tplaceButton.setEnabled(true);\n\t\tbuyButton.setEnabled(true);\n\t\tendTurn.setEnabled(true);\n\t}",
"private void playingButtons() {\n\t\tcloseButton.setEnabled(false);\n\t\tpauseButton.setEnabled(true);\n\t}",
"public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a binding expression for a field. | BindingExpression forField(ResolvedBindings resolvedBindings) {
FieldSpec fieldSpec = generateFrameworkField(resolvedBindings, Optional.empty());
MemberSelect memberSelect = MemberSelect.localField(componentName, fieldSpec.name);
return new BindingExpression(
createRequestFulfillment(resolve... | [
"FieldBinding getBinding( Field< ? > field );",
"Expression getBindingExpression();",
"void addFieldBinding( FieldBinding binding );",
"void bind(Object object, AnnotatedField<AnnotationType> annotatedField);",
"public Binding createBinding();",
"public BindingInput createBindingInput();",
"public Exp b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the SIGN_BODY value for this CreateDocumentFile. | public void setSIGN_BODY(byte[] SIGN_BODY) {
this.SIGN_BODY = SIGN_BODY;
} | [
"public byte[] getSIGN_BODY() {\n return SIGN_BODY;\n }",
"public void setFILE_BODY(byte[] FILE_BODY) {\n this.FILE_BODY = FILE_BODY;\n }",
"public void setSignedContent(byte[] signedContent) {\n m_signedContent = signedContent;\n }",
"public void setBody(byte[] body) {\n\t\tinte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return if the specified element is true in the datamap. | private final boolean isTrue(final Variable key) {
return data.containsKey(key) && Boolean.TRUE.equals(data.get(key));
} | [
"boolean getBoolean( String key );",
"private boolean isTrue(final Variable key) {\n return data.containsKey(key) && Boolean.TRUE.equals(data.get(key));\n }",
"public static boolean getAttributeBoolean(Element elem, String key, boolean dft)\n {\n String boolStr = XMLTools.getAttribute(elem,key,nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value of the attribute "onchange". Refer to the documentation for details on the use of this attribute. | public final String getOnChangeAttribute() {
return getAttributeValue("onchange");
} | [
"public final String getOnChangeAttribute() {\n return getAttributeValue(\"onchange\");\n }",
"public final String getOnBlurAttribute() {\n return getAttributeValue(\"onblur\");\n }",
"public final String getOnBlurAttribute() {\n return getAttributeValue(\"onblur\");\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of ClaimsResource | public ClaimsResource() {
} | [
"private Claim()\r\n {\r\n // empty\r\n }",
"@SuppressWarnings(\"unchecked\")\n public static Mono<Authentication> create(Claims claims) {\n List<String> authorities = (List<String>) claims.get(\"authorities\");\n return Mono.justOrEmpty(new UsernamePasswordAuthenticationToken(claims... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form Docente_cadastro | public ACadastroDocente() {
initComponents();
} | [
"Documento createDocumento();",
"public DocenteCrear() {\n initComponents();\n }",
"public void carregarCadastro() {\n\n try {\n\n if (codigo != null) {\n\n ClienteDao fdao = new ClienteDao();\n\n cliente = fdao.buscarCodigo(codigo);\n\n } els... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AtomicProcess__Group_1__1__Impl" $ANTLR start "rule__PredicateProcess__Group__0" ../eu.quanticol.caspa.ui/srcgen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:8718:1: rule__PredicateProcess__Group__0 : rule__PredicateProcess__Group__0__Impl rule__PredicateProcess__Group__1 ; | public final void rule__PredicateProcess__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:8722:1: ( rule__PredicateProcess__Group__0__Impl rule__Pr... | [
"public final void rule__PredicateProcess__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:8734:1: ( ( () ) )\n // ../e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructors Create a detached RpkitAuctionRecord | public RpkitAuctionRecord() {
super(RpkitAuction.RPKIT_AUCTION);
} | [
"public RpkitBidRecord() {\n super(RpkitBid.RPKIT_BID);\n }",
"public RpkitAuctionRecord(Integer id, byte[] item, Integer currencyId, String world, Double x, Double y, Double z, Double yaw, Double pitch, Integer characterId, Long duration, Long endTime, Integer startPrice, Integer buyOutPrice, Integer n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a semantic relation of a certain type. | public SemanticRelation(int type) throws CorrespondenceException {
if ((type != EQUIV) && (type != SUB) && (type != SUPER) && (type != DIS)) {
throw new CorrespondenceException(CorrespondenceException.INVALID_SEMANTIC_RELATION);
}
else {
this.type = type;
}
} | [
"RelationshipType createRelationshipType();",
"Relation createRelation();",
"Relation makeRelation(String tag);",
"RelationT createRelationT();",
"void setRelationType(java.lang.String relationType);",
"LinkRelation createLinkRelation();",
"RelationShape createRelationShape();",
"Relationship createRe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the alpha component for the specified pixel, scaled from 0 to 255. The pixel value is specified as an int. | public int getAlpha(int pixel) {
if (supportsAlpha == false) {
return 255;
}
if (numComponents > 1) {
throw new
IllegalArgumentException("More than one component per pixel");
}
return (pixel/((1<<nBits[0])-1))*255;
} | [
"public static int getAlpha(int pixelValue){\n return (pixelValue>>24) & 0xFF;\n }",
"public final int getAlphaAt(final int x, final int y)\n {\n return getColorAt(x, y, OFFSET_ALPHA);\n }",
"public double getAlphaAt(int row) {\n if (scale == 0)\n return defaultAlpha;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a map of the locales and localized titles of this cscl tender. | public Map<Locale, String> getTitleMap(); | [
"public Map<Locale, String> getEditorialTitleMap();",
"public HashMap<Locale, HashMap<String, String>> getLocalizedTexts();",
"@Override\n\tpublic java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {\n\t\treturn _scienceApp.getTitleMap();\n\t}",
"@Override\n\tpublic Map<java.util.Locale, java.lan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds and returns a new value for contact (Contact for the organization for a certain purpose) Definition: | public Contact addContact() {
Contact newType = new Contact();
getContact().add(newType);
return newType;
} | [
"public org.hl7.fhir.Contact addNewContact()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Contact target = null;\n target = (org.hl7.fhir.Contact)get_store().add_element_user(CONTACT$6);\n return target;\n }\n }",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of run method, of class File_Chooser. | @Test
public void testRun() {
System.out.println("run");
File_Chooser fc = new File_Chooser();
new Thread(fc).start();
} | [
"public void runFileDialog(FileDialogMode mode, String title, String defaultFilePath,\n Vector<String> acceptFilters, int selectedAcceptFilter,\n CefRunFileDialogCallback callback);",
"private void launchFolderChooser() {\n\n\t}",
"public void ChooseFile() {\n\t\tChooser = new JFileChooser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ edit() implement abstract method edit in EditAuto thread update option price | public void edit(int funcNum, String model, String optionSetName, String optionName, float newPrice) {
try {
auto = autoList.get(model);
EditOptions edit = new EditOptions(++threadID, funcNum, auto,
optionSetName, optionName, newPrice);
edit.start();
} catch (Exception e) {
System.out.println("Err... | [
"void edit(Price Price);",
"public void editProductPrice(String price){\r\n\t\twdlib.waitForElement(getProductText());\r\n\t\tif(getProductText().getText().equals(\"None Included\")){\r\n\t\t\tselPproductBtn.click();\r\n\t\t\tProductsPage pdpage=new ProductsPage();\r\n\t\t\tpdpage.selectProducts();\r\n\t\t\tdrive... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if auto detect is enabled, false otherwise. | public boolean autoDetectEnabled() {
return autoDetect;
} | [
"public static boolean isAutoTechnologySwitch() { return cacheAutoTechnologySwitch.getBoolean(); }",
"public boolean isDetecting()\n\t{\n\t\treturn currentlyDetecting;\n\t}",
"public default boolean hasDetector() {\n\t\treturn false;\n\t}",
"public boolean isAutoConnect() {\n return agentConfig.getAutoConn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the argOfPerhelionDelta property. | public void setArgOfPerhelionDelta(double value) {
this.argOfPerhelionDelta = value;
} | [
"public double getArgOfPerhelionDelta() {\n return argOfPerhelionDelta;\n }",
"public void setArgOfPerhelion(double value) {\n this.argOfPerhelion = value;\n }",
"public void setDelta(double delta){\n\t\tthis.delta = delta;\n\t}",
"public void setDelta(double value) {\n this.delta =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column gaibanhan.node | public void setNode(Integer node) {
this.node = node;
} | [
"public void setNode_1(String node_1);",
"public void setNode_2(String node_2);",
"public void setNode(Node node) {\r\n\t\tthis.node = node;\t\r\n\t}",
"public void setNode_5(String node_5);",
"public void setNode_3(String node_3);",
"public void setNode_4(String node_4);",
"public void setNodeId(BigInt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the CRM CCA persistence. | public CrmCCAPersistence getCrmCCAPersistence() {
return crmCCAPersistence;
} | [
"public CrmContactPersistence getCrmContactPersistence() {\n\t\treturn crmContactPersistence;\n\t}",
"public CrmContactAuditLogPersistence getCrmContactAuditLogPersistence() {\n\t\treturn crmContactAuditLogPersistence;\n\t}",
"public CrmContactAuditLogChangePersistence\n\t\tgetCrmContactAuditLogChangePersistenc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Populates a map of cells with a Set of their respective adjacent cells | private Map< BoardCell, Set<BoardCell> > calcAdjacencies() {
Map< BoardCell, Set<BoardCell> > adjacents = new HashMap< BoardCell, Set<BoardCell> >();
Set<BoardCell> thisAdj = new HashSet<BoardCell>();
for (ArrayList<BoardCell> rowArr: boardCells) {
for(BoardCell cell: rowArr) {
thisAdj = new HashSet<Board... | [
"public Map<String, Cell> getAdjacentCells() {\r\n Map<String, Cell> cells = new HashMap<>();\r\n Direction[] directions = Direction.values();\r\n String[] cellNames = {\"northCell\", \"southCell\", \"eastCell\", \"westCell\",\r\n \"northeastCell\", \"northwestCell\", \"southeast... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List all the observer registered in the system corresponding to a specific subscription type. | @Nullable
List<Observer<?>> listAll(@NonNull SubscriptionType type); | [
"public ArrayList<IObserver> getObservers(){\n ArrayList<IObserver> arlResult = new ArrayList<>();\n for (IObserver currObserver : observers){\n arlResult.add(currObserver);\n }\n return arlResult;\n }",
"public String getSubscriptionTypeNames();",
"public List<Observer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
checking if point is left of a line (given by two points) | private boolean isPointLeftOfLine(double[] point, double[] line_point1, double[] line_point2) {
double p0x = point[0];
double p0y = point[1];
double p1x = line_point1[0];
double p1y = line_point1[1];
double p2x = line_point2[0];
double p2y = line_point2[1];
return ((p2x - p1x) * (p0y - p1y... | [
"private double isLeft(LatLng point, LatLng lineStart, LatLng lineEnd) {\n return (lineEnd.longitude - lineStart.longitude) * (point.latitude - lineStart.latitude)\n - (point.longitude - lineStart.longitude) * (lineEnd.latitude - lineStart.latitude);\n }",
"public static boolean onHorizon... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compara dos objetos de la clase Register. Devuelve el resultado de comparar los datos contenidos en el registro. | public int compareTo (Object x)
{
Register r = (Register) x;
return datos.compareTo(r.datos);
} | [
"public void registrarDistribuidores(){\n DistribuidoresModelo modelo = new DistribuidoresModelo();\n RespuestaDistribuidores rs = modelo.registroDistribuidores(distribuidorRegistrar);\n if(rs.getRespuesta().getIdRespuesta() == 0){\n listaDistribuidorFiltro = rs.getListaDistribuidore... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the default selection status of this radio button | public boolean getDefaultSelected() {
return ((FormRadioElement) mElement).getFormSelectedAttribute();
} | [
"public boolean validateDefaultRadioButtonSelection() {\n\n\t\tboolean b = AttDefaultShowRadioBtn.isSelected();\n\t\tSystem.out.println(\"VISHNU its getting value as:...........\"+b);\n\t\tif(b){\n\t\t\treturn true;\n\t\t}else {\n\t\t\tSystem.out.println(\"Invalid Default redio button selection\");\n\t\t\treturn fa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test Purpose: This is the test to check whether the method testCountDuplicates returns 0 if the current string is null. | @Test
public void testCountDuplicates2() {
mycustomstring.setString(null);
assertEquals(0, mycustomstring.countDuplicates());
} | [
"@Test\n public void testCountDuplicates3() {\n mycustomstring.setString(\"\");\n assertEquals(0, mycustomstring.countDuplicates());\n }",
"@Test\n public void testCountDuplicates4() {\n mycustomstring.setString(\"abcs\\n\\n\\n\\n\\n\\n\\n\");\n assertEquals(6, mycustomstring.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert NTP timestamp hexstring (e.g. "c1a089bd.fc904f6d") to the NTP 64bit unsigned fixedpoint number. | protected static long decodeNtpHexString(String hexString) throws NumberFormatException {
if (hexString == null) {
throw new NumberFormatException("null");
}
int ind = hexString.indexOf('.');
if (ind == -1) {
if (hexString.length() == 0) {
return 0;
}
return Long.parseLong(hexString, 16) << 32; ... | [
"public TimeStamp(String hexStamp) throws NumberFormatException {\n\t\tntpTime = decodeNtpHexString(hexStamp);\n\t}",
"public static TimeStamp parseNtpString(String s) throws NumberFormatException {\n\t\treturn new TimeStamp(decodeNtpHexString(s));\n\t}",
"private static long getTimeStamp(String timeStampStr) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the swap source/target | public void setSwap(int shelf){
if(sourceSet)
this.target = shelf;
else {
this.source = shelf;
this.sourceSet = true;
}
} | [
"public void swap() {\n\t\ton = !on;\n\t\tif (on) {\n\t\t\ttoOn();\n\t\t} else {\n\t\t\ttoOff();\n\t\t}\n\t}",
"protected final void swapInto() {\n\t\t// Swap controlledConf <--> nextConf\n\t\t// (unconditionally)\n\n\t\tlong start = System.currentTimeMillis();\n\t\tC nextConfContent;\n\t\tint nextConfStamp;\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scans and the validates all modules on the module path. The module path comprises the upgrade module path, system modules, and the application module path. | static int scanAllModules(PrintStream out) {
ModulePathValidator validator = new ModulePathValidator(out);
// upgrade module path
String value = System.getProperty("jdk.module.upgrade.path");
if (value != null) {
Stream.of(value.split(File.pathSeparator))
... | [
"public void validateModules(){\n\t\ttry {\n\t\t\tList<Module> unfinished = moduleService.getUnfinishedModules();\n\t\t\t\n\t\t\tjava.sql.Date today = new java.sql.Date(Calendar.getInstance().getTime().getTime());\n\t\t\t\n\t\t\tfor(Module unfinishedModule: unfinished) {\n\t\t\t\tif(unfinishedModule.getStartDate().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field venue is set (has been assigned a value) and false otherwise | public boolean isSetVenue() {
return this.venue != null;
} | [
"boolean hasExitVenue();",
"public boolean hasVIN() {\n return fieldSetFlags()[0];\n }",
"public boolean isSetField() {\r\n return this.field != null;\r\n }",
"public boolean isSetV() {\n return this.v != null;\n }",
"boolean hasNearbySetting();",
"public boolean isSetRevenue() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
edit modes of payment | public void editMode() {
if (codes.getItemCount() > 0) {
codes.removeAllItems();
}
// populate codes for existing payment modes
sql = "select code from ModeOfPayment;";
try {
Class.forName(DRIVER_CLASS);
// open connection
con = DriverManager.getConnection(URL, USER, PASSWORD);
stmt = con.prepa... | [
"void editMode();",
"public void setPaymentMode(java.lang.String value) {\n this.paymentMode = value;\n }",
"int edit(final PaymentAccountScope scope);",
"public void setAllowPaymentEdit(boolean value) {\n this.allowPaymentEdit = value;\n }",
"public void changeMode(int mode);",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds the object to the spawn list of each chunk that the object touches. | private void addToSpawnList(CustomObjectCoordinate coordObject, CustomObject parent)
{
ChunkCoordinate chunkCoordinate = coordObject.getPopulatingChunk();
if(chunkCoordinate != null)
{
Set<CustomObjectCoordinate> objectsInChunk = objectsToSpawn.get(chunkCoordinate);
if (obj... | [
"public void addObjectToGrid(GameObject object) {\n\t\tfor (int r = 0; r < tileMap.length; r++) {\n\t\t\tfor (int c = 0; c < tileMap[r].length; c++) {\n\t\t\t\tTile tile = tileMap[r][c];\n\t\t\t\tif (object.intersects(tile)) {\n\t\t\t\t\t/*System.out.println(\">>>> \" + String.valueOf(r) + \", \" + String.valueOf(c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Move JMan one step based on the value of i: 0 = up, 1 = down, 2 = left, 3 = right. | public void step(int i){
setActed( true );
if ( i == 0 && this.map.isInGrid( this.getX(), this.getY() - 1 ) && capture( this.map.pieceAt( this.getX(), this.getY() - 1 ) ) ) {
this.getMap().move( this.getX(), this.getY(), this.getX(), this.getY() - 1 );
}
else if ( i == ... | [
"void move(int steps);",
"public void moveUp(int i) {\r\n if (i > 0 && i < orders.size()); {\r\n\t \tOrder s = orders.get(i - 1);\r\n\t \torders.set(i-1, orders.get(i));\r\n\t \torders.set(i, s);\r\n }\r\n\r\n }",
"public void moveForward() {\r\n\t\tif(direction == Room.N... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the main function where objects are created and executed. UI manager is used to change the apperance of the GUI. this also needs to have the appropriate UI JAR file to be loaded else it wont show the appropriate desired look. this application uses QUAQUA which is like IOS GUI. UI manager is similar to mobile pr... | public static void main(String[] args) {
//Exception is used to validate whether it recognizes the UI and loads.
try {
UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
} catch (Throwable e) {
e.printStackTrace();
}
EventQueue.invokeLater(new Runnable() {
//This is similar... | [
"private void launchGUI(ProjectManager projectManager) {\r\n \tnew MainFrame(projectManager);\r\n }",
"private void createGUI() {\n\t\tPreferenceScreen screen = getPreferenceManager().createPreferenceScreen(this);\n\t\tsetPreferenceScreen(screen);\n\n\t\tcreateProviderCategory(screen);\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ callseq: EnumDescriptor.each(&block) Iterates over key => value mappings in this enum's definition, yielding to the block with (key, value) arguments for each one. | @JRubyMethod
public IRubyObject each(ThreadContext context, Block block) {
Ruby runtime = context.runtime;
for (EnumValueDescriptor enumValueDescriptor : descriptor.getValues()) {
block.yield(context, runtime.newArray(runtime.newSymbol(enumValueDescriptor.getName()),
... | [
"public abstract Enumeration enumerateKeys();",
"private static <E extends Enum<E>> Map<String, String> \n\tbuildSchemaToEnumDict(Class<E> c) {\n\t\tMap<String, String> dict = new HashMap<String, String>();\n\n\t\tField[] fields = c.getDeclaredFields();\n\t\tfor (Field f : fields) {\n\t\t\tif (f.isEnumConstant() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "RULE_MAPPING_TYPE" $ANTLR start "RULE_OPTION_TYPE" | public final void mRULE_OPTION_TYPE() throws RecognitionException {
try {
int _type = RULE_OPTION_TYPE;
int _channel = DEFAULT_TOKEN_CHANNEL;
// ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12775:18: ( ( 'OPT' | 'LOPT' | 'IOPT' | ... | [
"public final void mRULE_MAPPING_TYPE() throws RecognitionException {\n try {\n int _type = RULE_MAPPING_TYPE;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12773:19: ( 'OUT' )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Registers a client side hub callback. | void register(String methodName, HubCallback<JsonElement> callback); | [
"public void registerForHeartRateTransmission(HeartRateClientInterface callbackClientObject) throws RemoteException;",
"<T> void register(String methodName, Class<T> argumentType, HubCallback<T> callback);",
"public void addCallback(ClientMonitorCallback callback) {\n clientMonitorCallbacks.add(callback)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This methods generates the HTML code of the current b:selectOneMenu. | @Override
public void encodeBegin(FacesContext context, UIComponent component) throws IOException {
if (!component.isRendered()) {
return;
}
SelectOneMenu selectOneMenu = (SelectOneMenu) component;
ResponseWriter rw = context.getResponseWriter();
String clientId = selectOneMenu.getClientId();
... | [
"protected String getDateSelectMenu(){\n\t\tString ss = \"<script language=\\\"JavaScript\\\" id=\\\"cal\\\">\";\n\t\tss += \"var cal = new CalendarPopup(\\\"dateselect\\\")\";\n\t\tss += \"cal.showNavigationDropdowns()\";\n\t\tss += \"</script>\";\n\t\tss += \"<input type=\\\"text\\\" name=\\\"date\\\" value=\\\"\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gathers all data for page and adds it to context for view | private VelocityContext getHomePageData(User currentUser) {
VelocityContext context = new VelocityContext();
List<Post> newPosts = postService.getNewPosts();
context.put("posts", newPosts);
context.put("user", currentUser);
return context;
} | [
"public void setPageContext(PageContext page);",
"public void setContext(PageContext context) {\n this.context = context;\n }",
"public MockPageContext() {\n super();\n MockPageContext.init();\n }",
"private void modelLoadPage(ModelMap model, Page<WeatherCalender> page) {\n\t\tmodel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XBasicForLoopExpression__Group_3_1__0__Impl" $ANTLR start "rule__XBasicForLoopExpression__Group_3_1__1" InternalDroneScript.g:11840:1: rule__XBasicForLoopExpression__Group_3_1__1 : rule__XBasicForLoopExpression__Group_3_1__1__Impl ; | public final void rule__XBasicForLoopExpression__Group_3_1__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:11844:1: ( rule__XBasicForLoopExpression__Group_3_1__1__Impl )
// InternalDroneScript.g:11845:2: rule__... | [
"public final void rule__XBasicForLoopExpression__Group_3__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:11790:1: ( rule__XBasicForLoopExpression__Group_3__1__Impl )\r\n // InternalDroneScript.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getting a reserve time from its reserve code | public static ReserveTime getReserveTimeByCode(String Code)
{
Connection conn = DBConnection.getConnection();
ReserveTime reserveTime = new ReserveTime();
try {
Statement stmt =conn.createStatement();
String command = "select * " +
"from RESERVETIMES " +
"where" +
" Res_code_ID = " +
Co... | [
"public static ClientReservedTime getClientReservedTime(int reserveTimeID) {\n\t\tConnection conn = DBConnection.getConnection();\n\t\tClientReservedTime clientReservedTime = new ClientReservedTime();\n\t\ttry {\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\tString command = \"SELECT \" +\n\t\t\t\t\t\" r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
gather up supplies/fuel and then issue them to the fleet make sure that the fleet and troops can fight for 3 turns | public void supplyFleet (){
//
} | [
"private void getFuelRequirement() {\n int tempValue;\n for (int mass : masses) {\n tempValue = calculateIndividualFuelNeed(mass);\n while (tempValue >= 0) {\n totalFuelNeedsP1 += tempValue;\n tempValue = calculateIndividualFuelNeed(tempValue);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves a stream that can be used to write to the BLOB value that this Blob object represents. The stream begins at position pos. The bytes written to the stream will overwrite the existing bytes in the Blob object starting at the position pos. If the end of the Blob value is reached while writing to the stream, then... | public OutputStream setBinaryStream(final long pos) throws SQLException {
if (pos < 1) {
throw Util.invalidArgument("pos: " + pos);
}
checkClosed();
createFile();
OutputStream result;
try {
final OutputStream stream = new OutputStreamAdapter(m_f... | [
"public InputStream getBinaryStream(final long pos, final long length) throws SQLException {\n if (pos < 1) {\n throw Util.outOfRangeArgument(\"pos: \" + pos);\n }\n\n checkClosed();\n\n InputStream result;\n\n try {\n result = new InputStreamAdapter(m_file, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets new graph when asked for | public void setGraph(){
setDisplay(currentGraph);
} | [
"public void updateGraph() {\r\n\t\tOOP_DGraph g = new OOP_DGraph();\r\n\t\tg.init(game.getGraph());\r\n\t\tgameGraph = copy(g);\r\n\t}",
"public void setGraph(Graph<V,E> graph);",
"public static void setGraph(Graph g)\n {\n graph = g;\n }",
"protected final void setGraph(Graph graph) {\n this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests whether this ray intersects the given plane. | public Pair<Boolean, Float> intersects(Plane plane) {
return SecaMath.intersect(this, plane);
} | [
"boolean intersects(Point3f rayOrigin, Vector3f rayDirection);",
"public abstract boolean intersects(Ray3f ray);",
"public boolean onPlane(pt p) {\n\t\treturn normal.x*p.x + normal.y*p.y + normal.z*p.z == d;\n\t}",
"@Override\n public double hit(Ray ray) {\n\n double t = point3D.sub(ray.origin).dotP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ public Post findByTopic(String topic); | @Query("SELECT p FROM Post p WHERE p.topic like %:topic%")
public List<Post> findByTopic(@Param("topic") String topic); | [
"QueryBuilder getTopicQuery(Topic topic);",
"public Optional<Topic> findById(String id);",
"public List<ArticleTopic> findByArticle (ArticleTopic articleTopic) throws DataAccessException;",
"public List<ReplyDTO> findTopic(String topic) throws DataAccessException{\n\tProfiler.enter(\"DAO: ATOM-REPLY.findTopic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string postalTown = 64; | java.lang.String getPostalTown(); | [
"String getPostalCode();",
"java.lang.String getPostalNo();",
"String getCodePostal();",
"java.lang.String getPostalPostcode();",
"java.lang.String getPostalCode();",
"public String getCodePostal(){\n\t\treturn code_postal; \n\t}",
"java.lang.String getPostcode();",
"private String getAnomizedPostcode... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add to Additional Bank Rule Data table | public void addAdditionalBankRule1DataTable() {
setDisableSubmitButtonForBankMap(false);
setDisableEditBankRuleMap(false);
try {
List<AdditionalBankRuleMap> bankRuleMapList = additionalBankRuleMapService.duplicateCheckInDBBankMap(getCountryId(), getdBflexField(), getFieldName(), getOrderNo());
if (bankRuleM... | [
"public void finaladdtoSaveUpdate() {\n\t\ttry {\n\t\t\tsetClearPanel(false);\n\t\t\tBoolean activecheck = false;\n\t\t\tAdditionalBankRuleDataTable additionalBankRuleDataTable = new AdditionalBankRuleDataTable();\n\t\t\tadditionalBankRuleDataTable.setAdditionalBankRuleMapPk(getAdditionabankrulemapPK());\n\t\t\tadd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'E3_LEAGUE_CODE' field. | public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder setE3LEAGUECODE(java.lang.Double value) {
validate(fields()[48], value);
this.E3_LEAGUE_CODE = value;
fieldSetFlags()[48] = true;
return this;
} | [
"public void setE3LEAGUECODE(java.lang.Double value) {\n this.E3_LEAGUE_CODE = value;\n }",
"public java.lang.Double getE3LEAGUECODE() {\n return E3_LEAGUE_CODE;\n }",
"public java.lang.Double getE3LEAGUECODE() {\n return E3_LEAGUE_CODE;\n }",
"public void setLcode(String lcode) {\r\n t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
open a specific chat | public void openChat(ArrayList<Chat> MyChats, int pos) {
Chat chat = MyChats.get(pos);
JSONObject request = new JSONObject();
try {
request.put("page_size", "20");
request.put("page_id", "0");
request.put("to_chat", chat.getId());
} catch (JSONExceptio... | [
"@Override\n public void onOpenChat(int theChatId) {\n if (theChatId == -1) {\n loadFragment(new StartChatFragment());\n } else {\n Intent intent = new Intent(this, ChatActivity.class);\n intent.putExtra(\"CHAT_ID\", String.valueOf(theChatId));\n startAct... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getCodigo method, of class Usuario. | @Test
public void testGetCodigo() {
System.out.println("getCodigo");
Usuario instance = new Usuario();
String expResult = "";
String result = instance.getCodigo();
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to f... | [
"@Test\r\n public void testGetIdUsuario() {\r\n System.out.println(\"getIdUsuario\");\r\n Usuario instance = new Usuario();\r\n Integer expResult = null;\r\n Integer result = instance.getIdUsuario();\r\n assertEquals(expResult, result);\r\n // TODO review the generated t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'NETWORK_SECURITY_CD' field. | public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder setNETWORKSECURITYCD(java.lang.CharSequence value) {
validate(fields()[29], value);
this.NETWORK_SECURITY_CD = value;
fieldSetFlags()[29] = true;
return this;
} | [
"public void setNETWORKSECURITYCD(java.lang.CharSequence value) {\n this.NETWORK_SECURITY_CD = value;\n }",
"public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder clearNETWORKSECURITYCD() {\n NETWORK_SECURITY_CD = null;\n fieldSetFlags()[29] = false;\n return this;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accepts a path in one of the following forms: /path/to/some/dir /path/to/some/dir/ /path/to/some/file.txt and extracts the parent directory, i.e. "/path/to/some" in all of the cases above | public static String getParentDirectoryFromPath(String path) {
if (path.endsWith("/")) {
path = path.substring(0, path.length() - 1);
}
path = path.substring(0, path.lastIndexOf("/"));
return path;
} | [
"private String getParentPath(String path) {\n int slash = path.lastIndexOf('/');\n if (slash == -1) {\n return null;\n } else {\n if (slash == 0) {\n // return \"root\" if parent path is empty string\n return \"/\";\n } els... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function removes the complete employee detail searched by name. If more than one employee of same name exist than function removes the employee by the index in the list displayed to it. | public void removeEmployeeByName(List<Employee> employeelist1)
{
int index1=0;
int size=employeelist1.size();
try
{
if(size==1)
{
Employee employee=employeelist1.get(0);
employeelist.remove(employee);
System.out.println("Employee Removed successfully");
}
else
{
index1=m_readUt... | [
"public void removeEmployee(int index)\n {\n if (index == -1)\n {\n System.out.println();\n System.out.println(\"Can't remove nonexistent employee.\");\n return;\n }\n employees[index] = null;\n for( int i = index+1; i < currentEmployees; i++ ) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the specified capability bit. Note that only one capability bit may be set per method invocationcapability bits cannot be ORed together. | public final void setCapability(int bit) {
if (isLiveOrCompiled()) {
throw new RestrictedAccessException(J3dI18N.getString("SceneGraphObject0"));
}
capabilityBits |= (1L << bit);
retained.handleFrequencyChange(bit);
} | [
"public boolean setCapability(int capability) {\n\t\tif (capability >= 100 || capability <= 0) {\n\t\t\treturn false;\n\t\t}\n\t\tthis.capability = capability;\n\t\treturn true;\n\t}",
"public final boolean getCapability(int bit) {\n\treturn (capabilityBits & (1L << bit)) != 0L;\n }",
"public void changeMach... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bool author_null = 1011; | public boolean getAuthorNull() {
return authorNull_;
} | [
"boolean getAuthorNull();",
"boolean getKeepAuthorNull();",
"boolean isNilAuthor();",
"public boolean getKeepAuthorNull() {\n return keepAuthorNull_;\n }",
"public boolean getKeepAuthorNull() {\n return keepAuthorNull_;\n }",
"boolean getPrepaidCodeNull();",
"public boolean isSetAuth... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provided Text URI and digest, returns signature | public String signText(String refurl, String digest) throws Exception {
doc = db.newDocument();
signature = new XMLSignature(doc, "", XMLSignature.ALGO_ID_SIGNATURE_RSA_SHA1, "http://www.w3.org/2001/10/xml-exc-c14n#");
Transforms transforms = new Transforms(doc);
XPathContainer xpath = n... | [
"java.lang.String getSignatureText();",
"private String getSignature(String str) {\n try {\n MessageDigest md = MessageDigest.getInstance(SHA_STRING);\n md.update(str.getBytes());\n md.update(secretBytes);\n byte[] digest = md.digest();\n return new Base64(0).encodeToString(digest);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ purpose: to get the next power of 2 input: the number n output: number | private int nextPowerOf2(int n)
{
if (n > 0 && (n & (n - 1)) == 0)
return n;
int count = 0;
for (;n != 0; n = n >> 1)
count += 1;
return 1 << count;
} | [
"public static int nextPowerOf2(int n) {\n\t\tif (n <= 0 || n > (1 << 30))\n\t\t\tthrow new IllegalArgumentException();\n\t\tn -= 1;\n\t\tn |= n >> 16;\n\t\tn |= n >> 8;\n\t\tn |= n >> 4;\n\t\tn |= n >> 2;\n\t\tn |= n >> 1;\n\t\treturn n + 1;\n\t}",
"public static int powerOf2(int n){\n int counter=1;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of saveStoredData method, of class Store. | @Test
public void testSaveStoredData() throws Exception {
System.out.println("saveStoredData");
instance.saveStoredData();
File f = new File(Store.class.getClassLoader().getResource("store.data").getPath());
assertTrue(f.isFile());
} | [
"private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}",
"public void testSaveData() throws Exception {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the secondaryKey property: The secondary key of the cosmos DB account. | public String secondaryKey() {
return this.secondaryKey;
} | [
"String getSecondaryKey();",
"public RoutingCosmosDBSqlApiProperties withSecondaryKey(String secondaryKey) {\n this.secondaryKey = secondaryKey;\n return this;\n }",
"public String getSecondaryUser () {\n\n return secondaryUser;\n }",
"public String getSecondary() {\n return ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) array of all "addressLine" elements | org.apache.xmlbeans.XmlString[] xgetAddressLineArray(); | [
"java.lang.String[] getAddressLineArray();",
"org.apache.xmlbeans.XmlString xgetAddressLineArray(int i);",
"public String[] getAddressLines()\n {\n if (addressLines == null)\n {\n addressLines = new ArrayList<>();\n\n if (getFirstAddressLine() != null)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column t_program_operation.program_id | public void setProgramId(Long programId) {
this.programId = programId;
} | [
"public void setProgramId(String programId) {\n this.programId = programId == null ? null : programId.trim();\n }",
"public Long getProgramId() {\n return programId;\n }",
"public void setDepartmentProgramId(int value) {\n this.departmentProgramId = value;\n }",
"public Integer g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public get method that returns the soloist | public ArrayList<Soloist> getListOfSoloists(){ return soloist; } | [
"public Person GetSpouse() {\r\n return spouse;\r\n }",
"String getRelevant();",
"public java.lang.String getClothing () {\n\t\treturn clothing;\n\t}",
"public int hentNarkotiskStyrke() { return styrke;}",
"public PersonModel getSpouse() {return this.spouse;}",
"Tower getTower();",
"public Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the foo where uuid = &63; and groupId = &63; or returns null if it could not be found. Uses the finder cache. | public Foo fetchByUUID_G(java.lang.String uuid, long groupId); | [
"public Foo fetchByUUID_G(java.lang.String uuid, long groupId,\n\t\tboolean retrieveFromCache);",
"public DataEntry fetchByUUID_G(\n\t\tString uuid, long groupId, boolean useFinderCache);",
"@Override\n\tpublic Arret fetchByUUID_G(\n\t\tString uuid, long groupId, boolean useFinderCache) {\n\n\t\tuuid = Objects.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the input method | public InputMethod getMethod() {
return method;
} | [
"public String getMethod() {\n String method = \"\";\n scan = new Scanner(System.in);\n System.out.println(\"Please enter one of the following: \");\n method = scan.next();\n return method;\n }",
"InputOperation getInputOperation();",
"InputImpl.InputType getInputType();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Add by SPRD for bug 542996 End Get an MmsHttpClient for the current network | public MmsHttpClient getOrCreateHttpClient() {
synchronized (this) {
if (mMmsHttpClient == null) {
if (mNetwork != null) {
// Create new MmsHttpClient for the current Network
mMmsHttpClient = new MmsHttpClient(mContext, mNetwork);
... | [
"private HttpClient getClient() {\n \t//if (client == null) {\n // client = new HttpClient( new MultiThreadedHttpConnectionManager() );\n //}\n //return client;\n return new HttpClient();\n }",
"protected HttpClient getHttpClient( ) {\r\n\t\treturn httpClient;\r\n\t}",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
View with tic tac toe board initialize the Activity with the View of the tic tac toe board | @Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
ticTacToeBoardView = new TicTacToeBoardView(this);
setContentView(ticTacToeBoardView);
} | [
"public TTTView(TTTModel model) {\r\n\t\tsuper(\"Tic Tac Toe\");\r\n\t\tthis.model = model;\r\n\t\tthis.setLayout(new GridLayout(model.BOARD_SIZE, model.BOARD_SIZE));\r\n\t\tbuttons = new TTTButton[model.BOARD_SIZE][model.BOARD_SIZE];\r\n\t\tthis.initButtons();\r\n\t\tmodel.addTTTListener(this);\r\n\t\tthis.setSize... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run the float hw1_1000000LOC13method11(float,hw1_1000000LOC28,hw1_1000000LOC21) method test. | @Test
public void testHw1_1000000LOC13method11_2()
throws Exception {
float var0 = 1.0f;
hw1_1000000LOC28 var1 = new hw1_1000000LOC28();
hw1_1000000LOC21 var2 = new hw1_1000000LOC21();
float result = hw1_1000000LOC13.hw1_1000000LOC13method11(var0, var1, var2);
// add additional test code here
// An une... | [
"@Test\n\tpublic void testHw1_1000000LOC13method11_1()\n\t\tthrows Exception {\n\t\tfloat var0 = 1.0f;\n\t\thw1_1000000LOC28 var1 = new hw1_1000000LOC28();\n\t\thw1_1000000LOC21 var2 = new hw1_1000000LOC21();\n\n\t\tfloat result = hw1_1000000LOC13.hw1_1000000LOC13method11(var0, var1, var2);\n\n\t\t// add additional... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the builder for the settings used for calls to deletePrivateCloud. | @BetaApi(
"The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallSettings.Builder<DeletePrivateCloudRequest, PrivateCloud, OperationMetadata>
deletePrivateCloudOperationSettings() {
return deletePrivateCloudOperationSettings;
} | [
"public UnaryCallSettings.Builder<DeletePrivateCloudRequest, Operation>\n deletePrivateCloudSettings() {\n return deletePrivateCloudSettings;\n }",
"public UnaryCallSettings.Builder<UndeletePrivateCloudRequest, Operation>\n undeletePrivateCloudSettings() {\n return undeletePrivateCloudS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Helper to check if this write is a key and if so fail it as this output only supports string keys. | private void failKey()
throws IOException
{
if(nextKey)
{
throw new IOException("Trying to write a key that is not a string");
}
// If we are reading an object make sure there is a key
nextKey = ! lists[level];
} | [
"@Override\n\tpublic boolean instanceofTest(final Object o) {\n\t\treturn o instanceof StringKey;\n\t}",
"boolean isTypeKey(String key);",
"abstract protected boolean validateKey(String key);",
"String validateKey(String key);",
"public boolean isSmartKey(String key);",
"public boolean isValidKey(String k... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column IMAL141_DEV_O18.S_CONTROL_PARAM.ADD_STRING8_DESC | public String getADD_STRING8_DESC() {
return ADD_STRING8_DESC;
} | [
"public String getADD_STRING11_DESC() {\r\n return ADD_STRING11_DESC;\r\n }",
"public String getADD_STRING10_DESC() {\r\n return ADD_STRING10_DESC;\r\n }",
"public String getADD_STRING15_DESC() {\r\n return ADD_STRING15_DESC;\r\n }",
"public void setADD_STRING8_DESC(String ADD_ST... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extracts item fields into array of objects. | protected abstract Object[] extractValuesForSaving(T item); | [
"public static Map<String, FieldAccess> getFieldsFromObject( Object item ) {\n Map<String, FieldAccess> fields = null;\n\n fields = Reflection.getPropertyFieldAccessMap ( item.getClass ( ) );\n\n if ( item instanceof Map ) {\n fields = Reflection.getFieldsFromMap ( fields, ( Map<Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Validate the meeting meetingStartTime and meetingEndTime time. Return false if meeting meetingStartTime time is before the office meetingStartTime time and meeting meetingEndTime time is before the office meetingEndTime time. | public static boolean validateMeetingTimeSchedule(@Nonnull final EmployeeMeetingSchedule employeeMeetingSchedule) {
checkNull(employeeMeetingSchedule, "employeeMeetingSchedule");
final LocalDateTime meetingStartTime = employeeMeetingSchedule.getMeeting().getMeetingStartTime();
final LocalDateTi... | [
"public boolean checkMeeting(Timestamp startA, Timestamp endA, Timestamp startB, Timestamp endB)\n\t{\n\t\treturn startA.after(endB) && endA.before(startB);\n\t\t\n\t}",
"public boolean validateTime(){\n if(startSpinner.getValue().isAfter(endSpinner.getValue())){\n showError(true, \"The start ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds video from database. Gets path of video from database returns html output. | public String fFindVideo(String videoid) {
ExternalContext extContext = FacesContext.getCurrentInstance().getExternalContext();
String query = "from Paths path where path.videoId= " + videoid;
List<Paths> result = getHibernateTemplate().find(query);
String htmlOutput = "";
if (result.size() == 2) {
if (res... | [
"public String fGetVideo() {\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\n\t\tMap<String, String> params = fc.getExternalContext().getRequestParameterMap();\n\t\tsize = params.size();\n\n\t\tif (size > 0) {\n\t\t\tString id = params.get(\"video\");\n\t\t\tVideos result2 = getHibernateTemplate().get(Vi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine if a request is intended for the internal (/internal/) APIs | public static boolean isInternalRequest(HttpServletRequest req) {
return ((req != null) && req.getRequestURI().contains(INTERNAL_URI));
} | [
"public boolean isAnyInternalHttpApiEnabled() {\n return internalHttpApiEnabled;\n }",
"public boolean isIs_internal();",
"public boolean isAnyInternalHttpsApiEnabled() {\n return internalHttpsApiEnabled;\n }",
"boolean isInternal();",
"public boolean getIs_internal();",
"private boole... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create an LTE System Default Profile on the NMS. Requires NBIF Extensions Licence. | @WebResult(name = "SystemDefaultProfileCreateResult", targetNamespace = "http://Airspan.Netspan.WebServices")
@RequestWrapper(localName = "SystemDefaultProfileCreate", targetNamespace = "http://Airspan.Netspan.WebServices", className = "Netspan.NBI_15_5.Lte.SystemDefaultProfileCreate")
@WebMethod(operationName ... | [
"private IProfile createProfile() {\n \t\tIProfile profile = getProfile();\n \t\tif (profile == null) {\n \t\t\tMap properties = new HashMap();\n \t\t\tproperties.put(IProfile.PROP_INSTALL_FOLDER, installDescription.getInstallLocation().toString());\n \t\t\tEnvironmentInfo info = (EnvironmentInfo) ServiceHelper.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the Column on which the move was made | public void setColMove(int col); | [
"public void setPositionColumn(int value){this.positionColumn = value;}",
"public int getColMove();",
"public void setMovePlayer1(int row, int column);",
"@Override\n\tpublic void setColumnForMove(int col) {\n\t\tthis.dropCol = col;\n\t}",
"public void setMovePlayer2(int row, int column);",
"public void s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of the headline with the given number. | public String getHeadlineSize(int headline) {
String size = (String)getHeadlineSizes().get(headline - 1);
if (CmsStringUtil.isEmpty(size)) {
size = "13";
}
return size;
} | [
"public int headerSize() {\n if (!isValidHeader()) {\n return 0;\n }\n\n return ((cards.size()*80 + 2879)/2880) * 2880;\n }",
"Integer getTHSIZE();",
"float getHSize();",
"Double getHeadWidth();",
"java.lang.String getSize();",
"java.lang.String getWordSize();",
"public in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Combine two colors by dividing their components. | public static RGBColor divide (RGBColor left, RGBColor right) {
return new RGBColor(left.getRed() / right.getRed(),
left.getGreen() / right.getGreen(),
left.getBlue() / right.getBlue());
} | [
"private Color mixColors(Color color1, Color color2, double ratio) {\n if (ratio <= 0) return color1;\n if (ratio >= 1) return color2;\n return (new Color((int)(color1.getRed()*(1.0-ratio)+color2.getRed()*ratio),\n\t\t (int)(color1.getGreen()*(1.0-ratio)+color2.getGreen()*ratio),\n\t\t (int)(color1.getB... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine the time in microseconds it takes to calculate the n'th Fibonacci number. | public static double time(Fib fib, int n) {
// Get the current time in nanoseconds.
long start = System.nanoTime();
// Calculate the n'th Fibonacci number.
// Store the result in fibn.
fibn = fib.fib(n);
// Get the current time in nanoseconds. Using long, like start.
long end = System.nanoTime();
// ... | [
"public static double time(Fib fib, int n) {\n\t\t// Get the current time in nanoseconds.\n\t\tlong start = System.nanoTime();\n\n\t\t// Calculate the n'th Fibonacci number. Store the\n\t\t// result in fibn.\n\t\tfibn = fib.fib(n);\n\n\t\t// Get the current time in nanoseconds.\n\t\tlong end = System.nanoTime();\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__TestPart__Group__1" $ANTLR start "rule__TestPart__Group__1__Impl" InternalDsl.g:23557:1: rule__TestPart__Group__1__Impl : ( ( rule__TestPart__Group_1__0 ) ) ; | public final void rule__TestPart__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDsl.g:23561:1: ( ( ( rule__TestPart__Group_1__0 )* ) )
// InternalDsl.g:23562:1: ( ( rule__TestPart__Group_1__0 )* )
{
... | [
"public final void rule__TestPart__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:23604:1: ( rule__TestPart__Group_1__1__Impl )\n // InternalDsl.g:23605:2: rule__TestPart__Group_1__1__Impl\n {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the unique identifier for this governance engine. It is used when registering a listener with the one of the OutTopics of the metadata services access services. | public String getEngineId()
{
return engineId;
} | [
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"public String getIdentifier() {\n return getClass().getName();\n }",
"public long getEventIdentifier() {\n\t\treturn super.getProperty(\"EventIdentifier\", long.class);\n\t}",
"public String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is a constructor which creates a new BufferedReader which reads from a new File called myZoo.txt It prints out the Exception if the reader can't read from the file | public Zoo(String myZoo) {
try {
reader = new BufferedReader(new FileReader(myZoo));
} catch (IOException e) {
e.printStackTrace();
}
} | [
"public FirmReaderFile(String nameOfFile){\n this.stringifier = firmStringifier;\n try{\n this.file = new java.io.BufferedReader(new java.io.FileReader(nameOfFile));\n }\n catch (java.io.FileNotFoundException e){\n this.file = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the annotations for duplicates. | protected void createDuplicatesAnnotations()
{
String source = "duplicates";
addAnnotation
(ocularListOfSurgeriesSectionEClass,
source,
new String[] {
});
addAnnotation
(ocularCodedListOfSurgeriesSectionECl... | [
"protected void createDuplicatesAnnotations() {\n\t\tString source = \"duplicates\";\n\t\taddAnnotation\n\t\t (instanceObjectEClass,\n\t\t source,\n\t\t new String[] {\n\t\t });\n\t}",
"protected void createDuplicatesAnnotations()\r\n {\r\n String source = \"duplicates\"; \r\n addAnnot... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new unordered instance of StationDetails | public StationDetails ()
throws ConfigFileException
{
if (StationDetails.isTableReloadNeeded(loadTime)) orig_rows = null;
if (orig_rows == null)
{
orig_rows = new Vector<StationDetailsFields> ();
ConfigFileReader.LoadConfigFile (GINUtils.makeDatabaseFilename ("st... | [
"public Station() {\n }",
"Station(int id, String name) {\n this.id = id;\n this.name = name;\n }",
"public Station() {\n rainfallRecords = new ArrayList<>();\n }",
"public Station getStation() {\n return station;\n }",
"StationModel getStationById(final long id);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
helper function for creating a copy of a 2D array | public static int[][] copy2DArray(int [][] array){
int [][] copy = new int[array.length][];
for(int i=0; i<array.length; i++) {
copy[i] = array[i].clone();
}
return copy;
} | [
"private Tile[][] clone(Tile[][] toCopy)\n {\n Tile[][] copy = new Tile[width][height];\n for(int y=0; y<height; ++y)\n for(int x=0; x<width; ++x)\n {\n copy[x][y] = new Tile(toCopy[x][y]);\n }\n return copy;\n }",
"public double[][] getAr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Generates a random sudoku from the python file I found online. | @Before
public void generateRandomSudoku() {
String command = "python ";
String locationOfFile = "\"C:\\Users\\LukeJ\\OneDrive\\Documents\\Programming\\Java\\Sudoku Solver SA\\src\\Generator.py\"";
Process generator;
try {
generator = Runtime.getRuntime().exec(command + ... | [
"public void generateSudoku(int difficulty){ \n\t\tfor(int i=0;i<9;i++){ // check row , i is row, j is column\n\t \tfor(int j=0;j<9;j++){\n\t \t\tsudokuDisplay[i][j]='.';\n\t \t}\n\t\t}\n\t\t// first use random r to generate the position of all 1\n\t\tRandom r=new Random();\n\t\t\tfor (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
..THE FOLLOWING FUNCTION IS USED TO COMPARE TO A GA ALGORITHM'S FITNESS | private double getFitness() {
aLstVertex v1,v2;
BitSet totalBad = new BitSet(solLen);
BitSet tempBits = new BitSet(solLen);
int badNum = 0;
int numSetGenes =0;
boolean bad = false;
for (int j = 1; j <= solLen; j++ ) {
if (solution.get(j)) {
numSetGenes++;
v1 = (aLstVertex) adjLis... | [
"private void EvalFitness(){\r\n _FitVal=0;\r\n for(int i=0; i<7;i++)\r\n for(int j=i+1;j<8;j++){\r\n if( _Data[i]==_Data[j]) _FitVal++;\r\n if(j-i==Math.abs(_Data[i]-_Data[j])) _FitVal++;\r\n }\r\n }",
"private double calculateFitness() {\n\t\tdouble val; // calculate fitness as 1/number_given+1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the excel block. | public void setExcelBlock(ExcelBlock excelBlock){
synchronized (ExcelSheet.class){
excelBlocks.clear();
excelBlocks.add(excelBlock);
isOrdered = false;
}
} | [
"public void setExcelBlocks(List<ExcelBlock> excelBlocks){\r\n synchronized (ExcelSheet.class){\r\n this.excelBlocks = excelBlocks;\r\n isOrdered = false;\r\n }\r\n }",
"public void setBlock(Block block) {\n this.block = block;\n }",
"public void setBlock(MegaBlo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Test 0: '0' is not a power of four | public static void main (String[] args)
{
assert(false == if_num_is_power_of_four_v1(0));
assert(false == if_num_is_power_of_four_v2(0));
/*
* Test 1: '1' is a power of four
*/
assert(true == if_num_is_power_of_four_v1(1));
assert(true == if_num_is_power_o... | [
"public static String isPowerOfFour(int n)\n {\n String result=\"\";\n //check given number is 0\n if(n == 0) {\nresult +=\"number should not be zero\";\n return result;\n }\n while(n != 1)\n {\n if(n % 4 != 0){\n result +=\"not powe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of LikesFacebookConverter. | public LikesFacebookConverter(LikesFacebook entity, URI uri, int expandLevel) {
this(entity, uri, expandLevel, false);
} | [
"public LikesFacebookConverter() {\n entity = new LikesFacebook();\n }",
"public LikesFacebookConverter(LikesFacebook entity, URI uri, int expandLevel, boolean isUriExtendable) {\n this.entity = entity;\n this.uri = (isUriExtendable) ? UriBuilder.fromUri(uri).path(entity.getIdLikesFacebook... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load a package environment data from a package configuration file | public void loadPackageEnvironmentData() throws IOException {
log.info("Load environmet and segment attributes from config file...");
final Properties prop = new Properties();
File configFile = getInputConfigFile();
log.info("The config file is loading from path: {}", configFile.getAbsolutePath());
... | [
"protected static void loadBasicEnvironment() {\n \t\t// Try and load from path given in system properties\n \t\tString envFile = null;\n \t\tprops = new Properties();\n \n \t\ttry {\n \t\t\tenvFile = System.getProperty(\"sorcer.env.file\");\n \t\t\tenvFrom = \"(default)\";\n \t\t\tString cdtFrom = \"(default)\";\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |