query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Returns whether or not a player is online with the given UUID. | boolean playerExists(UUID uuid); | [
"public boolean checkPlayerUUID (String uuid) {\n\t\treturn myConnector.doCheck(\"SELECT * FROM player WHERE uuid = '\"+ uuid +\"'\");\n\t}",
"private boolean isOnline(@NonNull final UUID playerID) {\n if(Bukkit.getPlayer(playerID) == null) {\n return false;\n } else {\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This controller method is called when the request pattern is of type 'users/registration' and also the incoming request is of POST type | @RequestMapping(value = "users/registration", method = RequestMethod.POST)
public String registerUser(User user) {
//Complete this method
//Call the business logic which currently does not store the details of the user in the database
//After registration, again redirect to the registration ... | [
"@PostMapping(\"/register\")\r\n\tpublic void registerUser() {\r\n\t\tSystem.out.println(\"Register user\");\r\n\r\n\t}",
"@GetMapping(\"/registration\")\n\t public String registration(Model model) {\n\t model.addAttribute(\"userForm\", new User());\n\t return \"registration\";\n\t }",
"void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__IntConst__Group__1" $ANTLR start "rule__IntConst__Group__1__Impl" InternalSymboleoide.g:7998:1: rule__IntConst__Group__1__Impl : ( ( rule__IntConst__TypeAssignment_1 ) ) ; | public final void rule__IntConst__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalSymboleoide.g:8002:1: ( ( ( rule__IntConst__TypeAssignment_1 ) ) )
// InternalSymboleoide.g:8003:1: ( ( rule__IntConst__TypeAssignment_1... | [
"public final void rule__IntConst__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSymboleoide.g:7991:1: ( rule__IntConst__Group__1__Impl )\n // InternalSymboleoide.g:7992:2: rule__IntConst__Group__1__Impl\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines which elements are affected by a mouse scroll event and initiates a UI event on those elements | public void handleScrollEvent(CMouse mouse, float difference)
{
if (!isEnabled || isTransitioning)
{
return;
}
} | [
"void onScrolling();",
"public interface UniScrollListener\n{\n void onScrollChanged(int x, int y, int oldX, int oldY);\n}",
"void onMyScrollChange(View v, int scrollX, int scrollY, int oldScrollX, int oldScrollY);",
"private void setupScrollViews() {\n parent = findViewById(R.id.parent_scroll_view)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints an error with backtrace to the error stream. MRI: eval.c error_print() | public void printError(RubyException excp) {
if (excp == null || excp.isNil()) {
return;
}
if (RubyException.TRACE_TYPE == RubyException.RUBINIUS) {
printRubiniusTrace(excp);
return;
}
ThreadContext context = getCurrentContext();
... | [
"public void printError(RubyException excp) {\n if (excp == null || excp.isNil()) {\n return;\n }\n \n- if (RubyException.TRACE_TYPE == RubyException.RUBINIUS) {\n- printRubiniusTrace(excp);\n- return;\n- }\n-\n- ThreadContext context = getCurre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Returns all the entities given a specific category in the sentence | public ArrayList<String> returnEntities(String category)
{
ArrayList<String> entities = new ArrayList<String>();
String s = classifier.classifyWithInlineXML(paragraphItself);
Pattern p = Pattern.compile("(\\<\\b"+category+"\\b\\>)(.*?)(\\<\\/\\b"+category+"\\b\\>)");
Matcher m = p.matcher(s);
... | [
"public List<ListEntity> getListEntities(String phrase);",
"public static HashMultimap<Word, EntityMention> getWord2Entities(JCas aJCas) {\n HashMultimap<Word, EntityMention> word2EntityMentions = HashMultimap.create();\n for (EntityMention em : UimaConvenience.getAnnotationList(aJCas, EntityMention.class))... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when creating a ChatFragment, use tournament, club, receiver to specify whether it's a tournament chat, club chat or private chat. And use self to identify oneself | public static ChatFragment newInstance(Tournament tournament, Club club, Player receiver, Player self){
ChatFragment fragment = new ChatFragment();
Bundle bundle = new Bundle();
if ( tournament != null ) {
bundle.putString(ARG_TOUR,tournament.toJson());
}
if ( club !=... | [
"public abstract Object getChatIdentifier();",
"private void createNewChat() {\n if (advertisement.getUniqueOwnerID().equals(dataModel.getUserID())) {\n view.showCanNotSendMessageToYourselfToast();\n return;\n }\n\n dataModel.createNewChat(advertisement.getUniqueOwnerID(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the image buttons panel. | public void setImageButtonsPanel(JPanel imageButtonsPanel) {
this.imageButtonsPanel = imageButtonsPanel;
} | [
"public void setAnswerImageButtonsPanel(JPanel answerImageButtonsPanel) {\r\n\t\tthis.answerImageButtonsPanel = answerImageButtonsPanel;\r\n\t}",
"public void setControls() {\r\n if (getImageB() != null) {\r\n menuBuilder.setMenuItemEnabled(\"Close image(B)\", true);\r\n controls.addA... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if all numbers from 1 to given limit satisfy Collatz conjecture | public static boolean testCollatzConjecture(int limit) {
Set<Integer> verified = new HashSet<>();
verified.add(1);
for (int number = 2; number <= limit; number++) {
if (!verified.contains(number)) {
Set<Integer> steps = new HashSet<>();
int currentDec... | [
"boolean hasCannabinoids();",
"int checkMandelbrot(CNumber number, int iterations, double threshold) {\n\n CNumber n = new CNumber();\n int reached = -1;\n\n n = CNumber.add(n, number);\n\n for (int i = 0; i < iterations; i++) {\n n = CNumber.add(CNumber.multiply(n, n), numb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find a printable component. | protected Component findPrintableComponent () {
int i = tabbedPane.getSelectedIndex();
TableOfContentsPanel tocPanel = (TableOfContentsPanel)panels[i];
return tocPanel.getTree();
} | [
"public Printable getPrintableComponent();",
"public abstract Printable getPrintable();",
"private static JComponent findPropertySheetTab(ContainerOperator contOper, String tabName) {\n ComponentChooser chooser = new PropertySheetTabChooser();\n ComponentSearcher searcher = new ComponentSearcher((... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns name of latest commit (at index 0) | public String getLatestCommit() {
if (name != null) {
return name[0];
} else {
return null;
}
} | [
"com.google.protobuf.ByteString getLastCommitHash();",
"Commit getCurrentCommit() {\n String branchh = null;\n Commit prev = null;\n File currentB = new File(\".gitlet/current\");\n for (File file: currentB.listFiles()) {\n branchh = file.getName();\n }\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the company ID of this pathology data. | @Override
public long getCompanyId() {
return _pathologyData.getCompanyId();
} | [
"public long getCompanyId() {\n\t\treturn _room.getCompanyId();\n\t}",
"public java.lang.String getCompanyId() {\n return companyId;\n }",
"public long getCompanyId() {\n return _region.getCompanyId();\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
loadDish() Load data of a dish | public static Dish loadDish(Map<String, Object> document) {
String _id = (String)document.get("dish_id");
String _name = (String)document.get("dish_name");
Number _price = (Number)document.get("dish_price");
String _description = (String)document.get("dish_description");
String _... | [
"public DishORM loadDishes() throws PersistentDataStoreException {\n return persistentDataStore.loadDishes();\n }",
"public void loadDessert() {\n dessert.add(new Dish(\"Kinako Mochi\", 4.65));\n dessert.add(new Dish(\"Raspberry Pistachio Cream Tart\", 5.95));\n dessert.add(new Dish... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Processes an NxN adjacency matrix A, created from an undirected graph, to produce its Laplacian matrix. This is done by calculating the graph's degree matrix and subtracting the input adjacency matrix. | public static long[][] createLaplacian(long[][] A) {
long length = A.length; // stores length of NxN matrix for traversal
// nested for loop to traverse through entire matrix
for(int i = 0; i < length; i++) {
// counts number of adjacent connections per node to produce each node's degree
int count ... | [
"public int[][] getAdjacencyMatrix();",
"private DoubleMatrix invertCholesky(DoubleMatrix matrix) {\n int numOfRows = matrix.rows;\n double sum;\n int i, j, k;\n // ______ Compute inv(L) store in lower of A ______\n for (i = 0; i < numOfRows; ++i) {\n matrix.put(i, i, 1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new faction with the given unit as a member, connected to the given world. | @Raw
public Faction(Unit unit, World world) throws IllegalArgumentException{
if ((unit.hasProperWorld()) && (unit.getWorld() != world))
throw new IllegalArgumentException("the unit's world is not the given world.");
if (! this.canHaveAsUnit(unit))
throw new IllegalArgumentException("Rejected unit" + unit.to... | [
"@Raw\n\tpublic Faction(Unit unit) throws IllegalArgumentException{\t\n\t\tunit.setFaction(this);\n\t\tthis.setWorld(unit.getWorld());\n\t\tthis.addUnit(unit);\n\t\tthis.getWorld().addFaction(this);\n\t\t\n\t\tScheduler scheduler = new Scheduler(this);\n\t\tthis.setScheduler(scheduler);\n\t}",
"@Raw\n\tpublic Fac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleS_Species" $ANTLR start "ruleS_Species" InternalGaml.g:323:1: ruleS_Species : ( ( rule__S_Species__Group__0 ) ) ; | public final void ruleS_Species() throws RecognitionException {
int ruleS_Species_StartIndex = input.index();
int stackSize = keepStackSize();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 20) ) { return ; }
// InternalGaml.g:327:2: ( ( ( rul... | [
"public final void rule__S_Species__Group__0() throws RecognitionException {\n int rule__S_Species__Group__0_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 318) ) { return ; }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is a class constructor to create an object for simulation of disturbances of the type "DISTURB_GAUSS_EXP". This must also be the provided type. Otherwise, the function will issue an error. For the Gaussian distribution, the initial variance is provided. The math expectation of the Gaussian distribution is always 0... | public MathDistortion(distortion_E type, int num_out, double sigma, double coef, int period, int seed)
{
int i;
if(type!=distortion_E.DISTORT_GAUSS_EXP)
{
System.err.println("MathDisturbance: parameters do not match the chosen disturbance type");
System.exit(1);
}
if(period <= 0)
{
S... | [
"public MathDistortion(distortion_E type, double[] sigma_0, double[] sigma_i, int seq_len, int[] period, int seed)\r\n\t{\r\n\t\tint i;\r\n\t\tint num_elements;\r\n\t\t\r\n\t\tnum_elements = sigma_0.length;\r\n\t\tif(type!=distortion_E.DISTORT_GAUSS_EXP)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"MathDisturbance: param... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
does this board equal y? | public boolean equals(Object y) {
if (y == this) return true;
if (y == null) return false;
if (y.getClass() != this.getClass()) return false;
Board that = (Board) y;
if (this.n != that.n) return false;
for (int row = 0; row < n; row++)
for (int col = 0; col < ... | [
"public boolean equals(Object y) {\n if (y == this) return true;\n if (y == null) return false;\n if (y.getClass() != this.getClass()) return false;\n Board that = (Board) y;\n if (that.n != this.n) return false;\n for (int i = 0; i < n * n; i++) {\n if (that.til... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get all values of property InternationalStandardRecordingCode as an Iterator over RDF2Go nodes | public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInternationalStandardRecordingCode_asNode() {
return Base.getAll_asNode(this.model, this.getResource(), INTERNATIONALSTANDARDRECORDINGCODE);
} | [
"public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInternationalStandardRecordingCode_asNode(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\treturn Base.getAll_asNode(model, instanceResource, INTERNATIONALSTANDARDRECORDINGCODE);\r\n\t}",
"Iterator listRDFPro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CURegistrar Crea una instancia del caso de uso Registrar | public CURegistrar(){
} | [
"public VentanaRegistrar() {\n initComponents();\n }",
"Register createRegister();",
"public static Registrar getRegistrar() {\n \t\treturn flagRegistrar;\n \t}",
"public Registration() {\n\t\tsuper();\n\t}",
"public Registration() {\n\t}",
"@Override\n public void registrar()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the maximum illumination level this Race's creatures can see in. | public int getMaximumVisibleIllumination(); | [
"public static int getMaxDamage() {\n\t\treturn MAX_DAMAGE;\n\t}",
"public float getMaxMana()\n {\n return maxMana;\n }",
"public int getMaximumLevel() {\n return Math.min(maximumLevel, 127);\n }",
"public int highestLevel() {\n\t\tint max = 1;\n\t\tfor (Hero hero:teamOfHeros) {\n\t\t\tif (he... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new handler with the specified character encoding. | public DefaultRequestHandler(String characterEncoding) {
this.characterEncoding = characterEncoding;
} | [
"Handler createHandler();",
"public NewTextLineCodecFactory(String charset,String encodingDelimiter, String decodingDelimiter){\n\t\tsuper(Charset.forName(charset),encodingDelimiter,decodingDelimiter);\n\t}",
"protected void addCharacterEncoding(int code, String name) {\n\t}",
"Builder addEncoding(String valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a channel pool to start with. Usually loaded during server start. | public static void setPool(Map<String, SocketChannel> newChannelPool){
channelPool = newChannelPool;
} | [
"public void setChPool(Set chPool) {\n\t\tthis.chPool = chPool;\n\t}",
"public Set getChPool() {\n\t\treturn chPool;\n\t}",
"void setPoolNumber(int poolNumber);",
"protected void setPool(final Pool<PoolType, Long> pool) {\n this.pool = pool;\n }",
"public void setWorkerpool(Executor workerpool) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a download keys promise | private List<String> addDownloadKeysPromise(List<String> userIds, ApiCallback<MXUsersDevicesMap<MXDeviceInfo>> callback) {
if (null != userIds) {
List<String> filteredUserIds = new ArrayList<>(userIds);
synchronized (mUserKeyDownloadsInProgress) {
filteredUserIds.removeA... | [
"private void onKeysDownloadSucceed(List<String> userIds, Map<String, Map<String, Object>> failures) {\n if (null != failures) {\n Set<String> keys = failures.keySet();\n\n for (String k : keys) {\n Map<String, Object> value = failures.get(k);\n\n if (value... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ main reads in system inputs which get fed to the operate function to populate the all_prices vector, and another input for best_price, which reads an int argument to print out the company with the best price on offer | public static void main(String[] args) {
all_prices = new Vector<Company>();
Scanner in; String fileName;
Boolean correctRead = false;
while(!correctRead) { //reads in txt filename with operators from system input
in = new Scanner(System.in);
System.out.print("Enter the file name: ");
fileName = in.nex... | [
"public void calculateThePrice() { \n findCategories(programInfo.getFurnitureCategory());\n\n int[] array = new int[numOfItems]; //sets an array to be used as an index with values from 0 to the number of possible items\n for(int i = 0; i < numOfItems; i++){\n array[i] = i;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calculate the cost of the evening and weekend calls | public double EveningCallCost(){
return EveningCallPrice*EveningCalls;
} | [
"public double DaytimeCallCost(){\n\t\treturn DaytimeCallPrice*DaytimeCalls;\n\t}",
"public static void calculations()\n {\n \n overtimePay = 0;\n if (hoursWorked <= 40)\n regularPay = hoursWorked * hourlyRate;\n else\n {\n regularPay = 40 * hourlyRate;\n overtimePa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Service function to retrieve COVID19 Cases based on the facility. Data consist of: 1. fid 2. age 3. gender 4. nationality 5. residence 6. travelHistory 7. symptoms 8. confirmed 9. facility 10. status 11. date | public void retrievePHCovidCaseByFacility() {
System.out.println("Start retrieving List!");
try {
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(PH_COVID_URL_CASE_BY_FACILITY)).build();
... | [
"@ApiOperation( value = \"Covid19 AllCaseReport\")\n @GetMapping(path = \"/cases\", produces = \"application/json\")\n public Covid19CaseReport cases () {\n return caseService.getCaseReport();\n }",
"public void getActivities(Facility facility){\n \n \t}",
"public List<ICase> searchCases(Date d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find all TdDepEco entities that matches the condition 'where idParentesco is equals to'. | @FindByCondition(value=TdDepEco.class, condition="ID_PARENTESCO=?")
List<TdDepEco> findByIdParentesco(java.lang.Boolean idParentesco); | [
"@FindByCondition(value=TdDepEco.class, condition=\"ID_PARENTESCO=?\")\n TdDepEco getByIdParentesco(java.lang.Boolean idParentesco);",
"@Override\n public List<Regionalizacion> getByParent(Long parent) {\n List<Regionalizacion> list = null;\n try {\n System.out.println(\"Regionaliza... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all the persisted attribute types where code = &63;. | public java.util.List<PersistedAttributeType> findBycode(String code); | [
"public java.util.List<PersistedAttributeType> findBycode(\n\t\tString code, int start, int end);",
"public AttributeType getAttributeTypeByCode(int typeCode);",
"public java.util.List<PersistedAttributeType> findBycode(\n\t\tString code, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add board to the initial UI | public void initUI() {
add(board);
//Set if frame is resizable by user
setResizable(false);
//call pack method to fit the
//preferred size and layout of subcomponents
//***important head might not work correctly with collision of bottom and right borders
pack();
//set title for frame
setTitle... | [
"public void createChessBoardScreen(){\n //screen.setContentPane(chessBoard);\n screen.add(chessBoard);\n screen.setVisible(true);\n }",
"private void _createBoard() {\n\t\t_boardPanels = new JPanel(new GridLayout(_gameState.getBoard().getNumberOfRows() + 1,\n\t\t\t\t_gameState.getBoard().... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copy last pressed values from current values, read new and device state | private void updateButtons(VRControllerState state) {
lastPressedFlags = curPressedFlags;
curPressedFlags = state.ulButtonPressed();
this.state = state;
//Update state
someButtonDown = (curPressedFlags - lastPressedFlags) > 0;
someButtonUp = (lastPressedFlags - curPresse... | [
"public void updateStates() {\n for (int i = 0; i < 256; i++) {\n if (keys[i] == keyState.JUST_PRESSED) {\n keys[i] = keyState.DOWN;\n } else if (keys[i] == keyState.JUST_RELEASED) {\n keys[i] = keyState.UP;\n }\n }\n }",
"static CM r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ assuming d1 and d2 are sorted, merge their contents into a single sorted Deque, and return it | public static Deque<Integer> merge(Deque<Integer> d1, Deque<Integer> d2) {
int size1=d1.getSize();
int size2=d2.getSize();
LinkedListDeque<Integer> deque=new LinkedListDeque();
int count1 =0, count2=0;
int length = size1+size2;
int temp1=0;
int temp2=0;
... | [
"public static LinkedQueue<Object> merge(LinkedQueue<Object> q1, LinkedQueue<Object> q2) {\n if (q1.size() == 0) {\n return q2;\n } else if (q2.size() == 0) {\n return q1;\n }\n\n LinkedQueue<Object> mergeQueue = new LinkedQueue<>();\n int i = 0;\n int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
initializeObjects() creates all the objects needed for the game to start normally. This includes the following: the default Maze the Player the Camera the User input Remember that every object that should be visible on the screen, should be added to the visualObjects list of MazeRunner through the add method, so it wil... | private void initObjects() {
// We define an ArrayList of VisibleObjects to store all the objects that need to be
// displayed by MazeRunner.
visibleObjects = new ArrayList<VisibleObject>();
visibleObjects.add(main.maze);
//taking care of necessary sets
main.player.setControl(main.input);
main.player... | [
"private void initGameObjects() {\n\t\taddGameWorldObject(sceneManager.addSkyBox(this, origin));\n\t\t\n\t\t/*boundaryGroup = new Group();\n\t\tRectangle wall1 = new Rectangle(\"North wall\", 400, 60);\n\t\twall1.translate(0, 1, 150);\n\t\t\n\t\tRectangle wall2 = new Rectangle(\"South wall\", 400, 60);\n\t\twall2.t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method displays the result of a winning hand to the user and accumulates the win into the Game purse. | private void collectWinnings() {
// TODO Slow point accumulation for an "animated" win
winningHandView.setText(game.getPlayerHand().getBestHand().getName());
if (game.getWin() > 0) {
winView.setVisibility(View.VISIBLE);
winView.setText(getWinString(game.getWin(), game.getCreditValue(), viewAsDol... | [
"private int drawResult() {\n int jackpotWon = 0;\n int highPrizeWon = 0;\n int midPrizeWon = 0;\n int lowPrizeWon = 0;\n\n // Calculate the individual ticket results\n for (int ticketNumber = 0; ticketNumber < ticketsBought; ticketNumber++) { // Tries every ticket\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adds WaitlistEntry to database | public static void addWaitlistEntry(WaitlistEntry entry) {
con = DBConnection.getConnection();
try {
PreparedStatement add = con.prepareStatement("INSERT INTO Waitlist (FACULTY, DATE, SEATS, TIMESTAMP) "
+ "VALUES(?, ?, ?, ?)");
add.setString(1, entry.get... | [
"public abstract void addTaskFromDB();",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();",
"public void insertBreakoutData() {\n\n SQLiteDatabase breakoutDb = dataDbHelper.getWritableDatabase();\n ContentValues breakoutValues = new ContentValues();\n\n breakou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inserts and returns a new empty value (as xml) as the ith "measurement" element | public noNamespace.HostdashletDocument.Hostdashlet.Host.Charts.Chart.Series.Measurement insertNewMeasurement(int i)
{
synchronized (monitor())
{
check_orphaned();
noNamespace.HostdashletDocumen... | [
"public noNamespace.MeasurementDocument.Measurement addNewMeasurement()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.MeasurementDocument.Measurement target = null;\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleDECIMAL" $ANTLR start "ruleDECIMAL" InternalAnn.g:218:1: ruleDECIMAL returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_INT_0= RULE_INT kw= '.' this_INT_2= RULE_INT ) ; | public final AntlrDatatypeRuleToken ruleDECIMAL() throws RecognitionException {
AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
Token this_INT_0=null;
Token kw=null;
Token this_INT_2=null;
enterRule();
try {
// InternalAnn.g:224:2: ( (this_... | [
"public final String entryRuleDECIMAL() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleDECIMAL = null;\n\n\n try {\n // InternalAnn.g:211:47: (iv_ruleDECIMAL= ruleDECIMAL EOF )\n // InternalAnn.g:212:2: iv_ruleDECIMAL= ruleDECIMAL ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getter para o atributo numero | Integer getNumero()
{
return (Integer) this.listOfAttributes[PatientAttributes.numero.ordinal()];
} | [
"public int getNumero() {\r\n return numero;\r\n }",
"public int getNumero() {\n return numero;\n }",
"public Integer getIntegerAttribute();",
"int getSingleAttrInt();",
"public Number getNumber(String attr) {\n return (Number) super.get(attr);\n }",
"public int getValor() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "attributeType" element | public void setAttributeType(java.lang.String attributeType)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ATTRIBUTETYPE$4, 0);
if (... | [
"public void setAttributeType(String attributeType);",
"public void setAttributeType(final String attributeType);",
"public void xsetAttributeType(org.apache.xmlbeans.XmlString attributeType)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
An interface implemented by animatable elements. Copyright Enough Software 2008 | public interface Animatable
{
/**
* Animates this element.
* Subclasses can override this method to create animations.
* The default implementation animates the background and the item view if present.
*
* @param currentTime the current time in milliseconds
* @param repaintRegion the repaint are... | [
"interface Animation { public void animate(); }",
"public interface Animated {\r\n\r\n\t/**\r\n\t * Reset the animation state of this object\r\n\t */\r\n\tvoid reset();\r\n\r\n\t/**\r\n\t * Rewind the animation to the beginning\r\n\t */\r\n\tvoid rewind();\r\n\r\n\t/**\r\n\t * Pause the animation\r\n\t * @param p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the status by user ID of this pathology data. | @Override
public long getStatusByUserId() {
return _pathologyData.getStatusByUserId();
} | [
"@Override\n\tpublic java.lang.String getStatusByUserUuid() {\n\t\treturn _pathologyData.getStatusByUserUuid();\n\t}",
"@Override\n\tpublic long getStatusByUserId();",
"@Override\n\tpublic java.lang.String getStatusByUserName() {\n\t\treturn _pathologyData.getStatusByUserName();\n\t}",
"@Override\n\tpublic lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indicates whether health checks are enabled. If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance, ip, or alb, health checks are always enabled and cannot be disabled. | public void setHealthCheckEnabled(Boolean healthCheckEnabled) {
this.healthCheckEnabled = healthCheckEnabled;
} | [
"public Boolean isHealthCheckEnabled() {\n return this.healthCheckEnabled;\n }",
"public Boolean getHealthCheckEnabled() {\n return this.healthCheckEnabled;\n }",
"@JsonIgnore\n public boolean isMigrationHealthinessThresholdSet() { return isSet.contains(\"migrationHealthinessThreshold\");... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The implementation of Runnable interface. After connected and received process, the receiver determine which class the process is, then send a signal to the client to tell if the migration succeed. | public void run() {
try {
ObjectInputStream in = new ObjectInputStream(clientSocket.getInputStream());
DataOutputStream out = new DataOutputStream(clientSocket.getOutputStream());
Object object = in.readObject();
MigratableProcess process = null;
if(object instanceof MigratableProcess)... | [
"public interface MigratableProcess extends Runnable, Serializable{\n\n\tpublic void suspend();\n}",
"public void migrate(int id) {\r\n\t\tSlaveInfo worker = idToSlave.get(id);\r\n\t\tif (worker == null) {\r\n\t\t\tSystem.out.println(\"Incorrect process id\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t/*\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks whether the 'monitoring_host' field has been set | public boolean hasMonitoringHost() {
return fieldSetFlags()[5];
} | [
"public boolean is_set_host() {\n return this.host != null;\n }",
"public boolean isSetAgenthost()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(AGENTH... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will try to create a file if the given path does not correspond to an existing file. | @SuppressWarnings("unused")
private static File createFile(String path) {
// open the file
File currentFile = new File(path);
// check if it is a valid file
if (currentFile == null) {
System.out.println("Could not create the file");
throw new NullPointerException();
}
// hopefu... | [
"public static void createFileIfNeeded(String path) throws IOException{\n\t\tif(!fileExists(path)){\n\t\t\tFile file = new File(path);\n\t\t\t// Works for both Windows and Linux\n\t\t\tfile.getParentFile().mkdirs(); \n\t\t\tfile.createNewFile(); \t\t\n\t\t} \t\n\t}",
"public static void createFileIfRequired... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Memory read. A generic object is read from it. Virtual method, it has to be overridden in a derived data type. | protected abstract Object read (); | [
"public abstract org.omg.CORBA.Object read_Object();",
"public Object read() throws IOException, RecordIOException;",
"public Object read() throws IOException {\n int code = 1;\n try {\n code = in.readUnsignedByte();\n } catch (EOFException eof) {\n return null;\n }\n if (code == Type.B... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor de Controlador para unir el ModelAgenda y ViewAgenda | public ControllerAgenda(ModelAgenda modelAgenda, ViewAgenda viewAgenda) {
this.modelAgenda = modelAgenda;
this.viewAgenda = viewAgenda;
setActionListener();
initDB();
} | [
"public CadastroAgenda() {\n initComponents();\n }",
"public jTAgendaContatos() {\n initComponents();\n desabilitaDados();\n }",
"public Agenda() {\n initComponents();\n \n Deshabilitar();\n LlenarTabla();\n \n }",
"public Appointment()\r\n {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the street1 of this candidate. | @Override
public void setStreet1(java.lang.String street1) {
_candidate.setStreet1(street1);
} | [
"public void setStreet1(String street1) {\n\t\tthis.street1 = street1;\n\t}",
"public void setStreetAddress1(String streetAddress1){\r\n\t\tthis.streetAddress1 = streetAddress1;\r\n\t}",
"public void setStreetAddress1(String newStreetAddress1) {\r\n\t\t\r\n\t}",
"public void setAddress1(final String address1)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fade the trigger to imply recording has started | public void fadeTrigger() {
speechTrigger.setAlpha(0.5f);
} | [
"public void startFadeOut()\n\t{\n\t\tthis.isFadeOut=true;\n\t}",
"public void doFlashAnimation() {\n\t\tchain.start();\n\t}",
"private void startRecording() {\n\n }",
"public void fade() {\n if (scene != 4) {\n // checks whether fade is true\n if (fade == true) {\n\n //begins to degree... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove one or managers from a context. A Context Instance must have at least one manager. | @WebMethod(operationName = "RemoveContextManagers", action = "urn:ContextOperations#RemoveContextManagers")
@RequestWrapper(localName = "RemoveContextManagers", targetNamespace = "http://xmlns.oracle.com/irm/rights/wsdl", className = "com.oracle.xmlns.irm.rights.wsdl.RemoveContextManagers")
@ResponseWrapper(loc... | [
"public void destroy() throws ContextDestroyException;",
"public static void clearActiveContext()\n\t{\n\t\tcontext.remove();\n\t}",
"public void removeContextStatement(MemStatement st);",
"public void destroy() throws org.omg.CosNaming.NamingContextPackage.NotEmpty {\n if (debug)\n dprint(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "BeginModificationDate" element | org.apache.xmlbeans.XmlDateTime xgetBeginModificationDate(); | [
"java.util.Calendar getBeginModificationDate();",
"void xsetBeginModificationDate(org.apache.xmlbeans.XmlDateTime beginModificationDate);",
"org.apache.xmlbeans.XmlDateTime xgetEndModificationDate();",
"org.apache.xmlbeans.XmlDateTime xgetBeginCreationDate();",
"void setBeginModificationDate(java.util.Calen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the BasisGNP_cur field. | public void setBasisGNP_cur(typekey.Currency value) {
__getInternalInterface().setFieldValue(BASISGNP_CUR_PROP.get(), value);
} | [
"private void setBasisGNP_cur(typekey.Currency value) {\n __getInternalInterface().setFieldValue(BASISGNP_CUR_PROP.get(), value);\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.Currency getBasisGNP_cur() {\n return (typekey.Currency)__getInternalInterface().getFieldValue(BASISGNP_CUR_PR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Shows an IPH on the feed header menu button. | public void showMenuIph(UserEducationHelper helper) {
final ViewRectProvider rectProvider = new ViewRectProvider(mMenuView) {
// ViewTreeObserver.OnPreDrawListener implementation.
@Override
public boolean onPreDraw() {
boolean result = super.onPreDraw();
... | [
"public void showHeaderIph(UserEducationHelper helper) {\n helper.requestShowIPH(new IPHCommandBuilder(getContext().getResources(),\n FeatureConstants.FEATURE_NOTIFICATION_GUIDE_NTP_SUGGESTION_CARD_HELP_BUBBLE_FEATURE,\n R.string.feature_notification_guide_tooltip_message_ntp_su... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write a SPARQL boolean result to the output stream in the specified language/syntax. | public static void write(OutputStream output, boolean result, Lang lang) {
Objects.requireNonNull(lang);
ResultsWriter.create()
.lang(lang)
.build()
.write(output, result);
} | [
"void writeBoolean(boolean value);",
"void writeBoolean(boolean v) throws IOException;",
"void writeBool(boolean value);",
"public void write_boolean(boolean b) {\n this.write_atom(String.valueOf(b));\n }",
"void writeBoolean(String name, boolean value);",
"private void boollit() throws IOException{\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The readFriendsArray method is responsible for parsing through a JSON array and creating friend objects from each object in the JSON array. | private List<Friend> readFriendsArray(JsonReader reader) throws IOException {
List<Friend> allFriends = new ArrayList<>();
reader.beginArray();
while (reader.hasNext()) {
allFriends.add(readFriend(reader));
}
reader.endArray();
return allFriends;
} | [
"private List<Friend> readJsonStreamFriends(InputStream in) throws IOException {\n try (JsonReader reader = new JsonReader(new InputStreamReader(in, \"UTF-8\"))) {\n return readFriendsArray(reader);\n }\n }",
"private Friend readFriend(JsonReader reader) throws IOException {\n S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'var3' field. | public com.dj.model.avro.LargeObjectAvro.Builder setVar3(java.lang.Double value) {
validate(fields()[4], value);
this.var3 = value;
fieldSetFlags()[4] = true;
return this;
} | [
"public void setVar3(java.lang.Double value) {\n this.var3 = value;\n }",
"public void setValue3(String value)\n {\n value3 = value;\n }",
"public void setNum3(int value) {\n this.num3 = value;\n }",
"public void setField3(java.lang.CharSequence value) {\n this.field3 = value... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To be used to call the provider back end to get identifiers. Specifically, this is the helper that handles the case for when a refresh call ran into the corrupt identity id case, either a deleted id or a malformed id. If that happens, this is called, a new id and token are fetched, and the process is resumed. | private String retryRefresh() {
// Ensure we get a new id and token
setIdentityId(null);
token = identityProvider.refresh();
return token;
} | [
"protected void createIdTokenForRefreshRequest() {\n\t\tgenerateIdTokenClaims();\n\n\t\taddAtHashToIdToken();\n\n\t\taddCustomValuesToIdTokenForRefreshResponse();\n\n\t\tsignIdToken();\n\n\t\tcustomizeIdTokenSignatureForRefreshResponse();\n\n\t\tencryptIdTokenIfNecessary();\n\t}",
"@Override\n public String re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new View Type test case with the given name. | public ViewTypeTest(String name) {
super(name);
} | [
"public static View createView(String name) {\n switch (name.toLowerCase()) {\n case \"svg\":\n return new SVGView();\n case \"text\":\n return new TextView();\n case \"visual\":\n return new VisualView();\n case \"playback\":\n return new PlaybackView();\n de... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construct a frequency table from an InputStream. This will create a temporary file to copy the InputStream in. | public InputStream constructTable(InputStream source, boolean copy){
freq = new int[TABLESIZE];
try {
File file = null;
FileOutputStream fos = null;
if (copy == true) {
file = File.createTempFile("huf", "tmp");
file.deleteOnExit();
fos = new FileOutputStream(file);
}
while (source.availab... | [
"private void createFreqTable() throws IOException { // Handle exception in compress method\n freqTable = new HashMap<Character, Integer>();\n int charVal; // Store the integer value returned by read() for each character\n\n while ((charVal = input.read()) != -1) { // While file is not empty\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ ===================================================================== TT_Load_Glyph A function used to load a single glyph within a given glyph slot, for a given size. glyph :: A handle to a target slot object where the glyph will be loaded. size :: A handle to the source face size at which the glyph must be scaled/l... | public FTError.ErrorTag TTLoadGlyph(TTSizeRec ttsize, int glyph_index, Set<Flags.Load> load_flags) {
FTError.ErrorTag error;
TTLoaderRec loader;
Debug(0, DebugTag.DBG_LOAD_GLYPH, TAG, String.format("TT_Load_Glyph: glyph_index: %d size: " + ttsize, glyph_index));
/* if FT_LOAD_NO_SCALE is not set, `ttmetr... | [
"public abstract Glyph getGlyph();",
"private void loadGlyphTexture(int par1)\n {\n String s = String.format(\"/font/glyph_%02X.png\", new Object[]\n {\n Integer.valueOf(par1)\n });\n BufferedImage bufferedimage;\n\n try\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Chat by chat Id | public Chat getChatById(int id) {
Optional<Chat> results = chatRepo.findById(id);
return results.get();
} | [
"public Chat getChat(long chatId) {\n\n String sqlStatment = \"SELECT * FROM Chat WHERE ChatID=@chatId\";\n Statement statement = Statement.newBuilder(sqlStatment).bind(\"chatId\").to(chatId).build();\n List<Chat> resultSet = spannerTemplate.query(Chat.class, statement, null);\n \n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets default table id. Using this solution all flow rules are installed on the "default" table | protected abstract FlowRule.Builder setDefaultTableIdForFlowObjective(Builder ruleBuilder); | [
"public void setTableId(int value) {\n this.tableId = value;\n }",
"@Override\n public final ModelMessage setDefaultId(final String newDefaultId) {\n super.setDefaultId(newDefaultId);\n return this;\n }",
"public void setDefaultIdPrefix(String prefix)\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
tests that two message maps are not equal when an additional message is added to one | @Test public void testReplace_testEquals() {
final MessageMap constantMap = buildReplaceErrorMap();
MessageMap replaceMap = buildReplaceErrorMap();
assertEquals(replaceMap, replaceMap);
assertEquals(replaceMap, constantMap);
assertEquals(constantMap, replaceMap);
replac... | [
"@Test public void testMessageCollisions() {\n final String PROPERTY_NAME = \"document.sourceAccounting*,document.targetAccounting*,newSourceLine*,newTargetLine*\";\n MessageMap testMap = new MessageMap();\n\n testMap.putError(PROPERTY_NAME, \"error.inactive\", \"Chart Code\");\n testMap... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for the sensorConfigurations | public final void
setListSensorConfigurations(
List< SensorConfigurationEntry > sensorConfigurations )
{
this.sensorConfigurations = sensorConfigurations;
} | [
"private void configurateSensor()\n\t{\n\t\t// change state of measurement in RestApi\n\t\trestApiUpdate(\"CONFIGURING\", \"state1\");\n\t\tcheckFirmwareVersion();\n\t\t// Write configuration file to sensor\n\t\tsetAndWriteFiles();\n\n\t\t// push comment to RestApi\n\t\ttry\n\t\t{\n\t\t\trestApiUpdate(ConnectionMan... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DELETE /ocConfigurations/:id > delete the "id" ocConfiguration. | @RequestMapping(value = "/ocConfigurations/{id}", method = RequestMethod.DELETE, produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public void delete(@PathVariable Long id) {
log.debug("REST request to delete OcConfiguration : {}", id);
ocConfigurationRepository.delete(id);
} | [
"@RequestMapping(\"/remove/{id}\")\n public String removeConfiguration(@PathVariable(\"id\") int id) {\n\n this.configurationService.removeConfiguration(id);\n return \"redirect:/configurations\";\n }",
"public void removeConfiguration(String id);",
"@Override\n public void delete(Long id... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table t_terms | Terms selectByPrimaryKey(Integer id); | [
"public List<Term> getAllTerms() {\n\t\tsession.beginTransaction();\n\t\tList<Term> lis = session.createQuery(\"from Term\").list();\n\n\t\tfor (Term tm : lis) {\n\t\t\tSystem.out.println(tm.getId() + \" \" + tm.getTermName());\n\t\t}\n\t\treturn lis;\n\t}",
"@Override\n public Set<IndexTerm> getTerms() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates an object of Page type from the database, but only update the property json. | public final int updateJson(final Page page) throws DAOException {
String query = "UPDATE pages SET json=? WHERE id=?";
int result = 0;
Connection con = null;
PreparedStatement pstmt = null;
try {
con = JDBCDAOFactory.getConnection();
con.setAutoCommit(f... | [
"public void updatePage() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(new File(\"./Data/\" + pageName + \".ser\"));\n\t\t\tout = new ObjectOutputStream(fos);\n\t\t\tout.writeObject(this);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Opens a filter agent customizer. | void keywordsMenuItem_actionPerformed(ActionEvent e) {
Class<?> customizerClass = filterAgent.getCustomizerClass();
if (customizerClass == null) {
trace("Error can't find FilterAgent customizer class");
return;
}
// found a customizer, now open it
Customizer customizer = null;
try... | [
"public void openFilter() {\n\t\tJFileChooser fileChooser = getFilterChooser();\n\t\tif(fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile[] files = fileChooser.getSelectedFiles(); \n\t\t\tint index = 0;\n\t\t\ttry {\n\t\t\t\tfor(; index < files.length; index++)\n\t\t\t\t\tController.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for property delFlg. | public String getDelFlg() {
return delFlg;
} | [
"public String getDelFlg() {\n\t\treturn delFlg;\n\t}",
"public String getDeleteFlg() {\n\t\treturn deleteFlg;\n\t}",
"public void setDelFlg(String delFlg) {\n this.delFlg = delFlg;\n }",
"@Transient\n\tpublic String getToDeleteFlg() {\n\t\treturn toDeleteFlg;\n\t}",
"public void setDelFlg(String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The method reads the Exon annotation file, collapses the overlapping Exon regions into one and save it into collapsedExonFileName file. Later it will use the collapsed Exons to replace non Exon regions with N. | public void run(String exonAnnotationFileName, String chr1FileName, String maskedChr1FileName, String collapsedExonFileName) throws IOException {
// Reading the Exon annotation file
List<RefSeq> refSeqs = readRefSeqs(exonAnnotationFileName);
// Collapsing the Exons
System.out.println("Collapsing Exons...");
L... | [
"private void saveCollapsedExons(String collapsedExonFileName, List<RefSeq> collapsedExons) throws IOException {\n\t\t// Deleting the output file if it already exists\n\t\tFileUtils.getInstance().deleteIfExists(collapsedExonFileName);\n\t\tPrintWriter out = FileUtils.getInstance().getPrinterWriter(collapsedExonFile... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Value of the mail.smtp.sendpartial property | @ZAttr(id=249)
public void setSmtpSendPartial(boolean zimbraSmtpSendPartial) throws com.zimbra.common.service.ServiceException {
HashMap<String,Object> attrs = new HashMap<String,Object>();
attrs.put(Provisioning.A_zimbraSmtpSendPartial, zimbraSmtpSendPartial ? Provisioning.TRUE : Provisioning.FALSE... | [
"@ZAttr(id=249)\n public boolean isSmtpSendPartial() {\n return getBooleanAttr(Provisioning.A_zimbraSmtpSendPartial, false);\n }",
"public String getSendPartial()\n { // [2.6.5-B16]\n boolean delegate = true; // delegate ok\n return StringTools.trim(this._getString(KEY_SEND_PARTIAL,d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Lists integrators in the configuration | public String[] getIntegrators() {
return integrators.toArray(new String[0]);
} | [
"@GetMapping(\"/integrations\")\n public List<IntegrationDTO> getAllIntegrations() {\n log.debug(\"REST request to get all Integrations\");\n return integrationService.findAll();\n }",
"public static void viewListOfRegistrants() {\n\t\tArrayList<Registrant> list_reg = getRegControl().listOfReg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fetches uptodate weather data from the server. Runs completionCallback if the request succeeds. | public void fetchWeather(Consumer<WeatherData> completionCallback) {
requestQueue.submit(() -> {
try {
WeatherData result = new WeatherData(
fetch("current conditions",
openWeather::currentWeatherByCityName,
openWeat... | [
"private void requestWeatherData(int status) {\n if (!isNetworkAvailable()) {\n //app is offline\n\n getPresenter().requetofflineWeatherData();\n } else {\n //app is online\n switch (status) {\n case LOCATION_PERMISSION_DENINED:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Scans through the whole image and for each pixel which is "safe" it compares the safe value to the unsafe value. | @Test
public void isInFastBounds() {
T img = createImage(width, height);
GImageMiscOps.fillUniform(img, rand, 0, 100);
InterpolatePixelS<T> interp = wrap(img, 0, 100);
for( int y = 0; y < height; y++ ) {
for( int x = 0; x < width; x++ ) {
if( interp.isInFastBounds(x, y)) {
float a = interp.get(x,y... | [
"private void processImage () {\n\t\tfor (int row = 0; row < pixelValues.length; row++) {\n\t\t\tfor (int col = 0; col < pixelValues[0].length; col++) {\n\t\t\t\tif ((row + 2) < pixelValues.length \n\t\t\t\t&& (col + 2) < pixelValues[0].length) {\n\t\t\t\t\tpixelValues [row] [col] -= pixelValues [row + 2] [col + 2... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XThrowExpression__Group__0__Impl" $ANTLR start "rule__XThrowExpression__Group__1" InternalDroneScript.g:14243:1: rule__XThrowExpression__Group__1 : rule__XThrowExpression__Group__1__Impl rule__XThrowExpression__Group__2 ; | public final void rule__XThrowExpression__Group__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalDroneScript.g:14247:1: ( rule__XThrowExpression__Group__1__Impl rule__XThrowExpression__Group__2 )
// InternalDroneScript.g:1424... | [
"public final void rule__XThrowExpression__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14355:1: ( rule__XThrowE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test whether element E meets certain conditions. | public boolean test(E element); | [
"boolean check(E element);",
"public boolean hasElt(int e) {\n return this.data == e || this.left.hasElt(e) || this.right.hasElt(e) ;\n }",
"protected abstract boolean hasElementsToCheck();",
"boolean compatible(int e) {\n return !has_evidence() || e == get_evidence();\n }",
"public abstract bool... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end rule__Link__Group__2__Impl $ANTLR start rule__Link__Group__3 ../org.eclipse.ese.android.dsl.ui/srcgen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:837:1: rule__Link__Group__3 : rule__Link__Group__3__Impl ; | public final void rule__Link__Group__3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:841:1: ( rule__Link__Group__3__Impl )
// ..... | [
"public final void rule__Link__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:16211:1: ( rule__Link__Group__3... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the scale of the datasets on this graph, to linear, log10 or loge | public void setScale(int scale) {
DatasetXtoY d;
int oldValue = this.scale;
switch (scale) {
case Dataset.LINEAR:
case Dataset.LOG_10:
case Dataset.LOG_E:
this.scale = scale;
for (int i = 0; i < dataset.size(); i++) {
d = (DatasetXtoY)... | [
"public void setScale(int scale) {\r\n if (dataset == null) return;\r\n\r\n int oldValue = this.scale;\r\n\r\n switch (scale) {\r\n case Dataset.LINEAR:\r\n case Dataset.LOG_10:\r\n case Dataset.LOG_E:\r\n this.scale = scale;\r\n dataset.setScale(scale);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of all assigned user names for the given domain which have the role 'admin' | @RolesAllowed({"admin"})
public List<String> getAssignedUsersWithAdminRole(int domainId) {
List<DomainUser> users = em.createNamedQuery("DomainUser.findByDomainIdAndUserRole", DomainUser.class).setParameter("domainId", domainId).setParameter("userRole", "admin").getResultList();
List<String> result ... | [
"@RolesAllowed({\"admin\"})\n public List<String> getAssignedUsers(int domainId) {\n List<DomainUser> users = em.createNamedQuery(\"DomainUser.findByDomainId\", DomainUser.class).setParameter(\"domainId\", domainId).getResultList();\n List<String> result = new ArrayList<String>(users.size());\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get method for struct member '_pad0'. | public CArrayFacade<Byte> get_pad0() throws IOException
{
Class<?>[] __dna__targetTypes = new Class[]{Byte.class};
int[] __dna__dimensions = new int[]{
6
};
if ((__io__pointersize == 8)) {
return new CArrayFacade<Byte>(__io__address + 34, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTab... | [
"public CArrayFacade<Byte> get_pad0() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t4\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 276, __dna__targetTypes, __dna__dimensions,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a set of ports (endpoints) to the service. | @Override
public void addPorts(final HashSet<FPort> ports)
{
this.ports.addAll(ports);
} | [
"public void addPorts(){\n\t\t\n\t}",
"private void addPorts(JsonObject serviceJson, Collection<? > ports)\r\n {\r\n JsonObject portsJson = new JsonObject();\r\n\r\n serviceJson.add(\"ports\", portsJson);\r\n\r\n for (Object port : ports)\r\n {\r\n String name = port instanceof Port\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the project's workflow scheme is only used by one project and if this scheme has a draft, then the draft is copied to a separate scheme and deleted. | AssignableWorkflowScheme cleanUpSchemeDraft(Project project, User user); | [
"private void ifItWasInDraftFolderDeleteThatCopy() {\r\n\t\tif (parentFolder.getPath().equals(\r\n\t\t\t\tCECConfigurator.getReference().get(\"Drafts\"))) {\r\n\t\t\temailDao.delete(parentFolder.getPath(), id);\r\n\t\t}\r\n\t}",
"boolean deleteWorkflowScheme(@Nonnull WorkflowScheme scheme);",
"boolean hasDraft(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getTextFromSingleNode Receives a xPath string expression that refers to a unique node element from DOM document, and return the string from text child element. If a remote call exists, this node will be materialized. | public String getTextFromSingleNode(String xPathString) throws AxmlDocException {
AxmlNode axmlNode;
Node node;
XPathExpression xPathExpression;
try {
xPathExpression = xPath.compile(xPathString);
node = (Node) xPathExpression.evaluate(this.decoratedDocument, XPathConstants.NODE);
axmlNode = new AxmlN... | [
"protected String getNodeText(String xpath) {\n\t\tNode node = getNode(xpath);\n\t\ttry {\n\t\t\treturn node.getText();\n\t\t} catch (Throwable t) {\n\n\t\t\t// prtln (\"getNodeText() failed with \" + xpath + \"\\n\" + t.getMessage());\n\t\t\t// Dom4jUtils.prettyPrint (docMap.getDocument());\n\t\t}\n\t\treturn \"\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
I2C_MST_CTRL register Get multimaster enabled value. Multimaster capability allows multiple I2C masters to operate on the same bus. In circuits where multimaster capability is required, set MULT_MST_EN to 1. This will increase current drawn by approximately 30uA. In circuits where multimaster capability is required, th... | public boolean getMultiMasterEnabled() {
buffer[0] = (byte) I2Cdev.readBit(MPU6050_Registers.MPU6050_RA_I2C_MST_CTRL, MPU6050_Registers.MPU6050_MULT_MST_EN_BIT);
return buffer[0] == 1;
} | [
"public boolean getI2CMasterModeEnabled() {\n buffer[0] = (byte) I2Cdev.readBit(MPU6050_Registers.MPU6050_RA_USER_CTRL, MPU6050_Registers.MPU6050_USERCTRL_I2C_MST_EN_BIT);\n return buffer[0] == 1;\n }",
"public boolean getIntI2CMasterEnabled() {\n buffer[0] = (byte) I2Cdev.readBit(MPU6050_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize the playlist and controls. | public void initPlaylist(List<JcAudio> playlist) {
// Don't sort if the playlist have position number.
// We need to do this because there is a possibility that the user reload previous playlist
// from persistence storage like sharedPreference or SQLite.
if (!isAlreadySorted(playlist)) ... | [
"public void initAnonPlaylist(List<JcAudio> playlist) {\n sortPlaylist(playlist);\n generateTitleAudio(playlist, getContext().getString(R.string.track_number));\n jcAudioPlayer = new JcAudioPlayer(getContext(), playlist, jcPlayerViewServiceListener);\n jcAudioPlayer.registerInvalidPathLi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Computes the Rabin hash value of the contents of a file, specified by URL. | public long hash(final URL url) throws IOException {
final InputStream is = url.openStream();
try {
return hash(is);
} finally {
is.close();
}
} | [
"static int computeHash(Path file) throws IOException {\n int h = 0;\n\n try (InputStream in = newInputStream(file)) {\n byte[] buf = new byte[1024];\n int n;\n do {\n n = in.read(buf);\n for (int i=0; i<n; i++) {\n h = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Allocates a card channel iff one is required. If a channel has been provided by setCardChannel, none has to be allocated. releaseCardChannel will take care of this and release the channel only if it actually has been allocated here. After calling this method, a card channel will be available and can be obtained via get... | protected void allocateCardChannel()
throws InvalidCardChannelException
{
assertSchedulerStillAlive();
if (!is_provided)
{
itracer.debug("allocateCardChannel", "allocating");
try {
card_channel = cs_scheduler.allocateCardChannel(this, is_blocking);
if (card_ch... | [
"protected void releaseCardChannel()\n throws InvalidCardChannelException\n {\n assertSchedulerStillAlive();\n\n if (!is_provided)\n {\n itracer.debug(\"releaseCardChannel\", \"releasing\");\n cs_scheduler.releaseCardChannel(card_channel);\n }\n }",
"public void setCardChanne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the LineCondition field. | @gw.internal.gosu.parser.ExtendedProperty
public entity.GL7LineCond getLineCondition(); | [
"public void setLineCondition(entity.GL7LineCond value);",
"public String getCondition() {\n return condition;\n }",
"public String getRuleCondition() {\n return ruleCondition;\n }",
"String getCondition();",
"public ConditionData getCondition()\r\n \t{\r\n \t\tif (this.condition == null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
creates a handler that receives method calls with serialized parameters deserializes them and calls the original handler | public static Object handler(final Object originalHandler) {
try {
logger.debug("creating serialization handler for " + originalHandler);
String name = "dynamicallyGeneratedSerialization.class" + classCounter.incrementAndGet() + "." + originalHandler.getClass().getCanonicalName();
logger.debug("in... | [
"public abstract Object invoke(ConfigHandler handler, Object[] args);",
"ISerializer invoke(String responseReceiverId);",
"public abstract MethodHandle readObjectForSerialization(Class<?> cl) throws NoSuchMethodException, IllegalAccessException;",
"public abstract MethodHandle readResolveForSerialization(Clas... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes jPanel6 | private JPanel getJPanel6() {
if (jPanel6 == null) {
jPanel6 = new JPanel();
BoxLayout bl = new BoxLayout(jPanel6, BoxLayout.X_AXIS);
jPanel6.setLayout(bl);
lblMemo = new JLabel("Memo ");
txtMemo = new JTextArea("");
txtMemo.setMinimumSize(new Dimension(420, 80));
txtMemo.setPreferredSize... | [
"private JPanel getJPanel6() {\n\t\tif (jPanel6 == null) {\n\t\t\tjPanel6 = new JPanel();\n\t\t\tjPanel6.setPreferredSize(new java.awt.Dimension(154,154));\n\t\t}\n\t\treturn jPanel6;\n\t}",
"private void init(){\n panel_principal = new JPanel();\r\n panel_principal.setLayout(new BorderLayout());\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the 'convolution' field | public edu.pa.Rat.Builder setConvolution(float value) {
validate(fields()[2], value);
this.convolution = value;
fieldSetFlags()[2] = true;
return this;
} | [
"public void setConvolution(java.lang.Float value) {\n this.convolution = value;\n }",
"public java.lang.Float getConvolution() {\n return convolution;\n }",
"public java.lang.Float getConvolution() {\n return convolution;\n }",
"public void addConvolution() { \n if (isBusy()) retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'User Defined Type'. | UserDefinedType createUserDefinedType(); | [
"Type createType();",
"DataType createDataType();",
"BasicType createBasicType();",
"TypeDef createTypeDef();",
"Datatype createDatatype();",
"DatatypeType createDatatypeType();",
"TypeDefinition createTypeDefinition();",
"UdtType createUdtType();",
"public Types createTypes();",
"NamedType create... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Resolves all references of given type returning a map of names and type instances. | <T> Map<String, T> resolveAll(Class<T> type); | [
"void resolveTypes() {\n // would need to lookup the base type in the symbol table\n }",
"<T> Set<T> lookupAll(Class<T> type);",
"<T> void lookupAll(Class<T> type, Collection<T> out);",
"private void buildTypeAliases() throws AnalysisException {\n TimeCounterHandle timeCounter = PerformanceStatis... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The purpose of this method is to retrieve all records from the TableNumber table and store them into an arraylist | @Override
public ArrayList<TableNumber> getAllTableNumbers() {
String query = "SELECT * FROM " + DBConst.TABLE_NUMBER_TABLE;
tableNumbers = new ArrayList<TableNumber>();
try{
Statement getTableNumbers = db.getConnection().createStatement();
ResultSet data = getTableNu... | [
"List< List<String> > fetchAllRows(String tableName) throws SQLException {\n\t\tResultSet rs = executeQuery(\"SELECT * FROM \" + tableName);\n\t\treturn parseResultData(rs);\n\t}",
"public List<PrimeNr> getAllPrimeNrs(){\n Cursor cursor = database.query(PrimeNrBaseHelper.TABLE,null, null, null, null\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true, if this class path entry is exported. | boolean isExported(); | [
"public boolean isExportedEntriesOnly() {\n return fExportedEntriesOnly | Platform.getPreferencesService().getBoolean(LaunchingPlugin.ID_PLUGIN, JavaRuntime.PREF_ONLY_INCLUDE_EXPORTED_CLASSPATH_ENTRIES, false, null);\n }",
"public Boolean isExportable() {\n return this.isExportable;\n }",
"b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GENFIRST:event_deviceField17FocusLost TODO add your handling code here: System.out.println("deviceField17FocusLost"); updateWaves(); | private void deviceField17FocusLost(java.awt.event.FocusEvent evt) {
} | [
"@Override\r\n public void onRobotFocusLost() {\n }",
"protected void onFocusLost()\n {\n ; // do nothing. \n }",
"private void t3FocusLost(java.awt.event.FocusEvent evt) {\n }",
"@Override\r\n public void focusLost(FocusEvent e) {}",
"protected void onFocusGained()\n {\n ; /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method for debugging purposes, returns the name of the token for a given integer code. | public String getNameFromCode(Integer code) {
if(code.intValue() == EOF) {
return "EOF";
}else if(operators.containsKey(code)) {
return operators.get(code);
}else if(code.intValue() == PREPROCESSOR) {
return "PREPROCESSOR";
}else if(code.intValue() == IDENTIFIER){
return "IDENTIFIER";
}el... | [
"public static String getTokenName(int type) {\r\n return TokenType.getTokenName(type);\r\n }",
"private String getTokenName(int token) {\n try {\n java.lang.reflect.Field [] class_fields = sym.class.getFields();\n for (int i = 0; i < class_fields.length; i++) {\n if (class_fields[i]... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Product Bidding Category referenced in the query. .google.ads.googleads.v6.resources.ProductBiddingCategoryConstant product_bidding_category_constant = 109; | com.google.ads.googleads.v6.resources.ProductBiddingCategoryConstantOrBuilder getProductBiddingCategoryConstantOrBuilder(); | [
"com.google.ads.googleads.v6.resources.ProductBiddingCategoryConstant getProductBiddingCategoryConstant();",
"com.google.ads.googleads.v1.resources.ProductBiddingCategoryConstant getProductBiddingCategoryConstant();",
"com.google.ads.googleads.v1.resources.ProductBiddingCategoryConstantOrBuilder getProductBiddi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fin question 3) Pour la question 4) relierCasesMin | public int relierCasesMin(int x, int y, int z, int t, String col)
{
boolean visite[][];
boolean tousVisite = false;
Case predecesseur[][];
int poids[][];
int min;
Case courante = new Case(0,0,0);
String couleur = "blanc";
predecesseur = new Case[longueur_][longueur_];
poids = new int[longueur_][longu... | [
"double getLowerThreshold();",
"double getMinimum1();",
"@Test\r\n\tpublic void calculLostPointsByOneRuleBelowMinTest() {\r\n\t\tAssert.assertEquals(UtilCalculGrade.calculLostPointsByOneRule(new ModelValue(2f, 0.5f, 3f), new Integer(1)),\r\n\t\t\t\tnew Float(0));\r\n\t}",
"private double getLowerFitness(Indiv... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disable the background mode. | private void disableMode() {
ForegroundService.dicConnect();
stopService();
isDisabled = true;
} | [
"void disableBackgroundDate();",
"private void disableDisplayAlwaysOnMode() {\n getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }",
"@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }",
"public void disable();",
"public synchronized ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |