query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
TODO Autogenerated method stub | @Override
public Graphics<BpmnElement> transfer(Graphics<BpmnElement> graphics) {
allId = graphics.getIds();
if(allId.get(ParallelGateway.class.getName())!=null)
{
parallelGatewayID = allId.get(ParallelGateway.class.getName()).toArray(new String[allId.get(ParallelGateway.class.getName()).size()]);
// 把平行网关... | [
"@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"
]
]
}
} |
Spawn a new process locally (i.e., in the same VM of the server). | public void spawnProcess(int id) throws LockedException,
DuplicateIDException {
Process process;
try {
process = processClass.newInstance();
process.network = this;
try {
if (id > 0) {
process.id = register(process, id);
} else {
process.id = register(process);
}
} catch (Remote... | [
"public void startProcess(String proId);",
"public static Server allocateNewServer() {\n\tint tmp = nextAddress.incrementAndGet();\n\t// Make a nice and funny IP address out of it.\n\ttry {\n\t InetAddress a = InetAddress.getByAddress(new byte[] { (byte) (tmp >> 24 & 0xFF),\n\t\t (byte) (tmp >> 16 & 0xFF), ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the string that represents the pattern | public String getPattern() {
return pattern;
} | [
"public String pattern();",
"public String toString() {\n return pattern.toString();\n }",
"public String getPattern()\n {\n return pattern.getValue();\n }",
"public String toPatternString() {\n\t\tif (operator == Operator.BASE) {\n\t\t\tif (baseItem == null) {\n\t\t\t\treturn \"<null>\";\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns R.id of Club's logo image | public static int getImageResource(String team){
if (team.equals("Newcastle"))
return R.drawable.icon_newcastle;
else if (team.equals("Liverpool"))
return R.drawable.icon_liverpool;
else if (team.equals("Stoke"))
return R.drawable.icon_stoke;
else if (team.equals("Arsenal"))
return R.drawable.icon_a... | [
"com.google.protobuf.ByteString getImageId();",
"public final int getImageID() {\n return imageID;\n }",
"public ImageView getLogo(){\n\t\treturn shop.getLogo();\n\t}",
"static String getImageIdentifier(Image image) {\n\t\treturn image.getType() == ImageType.SNAPSHOT && image.getSlug() != null\n\t\t\t? im... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
reverse those cities between from (exclusive) and to (inclusive) | public abstract void reverse(int from, int to, double delta); | [
"public void reverseDirection(int fromIndex, int toIndex) {\n Point[] table = getAsTable();\n for (int i = 0; i <= (toIndex - fromIndex) / 2; i++) { // TODO improve performance if required\n replace(table[fromIndex + i].getId(), table[toIndex - i].getId());\n }\n }",
"private vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onNothingSelected(AdapterView<?> parent) {
} | [
"@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 configured logo of the product (could be null). | public PDFImage getProductLogo() {
return logo(getProductLogoName());
} | [
"public ImageView getLogo(){\n\t\treturn shop.getLogo();\n\t}",
"public final String getLogo() {\n return this.logo;\n }",
"public RealtimeBidding.BidResponse.Ad.NativeAd.Image getLogo() {\n return logo_ == null ? RealtimeBidding.BidResponse.Ad.NativeAd.Image.getDefaultInstance() : logo_;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This will compare two byte[] for equality for count number of bytes. | private final boolean arraysEqual( byte[] first, byte[] second, int count )
{
boolean equal = first.length >= count && second.length >= count;
for( int i=0; i<count && equal; i++ )
{
equal = first[i] == second[i];
}
return equal;
} | [
"public boolean compareByteArray(byte[] array1, byte[] array2) {\n if (array1.length != array2.length)\n return false;\n else {\n for (int i = 0; i < array1.length; i++) {\n if (array1[i] != array2[i])\n return false;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Statement__Alternatives" $ANTLR start "rule__AffectationStatement__Alternatives" ../org.processus.ecleek.ui/srcgen/org/processus/ecleek/ui/contentassist/antlr/internal/InternalLeek.g:1381:1: rule__AffectationStatement__Alternatives : ( ( ( ruleAffectationDecrement ) ) | ( ( ruleAffectationIncrement ) ... | public final void rule__AffectationStatement__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.processus.ecleek.ui/src-gen/org/processus/ecleek/ui/contentassist/antlr/internal/InternalLeek.g:1385:1: ( ( ( ruleAffectationDecrement )... | [
"AffectationPostfixStatement createAffectationPostfixStatement();",
"public final void ruleStatementExpression() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:1417:2: ( ( ( rule__StatementExpression__Alternatives ) ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
calculating adding new cards | protected int newCardCalc(int totalValue, int nextCard)
{
//calc for 21
if(totalValue ==10 & nextCard ==1)
{
nTotalValue = 21;
}
else
{
if(totalValue<10 &nextCard ==1)
{
nTotalValue = totalValue + 11;
}
else
{
nTotalValue = totalValue + nextCard;
}
}
return nTotalValue;
} | [
"void setCard(Card a){\n\tcard.add(a);\r\n\ttotalCard++;\r\n}",
"protected void addTrainCard(){\n this.numCards++;\n }",
"public void addCard(Card newCard){\n \n\t\tdeck[bottomDeck % MAX_DECK_SIZE] = newCard;\n\t\tbottomDeck ++;\n\t}",
"void addCard(Card card, CardDeck deck);",
"public void addNew... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
uses BFS to fill adjacent squares of the same color | private void bfsColor(int r, int c) {
old = canvas[r][c].getBackground(); // grab previous color
canvas[r][c].setBackground(clrSelected); // mark panel with new color
canvas[r][c].label.setText(id); // and '0' or '1'
cell = r * X + c; ... | [
"private static void bfs(Integer row, Integer col, Integer new_color, ArrayList<ArrayList<Integer>> image){\n int current_color = image.get(row).get(col);\n if(current_color == new_color) return;\n\n Queue<int[]> queue = new LinkedList<>();\n queue.add(new int[]{row,col});\n image.get(row).... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when Search action mode send | void onSearch(String searchable); | [
"public abstract void triggerSearchAction();",
"public void searchAction() {\n\n\t\tloadSearchResults();\n\t}",
"public void onSwitchSearch()\n\t{\n\t\tif(showBasicSearch)\n\t\t{\n\t\t\tshowBasicSearch=false;\n\t\t\tshowAdvancedSearch=true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\temail=null;\n\t\t\tshowBasicSearch=true;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provide an enumeration service over the expressions in the list in the order they were inserted. | public Iterator<Expression> elements() {
return elements.iterator();
} | [
"private List<Exp> getExpList() throws Exception {\n\tToken first = t;\n\tList<Exp> expList = new ArrayList<>();\n\tif (isKind(LPAREN))\n\t consume(); // working for multipletest , not working for f(a)[b]\n\texpList.add(exp());\n\twhile (isKind(COMMA)) {\n\t consume();\n\t expList.add(exp());\n\t}\n\tretur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the trigger that results in a scaling action. | public MetricTrigger metricTrigger() {
return this.metricTrigger;
} | [
"@Override\n\tpublic Trigger getTrigger() {\n\t\treturn trigger;\n\t}",
"ProcessOperation getTrigger();",
"public String getTrigger()\n {\n return m_trigger;\n }",
"public TTrigger getTrigger() {\n return underlyingTrigger;\n }",
"public abstract Trigger getTrigger() throws Exception;",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets up the Populated and Pattern boards. | @Before
public void setUpTest()
{
for (int x = 0; x < 4; x++)
{
for (int y = 4 + HEAD_SPACE; y > 2 + HEAD_SPACE; y--)
{
my_one_line_populated.fillSpace(x, y, true);
}
}
my_one_line_populated.fillSpace(0, 2 + HEAD_SPACE, true);
my_block_array = new Block[3];
... | [
"public static void populateBoard() {\n\n createPawns();\n\n createRooks();\n\n createKnights();\n\n createBishops();\n\n createQueens();\n\n createKings();\n\n }",
"public void populateBoard(){\n\t\t\n\t\tgetPlots()[0] = new Go(1,\"GO\");\n\t\tgetPlots()[1] = new Aven... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
load customer name into a combo | private void populateCustomerName() {
ArrayList<String> custList;
ObservableList<String> obList = FXCollections.observableArrayList();
try {
custList = OwnershipDA.getCustomers();
custList.forEach(cust -> {
obList.add(cust);
});
cm... | [
"private void fillCustomerCombo() {\n List<Customer> customerList;\n try {\n customerList = CustomerController.getAllCustomers();\n b = false;\n customerCombo.removeAllItems();\n customerCombo.addItem(\"<select a Customer>\");\n for (Customer cust... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start the peer review phase of the study. | void startingPeerReview() {
peerReviewStartTime = (MarsClock) marsClock.clone();
} | [
"public /*synchronized*/ void startStudy() {\n // study\n System.out.println(\"Student is studying\");\n }",
"public void start(){\n System.out.println(\"Warming up and starting the exercise\");\n\n }",
"@Override\n\tpublic void study() {\n\t\tSystem.out.println(\"Person is Studying\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
salir de la pantalla | public void salir(ActionEvent actionEvent) {
try {
this.redireccionarPagina("procesoSTOLevantamientoErroresValidacionForm");
} catch (Exception e) {
this.addError("Error: ", this.obtieneMensajeErrorException(e));
}
} | [
"private void escribirEnPantalla() {\n }",
"private void salir() {\r\n\r\n System.out.println(\"Hasta pronto! ^_^\");\r\n\r\n System.out.print(\"\\nSaliendo de TAD \");\r\n System.out.print(\".\");\r\n System.out.print(\".\");\r\n System.out.print(\".\");\r\n\r\n // Fu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
constructor for projectile enemy | ProjectileEnemy(int x, int y, int xDiff, int yDiff, int s) {
super(x, y, xDiff, yDiff, s);
} | [
"public Projectile(){}",
"public EnemyMissile(int x,int y,int x2, int x3)\n {\n endX= x;\n endY= y;\n isExplosion = 0;\n isAlive = 0;\n _missile = new HeroMissile(x,y,x2,x3);\n \n }",
"protected HumanoidEnemy(float x, float y){\n this.x = x;\n this.y... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the body nutation period of the spin axis (s). | public void setNutationPeriod(final double period) {
refuseFurtherComments();
this.nutationPer = period;
} | [
"void setRotationalPeriod(float rotationalPeriod);",
"void setStepInterval(long milliseconds, int nanoseconds);",
"public void stepNutation(double nutationStepAngle) {\n }",
"public void setBody(Body b){\n\t\tbody = b;\n\t\tsetFixtureDef(60, 20);\n\t}",
"@Override\n\tpublic void setPeriodNumber(int perio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests if next element in iterator exists | @Override
public boolean hasNext()
{
return !( bl.getBookCount() == i );
} | [
"public boolean hasNext()\r\n/* 944: */ {\r\n/* 945: 993 */ return this.next != null;\r\n/* 946: */ }",
"@Override\r\n\t\t\tpublic final boolean hasNext() {\n\t\t\t\treturn next != null;\r\n\t\t\t}",
"public boolean hasNext() {\n return next != null;\n }",
"protect... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional bool destroy_immediately = 3; | public boolean getDestroyImmediately() {
return destroyImmediately_;
} | [
"boolean isDestroyAble();",
"void destroy() {\n exit = true;\n }",
"public void destroy()\n{\n}",
"default void destroy() {\n\n }",
"default void destroy()\n {\n\n }",
"@Override\n public void destroy() {\n destroy(true);\n }",
"public void destroy()\n { \n }",
"pu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets configuration containing all needed information for building JMS resources. | public AbstractWebLogicJmsConfigurationBuilder(LocalConfiguration configuration)
{
this.configuration = configuration;
} | [
"public JmsConnectorBuilder config(io.helidon.config.Config config) {\n this.config = config;\n return this;\n }",
"public void afterPropertiesSet() throws Exception\n {\n Map qcfBindings = appContext.getBeansOfType(JmsResourceRefBinding.class, true, false);\n if ( !Collec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if(mMode == 0){
if (keyCode == KeyEvent.KEYCODE_BACK && event.getRepeatCount() == 0){
super.dialog();
return false;
}
}
return super.onKeyDown(keyCode, event);
} | [
"@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"
]
]
}
} |
The request builder for the SecurityBaselineState | public SecurityBaselineStateRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
super(requestUrl, client, requestOptions);
} | [
"private SSZ_CallBankerRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private SsccCommitRequestRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find next not empty token in source. | public String nextNotEmptyToken(String delims, FlowProcessor processor)
{
String s;
do
{
if ( !reader.available() ) return null;
s = nextToken(delims, processor);
}
while ( s != null && s.isEmpty() );
return s;
} | [
"public String nextToken()\n {\n // check for errors\n if (sourceLength == 0)\n {\n return null;\n }\n\n // no delimiter return full string\n if (delimiterLength == 0)\n {\n // set source null because we only can return it once\n S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo setValue Permite establecer el valor del nodo | public void setValue(T value) {
this.value = value;
} | [
"@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}",
"public void setValue( Object value )\n \t{\n \t\tthis.value = value;\n \t}",
"public V setValue (N aNode, V aValue);",
"@Override\n\tpublic void setVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a LabelTarget representing a label with the given type. | public static LabelTarget label(Type type) {
throw Extensions.todo();
} | [
"public CreateLinkRequest withLabelTemplate(String labelTemplate) {\n setLabelTemplate(labelTemplate);\n return this;\n }",
"public static Label create() {\n return create(\"L\" + count++);\n }",
"public RetType forLabel(Label that);",
"protected Target createRelationalTarget(SourceTar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the versions for this document. | List<Document> getVersions(); | [
"List<Long> listVersions(String documentId) throws IOException;",
"public List<OsVersion> versions() {\n return versions;\n }",
"public Set<LicenseVersion> getVersions() {\r\n\t\treturn Collections.unmodifiableSet(versions);\r\n\t}",
"@Callable\n public List<Map<String, Object>> getVersions()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .casia.isiteam.videosearch.protocol.Response.Body body = 2; | public boolean hasBody() {
return ((bitField0_ & 0x00000002) == 0x00000002);
} | [
"com.adsizzler.mangolaa.commons.protobuff.OpenRtb.BidRequest.Imp.Video getVideo();",
"public ResponseBody body();",
"public void pickBody() {\n if (response != null) {\n String[] str = response.split(\"\\r\\n\\r\\n\");\n if (str.length > 1)\n body = str[str.length - 1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
request resume from pausing | public final void resume() {
LogWrapper.LOGV(TAG, "request resume()");
synchronized (mSync) {
mRequest = REQ_RESUME;
mSync.notifyAll();
}
} | [
"public void resume(){}",
"public void resume ();",
"public void resume() {\n suspended = false;\n }",
"public void resume() \n\t{\n\n\t}",
"@Override\r\n\tpublic void resume()\r\n\t{\n\t}",
"public long resume();",
"public void resume() {\n log(\"resuming\");\n synchronized (m... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to update variable representing that trading has ended | public void checkOut() {
planet.setMarketBusy(false);
} | [
"private void updateEnd() {\n\n\t}",
"private void endOfWork(){\n arrivalLounge.setDayEnd(true);\n arrTransQuay.setDayEnd(true);\n }",
"public int endSale() {\n return getSalePrice();\n }",
"public void end(){\n finTime = System.nanoTime();\n }",
"public void setEnd() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PropertyExpression__Alternatives" $ANTLR start "rule__BooleanLiteral__Alternatives_1" InternalAgreeParser.g:3841:1: rule__BooleanLiteral__Alternatives_1 : ( ( ( rule__BooleanLiteral__ValueAssignment_1_0 ) ) | ( False ) ); | public final void rule__BooleanLiteral__Alternatives_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalAgreeParser.g:3845:1: ( ( ( rule__BooleanLiteral__ValueAssignment_1_0 ) ) | ( False ) )
int alt36=2;
int LA36_0 = i... | [
"public final void rule__BooleanLiteral__Alternatives_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalResoluteParser.g:3456:1: ( ( ( rule__BooleanLiteral__ValueAssignment_1_0 ) ) | ( False ) )\n int alt22=2;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int64 seed = 4; | public Builder setSeed(long value) {
seed_ = value;
onChanged();
return this;
} | [
"public static int generateSeed()\n {\n long t = System.nanoTime();\n return (int) ( t >>> 32 ) ^ (int) t ^ ( new Object() ).hashCode();\n }",
"@SuppressForbidden\n public static long randomSeed64() {\n if (testsSeedProperty == null) {\n try {\n testsSeedProperty =\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Wrong. This should almost certainly invoke itself. Problem there is no virtual machine available. | public void printTo( final Consumer cuchar ) {
cuchar.outCharSequence( "[procedure " + ( this.description.getName() == null ? "-" : this.description.getName() ) + "]" );
} | [
"public void vmStart()\n\t{\n\t}",
"public abstract String virtualMachine();",
"public void testVMCall() {\n Lua L = new Lua();\n // Create a Lua Java function and install it in the global 'f'.\n class Mine extends LuaJavaCallback {\n int luaFunction(Lua L) {\n double d = L.toNumber(L.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a random port within the range. | private int random() {
return random.nextInt(end - start + 1) + start;
} | [
"public static Port random() {\r\n\t\treturn new Port(Number.random().nextInt(50000) + 2000); // 2000 through 51999\r\n\t}",
"public static int randomOpenPort() {\n if (basePort > 0) {\n for (int i = 0; i < PORT_POOL_SIZE; i++) {\n final int port = nextPort.getAndUpdate(x -> (x >= lastPort) ? baseP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
List of output sprite sheets. repeated .google.cloud.video.livestream.v1.SpriteSheet sprite_sheets = 13; | public com.google.cloud.video.livestream.v1.SpriteSheetOrBuilder getSpriteSheetsOrBuilder(
int index) {
if (spriteSheetsBuilder_ == null) {
return spriteSheets_.get(index);
} else {
return spriteSheetsBuilder_.getMessageOrBuilder(index);
}
} | [
"public static Image getSpritesheet() {\n return spritesheet;\n }",
"public Image getSpriteSheet() {\n\t\treturn spriteSheet;\n\t}",
"public void loadSprites() {\n\t\ttry {\n\t\t\tsprites = new BufferedImage[36];\n\n\t\t\tsprites[0] = ImageIO.read(new File(\"img/player/move/down1.png\"));\n\t\t\tsprit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "INVALID" $ANTLR start "STRING" | public final void mSTRING() throws RecognitionException {
try {
int _type = STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// css21.g:546:17: ( '\\'' (~ ( '\\n' | '\\r' | '\\f' | '\\'' ) )* ( '\\'' |) | '\"' (~ ( '\\n' | '\\r' | '\\f' | '\"' ) )* ( '\"' |) )
int al... | [
"@Override\r\n\tprotected Rule fromStringLiteral(String string) {\r\n\t\treturn string.endsWith(\" \") ? Sequence(\r\n\t\t\t\tString(string.substring(0, string.length() - 1)), W0())\r\n\t\t\t\t: String(string);\r\n\t}",
"private static void checkStringExprNode(@Nullable Node node) {\n if (node == null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ejecuta el procedimiento almacenado SP_DEL_FUNCION, para eliminar un registro de Funcion, y retorna un objeto ArrayList con los resultados obtenidos | public ArrayList spDelFuncion(Long codigo) {
StoredProcedureQuery consultaProcedimiento = gestorDeEntidad.createStoredProcedureQuery("SP_DEL_FUNCION");
// Registrar los parámetros de entrada y salida
consultaProcedimiento.registerStoredProcedureParameter("IN_CODIGO", Long.class, ParameterMode... | [
"@Override\r\n\tpublic void eliminar(ASParametro asp) {\n\t\tiniciaOperacion() ;\r\n\t\tsesion.delete(asp);\r\n\t\t // 5. Guardo los Cambios de la sesion\r\n\t tx.commit() ;\r\n\t sesion.flush() ;\r\n\t // 6. Cierro la sesion\r\n\t sesion.close() ;\r\n\t}",
"private void funcionEliminar() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the time to idle for an element before it expires. Is only used if the element is not eternal. | public void setTimeToLiveSeconds(int timeToLiveSeconds) {
this.timeToLiveSeconds = timeToLiveSeconds;
} | [
"public void setIdleTime(long idleTime){\n this.idleTime = idleTime;\n }",
"void setInactiveExpiration ( long units, TimeUnit tu );",
"public synchronized void setIdleTime(long time) {\n this.killTime = time;\n log.debug(\"Set thrift transport pool idle time to {}\", time);\n }",
"void setIdl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleArtifacts" $ANTLR start "ruleArtifacts" ../org.sqlproc.dsl/srcgen/org/sqlproc/dsl/parser/antlr/internal/InternalProcessorDsl.g:76:1: ruleArtifacts returns [EObject current=null] : ( (this_WS_0= RULE_WS ) ( ( ( (lv_features_1_0= ruleOptionalFeature ) ) (this_WS_2= RULE_WS ) ) | ( ( (lv_statements_3_... | public final EObject ruleArtifacts() throws RecognitionException {
EObject current = null;
Token this_WS_0=null;
Token this_WS_2=null;
Token this_WS_4=null;
Token this_WS_6=null;
Token this_WS_8=null;
Token this_WS_10=null;
Token this_WS_12=null;
... | [
"Map getArtifacts();",
"public final void entryRuleExpression() throws RecognitionException {\r\n try {\r\n // ../eu.artist.postmigration.nfrvt.lang.nsl.ui/src-gen/eu/artist/postmigration/nfrvt/lang/nsl/ui/contentassist/antlr/internal/InternalNSL.g:370:1: ( ruleExpression EOF )\r\n //... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Display the tools using the ToolKit class method displayTools. Scan in the index of the tool (error checking if the user can use a tool with his money). If the run had a positive value returned add that to the player's money. If a negative value is returned decrement the player's life by the returned value. Display t... | private void runOnTheGrid(int target_server){
int result;
toolkit.displayTools();
System.out.println("Pick an Ice Breaker:");
int breaker = Integer.parseInt(input.nextLine());
while (breaker > toolkit.getNumberOfTools() || breaker < 0){
System.out.println("Not a valid tool, enter your choice again:");
b... | [
"public static void displayToolsScreen(Player p) {\n\t\t\n\t\tInventory inv = Bukkit.createInventory(null, 4 * 9, \"ItemFilter: Tools\");\n\t\t\n\t\tString[] item_strs = {\"WOOD_SPADE\", \"STONE_SPADE\", \"IRON_SPADE\", \"GOLD_SPADE\", \"DIAMOND_SPADE\", \"WOOD_PICKAXE\", \"STONE_PICKAXE\", \n\t\t\t\t\"IRON_PICKAXE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Evaluate the expression using the variable values provided in the assignment, and return the result. If the expression contains a variable which is not in the assignment, an exception is thrown. | @Override
public double evaluate(Map<String, Double> assignment) throws Exception {
return this.num;
} | [
"public interface Expression {\n /**\n * Evaluate the expression using the variable values provided in the assignment,\n * and return the result.\n *\n * @param assignment set of variables and their values.\n * @return result of the evaluated expression.\n * @throws Exception If the expression contains... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine whether to enable cache. We judge whether to enable the cache according to the cache time. If the cache time is greater than 0, the cache is enabled. If the cache time is less than or equal 0, the cache is not enabled. | public abstract boolean isCachingEnabled(); | [
"@Override\n public boolean isCacheEnable( )\n {\n return _bEnable;\n }",
"public boolean getUseCache();",
"public boolean isCachingEnabled() {\n return cachingEnabled;\n }",
"boolean isCaching();",
"public final boolean useCache() {\n return useCache == null ? Boolean.FALSE : useCach... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Rename and change types and number of parameters | public static CoursFragment newInstance(String param1, String param2) {
CoursFragment fragment = new CoursFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
} | [
"protected void method_5557() {}",
"@Override\n\tpublic void use(byte[] parameters) {\n\t\t\n\t}",
"@Override\n }",
"public abstract String processParameters();",
"@Override\n public void extornar() {\n \n }",
"@Override\n\tpublic int getNumParameters() {\n return 2;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the availableDocs (avaliable ASN Standards Documents) attribute of the AsnStandardsManager object | public List getAvailableDocs() {
return this.availableDocs;
} | [
"public abstract String getDocs();",
"@XmlElement\r\n public String getDocs() {\r\n return docs;\r\n }",
"public List<String> getDocuments(){\n return this.documents;\n }",
"@Override\r\n\tpublic List<String> getDoc() {\r\n\t\treturn document;\r\n\t}",
"public Set<String> getDocuments... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implements groupbased addition of cache elements. | public void putInGroup(Serializable key, String group, Serializable value) {
try {
JCS.getInstance(this.cacheName).putInGroup(key, group, value);
}
catch (CacheException e) {
String msg = "Failure to add " + key + " to cache " + this.cacheName + ":" + e.getMessage();
this.logger.warn... | [
"@Override\n\tpublic void addCache(String key, List<Map<String,Object>> value) {\n\t\tjedis.opsForValue().set(key, value);\n\t}",
"public long add(K key, T value) {\n synchronized (cacheMap) {\n long now = System.currentTimeMillis();\n cacheMap.put(key, new CacheObject(value,now, now)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e). | protected void actionPerformed(GuiButton button)
{
if (button.enabled)
{
if (button.id == 0)
{
if (this.bookEditingTitle) {
this.bookEditingTitle = false;
this.bookTitleConfirmed = true;
this.bookStack.getT... | [
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\tSystem.out.println(\"Click !!!\");\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t// You fill this in //\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test sending data through the exchange. | public void sender(final int nb,final boolean close) throws Exception
{
_count.set(0);
final CountDownLatch complete=new CountDownLatch(nb);
final CountDownLatch latch=new CountDownLatch(nb);
HttpExchange[] httpExchange = new HttpExchange[nb];
long start=System.currentTimeMil... | [
"@Test(groups = \"live\")\n public void testMessageExchange() {\n messageService = messageService();\n\n // clear the queue\n messageService.clearQueue();\n // test the exchange\n ArrayList<EAVSurveyRecord> recordsToTest = new ArrayList<>();\n recordsToTest.addAll(Arrays... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sanitizes user provided GPS values as latitude and longitude values Condition : not null | public static void sanitizeGPSvalue(Double input) throws SanitizationException{
if(input == null){
throw new SanitizationException("GPS value is null");
}
} | [
"protected void parseLatitude(){\n try{\n //If we can convert the string directly into a double, it is already in the proper format.\n dblLatitude = Double.parseDouble(stringLatitude);\n } catch(NumberFormatException ex){\n if(tryParseDMSLatitude())\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column t_user_detail.photo | public void setPhoto(String photo) {
this.photo = photo == null ? null : photo.trim();
} | [
"public void setUserPhoto(byte[] userPhoto) {\n this.userPhoto = userPhoto;\n }",
"public void setPhotoPath(String photo_path){\n this.Photo_path=photo_path;\n }",
"public void eventChangeProfilePhoto() {\n String selectedPhotoURL = getPhotoURL();\n if (selectedPhotoURL == null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ref from _source=google_rich_qa&utm_campaign=google_rich_qa testing context sending to adapter for selectedImage? | public static GalleryFragment newInstance(Context c, ArrayList<Uri> u)
{
Bundle args = new Bundle();
//store the passed Image Uri's
args.putParcelableArrayList(IMAGEKEY, u);
GalleryFragment thisGal = new GalleryFragment();
thisGal.setArguments(args);
return thisG... | [
"private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, IMG_REQ);\n }",
"private void showSelectedImage(Uri selectedImageUri) {\n }",
"private void SelectImage()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the size of the container. | @Override
public int getContainerSize() {
return this.containersize;
} | [
"public long size() {\n return size.sum();\n }",
"public final int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() { //done testing...\n return size;\n }",
"public int size() {\n\t//TO BE COMPLETED\n return size;\n }",
"public final int size() {\r\n return _size... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Auto generated getter method | public java.lang.String getDestinationCity ()
{
return localDestinationCity;
} | [
"public MethodDoc getGetter()\r\n {\r\n return m_jvdGetter;\r\n }",
"public long getGetter() {\n return getter_;\n }",
"public T get() {\n return value;\n }",
"public abstract M get();",
"@Override\n \tpublic String get() {\n \t\treturn null;\n \t}",
"public Object get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Execute the Network request | public void getCountries(){
Call<List<Countries>> call = placeHolderAPI.getCountries();
//Execute the request in a background thread
call.enqueue(new Callback<List<Countries>>() {
@Override
public void onResponse(Call<List<Countries>> call, Response<List<Countries>> respo... | [
"public void execute ()\n\t{\n\t\tRunnable thread = new Runnable() \n\t\t{\n\t\t\t\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tT result;\t\t\n\t\t\t\ttry {\n\t\t\t\t\tresult = (T) request.execute ();\n\t\t\t\t\tresponse.response(result);\n\t\t\t\t} catch (GriklyException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Opens and runs application. | public static void main(String[] args) {
Application.launch(args);
} | [
"public static void main(String[] args) {\n\t\tApplication.launch(args); \r\n\t}",
"public static void main(String[] args) {\n\tApplication.launch(args);\n}",
"public static void main(String[] args) {\n Application.launch(args);\n }",
"public static void main(String[] args){\n\t\tApplication.launch(args... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if we have'nt computed the ref yet, do so now. | protected void link() {
calcRef();
} | [
"@Override\r\n\tpublic int refCnt() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int refCnt() {\n\t\treturn 0;\n\t}",
"public ObjectReference prepareObjectReference() {\n return null;\n }",
"public void calculateWeakComponent(){\n\t}",
"private Proxy promoteReference() {\n\t\t\tif ( bound || force_str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the first value of the given header, if it's present. This is useful for headers like 'ContentType' or 'ContentLength' of which there is expected to be only one value if present. | default Optional<String> getFirstHeaderValue(String header) {
return getValuesForHeader(header).stream().findFirst();
} | [
"private static String getFirstHeader ( DrumlinRequest req, String[] headers )\n\t{\n\t\tfor ( String header : headers )\n\t\t{\n\t\t\tfinal String result = req.getFirstHeader ( header );\n\t\t\tif ( result != null ) return result;\n\t\t}\n\t\treturn null;\n\t}",
"public String get(String header) {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleFuncionFicheroCerrar" $ANTLR start "ruleFuncionFicheroCerrar" ../vary.pseudocodigo.dsl.cpp.ui/srcgen/vary/pseudocodigo/dsl/cpp/ui/contentassist/antlr/internal/InternalVaryGrammar.g:293:1: ruleFuncionFicheroCerrar : ( ( rule__FuncionFicheroCerrar__Group__0 ) ) ; | public final void ruleFuncionFicheroCerrar() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../vary.pseudocodigo.dsl.cpp.ui/src-gen/vary/pseudocodigo/dsl/cpp/ui/contentassist/antlr/internal/InternalVaryGrammar.g:297:2: ( ( ( rule__FuncionFicheroCerrar... | [
"public final void ruleFunction() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:667:2: ( ( ( rule__Function__Group__0 ) ) )\n // InternalReflex.g:668:2: ( ( rule__Function__Group__0 ) )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the primary key of this fase postulacion. | @Override
public void setPrimaryKey(long primaryKey) {
_fasePostulacion.setPrimaryKey(primaryKey);
} | [
"public void setPrimaryKey(PostulacionPK primaryKey);",
"@Override\n\tpublic void setPrimaryKey(java.lang.String primaryKey) {\n\t\t_phongkham.setPrimaryKey(primaryKey);\n\t}",
"public void setPrimaryKey(DbKey pKey) {\n\t\tm_primaryKey = pKey;\n\t}",
"@Override\n\tpublic void setPrimaryKey(long primaryKey) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the readable date & time string. | public static String convertMillisecondToDateTime(long milliseconds) {
if (milliseconds < 0) {
return "Wrong time";
}
SimpleDateFormat format = new SimpleDateFormat(
"yyyy-MM-dd HH:mm:ss Z", Locale.getDefault());
return format.format(new Date(milliseconds));
... | [
"public static String timestamp() {\r\n Time now = new Time();\r\n now.setToNow();\r\n String readableTime = now.format(\"%Y-%m-%d %H:%M:%S\");\r\n return readableTime;\r\n }",
"public String dateString() {\n\t\t// Date to String\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"y... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
what ever you want to do with No option. | public void onClick(DialogInterface dialog, int whichButton) {
} | [
"public void testOptionNoValueJunk() {\n doTest(true);\n }",
"public boolean isNoParam()\t\t\n\t\t{\n\t\t\treturn !(options.contains(Copt.WITHCONTENT)\t|| \n\t\t\t\t\t\toptions.contains(Copt.WITHAPP) ||\n\t\t\t\t\t\toptions.contains(Copt.WITHCONTACT));}",
"public void setNo() {\n setChoosen((No) choic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/normals[1] = 0.01f; normals[4] = 0.01f; normals[7] = 0.01f; normals[10] = 0.01f; | public void updateAspect(float aspect){
} | [
"public void vertexNormals() {\n int counter = 0;\n for (int i = 0; i < normalz.length; i+=3) {\n float x1=normalx[i]-normalx[i+1];\n float x2=normalx[i+2]-normalx[i+1];\n float y1=normaly[i]-normaly[i+1];\n float y2=normaly[i+2]-normaly[i+1];\n f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Test that Chrome is sent to the background, that the initially added moderate bindings are removed and are not readded when Chrome is brought back to the foreground. | @Test
@Feature({"ProcessManagement"})
public void testVisibleBindingTillBackgroundedSentToBackground() {
setupBindingType(false);
doTestBindingTillBackgroundedSentToBackground(mManager);
} | [
"public void testPeriodic()\n\t{\n\t\tLiveWindow.setEnabled(true);\n\t}",
"public boolean isBrowserChrome() { return (this.browserType == CHROME); }",
"boolean hasSwitchBackgroundOp();",
"private void maybeRepair() {\n if (!isRepaired) {\n self.appendChild(getChrome());\n isRepaired = true;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Default constructor. Note that this does not initialize fields to their default values from the schema. If that is desired then one should use newBuilder(). | public Country() {} | [
"public DefaultSchema() {\r\n\r\n }",
"private DBSchema()\n {\n }",
"public TbomSchema() {\n\t}",
"protected MongooseSchema(){}",
"private Builder() {\n super(com.avro.entity.User.SCHEMA$);\n }",
"public OrderAvro() {}",
"private Builder() {\n super(gov.pnnl.aim.discovery.streams.avro.Fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prompts the current user to enter his/her login credentials in order to proceed. | private static User handleUserLogin(Bank bank) {
println("Enter username:");
if (handleStringInput(1)) {
String u = stringInput;
println("Enter password:");
if (handleStringInput(1)) {
String p = stringInput;
return bank.getUserF... | [
"public void UserEntersLoginCredentials() {\n LoginMenu.click();\n LoginEmil.type(User_UserName);\n LoginPassword.type(User_Password);\n LoginBtn.click();\n }",
"public void login() {\n \tSystem.out.println(\"Login to account.\");\n \t/*\n \t * Get input from the user.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the operator number (the B number) | public String getOperatorNumber(); | [
"public NumericOperator getOperator();",
"public int getOperator() {\n\treturn this.operator;\n }",
"public String getOperator()\r\n/* 82: */ {\r\n/* 83:115 */ return this.operator;\r\n/* 84: */ }",
"com.guidewire.datamodel.Operator xgetOperator();",
"public BinaryOperator<T> getOperator... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a regex pattern to match a substring at the beginning of another string. If given string is not a regex to match a string at the beginning of another string, then null is returned. | private static KeyConstraints cleanRegexStartsWith(KeyConstraints regex) {
if (!isStartsWithRegex(regex)) {
return null;
}
// remove all instances of \Q and \E from the remaining text & escape single quotes
String literalizedString =
((String) regex.get("$reg... | [
"void reStart(RegularExpression re);",
"boolean stringStartsWith(String string, String prefix);",
"public static boolean startsWithIgnoreCase( final String string, final String prefix ) throws IllegalArgumentException, NullPointerException\n {\n if ( string.length() < prefix.length() )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
verify favorite text not present | @Test(description = "Verify uncheck 'favorite' checkbox with favorite action", groups = { "functional" })
public void RefineUnCheckFavorite() throws HarnessException {
verifyUnCheckAction(Locators.zHistoryFilterFavorites.locator,
GetText.favorite(fileName));
} | [
"boolean hasPreviewText();",
"boolean hasPrenormText();",
"boolean hasTxt();",
"public void verifyNonText(String text) {\n logger.debug(\"Verifying that the text '\" + text\n + \"' is not present on the page\");\n if (driver.findElement(By.tagName(\"html\")).getText().contains(tex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses input string as lines. 5 3 1 1 E RFRFRFRF 3 2 N FRRFLLFFRRFLL 0 3 W LLFFFLFLFL | public Input parse(List<String> lines) {
try {
Iterator<String> it = lines.iterator();
InputBuilder inputBuilder = Input.builder()
.gridDimensions(parseGridDimensions(it.next()));
while (it.hasNext()) {
inputBuilder.robotInput(parseRobotInput(it.next(), it.next()));
}
return inputBuil... | [
"private void parseLine( String line ) {\n if( line.startsWith( \"#\" ) || line.length() < 5 ) return;\n line = line.trim();\n final String[] values = line.split( \"\\\\s+\" );\n ArrayList<Double> inputValues = new ArrayList<Double>( Constants.NUMBER_OF_INPUTS );\n\n int i = 0;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve all word tokens from a file, irrespective of lines. | public static String[] getTokensFromStream(InputStream inputStream,
String charEncoding) throws Exception {
BufferedReader input = null;
Vector<String> ret = new Vector<String>();
// use buffering, reading one line at a time
// FileReader always assumes default encoding is OK!
input = new BufferedRea... | [
"public static ArrayList<String> load(String file) throws IOException {\n\t\tBufferedReader start = new BufferedReader(new FileReader(file));\n\t\tFile startFile = new File(file);\n\t\tScanner fileScanner = new Scanner(startFile);\n\t\tArrayList<String> words = new ArrayList<>();\n\t\t\n\t\t//Runs through the text ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getters and setters of properties | public Long getDayComponent() {
return dayComponent;
} | [
"@Override\n\tpublic void get(String property) {\n\t\t\n\t}",
"@Override\n public CIProperties getProperties() {\n if (memberProps == null) {\n\tmemberProps = synthesizeProperties();\n }\n return memberProps;\n }",
"public abstract void setProperties(T property);",
"@Override\n public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method is called in the process of creation of a Document. | protected void add2DocCreate(final Parameter _parameter,
final Insert _insert,
final CreatedDoc _createdDoc)
throws EFapsException
{
// used by implementation
} | [
"@Override\n\tpublic Document createDocument();",
"public void createDocument() {\n\n\t\ttry {\n\t\t\t\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t\n\t\t\t// Kreiranje novog dokumenta \n\t\t\tdocument = builder.newDocument(); \n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__BaseType__TypeAlternatives_0" $ANTLR start "rule__ListType__Alternatives" ../de.emueller.xtext.recordmapper.ui/srcgen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:2533:1: rule__ListType__Alternatives : ( ( ( rule__ListType__Group_0__0 ) ) | ( ( rule__ListType__... | public final void rule__ListType__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../de.emueller.xtext.recordmapper.ui/src-gen/de/emueller/xtext/recordmapper/ui/contentassist/antlr/internal/InternalRecordMapper.g:2537:1: ( ( ( rule__List... | [
"public final void rule__ListType__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.osate.xtext.aadl2.propertyset.ui/src-gen/org/osate/xtext/aadl2/propertyset/ui/contentassist/antlr/internal/InternalPropertys... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
int32 total = 4; | int getTotal(); | [
"int getI32ValCount();",
"int getVint32();",
"static int totalSides(int value)\n {\n return value;\n }",
"public int getPackedInt32SCount() {\n return packedInt32S_.size();\n }",
"int getVSfixed32();",
"static int ADD32(int a, int b) {\r\n return ((a) + (b));\r\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table links | LinkEntity selectByPrimaryKey(Integer linkId); | [
"@Override\n public String asTableDbName() {\n return \"path_mapping\";\n }",
"void linkSecondaryTable(AmberTable primaryTable,\n AmberTable secondaryTable,\n JoinColumn []joinColumnsAnn)\n throws ConfigException\n {\n ArrayList<ForeignCol... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
and css_outlets is null | public M cssOutletsNull(){if(this.get("cssOutletsNot")==null)this.put("cssOutletsNot", "");this.put("cssOutlets", null);return this;} | [
"protected boolean isBridgeFlashServletResponseRequired() {\n\t\treturn false;\n \t}",
"public void afterPageInit() throws JRScriptletException\n{\n\tsuper.afterPageInit();\n}",
"@Override\n public boolean isControlPanelPortlet(String portletId, ThemeDisplay themeDisplay) throws SystemException {\n\treturn f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Happens on a background thread. We cannot run the callback here because only the UI thread can modify the view hierarchy (e.g enable/disable the dial button). The callback is ran rom the post execute method. | @Override
protected String doInBackground(GetLastOutgoingCallArgs... list) {
String number = "";
for (GetLastOutgoingCallArgs args : list) {
// May block. Select only the last one.
number = Calls.getLastOutgoingCall(args.context);
}
return number; // passed to the onPostExecu... | [
"void executeAsync(VisilabsCallback pCallback) throws Exception;",
"public void run() {\n if(callback != null) {\n callback.broadcastToBlePopUp(\"BLE\", \"Connected\", status);\n }\n if(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string auth = 1; | public boolean hasAuth() {
return ((bitField0_ & 0x00000001) != 0);
} | [
"boolean isAuthRequired();",
"public RequestBuilder auth(String auth){\n\t\tthis.auth=auth;\n\t\treturn this;\n\t}",
"public String AuthToken(String token);",
"String getAuthHeader();",
"public void setAuthFullName(String name)\r\n {\r\n authFullName = name ;\r\n }",
"private PlivoAuthenticat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public boolean findUser(User user) {
return false;
} | [
"@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"
]
]
}
} |
Return a reference to this class | JFrame getThisParent() {
return this;
} | [
"public static RobotCore self() {\n return self;\n }",
"@Internal\n protected EntityClass<?> thisClass() {\n var result = thisClass;\n if (result == null) {\n synchronized (this) {\n result = thisClass;\n if (result == null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void keyPressed(KeyEvent arg0) {
deactivateDropdownList();
awaitBeginningNode= false;
awaitEndingNode = false;
if(arg0.getKeyCode() == KeyEvent.VK_ENTER){
if(selectedNodeKey !=-1)
{
if(nodeMap.containsKey(selectedNodeKey)&&valida... | [
"@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"
]
]
}
} |
Cosine distance: [0,1] 1 means the closest | public double cosineDis(String str1,String str2){
List<int[]> list = convertVector(str1, str2);
int[] vector1 = list.get(0);
int[] vector2 = list.get(1);
double distance = 0;
double upper = 0;
double Asqr = 0;
double Bsqr = 0;
if (vector1.length == vector2.length) {
for (int i = 0; i < ve... | [
"@Override\r\n\tpublic void getCosineSimilarity() {\r\n\t\tfor (int i = 0; i < cosVector.size(); i++) {\r\n\t\t\tfor (int j = 0; j < cosVector.size(); j++) {\r\n\t\t\t\t{simResult = new CosineCalculator().cosineSimilarity(cosVector.get(i), cosVector.get(j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ We use our own method, to avoid usage of apwork utils. we need to keep restarter.jar free from wau | private static boolean isWindows() {
final String osName = System.getProperty("os.name");
if (osName != null) {
final String os = osName.toLowerCase(Locale.ENGLISH);
if (os.contains("windows")) {
return true;
} else if (os.contains("nt")) {
... | [
"@Override\n public void extornar() {\n \n }",
"private FrameworkSupportUtils() {}",
"private void SlingApi() {\n\t\t\r\n\t}",
"private String configureUtils(String original) {\r\n\t\tString util;\r\n\t\tMainActivity.isBusyboxInstalled = Toolbox.haveBusyboxUtils(original); \r\n\t\tif (MainActivit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Initialize stringAttribute for every function to use | @Before
public void setUp() throws Exception {
stringAttribute = new StringAttribute("Test Name", "Test Value");
} | [
"public static StringAttrDSL stringAttribute(String name) { return new StringAttrDSL(name); }",
"public StringHelper(){}",
"@Override\r\n\tpublic AttributeVal<String> generateAttributeVal() {\n\t\treturn new StringVal(generate());\r\n\t}",
"public final void testGetAttributesString() {\n Attribute attr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes the given element from this table viewer. The selection is updated if necessary. This method should be called (by the content provider) when a single element has been removed from the model, in order to cause the viewer to accurately reflect the model. This method only affects the viewer, not the model. Note th... | public void remove(Object element) {
remove(new Object[] { element });
} | [
"public void remove(E element) {\n root = remove(root, element);\n render();\n }",
"@Override\r\n\tpublic void removeElement(Object element) {\n\t\t\r\n\t}",
"public void removeSelectedObject() {\r\n\t\tremoveObject(getSelectedObject());\r\n\t}",
"public void removeElement(Object element) thr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Create TSV file Write data into file, separating with /t | public void saveToTSV(File selectedFile, Inventory itemInventory) {
Writer writer = null;
try {
File file = new File(selectedFile.getCanonicalPath());
writer = new BufferedWriter(new FileWriter(file));
for (int i = 0; i < itemInventory.getListOfItems().size(); i++) {... | [
"public void CreateTSVOutPutFile(String Directory_Path,String FinalResult, List<String> Headers) throws IOException{\r\n\t\t//OutPut File\r\n\t\t//Result_fwriter = new FileWriter(Directory_Path + System.getProperty(\"file.separator\") + FinalResult + \".tsv\");\r\n\t\t//Result_bfwriter = new BufferedWriter(Result_f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
todo amount not large the order | private void checkSubtractAmount(Integer amount) {
if (amount == null|| amount < 1) {
throw new ProductAmountSubtractException();
}
} | [
"@Override\r\n\tpublic void ascByTotal() {\n\t\t\r\n\t}",
"Zr get_order();",
"public void order(View view){\n String harga = \"Total : Rp.\"+(quantity*10000);\n tampilPesan(harga);\n }",
"@Test\n public void amountAscendingTest()\n {\n assertEquals(3,transaction.getListSize());\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Refactoring the previous codes and test to passing different parameters | @ParameterizedTest
@CsvSource({
"X-Ratelimit-Limit,60",
"content-type,application/json; charset=utf-8",
"X-Ratelimit-Remaining,37"
})
void parametrizedTestForHeaders(String header,String expectedValue) {
String content = response.headers().firstValue(header).get(... | [
"public void testMultipleParameterTypes() {\n doTest();\n }",
"public abstract String processParameters();",
"@Test\n\tpublic void paramTest2() {\n\t\tInteger [] preReq = {2, 1, 2, 6, 2, 11};\n\t\tString [] course = {\"id\", \"title\", \"1\", \"Programming in C\", \"2\", \"Distributed Computing\", \"3\", \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets a variant file previously created and returns the contents as a Map | public static Map<String, String> getVariantMap(String filename) throws IOException {
Map<String, String> variantMap = new TreeMap<String, String>();
String line = null;
try {
FileReader reader = new FileReader(new File(filename));
BufferedReader inputFileReader = new BufferedReader(reader);
while(... | [
"abstract PersistentDictionary getDictionary(File file) throws IOException;",
"public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getFilesMap() {\n return internalGetFiles().getMap();\n }",
"public static Map<String, String> getInitializedCVMap()\n throws IOExcepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets all of the elements of the vector. | public Vector4 set(DoubleBuffer buf) {
return set(buf.get(), buf.get(), buf.get(), buf.get());
} | [
"public final void set(double[] vector) {\n for (int i = length - 1; i >= 0; i--) {\n values[i] = vector[i];\n }\n }",
"public final void set(GVector vector) {\n int i;\n\n if (length < vector.length) {\n length = vector.length;\n values = new double... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public boolean onEditorAction(TextView v, int actionId,
KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_DONE) {
password.requestFocusFromTouch();
}
return false;
} | [
"@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"
]
]
}
} |
Gets number of UIDs with historical ops. | public @IntRange(from = 0) int getUidCount() {
if (mHistoricalUidOps == null) {
return 0;
}
return mHistoricalUidOps.size();
} | [
"int getUnaryOpCount();",
"public int getUtxoListCount() {\n return utxoList_.size();\n }",
"int getNumNewUsersHelped();",
"int getUserSnapshotCount();",
"public int getUserCountNonExpired();",
"int getSuidCount();",
"private int getNumUndo() {\n return numUndo;\n }",
"int getOpListC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set initial engitlement Values for Coverage | public static void setInitialEntitlementValuesForCoverage(
CoverageManager coverageManager, PolicyHeader policyHeader, ScreenModeCode screenModeCode, Record record) {
CoverageEntitlementRecordLoadProcessor entitlementRLP = new CoverageEntitlementRecordLoadProcessor(
coverageManager, polic... | [
"@Test\n\tpublic void testSetCurrentLibrarianTotals() {\n\t\tassertEquals(librarianCurrentSales, librarian.getCurrentLibrarianTotals(), 0);\n\t\tlibrarian.setCurrentLibrarianTotals(3000);\n\t\tassertEquals(3000, librarian.getCurrentLibrarianTotals(), 0);\n\t}",
"private void setDefaultValues() {\n this.par... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Util method to write an attribute with the ns prefix | private void writeAttribute(java.lang.String prefix,
java.lang.String namespace, java.lang.String attName,
java.lang.String attValue,
javax.xml.stream.XMLStreamWriter xmlWriter)
throws javax.xml.stream.XMLStreamException {
java.lang.String writerPrefix = xmlWr... | [
"private void writeAttribute(java.lang.String namespace, java.lang.String attName, java.lang.String attValue,\r\n\t\t\tjavax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {\r\n\t\tif (namespace.equals(\"\")) {\r\n\t\t\txmlWriter.writeAttribute(attName, attValue);\r\n\t\t} else {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ends collectReservationData This method creates instance of FetchRoomStatus request and make call to the property management service for details. It collect the response , populate an instance of FetchRoomStatus response and pass it to database handler class to persist the information in room status upload database. | private static boolean makeFetchRoomStatusRequest() {
DataHarvesterLogger.logInfo( OWSDataCollector.class, " makeFetchRoomStatusRequest ", " Enter makeFetchRoomStatusRequest method " );
boolean isProcced = false;
MicrosMessageTransport objMicrosMessageTransport = null;
FetchRoomStatusRequest objFetch... | [
"public void loadRoomReservations() {\n List<RoomReservation> roomReservationList;\n try {\n String roomReservationJson = RoomServerCommunication.getAllActiveRoomReservations();\n roomReservationList = new ArrayList<>(Objects.requireNonNull(JsonMapper.roomReservationsListMapper(r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Show the summary order if the view is present On rotate, tries use the old fragment from ChildFragmentManager. | public void showOrderSummaryIfPresent(int checkoutStep, PurchaseEntity orderSummary) {
// Get order summary
if (isOrderSummaryPresent) {
CheckoutSummaryFragment fragment = (CheckoutSummaryFragment) getChildFragmentManager()
.findFragmentByTag(CheckoutSummaryFragment.TAG +... | [
"public void openSummaryFragment() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n orderInfo.setFrom(locationHashMap.get(\"from\"));\n orderInfo.setDestination(locationHashMap.get(\"desti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form CreateCompany | public CompanyCreate(HomePageAdmin parentframe) {
initComponents();
this.parentframe = parentframe;
} | [
"@GetMapping(\"/showCompanyForm\")\r\n\tpublic String showCompanyForm(Model model) {\n \tCompany company = new Company();\r\n \tmodel.addAttribute(\"company\",company);\r\n \treturn \"new_company\";\r\n\t\t\r\n\t}",
"private void addNewCompany() {\n\n }",
"public void createCompany(Company company )... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return true if this CallRequest_answering_machine_detection_config object is equal to o. | @Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CallRequestAnsweringMachineDetectionConfig callRequestAnsweringMachineDetectionConfig = (CallRequestAnsweringMachineDetectionConfig) o;
return ... | [
"public boolean sameValueAs(Object o)\n { return equals( o ); }",
"@Override public boolean equals(Object o) {\n\t\t\t\treturn this == o;\n\t\t\t}",
"public boolean equals(Object o) {\n\t\tif (o instanceof RemoteBankImpl) {\n\t\t\tRemoteBankImpl that = (RemoteBankImpl) o;\n\t\t\tif (_bankName.equalsIgnor... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
without a buffer in FileInputStream.read() time consuming is 200s | @Test
public void main() {
try (FileInputStream readIn = new FileInputStream("book1");
){
int content;
while((content = readIn.read()) != -1) {
// Without print function --> 0.663s
// continue;
// with print function --> 2.927s
System.out.println((char)content);
}
}
catch (Excep... | [
"@Test\n public void testRandomRead() throws Exception {\n assumeHugeFileExists();\n try (\n FSDataInputStream inputStreamV1\n = this.getFileSystem().open(TEST_FILE_PATH);\n FSDataInputStream inputStreamV2\n = this.getWasbFileSystem().open(TEST_FILE... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |