query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
To add the identity provider.
private void addFederatedIdentityProvider() throws Exception { IdentityProvider residentIdP = identityProviderMgtServiceClient.getResidentIdP(); IdentityProvider identityProvider = new IdentityProvider(); identityProvider.setEnable(true); identityProvider.setAlias(alias); identi...
[ "public void addProvider() {\n\t\tproviderDatabase.addProvider();\n\t\t\n\t}", "interface WithIdProvider {\n /**\n * Specifies the idProvider property: The URL of this trusted identity provider..\n *\n * @param idProvider The URL of this trusted identity provider.\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[REVIEW][TODO] calls countEpisodesRatioHelper returns a float value representing the portion of a given time period that is filled with episode data (calculated on the level of days)
public synchronized final float countEpisodesRatio(final JsonArray data, final String rangeStart, final String rangeStop) throws ParseException { if (data == null) return 0; if (data.size() == 0) return 0; if (rangeStart == null) return 0; if (rangeStop == null) return 0; if (rangeStart.content...
[ "public synchronized final float countEpisodesRatio(final JsonArray data) throws ParseException {\n\t\tif (data == null)\n\t\t\treturn 0;\n\t\tif (data.size() == 0)\n\t\t\treturn 0;\n\t\tfinal SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\");\n\t\tDate minStartDate = null;\n\t\tDate ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Whether the action was performed on while the related Studio project's modules were connected to a Firebase project. optional .android_studio.FirebaseContextDetails.ConnectStatus connect_status = 4;
public com.google.wireless.android.sdk.stats.FirebaseContextDetails.ConnectStatus getConnectStatus() { @SuppressWarnings("deprecation") com.google.wireless.android.sdk.stats.FirebaseContextDetails.ConnectStatus result = com.google.wireless.android.sdk.stats.FirebaseContextDetails.ConnectStatus.valueOf(connectSt...
[ "public com.google.wireless.android.sdk.stats.FirebaseContextDetails.ConnectStatus getConnectStatus() {\n @SuppressWarnings(\"deprecation\")\n com.google.wireless.android.sdk.stats.FirebaseContextDetails.ConnectStatus result = com.google.wireless.android.sdk.stats.FirebaseContextDetails.ConnectStatus.valu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs LatencyMonitoredProxy instance. After successful instantiation, you can get the proxy implementation by calling getProxy() method.
protected LatencyMonitoredProxy(Object aBean, JMXLatencyMonitored aAnnotation) throws LatencyMonitoringProxyException { annotation = aAnnotation; source = aBean; Class<?>[] aBeanTypes = annotation.types(); try { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Using naming strategy class:{} for be...
[ "protected LatencyMonitorFactory getLatencyMonitorFactory() \n\tthrows LatencyMonitoringProxyException \n\t{\n\t\t\n\t\tif (latencyMonitorFactory == null) {\n\t\t\tString lmFactoryImplClassName = System.getProperty(LatencyMonitorFactory.LATENCY_MONITOR_FACTORY_PROPERTY_NAME);\n\t\t\tif (lmFactoryImplClassName != nu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET : URL API BBS Add
public String getUrlApiBbsAdd() { return this.URL_API_BBS_ADD; }
[ "public String getUrlApiBbs() {\n return this.URL_API_BBS;\n }", "public int add(Booking b) {\n\n\t\tRestTemplate rt = new RestTemplate();\n\t\tHttpHeaders http = new HttpHeaders();\n\t\thttp.setAccept(Collections.singletonList(MediaType.APPLICATION_XML));\n\t\thttp.setContentType(MediaType.APPLICATION_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Do type checking for a C file, include syntactic analysis and contextual analysis
private static void check (String filename) throws Exception { pythonLexer lexer = new pythonLexer( CharStreams.fromFileName(filename)); CommonTokenStream tokens = new CommonTokenStream(lexer); ParseTree tree = syntacticAnalyse(tokens); contextualAnalyse(tree,tokens); }
[ "private void doTypeChecking() {\n TypeCheckerVisitor visitor = new TypeCheckerVisitor(errorHandler, root);\n visitor.visit(program);\n }", "protected void analyzeCompilationUnit(JCompilationUnit compilationUnit)\n {\n foundJava = true;\n for (JAbstractType abstractType : facadeHelper.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
howFar method that tells you your distance from initial position
public int howFar(){ int distance = Math.abs(avenue - avenueOriginal) + Math.abs(street - streetOriginal); return distance; }
[ "private double calculateDistance(){\n int[] finalCords = destination.getCords();\n int[] originCords = originIsland.getCords();\n int distanceBetween = Math.abs(originCords[0] - finalCords[0]);\n int heightBetween = Math.abs(originCords[1] - finalCords[1]);\n double distanceTo = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form ColocacaoCampeonato
public ColocacaoCampeonato() { initComponents(); colocacao.setModel(modelotab); carregarColocacao(); }
[ "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public CreacionCuenta() {\n initComponents();\n }", "public void agregarCandidato(){\r\n System.out.println(\"Documento: \"+candidato.getDocumento()+\"\\nNombres: \"+candidato.getNombres()+\" \"+candidato....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use StoreInfo.newBuilder() to construct.
private StoreInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "Store createStore();", "protected abstract S mkStore();", "Store getStoreInfo(final long clusterId, final long storeId);", "public static StoreRequest createStoreRequest()\n {\n return new StoreRequest();\n }", "public Store() {\n }", "private void createNewStore(String storeName, Item...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a EditTextPreference for Strings parameters. Its title and description are shown.
private EditTextPreference getStringPreference(String key, String value) { EditTextPreference stringETP = new EditTextPreference(getActivity()); stringETP.setOnPreferenceChangeListener(this); stringETP.setTitle(getTitleId(key)); stringETP.setSummary(getSummaryId(key)); stringETP.setDefaultValue("" + value); ...
[ "PreferenceActivity createPreferenceActivity();", "public void storeStringInPreference(String key, String value) {\n mEditor.putString(key, value);\n mEditor.commit();\n }", "private void createSettings() {\n\t\tsettings = new MenuButton (SETTINGS_STRING, null);\n\t\tsettings.textProperty().bin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The actual provenance for the build. .grafeas.v1.BuildProvenance provenance = 1;
io.grafeas.v1.BuildProvenanceOrBuilder getProvenanceOrBuilder();
[ "io.grafeas.v1.BuildProvenance getProvenance();", "public ProvenanceInfo getProvenance() {\n return provenance_;\n }", "org.hl7.fhir.Provenance getProvenance();", "public java.lang.String getProvenance() {\n java.lang.Object ref = provenance_;\n if (!(ref instanceof java.lang.Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of MlibOrderedDitherOpImage in the rendered image mode.
public RenderedImage create(ParameterBlock args, RenderingHints hints) { // Get source and parameters. RenderedImage source = args.getRenderedSource(0); ColorCube colorMap = (ColorCube)args.getObjectParameter(0); KernelJAI[] ditherMask = (Kerne...
[ "private void orderedDither() {\n \n pane.setLayoutX((width - imageWidth) / 2);\n pane.setLayoutY((height - imageHeight) / 2);\n\n WritableImage writableImage = new WritableImage(imageWidth, imageHeight);\n PixelWriter pixelWriter = writableImage.getPixelWriter();\n\n // Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_DECLARATIONS END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_DECLARATIONS BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR
public CycleLiftState() { // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=REQUIRES ...
[ "public AutonomousCommand() {\n \t\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTOR\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=VARIABLE_SETTING\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display continuous value editor. Continuous editor always update mapping automatically, so there is no return value.
public Object showContinuousEditor() throws Exception { final EditorDisplayer editor = EditorDisplayer.getEditor(this, EditorType.CONTINUOUS); if (editor == EditorDisplayer.CONTINUOUS_COLOR) editor.setParameters(new Object[] { 450, 180, "Gradient Editor for " + this.calcName, this }); else if (editor == ...
[ "protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }", "public abstract void updateValuesDisplay();", "public Object showDiscreteEditor() throws Exception {\n \t\treturn showEditor(EditorDisplayer.getEditor(this, EditorType.DISCRETE));\n \t}", "public void displa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create the passed entity by making a request to the passed servlet
@SuppressWarnings("unchecked") public <T extends Entity> T createEntity( HttpServlet dispatchServlet, T entity, Long userId, Map<String, String> extraParams) throws Exception { MockHttpServletRequest request = ServletTestHelperUtils.initRequest( HTTPMODE.POST, UrlHelpers.ENTITY, userId, token(userId...
[ "public void createRequest(Request request);", "public <T extends Entity> T createEntity(\r\n\t\t\tHttpServlet dispatchServlet, T entity, Long userId)\r\n\t\t\tthrows Exception {\r\n\t\treturn createEntity(dispatchServlet, entity, userId,\r\n\t\t\t\tnull);\r\n\t}", "void create(Object entity);", "void build(T...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A representation of the model object 'ET Declaration'.
public interface ETDeclaration extends EObject { }
[ "Declaration createDeclaration();", "declaration getDeclaration();", "public void writeDeclaration()\n {\n writeDeclaration( null);\n }", "public VariableNameBindingNode getDeclarationNode();", "public boolean isDeclaration();", "AxiomDeclaration getAxiomDeclaration();", "public String getDecla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the electric meter bcf.
@Resource public void setElectricMeterBCF(IElectricMeterBCF electricMeterBCF) { this.electricMeterBCF = electricMeterBCF; }
[ "public IElectricMeterBCF getElectricMeterBCF()\r\n\t{\r\n\t\treturn electricMeterBCF;\r\n\t}", "public com.xplordat.rtmonitoring.avro.Triangle.Builder setBC(double value) {\n validate(fields()[13], value);\n this.BC = value;\n fieldSetFlags()[13] = true;\n return this;\n }", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
For nodes, split by a density function subNode(0 or 1) will be reused
public DensityFunction getSubdivisionFunction();
[ "private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Get sound attenuation string. The string can assume one of four possible values: "none", "normal", "idle", or "static".
public String getAttenuationString() { String result = null; result = new String(); if(attenuation == 0) result += "none"; else if(attenuation == 1) result += "normal"; else if(attenuation == 2) result += "idle"; else if(attenuation == 3) result += "static"; return result; }
[ "public int getAttenuation()\n\t{\n\t\treturn attenuation;\n\t}", "public String getSoundDescription() {\n if (getSound() == null) {\n return ChatColor.YELLOW + \"none\";\n } else {\n StringBuilder s = new StringBuilder();\n s.append(ChatColor.GOLD).append(\"sound \"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Count the number of activities from an ownerIdentity
public int getNumberOfUserActivities(Identity owner) throws ActivityStorageException;
[ "public int getNumberOfActivitiesOfConnections(Identity ownerIdentity);", "public int getNumberOfActivitesOnActivityFeed(Identity ownerIdentity);", "public int getNumberOfUserSpacesActivities(Identity ownerIdentity);", "public int getNumberOfNewerOnUserActivities(Identity ownerIdentity, Long sinceTime);", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The status of all the requests to other nodes repeated .NodeReplicationStatus nodeStatusList = 3;
entities.Torrent.NodeReplicationStatus getNodeStatusList(int index);
[ "@java.lang.Override\n public java.util.List<entities.Torrent.NodeReplicationStatus> getNodeStatusListList() {\n return nodeStatusList_;\n }", "java.util.List<entities.Torrent.NodeReplicationStatus>\n getNodeStatusListList();", "public java.util.List<entities.Torrent.NodeReplicat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sort MCS solution by stereo and bond type matches.
public synchronized void sortResultsByStereoAndBondMatch() throws CDKException { Map<Integer, AtomAtomMapping> allStereoAtomMCS = Collections.synchronizedMap(new HashMap<Integer, AtomAtomMapping>()); Map<Integer, Integer> fragmentScoreMap = Collections.synchronizedSortedMap(new TreeMap<Integer, Integer>...
[ "public void sortMatches();", "public synchronized void sortResultsByFragments() {\n Map<Integer, AtomAtomMapping> allFragmentAtomMCS = Collections.synchronizedSortedMap(new TreeMap<Integer, AtomAtomMapping>());\n Map<Integer, Double> stereoScoreMap = Collections.synchronizedSortedMap(new TreeMap<In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an array of index names for all distinct indexes on a table. erasing entries for duplicate indexes (which share same conglomerate).
public String[] getDistinctIndexNames() throws StandardException{ if(indexNames==null){ getAllIndexes(); } return indexNames; }
[ "private void getAllIndexes() throws StandardException{\n int indexCount=0;\n\n ConglomerateDescriptor[] cds= tableDescriptor.getConglomerateDescriptors();\n\n\t\t/* from one end of work space, we record distinct conglomerate\n * numbers for comparison while we iterate; from the other end of\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
convert string to zing of text utf8
public static final Zing s(String text){ return langString.z(text); }
[ "public String toUTF8(String input) throws IOException;", "public static final String s(Zing textUtf8){\n\t\treturn langString.o(textUtf8);\n\t}", "public static String isoToUTF8(String value) throws Exception{\n \treturn value;\n\t}", "public static String boxj2utf8(String s)\n {\n s=s.replace('\\20',...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
devuelve el valor de la celda [i][j]
public Cell getCell(int i, int j) {return _board[i][j];}
[ "private int get(int i, int j){\r\n\t\treturn matrix[i][j];\r\n\t}", "public Celda getCelda(int i, int j) {\n\t\treturn tablero[i][j];\n\t}", "String getCell(int i, int j) {\n\n\t\tif (initial[i][j] == true) {\n\n\t\t\tif (getArray()[i][j] == 0) {\n\t\t\t\treturn \" \";\n\t\t\t} else {\n\t\t\t\treturn \"*\" +...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks a piece can move
private boolean canMove(Point piece){ // direction -1: red pieces +1: black pieces int dir = isRed(piece)? -1:+1; // normal movement Point left = new Point(piece.getFirst() + dir, piece.getSecond() - 1); Point right = new Point(piece.getFirst() + dir, piece.getSecond() + 1)...
[ "boolean canMovePieces();", "boolean isMovementPossible(PieceMovement movement);", "boolean canMove(Tile t);", "@Test\n public void ableToMoveTest() {\n /*\n At current position and out of bound\n */\n boolean case1 = bishopTestPiece.ableToMove(3, 3);\n assertEquals(case...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toggles Class State of Coach depending on bool input
private void toggleCoach(boolean bool) { currentClassState = bool ? SeatingClassState.COACH : SeatingClassState.FIRST_CLASS; toggleButtonFirstClassSeating.setSelected(!bool); toggleButtonCoachSeating.setSelected(bool); }
[ "public void setTrue() {\n state = true;\n }", "public abstract boolean isToggleOn();", "protected abstract void setToggleState(boolean toggleOn);", "public void setCoolerOnState(boolean state) {\n\t\t// if the desired state is on then send the turn on command\n\t\tif (state) {\n\t\t\tacTask.SetCommand(Hv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
button1 sets camera1 to be displayed to the driver's station, button2 sets camera0 to be displayed to the driver's station
public void switchCameras(JoystickButton button1, JoystickButton button2) { // If button1 is pressed, switch source to cam1. If button2 is pressed, switch source to cam0 if (this.cam1 != null) { if (this.button1.get()) { server.setSource(this.c...
[ "private void showSupportedCameraSwitchButton() {\n if (Camera.getNumberOfCameras() > 1)\n mCameraSwitchButton.setVisibility(View.VISIBLE);\n else\n mCameraSwitchButton.setVisibility(View.GONE);\n }", "public void switchCameras()\n {\n // If cam1 is not null, switc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the metroLocation value for this Indicator.
public java.lang.String getMetroLocation() { return metroLocation; }
[ "public void setMetroLocation(java.lang.String metroLocation) {\n this.metroLocation = metroLocation;\n }", "public MobileLocation getMobileLocation()\n {\n return this.cellLocation;\n }", "public int getMrXLocation() {\n return mrXLocation;\n }", "public String getLocation() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TBL_URI01_HEAD.Dat_Kb
public String getDatKb() { return datKb; }
[ "public String getDatakbn() {\r\n return datakbn;\r\n }", "public void setDatKb(String datKb) {\n this.datKb = datKb;\n }", "public abstract int getByteCount(DataPage dummy) throws SQLException;", "java.lang.String getMb06();", "public String getRecKb() {\n return recKb;\n }", "public In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Copies the summary command template to the clipboard.
@FXML private void copyHelp() { final Clipboard clipboard = Clipboard.getSystemClipboard(); final ClipboardContent url = new ClipboardContent(); url.putString(HELP); clipboard.setContent(url); }
[ "@FXML\n private void copySummary() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(SUMMARY_MESSAGE);\n clipboard.setContent(url);\n }", "public void copy () {\n\t\tStyledString styledStr = get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts long to int, truncating to maximum/minimum value if needed.
public static int truncateAndConvertToInt(long longValue) { return longValue > Integer.MAX_VALUE ? Integer.MAX_VALUE : longValue < Integer.MIN_VALUE ? Integer.MIN_VALUE : (int) longValue; }
[ "public int toInt(long l) {\n return (int) l;\n }", "public int truncateToInt() {\n if (this instanceof Int32) {\n return ((Int32) this).v;\n } else if (this instanceof Int64) {\n return (int) ((Int64) this).v;\n } else {\n return toBigInteger().intValue();\n }\n }", "priva...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if a cave has a wumpus.
public Boolean getWumpus() { return this.wumpus; }
[ "boolean hasWeaveCount();", "public boolean isWool() {\n return this.type == Type.WOOL;\n }", "public boolean hasMoreWaves(){\n\t\treturn (mWaveIndex < mTrackWaves.size() -1);\n\t}", "private boolean hasWhippedCream() {\n CheckBox whippedCreamBox = (CheckBox)findViewById(R.id.whipped_cream_ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the ACL conntrack classifier type from meta data. Second bit in metadata is used for this purpose. Conntrack supported traffic is identified by value 0 (0000 in binary) i.e., 0x0/0x2 Nonconntrack supported traffic is identified by value 2 (0010 in binary) i.e., 0x2/0x2
public static Uint64 getAclConntrackClassifierTypeFromMetaData(Uint64 conntrackClassifierType) { // FIXME: this can be done more efficiently return Uint64.valueOf(METADATA_MASK_ACL_CONNTRACK_CLASSIFIER_TYPE.toJava().and(conntrackClassifierType.toJava() .shiftLeft(1))); }
[ "ClassDef.Kind kind();", "com.madhouse.media.momo.MomoExchange.BidRequest.Device.ConnectionType getConnectiontype();", "private String readClassifierType(String[] args) {\n \t\treturn args[CLASSIFIER_ID];\n \t}", "public int getBluetoothClass();", "public int getTIPCType() {\n ByteBuffer bb = ByteBuffer....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all the sysShoppingProducts.
@Override @Transactional(readOnly = true) public List<SysShoppingProduct> findAll() { log.debug("Request to get all SysShoppingProducts"); return sysShoppingProductRepository.findAll(); }
[ "public List<Product> allProducts() {\n return productRepository.findAll();\n }", "public void listAllProducts() {\n\t\tIterator<Result> resultList = groceryStore.listAllProducts();\n\t\twhile (resultList.hasNext()) {\n\t\t\tResult result = resultList.next();\n\t\t\tSystem.out.println(\"Name: \" + resul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/This method is used to check if the opposing player has cards left over after the asking player has or has not recieved cards from the opposing player
public boolean hasCardsLeftOver() { return !(currentCards.isEmpty()); }
[ "public boolean hasPlayerCardsLeft() {\r\n\t\treturn playerDeck.size() > 0;\r\n\t}", "public boolean cardsLeft() {\n\t\tif (cards.size() - completedCards > 0) {\n\t\t\treturn true;\n\t\t}else {\n\t\t\treturn false;\n\t\t}\n\t}", "private int canExchangeCards(RiskBoardView riskBoardView) {\r\n\t\tPlayer player =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check group information,to follow the input policy
private boolean checkInfo() { boolean flag = true; if(gName.isEmpty()) { groupName.setError("Invalid name"); flag = false; } if(gId.isEmpty()) { ...
[ "public boolean check(Group group){\n return false;\n }", "int check(Group group) throws DAOException;", "boolean checkCompleteness(final UiGroupData group);", "public void setInValidGroup(boolean inValidGroup){this.inValidGroup = inValidGroup;}", "public interface GroupStatusChecker\n{\n\n\t/**\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
C++: void clearAllBuffers() javadoc: TransientAreasSegmentationModule::clearAllBuffers()
public void clearAllBuffers() { clearAllBuffers_0(nativeObj); return; }
[ "public void destroyBuffers()\n {\n }", "public void forgetHardwareBuffers() {\r\n mVertBufferIndex = 0;\r\n mIndexBufferIndex = 0;\r\n mTextureCoordBufferIndex = 0;\r\n }", "public synchronized void freeAllBuffers() {\n\t\tIterator<Integer> iter = _bufferMap.keySet().iterator();\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
recuperation message de profile
public String creerMessage(){ return profile.getMessage(); }
[ "public ProfileMessage() {\n }", "public void produire(){\n this.nbMess++;\n MessageX message = new MessageX(this.identification(), \"\");\n this.msg = message;\n }", "private void displayMessage(Profile profile) {\n\r\n\r\n HashMap<String, String> params = new HashMap<>();\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the mime type for the file.
public String getContentType() { if (fileName != null && !fileName.trim().equals("")) { MimetypesFileTypeMap mimeMap = new MimetypesFileTypeMap(); return mimeMap.getContentType(fileName); } return ""; }
[ "String getMime_type();", "public String getMimeType();", "public String getMimeType ()\n {\n final String METHOD_NAME = \"getMimeType\";\n this.logDebug(METHOD_NAME + \"1/2: Started\");\n\n String mimeType = null;\n try\n {\n\tint contentType = this.document.getContentType();\n\tif ( contentT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Push given frame on top of stack.
public StrategoStackFrame pushFrame(StrategoStackFrame frame) { return stack.push(frame); }
[ "public void pushFrame(StackFrame frame) {\r\n\t\tm_frameStack.push(frame);\r\n\t}", "void newFrameAt(int offset) {\n framePointer.push(runTimeStack.size() - offset);\r\n }", "public Stack push (StackFrame stk_frm) {\n\t\tstack.add(head, stk_frm);\n\t\thead += 1;\n\t\treturn this;\n\t}", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
void addEditorial(com.tmk.kernel.site.Editorial) Method addEditorial
public void addEditorial(int index, com.tmk.kernel.site.Editorial vEditorial) throws java.lang.IndexOutOfBoundsException { _editorialList.insertElementAt(vEditorial, index); }
[ "public void addEditorial(com.tmk.kernel.site.Editorial vEditorial)\r\n throws java.lang.IndexOutOfBoundsException\r\n {\r\n _editorialList.addElement(vEditorial);\r\n }", "private void createEditor() {\n\t\tString jsEdit = new JSEdit().generate(null);\n\t\tsuper.addScript(jsEdit);\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the protocol recovery strategy.
public DistributedLogProtocolBuilder withRecovery(Recovery recovery) { config.setRecovery(recovery); return this; }
[ "public void setRetryStrategy(RetryStrategy retryStrategy) {\n this.retryStrategy = retryStrategy;\n }", "public void setStrategy(Strategy strategy) {\n\t\tthis.strategy = strategy;\n\t}", "public void setProtocol(Protocol protocol);", "public void setRecovery (java.lang.String recovery) {\n\t\tthis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize new Git repository
public void gitRepositoryInit() { try { gitAPI.initRepository(this.getRepositoryPath()); } catch (IOException e) { e.printStackTrace(); } }
[ "private void initGitRepository() throws IOException, GitAPIException {\n \t\tif (gitDir == null) {\n \t\t\tSystem.err.println(\"Warning: no output directory \"\n \t\t\t\t+ \"given for git repository; simulating result\");\n \t\t\treturn;\n \t\t}\n \n \t\tif (!gitDir.exists()) {\n \t\t\tfinal boolean success = gitD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The Matrix is based on the supplied twodimensional array of values. Be sure to make your own copy of the values, so that changes to the array outside of this class do not affect your work.
public Matrix(double[][] in) { if (in.length > 0) { this.values = new double[in.length][in[0].length]; for (int i=0; i<in.length; i++) { for (int j=0; j<in[i].length; j++) { this.values[i][j] = in[i][j]; } } } else { this.values = new double[][]{}; } // FIXME -- make a copy of in ...
[ "public Matrix(float[] values) {\n this.values = new float[16];\n System.arraycopy(values, 0, this.values, 0, 16);\n }", "public DenseMatrix(double[][] values) {\n\tthis(copyValues(values),IGNORE);\n }", "public void setValuesBoard(int[][] valuesBoard) {\n\t\tfor(int i = 0; i < gameSize; i++...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the bank code.
public void setBankCode(String bankCode) { this.bankCode = bankCode; }
[ "public void setBankcode(String value) {\n setAttributeInternal(BANKCODE, value);\n }", "public void setBankCode(String bankCode) {\n this.bankCode = bankCode;\n }", "void setBillpayCode(java.lang.String billpayCode);", "public void setBankCode(String bankCode) {\r\n this.bankCode =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the heading in degrees
public double getHeadingInDegrees(){ double headingRadians = calculateHeadingRadians(); return headingRadians * 180 / Math.PI; }
[ "default double getHeading() {\n return getAngle() % 360;\n }", "public long getHeadingDeg()\n {\n\treturn ((INTEGER)mComponents[1]).longValue();\n }", "double getHeading();", "default double getRawHeading() {\n return getRawAngle() % 360;\n }", "float getHeading();", "double setHeading(doub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Test create multiple jobs with different users
@Test @Rollback public void TestMultipleUsersJobCreation() throws AssertionError, Exception { User user1 = createUser(); User user2 = createUser(); User user3 = createUser(); User user4 = createUser(); Device device1 = createDevice(); Device device2 = createDevic...
[ "public void testGetJobIDsByUser() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "public void testGetJobNamesByUser() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "public void createJob(List<Job> job);", "public void createJobs(){\n \t\n \tjobSimulator.simulateJobs(this.list, this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the log level for a given logger
@MBeanInfo("Sets the logging level for the named logger.") void setLogLevel(String loggerName, String level) throws Exception;
[ "void setLoggerLevel(String logLevel);", "void setLogLevel(String logLevel);", "public void set_log_level(int level){logOptions.set_log_level(level);}", "public static void setLevel(int level){\n\tlogLevel = level;\n }", "public void setLogLevel(int level) {\n\t\t// only change if a valid level\n\t\tif (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the uiSkin value for this Organization.
public void setUiSkin(java.lang.String uiSkin) { this.uiSkin = uiSkin; }
[ "public void setSkin(Skin skin);", "public java.lang.String getUiSkin() {\n return uiSkin;\n }", "public static void setSkinSelected() {\r\n\t\tif (Main.skinIsIowaState) {\r\n\t\t\tFrameUtils.setISUColors();\r\n\t\t}\r\n\t\tif (Main.skinIsIowa) {\r\n\t\t\tFrameUtils.setIowaColors();\r\n\t\t}\r\n\t\tif...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'saturdayTimeRanges' field
public referential.store.v2.WeekPattern.Builder clearSaturdayTimeRanges() { saturdayTimeRanges = null; fieldSetFlags()[8] = false; return this; }
[ "public referential.store.v2.WeekPattern.Builder clearSundayTimeRanges() {\n sundayTimeRanges = null;\n fieldSetFlags()[9] = false;\n return this;\n }", "public referential.store.v2.WeekPattern.Builder clearTuesdayTimeRanges() {\n tuesdayTimeRanges = null;\n fieldSetFlags()[4] = false;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes any punctuation ('.', ',', '?', '!' etc.) from around the given word.
private String removePunctuation(String word) { StringBuffer sb = new StringBuffer(word); if (word.length() == 0) { return word; } for (String cs : COMMON_SUFFIX) { if (word.endsWith("'" + cs) || word.endsWith("’" + cs)) { sb.delete(sb.length() - ...
[ "private String removePunctuation(String word) {\t\t\r\n\t\t\t//removes all punctuation and special characters\r\n\t\t\t// adds a space so we can deal with words such as pre-req\r\n\t\treturn word.replaceAll(\"[&@#$%^*()\\\\\\\"\\\\\\\\/$\\\\-\\\\!\\\\+\\\\=|(){},.;:!?\\\\%]+\", \" \");\t\t\r\n\t\t\r\n\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get alt reg data type by width
private String getAltRegDataType() { return "logic[PIO_MAX_TR_WIDTH-1:0]"; // TODO - make parameterizable, "u_int" + regProperties.getRegWidth() + "_t" }
[ "OutputWidthTypeType getOutputWidthType();", "protected abstract String getDynamixelType();", "int getLinetype();", "public int fitType();", "NFP_DataSize getInst_Width();", "private Type stringType() {\n\t\tType toReturn = new Type();\n\t\ttoReturn.setPicture( Picture.PicX );\n//\t\t// lexeme is either p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if right is larger else returns false
private static boolean findLarger(String left, String right) { for(int i = 0; i < left.length(); i++) { if(left.charAt(i) == right.charAt(i)) { continue; } if(left.charAt(i) > right.charAt(i)) { return false; } else { return true; } } return false; }
[ "private boolean rightTooHeavy(){\n\t\treturn ((root.getLeftHeight()+1)< root.getRightHeight());\n\t}", "private boolean isGreaterThanWithoutSign(BigInt secondNumber){\n if (Arrays.equals(this.digits , secondNumber.digits)) return false;\n BigInt[] sortedBigInts = BigInt.sort(this, secondNumber);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Public void to publish our result it also serves to capture the x value to make our prediction
public void Prediction() { System.out.println("\nInput an x value: "); double x = inputs.nextDouble(); double y = this.B0 + (this.B1 * x); System.out.println("The prediction made with " + x + " as the x value is: " + y); System.out.println("\nWhere y = B0 + (B1*xi) is substituted...
[ "public void prediction() {\n\t\txPriorEstimate = xPreviousEstimate;\n\t\tpPriorCovarianceError = pPreviousCovarianceError;\n\t}", "float predict();", "protected abstract H prediction(X x, RankingOutput y, double[] w);", "public abstract int predict(double[] testingData);", "protected abstract void evaluate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the deadband that is currently set on this controller.
public double getDeadband();
[ "public void setDeadband(double deadband);", "public Band getBand() {\n return band;\n }", "public Integer getBeaconBandClass() {\n\t\treturn beaconBandClass;\n\t}", "public String getQueueBand() {\n return _queueBand;\n }", "public Bandwidth requestBwValue() {\n return requestBwV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Objective o = s.registerNewObjective("Health", "Health");
public static void registerHealthBar() { Objective o = s.registerNewObjective("Name", "Name"); String a = getCustom(o.getName()); o.setDisplayName(a); o.setDisplaySlot(DisplaySlot.BELOW_NAME); }
[ "Objective getObjective();", "UsabilityGoal createUsabilityGoal();", "public void setObjective(String objective) {\r\n\t\tthis.objective = objective;\r\n\t}", "Goal createGoal();", "public Sch1_Objective_2() {\n }", "public void setObjective(String s) {\r\n\t\tthis.currentObjective = s;\r\n\t}", "Ski...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save workout day to db
public void saveWorkoutDay(String value) { SQLiteDatabase database = getReadableDatabase(); String query = String.format("INSERT INTO " + WORKOUT_DAYS_TABLE_NAME + "(" + DAY_COLUMN_NAME + ")" + " VALUES(%s)", value); database.execSQL(query); }
[ "public synchronized void saveWorkday() throws IOException\n {\n /* TODO: debug this feature */\n //m_FileManager.saveWorkday( m_UserWorkday, false );\n }", "public ItemWriter<WorkingHours> saveWorkingHours();", "public void save(HrDOvertimetotal entity);", "public void addNewWorkout() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes anything at the coordinate given and replaces with 'n'
public void removeCharAtLoc(Point p){ map[(int)p.getX()][(int)p.getY()] = 'n'; }
[ "public void removeCharAtLoc( Point removeSpot ) {\n map[removeSpot.getX()][removeSpot.getY()] = 'n';\n }", "public void removeCharAtLoc(Point P)\r\n\t{\r\n\t\tfor (int x = 0; x < map.length; x++)\r\n\t\t{\r\n\t\t\tfor (int y = 0; y < map[0].length; y++)\r\n\t\t\t{\r\n\t\t\t\t// Once the hero steps out of the...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the purgeSuppressionLists value for this SendTemplate.
public int[] getPurgeSuppressionLists() { return purgeSuppressionLists; }
[ "public void setPurgeSuppressionLists(int[] purgeSuppressionLists) {\r\n this.purgeSuppressionLists = purgeSuppressionLists;\r\n }", "public int[] getPurgeLists() {\r\n return purgeLists;\r\n }", "public void setPurgeLists(int[] purgeLists) {\r\n this.purgeLists = purgeLists;\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//////////////////////////////// IMAGE OPTIONS Prints the 'Image options' menu to the screen. Awaits the users option and processes it. Loops until the user chooses to go back to the 'Open image' menu.
private static void imageOptionsMenu(OrganizedImage image, int index) { // True if the 'Back to 'Open image' menu...' option has been selected. boolean backToBrowseOrganized = false; // A temporary variable for holding the text the user enters. String userText; while(!backToBrowseOrganized) { System.ou...
[ "private static void openImageMenu(OrganizedImage image, int index)\n {\n\t// True if the 'Back to 'Browse organized images' menu...' option has been selected.\n\tboolean backToBrowseOrganized = false;\n\n\twhile(!backToBrowseOrganized)\n\t {\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\">>Main>Bro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds the color _toAdd_ into the innermost layer of this ILoColor
public ILoColor insertInside(Color toAdd) { return new ConsLoColor(this.first, this.rest.insertInside(toAdd)); }
[ "public ILoColor insertInside(Color toAdd) {\r\n return new ConsLoColor(toAdd, new MtLoColor());\r\n }", "ILoColor insertInside(Color toAdd);", "@Override\r\n\tpublic IColor addColor(IColor otherColor) {\r\n\t\tdouble red = this.red + otherColor.getRed();\r\n\t\tdouble green = this.green + otherColor.getGre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'userValue3' field.
public java.lang.Double getUserValue3() { return userValue3; }
[ "public java.lang.Double getUserValue3() {\n return userValue3;\n }", "public String getAuthValue3() {\n return authValue3;\n }", "public boolean hasUserValue3() {\n return fieldSetFlags()[3];\n }", "public java.lang.String getUserValue4() {\n return userValue4;\n }", "public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DELETE /modeloexclusivos/:id : delete the "id" modeloExclusivo.
@DeleteMapping("/modelo-exclusivos/{id}") @Timed public ResponseEntity<Void> deleteModeloExclusivo(@PathVariable Long id) { log.debug("REST request to delete ModeloExclusivo : {}", id); modeloExclusivoRepository.delete(id); return ResponseEntity.ok().headers(HeaderUtil.createEntityDeleti...
[ "@RequestMapping(value = \"/removerExercicio\", method = RequestMethod.GET, params = \"id\")\n\n public String delete(@RequestParam(\"id\") int id) {\n\n exercicioDao.remove(exercicioDao.findById(id));\n\n return \"redirect:/listExercicio\";\n\n }", "void eliminar(int idProyecto);", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get an age range array from a MIRCquery (or MIRCdocument) ptage element.
public static int[] getAgeRange(Element ptAge) { int ageRange[] = {-1,0,0}; ageRange = updateAgeRange(ageRange, getChildText(ptAge,"years"), 365); ageRange = updateAgeRange(ageRange, getChildText(ptAge,"months"), 30); ageRange = updateAgeRange(ageRange, getChildText(ptAge,"weeks"), 7); ageRange = updateAgeRan...
[ "com.google.ads.googleads.v14.common.AgeRangeInfo getAgeRange();", "com.google.ads.googleads.v0.common.AgeRangeInfo getAgeRange();", "com.google.ads.googleads.v0.common.AgeRangeInfoOrBuilder getAgeRangeOrBuilder();", "com.google.ads.googleads.v14.common.AgeRangeInfoOrBuilder getAgeRangeOrBuilder();", "priva...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check for used Used sub tree ref Node map in Populations and Meausre Observations.
private void createUsedSubTreeRefMap() { XmlProcessor simpleXmlProcessor = measureExport.getSimpleXMLProcessor(); String typeXpathString = ""; List<String> usedSubTreeRefIdsPop = new ArrayList<>(); List<String> usedSubTreeRefIdsMO = new ArrayList<>(); List<String> usedSubTreeRefIDsRA = new ArrayList<>(); f...
[ "private List<String> checkUnUsedSubTreeRef(XmlProcessor xmlProcessor, List<String> usedSubTreeRefIds) {\n\n\t\tList<String> allSubTreeRefIds = new ArrayList<>();\n\t\tNodeList subTreeRefIdsNodeList;\n\t\tjavax.xml.xpath.XPath xPath = XPathFactory.newInstance().newXPath();\n\t\ttry {\n\t\t\tsubTreeRefIdsNodeList = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Iterates over feature model valid configurations
public Iterator<Assignment> iterateOverValidConfigurations() throws OperationNotSupportedException, FMReasoningException { throw new OperationNotSupportedException("Reasoning Operation Not Supported"); }
[ "private void validateConfigJson() {\n Set<IngredientType> ingredientTypeSet = new HashSet<>();\n configuration.getTotal_items_quantity().forEach(ingredient -> {\n ingredientTypeSet.add(ingredient.getType());\n });\n\n if (ingredientTypeSet.size() != configuration.getTotal_ite...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all the activityEstimations.
@Transactional(readOnly = true) public List<ActivityEstimationDTO> findAll() { log.debug("Request to get all ActivityEstimations"); return activityEstimationRepository.findAll().stream() .map(activityEstimationMapper::toDto) .collect(Collectors.toCollection(LinkedList::new));...
[ "public void getActivities(){\n \t\tactivities = getAllActivities();\n \t}", "public static ArrayList<Activity> getAllActivities() {\n\n return activityStore;\n }", "public Map<String, String> getAllEstimates(Job job) {\n return this.executeAspenCommand(assembleArgsFromMetadata(job));\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads the data for the next frame. The frame is not parsed until parse frame is called.
public final void read_frame_data(int bytesize) throws IOException { if(bytesize >= 0){ framesize = bytesize; wordpointer = bitindex = -1; source.read(frame_bytes,0,bytesize); } }
[ "public native int readFrame(int nFrame, int nCount, byte[] abData);", "public synchronized void readData() {\n\t\trobot.readAll();\n\t\tupdatePosition();\n\t\t\n\t\t// doing this here causes a buffer underflow exception\n\t\t// so read sonar data on-demand\n\t\t// updateSonar();\n\t \n\t\tsteps++;\n\t}", "v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If message is a CloseMessage, check to see if we have received a CloseMessage from both scanners. If so, send CloseMessage to Jail and shut down Security.
@Override public void close() { closesReceived++; printMsg("Received " + closesReceived + " of " + Configuration.SCANNERS_PER_LINE + " close messages needed from line " + getLineNumber()); if (closesReceived >= Configuration.SCANNERS_PER_LINE) { printMsg("Close se...
[ "private void handleCloseFrame() throws IOException {\n // the client has sent us a close frame\n closeReceived = true;\n // if we already sent a close frame before\n if (isCloseSent()) {\n // then we received an acknowledgement close frame\n // from the client, so ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clear the recipients (users) list in the Manage User Roles section and repopulate from DB
private void refreshComboBoxUsers() { recipients.clear(); recipients = subs.readSubscriberData(); }
[ "@PreRemove\n private void removeRolesFromUsers() {\n for (User user : users) {\n user.getRoles().remove(this);\n }\n }", "private void resetManageUserRoles() {\n labelCurrentRole.setText(\"None\");\n comboBoxRoles.setSelectedIndex(0);\n checkBoxConfirm.setSelec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: appointment_required
public java.lang.String getAppointmentRequired () { return appointmentRequired; }
[ "public void setAppointmentRequired (java.lang.String appointmentRequired) {\n\t\tthis.appointmentRequired = appointmentRequired;\n\t}", "public int byAppointment()\n {\n if(ismAppointment()) return 1;\n else return 0;\n }", "public String getArrival_required() {\n\t\treturn arrival_required...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int32 oneof_1704 = 1704;
public int getOneof1704() { if (hugeOneofCase_ == 1704) { return (java.lang.Integer) hugeOneof_; } return 0; }
[ "int getTestFixed32();", "int getInt32Value();", "int getTestSfixed32();", "public int getOneof1704() {\n if (hugeOneofCase_ == 1704) {\n return (java.lang.Integer) hugeOneof_;\n }\n return 0;\n }", "int getTestUint32();", "public int getOneof1604() {\n if (hugeOneo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for property successTemplate.
public String getSuccessTemplate() { return this.successTemplate; }
[ "public void setSuccessTemplate(String successTemplate) {\n this.successTemplate = successTemplate;\n }", "@Override\n\tpublic int getTemplateOK() {\n\t\treturn this.templateOK;\n\t}", "public String getSuccessMessage() {\n return successMessage;\n }", "public String getSuccessView() {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
hit a lot of tanks
public boolean hitTanks(List<Tank> tanks) { for (int i = 0; i < tanks.size(); i++) { if (hitTank(tanks.get(i))) { return true; } } return false; }
[ "public void setTanks(int tanks) {\n this.tanks = tanks;\n }", "private boolean caughtEmAll(){\n\t\tint howMany = 1;\n\t\tArrayList<Pokemon> pokedex = theTrainer.getPokedex();\n\t\tCollections.sort(pokedex);\n\t\tfor(int i = 0; i < pokedex.size() - 1; i++){\n\t\t\tif(pokedex.get(i+1).getPokemonID() != p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all approved agents which are not used now.
public Set<AgentIdentity> getAllFreeApprovedAgents() { Set<AgentIdentity> allFreeAgents = agentControllerServerDaemon.getAllFreeAgents(); return filterApprovedAgents(allFreeAgents); }
[ "public Set<AgentIdentity> getAllApprovedAgents() {\n\t\tSet<AgentIdentity> allAgents = agentControllerServerDaemon.getAllAvailableAgents();\n\t\treturn filterApprovedAgents(allAgents);\n\t}", "public Set<AgentIdentity> getAllFreeAgents() {\n\t\treturn agentControllerServerDaemon.getAllFreeAgents();\n\t}", "Lis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
reference to the Marker on which it is opened. Null if none.
public Marker getMarkerReference(){ return mMarkerRef; }
[ "public String getMarker() {\n return marker;\n }", "public int getMarker() {\n return this.marker;\n }", "public int getMarker() {\r\n\t\treturn this.marker;\r\n\t}", "Marker getMarker();", "public String getMarkerId() {\n return markerId;\n }", "public int[][] getMarker(){\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
POST /userSettings : Creates a new user settings. Creates a new user settingsd if the employee code are not already used.
@RequestMapping(value = "/usersettings", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE) @Timed //@Secured(AuthoritiesConstants.USER) public ResponseEntity<?> createUserSettings(@RequestBody UserSettingsDTO userSettingsDTO, HttpServletRequest request) throws URISynt...
[ "public static void addUserSettings(){\n File dummyFile = new File(GlobalConstants.USER_SETTINGS_FILEPATH);\n boolean isFileCreated = false;\n try {\n isFileCreated = dummyFile.createNewFile();\n } catch (IOException e){\n e.printStackTrace();\n }\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test whether this body responds to contacts.
public boolean isContactResponse() { int flags = rBody.getCollisionFlags(); boolean result = (flags & CollisionFlags.NO_CONTACT_RESPONSE) == 0x0; return result; }
[ "public boolean isContact()\n \t\t{\n \t\t\tif (this == CONTACT1 || this == CONTACT2 || this == CONTACT3 ||\n \t\t\t\tthis == CONTACT4 || this == CONTACT5 || this == CONTACT6 ||\n \t\t\t\tthis == CONTACT7 || this == CONTACT8 || this == CONTACT9 ||\n \t\t\t\tthis == CONTACT10 || this == CONTACT11 || this == CONTACT1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates all records with fields that match criteria using supplied update information.
int updateAll(Query<? extends Entity> query, Update update) throws UnifyException;
[ "public SearchResult<CorrespondenceRecordDTO> fetchUpdateRequestRecords(CorrespondenceRecordsFilter filter,\n\t\t\tPaginationInfo pageInfo);", "public int editByCondition(Map<String, Object> updateMap, Map<String, Object> conditionMap);", "private void updateRecordFromMapQuery(Map<String, String> matchMap, Map<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for the CMethods of the card
void setNameCMethods(List<String> x){ this.cMethods = x; }
[ "public void setMethods (MethodType[] methods) {\n this.methods = methods;\n }", "public abstract void populatePeripheralMethods(@Nonnull final List<ComputerMethod> methods);", "public List<String> getNameCMethods(){\n return cMethods;\n }", "void setChargingMethod(int value);", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method saves the boxScore when the game is over
public static void saveBoxScore(){ Engine engine = Utility.getEngine(); ArrayList<Player> homePlayers = engine.getHomePlayers(); ArrayList<Player> awayPlayers = engine.getAwayPlayers(); ArrayList<String> output = new ArrayList<String>(); output.add("Home team"); for(Playe...
[ "public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Sc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
new columns (acceptCustodyLocalTs) //
public ScGridColumn<AcItem> newAcceptCustodyLocalTsColumn() { return newAcceptCustodyLocalTsColumn("Accept Custody Local Ts"); }
[ "public ScGridColumn<AcItem> newRelinquishCustodyUtcTsColumn()\n {\n return newRelinquishCustodyUtcTsColumn(\"Relinquish Custody Utc Ts\");\n }", "Column createColumn();", "public ScGridColumn<AcItem> newAcceptCustodyUtcTsColumn()\n {\n return newAcceptCustodyUtcTsColumn(\"Accept Custody ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds Icon styles to the document
private void addStyles(){ document.createAndAddStyle().withId("wifiIcon").createAndSetIconStyle().withScale(1.5).withIcon(new Icon().withHref("http://www.freepngimg.com/download/wifi/4-2-wi-fi-png-images.png")); document.createAndAddStyle().withId("Magnifier").createAndSetIconStyle().withScale(1.5).withIcon(new I...
[ "com.sun.java.xml.ns.j2Ee.IconType addNewIcon();", "com.sun.java.xml.ns.j2Ee.IconType insertNewIcon(int i);", "private void addIcons()\r\n\t{\r\n\t\tnewIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"/bFileNew.jpg\")));\r\n\t\tnewButton = new JButton(newIcon);\r\n\t\tnewB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form SearchDataView
public SearchDataView() { initComponents(); }
[ "Search createSearch();", "TSearchResults createSearchResults(TSearchQuery searchQuery);", "public SearchDataView(JFrame parent) {\n \tthis.parentObject = parent;\n \taction = new SearchDataAction(this);\n initComponents();\n prepareComponents();\n }", "private SearchContent createNewSe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets CustomerEO entity object.
public CustomerEOImpl getCustomerEO() { return (CustomerEOImpl) getEntity(2); }
[ "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }", "com.google.ads.googleads.v6...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a directory; all ancestor directories must exist if you use an absolute path. If you are using a relative path, the directory will be created in the current working directory.
private static void doCreateDir() { String newDir = "new_dir"; boolean success = (new File(newDir)).mkdir(); if (success) { System.out.println("Successfully created directory: " + newDir); } else { System.out.println("Failed to create directory: " + newDir); ...
[ "void createDirectory(String path);", "void createDir(String path) throws IOException;", "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static void createDirectory...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the particular signature in the tree
public static List<String> findInTree(int position, TreeNode tree, String signature) { if (position == signature.length()) { return tree.getWords(); } int index = Character.getNumericValue(signature.charAt(position)); if (tree.getChildren()[index] != null) { re...
[ "Signature getSignature();", "public MethodInfo findMethodInfo( String name, Signature sig ) ;", "public static native byte[] AnnouncementSignatures_get_node_signature(long this_ptr);", "java.lang.String getSignature();", "com.microsoft.schemas.office.x2006.digsig.STSignatureType xgetSignatureType();", "i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ look an element if you already processed the element look for next element otherwise find the all occurances of the element and calculate the max distance distance mark the element as processed return maximum among the maximum 1 1 2 2 2 1 Step 0: create a hashSet set max as MIN_VALUE Step 1: For each element in the g...
int getMaxDistanceBetweenSameElement(int[] array) { Set<Integer> numbersSet = new HashSet<>(); int max = Integer.MIN_VALUE; for(int i = 0; i < array.length; i++) { if(! numbersSet.contains(array[i])) { int result = calculateMaxDistance(i, array, array[i]); ...
[ "public int[] nextGreaterElements4(int[] nums) {\n\n //Case when array is empty\n if (nums.length == 0) return nums;\n\n int[] result = new int[nums.length];\n\n //Assuming array to be non-cyclical, last element does not have next larger element\n result[nums.length - 1] = -1;\n\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form pnlDivision
public pnlDivision() { initComponents(); }
[ "Division createDivision();", "public EVPDivision create(long evpDivisionId);", "public void setDivision(String division) {\n \n this.division = division;\n }", "public First_Level_Divisions (int divisionID, String division, LocalDateTime createDate, String createdBy\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes the session cookie and finishes the activity
private void disconnect(){ SharedPreferences sharedPreferences = getSharedPreferences("session_preferences", Context.MODE_PRIVATE); SharedPreferences.Editor sharedPrefEditor = sharedPreferences.edit(); sharedPrefEditor.remove("session").apply(); finish(); }
[ "private void logout(){\n cache.setLoggedIn(false);\n finish();\n }", "public void removeCookies ();", "public void logout() {\n cookieManager.removeCookie();\n (UI.getCurrent()).getUI().getPage().setLocation(\"/\");\n VaadinSession.getCurrent().close();\n VaadinServ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Process called when the tcp maestro is connected
void onTcpMaestroConnected();
[ "void onTcpAnchorConnected();", "private void processConnect(String processIP, short processPort,\n String simulatedIP, short weight) {\n this.processAttach(processIP, processPort, simulatedIP, weight);\n this.processStart();\n }", "protected abstract void onTCPMe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
update the transaction pool (both new and old) w.r.t. block
public void updateTransPool(JsonObject block){ JsonArray transactions = block.get("Transactions").getAsJsonArray(); int N = transactions.size(); for(int i=0; i<N; i++) { JsonObject Tx = transactions.get(i).getAsJsonObject(); if(TxPool_new.contains(Tx)) TxPool_new.remove(Tx); T...
[ "Pool.Update update();", "public void update() {\n\t\tgetPoolClientTM().update();\n\t\tinit();\n\t}", "private void reassignAndBalanceTasks() {\n if (!curatorFramework.getState().equals(CuratorFrameworkState.STARTED)) {\n log.error(\"Ignore reassignAndBalanceTasks: curatorFramework is not star...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
resets all counters and returns the total number of solve calls since the last reset
public long getNumberOfSolveCalls() { long numberOfCalls = 0L; synchronized (listOfCounters) { for (AtomicInteger i : listOfCounters) numberOfCalls += (long)i.getAndSet(0); } return numberOfCalls; ...
[ "void resetCounters() {\n iterations = 0;\n correctCount = 0;\n }", "public int howManyGuessesNeededToSolve() {\n SudokuElement[][] arrayCopy = SudokuArrayFactory.copySudokuArray(this.sudokuElementsArray);\n int result = -1;\n if(solveSudoku(true, 500, 100)) {\n result = thi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize A search by providing a heuristic function.
public AStarSearch(Heuristic<A,S> h) { this.h = h; }
[ "private void initSearcherByArg() {\n String keySearcher = params.getSearchKey();\n if (\"-m\".equals(keySearcher)) {\n searcher = new WildcardSearcher();\n } else if (\"-f\".equals(keySearcher)) {\n searcher = new ExactNameSearcher();\n } else if (\"-r\".equals(key...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The write access permissions for the object. optional int32 permission_write = 7;
int getPermissionWrite();
[ "private boolean hasWritePermission() {\n return true;\n\n }", "boolean isWriteAccess();", "boolean isWriteOnly();", "int getPermissionRead();", "@Override\n public void checkWrite() {\n checkAccess(AccessType.WRITE, null);\n }", "public boolean checkWritePermission(final DataBucket...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Interval__TempOpsAssignment_3_1" $ANTLR start "rule__Interval__IntConstsAssignment_3_2" InternalSymboleoide.g:10726:1: rule__Interval__IntConstsAssignment_3_2 : ( ruleIntConst ) ;
public final void rule__Interval__IntConstsAssignment_3_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSymboleoide.g:10730:1: ( ( ruleIntConst ) ) // InternalSymboleoide.g:10731:2: ( ruleIntConst ) { // Int...
[ "public final void rule__Interval__IntConstsAssignment_4_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSymboleoide.g:10760:1: ( ( ruleIntConst ) )\n // InternalSymboleoide.g:10761:2: ( ruleIntConst )\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the provided state is usable as the latest signed state.
public static boolean isUsable(final StateChildrenProvider provider) { if (provider == null) { return false; } // Since we can't get the enclosing platform SignedState, we don't know exactly when this state was signed. // So we just use, as a guaranteed lower bound, the conse...
[ "protected boolean isStateValid(Object state) {\n return true;\n }", "private boolean checkStateInput(int state){\r\n\t\tboolean bret= false;\r\n\t\tif(state<=STATE_COMPLETED&&state>=STATE_NOT_STARTED){\r\n\t\t\tbret = true;\r\n\t\t}\r\n\t\treturn bret;\r\n\t}", "public boolean isFinalState(final Stat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the degree requirement of a career card based on its career name.
private void setDegreeRequired () { int j = 0; while (j < CAREERS.length && !CAREERS[j].equalsIgnoreCase (name)) j++; if (j <= 3) degreeRequired = true; else degreeRequired = false; }
[ "public CareerCard (String name)\r\n {\r\n super (name);\r\n setDegreeRequired ();\r\n setMaxPayRaise ();\r\n }", "public void setDegree(String degree) {\r\n this.degree = degree;\r\n }", "public void setDegree(String degree) {\r\n\t\tthis.degree = degree;\r\n\t}", "void s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List office category by node.
public static java.util.Iterator<org.semanticwb.repository.office.OfficeCategory> listOfficeCategoryByNode(org.semanticwb.repository.BaseNode value,org.semanticwb.model.SWBModel model) { org.semanticwb.model.GenericIterator<org.semanticwb.repository.office.OfficeCategory> it=new org.semanticwb.mod...
[ "public static java.util.Iterator<org.semanticwb.repository.office.OfficeCategory> listOfficeCategoryByNode(org.semanticwb.repository.BaseNode value)\r\n {\r\n org.semanticwb.model.GenericIterator<org.semanticwb.repository.office.OfficeCategory> it=new org.semanticwb.model.GenericIterator(value.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }