query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Tests the following scenario: active task exists against the inventory's child inventory where the active task is based on following task definition: part based dependent upon itself no other task dependencies Expected result: hasACTVDependentTasks() returns false, as only active tasks against the inventory itself are ... | @Test
public void testPartBasedTaskOnlyDependentUponItselfAlreadyExistsAgainstInvChild()
throws Exception {
// Initialize an active task against the target inventory.
TaskKey lTaskKey = buildPartBasedTaskThatIsOnlyDependentOnItself( iChildInventory );
// Get the task definition key.
... | [
"@Test\n public void tasksAreNotInitializedOnInventoryNonApplicableToTheRule() throws Exception {\n\n final PartNoKey lAircraftPart = Domain.createPart();\n\n final AssemblyKey lAircraftAssembly =\n Domain.createAircraftAssembly( new DomainConfiguration<AircraftAssembly>() {\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Main Method. The program begins here. | public static void main(String[] args) {
SliderExample w = new SliderExample("Slider Example"); //Creates an instance of this class
} | [
"public static void main(String [] args) {\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n }",
"public static void main (String [] args ) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String []args)\n {\n \n }",
"public stati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the array of shareHolders | public String[] getShareHolders() {
return this.shareHolders;
} | [
"public cn.com.fero.integration.riskcontrol.generate.ShareholdersInfo[] getShareholdersInfo() {\n return shareholdersInfo;\n }",
"protected QualityDomainShare[] getDomainShares() {\r\n return shares;\r\n }",
"public static String[] getShareStrings(){\n\t\tString[] strings = new String[Share.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verschickt eine ADD_NOTENachricht nach Definition im RFC 0815 | public void addNote(String id, String url, String data) {
String message = Message.format(Client.getClientHash(), id,
"ADD_NOTE", new String[]{url, data});
add2sendqueue(message);
} | [
"x351Tc57Wg164511Acknowledgementdocument70.iec62325.Reason addNewReason();",
"@Override\npublic boolean add(Integer e) {\n\treturn false;\n}",
"public interface AddMsgnoDisturbSingleOrBuilder extends MessageLiteOrBuilder {\n long getTargetUid();\n\n long getVersion();\n\n boolean hasTargetU... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This Function sets the Extension for loading and saving files | private void setExtensionFilters(FileChooser chooser){
chooser.getExtensionFilters().addAll(
new FileChooser.ExtensionFilter("TXT files (*.txt)", "*.txt"),
new FileChooser.ExtensionFilter("HTML files (*.html)", "*.html")
);
} | [
"public static void SetExtension(String ext)\n {\n Extension = ext;\n }",
"public void setExtension(Extension extension) {\n this.extension = extension;\n }",
"protected String getExtension () {\n return fileExtension;\n }",
"public WalletFileExtension() {\n\t\tthis(DEFAULT_FIL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculate the straight line distance squared | private double squareDistEstimate(DoublePoint point, IntPoint goal) {
double goalDist = Math.pow((distance(point, goal)), 2);
double subGoalToGoal = Math.pow((distance(goal, this.goal)), 2);
return subGoalToGoal+goalDist;
} | [
"public double distance(){\n double x= (this.x)*(this.x);\n double y= (this.y)*(this.y);\n double h = Math.sqrt(x+y);\n return h;\n }",
"public double distanceToPointSquared(Point p) {\n\t\tfinal double lineLengthSquared = getLengthSquared();\n\n\t\tif (lineLengthSquared == 0.0)\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Audit update(Audit object) throws SQLException {
return null;
} | [
"@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 name of the DB cluster parameter group. | public DBClusterParameterGroup withDBClusterParameterGroupName(String dBClusterParameterGroupName) {
setDBClusterParameterGroupName(dBClusterParameterGroupName);
return this;
} | [
"public void setPortGroup(String pgname) {\n\t\tthis.portgroup = pgname;\n\t}",
"public static String getColumnNameRunGroupName() {\n \t\treturn \"run_group_name\";\n \t}",
"public String get_groupname() throws Exception {\n\t\treturn this.groupname;\n\t}",
"public String getGroupName() {\n\t\treturn groupNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jPanel3 = new javax.swing.JPanel();
jLabel6 = new javax.swing.JLabel();
jLabel8 = new java... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end of method Regola in lettura eventuali valori NON associati al binder Dal DB alla UI Sovrascritto | protected void readSpecificFields() {
indirizzoTemporaneo = getIndirizzoCorrente();
indirizzoField.setValue(indirizzoTemporaneo != null ? indirizzoTemporaneo.toString() : "");
} | [
"public void anular() {\n if (aut_filtro_cliente.getValor() != null) {\r\n dia_dialogo.dibujar();\r\n tab_busca_titulo.setSql(\"select ide_titulo,ide_estado,des_ingreso,valor,num_titulo,fecha_pago from tes_ingreso where ide_titulo=\" + tab_tabla1.getValor(\"ide_titulo\") + \"\");\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Some more warm up | private static void runMeasurement(String regexp, String input, String text) {
regexParser(regexp, input, true, 10000);
javaParser(regexp, input, true, 10000);
System.out.println(text);
// measurements
regexParser(regexp, input, false, 10000);
javaParser(regexp, input, fa... | [
"@Benchmark\n public void wellHelloThere() {\n }",
"protected void mo4791d() {\n }",
"public void startBenchmark();",
"@Override\n public boolean stressTest ()\n {\n return true;\n }",
"@Override\r\n\tpublic void accelerate() {\n\r\n\t}",
"@Test\n @Tag(TestTypeTags.PROFILING_ONLY)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
endregion region Delete Plugin | void deletePlugin(String nameOrId); | [
"protected void delete_extra() {\n\t}",
"@Override\r\n\tpublic void delete(int arg0, IProgressMonitor arg1) throws CoreException\r\n\t{\n\t\t\r\n\t}",
"public static void Delete() {\n\n }",
"@Override\r\n\tpublic void delete(boolean arg0, IProgressMonitor arg1)\r\n\t\t\tthrows CoreException\r\n\t{\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If debugging is enabled for this flag, the Unix millisecond time at which to stop debugging. | public long getDebugEventsUntilDate() {
return debugEventsUntilDate;
} | [
"public static double stopWatch() \n { \n start = System.currentTimeMillis(); \n return start;\n }",
"public String getDebugStopReason() {\n return debugStopReason;\n }",
"public boolean isTraceInSeconds();",
"@Hook(\"java.lang.System->currentTimeMillis\")\r\n public static long curre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String querys = request.getParameter("query");
String queryComent = request.getParameter("queryComent");
String queryPoints = request.getParameter("queryP... | [
"@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }",
"@Override\n public void post(String path) {\n \n }",
"@Override\r\n\tpub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function to read tasks from the file and separate them into tasklist or archive tasklist | private void readFileContentOntoArrayList(ArrayList<Task> listOfTasks,
XMLDecoder fileReader, ArrayList<Task> listofTasksToWriteToArchive) {
int numberOfLines = (int) fileReader.readObject();
for (int iterator = startingIndex0; iterator < numberOfLines; iterator++) {
Task taskRead = new Task();
read... | [
"public static TaskListList loadTaskListList(String file) throws IOException\n\t{\n\t\tTaskListList list = new TaskListList();\n\t\ttry\n\t\t{\n\t\t\t// Open file\n\t\t\treader = new BufferedReader(new FileReader(file));\n\t\t\t\n\t\t\t// Outer loop\n\t\t\tString line = reader.readLine();\n\t\t\twhile (line != null... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / / | public String form(String paramString)
/* */ {
/* 349 */ if (this.fmt != 's')
/* 350 */ throw new IllegalArgumentException();
/* 351 */ if (this.precision >= 0) paramString = paramString.substring(0, this.precision);
/* 352 */ return pad(paramString);
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter for isTest Is this a rule created for testing | public void setIsTest(Boolean value) {
this.isTest = value;
} | [
"public boolean isTest() {\r\n\t\treturn isTest;\r\n\t}",
"public abstract boolean isTestable();",
"@Test\n void testSetFrenzy(){\n assertFalse(matchTest.setFrenzy());\n assertTrue(matchTest2.setFrenzy());\n }",
"@Ignore\r\n\t@Test\r\n\tpublic void addRuleTest() throws CoreServiceException... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View returnView = inflater.inflate(R.layout.fragment_sample, container, false);
final FragmentActivity fragmentActivity = getActivity();
if(returnView... | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }",
"@Override\n\tprotected View initView(LayoutInflater inflate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 40 /Coverage entropy=2.215121560924562 | @Test(timeout = 4000)
public void test040() throws Throwable {
ErrorPage errorPage0 = new ErrorPage();
Component component0 = errorPage0.u((Object) null);
assertTrue(component0._isGeneratedId());
assertEquals("wheel_ErrorPage", errorPage0.getComponentId());
} | [
"@Test(timeout = 4000)\n public void test140() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Doub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses the first line of the HTTP request and returns an array of three strings: reply[0] = method, reply[1] = object and reply[2] = version Example: input "GET index.html HTTP/1.0" output reply[0] = "GET", reply[1] = "index.html" and reply[2] = "HTTP/1.0" If the input is malformed, it returns something unpredictable | public static String[] parseHttpRequest( String request) {
String[] error = { "ERROR", "", "" };
String[] result = { "", "", "" };
int pos0 = request.indexOf( ' ');
if( pos0 == -1) return error;
result[0] = request.substring( 0, pos0).trim();
pos0++;
int pos1 = request.indexOf( ' ', pos0);
if( pos1 == -... | [
"private HTTPRequest parse(StringBuffer request) throws IOException {\n\t\tHTTPRequest rt = new HTTPRequest();\n\t\tInputStream is = new ByteArrayInputStream(new String(request).getBytes());\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\n\n\t\t// first line\n\t\tString requestMessageLine =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/final BlockingQueue blockingQueue = new ArrayBlockingQueue(5); new Thread(new Producer1(blockingQueue)).start(); new Thread(new Consumer1(blockingQueue)).start(); | public static void main(String[] args) {
final BlockingQueue<DelayInt> blockingQueue = new DelayQueue();
new Thread(new Producer2(blockingQueue)).start();
new Thread(new Consumer2(blockingQueue)).start();
} | [
"public static void main(String[] args)\r\n {\n BlockingQueue<Integer> bqueue\r\n = new ArrayBlockingQueue<Integer>(4);\r\n \r\n // Create 1 object each for producer and consumer\r\n Producer p1 = new Producer(bqueue);\r\n Consumer c1 = new Consumer(bqueue);\r\n \r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required string name = 2; | public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
return this;
} | [
"@Given(\"^A String name (.*)$\")\n public void givenInput(String name) {\n this.name = name;\n }",
"public String setName(final String name);",
"public Variable(String name){\n // Add missing code here\n if (name == null || name.isEmpty()){\n throw new IllegalArgumentExcep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get formatted error message for bundle message and exception with given locale. | public static String getExceptionMessage(BundleMessage message, Exception e, Locale locale) {
StringBuilder buffer = new StringBuilder();
if (message != null) {
buffer.append(message.format(locale)).append(' ');
}
if (e instanceof DavMailException) {
b... | [
"public String toString(Locale locale) {\r\n StringBuffer result = new StringBuffer();\r\n if (null != errorMessage) {\r\n result.append(errorMessage);\r\n } else {\r\n ResourceBundle bundle = ResourceBundle.getBundle(\"errors\", locale);\r\n String localizedStr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a six character word from the word list that is randomly scrambled. Remembers the selected word, can be checked by calling checkResult. | public String getASixCharWord() {
this.currentWord = this.wordsSix.get(this.randomGenerator.nextInt(this.wordsSix.size()));
return scrambleWord(this.currentWord);
} | [
"public String getRandWord(){\r\n int randomNum = ThreadLocalRandom.current().nextInt(0, wordlist.size() + 1);\r\n this.theWord = wordlist.get(randomNum);\r\n\r\n return this.theWord.toLowerCase();\r\n }",
"public String pickGameWord(){\n\t\tString pickWord;\n\t\tRandom r= new Random();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
User can pass in any object that needs to be accessed once the NonBlocking Web service call is finished and appropriate method of this CallBack is called. | public FaceCallbackHandler(Object clientData){
this.clientData = clientData;
} | [
"public void run() {\n getClientInstance().executeAsStringAsync(_request, new APICallBack<HttpResponse>() {\n public void onSuccess(HttpContext _context, HttpResponse _response) {\n try {\n\n //invoke the callback after response if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set KS ODTObjectData ID. | public void setKS_ODTObjectData_ID (int KS_ODTObjectData_ID)
{
if (KS_ODTObjectData_ID < 1)
set_ValueNoCheck (COLUMNNAME_KS_ODTObjectData_ID, null);
else
set_ValueNoCheck (COLUMNNAME_KS_ODTObjectData_ID, Integer.valueOf(KS_ODTObjectData_ID));
} | [
"public void setObjectid(Integer value) {\n set(4, value);\n }",
"public void setID (int sID);",
"@Override\n\t public void setIdentifier(Object dataURI)\n\t {\n\n\t\t this.identifier = dataURI;\n\t \n\t \n\t \n\t }",
"void setObjectId(int objid, int bip, int sid);",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Union Find : does not use union by rank here. O(mnlgmn) O(mn) | public int[][] matrixRankTransform2(int[][] matrix) {
int m = matrix.length, n = matrix[0].length;
Map<Integer, Map<Integer, Integer>> UFs = new HashMap<>();
Map<Integer, Integer> uf;
for(int r = 0; r < m; r++) {
for(int c = 0; c < n; c++) {
if(!UFs.containsKe... | [
"public interface IUnionFind<T> {\n\n /**\n * unites the dynamic sets that contain member1 and member2\n */\n public void UNION(T member1, T member2);\n\n /**\n * creates a new set whose only member (and thus representative) is member\n */\n public void MAKESET(T member);\n\n /**\n * returns a refere... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Looks up the MicroManager device type currently set for particular Device key. | public DeviceType getMMDeviceType(Devices.Keys key) {
return deviceInfo_.get(key).type;
} | [
"public DeviceType getDeviceType();",
"public abstract DeviceType getMMType();",
"public RealtimeBidding.BidRequest.Device.DeviceType getDeviceType() {\n RealtimeBidding.BidRequest.Device.DeviceType result = RealtimeBidding.BidRequest.Device.DeviceType.valueOf(deviceType_);\n return result == ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ erase all items and initialize all new | public void update()
{
//aaaaa
try
{
toDoEntry[] entries = this.mSource.getAllEntries();
for(int i = 0;i<entries.length;i++)
{
for(int k=0;k<entries.length-1;k++)
{
if( entries[k].getEndDate().after( entries[k+1].getEndDate() ) )
{
toDoEntry temp = entries[k];
entries[k] = ... | [
"public void reset(){\n items = new long[2];\n size = 0;\n }",
"public void removeAll(){\n numItems = 0;\n }",
"private void reset() {\n\t\t\tthis.offset = 1;\n\t\t\tthis.itemsProcessed.clear();\n\t\t}",
"public void clear() {\r\n items.clear();\r\n }",
"public void clear()\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that returns the ID of a given survey. | public Long getSurveyID(Survey survey) {
if (survey == null) {
return null;
}
String queryString = "SELECT s.id FROM " + survey.getClass().getSimpleName() + " s WHERE s = :survey";
Query q = entityManager().createQuery(queryString);
q.setParameter("survey", survey);
... | [
"@Override\n\tpublic long getSurveyMainId() {\n\t\treturn _surveyWriter.getSurveyMainId();\n\t}",
"public int getActiveSurveyId() {\n if (active) {\n return surveyId;\n } else {\n return -1;\n }\n }",
"public String identifier(Context context) {\n String identifier = \"\";\n fo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
ID of the project to set the unit balance for. string project_id = 1 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "<=50"]; | @java.lang.Override
public com.google.protobuf.ByteString
getProjectIdBytes() {
java.lang.Object ref = projectId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
... | [
"public BigDecimal getProjectID() {\r\n return projectID;\r\n }",
"public String getProjectId() {\n return projectId;\n }",
"public void setId(String tmp) {\n this.projectId = Integer.parseInt(tmp);\n }",
"public Builder setProjectId(\n java.lang.String value) {\n if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 81 /Coverage entropy=1.087074155537762 | @Test(timeout = 4000)
public void test081() throws Throwable {
ClassWriter classWriter0 = new ClassWriter((-2427));
MethodVisitor methodVisitor0 = classWriter0.visitMethod(1388, ";$<);k&>R%L29", "[txkJ\"391)oG*", ";$<);k&>R%L29", (String[]) null);
Label label0 = new Label();
methodVisitor0.v... | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a Ckan client. | public CkanClient(String URL, @Nullable String token, @Nullable HttpHost proxy) {
checkNotEmpty(URL, "invalid ckan catalog url");
this.catalogURL = removeTrailingSlash(URL);
this.ckanToken = token;
this.proxy = proxy;
} | [
"public Client createClient() {\n return new Client();\n }",
"public static DiemClient createClient() {\n return new DiemJsonRpcClient(JSON_RPC_URL, CHAIN_ID);\n }",
"public static KeyVaultClient create() {\n return Configuration.getInstance().create(KeyVaultClient.class);\n }",
"priva... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by cuiyy on 2017/10/26. | public interface RedisService {
void set(String key, String value);
String get(String key);
void setObject(String key, Object value);
Object getObject(String key);
boolean expire(String key, long timeout);
void delete(String key);
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n public int utilite() {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create student accommodations for the specified student. | void createStudentAccommodations(java.lang.String userName, com.ctb.bean.testAdmin.StudentAccommodations studentAccommodations) throws com.ctb.exception.CTBBusinessException; | [
"public Account createAccount(Student student) {\n\n\t\tSystem.out.println(\"hey there\");\n\t\tString s1 = \"09/22/2016\";\n\t\tSimpleDateFormat sd = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tDate date1 = null;\n\t\t\n\t\ttry {\n\t\t\tdate1 = sd.parse(s1);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-gen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches name, or null if its not found. | public static _Fields findByName(String name) {
return byName.get(name);
} | [
"public static _Fields findByName(String name)\r\n {\r\n return byName.get(name);\r\n }",
"public Field getField(String name) {\n for(Field field : fieldList) {\n if(field.getName().equals(name)) {\n return field;\n }\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
no output parameters repeated .dstore.engine.ac_GetActionLogs_Ad.Response.Row row = 4; | public Builder addRow(
io.dstore.engine.procedures.AcGetActionLogsAd.Response.Row.Builder builderForValue) {
if (rowBuilder_ == null) {
ensureRowIsMutable();
row_.add(builderForValue.build());
onChanged();
} else {
rowBuilder_.addMessage(builderForValue.... | [
"private void carryOutDirectLoggingAfterResponse()\r\n\t{\r\n\t\tfinal String kFName = \"carryOutDirectLoggingAfterResponse\";\r\n\r\n\t\tboolean result = false;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tresult = getSearchLogger().logTransaction(\r\n\t\t\t\tfRequestInfo, // Request\r\n\t\t\t\tnull, /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called just before this Command runs the first time | protected void initialize() {
if(Math.abs(amountTurn - Robot.driveTrain.getGyroRotation()) < 15) {
minimumSpeed= .65;
}else {
minimumSpeed = .3;
}
if (useVisionForAngle) {
amountTurn = Robot.driveTrain.getGyroRotation() + Robot.visionData.getCubeAngleRelative();
}
prevAngleError = 0;
prevAngle = ... | [
"@Override\n protected void initialize() {\n SmartDashboard.putString(\"Current Command\", \"Line Follow\");\n }",
"protected Hook() {\n startup();\n }",
"public void doBeforeCommand() {\n selenium.getPageExtensions().install();\n selenium.getRequestGuard().clearRequestDone();\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when an event occurs in a rendered instance of this Cell. The parent element refers to the element that contains the rendered cell, NOT to the outermost element that the Cell rendered. | @Override
public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context context,
Element parent, String value, NativeEvent event,
com.google.gwt.cell.client.ValueUpdater<String> valueUpdater) {
// Let AbstractCell handle the keydown event.
super.onBrowserEvent(context, parent, value, event, valueUpdate... | [
"@Override\n\t/*\n\t * * Called when an event occurs on a child element.\n\t */\n\tprotected void eventOccurredInDrawing(DrawingEvent ev) {\n\t\tif (!beingChanged) {\n\t\t\tbeingChanged = true;\n\t\t\t// Find the culprit, and re-layout...\n\t\t\trelayout(ev.getSource());\n\t\t\t// If the layout has changed, we shou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void destroy() {
} | [
"@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"
]
]
}
} |
Use this constructor when the user is not logged in and you don't want to store the route. | public Route(String start, String end, List<String> midpoints) {
this.userID = null;
this.routeName = "";
this.start = start;
this.end = end;
this.midpoints = midpoints;
} | [
"private Routes() {}",
"protected Route() {\n }",
"public StRoute() {\n this(DSL.name(\"st_route\"), null);\n }",
"public ProactiveRouting() {\r\n\t\tthis(false);\r\n\t}",
"public Router()\n {\n\n }",
"abstract void constructMobRoute();",
"public RoutesDao() {\n super(Routes.RO... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Not default constructor for LeaveGameMessage. | public LeaveGameMessage(TypeDisconnectionHeader typeDisconnectionHeader) {
this.typeDisconnectionHeader = typeDisconnectionHeader;
} | [
"public EndGameMessage(){\r\n \r\n }",
"public SMsgGameEnd()\n\t{\n\t}",
"public GameException(String message) {\n super(message);\n }",
"public EventMessage() {}",
"public Message() {\n // No-arg, No-op constructor\n }",
"private Message() {\n }",
"public Messag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets name from the field or get system user name name I hope it will work properly, because problems with encoding with security and OS | private String getMyName() {
return nameField.getText().trim();
} | [
"private void getUserName() {\n // Get user's name\n EditText nameField = (EditText) findViewById(R.id.name_field);\n Editable nameEditable = nameField.getText();\n name = nameEditable.toString();\n }",
"private String getProUserName(String name) {\n try {\n String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
All other Monsters lose 2 STAR. | private void primalBellow(int i) {
sendMessage.sendMessage(i, "POWERUP: All other Monsters lose 2 STAR\n");
for (int mon = 0; mon < monsters.size(); mon++) {
if (mon != i) {
monsters.get(mon).decreaseStars(2);
}
}
} | [
"public void killAndMate(){\n\t\tfor(int i = 0; ((2 * this.numRegistrars) / 3) + (i / 2) < this.numRegistrars; i += 2){\n\t\t\tRegistrar pair = matePair(regPopulation.get(i).getValue(), regPopulation.get(i + 1).getValue());\n\n\t\t\tthis.regPopulation.set(((2 * numRegistrars) / 3) + (i / 2), new Pair<Double, Regist... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public ResponseEntity<Photo> getPhoto(String id) {
Photo photo = Photo.builder()
.id(null)
.photo(null).build();
return ResponseEntity.ok(photo);
} | [
"@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"
]
]
}
} |
Test case number: 106 /Coverage entropy=1.4750763110546947 | @Test(timeout = 4000)
public void test106() throws Throwable {
XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);
// Undeclared exception!
try {
xmlEntityRef0.textInput((String) null);
fail("Expecting exception: RuntimeException");
} catch(RuntimeException ... | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes the binary format of a ModSpec grid. | public void writeBinaryFormat(final Grid3d grid, final String filePath) throws IOException {
// Write the header for for the binary format.
long dataStartAddr = writeBinaryHeader(grid, filePath);
// Write the data for the binary format.
writeBinaryData(grid, filePath, dataStartAddr);
return;
} | [
"@Override\n public void updateInStore(final Grid3d grid) throws IOException {\n // Check if the grid if rectangular (required for ModSpec).\n GridGeometry3d geometry = grid.getGeometry();\n if (!geometry.isRectangular()) {\n throw new IOException(\"The Grid must be rectangular for the ModSpec format... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void visit(SetOperationList arg0) {
} | [
"@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 empty map as we are not persisting | @Override
public Map<SeatHoldKey, SeatHoldState> loadInitialState() {
return new HashMap<>();
} | [
"@Override\n\tpublic Map toMap() {\n\t\treturn null;\n\t}",
"private static Map<Object,Object> getEmptyMap() {\n\n\t\tswitch (counter++ % 4) {\n\t\tcase 0:\n\t\t\treturn new Hashtable<Object,Object>();\n\t\tcase 1:\n\t\t\treturn new HashMap<Object,Object>();\n\t\tcase 2:\n\t\t\t//return new LinkedHashMap<Object,O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
name="fl0" ajax&folder=f10 name="fl 108624" | public ExploreDownloadUrlDefinition.ExploreDownloadUrlResponse explore(String url) throws ExploreDownloadUrlDefinition.UnreachableUrlException, ParsePageException {
httpclient = HttpClientFactory.createClient();
Document document = getPageDocument(url);
ExploreDownloadUrlDefinition.... | [
"public String mo7892a() {\n StringBuilder sb = new StringBuilder();\n for (String str : this.f5936a.keySet()) {\n if (sb.length() > 0) {\n sb.append(\"&\");\n }\n sb.append(str);\n String str2 = (String) this.f5936a.get(str);\n if ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Constructors of various flavors follow. | public TokenMgrError() {} | [
"private Object constructFlavoredObject(Object arg, DataFlavor flavor,\n Class clazz)\n throws IOException\n {\n final Class dfrc = flavor.getRepresentationClass();\n\n if (clazz.equals(dfrc)) {\n return arg; // simple case\n } else... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string rawRemotePath = 6; | com.google.protobuf.ByteString
getRawRemotePathBytes(); | [
"GeneralPath(String raw_path) {\n // Search for the colon in the string.\n int colon_index = raw_path.indexOf(\":\");\n\n if ((colon_index == -1) || (colon_index == 1)) {\n // If there is no colon in the string, the path is a local path.\n // Alternatively, if the colon is... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sends email to users from given list. Users are taken sequentally from database and inserted into map defaults under key Constants.VAR_USER. | public synchronized static int sendEmailToUsers(Map params, Collection<Integer> users) {
if (users.isEmpty())
return 0;
int count = 0, total = users.size();
if (log.isDebugEnabled())
log.debug("Sending email to " + total + " users");
List<Integer> workingSet;
... | [
"private void mailUsers() throws Exception {\n\t\tm_tourMailer = new TourMailer();\n\t\tfor(Map.Entry<Person, List<PlayList>> entry : m_userNotPaidLists.entrySet()) {\n\t\t\temailNotPaidLists(entry.getKey(), entry.getValue());\n\t\t}\n\n\t}",
"@Scheduled(cron =\"0 0 12 ? * THU\")\n\t//@Scheduled(fixedRate = 60000... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method checks for a null or empty SKU name. If not returns an errorCode. | public String isValidSkuName(final String name) {
String methodName = "isValidSkuName";
LOGGER.entering(CLASSNAME, methodName, "name:" + name);
String errorCode=null;
if(name==null || name.trim().length()==0){
errorCode="E012";
LOGGER.logp(Level.... | [
"public void setSku(@NotNull String sku) {\n this.sku = sku;\n }",
"public boolean hasSku() {\n return ((bitField0_ & 0x00000004) != 0);\n }",
"@Test(priority = 15)\n @Severity(SeverityLevel.NORMAL)\n @Features(\"Ashes\")\n @Stories(\"Products : Create\")\n @Description(\"A just cr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the value at top | public int peek() {
if(isEmpty()) { // special case: stack is empty, output error and return error code
System.out.println("Error, stack empty");
return -9999;
}
else // otherwise return the value at the top of the stack
return top.getData();
} | [
"public E top(){ return this.elements.getHead().getValue(); }",
"@VTID(37)\r\n double getTop();",
"@Override\n\tpublic E top() {\n\t\tif (isEmpty()) return null;\n\t\treturn data[f];\n\t}",
"long getTop();",
"public double getTop() {\n \treturn this.top;\n }",
"public int top() {\n return top;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test that no member id and inventory code or placement id passed in, ad call will be not be made | @Test
public void testSetNoIdentifierOnInterstitial() {
InterstitialAdView iad = new InterstitialAdView(activity);
Robolectric.addPendingHttpResponse(200, TestResponses.banner());
// Since window is not visible,
// loadAd() would return false in this case,
// calling request ... | [
"@Test\n public void getInventoryWithNonExistentId() {\n Inventory inventory = inventoryDao.getInventory(500);\n assertNull(inventory);\n }",
"@Test\n\tpublic void getMissingPetByAd() {\n\t\ttry {\n\t\t\tList<PetDTO> pets = petService.getPetsByAdvertisement(AD_ID2);\n\t\t\tassertTrue(pets.isEm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
works with the GroupView | public View getGroupView(final int groupPosition, boolean isExpanded,
View convertView, ViewGroup parent) {
final GroupHolder holder;
if (convertView == null) {
convertView = layoutInflater.inflate(R.layout.group_list, null);
holder = new GroupHolder();
holder.cb = (CheckBox) convertView.findV... | [
"@Override\n public void onGroupExpanded(int groupPosition) {\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n return true;\n }",
"@Override\n\t\t\tpublic void onGroupExpanded(int groupPosition) {\n\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Configures the ice cream flavor selection panel. | private void setUpFlavorSelectionPanel() {
// Create the menu for the different ice cream flavors.
JPanel flavorPanel = new JPanel();
flavorPanel.setLayout(new BoxLayout(flavorPanel, BoxLayout.Y_AXIS));
flavorPanel.setBorder(BorderFactory.createTitledBorder("Choose a Flavor:"));
... | [
"public void setFlavor(String newFlavor) { flavor = newFlavor; }",
"public ColorSelectPanel() {\n\n componentInit();\n }",
"private void populatePaletteSelector() {\n if (palettesPanel == null) {\n palettesPanel = new HorizontalPanel();\n }\n palettesPanel.clear();\n /... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Needs to drive EPICS | @Override
public void collectData() throws DeviceException {
// TODO Auto-generated method stub
} | [
"boolean hasEpInternalDecided();",
"@Test\n public void testScenario12() throws Exception {\n // No Extended Service Periods in this pdf.\n }",
"public boolean testPredefinedtype(EIfcworkcalendar type) throws SdaiException;",
"public static void m122412c() {\n FileModelExternal b = AppClou... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onLocalBrowserResultAlready(String resultURL,
String resultFileName, int requestCode) {
switch (requestCode) {
case LOCAL_BROWSER_JAR_REQUEST_CODE:
JarLib dependency = new JarLib();
String resultUrlRelative = StringHelper
.convertAbsoluteUrlToRelativeUrl(listModule
.getSe... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void setHighschoolclass2(String highschoolclass2) {
} | [
"@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"
]
]
}
} |
Builds a trie by inserting all words in the input array, one at a time, in sequence FROM FIRST TO LAST. (The sequence is IMPORTANT!) The words in the input array are all lower case. | public static TrieNode buildTrie(String[] allWords) {
TrieNode root= new TrieNode(null,null,null);
if (allWords.length==0)
{
return root;
}
Indexes word1index=new Indexes(0,(short)0, (short)(allWords[0].length()-1));
root.firstChild=new TrieNode(word1index,null,null);
if (allWords.length=... | [
"public static TrieNode buildTrie(String[] allWords) {\n\t\t/** COMPLETE THIS METHOD **/\n\t\t\n\t\tint counter = 0; // this keeps track of the number of inputs in the trie, so first input is 0, 2nd is 1\n\t\tshort matchCounter = 0; // keeps track of letters that match up between 2 prefixes\n\t\tTrieNode root = new... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public User findByCpf(String cpf) {
return userDAO.findByCpf(cpf);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(View arg0) {
if(!text4x.getText().equals("")){
shijian = "周四下午";
data = info.get(3).getAdmitTime();
initPopupWindow();
}
} | [
"@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"
]
]
}
} |
Sets whether or not eager loading is to be enabled. | public void setForceEagerLoading(boolean forceEagerLoadingIn)
{
this.forceEagerLoading = forceEagerLoadingIn;
} | [
"void setLazyInit(boolean b);",
"public void setIsLazy(boolean isLazy) {\r\n this.isLazy = isLazy;\r\n }",
"boolean isLazyFetch() {\n return fetchConfig.isLazy();\n }",
"public void setLazyInit(boolean lazyInit) {\n getConfiguration().setLazyInit(lazyInit);\n storeConfiguration();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the hyperlink control matching the given namePattern. | public Hyperlink getHyperlink(final Pattern namePattern)
throws AutomationException {
return new Hyperlink(
new ElementBuilder(this.getElementByControlType(namePattern,
ControlType.Hyperlink)));
} | [
"@Override\n public String getName()\n {\n return \"hyperlink\";\n }",
"public Pattern getPattern(int level, String name) {\n return getPattern(level, name, \"default\");\n }",
"public Hyperlink getHyperlink();",
"public static By getByBkLable(String bkName){\n return By.xpath... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The metric to compute the distance of values of the knowledge field. | public Metric getMetric(){
return metric;
} | [
"public double getDistance() {\n check(\"getDistance\");\n return distance;\n }",
"public double getDistance() {\n\t\t///must make distanc\n\t\treturn Math.abs(DISTANCE_RATE * encoder.get());\n\t}",
"public Double getDistance() {\r\n return distance;\r\n }",
"public double ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
line310statement0 > IF (W(((R)+(1)),(S))(0)) THEN 350 > line330statement0 line350statement0 | protected void line320statement0(){
if (((Ws[(((R) + (1)) - 1)][((S) - 1)]) != (0))) {
line350statement0();
}
else {
line330statement0();
}
} | [
"private int yyr34() {\n {\n ((BitmojiPT.ConditionalBlockNode) yysv[yysp-2]).addToList((BitmojiPT.ElifBlockNode) yysv[yysp-1]);\n yyrv = yysv[yysp-2];\n }\n yysv[yysp-=2] = yyrv;\n return 4;\n }",
"pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column app_message.apex3 | public void setApex3(String apex3) {
this.apex3 = apex3;
} | [
"public String message3() {\n return this.message3;\n }",
"@ApiModelProperty(example = \"test@test.com\", required = true, value = \"New message notification email 3.\")\n public String getAlertEmail3() {\n return alertEmail3;\n }",
"protected void setSfDocSendDetailDefaultVal(SfDocSendDetail ite... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public static C5176a m32890a() {
C5176a aVar;
synchronized (f22819b) {
if (f22818a == null) {
f22818a = new C5176a();
}
aVar = f22818a;
}
return aVar;
} | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public Integer insert(Result bean) {
return ResultDao.insert(bean);
} | [
"@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"
]
]
}
} |
Marks the save/update product operation as finished | public void productSaved(boolean updated) {
if (!updated) {
int idx = prodGrid.getGrid().getModel().getDataSource().size() - 1;
prodGrid.getGrid().getSelectionModel().setSelectionInterval(idx, idx);
}
setProductButtonsStatus(true, true, true);
enableProductFields(false);
prodBtnSave.setVisible(fal... | [
"public void finish() {\n\t\t\topsSinceCommit = 0;\n\t\t}",
"private void finish() {\n if (!isProcessed()) {\n commit();\n }\n }",
"public void finishAndSave();",
"void markFinished() {\r\n\t\tthis.finished = true;\r\n\t}",
"void endSave();",
"public void finish() {\n fini... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the current routing domain version. | public int getDomainVersion() {
return domainVersion != null ? domainVersion : 0;
} | [
"public String currentVersion();",
"String getTheLocalPortalPacketVersion();",
"public String getFullVersion() {\n return fullVersion;\n }",
"public String getServerVersion() {\n return this.serverVersion;\n }",
"String getLoadedVersion();",
"String configuredVersion();",
"String ipVersion... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Overridden toString method for singlylinked lists; | @Override
public String toString(){
if(isEmpty()){
return null;//returns null if the list is empty.
}
else{
String str = "";
Node current = head;
while(current != null){
str += current.data + " ";
... | [
"public String toString() {\r\n\t\tSLN<T> curr = this.head;\r\n\t\tString s = \"\";\r\n\t\tif (this.size==0) {\r\n\t\t\treturn s;\r\n\t\t}\r\n\t\ts = s+curr.toString();\r\n\t\tcurr = curr.next;\r\n\t\twhile (curr!=null) { //while current is still a node...\r\n\t\t\ts = s+(\" \"+curr.toString());\r\n\t\t\tcurr = cur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If not null, defines name from which this context is derived | void setParentDefinitions(Collection<String> parentDefinitions); | [
"public String getNameContext() {\n\t\treturn this.nameContext;\n\t}",
"public String getContextName()\n {\n return _contextName;\n }",
"default String getName() {\n return this.getClass().getSimpleName();\n }",
"@Override\r\n\t\t\tpublic String getName() {\n\t\t\t\treturn null;\r\n\t\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Value of consent options. | public static ConsentReminderOptions valueOf(final int value) {
return Arrays.stream(values())
.filter(v -> v.getValue() == value)
.findFirst()
.orElseThrow(IllegalArgumentException::new);
} | [
"public String getConsentStatus() {\n return this.preferences.getString(\"KEY_CONSENT_STATUS\", \"-1\");\n }",
"@NotNull\n @Size(min=1,max=128)\n public String getConsentId() {\n return consentId;\n }",
"public int getOptionValue() {\n return option_;\n }",
"public ConsentSDK... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set up the RTCConfiguration for the underlying WebRTC PeerConnection | public Builder setRTCConfiguration(PeerConnection.RTCConfiguration rtcConfiguration) {
this.rtcConfiguration = rtcConfiguration;
return this;
} | [
"public void setupConfigurationSettings() {\r\n\r\n this.registerSetting(Setting.databaseHost, \"localhost\");\r\n this.registerSetting(Setting.databasePort, 3306);\r\n this.registerSetting(Setting.databaseName, \"my_database\");\r\n this.registerSetting(Setting.databaseUsername, \"user\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the reduction reached a minimal term or the maximum number of reduction steps. | public void reductionFinished(boolean levelComplete); | [
"public void reducePermits(int reduction)\n\t{\n\t\t//NOTE WE SIMPLY WANT TO ENSURE THAT 0 doesn't cause an error, otherwise if the user supplies us garbage we will \n\t\t//let the actual semaphore decide.\n\t\tif(reduction != 0)\n\t\t{\n\t\t\tsuper.reducePermits(reduction);\n\t\t} \n\t\n\t}",
"protected /*virtua... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If this method returns the login was successfull, but if it throws an exception it failed. There are subclasses of LoginException for the specific kinds of failures. | public void login() throws LoginException {
LoginContext loginContext = new LoginContext(JAAS_MODULE_KEY, this);
loginContext.login();
} | [
"public boolean login() throws LoginException {\n/* */ try {\n/* 224 */ loadPasswordFile();\n/* 225 */ } catch (IOException iOException) {\n/* 226 */ LoginException loginException = new LoginException(\"Error: unable to load the password file: \" + this.passwordFileDisplayName);\n/* */ \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The "Sending Notification" Extension is an Single instance. it would hold the ApplicationContext, and alive within the whole Application. | public synchronized static ISendNotification getSendingNotifyExtension(Context context) {
if (Configuration.isTest()) {
sSendNotification = new DefaultSendNotification();
} else if (sSendNotification == null) {
try {
sSendNotification = (ISendNotification)PluginMa... | [
"private void sendNotification() {\n }",
"void messageSending(MessagingContext context);",
"private void SendNotification() {\n \tList<NotificationBean> notificationList;\n \tNotificationService notificationService = new NotificationService();\n \ttry {\n\t\t\tnotificationList = notificationService.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
endregion region Read Read all items from the indicated filepath. | public static ArrayList<Item> readItems(String filepath)
{
ArrayList<Item> result = new ArrayList<>();
try (Scanner in = new Scanner(new FileReader(filepath)))
{
while (in.hasNextLine())
{
String s = in.nextLine();
// if the string st... | [
"private void readItems() {\n File filesDir = getFilesDir();\n File todoFile = new File(filesDir, \"todo.txt\");\n try {\n items = new ArrayList<String>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<String>();\n e.pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end method recentButtonActionPerformed main method | public static void main( String args[] )
{
new AddressBookDisplay();
} | [
"@Override\n public void actionPerformed(ActionEvent e) {\n numOfEntriesLabel.setText(\"Number of Entries: \" + importGrades.length);\n getData();\n highLabel.setText(\"High: \" + max);\n lowLabel.setText(\"Low: \" + min);\n meanL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Source specific properties. These properties are managed by the source that writes the finding. The key names in the source_properties map must be between 1 and 255 characters, and must start with a letter and contain alphanumeric characters or underscores only. map<string, .google.protobuf.Value> source_properti... | public Builder removeSourceProperties(java.lang.String key) {
if (key == null) {
throw new NullPointerException("map key");
}
internalGetMutableSourceProperties().getMutableMap().remove(key);
return this;
} | [
"java.util.Map<java.lang.String, com.google.protobuf.Value> getSourcePropertiesMap();",
"com.google.protobuf.Value getSourcePropertiesOrThrow(java.lang.String key);",
"boolean containsSourceProperties(java.lang.String key);",
"com.google.cloud.datastream.v1alpha1.SourceConfigOrBuilder getSourceConfigOrBuilder... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert MLJob object to return Experiment object | protected <T extends MLJob> Experiment parseExperimentResponseObject(T object, Class<T> tClass)
throws SubmarineRuntimeException {
String jsonString = JsonUtils.toJson(object);
LOG.info("Upstream response JSON: {}", jsonString);
try {
return MLJobConverter.toJobFromMLJob(JsonUtils.fromJson(j... | [
"ExperimentModel getExperimentModel();",
"org.ga4gh.protobuf.Metadata.Experiment getExperiment();",
"com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder();",
"Job getJobInstance();",
"public Dataset<Row> exe(WJobMessage.WJob job) throws WCoreException;",
"public JobConvertInterfac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of DefaultEntityManager. | public DefaultEntityManager(Datastore datastore) {
super(datastore);
this.datastore = datastore;
} | [
"public EntityManager createEntityManager() {\n \treturn entityManagerFactory.createEntityManager();\n }",
"public static Base createEntity(EntityManager em) {\n Base base = new Base()\n .libelle(DEFAULT_LIBELLE)\n .description(DEFAULT_DESCRIPTION);\n return base;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
verify the required parameter 'namespace' is set | @SuppressWarnings("rawtypes")
private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.Pr... | [
"protected void validateNamespace(String namespace, Object entity) {\n if (Strings.isNullOrBlank(namespace)) {\n String message = \"No namespace supported\";\n if (entity != null) {\n message += \" for \" + KubernetesHelper.summaryText(entity);\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes an Integer to the given address | public int writeValue(int writeAddress, int newValue) throws Win32Exception
{
int writeSize = 4;
IntByReference written = new IntByReference(0);
Memory toWrite = new Memory(writeSize);
toWrite.setInt(0, newValue);
if(!myKernel32.WriteProcessMemory(openedProcess, writeAddress, toWrite, 1, written))
{
thr... | [
"public void write(Integer address, Integer value) {\n\t\tregisters[address] = value;\n\t}",
"public final void wb(int addr, int value)\n {\n \n }",
"public final void writeInt(int v) throws java.io.IOException { throw new RuntimeException(\"Stub!\"); }",
"public void writeInt(int value) throws I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prefix a '/' before each key | private Map<String, CommandSpec> createFlattenedCommands() {
Map<String, CommandSpec> prefixedCommands = new LinkedHashMap<>();
getFlattenedCommands(CommandGriefPrevention.getCommand()).entrySet().stream()
.forEach(entry -> prefixedCommands.put("/" + entry.getKey(), entry.getValue()));
... | [
"protected String getPrefixedKey (String key) {\n String prefixedKey;\n if (key==null || key.length () == 0) {\n prefixedKey = prefix;\n } else if (key.charAt (0) == '/') {\n prefixedKey = prefix + key;\n } else {\n prefixedKey = prefix + \".\" + key;\n }\n\n return prefixedKey;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that obtains the path of the value of a gpio. | private Path pathSystemGpio(final GpioDto gpio) {
final Path path = Paths.get(PATH_GPIO.concat("gpio").concat(gpio.getPinNumber()).concat("/value"));
return path;
} | [
"public Path getPath(){\n\t\treturn Paths.get(p);\n\t}",
"public static String getPath() {\n\t\treturn (path);\n\t}",
"public static String getPath() {\n return PATH;\n }",
"FsPath getPath();",
"public static String getPath(int key)\n {\n assert(myMap.containsKey(key));\n return myMap.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Will decrease the number of active readers and notify any waiting threads if necessary. | @Override
public void unlock() throws IllegalStateException {
// TODO Fill in implementation.
throw new UnsupportedOperationException("Not yet implemented.");
} | [
"public synchronized void unlockRead() {\n // FILL IN CODE\n long currentThreadId = Thread.currentThread().getId();\n //If current thread didn't hold the read clock, this function would return immediately\n if (null == readerMap.get(currentThreadId) || 0 == readerMap.get(currentThreadId)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
C++ TO JAVA CONVERTER NOTE: 'extern' variable declarations are not required in Java: extern str const_0, const_1, const_2, const_3, const_4, const_5; C++ TO JAVA CONVERTER NOTE: Java has no need of forward class declarations: class Colours; C++ TO JAVA CONVERTER NOTE: 'extern' variable declarations are not required in ... | public static void __init() {
const_0 = new str("red");
const_1 = new str("green");
const_2 = new str("purple");
const_3 = new str("yellow");
const_4 = new str("white");
const_5 = new str("black");
__name__ = new str("colour");
cl_Colours = new class_("Colours");
Colours.__static__();
} | [
"public interface ColorConstants {\n RGB BLACK = new RGB(0, 0, 0);\n RGB RED = new RGB(219, 0, 0);\n RGB WHITE = new RGB(255, 255, 255);\n RGB COMMENT_GREEN = new RGB(63, 127, 95);\n RGB KEYWORD_PURPLE = new RGB(127, 0, 85);\n RGB STRING_BLUE = new RGB(42, 0, 255);\n RGB FEINT_YELLOW = new RGB(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parse JSON string to construct CloudStackUser object | public CloudStackUser deserializeUser(String response)
throws CloudStackClientException {
log.debug("CloudStackJsonParser.deserializeUser entered: " +
"response = {}", response);
JsonNode rootNode = null;
try {
JsonParser jp = factory.createJsonParser(res... | [
"public static User fromJson(String jsonStr) throws JSONException {\n User user = new User();\n JSONObject json = new JSONObject(jsonStr);\n user.setId(json.getString(ID));\n user.setEmail(json.getString(EMAIL));\n user.setNickname(json.optString(NICKNAME));\n user.setCrede... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public VaccancyApplication get(long id) {
return (VaccancyApplication)sessionFactory.getCurrentSession().get(VaccancyApplication.class, id);
} | [
"@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"
]
]
}
} |
Execute the case on the visitor corresponding to this host. | public Object execute(IExtVisitor algo, Object... params); | [
"public Object caseAt(String id, Token host, Object... params);",
"@Override\r\n\tpublic Object executeVisitor(ITaskVisitor algo, Object... params) {\r\n\t return algo.caseAt(\"Dispense\", this, params);\r\n\t}",
"@Override\r\n\tpublic void visit(CaseExpression arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column dms_orgstation.tenant_id | public void setTenantId(Long tenantId) {
this.tenantId = tenantId;
} | [
"public void setTenantRealm(@Nullable Realm tenantRealm) { this.tenantRealm = tenantRealm;}",
"public void setTenant(List<Tenant> tenant) {\n this.tenant = tenant;\n }",
"@ApiModelProperty(required = true, value = \"Tenant id for which this object belongs to\")\n\t@NotNull\n\n\t@Size(min = 4, max = 12... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: Update argument type and name | void onFragmentInteraction(Uri uri); | [
"private void parseArgument() {\n }",
"@Override\n public void parseArguments(String[] args)\n {\n \n }",
"@Test\r\n\tpublic void capturingArguments() {\r\n\t}",
"public T userArgument();",
"java.lang.String getArgu1();",
"public Object_ArgumentTest(String name) {\n\t\tsuper(name);\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/.......................................Get events by producerEmail.............................................. | @GetMapping(value = "rsvpProducer/event/{email}/{id}")
public ResponseEntity<?> getEventById(@PathVariable String email, @PathVariable int id) {
ResponseEntity responseEntity;
try {
Event event;
event = rsvpEventService.getEventById(email,id);
responseEntity = ne... | [
"public List<UserMailHistory> getUserMailHistory(String email, String eventName);",
"public Object getParticipantByEventId(String eventId, List<String> mail, String role, String authToken,PMPAPIAccessLog accessLog);",
"public List<Event> getEvents(String email, String date, String location) {\n List<Even... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
obj_respond_to respond_to?( aSymbol, includePriv=false ) > true or false Returns true if this object responds to the given method. Private methods are included in the search only if the optional second parameter evaluates to true. | public RubyBoolean respond_to_p(IRubyObject mname) {
String name = mname.asJavaString();
return getRuntime().newBoolean(getMetaClass().isMethodBound(name, true));
} | [
"protected abstract boolean containsMethod(Method method);",
"public boolean isAllowedMethodCall(Object obj, String method);",
"boolean hasMethodCall();",
"public boolean containsInvocation();",
"boolean methodExists(Identifier pathToMethod);",
"private MethodMetadata methodExists(JavaSymbolName methodNam... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the number of passes | public void setTcVerificationsPass(String totalPass) {
tcVerificationsPass = totalPass;
} | [
"public void setNumberOfPasses(int npass) {\n _npass = npass;\n }",
"public void setNumFailures(int value) {\n this.numFailures = value;\n }",
"public void setCount(int count);",
"public void setNumSplits(int n){\n\n numSplits = n;\n \n}",
"public void setMultiRuns(int x);",
"public void s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
OnBindViewHolder to bind view holder to RecyclerView | @Override
public void onBindViewHolder(LayerListAdapter.LayerViewHolder holder, int position) {
if (mLayerList != null) {
Layer current = mLayerList.get(position);
holder.layerItemView.setText(current.getLayer());
} else {
holder.layerItemView.setText("No Layer");... | [
"void bindViewHolder(final ViewHolder holder);",
"protected abstract void onBindRecyclerViewHolder(VH holder, int position);",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n try {\n ViewHolder viewHolder = (ViewHolder) holder;\n viewHo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |