query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Retrieve all pallets which are blocked or not. | @RequestMapping(params = "isBlocked", method = RequestMethod.GET)
public ResponseEntity<DataResponse> getPalletsWhichBlocked(@RequestParam("isBlocked") String isBlocked) {
if (!isBlocked.equals("true") && !isBlocked.equals("false"))
throw new IllegalArgumentException("This parameter should conta... | [
"private boolean checkBlockablePallet(String palletNbr){\n\t\ttry {\n\t\t\tPreparedStatement myStmt = conn.prepareStatement(\n\t\t\t\t\t\"select count(*) as amount from pallets left join orders on pallets.ordernbr = orders.ordernbr where outdelivDate IS NULL and palletnbr = ?;\");\n\t\t\tmyStmt.setString(1, palletN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Removes all elements at the even positions in this list. Note that the head of the list is element number 0, which is an even position. | public void dropEven() {
// list is null or first element is null return
if (getFirst() == null) return;
// else drop every i % 2 == 0 element
// when i % 2 == 0 connect previous to next
// else advance
else {
Node previous = head;
Node... | [
"public void deleteEven(){\n\t\tNode temp = this.head;\n\t\tint cnt = 0;\n\t\twhile(cnt != this.length()){\n\t\t\tif(cnt%2 == 0){\n\t\t\t\tthis.deleteAtPos(cnt);\n\t\t\t}\n\t\t\tcnt++;\n\t\t}\n\t}",
"public static void removeEvens(ArrayList<Integer> list)\n {\n /*\n * size method returns the num... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.dstore.values.IntegerValue target_forum_id = 5; | io.dstore.values.IntegerValueOrBuilder getTargetForumIdOrBuilder(); | [
"io.dstore.values.IntegerValue getTargetForumId();",
"io.dstore.values.IntegerValue getForumId();",
"io.dstore.values.IntegerValue getForumCategoryId();",
"io.dstore.values.IntegerValue getTargetPostingId();",
"io.dstore.values.IntegerValueOrBuilder getForumIdOrBuilder();",
"io.dstore.values.IntegerValue ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends the number of channels to the server so that server can send the data back for specified channel number | private void sendChannelNumber(DataOutputStream outputStream) {
try {
outputStream.writeUTF(Integer.toString(channels));
} catch (Exception e) {
String errorMessage = "Unable to send channel value to the stream";
Handlers.getInstance().displayConsoleMessage(errorMessag... | [
"public void setChannelCount(int value) {\n this.channelCount = value;\n }",
"public void incrementChannel(){\r\n channelNumber += 1;\r\n }",
"void setNumberOfChannels(int channels) throws DeviceException;",
"public void setChannels(int channels) {\n this._channels = channels;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set app bar height | private void setAppBarHeight(Activity activity ,AppBar appBar){
TypedValue tv = new TypedValue();
int actionBarHeight = 0;
if (activity.getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true)) {
actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data, activity.ge... | [
"public int getTopBarHeight();",
"public int getBottomBarHeight();",
"private void autoSetBarSize() {\n float statusBarHeight = Utils.getStatusBarHeight(ModifyPassActivity.this);\n mStatusView = findViewById(R.id.view_modify_status_bar);\n LinearLayout.LayoutParams Params1 = new LinearLayou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reads the next group. | void readNextGroup() {
int header = readUnsignedVarInt();
this.mode = (header & 1) == 0 ? MODE.RLE : MODE.PACKED;
switch (mode) {
case RLE:
this.currentCount = header >>> 1;
this.currentValue = readIntLittleEndianPaddedOnBitWidth();
return;
case PACKED:
int numGroups = header >>> 1;
thi... | [
"private BranchGroupState readNextBranchGraph() throws IOException {\n int nodeCount = raf.readInt();\n skipUserData( raf );\n\n BranchGroupState state=null;\n try {\n state = (BranchGroupState)readObject( raf );\n\n readNodeComponents( raf );\n\n } catch( IO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Transforms a certain message in underline italic | public static String underlineItalic(String message) {
return "__*" + message + "*__";
} | [
"public static String underlineBoldItalic(String message) {\n return \"__***\" + message + \"***__\";\n }",
"public static String italic(String message) {\n return \"*\" + message + \"*\";\n }",
"public static String boldItalic(String message) {\n return \"***\" + message + \"***\";\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute the revenue for the month | private static double calculateRevenueForTheMonth(int price, int[] startDate, int[] endDate, int[] dateInput) {
int numberOfDays;
// Compute the number of days that must be paid depending on the start date, the
// end date and the input date.
if (endDate[0] == startDate[0] && endDate[1] == startDate[1]) {
numb... | [
"public double revenue() {\r\n double revenue = 0;\r\n for (Sale getSIOD : getSaleInOneDay()) {\r\n revenue = revenue + getSIOD.getPrice() * getSIOD.getQuantity();\r\n }\r\n oneDayRevenue.put(date, revenue);\r\n return revenue;\r\n }",
"float getRevenue();",
"private Map<Date, Double> compu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets rocketmq transaction producer. | public void setRocketmqTransactionProducer(TransactionMQProducer rocketmqTransactionProducer) {
this.rocketmqTransactionProducer = rocketmqTransactionProducer;
} | [
"public TransactionMQProducer getRocketmqTransactionProducer() {\n return rocketmqTransactionProducer;\n }",
"public void setProducer(String producer) {\n this.producer = producer;\n }",
"public void setProducer(String producer) {\r\n this.producer = producer == null ? null : producer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get information about current update state | @CheckForNull
GlobalUpdateStatus getUpdateStatus(); | [
"public Byte getUpdateStatus() {\n return updateStatus;\n }",
"public String getUpdateStatus() {\n return updateStatus;\n }",
"com.google.protobuf.Timestamp getCurrentStateTime();",
"public static UpdateInfo getUpdateInfo() {\n\t\ttry {\n\t\t\treturn updateInfo.get();\n\t\t}\n\t\tcatch (In... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notify a transport of the results of trying to forward a port. | public void forwardPortStatus(byte[] ip, int port, int externalPort, boolean success, String reason); | [
"public int forwardRemotePort(String fwdAddress, int fwdPort, IProgressMonitor monitor) throws RemoteConnectionException;",
"public int forwardLocalPort(String fwdAddress, int fwdPort, IProgressMonitor monitor) throws RemoteConnectionException;",
"public void forwardRemotePort(int remotePort, String fwdAddress,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO dunno// This is a large function that reads builds the tree from reading in the file. Initially it was two functions, // buildtree and buildlist, but then I decided to merge it into one function because buildtree always went after buildlist. | public void buildList() {
String nodeName;
char nodeType;
String nodeDescription;
// read in numNodes
BufferedReader br = new BufferedReader(new InputStreamReader(read));
try {
// get node information and add to tree
String temp = br.readLine();
// numNodes = Integer.parseInt(temp);
for (int i = ... | [
"public void buildFileTree(File inFile);",
"public void buildFileTree() {\n\t\tthis.buildRawDirTree();\n\t\t//this.printOutFileTree();\n\t\tthis.removeEmptyDirFromDirTree();\n\t}",
"void createTreeFromFile(String fileName) {\n\t\ttry {\n\t\t\tBufferedReader theReader = new BufferedReader(new FileReader(fileName... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The buildButtonPanel method creates and adds the Reset and Calculate buttons to the TravelExpense panel as its own panel. | private void buildButtonPanel()
{
// Create the calcButton.
calcButton = new JButton("CALCULATE");
// Register an event listener
calcButton.addActionListener(new CalcButtonListener());
//Create the resetButton.
resetButton = new JButton("RESET");
// Crea... | [
"private void buildButtonPanel()\r\n {\r\n // Create a panel for the buttons.\r\n buttonPanel = new JPanel();\r\n\r\n // Create the buttons.\r\n calcButton = new JButton(\"Calculate Charges\");\r\n exitButton = new JButton(\"Exit\");\r\n\r\n // Register the action listeners.\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the TreeMap with the involved systems variability. | public TreeMap<String, Vector<TechnicalSystemStateEvaluation>> getSystemsVariability() {
if (systemsVariability==null) {
systemsVariability = new TreeMap<String, Vector<TechnicalSystemStateEvaluation>>();
}
return systemsVariability;
} | [
"public TreeMap<Double, EngineSpecifications> getMapOfEnginePowerInKW() {\n\t\tenginePowerKWMap = new TreeMap<>();\n\n\t\tint index = 0;\n\t\tfor (int i = 0; i < EnginePowerKW.length; i+=2) {\n\t\t\tfor (int j = i; j < i + 2; j++) {\n\t\t\t\tenginePowerKWMap.put(EnginePowerKW[j], engineTurboAndEngineTypeForPowerKWC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SELECT 'abc' FROM a.g1 | @Test
public void testStringLiteral() throws Exception {
String sql = "SELECT 'abc' FROM a.g1";
Node fileNode = sequenceSql(sql, TSQL_QUERY);
Node queryNode = verify(fileNode, Query.ID, Query.ID);
Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);
Node c... | [
"SELECT createSELECT();",
"@Test\n public void testStringLiteralEscapedTick2() throws Exception {\n String sql = \"SELECT '''abc''' FROM a.g1\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(qu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Starts the music looping | public static void startMusic()
{
music.loop();
} | [
"public void startMusic() {\n try {\n music.start();\n music.loop(100);\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"public void start(boolean loop){ \n mainThread = new Thread(new Runnable(){ \n public void run(){ \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return resulting state after marking new | public ModificationState markNew()
{
return StateNewDirty.getInstance();
} | [
"State getStateToSet();",
"String getNewState();",
"public void applyNewState() {\n this.setAlive(this.newState);\n }",
"State computeState();",
"public ModificationState markOld()\r\n {\r\n return StateOldDelete.getInstance();\r\n }",
"long getStateChange();",
"public String getN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds and returns the foreign key Entity using the provided Entity. | FK findFrom(ENTITY entity); | [
"Getter<ENTITY, FK> finder();",
"Entity getReferencedEntity();",
"<T> T find(String entity, Object id);",
"protected abstract EntityType findById(Class<?> entityClass, EntityId id);",
"EntityId getEntityId(Entity entity);",
"private Entity getObjectByObject(final Entity entity){\n\t\tDBProperty dbProperty... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Term ::= Application| LAMBDA LCID DOT Term | private AST term(ArrayList<String> ctx){
String param,paramValue;
//后者:LAMBDA LCID DOT Term,也就是一个抽象
if(lexer.skip(TokenType.LAMBDA)){
if(lexer.next(TokenType.LCID)){
param=lexer.tokenvalue;
lexer.match(TokenType.LCID);
if(lexer.skip(Tok... | [
"public Term getTerm();",
"Term createTerm();",
"public AcademicTerm(int termIndex, Term term) {\n this.termIndex = termIndex;\n this.term = term;\n }",
"public String getTerm() {\n return term;\n }",
"protected Parser term() {\r\n\tAlternation a = new Alternation(\"term\");\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MnemeService is the overall service interface for Mneme, providing some application specific support. | public interface MnemeService
{
/** The type string for this application: should not change over time as it may be stored in various parts of persistent entities. */
static final String APPLICATION_ID = "sakai:mneme";
/** Event tracking event for deleting an assessment. */
static final String ASSESSMENT_DELETE = "... | [
"public MmeNse() {\n super(Epc.NAMESPACE, \"mme-nse\");\n }",
"public IMembreService getMembreService() {\r\n return this.membreService;\r\n }",
"public interface MintUIMService {\r\n\r\n\t/**\r\n\t * Creates a user in MINT\r\n\t * \r\n\t * @param provider\r\n\t * @throws MintOSGIClientExcep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],...] (si < ei), find the minimum number of conference rooms required. Example 1: Input: [[0, 30],[5, 10],[15, 20]] Output: 2 Example 2: Input: [[7,10],[2,4]] Output: 1 / Complexity Analysis Time Complexity: O(NlogN) because al... | public static int minMeetingRooms(int[][] intervals) {
int[] st_time = new int[intervals.length];
int[] end_time = new int[intervals.length];
for (int i = 0; i < intervals.length; i++) {
st_time[i] = intervals[i][0];
end_time[i] = intervals[i][1];
}
Arrays.sort(st_time);
Arrays.sort(end_time);
i... | [
"public static int minMeetingRooms(int[][] intervals) {\n // write your code here.\n HashMap<ArrayList<Integer>,Integer> map = new HashMap<>();\n for(int[] ints:intervals)\n for (int i = ints[0]; i < ints[1]; i++) {\n ArrayList<Integer> interval = new ArrayList<>();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Upload an Act that it's only in the local DB. | public Boolean uploadLocalAct(Context context, int act_id) {
ActDBHelper helper = new ActDBHelper(context);
Act act = helper.selectAct(act_id);
ArrayList<Event> eventsList = helper.selectEvents(act.getId());
if (!insertAct(act)) {
return false;
}
for (Event event : eventsList) {
if (!DAOEvents.inse... | [
"@Override\n\tpublic void upload() {\n\t\tHelper.assertNotNull(this.audioDB);\n\t\tHelper.assertNotNull(this.sound);\n\t\t// TODO: Insert code here\n\t}",
"void uploadFamousPlayers() throws Exception;",
"private void upload() throws IOException {\n HashMap<File, Activity> hm = this.load();\n if (hm.isEmpt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
That method direct the user to the selectMembershipActivity. | public void select(View view) {
Intent intent = new Intent(this, selectMembershipActivity.class);
startActivity(intent);
} | [
"private void myFriendsMenuSelected() {\n Intent _Activity = new Intent(mActivity, FriendsMenu.class);\n startActivity(_Activity);\n }",
"private void switchToSelectGameActivity(){\n Intent tmp = new Intent(this, SelectGameActivity.class);\n tmp.putExtra(\"currentUser\",userManager.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ 2) define a functional interface "Third" with an abstract method "void show(int num)". define a class "Sample" with a method "void disp(int num)" inside main function create a method reference for "Third" and invoke "disp" of "Sample" by passing a value "500". | @FunctionalInterface
interface Third
{
void show(int num);
} | [
"public static void main(String[] args) {\n\n Mul mulObj=new Mul();\n mulObj.MulInt();//10*5=50\n mulObj.subInt();\n mulObj.addInt();\n mulObj.display();\n\n\n\n\n }",
"public interface Display {\n\t/**\n\t * Function name : Display \n\t * Parameters : game Board. \n\t * Retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the size of the ship, ex: Cruiser = 5, Torpedo boat = 4. . . | public void setSize(int size){
this.shipSize = size;
} | [
"public void updateSize(String battleShipName) {\n\t\tif (battleShipName.equals(\"AircraftCarrier\")) {\n\t\t\tshipSize = 5;\n\t\t} else if (battleShipName.equals(\"Battleship\")) {\n\t\t\tshipSize = 4;\n\t\t} else if (battleShipName.equals(\"Submarine\")) {\n\t\t\tshipSize = 3;\n\t\t} else if (battleShipName.equal... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the Theme attribute | public void setTheme(String val) {
_theme = val;
} | [
"public void setTheme(String theme) {\n this.theme = theme;\n }",
"private void setTheme() {\n\t\tLog.i(LOG_TAG, \"setTheme\");\n\n\t\tSharedPreferences preferences = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tthis.themeString = preferences.getString(\"theme_scheme\",\n\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine whether this pattern matches a given Node within the subtree rooted at a given anchor node. This method is used when the pattern is used for streaming. | public boolean matchesBeneathAnchor(NodeInfo node, NodeInfo anchor, XPathContext context) throws XPathException {
return internalMatches(node, anchor, context);
} | [
"@Override\n public boolean matchesBeneathAnchor(NodeInfo node, NodeInfo anchor, XPathContext context) throws XPathException {\n return internalMatches(node, anchor, context);\n }",
"public boolean matchesBeneathAnchor(NodeInfo node, NodeInfo anchor, XPathContext context) throws XPathException {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calcula as distancias da rotas mapeadas no arquivo na propriedade 'distance.routes' | static public Route[] calculateDistance(){
CalculateDistance cd = new CalculateDistance();
return cd.calculateAll();
} | [
"public abstract double getRouteWalkingDistance();",
"public double calculateRoute(int points[]) {\r\n double route = 0;\r\n for (int i = 0; i < points.length - 1; i++) {\r\n route += distanceMatrix[points[i]] [points[i + 1]];\r\n }\r\n return route;\r\n }",
"public dou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the functionKey property: Function or Host key for Azure Function App. | public AzureFunctionLinkedService withFunctionKey(SecretBase functionKey) {
if (this.innerTypeProperties() == null) {
this.innerTypeProperties = new AzureFunctionLinkedServiceTypeProperties();
}
this.innerTypeProperties().withFunctionKey(functionKey);
return this;
} | [
"public T withChashkeyFunction(Function func)\n {\n this.chashkeyFunction = func;\n return self();\n }",
"public void setFunctionId(Integer functionId) {\r\n this.functionId = functionId;\r\n }",
"public SecretBase functionKey() {\n return this.innerTypePrope... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a Socket Channel that is set in the nonblocking mode | protected SocketChannel makeNonBlockingSocketChannnel() throws IOException {
SocketChannel sockChannel = SocketChannel.open();
sockChannel.configureBlocking(false);
//sockChannel.setOption(StandardSocketOptions.SO_LINGER, true);//Set the option to SO_LINGER
sockChannel.setOption(Standard... | [
"protected ServerSocketChannel makeNonBlockingServerSocketChannnel() throws IOException, SocketException {\n\n //Opening up a server Socket Channel\n ServerSocketChannel ssChannel = ServerSocketChannel.open();\n //Set to non-blocking\n ssChannel.configureBlocking(false);\n //Set t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the totalSemiCreditCardOverdueCount6M value for this DetailedPbocStatisticsInfo. | public java.lang.Integer getTotalSemiCreditCardOverdueCount6M() {
return totalSemiCreditCardOverdueCount6M;
} | [
"public java.lang.Integer getTotalCreditCardOverdueCount6M() {\n return totalCreditCardOverdueCount6M;\n }",
"public void setTotalSemiCreditCardOverdueCount6M(java.lang.Integer totalSemiCreditCardOverdueCount6M) {\n this.totalSemiCreditCardOverdueCount6M = totalSemiCreditCardOverdueCount6M;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generates a new unique ID for all contracts: | @Override
public long generateNewContractId() {
return idCounter++;
} | [
"default String generateId() {\n\t\treturn \"ier-\" + A3ServiceUtil.generateRandonAlphaNumberic(15, 15, \"\");\n\t}",
"public void generateID()\n {\n ID = this.hashCode();\n }",
"@Override\r\n protected String generateId() {\r\n return String.format(\"S%04d\", nextId++);\r\n\r\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the amount of buffs in the list of buffs. | public int amountOfBuffs() {
return buffs.size();
} | [
"public final int getBuffCount()\r\n\t{\r\n\t\treturn getEffects().getBuffCount();\r\n\t}",
"public int size() {\n int cardCount = 0;\n\n for (int x = 1; x < this.list.length; x++) {\n if (this.list[x] instanceof BaseballCard)\n cardCount++;\n else\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Updates the animation box values | private void updateBoxValueMap() {
this.prevAnimationBoxValues.clear();
this.prevAnimationBoxValues.putAll(this.animationBoxValues);
this.animationBoxValues.clear();
} | [
"public void updatePlottingValues(){\n\n for(int i=0; i<plottingValues.length; i++){\n\n plottingValues[i] = animationViewHeight - solutionValues[i+1] ;\n\n }//end of for loop\n\n }",
"private void updateVariables() {\n for (TpAnimatedVariable var : variables) {\n va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use StreamingRecognizeResponse.newBuilder() to construct. | private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"public io.grpc.stub.StreamObserver<cobaltspeech.cubic.CubicOuterClass.StreamingRecognizeRequest> streamingRecognize(\n io.grpc.stub.StreamObserver<cobaltspeech.cubic.CubicOuterClass.RecognitionResponse> responseObserver) {\n return asyncBidiStreamingCall(\n getChannel().newCall(getStreamingRec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Align the bottom of webelement to the bottom of browser. | public static void alignToBottom(WebElement element) throws SeleniumPlusException{
try{
StringBuffer jsScript = new StringBuffer();
jsScript.append(JavaScriptFunctions.scrollIntoView());
jsScript.append("scrollIntoView(arguments[0], arguments[1]);\n");
executeJavaScriptOnWebElement(jsScript.toString(), e... | [
"public void alignBottom() {\n\t\ttop.bottom();\n\t}",
"protected void scrollToBottom() {\r\n\t\tContainer parent = this.getParent();\r\n\t\tif (parent instanceof JViewport) {\r\n\t\t\t((JViewport) parent).setViewPosition(new Point(0, this.getHeight()));\r\n\t\t}\r\n\t}",
"public void scrollToBottom () {\n\t\t/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value list of property validThrough. Empty list is returned if the property not set in current object. | ImmutableList<SchemaOrgType> getValidThroughList(); | [
"public List<PropertyValidValue> getPropertyValidValues()\r\n\t{\r\n\t\treturn propertyValidValues;\r\n\t}",
"public List<PropertyValue> getPropertyValueList() {\r\n\t\treturn propertyValueList;\r\n\t}",
"@Override\r\n\tpublic PropertyValue[] getPropertyValues() {\r\n\t\treturn propertyValueList.toArray(new Pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines the number of valid (nonbridge) units a given unitOwner currently has | private int numberUnits(UnitOwner unitOwner) {
int units = 0;
for (Unit u : unitOwner.getUnits()) {
if (!(u instanceof Bridge)) {
units++;
}
}
return units;
} | [
"public boolean checkMaxUnitsIndividual() {\n int explorerCount = 0;\n int colonistCount = 0;\n int meleeCount = 0;\n int rangedCount = 0;\n\n for (int i = 0; i < this.units.size(); i++) {\n Unit unit = this.units.get(i);\n\n if (unit instanceof Colonist) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compare two ConnectN boards. | public static boolean compareBoards(final ConnectN firstBoard, final ConnectN secondBoard) {
if (firstBoard == null || secondBoard == null) {
return false;
}
if (firstBoard.getWidth() != secondBoard.getWidth()) {
return false;
}
if (firstBoard.getHeight() ... | [
"boolean compareBoard();",
"public static boolean compareBoards(final ConnectN... boards) {\n if (boards == null || boards.length == 0) {\n return false;\n }\n for (int i = 0; i < boards.length - 1; i++) {\n if (!(compareBoards(boards[i], boards[i + 1]))) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a string representation of the graph. This method takes time proportional to E + V. | public String toString() {
StringBuilder s = new StringBuilder();
String NEWLINE = System.getProperty("line.separator");
s.append(V + " vertices, " + E + " edges " + NEWLINE);
for (int v = 0; v < V; v++) {
s.append(v + ": ");
for (int w : adj.get(v)) {
... | [
"public String graphToString() {\n\t\tString g = \"\";\n\t\tfor (int i = 0; i < edges.size(); i++) {\n\t\t\tif (edges.get(i).isDirected()) {\n\t\t\t\tg += edges.get(i).getFrom().getValue().toString() + \" -- \" + edges.get(i).toString() + \" --> \"\n\t\t\t\t\t\t+ edges.get(i).getDestination().getValue().toString();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the value mimeattach Specifies the path of the file to be attached to the email message. An attached file is MIMEencoded. | public void setMimeattach(String strMimeattach, String type, String disposition, String contentID,boolean removeAfterSend) throws PageException {
Resource file=ResourceUtil.toResourceNotExisting(pageContext,strMimeattach);
pageContext.getConfig().getSecurityManager().checkFileLocation(file);
if(!file.exi... | [
"public void setAttach(String attach) {\n this.attach = attach;\n }",
"void setFileToAttach(String file);",
"public void setAttachPath(String attachpath) {\n\t\tthis.saveAttachPath = attachpath;\n\t}",
"public void setMime(String mime) {\n this.mime = mime;\n }",
"public void attach( Att... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Configurable'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseConfigurable(Configurable object) {
return null;
} | [
"abstract Configurable<?> getConfigurable();",
"public static Configuration getConfIfPossible(Object object) {\n if (object instanceof Configurable) {\n return ((Configurable) object).getConf();\n }\n return null;\n }",
"public boolean isConfigurable() {\n return this.configurable;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
turns the robot counterclockwise by 90 degrees | public void turnCCW() {
Motor.A.setSpeed(ROTATE_SPEED);
Motor.B.setSpeed(ROTATE_SPEED);
Motor.A.rotate(-convertAngle(leftRadius, width, 95.5), true);
Motor.B.rotate(convertAngle(rightRadius, width, 95.5... | [
"public void turnCW(){\n Motor.A.setSpeed(ROTATE_SPEED);\n Motor.B.setSpeed(ROTATE_SPEED);\n \n Motor.A.rotate(convertAngle(leftRadius, width, 95.5), true);\n Motor.B.rotate(-convertAngle(rightRadius, wid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ArrayPractice a2=new ArrayPractice(991,"HImen","prodction"); ArrayPractice a13=new ArrayPractice(992,"vivek","prodct"); | public static void main(String[] args) {
ArrayPractice[] ar= new ArrayPractice[1];
ar[0]=new ArrayPractice(99,"vivek","prodct");
for (Object o:ar) {
ar[0].employeeInfo();
}
// int[][] arr = {{2, 3}, {2, 5}, {2, 34}, {2, 5}};
//
//
// for (int[] temp : arr) ... | [
"public CourseGradesAnalyzable(){\r\n\t\tgrades[0] = new GradedActivity(); //initialize first array object\r\n\t\tgrades[1] = new GradedActivity(); //initalize second array object\r\n\t\tgrades[2] = new GradedActivity(); //initialize third array object\r\n\t\tgrades[3] = new GradedActivity(); //initialize fourth ar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
hasTypeAttrsInNodes SVC CIMOM sends typed CIMXML elements in a nonstandard way. The TYPE attribute is included in the VALUE or VALUE.ARRAY element not in the enclosing element as the standard says. | private static boolean hasTypeAttrsInNodes(Element pParentE) {
NodeList nl = pParentE.getChildNodes();
if (nl == null || nl.getLength() == 0) return false;
for (int i = 0; i < nl.getLength(); i++) {
Node n = nl.item(i);
String name = n.getNodeName();
if ("VALUE".equalsIgnoreCase(name) || "VALUE.ARR... | [
"protected abstract boolean hasElementsToCheckWithType();",
"public String getXMLTypeAttr();",
"private void serializeOutOfTypeSystemElements() throws SAXException {\n if (cds.marker != null) {\n return;\n }\n if (cds.sharedData == null) {\n return;\n }\n Iterator<OotsElem... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the cancer model object in the session | private void setCancerModel(HttpServletRequest request) {
String modelID = request.getParameter("aModelID");
System.out.println("<setCancerModel> modelID" + modelID);
AnimalModelManager animalModelManager = (AnimalModelManager) getBean("animalModelManager");
AnimalModel am = null;
... | [
"public Model(ChromatticSession chromSession) {\n this.session = chromSession;\n }",
"void setSession(Session session);",
"public void setSession(Session session);",
"public void setSession(Session session) { this.session = session; }",
"public void setSession(Session newSession);",
"private void cari... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function is used for Mobile No. Label on add vehicles page | public boolean isMobileNoLabelPresent() {
return isElementPresent(vehicleName.replace("Vehicle Name", "Mobile No."), SHORTWAIT);
} | [
"public boolean isMobileNoFieldPresent() {\r\n\t\treturn isElementPresent(vehicleNameField.replace(\"vehicle_name\", \"sim_no\"), SHORTWAIT);\r\n\t}",
"public void addMobile() {\n String model = modelTextField.getText();\n String size = sizeTextField.getText();\n double price = getCost();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Spring Data repository for the CommittedActivity entity. | @SuppressWarnings("unused")
@Repository
public interface CommittedActivityRepository extends JpaRepository<CommittedActivity, Long> {
/**
* @param id
* @return
*/
@Query(value = "select count(c) from CommittedActivity c where c.reference.id=:id")
Long findNumberOfCommittedActivityByReferenceId(@Param("id") Lo... | [
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ShipmentActivityRepository extends JpaRepository<ShipmentActivity, Long> {}",
"public interface CoveredActivityService {\n\n /**\n * Save a coveredActivity.\n *\n * @param coveredActivityDTO the entity to save\n * @return the persist... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copies the attributes from the specified Format into this H261Format. | protected void copy(Format f) {
super.copy(f);
stillImageTransmission = ((H261Format)f).stillImageTransmission;
} | [
"public H261Format() {\n \tsuper(ENCODING);\n }",
"public Object clone() {\n\tH261Format f = new H261Format();\n\tf.copy(this);\n\treturn f;\n }",
"public Format intersects(Format format) {\n\tFormat fmt;\n\tif ((fmt = super.intersects(format)) == null)\n\t return null;\n\tif (!(format instanceof H261F... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Overloaded methods for primitivetype arrays Return a Queriable which wraps the given primitivetype intarray | public static Queriable<Integer> array(int[] array) {
return new QueriableImpl<Integer>(new IntArrayIterable(array));
} | [
"public static <T> Queriable<T> array(T[] array) {\n\t\treturn new QueriableImpl<T>(new ArrayIterable<T>(array));\n\t}",
"public interface IPrimitiveArray extends IArray {\n /**\n * Primitive signatures.\n */\n public static final byte[] SIGNATURES = {\n -1, -1, -1, -1, (byte) 'Z', (byte) 'C', (byte) '... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string hosts_kv = 1; | java.lang.String getHostsKv(); | [
"public Builder setHostsKv(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n hostsKv_ = value;\n onChanged();\n return this;\n }",
"public void setHosts(List<String> hosts) {\n this.hosts... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.POGOProtos.Rpc.QuestProto.Context context = 4; | @java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {
@SuppressWarnings("deprecation")
POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);
return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;
} | [
"@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
In the XLIFF filter, the tag is a preformat tag when the attribute "mtype" contains "seg". | public Boolean validatePreformatTag(String tag, Attributes atts) {
if (!tag.equalsIgnoreCase("mrk")) // We test only "mrk"
return false;
if (atts != null) {
for (int i = 0; i < atts.size(); i++) {
Attribute oneAttribute = atts.get(i);
if (oneAttri... | [
"private String getSegmentValue(Element p_root)\n {\n StringBuffer result = new StringBuffer();\n\n Element seg = p_root.element(\"seg\");\n\n // TODO for all formats: strip the TMX 1.4 <hi> element.\n seg = removeHiElements(seg);\n\n if (m_tmxLevel == ImportUtil.TMX_LEVEL_1)\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
rpc getApplicationReport(.hadoop.yarn.GetApplicationReportRequestProto) returns (.hadoop.yarn.GetApplicationReportResponseProto); | public abstract void getApplicationReport(
com.google.protobuf.RpcController controller,
org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto request,
com.google.protobuf.RpcCallback<org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponseProto... | [
"public abstract void getApplicationReport(\n com.google.protobuf.RpcController controller,\n org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportRequestProto request,\n com.google.protobuf.RpcCallback<org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationReportResponsePro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Draw in G the top card of the foundation pile K if there is one, or a white card if pile K is empty. | private void drawFoundation(Graphics2D g, int k) {
if (_game.topFoundation(k) != null) {
paintCard(g, _game.topFoundation(k),
M_BOARDER + M_HORIZONTAL * (k + 2) + CARD_WIDTH * (k + 1),
M_BOARDER);
} else {
g.drawImage(getImage("playing-cards/... | [
"public Card drawTopCard() throws IllegalOperationException {\n\t\tif (cards.isEmpty()) {\n\t\t\tthrow new IllegalOperationException(\"Empty deck: no cards to show.\");\n\t\t}\n\t\telse return cards.pop();\n\t}",
"public Card drawCardFromTop() {\n Card temp = this.cards [this.topCardIndex];\n this... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Die 2 face value getter | public int getDie2FaceValue() {
return this.die2.faceValue;
} | [
"public int getDie1FaceValue() {\n return this.die1.faceValue;\n }",
"public void setDie2FaceValue(int value) {\n this.die2.faceValue = value;\n }",
"public int getFaceValue()\n {\n return this.faceValue;\n }",
"public double getFaceValue(){\n\t\t\n\t\treturn face ;\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This adds a property descriptor for the Index feature. | protected void addIndexPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_DeleteAssuranceCaseElement_index_feature"),
getString("_UI_PropertyDescr... | [
"protected void addIndexPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_Edge_index_feature\"),\n\t\t\t\t getString(\"_UI_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Estimates the initial yield of all territoryList in the region. | public void estimateInitialYield()
{
/*
if (region == null)
{
// At present the only Region that does not correspond to the region enum is
// the special US bookkeeping region. This region is special because there
// are income numbers in the csv file that can be translated to productio... | [
"public void estimateInitialUSYield()\n {\n /*\n // category divided by the region's people in 1000s of people.\n //\n for (EnumFood crop : EnumFood.values())\n { // Spec section 3.4 2) c) - For each food category find the sum of all 1981\n // state incomes.\n //\n long income = 0;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new MSFfile object. | public MSFfile(String inFile, String type) throws IOException
{
super(inFile, type);
} | [
"public MSFfile()\n {\n }",
"public TFileFactory() {\n this(PhysicalFileSystem.instance);\n }",
"public FileObjectFactory() {\n }",
"FileSystem create();",
"public S3FileHandle createNewFileHandle() {\r\n\t\tS3FileHandle fh = new S3FileHandle();\r\n\t\tfh.setBucketName(\"fakeBucket\");\r\n\t\tfh.se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
float monthlySalary = 4; | float getMonthlySalary(); | [
"public void setMontlySalary(double monthlysalary) {\n\n\n montlySalary = monthlysalary;\n }",
"public float getMonthlySalary() {\n return monthlySalary_;\n }",
"public void feeAssessment(){\n monthlyFee=monthlyFee+3;\n }",
"public int annualSalary() {\n return month... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column ych_organization.address_id | public Integer getAddressId() {
return addressId;
} | [
"java.lang.String getAddressId();",
"public Long getAddressId() {\n return addressId;\n }",
"public Integer getAddressid() {\n return addressid;\n }",
"public long getAddressId() {\n return addressId;\n }",
"public int queryAddressID()\n{ \n\t\t\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\tR... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the display name of the realm which is visible in the tab list or in the realm overview menu on the lobby. This method is not rate limited. | String realmDisplayName(); | [
"public String getRealmName();",
"Group.Flair getRealmDisplay(User user);",
"public String getRealm() {\n return getParameter(ParameterNames.REALM);\n }",
"public String getRealmName()\n { return authenticator.getRealmName();\n }",
"public String getRealmName() {\n if (_authValve != null) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Subscribe all callbacks to current record | private void subscribeRecord() {
for( Subscription subscription : this.subscriptions ) {
if( subscription.recordPathChangedCallback != null ) {
this.record.subscribe( subscription.path, subscription.recordPathChangedCallback, true );
}
else if( subscription.re... | [
"public void registerCallbacks() {\n getConnection().getParser().get().getCallbackManager().subscribe(this);\n }",
"public interface DBRecordListener<gDBR extends DBRecord<gDBR>>\n{\n\n /**\n *** Callback when record is about to be inserted into the table\n *** @param rcd The record about to b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete test installation directory and its contents as part of cleanup | private void deleteTestInstallationDirectory() {
final File testInstallationDirectory = new File(InstallationDirectoryUtil.WORKSPACE_DIR);
this.installationDirectoryUtil.recursiveFileDelete(testInstallationDirectory);
} | [
"private void cleanupTestFilesStructure() {\r\n testLoadFile.delete();\r\n testPurgeFile.delete();\r\n testLoadDirectory.delete();\r\n File[] files = testArchiveDir.listFiles();\r\n if (files != null)\r\n for (File file : files) {\r\n file.delete();\r\n }\r\n testArchiveDir.delete... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleexceptionName" $ANTLR start "entryRuletypeReference" InternalMASL.g:199:1: entryRuletypeReference returns [EObject current=null] : iv_ruletypeReference= ruletypeReference EOF ; | public final EObject entryRuletypeReference() throws RecognitionException {
EObject current = null;
EObject iv_ruletypeReference = null;
try {
// InternalMASL.g:199:54: (iv_ruletypeReference= ruletypeReference EOF )
// InternalMASL.g:200:2: iv_ruletypeReference= rulety... | [
"public final EObject entryRuleReferenceType() throws RecognitionException {\n EObject current = null;\n int entryRuleReferenceType_StartIndex = input.index();\n EObject iv_ruleReferenceType = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 29) ) { re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets (as xml) the "host" element | void xsetHost(org.apache.xmlbeans.XmlString host); | [
"public void setHost(String host);",
"public void setHost(Host host){\n\t\tthis.host = host;\n\t}",
"public void setHost(String host) {\n this.host = host;\n }",
"final public void setHost(String host) {\n this.host = host;\n }",
"public void SetHost(GUI host) {\n\t\tm_Host = host;\n\t}",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the check array at position. | protected abstract int getCheck(int position); | [
"private void retriveValue() \r\n\t{\r\n\t\t// check if array has data available before user input\r\n\t\tif (arrayDataCount == 0)\r\n\t\t\tSystem.out.println(\"The array is empty. Cannot search an empty array!\");\r\n\t\t// get user input for index\r\n\t\telse \r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter the inde... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set Gaussian blur RGB. | private void doGaussainBlurRGB(BufferedImage img, int minBlurX, int maxBlurX, int minBlurY, int maxBlurY, int x, int y,
int blurWidth, int blurHeight, int srcRgb) {
img.setRGB(x, y, srcRgb); // Nothing blur
// int[] inPixels = new int[blurWidth * blurHeight];
// int[] outPixels = new int[blurWidth * blurHeigh... | [
"public void setBlur(float blur);",
"public native MagickImage gaussianBlurImage(double raduis, double sigma)\n\t\t\tthrows MagickException;",
"public Blur blur();",
"public native MagickImage blurImage(double raduis, double sigma)\n\t\t\tthrows MagickException;",
"void blur();",
"Bitmap blur(Bitmap bitma... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get the matching score between the quadgrams of the given string and the quadgrams frequency analysis of the english language. | public static double getQuadGramStats(String txt) {
return quadStats.getScore(txt);
} | [
"public double scoreText(CharSequence text) {\n NGramTokenizer tokenizer = new NGramTokenizer(text, min, max);\n double tot = 0;\n for (CharSequence charSequence : tokenizer) {\n double s = scoreGram(charSequence);\n if (theLogger.isDebugEnabled()) {\n theLo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Match all possible UrlMappingInfo instances to the given URI and HTTP method | UrlMappingInfo[] matchAll(String uri, HttpMethod httpMethod); | [
"UrlMappingInfo[] matchAll(String uri, String httpMethod);",
"UrlMappingInfo[] matchAll(String uri, String httpMethod, String version);",
"UrlMappingInfo[] matchAll(String uri, HttpMethod httpMethod, String version);",
"UrlMappingInfo[] matchAll(String uri);",
"UrlMappingInfo match(String uri);",
"Set<Htt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a Conference (asynchronously) | public okhttp3.Call createAConferenceAsync(CreateConferenceRequest createConferenceRequest, final ApiCallback<ConferenceResult> _callback) throws ApiException {
okhttp3.Call localVarCall = createAConferenceValidateBeforeCall(createConferenceRequest, _callback);
Type localVarReturnType = new TypeToken<C... | [
"public ConferenceParams createConferenceParams();",
"ConferenceRoom createConferenceRoom();",
"java.util.concurrent.Future<CreateMeetingResult> createMeetingAsync(CreateMeetingRequest createMeetingRequest);",
"ConferenceRoomBooking createConferenceRoomBooking();",
"java.util.concurrent.Future<CreateAttende... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column thesis.uploadtime | public void setUploadtime(Timestamp uploadtime) {
this.uploadtime = uploadtime;
} | [
"public void setUploadtime(Date uploadtime) {\n this.uploadtime = uploadtime;\n }",
"public void setUploadTime(Date uploadTime) {\n this.uploadTime = uploadTime;\n }",
"public Date getUploadtime() {\n return uploadtime;\n }",
"public void setFileUploadTime(Date fileUploadTime) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo que zera o Sistema. | @Override
public void zerarSistema() {
sistema.zerarSistema();
} | [
"@Override\r\n\tpublic void encerrarSistema() {\r\n\t\tsistema.encerrarSistema();\r\n\t}",
"public void ligar() {\n\t\t\n\t\ttry {\n\t\t\tthis.sistemaOperacional.iniciarSistema();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Nao foi possivel iniciar o sistema:\");\n\t\t\tSystem.out.println(\"\\t\" + e.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate the maximum sample rate for generating a specific frequency considering a maximum buffer size. This method is interesting to have the best resolution for a signal. Values are rounded/trimmed down. (As long as they are positive, witch they should...) | public static int calcuclateMaxSampleSampleRate(int maxBufferSize, int MaxSampleRate, double lowerFrequency) {
int sampleRate = (int) (maxBufferSize * lowerFrequency);
return (sampleRate > MaxSampleRate) ? MaxSampleRate : sampleRate;
} | [
"private float getSignalRateLimit()\n {\n return (float)readShort(Register.FINAL_RANGE_CONFIG_MIN_COUNT_RATE_RTN_LIMIT) / (1 << 7);\n }",
"public int getMaxFrequency() {\n\t\t\tif (mMaxFrequency == 0) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + MAX_FREQUENCY);... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
uint64_t ChannelMonitorUpdate_get_update_id(const struct LDKChannelMonitorUpdate NONNULL_PTR this_ptr); | public static native long ChannelMonitorUpdate_get_update_id(long this_ptr); | [
"public static native long ChannelMonitor_get_latest_update_id(long this_arg);",
"public static native void ChannelMonitorUpdate_set_update_id(long this_ptr, long val);",
"public static native int UnsignedChannelUpdate_get_timestamp(long this_ptr);",
"public static native long DirectionalChannelInfo_get_last_... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Selects, returns and removes a random element from the bag | public String grab() {
int index = new Random().nextInt(count);
String element = ___________________
contents[index] = ___________________
count = ___________________
return ___________________
}
// Removes an instance of 's' from the bag
// Returns true if 's' was in... | [
"public Object removeRandom() throws EmptyBagException {\n //throw new UnsupportedOperationException(\"Not supported yet.\");\n modCount++; // Increase our modCount for the iterator\n if (isEmpty()) {\n throw new EmptyBagException(\"You borked it with an empty bag.\");\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the entity class is serializable or not. defined by annotations. | public boolean isSerializable() {
if (localConfig.serializable().equals(BooleanState.True))
return true;
else if (localConfig.serializable().equals(BooleanState.False))
return false;
else {
return globalConfig.serializable().equals(BooleanState.True);
}
} | [
"public boolean isENTITYType() {\r\n return type == ENTITY;\r\n }",
"Boolean getIsEntity();",
"public abstract boolean isSerializableIsolation();",
"Boolean getSerialized();",
"private boolean isAEntity(Class type) {\n boolean result = false;\n if (type.isAnnotationPresent(Entity.class)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the lastModifiedById value for this Zuora_Customer_HPM_Setting__c. | public void setLastModifiedById(java.lang.String lastModifiedById) {
this.lastModifiedById = lastModifiedById;
} | [
"public void setLastModifiedById(java.lang.String lastModifiedById) {\n this.lastModifiedById = lastModifiedById;\n }",
"public void setLastModificationId(long lastModificationId) {\r\n\t this.lastModificationId = lastModificationId;\r\n }",
"public java.lang.String getLastModifiedById() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a InvalidOperationException with no detail message. | public InvalidOperationException() {
super();
} | [
"public InvalidOperationException(String message) {\n super( message );\n }",
"public InvalidOperationException( String message )\n {\n super( message );\n }",
"public InvalidOperationException()\n {\n }",
"public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MES... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GENLAST:event_jLeerMouseClicked Se crea la funcion del boton eliminar donde mostrara el menu para eliminar textos | private void jEliminarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jEliminarMouseClicked
eliminarA e = new eliminarA();
e.setVisible(true);
this.dispose();
} | [
"private void lblRemoveObjMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblRemoveObjMouseExited\n Font font;\n font = lblRemoveObj.getFont();\n Map attribute = font.getAttributes();\n attribute.put(TextAttribute.UNDERLINE, -1); //set text to normal\n lblRemoveObj.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merges the contents of all provided entries so that the resulting entry will contain all attribute values present in at least one of the entries. | public static Entry mergeEntries(final Entry... entries)
{
ensureNotNull(entries);
ensureTrue(entries.length > 0);
final Entry newEntry = entries[0].duplicate();
for (int i=1; i < entries.length; i++)
{
for (final Attribute a : entries[i].attributes.values())
{
newEntry.addAt... | [
"public static Entry intersectEntries(final Entry... entries)\n {\n ensureNotNull(entries);\n ensureTrue(entries.length > 0);\n\n final Entry newEntry = entries[0].duplicate();\n\n for (final Attribute a : entries[0].attributes.values())\n {\n final String name = a.getName();\n for (final ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Exposes the given document in the XWiki context and the Velocity context under the 'tdoc' and 'cdoc' keys. | private void putDocumentOnContext(XWikiDocument document, XWikiContext context)
{
// Put the document on the XWiki context and the Velocity context.
VelocityContext vcontext = (VelocityContext) context.get("vcontext");
context.put("tdoc", document);
vcontext.put("tdoc", document.newD... | [
"private static void setDocumentContext(Document doc, Lookup ctx) {\n synchronized (ctxCache) {\n ctxCache.put(doc, ctx);\n }\n }",
"@DISPID(1611005962) //= 0x6006000a. The runtime will prefer the VTID if present\n @VTID(38)\n void refDoc(\n boolean oRefDoc);",
"private XWikiDoc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
public methods implementation / Method Name: StateListNonCertified Purpose of Method: Constructor for the StateListNonCertified class Arguments: none Returns: none Precondition: object not created Postcondition: object created, initial variables set | public StateListNonCertified()
{
// create new vector to store Employee_State_Certification_Data objects
stateList = new Vector<Employee_State_Certification_Data>();
} | [
"public StateListCertified()\n {\n // create new vector to store Employee_State_Certification_Data objects\n stateList = new Vector<Employee_State_Certification_Data>();\n }",
"StateList createStateList();",
"ListStates(ListStates listStates) {\n states = listStates.states.clone(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
remove the subscriber while calculating its index which corresponds to the same index in the key's list. | private void removeSubscriber(Function<? super E, Subscription> subscriber) {
int index = -1;
int i = 0;
Iterator<Function<? super E, Subscription>> iter = subscribers.iterator();
while (iter.hasNext() && index == -1) {
Function<? super E, Subscription> s = iter.next();
... | [
"void removeKey(int i);",
"public de.tif.jacob.core.definition.impl.jad.castor.CastorKey removeUniqueIndex(int index)\n {\n java.lang.Object obj = _uniqueIndexList.elementAt(index);\n _uniqueIndexList.removeElementAt(index);\n return (de.tif.jacob.core.definition.impl.jad.castor.CastorKey)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
map<int32, bool> i2b_map = 16; | java.util.Map<Integer, Boolean>
getI2BMapMap(); | [
"java.util.Map<Long, Boolean>\n getL2BMapMap();",
"java.util.Map<Integer, com.google.protobuf.ByteString>\n getI2BsMapMap();",
"java.util.Map<String, Boolean>\n getS2BMapMap();",
"java.util.Map<Integer, Integer>\n getI2IMapMap();",
"public java.util.Map<Integer, Boolean> getI2BMapMap() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Code List URI' attribute. Returning the 'Code List URI' attribute | public String getCodeListURI() {
return (codeListURI == null) ? new String() : codeListURI;
} | [
"public String getCodeListSchemeURI() {\r\n\t\treturn (codeListSchemeURI == null) ? new String() : codeListSchemeURI;\r\n\t}",
"public String getRefCode() {\n return (String)getAttributeInternal(REFCODE);\n }",
"public final String getCodeAttribute() {\n return getAttributeValue(\"code\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column tb_cust_url.cust_url_id | public void setCustUrlId(Integer custUrlId) {
setField("custUrlId", custUrlId);
} | [
"public Integer getCustUrlId() {\n return custUrlId;\n }",
"public void setCustId(Integer custId) {\n setField(\"custId\", custId);\n }",
"public void setEntityIdentifier(String url)\n {\n \tthis.url = url;\n }",
"public void setIdCustomer(int idCustomer) {\n this.idCustome... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the mouse down to false if the mouse button is released | public void mouseReleased(MouseEvent e) {
mDown=false;
} | [
"private void setMouseNotDown() {\n \t\t\tif (mouseDownItem != null) {\n \t\t\t\tmouseDownItem.setPressed(false);\n \t\t\t}\n \t\t\tmouseDownItem = null;\n \t\t}",
"@Override\n public void mouseReleased(MouseEvent e) {\n click = false;\n }",
"public void mouseReleased(MouseEvent e) { mouseDragging = false;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Name: InitializeHumanHand Synopsis: private void InitializeHumanHand() No params. Description: Used in order to initialize the human hand with 7 cards from the deck. Returns: None. Author: Nicole Millian Date: 3/10/2017 | private void InitializeHumanHand(){
for(int i = 0; i < 7; i++){
//Add to the human hand
handHuman.add(deck.get(i));
}
for(int i = 6; i >= 0; i--){
deck.remove(i);
}
/*
System.out.println("HUMAN");
for(int i = 0; i < handHuman.... | [
"private void InitializeComputerHand(){\n for(int i = 0; i < 7; i++){\n //Add to the computer\n handComputer.add(deck.get(i));\n }\n\n for(int i = 6; i >= 0; i--){\n deck.remove(i);\n }\n }",
"public void initialHands() {\n\t\tplayerHand = new Blackj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that creates the slide transitions. | private static void createSlideTransitions() {
if (slideList.size() < SLIDES_REGIONS_LIMIT) {
int length = (slideList.size() / 2) - 1;
if (slideList.size() % 2 == 0) {
length++;
}
for (int i = 0; i < length; i++) {
transitionList.add(slideList.get(i));
transitionList.add(slideList.get(... | [
"Transitions createTransitions();",
"private void createTimelineTransition() {\n timelineTransition = TranslateTransitionBuilder.create()\n .duration(new Duration(songLength))\n .node(timelineAnchorPane)\n .fromX(0)\n .toX(trackPixelWidth)\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the tunnel mode. The tunnel can be enable or disable by passing 'enable' or 'disable'. If the mode is set to 'auto', Linphone will try to establish an RTP session on the mirror port of the tunnel server. If the connection fails, the tunnel will be activated. | void tunnelSetMode(TunnelMode mode); | [
"void tunnelEnableDualMode(boolean enable);",
"void tunnelEnableSip(boolean enable);",
"boolean tunnelDualModeEnabled();",
"public void setPortMode(String mode){\r\n\t\tthis.portMode=mode;\r\n\t\tif(!portMode.equals(\"floating\")){\r\n\t\t\tthis.currentPort=(new Integer(portMode)).intValue();\r\n\t\t}\r\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
update actionbar title to display current forum & page no | public void updateTitle() {
String appName = getResources().getString(R.string.app_name);
HKGForum forum = getStaticFragment().getCurrentForum();
this.setTitle(String.format("%s - %d @%s", forum.mName,
getStaticFragment().getCurrentTopicPageNo(), appName));
} | [
"private void updateActionBarText() {\n\n if (currentView == CurrentView.READ_LAYOUT)\n {\n int index = mCurrentPage.getIndex();\n int pageCount = mPdfRenderer.getPageCount();\n previous.setEnabled( 0 != index);\n next.setEnabled(index + 1 < pageCount);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ methods Lists the characteristics of every photo in the array | public void listPhotos(){
for (int i=0; i < numPhoto; i++){
System.out.println(photoArray[i].toString());
}
} | [
"List<Bitmap> getRecipeImgSmall();",
"List<Bitmap> getFavoriteRecipeImgs();",
"public void listPictures()\r\n {\r\n int index = 0;\r\n while(index >=0 && index < pictures.size()) \r\n {\r\n String filename = pictures.get(index);\r\n System.out.println(index + \": \"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates message with specified source system and correlation ID. | public Message(ExternalSystemExtEnum sourceSystem, String correlationId) {
super(null);
Assert.notNull(sourceSystem, "the sourceSystem must not be null");
Assert.hasText(correlationId, "the correlationId must not be empty");
setSourceSystem(sourceSystem);
this.correlationId = c... | [
"private void createResourceMessageAction(Message receivedMessage, DataOutputStream os) throws IOException{\r\n\r\n\t\tSystem.out.println(LOG_TAG + \"Handler for CREATERESOURCE\");\r\n\r\n\t\tSystem.out.println(LOG_TAG + \"Send Ack\");\r\n\r\n\t\tCreateResourceMessage createMessage = new CreateResourceMessage(recei... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__S_Definition__Group_3__0__Impl" $ANTLR start "rule__S_Definition__Group_3__1" InternalGaml.g:7718:1: rule__S_Definition__Group_3__1 : rule__S_Definition__Group_3__1__Impl rule__S_Definition__Group_3__2 ; | public final void rule__S_Definition__Group_3__1() throws RecognitionException {
int rule__S_Definition__Group_3__1_StartIndex = input.index();
int stackSize = keepStackSize();
try {
if ( state.backtracking>0 && alreadyParsedRule(input, 424) ) { return ; }
... | [
"public final void rule__S_Definition__Group__3__Impl() throws RecognitionException {\n int rule__S_Definition__Group__3__Impl_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 417) ) { r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Required. Type of filter. .google.cloud.talent.v4beta1.CompensationFilter.FilterType type = 1 [(.google.api.field_behavior) = REQUIRED]; | @java.lang.Override
public com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType() {
com.google.cloud.talent.v4beta1.CompensationFilter.FilterType result =
com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.forNumber(type_);
return result == null
? com.google.cloud.t... | [
"@java.lang.Override\n public com.google.cloud.talent.v4beta1.CompensationFilter.FilterType getType() {\n com.google.cloud.talent.v4beta1.CompensationFilter.FilterType result =\n com.google.cloud.talent.v4beta1.CompensationFilter.FilterType.forNumber(type_);\n return result == null\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Exports current database to a GPX file. | public void exportTrackAsGpx() {
if (trackDir != null) {
File trackFile = new File(trackDir, FILENAME_FORMATTER.format(new Date()) + EXTENSION_GPX);
Cursor cTrackPoints = contentResolver.query(TrackContentProvider.CONTENT_URI_TRACKPOINT, null, null, null,
Schema.COL_TIMESTAMP + " asc");
Curso... | [
"abstract void export(Graph g, OutputStream out, URI base) throws Exception;",
"public void export() {\n CoreDao dao = new CoreDao(DaoConfig.forDatabase(dbName));\n for (String sql : createSqls) {\n try {\n dao.executeSQLUpdate(sql);\n } catch (RuntimeException e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a detached, initialised PgNamespaceRecord | public PgNamespaceRecord(Long oid, String nspname, Long nspowner, String[] nspacl) {
super(PgNamespace.PG_NAMESPACE);
set(0, oid);
set(1, nspname);
set(2, nspowner);
set(3, nspacl);
} | [
"public PgNamespaceRecord() {\n super(PgNamespace.PG_NAMESPACE);\n }",
"Namespace createNamespace();",
"protected void createEmptyObject() {\r\n try {\r\n // Instantiate a new object\r\n \tField xmlFld = (Field)mapping.getField();\r\n if (xmlFld.hasLastXPathFragment... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
establish group to contain all SCSoundControl nodes in SuperCollider | public void init() {
debugPrintln("Doing init.");
// can sanity check some things by requesting notification when nodes
// are created/deleted/etc.
// It does not notify when playBufs reach the end of a buffer, though.
// Too bad, that. Would have to poll.
sendMessage("/notify", new Object[] { 1 });
... | [
"public void assignControlGroup(Player player, int group){\n\t\tArrayList<Starship> playerShips = player.getControlledShips();\n\t\tfor(int i = 0; i < playerShips.size(); i++){\n\t\t\tif(playerShips.get(i).isSelected()){\n\t\t\t\tplayerShips.get(i).addControlGroup(group);\n\t\t\t}\n\t\t}\n\t}",
"private void subs... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the device by id. | public void delete(Long id) {
log.debug("Request to delete Device : {}", id);
deviceRepository.deleteById(id);
} | [
"public void delete(Long id) {\n log.debug(\"Request to delete Device : {}\", id);\n deviceRepository.delete(id);\n }",
"IDeviceCommand deleteDeviceCommand(UUID id) throws SiteWhereException;",
"Boolean deleteDevice(Integer id, String name, String authenticationKey);",
"@RequestMapping(value ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |