query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
endregion region Getting Multi Choice Candidate Results
private List<MultiChoiceAnswerDTO> getAllMultiChoiceAnswers(Candidate candidate) { List<MultiChoiceAnswerDTO> candidateMultiChoiceAnswers = new ArrayList<>(); List<CandidateMultiTask> candidateMultiTasks = candidate.getCandidateMultiTasks(); for (CandidateMultiTask multiTask : candidateMultiTas...
[ "public static boolean ask_mult_choice(String question, String modality, String op1, String op2){\n\t\tSystem.out.println(\"%%%%%% IN MULT CHOICE %%%%%%%\");\n\t\t//Increment the questions asked by 1 every time this method is called\n\t\tquestionCount++;\n\t\t//questions_per_label++;\n\t\tif(question.equals(\"Are a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates a menu for the menubar
public Menu createMenu1() { Menu m = new Menu("Program 3"); //gives a general description about the program MenuItem mi = new MenuItem("About"); m.getItems().add(mi); mi.setOnAction(e -> { System.out.println("Menu Item 1 Selected"); Alert ...
[ "private void createMenu()\r\n\t{\r\n\t\tJMenuBar menu = new JMenuBar();\r\n\t\tmainFrame.setJMenuBar(menu);\r\n\t\t\r\n\t\tJMenuItem about = new JMenuItem(\"About\");\r\n\t\tabout.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\r\n\t\t\t{\r\n\t\t\t\tnew GUIAbo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to verify Pratiche in Riesame heading link click.
public void testRiesameLink() { boolean isClickable = false; waitForElementPresence(driver, byRiesameLink, 10); WebElement riesameLink = getElement(driver, byRiesameLink); WebElement riesameCount = riesameLink.findElement(bySpanItemCount); System.out.println("Riesame Count : " + riesameCount.getText()); if...
[ "@Test(priority=3)\n\tpublic void verifyinnovationChallengeLink( )\n\t{\n\t\tBoolean verifyinnovationChallengeLinkClicked=mainPageObj.clickInnovativeChallengeLink();\n\t\texLog2=exReport.createTest(\"Verify user innovation Challenge link is clicked\", \"Automation\");\n\t\tif (verifyinnovationChallengeLinkClicked)\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a byte array which represents Values data.
public void writeValuesData(DataOutputStream dos, ObjectOutputStream oos) { try { writeInteger(this.product_key, dos, oos); writeDate(this.etl_date, dos, oos); } catch (IOException e) { throw new RuntimeException(e); } }
[ "byte [] getValue();", "public byte[] toByteArray() {\n return this.type.fromObject(this.value);\n }", "public byte[] getBytes()\n\t{\n\t\tbyte[] bytes = NlfUtils.stringToUtf8(value);\n\t\tbyte[] buffer = new byte[SIZE_SIZE + bytes.length];\n\t\tbuffer[0] = (byte)bytes.length;\n\t\tSystem.arraycopy(by...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Copyright (c) Microsoft Corporation. All rights reserved. Encapsulates behavior of a partner billing profile.
public interface IPartnerBillingProfileOperations extends IPartnerComponentString, IEntityGetOperations<PartnerBillingProfile>, IEntityUpdateOperations<PartnerBillingProfile> { }
[ "public interface CurrentBankProfile {\n\n /**\n * Bank protocol ID.\n */\n Long getId();\n\n /**\n * ASPSP API endpoint URL for this protocol.\n */\n String getUrl();\n\n /**\n * The ID of ASPSP API adapter to use (if defined).\n */\n String getAdapterId();\n\n /**\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This returns the label text for the adapted class.
@Override public String getText(Object object) { CompositionAssociation assoc = (CompositionAssociation) object; String value = assoc.getName() + ": "; PortType end1 = assoc.getEnd1(); PortType end2 = assoc.getEnd2(); if(end1 == null || end1.eIsProxy()) { value += "?"; } else { FragmentRo...
[ "String getTextLabel();", "public String getText(){\n return mLabel;\n }", "@Override\n public String getLabel();", "@Override\n\tpublic String getTextLabel() {\n\t\treturn textLabel;\n\t}", "public String getLabel(){\n if(label==null){\n return \"\";\n }\n return label;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Vehicle v=new Vehicle (); will not work cuz you cnnot instantiate the abstract parent class.
public static void main(String[] args) { Car car1=new Car(); car1.accelerate(60); car1.stop(); car1.start(); int cp=car1.getCurrentSpeed(); System.out.println("Driving at "+cp+ " mph..."); car1.stop(); }
[ "public Vehicles() {\n }", "public AutoVehicle() {\n this(new Engine());\n\n }", "public Vehicle() {\n reserved = 0;\n }", "@Test\n public void testVehicleInstantiation() {\n Vehicle vehicle = new Vehicle(POSITION, Direction.N);\n assertEquals(POSITION, vehicle.getPosit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
illegal number of arguments
@Test public void testMapCommand_InvalidArgs() { assertEquals(MapCommandHandler.mapCommand("map hi data/pathfinding/smallMaps.sqlite3", "repl"), "ERROR: Invalid no.of arguments passed for map"); assertEquals(MapCommandHandler.mapCommand("map", "repl"), "ERROR: Invalid no.of arguments passed f...
[ "@Override\r\n public void checkNumArgs() throws InvalidArgumentSizeException {\n\r\n }", "public WrongNumberOfArgumentsException(){\n \tsuper(\"ERROR: Wrong number of arguments given!\");\n }", "private boolean illegalArgs(int size, String[] args) {\n if (args.length != size) {\n this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Receive the raw byte data from the GetObservation request
public byte[] receiveData(HttpGet httpGet) throws IOException { CloseableHttpResponse response = null; CloseableHttpClient httpclient = HttpClients.createDefault(); byte[] data = null; try { response = httpclient.execute(httpGet); HttpEntity entity = response.getEntity(); InputStream inStream = entity....
[ "public byte[] getResponseBytes();", "byte[] getRawContent();", "public InputStream getObservationStream(GetObservationParams params) throws KeyManagementException, NoSuchAlgorithmException, IOException, SOSInternalException {\r\n\t\t// observationRequest = observationRequest.replaceAll(\"\\\\n\", \"\");\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Serialize an object to the given OutputStream as prettyprinted XML. The OutputStream will be flushed afterwards and in case of an exception.
public void toXML(Object obj, OutputStream out) { HierarchicalStreamWriter writer = hierarchicalStreamDriver.createWriter(out); try { marshal(obj, writer); } finally { writer.flush(); } }
[ "public static void marshal(final Object object, final OutputStream output) throws JAXBException {\n ensureNonNull(\"object\", object);\n ensureNonNull(\"output\", output);\n final MarshallerPool pool = getPool();\n final Marshaller marshaller = pool.acquireMarshaller();\n marshal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int64 delivery_date = 5;
long getDeliveryDate();
[ "com.google.protobuf.Int64Value getEstablishmentDate();", "long getDateLong();", "public int getDeliveryTime();", "long getReqDate();", "long getDate(UUID id);", "public Timestamp message_delivery_time ()\n\n {\n Date date= new Date();\n long time = date.getTime();\n\n Timest...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
// Internal method for firing the pre caster texture shadows event
public void fireShadowTexturesPreCaster(com.earthview.world.graphic.Light light, com.earthview.world.graphic.Camera camera, long iteration) { super.fireShadowTexturesPreCaster_NoVirtual(light, camera, iteration); }
[ "private void initShadow() {\n shadow = new Image(game.assets.get(\"gameplayShade.png\", Texture.class));\n shadow.setSize(game.HEIGHT * .75f, game.HEIGHT);\n shadow.setPosition( 0 - (game.HEIGHT * .75f - game.WIDTH) * .5f , 0);\n shadow.setColor(1f, 1f, 1f, .5f);\n stage.addActor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
0. All. 1. Point Only. 2. Line Only . 3. Circle Only. 4. P and L 5. P and C . 6. L and C.
public void SmartmoveCatch(double x, double y, int type) { CatchList.clear(); CatchType = 0; SelectAllFromXY(CatchList, x, y, 1); int n = CatchList.size(); if (n > 0) { isPointOnObject = true; if (n == 1) { CClass c = (CClass) CatchL...
[ "public void showPtAsCircle(myPoint P, double r, int fclr, int sclr);", "public void showPtAsCircle(myPointf P, float r, int[] fclr, int[] sclr);", "IfcCircle createIfcCircle();", "public boolean isCircle() {\n return this.getName().equals(\"Circle\");\n }", "@Override\n \tpublic void renderPointO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void onConfigUpdate(Object config) { }
[ "@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" ] ] } }
TODO Autogenerated method stub
@Override public void aadharCard() { }
[ "@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" ] ] } }
TODO: inflate a fragment view
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = super.onCreateView(inflater, container, savedInstanceState); unbinder = ButterKnife.bind(this, rootView); return rootView; }
[ "@Override\n\tprotected View initView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.fragment_fate, container, false);\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add(new FileReader("test2.wav", Short.TYPE)); // add(new ShortPrinter()); add(new ShortToFloat());
public void init() { add(new StepSource(100)); add(new IntToFloat()); add(new Delay(DFT_LENGTH_NOM)); // add(new Delay(DFT_LENGTH*2)); add(new Vocoder()); add(new InvDelay((DFT_LENGTH -2) * m_LENGTH / n_LENGTH)); // add(new InvDelay(DFT_LENGTH * m_LENGTH / n_LENGTH)); /** add(...
[ "short convertShort(FileDatabase db){\n\t\tif (name == \"float\") {\n//\t\t\tdest = static_cast<short>(db.reader->GetF4() * 32767.f);\n//\t\t\t//db.reader->IncPtr(-4);\n//\t\t\treturn;\n\t\t\treturn (short) (db.reader.getF4() * 32767.f);\n\t\t}\n\t\telse if (name == \"double\") {\n//\t\t\tdest = static_cast<short>(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Template Query constructor for a non nested template query. For a non nested query (i.e. last node in the link), it does not have any nested query
public TemplateDruidQuery(Collection<Aggregation> aggregations, Collection<PostAggregation> postAggregations) { this( aggregations, postAggregations, null, (ZonelessTimeGrain) null, Collections.emptySet(), null ...
[ "private Query<T> createQuery() {\n if (query == null) {\n query = (Query<T>) queryEngine.buildQuery(queryFactory, parsingResult, namedParameters, startOffset, maxResults, local);\n if (timeout > 0) {\n query.timeout(timeout, TimeUnit.NANOSECONDS);\n }\n if (hitCountA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method retrieve Name
public String getFirstName() { return firstName; }
[ "public String getName() { return name.get(); }", "public String getName(){\r\n return this.name.get();\r\n }", "public String GetName()\r\n\t\t{\r\n\t\t\treturn name;\r\n\t\t}", "public String getName() {\n //System.out.println(name);\n return name;\n }", "public String getName()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of variables declaration//GENEND:variables
public Node getNode() { return node; }
[ "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\tprotected void initVariable() {\n\t\n\t}", "public void mo17751g() {\n }", "public void mo1857d() {\n }", "public static void Q22()\r\n\t{\r\n\t}", "public void mo28221a() {\n }", "public void mo3914b() {\n }", "protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the complete SHA string representation of the nodeId.
public String asFull() { return toString(SHA_SIZE); }
[ "public final String toHexString() {\r\n\t\treturn this.toHexString(this.id.length);\r\n\t}", "String getNodeUuid();", "public String myHash() throws NoSuchAlgorithmException {\n MessageDigest sha1 = MessageDigest.getInstance(\"SHA-1\");\n byte[] sha1Hash = sha1.digest(this.id.getBytes());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
adds the instrument to the orbit
public boolean addInstrumentToOrbit(int instrumentIndex, int orbIndex) { boolean out = !assignment.isConnected(instrumentIndex, orbIndex); assignment.connect(instrumentIndex, orbIndex); return out; }
[ "public void addInstrument(){\n // Add a new instrement by calling all needed constructors\n // to instantiate a new instuement object of the selected type\n \n Instrument CurrentInstrument = new Instrument();\n getInstrumentList().add(CurrentInstrument);\n \n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read the Authorization header, where the JWT token should be
@Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain chain) throws IOException, ServletException { String header = request.getHeader("Authorization"); // If header does not contain BEARER or is null delegate to Spring impl and exit ...
[ "String getAuthHeader();", "private String getJwt(HttpServletRequest request) {\n String authorizationHeader = request.getHeader(AUTHORIZATION_HEADER);\n\n if (authorizationHeader != null && authorizationHeader.toUpperCase()\n .startsWith(AUTHORIZATION_HEADER_PREFIX)) {\n return authorizationHea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a collection of identification group ids
public Collection<Comparable> getProteinAmbiguityGroupIds();
[ "public List<Integer> getGroupIds() { return new ArrayList<Integer>(this.ids); }", "Collection<String> getAllIds();", "String[] getAllIds();", "public Set<String> getGroupIds() {\n return groupIds;\n }", "ImmutableList<Integer> getConnectedGroupIDs();", "List<String> getGroupIds(DocumentModel conte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an AdvertiseSettings object set to use low power (to help preserve battery life) and disable the builtin timeout since this code uses its own timeout runnable.
private AdvertiseSettings buildAdvertiseSettings() { AdvertiseSettings.Builder settingsBuilder = new AdvertiseSettings.Builder(); settingsBuilder.setAdvertiseMode(AdvertiseSettings.ADVERTISE_MODE_LOW_POWER); settingsBuilder.setTimeout(0); return settingsBuilder.build(); }
[ "private void enableKiller() {\r\n mTimeout = new Handler();\r\n mTimeout.postDelayed(new Runnable() {\r\n public void run() {\r\n if (Log.LOGV) Log.v(\"*********** Alarm killer triggered *************\");\r\n /* don't allow snooze */\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses the command line arguments.
void parseCommandLineArguments(String[] args) { this.setSentenceDelimiters(AverageSentenceLength.DEFAULT_SENTENCE_DELIMITERS); this.setWordLengthThreshold(AverageSentenceLength.DEFAULT_WORD_LENGTH_THRESHOLD); // If there are no arguments or an incompatible number of arguments then // terminate. if (args == ...
[ "private static void parseArguments(String[] args) {\n\t\tif (args.length < 1) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor (String arg : args) {\t\n\t\t\tswitch (arg) {\n\t\t\t\tcase Constants.VERBOSE:\n\t\t\t\t\tverbose = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Constants.VERBOSE_DAILY_BALANCE:\n\t\t\t\t\tdailyVerbose = t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "RULE_IDENT" $ANTLR start "RULE_COMMENT"
public final void mRULE_COMMENT() throws RecognitionException { try { int _type = RULE_COMMENT; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalMASL.g:8699:14: ( '//' (~ ( ( '\\n' | '\\r' ) ) )* ( '\\r' )? '\\n' ) // InternalMASL.g:8699:16: '//' (~ ( ( '\\n' | '\...
[ "public final void mRULE_COMMENTS() throws RecognitionException {\n try {\n int _type = RULE_COMMENTS;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalRobotDSL.g:2040:15: ( '#' ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' | ' ' | '!' | '*' | '&' | '^' | '%' | '$' | '@' |...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new canvas of specified size, and sets default pen settings.
public TurtleLines(double width, double height) { super(width, height); myLineCanvas = new Canvas(myWidth, myHeight); myLineGraphics = myLineCanvas.getGraphicsContext2D(); myLineGraphics.setStroke(DEFAULT_LINE_COLOR); myLineGraphics.setLineWidth(DEFAULT_STROKE_SIZE); isPe...
[ "public void penSize( int penSize ) {\n instructionBuffer.add(new PenSizeCommand(this, penSize));\n }", "public void setCanvasSize() {\r\n canvas_size canvsz = new canvas_size(this, true);\r\n canvsz.setLocation((int) this.getLocation().getX() + 100, (int) this.getLocation().getY() + 100);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Swaps two colors on an image.
default BufferedImage swapColor(final @NonNull BufferedImage image, final Color oldColor, final Color newColor) { final BufferedImage result = ImageCache.cloneImage(image); if (oldColor == null || newColor == null) { return result; } final int newRGB = newColor.getRGB(); ...
[ "private void swapBackground() {\n\t\tif(cm_red[0] == 0) { //background is black\n\t\t\tcm_red[0] = cm_green[0] = cm_blue[0] = (byte) 255;\n\t\t\tpuke_red[0] = puke_green[0] = puke_blue[0] = (byte) 255;\n\t\t} else {//background is white\n\t\t\tcm_red[0] = cm_green[0] = cm_blue[0] = 0;\n\t\t\tpuke_red[0] = puke_gre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 eresult = 1 [default = 2];
public boolean hasEresult() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "int getResultNum();", "public int getResultValue() {\n return result_;\n }", "int getSrval();", "public int getRet() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int getResult(int x) {\n\t\treturn 0;\n\t}", "long getValue111();", "long getValue031();", "long getResult();", "long getValue011();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the category of this data location.
public abstract String getCategory();
[ "public String getLocationCategory() {\n return locationCategory;\n }", "public String getCategory() {\n\t\treturn this.getString(\"category\");\n\t}", "public String getCategory(){\n if (this.category == null){\n return null;\n } else {\n return this.category.name(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Click Sign In button
public void SignInButtonClicking() { SignInButton.click(); }
[ "public void clickSignIn(){\n\t\t\n\t\tsignIn.click();\n\t}", "public void clicksignIn() {\n\t\tthis.signIn.click();\n\t}", "public void clickSignInButton(){\r\n\t\t\r\n\t\tsignInButton.click();\r\n\t}", "@And(\"^Click on the Sign In button$\")\n public void clickOnTheSignInButton() {\n new SignIn(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When a tab is unselected, we have to hide it from the user's view.
public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) { ft.remove(fragment); }
[ "@Override\n\t\t\tpublic void onTabUnselected(Tab arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onTabUnselected(TabLayout.Tab arg0) {\n\n }", "@Override\n public void onTabUnselected(TabLayout.Tab tab) {\n if (tab.getPosition() == 0) {\n sectionsPagerAd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the x coordinate of the center of the rectangle.
@Override public final double getCenterX() { return (xmin + xmax) * 0.5; }
[ "public static int centerX (Rectangle rectangle) {\r\n return rectangle.x + rectangle.width / 2;\r\n }", "public int getCenterX()\n\t{\n\t\treturn this.x;\n\t}", "public double getCenterX(){\n\t\treturn this.center.getX();\n\t}", "public float getCenterX() {\n return getX() + getWidth() / 2;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to update and render the background.
public void updateRender(final float delta, final SpriteBatch batch) { y1 -= Config.BACKGROUND_SCROLL_SPEED * delta; y2 -= Config.BACKGROUND_SCROLL_SPEED * delta; if (y1 + image.getHeight() * imageScale <= INITIAL_Y) { y1 = y2 + image.getHeight() * imageScale; } if (...
[ "public void updateBackground();", "@Override\r\n\tpublic void update() {\n\t\tbg.update();\r\n\t}", "public void background() {\n\t\t\r\n\t}", "public void drawBackground() {\n\t\tRunnable runnable = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tdouble rr = AfterDriveActivity.previous...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Decodes your encoded data to tree.
public TreeNode deserialize(String data) { if(data == ""){ return null; } String[] dataList = data.substring(1, data.length() - 1).split(","); TreeNode root = new TreeNode(Integer.parseInt(dataList[0])); Queue<TreeNode> queue = new LinkedList<>...
[ "public TreeNode deserialize(String data) {\r\n return null;\r\n }", "private void decode() {\n\t\t\n\t\tHuffNode huffNode = huffTree.root; // assigns root of tree to a variable\n\n\t\t// iterates through encoded message\n\t\tfor (int i = 0; i < encodedMessage.length(); i++) {\n\t\t\t\n\t\t\t// loops un...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
tamanho da tela do dispositivo
@SuppressWarnings({ "deprecation", "rawtypes" }) public void swipe(double inicio, double fim) { Dimension size = getDriver().manage().window().getSize(); int y = size.height / 2; int inicio_x = (int) (size.width * inicio); int fim_x = (int) (size.width * fim); new TouchAction(getDriver()) .press(...
[ "public static int getTamanho() {\n return tamanho;\n }", "Integer conocerTamañoDelSistemaDeUsuarios();", "public int getTamanhoRegistro() {\n\t\t// 4 matricula + 34 nome + 31 setor + 8 salario + 4 classe\n\t\t// matricula int = 4 bytes\n\t\t// nome String = 34 caracteres = 1 caracter ocupada 2 bytes ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a recipe to this registry, which takes input items and produces an output item
public void registerRecipe(CraftExecutor exec);
[ "@ZenCodeType.Method\n\tpublic void addRecipe(String recipePath, MCTag fluidInput, IIngredientWithAmount[] inputItems, int energy, Fluid output, int amount)\n\t{\n\t\tfinal ResourceLocation resourceLocation = new ResourceLocation(\"crafttweaker\", recipePath);\n\n\t\tfinal FluidTagInput fluidTagInput = CrTIngredien...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 34: / 35:
public BigDecimal getDocumento() /* 36: */ { /* 37: 54 */ return this.documento; /* 38: */ }
[ "public int d()\r\n/* 58: */ {\r\n/* 59: 90 */ return this.s;\r\n/* 60: */ }", "public void testQuestion4() {\r\n\t\tassertEquals(\"Distance of route A-E-B-C-D\", 22, search.findRouteDistance(\"A-E-B-C-D\"));\r\n\t}", "public short mo34e() {\n return 35;\n }", "public void mo26342c(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column account_model.modify_date
public void setModifyDate(LocalDateTime modifyDate) { this.modifyDate = modifyDate; }
[ "public void setModifyDate(Date modifyDate) {\r\n\t\tthis.modifyDate = modifyDate;\r\n\t}", "public Date getModifyDatetime() {\r\n\t\treturn modifyDatetime;\r\n\t}", "public void setModifydatetime(Date modifydatetime) {\n this.modifydatetime = modifydatetime;\n }", "public void setUserModifydate(Dat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Doc: Method called to ensure that we have a nonblueprint object to use; it is either this object (if stateless), or a newly created object with separate state.
@Override public DefaultPrettyPrinter createInstance() { return this; }
[ "protected OneBoxDomainObject() {\n super();\n this.obj$state = VState.makeNew(this, OBJ_STATE_SLOT_NAME, false);\n this.obj$state.put(this, OBJ_STATE_SLOT_NAME, make$newState());\n this.isNewObject = true;\n create$allLists();\n }", "private NewState() {\n\n\t\t}", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
serialize and write a float to a specified output stream
public static boolean writeFloat(float f, OutputStream out) throws IOException { if(out == null) { return false; } byte[] data = serializeFloat(f); out.write(data, 0, data.length); return true; }
[ "public void writeFloat(float f) {\n if (output == null) {\n println(\"Open the binary output stream before using any write functions\");\n return;\n }\n try {\n output.writeFloat(f);\n } catch(IOException e) {\n println(\"Unable to write a flo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sort by stargazersCount desc
public int compareTo(Repo repo) { return (int) (repo.stargazersCount - this.stargazersCount); }
[ "public static void sortByNumberOfStudents() {\n\t\tallCourses.sortByNumberOfStudents();\r\n\t}", "public void sortListStats(){\n Collections.sort(listStatsCharacters,new Comparator<JSONObject>() {\n @Override\n public int compare(JSONObject first, JSONObject second) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve an attribute's value.
Object getAttribute(String attr);
[ "public Attribute getValue() {\n return value;\n }", "private static String getAttributeValue(Attribute attribute) {\n String attributeValue = null;\n if (attribute.getAttributeValues().size() > 0) {\n attributeValue = attribute.getAttributeValues().get(0).getDOM().getTextConten...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a single rpc result of type Void honoring all partial rpc results.
public static <D> Function<List<RpcResult<D>>, RpcResult<Void>> createRpcResultCondenser( final String previousItemAction) { return input -> { final RpcResultBuilder<Void> resultSink; if (input != null) { List<RpcError> errors = new ArrayList<>(); ...
[ "@Override\n\t\tpublic void processResult(Void result) {\n\t\t\t\n\t\t}", "@Override\r\n\tprotected void setRawResult(Void arg0) {\n\t\t\r\n\t}", "Response noop() throws XmlRpcException;", "void noResult();", "@Override\r\n public void addResult(RPCInfo<PingResponse> rpcInfo)\r\n {\n \r\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the count of immediate children of the given entry UUID.
long getChildCount( PartitionTxn partitionTxn, String id ) throws LdapException;
[ "@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\n @VTID(20)\n int childrenCount();", "public int getChildCount(Object parent) throws RemoteException, Exception;", "public int\n readChildCount() {\n return accessorHelper((node, opts) -> node.m_nChildren);\n }", "Integer numberO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the '_2330DNM101EntityIdentifierCode' field.
public void set2330DNM101EntityIdentifierCode$1(java.lang.CharSequence value) { this._2330DNM101EntityIdentifierCode = value; }
[ "public void setIdcode(String idcode) {\r\n this.idcode = idcode == null ? null : idcode.trim();\r\n }", "public void setIdCode(int id) {\n\t\tidCode = id;\n\t}", "public void SetCode(long code) {\n\t\tthis.code = code;\n\t}", "protected void setCode(int code) { this.code = code; }", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XMemberFeatureCall__Group_1_1_0_0__0" $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl" ../org.yakindu.sct.generator.genmodel.ui/srcgen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6211:1: rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl : ( () ) ;
public final void rule__XMemberFeatureCall__Group_1_1_0_0__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:6215...
[ "public final void rule__XMemberFeatureCall__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:6139:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) )\n // InternalScripting.g:6140:1: ( (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method checks that if the cell (x,y) where we are going to place the next queen is under attack or not. Returns true if the cell is underattack and false if not.
static boolean underAttack(int x, int y) { // First check the row of the cell, if there is // any queen return true for(int i=0; i<l; i++) { if(board[x][i] == 1) return true; } // Check if there is a queen in that column, if // yes return true ...
[ "public boolean notAttacked(int row, int col) {\n\n // Check for attacks from top left\n for (int i = 0; row - i >= 0 && col - i >= 0; i++) {\n if (board[row-i][col-i] == 1) {\n // System.out.println(\"FROM TOP LEFT\");\n return false;\n }\n\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Select one launch configuration. If zero launch configuration are specified, the method return null. If one launch configuration is specified, it returns this one. If multiple launch configurations are specified, it asks the user to select one.
protected ILaunchConfiguration selectLaunchConfiguration(final ILaunchConfiguration[] existingLaunchConfigurations) { if ((existingLaunchConfigurations == null) || (existingLaunchConfigurations.length == 0)) { return null; } if (existingLaunchConfigurations.length...
[ "protected ILaunchConfiguration chooseConfiguration(List configList, String mode) {\n IDebugModelPresentation labelProvider = DebugUITools.newDebugModelPresentation();\n ElementListSelectionDialog dialog = new ElementListSelectionDialog(getShell(), labelProvider);\n dialog.setElements(con...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if we have write permission
public static void verifyStoragePermissions(Activity activity) { int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.WRITE_EXTERNAL_STORAGE); if (permission != PackageManager.PERMISSION_GRANTED) { // We don't have permission so prompt the user Activ...
[ "private boolean hasWritePermission()\r\n\t{\r\n\t\treturn security.hasPermission(permissions.USERS, PermissionLevels.WRITE);\r\n\t}", "private boolean hasWriteAllPermission()\r\n\t{\r\n\t\treturn security.hasPermission(permissions.USERS_ALL, PermissionLevels.WRITE);\r\n\t}", "public boolean checkWritePermissio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the bitset that represents the instruments that are assigned within the architecture at least once
private BitSet getUniqueInstruments() { BitSet bs = assignment.getBitSet(); BitSet inst = new BitSet(assignment.getNumberOfLHS()); for (int i = 0; i < assignment.getNumberOfLHS(); i++) { BitSet inst_i = bs.get(i * assignment.getNumberOfRHS(), i * assignment.getNumberOfRHS() + assignm...
[ "public long getSetBits() {\r\n long result = 0;\r\n for (int i = 0; i < 12; i++) {\r\n result |= piece_bb[i];\r\n }\r\n return result;\r\n }", "BitSet getSystemBits()\n {\n return _systemBits;\n }", "protected BitSet createBitmapBitSet() { // Modified by Lekan Omotayo\r\n BitSet b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to reverse the order of words in a string (sentence)
private static String reversedString(String str) { String[] stringArray = str.split(" "); // Create the string array splitting by space String revString = ""; // Initial reversed string for (int i = stringArray.length - 1; i >=0; i--) { // Create new string in the reverse order ...
[ "public String reverseWords(String s);", "public static String reverseSentence(String sentence) {\n\t\tString[] words = sentence.split(\"\\\\s\");\r\n\t\tint wordsLength = words.length;\r\n\t\tString sentenceReversed = \"\";\r\n\t\tfor (int index = 0; index < wordsLength; index++) {\r\n\t\t\tsentenceReversed += r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public View getView(int position, View convertView, ViewGroup parent) { View grid; grid = new View(context); if (convertView == null) { LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); grid = inf...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of the beforerun tasks optional int64 end_before_run_tasks_timestamp_ms = 13;
public long getEndBeforeRunTasksTimestampMs() { return endBeforeRunTasksTimestampMs_; }
[ "Timestamp getLastRun(TaskId task);", "@Override\n \tprotected void endOfRun() {\n \n \t}", "protected void end() {\n runTime.stop();\n System.out.println(runTime.get());\n runTime.reset();\n \n intake.stopIntake();\n }", "public void setEXEC_END_TIME(Date EXEC_END_TIME) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if both album list and track list are empty.
public boolean getIsCartEmpty() { return (albums.size() + tracks.size()) == 0; }
[ "@Test\r\n public void testGetAlbumsEmpty()\r\n {\r\n assertTrue(\"Got albums\", info.getAlbums().isEmpty());\r\n }", "public boolean isEmpty() {\n return shots.size() == 0;\n }", "public static boolean verifierSiListePlein(Album[] listeAlbums){\r\n \r\n int longListe = list...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a proxy that is identical to this proxy, but uses batch oneway invocations.
@Override default ClientCallbackPrx ice_batchOneway() { return (ClientCallbackPrx)_ice_batchOneway(); }
[ "protected T createProxy() {\r\n\t\tfinal String name = this.getTargetBeanName();\r\n\t\tfinal T target = (T)this.getBeanFactory().getBean(name);\r\n\t\treturn this.createProxy0(target);\r\n\t}", "public static UrlProxy getInstance() {\n\t\t\treturn new UrlProxy();\n\t\t}", "abstract protected T createProxy0(T ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
. recuperation de owner
protected AppUser getOwner() { return owner; }
[ "private Owner() {\n\t\t}", "public Object getOwner() {\n/* 466 */ return this.owner;\n/* */ }", "public void setOwner(String owner) { this.owner = owner; }", "@Override\r\n\tpublic void cuddlesWithOwner() {\n\r\n\t}", "public void setOwner(String owner)\r\n {\r\n this.owner = ow...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the common name of a plant
public String getCommonName() { return commonName; }
[ "String getBasePVName();", "public String getName()\n {\n return \"P\"+getpId();\n }", "@Override\n public String generateDisplayName() {\n String result = \"\";\n //add the crust name\n if(specialInstructions.contains(\"thin\")){\n result+= \"(Thin\" + crust.getD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a reference to the TrainCar at the node currently referenced by the cursor. Preconditions The list is not empty (cursor is not null)
public TrainCar getCursorData(){ return cursor.getCar(); }
[ "public TrainCar getCursorData() {\n return cursor.getCar();\n\n }", "public void insertBeforeCursor(Car newCar){ //V\n\t\tif(newCar == null){\n\t\t\tthrow new IllegalArgumentException(\"Try again with proper argument.\");\n\t\t}\n\t\tCarListNode ncarNode =\n\t\t\t\tnew CarListNode (newCar);\n\t\t\t\tif...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notify listeners of a pick event.
void notifyPicked(Geometry pickedGeom, Point position);
[ "private void notifySelectedSpawnpoint(PowerupTile powerupTile){\n SpawnpointChoiceEvent e = new SpawnpointChoiceEvent(powerupTile.getColor(), this);\n listeners.forEach(playerListener -> playerListener.onSpawnpointChosen(e));\n }", "public abstract void notifySelected();", "public void notify(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_wat_doet_ordina, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
public static List<Emoji> m90255b(List<Emoji> list) { if (list.size() > 80) { return list.subList(0, 80); } return list; }
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds remote file path.
public void addRemoteFilePaths(String remoteFilePaths) { this.remoteFilePaths = remoteFilePaths; }
[ "public void addRemote (String name, String path) {\n if (_remote.containsKey(name)) {\n throw new GitletException(\"A remote with that name already exists.\");\n }\n File remote = new File(path);\n _remote.put(name, remote);\n this.toFile(_gitlet, \"repository\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to extract the Calculated Buyer Group Code from the temporary table.
public List<Object[]> extractAllByrGrpFrmTempTbl() { String extractAllByrGrpFrmTempTblStr = B000020QueryConstants.extractAllByrGrpFrmTempTbl .toString(); Query extractAllByrGrpFrmTempTblQry = entityMngr .createNativeQuery(extractAllByrGrpFrmTempTblStr); extractAllByrGrpFrmTempTblQry.setParameter(PDCo...
[ "public static String getObligationGroupCode(final String billerID,\n final String obligationGroupID) {\n final String query = String\n .format(\n \"SELECT ExternalCode FROM %s WHERE BillerID= ? AND ObligationGroupID= ?\",\n PAYMPLAN_OBLIGATIONS_GROUPS);\n final DBTable tbl =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column Inst_Remain.Dosage
public String getDosage() { return dosage; }
[ "public Integer getDia() { return this.dia; }", "public String getDificultad()\r\n {\r\n return dificultad;\r\n }", "public int getDado(){\n\t\t\tint Output=0;\n\t\t\tDados D = new Dados();\n\t\t\tswitch(this){\n\t\t\t\tcase BOLA_FOGO: Output = D.rolarD4() + D.rolarD4() + D.rolarD4(); break;\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set time when using screen session is ended
public void setClosingSessionTime(String closingSessionTime) { m_lastView.setSessionEnd(closingSessionTime); this.m_EndTime = closingSessionTime; }
[ "public void onEndScreen() {\r\n }", "protected static void endSession() {\n getInstance().mIsStarted = false;\n getInstance().mHasIdentity = false;\n }", "void startPlayScreenSaver() {\r\n if (gameSatet.equals(\"Idle\")) {\r\n\r\n if (startPlayScreenSaver != null) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}", "public String getServletInfo()\r\n {\r\n\treturn \"Short description\";\r\n }", "@Override\n public String getServletInfo() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Goal of this test is check crash absence, because native interface will not work from java layer. It will works only for cocos2dx or unity3d
public void disabledTestActivity() throws Exception { Activity activity = getActivity(); assertNotNull(activity); }
[ "@Override\r\n\tpublic boolean causesCrash() {\r\n\t\treturn true;\r\n\t}", "private native boolean checkDevJNI();", "private static boolean a() {\n /*\n r5 = 3;\n r0 = 0;\n r1 = new byte[r5];\n testLibraryUsable(r1);\t Catch:{ UnsatisfiedLinkError -> 0x001d }\n r2 = 3;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
do nothing, might just not have a good connection...
@Override public void fail(String error) { }
[ "@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\t\r\n\t}", "@Override\n public void doConnect() {\n //NO-OP \n }", "@Override\r\n\tpublic void connectionLost(Throwable arg0) {\n\r\n\t}", "@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\r\n\t}", "@Override\n\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.kedacom.ops.flink.etl.proto.DssNetAddr RcvAddr = 3;
public com.kedacom.ops.flink.etl.proto.Dssevstruct.DssNetAddr getRcvAddr() { if (rcvAddrBuilder_ == null) { return rcvAddr_; } else { return rcvAddrBuilder_.getMessage(); } }
[ "public ds.hdfs.SOMETHING.IPOrBuilder getAddressOrBuilder(\n int index) {\n if (addressBuilder_ == null) {\n return address_.get(index); } else {\n return addressBuilder_.getMessageOrBuilder(index);\n }\n }", "java.util.List<? extends ds.hdfs.SOMETHING.IPOrBuilder> \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table item
public Criteria andTemplateIdGreaterThanColumn(Item.Column column) { addCriterion(new StringBuilder("template_id > ").append(column.getEscapedColumnName()).toString()); return (Criteria) this; }
[ "@Override\n\tpublic void CreateFromSQL() {\n\n\t}", "public interface UserInfoMapperBase {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table user\n *\n * @param example UserInfoExample\n *\n * @return the value of int\n *\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Introduced in the context of fixing bug 7843 The getter is required for formal reasons. It's not necessary to pass back a component, also it's not possible to pass back the component passed into the setter, because the bean has request scope (all private members would be clears the time the getter is called)
public UIInput getGenericInput() { return null; }
[ "public Method getSetter() {\n\n return setter;\n }", "public SettableBeanProperty constructSetterlessProperty(DeserializationContext deserializationContext, BeanDescription beanDescription, BeanPropertyDefinition beanPropertyDefinition) throws JsonMappingException {\n AnnotatedMethod getter = be...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This registers objects that are going to be sent over the network.
static public void register (EndPoint endPoint) { Kryo kryo = endPoint.getKryo(); kryo.register(Login.class); kryo.register(RegistrationRequired.class); kryo.register(Register.class); kryo.register(AddCharacter.class); kryo.register(UpdateCharacter.class); kryo.re...
[ "protected void registerObjects (Kryo kryo) {\r\n kryo.register(BuildRequest.class);\r\n kryo.register(BuildResponse.class);\r\n kryo.register(GetServerStateRequest.class);\r\n kryo.register(GetServerStateResponse.class);\r\n kryo.register(SellRequest.class);\r\n kryo.regis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the sub id of this scraper (for dedicated storage)
protected abstract String getSubId();
[ "java.lang.String getCrawlID();", "public long getSubId() {\n return subId_;\n }", "public String getSubId() {\n return (subid);\n }", "public long getWebId();", "String getMainElementId();", "public static String getTrxId(String subId) {\n String subIdWithoutHyphens = subId.repla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the index of the item specified by the name
public int indexOf(Object name) { return pop.lb.indexOf(name); }
[ "private int searchItemIndex(String name) {\n return items.getIndex(name);\n }", "public int indexOf(String name)\n {\n\tfor (int i = 0; i < size(); i++)\n\t if (name.compareTo((String) get(i)) == 0)\n\t\treturn i;\n\n\treturn -1;\n }", "public int FindByName(String _name)\n\t{\n\t\tint res =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / /
public ArrayList<Extension> getRequiredExtensions() /* */ { /* 77 */ return this.requiredExtensions; /* */ }
[ "private void calculatePaths() {\n\n\n }", "public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Represents the Treasure using its name
public String toString() { return String.format("%s", this.name); }
[ "public Treasure(String name, int value){\n this.treasureName = name;\n this.treasureValue = value;\n }", "public String toString(){\n return \"The \" + this.treasureName + \" is worth \" + this.treasureValue + \" gold pieces.\";\n }", "private AssetContainerType(String name) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
public final String mo16288b() { if (TextUtils.isEmpty(this.f664a)) { mo16289c(); } StringBuilder sb = new StringBuilder("Getting streaming apikey: "); sb.append(this.f664a); C1685cy.m754a(3, "APIKeyProvider", sb.toString()); return this.f664a; }
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the custom milk bucket class.
public CustomMilkBucketItem(Settings settings) { super(settings); }
[ "public Bucket() {\n /* Set up the bucket up at its start coordinate */\n super(imgPath, INITIAL_COORD);\n\n /* set the initial velocity. Negative as we initially go left */\n setVelocity(new Vector2(-VELOCITY_MAGNITUDE,0));\n /* Buckets is always on screen */\n isOnScreen ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override void dibujar() { }
[ "@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" ] ] } }
Get the count of the thirdparty rest resources present in the WWW
String getThirdPartyRestResource();
[ "int getClientURLsCount();", "public int getResourceCount() {\n return resource_.size();\n }", "int getPeerURLsCount();", "public int countResources(IPath root, int depth, final boolean phantom) {\n \tif (!tree.includes(root))\n \t\treturn 0;\n \tswitch (depth) {\n \t\tcase IResource.DEPTH_ZERO:\n \t\t\tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This rejects the entire insertion if it would make the contents too long. Another option would be to truncate the inserted string so the contents would be exactly maxCharacters in length.
public void insertString(FilterBypass fb, int offs, String str, AttributeSet a) throws BadLocationException { if ((fb.getDocument().getLength() + str.length()) <= maxCharacters) { super.insertString(fb, offs, str, a); } else { Toolkit.getDefaultToolkit().beep(); } }
[ "public void insertString(int offs, String str, AttributeSet a) throws BadLocationException\r\n {\n if (MaxLengthTextField.this.getText().length() >= MaxCharacters)\r\n {\r\n return;\r\n }\r\n super.insertString(offs, str, a);\r\n\r\n }", "@Override\n\t public void insertString...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated for supporting the association named AssemblingAct2Worker. It will be deleted/edited when the association is deleted/edited. / WARNING: THIS METHOD WILL BE REGENERATED.
public void secondaryRemoveAssemblingAct(com.hps.july.persistence.AssemblingAct anAssemblingAct) { this.getAssemblingActLink().secondaryRemoveElement(anAssemblingAct); }
[ "public void complete(I_EncodeBusinessProcess process, I_Work worker) throws TaskFailedException {\n // Nothing to do\n }", "IBoard placeWorker(IBoard board);", "protected void addWorker(Worker w) {\n\t\tif (!mWorkForce.contains(w)){\n\t\t\tmWorkForce.add(w);\n\t\t\tw.setBoss(this);\n\t\t\tw.startWork...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
setter for shipping address
public void setAddress(String paddress) { address=paddress; }
[ "Address shippingAddress();", "public void setAddress(String value)\r\n {\r\n address.setValue(value);\r\n }", "public void setAddress(Address address){\r\n this.address=address;\r\n }", "public void setAddress(String value) {\n\t\t\n\t}", "private void setAddress(\n String val...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void beforeSave(_Object obj) { }
[ "@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" ] ] } }
Checks if the column has free space.
public boolean columnHasFreeSpace(int col) { return isLegalBoard(color[0] | (1L << height[col])) && isLegalBoard(color[1] | (1L << height[col])); }
[ "public boolean hasSpace() {\n\n\t\treturn size() < capacity; \n\t}", "public boolean hasSpace() {\n\t\treturn contents.size() < capacity;\n\t}", "@Override\n public boolean isFreeSpaceOnBoard() {\n return occupiedFields != board.getBoardEdge() * board.getBoardEdge();\n }", "public boolean isFreeSpace()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .modelProto.Device device = 1;
public Builder setDevice( int index, net.pacificsoft.microservices.loka.app.modelProto.LokaAppProto.Device value) { if (deviceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDeviceIsMutable(); device_.set(index, val...
[ "public interface DeviceProto$DeviceOrBuilder extends MessageLiteOrBuilder {\n String getAdvertisingId();\n\n ByteString getAdvertisingIdBytes();\n\n String getAppBundle();\n\n ByteString getAppBundleBytes();\n\n String getAppFlavor();\n\n ByteString getAppFlavorBytes();\n\n String getAppVersio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Uses the predatorAttackCropCheck() to remove multiple healthy crops.
@Test public void predatorAttackCropTestShouldRemoveTwoCrops() { when(random.nextDouble()).thenReturn(1.0).thenReturn(1.0).thenReturn(1.0).thenReturn(0.0); gameLoop.predatorAttackCropCheck(); assertEquals(easyGameState.getNumHealthyCrops(), 23); }
[ "public void harvestCrops(int cropIndex) {\n\t\tArrayList<Crop> crops = farm.getCrops();\n\t\tCrop crop = crops.get(cropIndex);\n\t\tdouble income = crop.getSalePrice(); \n\t\tcrops.remove(crop); // Remove the crop from the farm\n\n\t\tfarm.changeMoney(income); // Add the money to the farm\n\t\tgameInfo.changeNumAc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get member's campaigns based on campaign type mode
@GET @Path("getmembercampaign") @Produces("application/json") CampaignViews getUserCampaigns(@QueryParam("memberid") Long accountId, @QueryParam("campaigntypemode") Long campaignTypeMode);
[ "@Override\n\tpublic PagedListDto<CampaignDto> getCampaigns(CampaignType type, CampaignStatus status) throws RestCommandException {\n\t\treturn null;\n\t}", "@Test\n public void getCampaignsTest() throws ApiException {\n String nameCont = null;\n String teamEq = null;\n String statusEq = n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
an Alert (TEC alert for example) may be sent. However, the implementations can ignore this alert request if the implementation's own config saying disabling the alert
boolean sendAlert(String source, String msg, AlertStrength strength);
[ "abstract void slaEnableAlert(HttpServletRequest request, HttpServletResponse response) throws XServletException,\n IOException;", "public void sendAlert(ITestResult result) { sendAlert(result, false); }", "@Override\n\tpublic void setAlert(boolean alert) {\n\t\tthis.setEmailSent(alert);\n\t}", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the newInstance of this packing class, but if has no default construction, it will return null
public T getNewInstance() { if (hasDefaultConstructorMethod()) { return this.constructMethods[defaultConstructorMethod].newInstance(); } else { try { throw new ReflectionException("ClassObject", "getNewInstance()", "has no default construction"); } cat...
[ "public V newInstance() {\r\n\t\treturn NullaryClassFactory.getNewInstance(mClass);\r\n\t}", "@Override\n public CMObject newInstance() {\n try {\n return getClass().newInstance();\n } catch (final Exception e) {\n return new DefaultClanGovernment();\n }\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
retorna o centro da coluna
public Point2D.Double getCentro() { return centro; }
[ "public Ponto3D centro() {\n\t\treturn null;\r\n\t}", "public Punto getCentro() {\r\n\t\treturn centro;\r\n\t}", "public static int getCENTERX() {\n return CENTERX;\n }", "public int centerX() { return x + width/2; }", "public void calculateCentre(){\r\n\t\tCoordinate upperLeft= new Coordinate(coo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loops through graph and sets all nodes to the value returned from op.
public void forEachNode(GraphNodeOperator<T> op);
[ "public void resetGraph() {\n\n\t}", "long visit( long nodeId, int type, long next, long out, long in, long loop );", "private void processNodeForSet(CalculationObject operatorOrFunction,\n\t\t\tDefaultMutableTreeNode parentNode) {\n\t\tif (operatorOrFunction instanceof MultiOperator) {\n\t\t\tMultiOperator mo ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used by velocity template
public int violationPercentage(double blocker, double critical, double major, double minor, double info, double evaluatedValue) { double max = blocker; if (critical > max) { max = critical; } if (major > max) { max = major; } ...
[ "public static void main( String[] args )\n throws Exception\n {\n\n VelocityEngine ve = new VelocityEngine();\n ve.init();\n \n Template t1 = ve.getTemplate( \"templates/classgenerator.vm\" );\n \n VelocityContext context = new VelocityContext();\n\n conte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verify Save button is disabled
public void verifySaveButtonIsDisabled() { Assert.assertFalse(addSubPopup_SaveBTN.isEnabled()); reportInfo(); }
[ "public void verifyEditSubjectSaveButtonIsDisabled() {\n\t\tAssert.assertFalse(saveBTN.isEnabled());\n\t\treportInfo();\n\t}", "public void verifyObserverSaveButtonIsDisabledAndCancelEnable() {\n\t\tAssert.assertFalse(reportedOutComePopUpSaveBTN.isEnabled());\n\t\tAssert.assertTrue(reportedOutComePopUpCancelBTN.i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO optionPane for height, width, scale
private void newImg() { image = new SimpleImage(10, 10, 50, 50, 50); saved = image.copy(); file = null; scale = image.getScale(); zoom = image.getScale(); zoomLabelUpdate(); history.clear(); redo.clear(); undoBtn.setEnabled(false); redoBtn.setEnabled(false); setTitle("Image Maker - Untitled"); ...
[ "private void createOptionsWindow() {\r\n\t\t\r\n\t\toptionsWindow = new Window(\"options\", skin, \"frame1\");\r\n\t\toptionsWindow.setSize( stage.getWidth() *.8f, stage.getHeight()*.6f );\r\n\t\tfloat windowWidth = optionsWindow.getWidth(), windowHeigth = optionsWindow.getHeight(), topPadding = (windowHeigth/100)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the Status is success
private Map<String, String> checkStatus() throws Exception { Map<String, String> status = Utils.getStatus(document); if (status.containsKey("code") && !status.get("code").equals(SAMLConstants.STATUS_SUCCESS)) { String statusExceptionMsg = "The status code of the Response was not Success, was...
[ "public boolean isSuccess() {\n return \"Success\".equals(status);\n }", "boolean hasIsSuccessfull();", "boolean hasSuccessful();", "public static boolean isSuccess(int status) {\n return (status == STS_NO_ERROR);\n }", "public synchronized boolean isSuccessful()\n {\n return s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the Manifest Measure Jacobian of the Forward Rate to the given date
public org.drip.numerical.differentiation.WengertJacobian jackDForwardDManifestMeasure ( final java.lang.String strManifestMeasure, final org.drip.analytics.date.JulianDate dt) { if (null == dt) return null; return jackDForwardDManifestMeasure (strManifestMeasure, dt.julian()); }
[ "public M256Date getDate()\n {\n return date;\n }", "private void magnitudeUpdate(Date date) {\n }", "private static float[] getMonthData(LocalDate theDate){\n\t\t\n\t\tLocalDate dayObject;\n\t\tString dayString;\n\t\tDataEntry currentDay;\n\t\tfloat [] monthValues = new float[6];\n\t\tfloat current...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Integer Variable Assignment Execute Property'. This implementation returns null; returning a nonnull result will terminate the switch.
public T1 caseIntegerVariableAssignmentExecuteProperty(IntegerVariableAssignmentExecuteProperty object) { return null; }
[ "private Object doProperty( boolean toLHS,\n\t\tObject obj, CallStack callstack, Interpreter interpreter ) \n\t\tthrows EvalError\n\t{\n\t\tif(obj == Primitive.VOID)\n\t\t\tthrow new EvalError( \n\t\t\t\"Attempt to access property on undefined variable or class name\", \n\t\t\t\tthis, callstack );\n\n\t\tif ( obj i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }