query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
According to provided action, this method gets service function path and collects all info about participation and orientation of path. According to path symmetricity, participation and direction, one of these cases happens: 1. Path is asymmetric, and it starts in this classifier (specified by context) direct chain is ...
static void newChainAction(final PeerEndpoint peerEndpoint, final Sgt sourceSgt, final Sgt destinationSgt, final Map<PolicyManagerImpl.ActionCase, ActionInDirection> actionMap, final PolicyConfigurationContext context, final DataBroker dataBroker) { ...
[ "protected abstract String getOperationPath(GenerationContext context, OperationShape operation);", "public String getMateDependencyPath() {\n\t\tif ((e2 instanceof Timex && ((Timex)e2).isDct()) || (e2 instanceof Timex && ((Timex)e2).isEmptyTag())) {\r\n\t\t\treturn \"O\";\r\n\t\t} else if (isSameSentence()){\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
read the request parameter from the html form
@RequestMapping("/processFormVersionTwo") public String letsShoutDude(HttpServletRequest request, Model model) { String name = request.getParameter("studentName"); //convert all the data to upper case name = name.toUpperCase(); //create message yo! dude String result = "YO! " + name; //add mess...
[ "protected String getValueFromRequest() \n\t{\n\t\treturn this.context.getRequest().getParameter(this.getUIID());\n\t}", "@Override\n\tpublic void getParameterFromRequest(HttpServletRequest req) {\n\t\t\n\t}", "@Override\n\tpublic String getParameter(String name) {\n\t\treturn request.getParameter(name);\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ System.setProperty("webdriver.gecko.driver", System.getProperty("user.dir")+"/src/com/cucumber/drivers/geckodriver.exe"); driver=new FirefoxDriver(); driver.get("
@Given("^User should open bro$") public void User_should_open_bro() throws Throwable { initialize("ff"); lp=new LandPage(); hp=new HomePage(); }
[ "@BeforeMethod\r\n\tpublic void setup() {\n\t System.setProperty(\"webdriver.gecko.driver\",\"C:\\\\Users\\\\shreya.ukrao\\\\Downloads\\\\Selenium Jars and Drivers\\\\drivers\\\\geckodriver.exe\"); \r\n\r\n\t //Open browser instance\r\n\t driver = new FirefoxDriver();\r\n\r\n\t driver.manage().window(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provides list with names of Groups that the user has configured on the server.
@RequestMapping(value = "/mca/listGroups.htm", method = RequestMethod.POST) public void listGroups(HttpServletRequest request, HttpServletResponse response) { PrintWriter out = null; try { out = new PrintWriter(response.getOutputStream()); response.setContentType("text/html")...
[ "public Set<String> getGroupsList() throws RemoteException;", "java.util.List<java.lang.String> getAdminGroupsList();", "public ArrayList<String> listGroups() {\r\n return mGroupManager.listFoundGroups();\r\n }", "List<String> getUserGroups() throws JSchException, IOException {\n if ( userGroups ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__BUnion__Group__0" $ANTLR start "rule__BUnion__Group__0__Impl" InternalBSQLLog2Java.g:5250:1: rule__BUnion__Group__0__Impl : ( ( rule__BUnion__SetAssignment_0 ) ) ;
public final void rule__BUnion__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQLLog2Java.g:5254:1: ( ( ( rule__BUnion__SetAssignment_0 ) ) ) // InternalBSQLLog2Java.g:5255:1: ( ( rule__BUnion__SetAssignment_0 ) ) ...
[ "public final void rule__UnionRule__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.makumba.devel.plugin.eclipse.mdd.ui/src-gen/org/makumba/devel/plugin/eclipse/mdd/ui/contentassist/antlr/internal/InternalMDD.g:11878:1: ( (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get one businessCapability by id.
@Transactional(readOnly = true) public BusinessCapability findOne(Long id) { log.debug("Request to get BusinessCapability : {}", id); return businessCapabilityRepository.findOne(id); }
[ "public Capability retrieve(String id) throws StripeException {\n return retrieve(id, (Map<String, Object>) null, (RequestOptions) null);\n }", "public Brand findOne(int id) {\n\t\treturn brandDao.findOne(id);\r\n\t}", "public AdCombo get(String id) {\n\t\treturn thisDao.get(id);\n\t}", "public Business s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); attysdir = new File(Environment.getExternalStorageDirectory().getPath(), ATTYS_SUBDIR); if (!attysdir.exists()) { attysdir.mkdirs(); } setRequestedOri...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Intesar on 3/5/2017.
public interface UserService { ResponseDto addUser(UserDto userDto); ResponseDto updateUser(UserDto userDto); ResponseDto getUserDetailsForLogin(String email); ResponseDto logoutUser(Integer userId); ResponseDto deleteUser(Integer userId); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "Eisdiele() {\r\n\r\n\t}", "@Override\n\t\tpublic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for mods which use the ClientPermissions system
public interface Permissible extends LiteMod { /** * Returns the node name of the mod, replicated permissions will be of the * form mod.<name>.permission.node so this method must return a valid name * for use in permission nodes. This method must also return the same value * every time it is cal...
[ "CommandPermission permission();", "public interface PermissionInterface {\n /**\n * 可设置请求权限请求码\n */\n int getPermissionsRequestCode();\n\n /**\n * 设置需要请求的权限\n */\n String[] getPermissions();\n\n /**\n * 请求权限成功回调\n */\n void requestPermissionsSuccess();\n\n /**\n *...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional bool realm_indexed = 1 [default = false];
public boolean hasRealmIndexed() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "public boolean isExplicitlyIndexed() {\n \n return explicit;\n \n }", "@Override\r\n\tpublic boolean isIndexed()\r\n\t{\n\t\treturn false;\r\n\t}", "public interface C4769x39a64b2 {\n ManagePermissions realmGet$canManage();\n\n long realmGet$finishDate();\n\n String realmGet$finishDateHuma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
java.lang.String getInsulinUsingFreq() Returns the value of field 'name'.
public java.lang.String getName() { return this._name; }
[ "public String getFreq() {\n\t\t\treturn freq;\n\t\t}", "public String getFrequency() {\n return freq;\n }", "public String getMinimumFrequency();", "int getNameValue();", "public String getTotalFreq() { return this.c.getTotalFreq(); }", "public int getFreq()\n {\n return this.freq;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the resource collection API of NetworkInterfaces. It manages NetworkInterface.
public NetworkInterfaces networkInterfaces() { if (this.networkInterfaces == null) { this.networkInterfaces = new NetworkInterfacesImpl(clientObject.getNetworkInterfaces(), this); } return networkInterfaces; }
[ "NetworkInterfaceCollection getNetworkInterfaces(\n DescribeNetworkInterfacesRequest request);", "public @Nonnull AsyncResult<Iterable<NetworkInterface>> listNetworkInterfaces() throws CloudException, InternalException;", "@Fluent\npublic interface VirtualMachineScaleSetNetworkInterfaces extends\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the AdjectiveOrderID to the Adjective.
public void addAdjectiveOrderID(int i){ adjectiveOrderID = i; }
[ "@Override\r\n\tpublic int addOrder(Order order) {\n\t\treturn orderMapper.insertSelective(order);\r\n\t}", "@Override\n\t@Transactional\n\tpublic int addOrder(Orders order) {\n\t\treturn ordersMapper.insertSelective(order);\n\t}", "void addOrder(OrderEntity order) throws DAOException;", "int addOrder(OrderWr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update group for given user.
Group updateGroup(String userId, String tenantId, String groupId, String name, String type, String image, String... userIdsToRemove);
[ "@Override\r\n\tpublic void update(UserGroupVO userGroup) {\n\r\n\t}", "public Group update(Group group);", "Group updateGroup(final BonitaUUID aGroupUUID, final Group aGroup) throws GroupNotFoundException, ConsoleException, SessionTimeOutException, GroupAlreadyExistsException;", "int updateByPrimaryKey(DisUs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If it's first iteration, adjust step dynamically
private void adjustStepSize(List<Double> gradients) { boolean suitable = false; while (!suitable) { suitable = true; for (int i = 0; i < gradients.size(); i++) { if ((Math.abs(parameters.get(i)) + 0.1) /2 < Math.abs(gradients.get(i) * step)) { ...
[ "public void step()\n {\n step(1, 0.0);\n }", "public void increaseStep() {\r\n\t step++;\r\n\t}", "@Override\n public int getFirstStep() {\n return firstStep;\n }", "static public void step(SimpleMatrix step) {\n for (int i = 0; i < step.getNumElements(); i++) {\n step....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the user by the given email
User getByEmail(String email);
[ "UserResponse getUserByEmail(String email);", "public User getUser(String email) {\n // the user to return\n User user = null;\n // find the user with the corresponding email if it exists\n for (User currUser : this.users) {\n if (email.equals(currUser.getEmail())) {\n user = currUser;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String username = request.getParameter("username"); String password = request.getParameter("password"); Session session= new HVR().getSession(...
[ "@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }", "@Override\n public void post(String path) {\n \n }", "@Override\r\n\tpub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getter for combo box audio sample rate component
public JComboBox getComBoxAudioSampleRate() { return comBoxAudioSampleRate; }
[ "Integer getSampleRate();", "public long getAudioSamplingRate();", "public int GetSampleRate(){\r\n\t\treturn SampleRate;\r\n\t}", "public int getSampleRate() {\n return sampleRate_;\n }", "public String getSampleRate() {\n return content.get(FIELD_SAMPLERATE).toString();\n }", "public f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get collection of available operation details.
public List<OperationDetail> value() { return this.value; }
[ "@Override\n\tpublic List<Operation> listOperation() {\n\t\treturn operationRepository.findAll();\n\t}", "public java.util.List<java.lang.String> getOperationsList() {\n return java.util.Collections.unmodifiableList(result.operations_);\n }", "public List<OperationFacade> getOperations();", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called by Opcom when the Stop button is pressed.
public synchronized void shutDown() { stopThread(); }
[ "public void stop() {\n\t\tstatus = Status.stop;\r\n\t}", "protected void stopButtonAction(){\n\t\tpauseLogic();\n\t\tplaybackLoc = 0;\n\t}", "public Do stop();", "@Override\n\tpublic void stop()\n\t{\n\t\tLOGGER.debug(\"Action stop() called on \" + this);\n\t\tSystem.out.println(\"\\n stop is called now\");\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method makes the color yellow transparent. It allows for images to overlap without fully covering eachother
public Image makeColorTransparent(BufferedImage im) { ImageFilter filter = new RGBImageFilter() { public int markerRGB = Color.YELLOW.getRGB() | 0xFF000000; public final int filterRGB(int x, int y, int rgb) { if ((rgb | 0xFF000000) == markerRGB) { ...
[ "public void EmbossImage() {\n image_copy = getImageCopy();\n\n for (int row = 0; row < image_pixels.getHeight(); row++)\n {\n for (int column = 0; column < image_pixels.getWidth()-1; column++)\n {\n int color_value = 128;\n Pixel pixel = getP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 workerId = 2;
public Builder setWorkerId(int value) { workerId_ = value; onChanged(); return this; }
[ "Integer workerSizeId();", "public int getWorkerNumber(){\n return this.workerNumber;\n }", "private int createWorkerID() {\n try {\n AtomicValue<Integer> incremented = daiForWorkerID.increment();\n if (incremented.succeeded()) {\n int workerID = incremented.preValue();\n LO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of doExercise2 method, of class CPD3314Assign3.
@Test public void testDoExercise2Lower() { String fakeInput = "c\n3\n"; byte[] fakeInputArray = fakeInput.getBytes(); System.setIn(new ByteArrayInputStream(fakeInputArray)); String expected = "That's the right number/letter."; String[] unexpected = {"Please pick a nu...
[ "@Test\n public void test_exercice4() {\n assertThat(ExercicesSupplementaires.exercice4(0)).isEqualTo(0);\n assertThat(ExercicesSupplementaires.exercice4(16)).isEqualTo(987);\n //System.out.println(ExercicesSupplementaires.exercice4(16));\n\n }", "abstract void setupExercise();", "@Te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column CULSITE.M_CUST_VOUCHER_PURSE.TIMES
public Integer getTimes() { return times; }
[ "public Date getTimeOfPurchase(){\n return timeOfPurchase;\n }", "public String getMaxGetTime() {\n \n \t\treturn defaultConnectionRequestInfo.getProperty(DestinationDataProvider.JCO_MAX_GET_TIME);\n \t}", "public Long getRegisttimes() {\n return registtimes;\n }", "@Accessor(qualifier = \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Start the operation(s) based on input
private void startProcess(String[] args) { for (String arg : args) { if (Integer.valueOf(arg) > 4) { log.info(INVALID_MSG); break; } else { log.info("--------------------------------------"); switch (Integer.valueOf(arg)) { ...
[ "public void start()\r\n {\r\n this.op.start();\r\n }", "private void go () {\n\n // Write up to the request number of instructions.\n\tfor (line = 1; line <= totalOps; line = line + 1) {\n\n\t switch (random.nextInt(5)) {\n\n\t case 0:\n add();\n\t\tbreak;\n\t\t\n\t ca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
most of the former contents of this method have been moved to the SentryStatus state machine.
public void die( boolean runscripts, EntityDamageEvent.DamageCause cause ) { if ( myStatus == SentryStatus.isDYING || myStatus == SentryStatus.isDEAD ) return; causeOfDeath = cause; myStatus = SentryStatus.isDYING; if ( runscripts && Sentry.denizenActive ) DenizenHook.sentr...
[ "private int getEntryState()\n \t{\n \t\treturn workflow.getEntryState(workflowId);\n \t}", "@Override\n public int getStatus() {\n return 0;\n }", "@Override\r\n\tpublic void onStatusEvent(StatusEvent arg0) {\n\t\t\r\n\t}", "public static int get_Status_handle() { return _Status_handle; }", "@Ov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is a wrapper method to delete an element from tree.
public void delete(int data) { if (root != null) deleteNode(root, data); }
[ "public DNode<E> remove(E element){\n \treturn remove(element, root, root);\r\n }", "E remove (E element);", "public void removeElement(Node element);", "E removeRoot();", "public abstract void deleteNode(T deleteItem);", "public abstract BinaryTree<T> remove(T d);", "public void NodeDelete(JNode ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance for the given resource.
protected UsageCrossReferencer(Resource resource) { super(resource); }
[ "public T create(ApiClient apiClient, T resource, String namespace) throws HyscaleException;", "protected abstract Resource<V> createResource();", "public void createResource() {\n createBtn.click();\n loaderHelper.waitForLoader(60);\n notificationHelper.waitForNotification(NotificationType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns images directly under the current directory.
ArrayList<Image> getImages(Directory currentDirectory) { ArrayList<Image> images = new ArrayList<>(); for (Object obj : currentDirectory.getContents()) { if (obj instanceof Image) { images.add((Image) obj); } } return images; }
[ "List<String> listDirImages() throws IOException;", "private void locateImages() {\n // Locate all files in directory\n imageFilenames = locateFiles(dirImages);\n }", "@Override\n\tpublic String getImage() throws RemoteException {\n\t\tString absolutePath = \"\";\n\t\tString imageFile = \"/imag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Performs Dijkstra's routine on a weighted graph to determine the cheapest path from start vertex to a goal vertex. (See Lecture 19 for the algorithm.) Uses Java's PriorityQueue class to find the "unvisited vertex with smallest distance from start". See the API for PriorityQueue, and ask the course staff if you need hel...
public static List<String> dijkstrasShortestPath(Graph graph, String startName, String goalName) throws UnsupportedOperationException { // make sure the graph given is a supported type (positive weighted) if (!graph.getWeighted()) throw new UnsupportedOperationException("Graph needs to be we...
[ "private void findMinimumPath() {\n\t\tpath[source].setWeight(0);\n\t\tPriorityQueue<Graph> PQ = new PriorityQueue<Graph>(noOfVertices,pathCheck);\n\t\tPQ.add(path[source]);\n\t\twhile(!PQ.isEmpty()){\n\t\t\tGraph current = PQ.poll();\n\t\t\tLinkedList<String> li = current.getPath();\n\t\t\tint wt = current.getWeig...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method allows search to be initiated with enter key as well as button click
public void handle(KeyEvent keyEvent) { if (keyEvent.getCode() == KeyCode.ENTER) { btn1.fire(); searchBar.setText(""); } }
[ "public void performSearch(){\n searchField.sendKeys(Keys.ENTER);\n }", "@When(\"^I click on search button$\")\r\n\tpublic void iClickOnSearchButton() throws Throwable {\n\t\tdriver.findElement(By.name(\"q\")).sendKeys(Keys.ENTER);\r\n\t}", "@Override\n\t\t\tpublic boolean onKey(View v, int keyCode, K...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize the contents of the frame.
private void initialize() { frame = new JDialog(); frame.setTitle("\u4F5C\u8005\u4FE1\u606F"); frame.setBounds(100, 100, 562, 402); frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); JPanel panel = new JPanel(); panel.setBackground(Color.LIGHT_GRAY); frame.getContentPane().add(pan...
[ "public void initializeFrame();", "private void initialize() {\n\t\tsetFrame();\n\t\tsetheader();\n\t\tsetList();\n\t}", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public frame() {\n initComponents();\n read_init_config();\n }", "private void initialize() {\n\t\tinitData...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default: nothing changes to rowMeta
public void getFields( RowMetaInterface rowMeta, String origin, RowMetaInterface[] info, StepMeta nextStep, VariableSpace space, Repository repository, IMetaStore metaStore ) throws KettleStepException { }
[ "private RowMetaInterface getRowMeta() {\n\t\tRowMeta rowMeta = new RowMeta();\n\t\trowMeta.addValueMeta(new ValueMetaString(trsMeta.getReturnField()));\n\t\treturn rowMeta;\n\t}", "@Override\r\n\t\t\t\tpublic void haveTheMetaData(ResultSetMetaData metadata) {\n\t\t\t\t\t\r\n\t\t\t\t}", "private void addDefault...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ARPage__Group_0_1__1__Impl" $ANTLR start "rule__RGBColor__Group__0" ../pimar.editor.textual.xgcore.ui/srcgen/pimar/editor/textual/xgcore/ui/contentassist/antlr/internal/InternalXgcore.g:8924:1: rule__RGBColor__Group__0 : rule__RGBColor__Group__0__Impl rule__RGBColor__Group__1 ;
public final void rule__RGBColor__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../pimar.editor.textual.xgcore.ui/src-gen/pimar/editor/textual/xgcore/ui/contentassist/antlr/internal/InternalXgcore.g:8928:1: ( rule__RGBColor__Group__0_...
[ "public final void rule__ColourRGB__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalPageGeneratorLanguare.g:7743:1: ( rule__ColourRGB__Group__0__Impl rule__ColourRGB__Group__1 )\n // InternalPageGeneratorLanguare....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table sys_opadmin_def
public Criteria andTenantIdGreaterThanOrEqualToColumn(SysOpadminDef.Column column) { addCriterion(new StringBuilder("tenant_id >= ").append(column.getEscapedColumnName()).toString()); return (Criteria) this; }
[ "@Transient\n\t@Override\n\tpublic String getTableName() {\n\t\treturn \"查询定义器\";\n\t}", "public abstract String getColumnDefinition();", "@Override\n public void visitOperationDefinition(OperationDefinition opdef) {\n \n }", "public void setPk_defdoc(java.lang.String pk_defdoc) {\r\n this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setInitialConfig should set all spins in the lattice to the values given by a file in the Config directory.
public void setInitialConfig(int t,int run,String post);
[ "public void initConfig() {\n setGuiFromGlobal();\n lastSelectedIndex = 0;\n dirList.setListData(DirSync.getSync().getDirs());\n dirList.setSelectedIndex(-1);\n setGuiFromDir((Directory) DirSync.getSync().getDirs().get(0));\n\n outputArea.setText(\"\");\n currentConf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private int binarySearch(int[] obj, int look4, int start, int end) { int mid = (start + end)/2; if(obj[mid] == look4) return obj[mid]; if((end == mid) || (mid == start)) return -1; if(obj[mid] > look4) return binarySearch(obj, look4,start,mid); else return binarySearch(obj, look4, mid...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter accessor for attribute 'tenantName'.
public String getTenantName() { return tenantName; }
[ "public TenantName tenant() { return tenant; }", "public String tenantType() {\n return this.tenantType;\n }", "@ApiModelProperty(required = true, value = \"Tenant id for which this object belongs to\")\n\t@NotNull\n\n\t@Size(min = 4, max = 128)\n\tpublic String getTenantId() {\n\t\treturn tenantId;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
we don't want discussion thread XML descriptors to be dropped into Resources
public boolean processResourceChildren() { return false; }
[ "@Override\n public boolean reject(Thread thread) {\n final ThreadGroup threadGroup = thread.getThreadGroup();\n final String threadGroupName = (threadGroup == null ? null : threadGroup.getName());\n\n if (threadGroupName != null &&\n threadGroupName.endsWith(TupleStreamDataSetIteratorTes...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gibt die entsprechende Currency als Waehrung zurueck.
public static Waehrung of(CurrencyUnit currencyUnit) { if (currencyUnit instanceof Waehrung) { return (Waehrung) currencyUnit; } else { return of(currencyUnit.getCurrencyCode()); } }
[ "@Override\n public Currency getCurrency();", "@Override\r\n\tpublic String getCurrency() {\r\n\t\treturn (String)map.get(CURRENCY);\r\n\t}", "public String getCurrency() {\n\t\treturn Currency;\n\t}", "String currency() {\n return currency;\n }", "public int getBaseCurrencyValue() {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
size arrays to count
public void blobCount(int count) { int[] blobAmt = new int[count]; float[] blobSum = new float[count]; float[] blobAvg = new float[count]; int i,j; if (hasDepth && hasBlob) { int[] offset = new int[]{0,0}; int[] blobDim = blobMat.getDim(); int[] blobRow = new int[blobDim[0]]; float[] depthRow = n...
[ "short getNbShortArrays();", "int sizeOfResultArray();", "int sizeOfLumOffArray();", "int sizeOfContentArray();", "private static int getArrayLength(int size) {\n int arrayLength = (int) (OFFSET + (long) FACTOR_TIMES_100 * size / 100);\n return arrayLength - (arrayLength % HASHES);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The property is set only if a new value is provided. Upon every new value the internal representation of this property is changed. (e.g. editorComponent and rendererComponent are recreated)
@Override public void setValue(Object value, boolean propagate) { if (this.value != value) { // remember old and set the new value Object oldValue = this.value; this.value = value; // propagate the change to the sandox object to force sideeffect if...
[ "@Override\n public void setValue(Object newValue) {\n super.setValue(newValue);\n }", "@Override\n protected void notifyListeners(Instance<V> eventInstance) {\n this.property.setValueSilently(eventInstance.getNewValue());\n super.notifyListeners(eventInstance);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { String[] members = {"A", "B", "씨", "에프"}; /* * String[] members = new String[4]; members[0] = "A"; members[1] = "B"; * members[2]="씨"; members[3]="에프"; */ for (String e : members) { System.out.println("String : " + e); } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retorna todos los ejercicios cargados
public List<Exercise> getAllExercises();
[ "public ejemplosExcepciones()\n {\n /**\n listaEjemplo = new ArrayList<>();\n listaEjemplo.add(\"Aprende a programar\");\n listaEjemplo.add(\"es el futuro decian...\");\n listaEjemplo.add(\"¿Recuerdas los coches voladores del 5º elemento?\");\n listaEjemplo.add(\"Pues en...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the dati_37_2 of this form_di_segnalazione.
public void setDATI_37_2(String DATI_37_2);
[ "@Override\n public void setData() {\n try { \n k.setTanggalKwitansi(dfddmmyyyy.parse(jfmtTanggalKwitansi.getText())); \n } catch (ParseException ex) {} \n k.setNomorFaktur(f);\n }", "public void mo2186c(int i, int i2) {\n this.f1437e = i;\n this.f1438f ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method creates the View in the main app(the horizontal scroll)
private void setArrayView() { arrayView=new View[]{ back,chair1,chair2,chair3,chair4,chair5 }; }
[ "public MainView() {\n \tMainPresenter mainPresenter = new MainPresenter(this); //TODO: Darf/soll ich das?\n \tHorizontalLayout navigation = new HorizontalLayout(); \n \tnavigation.add(new Button(\"Entry\",\n event -> clickButton(\"Entry\"))); \n \tnavigation.add(new Button(\"Diary\", \n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column org_photos_images.width
public String getWidth() { return width; }
[ "@ApiModelProperty(value = \"Gets or sets image width. Setting this property allos to scal image horizontally.\")\n public Double getWidth() {\n return width;\n }", "public String getImageWidth();", "public String getWidth() {\n if (null != this.width) {\n return this.width;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the type byte for the tag.
public byte getId() { return (byte)2; }
[ "public Byte getTagType() {\r\n return tagType;\r\n }", "public int getType(int tag) {\n return (tag < 0 || tag >= types.length()) \n ? TYPE_UNDEFINED\n : (types.charAt(tag) & MASK_TYPE);\n }", "public byte getType() {\r\n\t\treturn type;\r\n\t}", "public byte getValue() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get current operations in progress.
public Stream<Operation> getCurrentOp() { Document document = mongo.currentOp(); Iterable<Document> documents = document.getList("inprog", Document.class); return mongoMapper.mapToStream(documents, Operation.class); }
[ "public double getCurrentProgress() {\n return currentProgress;\n }", "public int getCurrentProgress() {\n return this.musicService.getProgress();\n }", "int getOperationsCount() {\n return currentOperationsCount.get();\n }", "String getProgress();", "public double getProgress() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add an additional attribute to search against for simple searches
public void addSimpleAttributeQuery(QName qname) { this.simpleSearchAdditionalAttrs.add(qname); }
[ "interface StoreApiAttributeSearch {\n\n /**\n * This method will return the query query to be executed, for each search type\n * (i.e - tag, subcontext or general search)\n *\n * @param roleCount Number of roles to be passed to query\n * @param searchQuery a sub string containing only the at...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
There's at most one open project. This method returns the ArchEFacade object associated with that project.
public ArchEFacade getArchEFacade() { IProject project = getOpenProject(); ArchEFacade facade = null; if (project != null) { try { facade = (ArchEFacade) project.getSessionProperty(FACADE); if (facade == null) { // Probably it's lau...
[ "public Project getProject() {\n\t\tSystem.out.println(\"getProject() called\");\n\t\tprojectList = projectManager.getAll();\n\t\tSystem.out.println(projectList.size() + \" size\");\n\t\treturn project;\n\t}", "public static Project getInstance() {\n if (instance == null) {\n instance = new Proj...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensure that the BOFs and EOFs are searched for before the variable position byte sequences
private void reorderByteSequences() { for (int iSig = 0; iSig < this.getNumInternalSignatures(); iSig++) { InternalSignature sig = this.getInternalSignature(iSig); List<ByteSequence> BOFoffsetByteSequences = new ArrayList<ByteSequence>(); List<ByteSequence> EOFoffsetByteS...
[ "private void checkAndWrap()\n {\n \tif(first == buffer.length)\n \t\tfirst = 0;\n \tif(last == buffer.length)\n \t\tlast = 0;\n }", "protected boolean beginningOfBufferOrHistory() {\n/* 2899 */ if (findbol() != 0) {\n/* 2900 */ this.buf.cursor(0);\n/* 2901 */ return true;\n/* ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the bounds of the view including its decoration and margins.
public void getDecoratedBoundsWithMargins( View view, Rect outBounds) { getDecoratedBoundsWithMarginsInt(view, outBounds); }
[ "public Rectangle getBounds() {\n\t\t\treturn new Rectangle(mx, my, dia, dia);\r\n\t\t}", "public Rectangle getBounds() {\r\n\t\treturn getBounds(0,0);\r\n\t}", "public Rectangle getBounds() {\n return new Rectangle(x, y, 24, 22);\n }", "public Rectangle getBounds () {\n\tcheckWidget();\n\treturn ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
deprecated; instead use: AcUspsInternationalNoPayLineItemTools.TagComparator
public static JwComparator<AcUspsInternationalNoPayLineItem> getTagComparator() { return AcUspsInternationalNoPayLineItemTools.instance.getTagComparator(); }
[ "public WeblogEntryTagComparator() {\n }", "protected Comparator<String> getTagNameSortOrder()\r\n\t{\r\n\t\tint sortOrder = getPreferences().getInt(\r\n\t\t\tPrefKeys.SORTORDER_TAG, TagItemAdapter.getDefaultSortOrder());\r\n\t\tComparator<String> result = null;\r\n\r\n\t\tswitch(sortOrder)\r\n\t\t{\r\n\t\t\tc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine the class of the wrapped bean, resolving it from a specified class name if necessary. Will also reload a specified Class from its name when called with the bean class already resolved.
@Override public Class<?> resolveBeanClass(ClassLoader classLoader) throws ClassNotFoundException { String className = getBeanClassName(); if (className == null) { return null; } Class<?> resolvedClass = classLoader.loadClass(className); this.beanClass = re...
[ "public Object resolve(Class c, String name)\n throws Exception {\n // Attempt to resolve the class via name and type.\n for (Method m : beanResolvers) {\n final Object o = m.invoke(instance, c, name);\n\n if (o != null)\n return o;\n }\n\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string type = 3;
java.lang.String getType();
[ "public String getType(){\n String s = new String();\n s = \"Elf\";\n return s;\n }", "public void setType(String type)\n/* */ {\n/* 81 */ this.type = convert(type);\n/* */ }", "public static String get_type(int type) {\n String ret;\n if (type == 1) ret = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public void timeStampCheck() { try { getBaseActivity().runOnUpdateThread(new Runnable() { public void run() { URI url = null; try { url = new URI("http://www.tohofes.com/com/time.html"); } catch (URIS...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
void glGenBuffers ( int count, int[] outBuffer, int offset );
void glGenBuffers ( int count, IntBuffer outBuffer );
[ "public static native void glFlush(\n );", "void glFlush();", "public abstract void glFlush();", "private static void BuildBuffers(){\n\t\tVertBuffer = BufferUtils.createFloatBuffer(GetParticleCount()*2 * 9);\r\n NormBuffer = BufferUtils.createFloatBuffer(GetParticleCount()*2 * 9);\r\n Colour...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Makes sure that all the correct build/backup dirs are prepared for backup
private void prepareBuildsFolder(ExportSettings settings, MutableStatusHolder multiStatusHolder, File buildsFolder) { if (buildsFolder.exists()) { // Backup previous builds folder if incremental if (settings.isIncremental()) { File tempBuildBackupDir = new Fil...
[ "private void validateBDeployHome() {\n Path bdeployHomePath = rootDir.resolve(\"bdeploy.home\");\n if (bdeployHomePath.toFile().exists()) {\n validateBDeployHome(bdeployHomePath);\n } else if (!readOnlyRootDir) {\n saveBDeployHome(bdeployHomePath);\n }\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is a bit hacky, but Samsung's ListView has got a bug in it when using Header/Footer Views and the list is empty. This masks the issue so that it doesn't cause an FC. See Issue 66.
@Override public boolean dispatchTouchEvent(MotionEvent ev) { try { return super.dispatchTouchEvent(ev); } catch (IndexOutOfBoundsException e) { e.printStackTrace(); return false; } }
[ "@Override\n public int getCount()\n {\n return (m_list == null ? 0 : m_list.size());\n }", "public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {\n int count;\n int widthSize;\n super.onMeasure(widthMeasureSpec, heightMeasureSpec);\n int widthMode = View...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests APIObstetricsRecordController's createRecord and editRecord endpoints with an invaild record
@Test @WithMockUser ( username = "obgyn", roles = { "OBGYN" } ) public void testObstetricRecordCreateInvalidRecord () throws Exception { // First, initialize the patient final UserForm patientForm = new UserForm( "patient", "123456", Role.ROLE_PATIENT, 1 ); mvc.perform( post( "/api/...
[ "@When(\"^view an existing record$\")\n public void view_an_existing_record() throws Throwable {\n }", "@Override\n\tpublic void test01500Maint_Validate_ExistingRecord() throws Exception\n\t{\n\t}", "@Test\n\tpublic void testSaveCatchRecordValidation() {\n\t}", "@Test\r\n public void getRecordTest() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
selectQuizQuestions Selects a random number of questions from the questions database.
private void selectQuizQuestions() { QuizQuestionsSelector selector = new QuizQuestionsSelector(); m_selectedQuestionsData = selector.build(m_questionsDataDb); m_userChoicesData = new UserChoicesData(m_selectedQuestionsData); }
[ "@Override\n public List<Question> getRandomQuestion(int numberOfQuestion) throws Exception {\n Connection conn = null;\n PreparedStatement ps = null;\n ResultSet rs = null;\n List<Question> list = new ArrayList<Question>();\n\n try {\n String sql = \"SELECT TOP (?) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: 15/03/2018 start next activity
private void onRegistrationSuccess(Integer loggedInUserId){ Intent intent_viewProfile = new Intent(getApplicationContext(), ProfileActivity.class); intent_viewProfile.putExtra("profile", loggedInUserId); startActivity(intent_viewProfile); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public void cammina() {\n \n }", "public void mo28221a() {\n }", "@Ove...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .hadoop.yarn.ResourceProfileEntry resource_profiles_map = 1;
public org.apache.hadoop.yarn.proto.YarnProtos.ResourceProfileEntry getResourceProfilesMap(int index) { return resourceProfilesMap_.get(index); }
[ "public interface TTConfig extends MRConfig {\n // Task-tracker configuration properties\n public static final String TT_HTTP_ADDRESS = \n \"skewtune.tasktracker.http.address\";\n\n public static final String TT_HOST_NAME =\n org.apache.hadoop.mapreduce.server.tasktracker.TTConfig.TT_HOST_NAM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
event=Event LPAREN params+=Param (COMMA params+=Param) RPAREN KEY keyParams+=Param (COMMA keyParams+=Param) TIME timeParam=Param
public Group getGroup() { return cGroup; }
[ "String getEventexpr();", "java.lang.String getEvent2();", "public org.pentaho.pms.cwm.pentaho.meta.behavioral.EventParameter getEventParameter();", "@Override\n public void logVideoEvent(String eventName, TreeMap<String, String> params) {\n super.logVideoEvent(eventName, params);\n }", "java.l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Try to get result of Promise
public static Object tryGetResult(@Nullable Promise promise) { if (promise != null) { return promise.result(); } return null; }
[ "T getPromise();", "native public <TResult> PromiseLike<TResult> then();", "public void testGet() {\n Promise<String> toTest=new Promise<>();\n try {\n String x = toTest.get();\n Assert.fail();\n }\n catch (IllegalStateException ex) {\n\n }\n catch (Ex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets (as xml) the "defaultAlias" element
void xsetDefaultAlias(org.apache.xmlbeans.XmlString defaultAlias);
[ "void xsetDefaultDn(org.apache.xmlbeans.XmlString defaultDn);", "public void setAlias(String label);", "IPin setAlias(String alias);", "@Override\n\tpublic void setAlias(String alias) {\n\n\t}", "public void setAliases_alias(ItemI v) throws Exception{\n\t\t_Aliases_alias =null;\n\t\ttry{\n\t\t\tif (v instan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the int id. The id should be >0 and unique among all instances of this class in a given plan.
void setID( int id ) { if ( id <= 0 ) throw new IllegalArgumentException( "id must be > 0" ); this.id = id; }
[ "@Override\n public void setId(long id) {\n _planPositions.setId(id);\n }", "void setId(int id) {\n\t\t\n\t\tthis.id = id;\n\t}", "public void setId(final int id)\r\n {\r\n this.id = id;\r\n }", "public void setId(int id) {\r\n\t\tthis.Id = id;\r\n\t}", "void setId(int id) {\n /...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The map style options of the filled map visual.
public FilledMapConfiguration withMapStyleOptions(GeospatialMapStyleOptions mapStyleOptions) { setMapStyleOptions(mapStyleOptions); return this; }
[ "public MapView() {\n\t\tthis.getAllStyles().setBorder(Border.createLineBorder(2, ColorUtil.MAGENTA));\n\t}", "private void initDrawStyles() {\n\t\tDefaultDrawStyle style = new DefaultDrawStyle();\r\n\t\tstyle.setMarkerColor(Color.BLACK);\r\n\t\tstyle.setMarkerFillColor(Color.RED);\r\n\t\tstyle.setMarkerSize(3);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
1 Rhos are too much different not similar
private static boolean linesHasCloseAbsoluteParameters(LineParameters l1, LineParameters l2, double rhoTolerance, double thetaTolerance) { if (Math.abs(l1.getRho() - l2.getRho()) > rhoTolerance) return false; // 2 - Thetas are close, they are similar return Math.abs(l1.getTheta() - l2.getTheta(...
[ "int prioritas4_Utes() {\r\n \r\n // ha dupla\r\n if (kocka1 == kocka2) {\r\n for (int i=1; i<25; i++) {\r\n if (poz[i].szin.equals(aiColor)) {\r\n int m = poz[i].szam;\r\n if (lepes <= 2) {\r\n if (utniTudok...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .hadoop.yarn.StringStringMapProto environment = 4;
public Builder addEnvironment(org.apache.hadoop.yarn.proto.YarnProtos.StringStringMapProto value) { if (environmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEnvironmentIsMutable(); environment_.add(value); onC...
[ "public interface TTConfig extends MRConfig {\n // Task-tracker configuration properties\n public static final String TT_HTTP_ADDRESS = \n \"skewtune.tasktracker.http.address\";\n\n public static final String TT_HOST_NAME =\n org.apache.hadoop.mapreduce.server.tasktracker.TTConfig.TT_HOST_NAM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Start the game in multiplayer mode: Set the playerstate to starting, set the game mode to running, and save the current time as the game start time.
public void startGame() { gameListManager.setMyPlayerReady(PlayerState.starting); multiplayer = true; //hide menue setMode(MODE_RUNNING); //set game start time gameStartTime = System.currentTimeMillis(); timeSpentInGame = 0; }
[ "@Override\n public void startGame() {\n players.get(0).goPlay();\n stateManager.start();\n }", "void startGame(boolean multiplayer) {\n\n }", "public void startGame() {\n playState = PlayState.PLAYING;\n }", "private void startGame() {\n\t\tGameEngine ge = GameEngine.instance...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
memanggil service dengan endPoint /riskProfile/validasiSkenarioKeuntungan
@RequestMapping("/riskProfile/validasiSkenarioKeuntungan") @PostMapping public ExtensionResult riskProfilea_validasiSkenarioKeuntungan(@RequestBody ExtensionRequest extensionRequest) { return svcService.riskProfile_validasiSkenarioKeuntungan(extensionRequest); }
[ "void validateGranule()throws BmapException;", "@RequestMapping(\"/validasi\")\r\n public String formValidasi(HttpSession session){\n Credit credit = (Credit) session.getAttribute(\"creditData\");\r\n //AMBIL DULU DARI FORM, ASSIGN KE BEAN, DARI BEAN BARU MASUK KE MODEL CREDIT\r\n \r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read the dataSet and construct the dataSet object. if the cleanObjectId is true, then the read objectId should be cleaned before used, and the unclean value should be saved for further computation. The timing for every process is be logged in the given timings object.
public DataSet readDirectoryFiles(String directory, boolean cleanObjectId, ValueType objectIdValueType, DataSetTimingMeasures timings, char delim) { try { timings.startDataSetReadingTime(); DirectoryStream<Path> directoryStream = Files.newDirectoryStream(Paths.get(directory)); for (Path readFilePath : d...
[ "public void readDFile(String taskInformation,String path,String taskId) throws IOException {\n\n File file = new File(path);\n String early_deviceId = null;\n BufferedReader br = new BufferedReader(new FileReader(file));//构造一个BufferedReader类来读取文件\n String s = null;\n StringBuffer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string method = 3;
boolean hasMethod();
[ "@SerializedName(\"method\")\n public abstract Optional<String> getMethod();", "public String method() { return method; }", "public abstract String getReqMethod();", "public void method();", "Set method_29();", "public void setMethod(int meth) {\n this.method = meth;\n }", "public void meth...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); cSharp = new java.awt.Canvas(); gSharp = new java.awt.Canvas(); fSharp = new java.awt.Canv...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Design & Developed by Kuldeep Sahu.
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.activity_error_one); }
[ "@Override\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required uint32 x = 2;
public Builder setX(int value) { bitField0_ |= 0x00000001; x_ = value; onChanged(); return this; }
[ "public final int x() { return x; }", "public int intValueExact() { throw new RuntimeException(\"Stub!\"); }", "abstract T constant( int v );", "void g(){\n int a = x;\n int b = y;\n assert( b >= a);\n\n }", "int getVint32();", "int getVSfixed32();", "@Cast(\"unsigned int\")\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts the given list of collective records into a json array.
public static JSONArray collectiveRecordsToJSONArray(List<CollectiveRecord> collectiveRecords){ JSONArray jsonArray = new JSONArray(); for (int index = 0; index < collectiveRecords.size(); index++){ CollectiveRecord collectiveRecord = collectiveRecords.get(index); JSONObject jsonObject = collectiveRecor...
[ "public JSONArray convertToSelectList(List<Customer> list){\n //declare varibles\n JSONArray array=new JSONArray();\n \n \n Iterator<Customer> iterator = list.iterator();\n \n while (iterator.hasNext()) {//loop list\n Customer customer = iterator.next();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Drop all the tables used by JDBCAndesContextStoreImpl
private void dropTables() throws Exception { String[] queries = { "DROP TABLE durable_subscriptions;", "DROP TABLE node_info;", "DROP TABLE exchanges", "DROP TABLE queue_info", "DROP TABLE bindings", "DROP TABLE " + ...
[ "public void dropAllTables(){\n\t\ttry{\n\t\t\tConnection connection = DriverManager.getConnection(connectionString);\n\t\t\tStatement s = connection.createStatement();\n\t\t\ts.executeUpdate(\"drop table if exists parent\");\n\t\t\ts.executeUpdate(\"drop table if exists recipeingredients\");\n\t\t\ts.executeUpdate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ PRE POST FALSE: lijst is leeg of current wijst het laatste object aan TRUE: currentPOST wijst de opvolger van currentPRE aan
boolean getPrior ();
[ "public boolean isPostRequest() {\n\t\treturn postRequest;\n\t}", "@Override\n\tpublic boolean savePost() {\n\t\treturn false;\n\t}", "public boolean alwaysUsePost() {\n return true;\n }", "@Override\r\n\tprotected boolean afterPost() {\n\t\treturn false;\r\n\t}", "public boolean isSetRaw_post() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes a StringBuilder instance to a file.
private static void writeStringBuilderToFile(StringBuilder str, String fileName) throws ShapeSpecificationsException { try (FileWriter writer = new FileWriter(fileName, false)) { writer.append(str); } catch (IOException ex) { throw new ShapeSpecificationsException("Cannot write i...
[ "public static void toFile(String fileName,StringBuilder sbText) throws Exception {\n OutputStream outputStream = new FileOutputStream(fileName,true);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(outputStream);\n bufferedOutputStream.write(sbText.toString().getBytes())...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if this note is has time.
@Override public boolean isHasTime() { return _note.isHasTime(); }
[ "public boolean hasTime() {\n return fieldSetFlags()[9];\n }", "boolean hasFormedTime();", "boolean hasEntryTime();", "public boolean hasTime() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public boolean hasTime() {\n return ((bitField0_ & 0x00000010) == 0x...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unique command based on the opened active tab. Based on highlighted line, removes all lines that are copies except for its first occurrence.
void unique(TabFile file);
[ "public void deleteSelection() {\n String firstLine = this.buffer.getLine(this.selection.getStart().getLineNumber()).toString();\n String lastLine = this.buffer.getLine(this.selection.getEnd().getLineNumber()).toString();\n\n TextPos selStartIx = this.selection.getStart().getColumnNumber();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ArrayList a = new ArrayList(); a.add("A");a.add("E");a.add("I");a.add("O");a.add("U"); ArrayList b = new ArrayList(); b.add("B");b.add("C");b.add("L");b.add("W");b.add("Z"); System.out.println(merge1(a,b));
public static void main(String[] args){ ArrayList L = new ArrayList(); for(int i=0;i<12;i++){ L.add(new String( new char[] {(char) ((int) (97 + 26 * Math.random()))} )); } System.out.println(L); L = mergeSort(L); System.out.println(L); L = new ArrayList(); L.add(2);L.add(6);L.add(0)...
[ "public static ArrayList<String> merge(ArrayList<String> a, ArrayList<String> b) {\n\t\tint newSize = a.size() + b.size();\n\t\tArrayList<String> result = new ArrayList<String>();\n\n\t\tint positionA = 0; \n\t\tint positionB = 0;\n\t\tint positionResult = 0; \n\n\t\tString thisA = \"\";\n\t\tString thisB = \"\";\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the hint on the TextInputLayout if this view is a child of a TextInputLayout, otherwise sets the hint on this android.widget.EditText.
public void setFieldHint(String hint) { if (getTextInputLayoutParent() != null) { getTextInputLayoutParent().setHint(hint); } else { setHint(hint); } }
[ "public static void setMandatoryField(EditText editText) {\n try {\n TextInputLayout textInputLayout = null;\n if (editText.getParent() instanceof TextInputLayout)\n textInputLayout = (TextInputLayout) editText.getParent();\n else if (editText.getParent().getPa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the getter method this will return the attribute value. Http cookie name for authenticated session. Field introduced in 18.2.3. Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition. Default value when not specified in API or module is interpreted by Avi Control...
public String getCookieName() { return cookieName; }
[ "public static String getSessionValue() {\n\t\treturn Cookies.getCookie(\"JSESSIONID\");\n\t}", "public String getCookieName() throws AuthenticationException;", "public String getSSOCookieName() {\n\t\tif (ssoCookieName.equals(\"\")) {\n\t\t\tssoCookieName = OpenAMUtil.getCookieName(openAMURL);\t\t\t\n\t\t\tif ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setContinentList sets the continent list
public void setContinentList(ArrayList<TerritoryZone> countrylist) { this.countrylist = countrylist; }
[ "public ArrayList<Continent> getContinentList() {\n\t\treturn continentsList;\n\t}", "public void setContinent(Continent c) {\n\t\tcontinent = c;\n\t}", "public Builder setContinents(List<Continent> continents) {\r\n this.continents = continents;\r\n return this;\r\n }", "public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'App ver' attribute. If the meaning of the 'App ver' attribute isn't clear, there really should be more of a description here...
String getApp_ver();
[ "public String getAppVersion()\r\n\t{\r\n\t\treturn appVersion;\r\n\t}", "public byte[] getAppVersion()\r\n\t{\r\n\t\treturn appVersion;\r\n\t}", "public @AAFString String getApplicationVersionString();", "public int getAppVersion() {\n return appVersion_;\n }", "public String getAppVersion() {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will initialize before the screen loads up by adding an image and populating a combobox
@FXML void initialize() { javafx.scene.image.Image i = new javafx.scene.image.Image("file:resources/qublogo.png"); Image.setImage(i); ApplicationMethods.Years(Year); }
[ "@FXML\n private void initialize() {\n\n comboBox.setItems(comboBoxData);\n this.fileChooser = new FileChooser();\n this.changedimage = new Mat();\n this.image = new Mat();\n this.planes = new ArrayList<>();\n this.mainFilters();\n\n }", "private void init_window(Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional fixed64 hcontent = 4;
public Builder setHcontent(long value) { bitField0_ |= 0x00000008; hcontent_ = value; onChanged(); return this; }
[ "@Override\n public long fbeSize() { return 4; }", "void mo44797b(C16696h c16696h);", "int getHdrValue();", "@Override\r\n\tpublic int get_h() {\n\t\treturn super.get_h();\r\n\t}", "public long getFileHcontent() {\n return fileHcontent_;\n }", "@Override\n int getElementSize()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column bulletin_notice_singlesource.purchaseprojcode
public String getPurchaseprojcode() { return purchaseprojcode; }
[ "public String getProjectCode()\n {\n return projectCode;\n }", "private String getCodeFromDB() {\n //TODO\n String code = \"\";\n\n return code;\n }", "Project getProjectByCode(String code);", "@Transient\r\n public String getPrimarySponsorCode() {\r\n Organizat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method send the current status of the student to the server
public static boolean submit_current_status(StudentAnswer ans) { Object ob = askServer(Request.SUBMIT_CURRENT_STATUS, regNo,ans); if(ob==null) return false; boolean flag = (boolean) askServer(Request.SUBMIT_CURRENT_STATUS, regNo,ans); return flag; }
[ "@Override\n\t\t\tpublic void onStatus(Status s) {\n\t\t\t\tif(!s.getUser().getLang().equals(\"en\"))\treturn;\n\t\t\t\tSystem.out.println(\"Status is entered\");\n\t\t\t\tbyte[] tweet = s.toString().getBytes();\n\t\t\t\ttry {\n\t\t\t\t\tfsOutStream.write(tweet);\n\t\t\t\t\tfsOutStream.write(\"\\n\".getBytes());\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: team.
Team getTeam();
[ "@DynamoDBHashKey(attributeName = \"Team\")\n int getTeam() {\n return m_team;\n }", "@java.lang.Override\n public int getTeam() {\n return team_;\n }", "public int getTeam() {\n\t\treturn this.myTeam;\n\t}", "public String getTeam() {\n\treturn team;\n }", "public char getT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
process incoming DECLINE as timout for outgoing calling
private void processIncomingTimeout() { stopRingBack(); EventBus.getDefault().post(new CallingTimeOutEvent(currentCustomSipEvent.toString())); Logg.ing("processIncomingTimeout"); }
[ "private void handleSendTimeout() {\n\t\tlocalTrafficServiceStub.startUnicast(source, destination, payload);\n\t\tsentMessages++;\n\t\tif (sentMessages < messageCount) {\n\t\t\tglobalOperatingSystem.setTimeout(new ServiceTimeout(pauseDelta) {\n\t\t\t\tpublic void handle() {\n\t\t\t\t\thandleSendTimeout();\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
restituisce in valore della mano
public int getValore() { return valore; }
[ "private void updateValoracio() {\n\t\t\n\t}", "public void fazOracao(){\n\t\tdouble novoValor = getValorPropinaRecebida();\n\t\tnovoValor = novoValor - 100;\n\t\t//System.out.println(\"Eu\" + novoValor); para fim de testes do metodo\n\t}", "private void poeValorFlores() {\n int iCount = 1;\n for(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test maximum steps stop criterion with short check period.
@Test public void testMaxStepsWithShortPeriod() { System.out.format(" - test single run (check period = %d ms)\n", CHECK_PERIOD_TIME_UNIT.toMillis(SHORT_CHECK_PERIOD)); System.out.println(" >>> max: " + MAX_STEPS + " steps"); // add stop criterion to search search...
[ "private void actionRunUntilTimeLimit()\n\t{\n\t\tboolean result;\n\t\tdouble endTime = 0.0;\n\t\tboolean inputOK = true;\n\n\t\t// Reading the number is a potentially dangerous operation.\n\t\ttry\n\t\t{\n\t\t\tendTime = Double.parseDouble(fieldUntil.getText());\n\t\t}\n\t\tcatch (NumberFormatException e)\n\t\t{\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
initializes the feasible solution list using the Least Cost Rule it differs from the NorthWest Corner rule by the order of candidate cells which is determined by the corresponding cost
public double leastCostRule() { long start = System.nanoTime(); double min; int k = 0; //feasible solutions counter //isSet is responsible for annotating cells that have been allocated boolean[][] isSet = new boolean[stockSize][requiredSize]; for (int j = 0; j <...
[ "public void constructiveShortDistanceSolution(){\n for(Task s : allSchedules){\n if(s.getTaskID() == 0) //omit 0 task (all 0)\n continue;\n \n //initialize theses three variables, and run all technicians and store the best one\n bestTechID ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Task 2: a. The first class must find the position of an athlete in the name array. This class has one parameter (name) to find an athlete by the name and to return the position of athlete found in the array, using a sequential access algorithm. If the information cannot be not found, return 1.
public static void position_by_name(String name){ String cap = name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase(); if (Objects.equals(cap, aName.get(0))) { System.out.println("["+cap+"]" + "'s position in the array is " + 0); } else if (Objects.equals(cap, aName.get...
[ "abstract public int findName(String name);", "public Integer positionfinder(String theName, String platforma)\r\n\t{\r\n\t\tfor (Enoikiasi e: prosenoik)\r\n\t\t{\r\n\t\t\tif (e.getTitlos().equals(theName)) {\r\n\t\t\t\tif (e.getPlatforma().equals(platforma)) {\r\n\t\t\t\t\treturn prosenoik.indexOf(e);\r\n\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method allow to update the content text of an editor. Works on normal textarea if the EditArea is toggled off.
private static native void _setValue(String id, String value)/*-{ $wnd.editAreaLoader.setValue(id, value); }-*/;
[ "public void update()\n\t{\n\t\t{\n\t\t\tSet<Component> text_area_components = new HashSet<Component>();\n\t\t\t\n\t\t\tif(text_area == null)// FIXME: Why does this happen? InvokeLater?\n\t\t\t\treturn;\n\t\t\t\n\t\t\tfor(Component c : text_area.getComponents())\n\t\t\t\ttext_area_components.add(c);\n\t\t\t\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }