query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
TODO Autogenerated method stub | @Override
public Object set(int index, Object element) {
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"
]
]
}
} |
============================================================================================== UI METHODS ============================================================================================== Updating View | public void updateView(){
Log.v("TAG", "Calling UpdateView()");
//Starting thread
//Subscribing to DeviceStatus Thread
deviceStatusThread = DeviceStatusThread.getInstance(this, wiFiSettings.getIP());
deviceStatusThread.attach(this);
deviceStatusThread.start();
//U... | [
"@Override\n public void updateView() {\n view.update();\n }",
"public void updateView(){\n\t\tview.updateView();\n\t}",
"protected void update()\n {\n if (view != null)\n view.updateView();\n }",
"public void updateView(){\n\t\t setChanged();\n\t\t notifyObservers(\"Tasks\");\n\t}",
"pri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as attribute value for COLOR_ID using the alias name ColorId. | public void setColorId(String value) {
setAttributeInternal(COLORID, value);
} | [
"public void setColor(Color color) {\r\n colorData = color;\r\n }",
"@Deprecated\r\n void setAttrColor(ATTR_COLOR field, Color value);",
"public void setColor(String c)\n {\n\n /* missing code */\n }",
"public void setColor(java.lang.String value) {\n __getInternalInterfac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set internal render mode to one of FIELD_ALL, FIELD_LEFT or FIELD_RIGHT. Note that it is up to the caller to ensure that stereo is available before setting the mode to FIELD_LEFT or FIELD_RIGHT. The boolean isTRUE for double buffered mode, FALSE foe single buffering. | abstract void setRenderMode(Context ctx, int mode, boolean doubleBuffer); | [
"public void setStereoMode(int stereoMode) {\n uStereoMode = stereoMode;\n if ((canvas3d.view == null) ||\n \t (canvas3d.view.universe == null) ||\n \t (!canvas3d.view.active) ||\n (Thread.currentThread() == canvas3d.screen.renderer)) {\n doSetStereoMode(stereoMode);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return a list of the available argument groups. | Collection<ArgumentDefinitionGroup> getArgumentDefinitionGroups() {
return argumentDefinitionGroups;
} | [
"public Group[] getAvailableGroups();",
"private static String getAllGroups() {\n String groups = comp.separate();\n System.out.println(groups);\n return groups;\n }",
"Set<String> getAllowedGroups();",
"@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\n @VTID(24)\n I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static ViewFragment newInstance(String note_title, String note_content) {
ViewFragment fragment = new ViewFragment();
Bundle args = new Bundle();
args.putString(NOTE_TITLE, note_title);
args.putString(NOTE_CONTENT, note_content);
fragment.setArguments(args);
return... | [
"public static PostFragment newInstance() {\n PostFragment fragment = new PostFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public H... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
.com.proto.indexer.AssignValue value = 3; | AssignValueOrBuilder getValueOrBuilder(); | [
"ICSP assign(IVariable vi, String val);",
"public V setValue (N aNode, V aValue);",
"@Override\n public void assign (String name, int value){\n Closure exist = find_var(name);\n exist.getValues().put(name, new IntegerValue(value));\n }",
"public void setValue(String value)\n/* */ {\n/... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the amount of Adults residing in the room | public void setAdultOccupancy(int aOccupantsAdult){
occupantsAdults = aOccupantsAdult;
} | [
"public void setAdultsPerRoom(int value) {\n this.adultsPerRoom = value;\n }",
"public void setAvailability(int amount) {\n\t\tthis.availability+=amount; //s kolko q uvelichavame ili namalqvame(ako podadenoto chislo e s minus). Po tozi nachin nqam da se nalaga v drug klas, kogato q promenqme da wzimame ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "FALSE" $ANTLR start "STRING" | public final void mSTRING() throws RecognitionException {
try {
int _type = STRING;
int _channel = DEFAULT_TOKEN_CHANNEL;
// C:\\Home\\src\\workspace\\solrql\\grammar\\Solrql.g:385:7: ( STRING_SINGLE | STRING_DOUBLE )
int alt1=2;
int LA1_0 = inpu... | [
"boolean hasStringLiteral();",
"boolean hasLiteral();",
"@Override\r\n\tpublic void visit(LiteralString node) {\n\t\t\r\n\t}",
"@Override\r\n\tprotected Rule fromStringLiteral(String string) {\r\n\t\treturn string.endsWith(\" \") ? Sequence(\r\n\t\t\t\tString(string.substring(0, string.length() - 1)), W0())\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Envia el mensaje al buffer. | public void enviar( int pMensaje ) throws InterruptedException
{
mensaje =pMensaje;
buffer.almacenarMensaje(this);
} | [
"private void send(){\n\t\ttry{\n\t\t\tthis.writeBuffer.clear();\n\n\t\t\tthis.view.write(\"Client: '\" + this.outMessage + \"'\");\n\n\t\t\t// envoi du message avec ajout d'un '\\n' à la fin (protocol)\n\t\t\tthis.writeBuffer = \n\t\t\t\t\tthis.enc.encode(CharBuffer.wrap(this.outMessage + \"\\n\"));\n\n\t\t\t// si... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Mutator method clears the collection of TableRow objects. | public void clear() { rows.clear(); } | [
"public void clearTable() {\n data.clear();\n selectAllToggle();\n setRowsLabel();\n }",
"public void Clear()\r\n { \r\n _rowCollectionInternal.Clear(); \r\n }",
"@Override\n public void clear()\n {\n // Set each table entry to null and the size to zero\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_register_fourth_step, container, false);
etName = (EditText)rootView.findViewById(R.id.etName);
etEmai... | [
"@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"
]
]
}
} |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
processRequest(request, response);
} | [
"@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}",
"protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"--> get\");\r\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse respo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static ProfileFragment newInstance(int sectionNumber) {
ProfileFragment fragment = new ProfileFragment();
Bundle args = new Bundle();
args.putInt(ARG_SECTION_NUMBER, sectionNumber);
fragment.setArguments(args);
return fragment;
} | [
"public static PostFragment newInstance() {\n PostFragment fragment = new PostFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }",
"public H... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an Address object based on the values supplied by the user | public static Address inputAddressDetails() {
debug("inputAddressDetails() Call");
// The suburb input from the user
String suburb = JOptionPane.showInputDialog(null, "Please enter their suburb");
debug("Suburb: " + suburb);
if (suburb == null || suburb.equals("")) { // Chec... | [
"public Address getFromAddress();",
"Address findById(String id);",
"public Address getAddressById(int id);",
"Address shippingAddress();",
"private <T> T createAddress(List<Object> ctorArgs) {\n // leave this intact\n KoanSchoolMarm.getInstance().setObjectFactoryUsed(true);\n\n // TODO: fill in us... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called when the activity is first created. | @Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.about);
Typeface typeGoodDog = Typeface.createFromAsset(getAssets(), "GoodDog.otf");
aboutText = (TextView) findViewById(R.id.about_page);
aboutText.set... | [
"protected void onCreate() {}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}",
"@Override\n public void onCreate () {\n super.onC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Targeted form of the command. | public GetBudgetCmd(String username, String password, String campaign, String creative) {
super(username, password);
this.campaign = campaign;
this.creative = creative;
type = GetBudget;
} | [
"@Override\n\tpublic void command() {\n\n\t}",
"@ApiModelProperty(example = \"null\", value = \"'target' string parameter to call, echoed back \")\n public String getTarget() {\n return target;\n }",
"public String getTarget() \n\t{\n\t\treturn target;\n\t}",
"private String getCommand() {\n\t\treturn th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ runRscriptWithR execRscript() exec R with cmd to process the .R script. Note: if SPlus is to be used (and it exists on the system), then useSPlusFlag is true. The fullRunRfilePath and remapped Rscript will be set up to take this into account. It uses a batch file to call R via the Rtermprogram. For SPlus, the batch f... | private String execRscript()
{ /* execRscript */
int
idxSpaceInRunFilePath= fullRunRfilePath.indexOf(" "),
idxSpaceInRscriptInputPath= fullRscriptInputPath.indexOf(" "),
idxSpaceInRscriptOutputPath= fullRoutputFilePath.indexOf(" ");
String
Rcmd,
sRunQuote= (idxSpaceInRunFilePa... | [
"protected void runScript(ExecutionMonitor exec) throws KnimeScriptingException {\n\t\t\n\t\tassert m_con != null;\n\t\t\n\t\t// check preferences\n \tboolean useEvaluate = R4KnimeBundleActivator.getDefault().getPreferenceStore().getBoolean(RPreferenceInitializer.USE_EVALUATE_PACKAGE);\n\t\t\n \t\n\t\texec.se... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks a 21yearold followup youth's record against the report period 2 years prior. | Collection<FileAdvisoryAcrossReportPeriods> getCrossReportPeriodAdvisoriesForFollowup21Youth(
RecordToExport record, ReportingPeriod previousOutcomesReportPeriod, State state); | [
"public boolean youngerThan2(String currentDate){\n\t\tint currentYear = Integer.parseInt(currentDate.substring(0, 4));\n\t\tint currentMonth = Integer.parseInt(currentDate.substring(5, 7));\n\t\tint currentDay = Integer.parseInt(currentDate.substring(8));\n\t\t\n\t\tint birthYear = Integer.parseInt(DoB.substring(0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
View Course Category (Elayne) | public static String retrieveAllCategory(ArrayList<CourseCategory> categoryList) {
String output = "";
for (int i = 0; i < categoryList.size(); i++) {
output += String.format("%-50s %-50s\n", categoryList.get(i).getCategoryName(), categoryList.get(i).getCategoryDesc());
}
return output;
} | [
"List<Course> viewAllCourses();",
"public List<Lesson>ViewCourse();",
"public void displayCourses(RecyclerView recyclerView, String category) {\n sharedViewModel =\n new ViewModelProvider(requireActivity()).get(SharedHomeViewModel.class);\n // set a GridLayoutManager with default v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is responsible to check if a Item is a List of Category. | public static Category itemInListOfCategory(String item, ArrayList<Category> categoryList){
Category category = null;
for (int i=0; i<categoryList.size(); i++){
if(item.equals(categoryList.get(i).getCategoryName()))
category = categoryList.get(i);
}
return cat... | [
"public CategoryEntity isValidEntity(Category item) throws ValidationException {\n\n //mandatory fields check\n if(isNullOrBlank(item.getCategory_Id()) || isNullOrBlank(item.getCategory_Name())) {\n String errorMessage = String.format(MessageConstants.BLANK_RECORD_MSG,\"Category\");\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Call to Rating Rest API | @Override
public List<MovieCatalog> getMovieCatalogByUserId(String userId) {
RatingList ratingList=restTemplate.getForObject("http://localhost:8084/ratings/"+userId, RatingList.class);
List<MovieCatalog> movieCatalogList=new ArrayList<MovieCatalog>();
MovieCatalog movieCatalog=null;
for(Rating rating:ratin... | [
"@GET(\"ratings/{idExperto}\")\n Call<List<Rating>> getRatingExpert(@Path(\"idExperto\") String idExperto);",
"private MockResponse getRating(@NonNull final RecordedRequest request) throws JsonProcessingException {\n final int numparts = 5; // number of parts\n final int uuidLen = 36; // length of uuid\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ SUBMODULE: enqueue IMPORT: value(Object) EXPORT: ASSERTION: adds value to the queue | public void enqueue(Object value)
{
list.insertLast(value);
} | [
"public void enqueue(T value) {\r\n \tadd(value);\r\n }",
"ImmutableQueue<T> enqueue(T value);",
"public void enqueue(T value) {\r\n this.enStack.push(value);\r\n }",
"void enqueue(int value) {\n queue[rear++] = value;\n }",
"public void enqueue(E data);",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .CMsgDOTAFantasyPlayerHisoricalStatsResponse.PlayerStats stats = 2; | int getStatsCount(); | [
"public SteammessagesClientserver.CMsgClientGetUserStatsResponse.Stats getStats(int index) {\n return stats_.get(index);\n }",
"java.util.List<SteammessagesClientserver.CMsgClientStoreUserStats2.Stats> \n getStatsList();",
"private GameOverResponse(com.google.protobuf.GeneratedMessage.Builder<?> ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public LigneCommande update(LigneCommande t) {
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"
]
]
}
} |
Creates the default factory implementation. | public static ScenedlFactory init() {
try {
ScenedlFactory theScenedlFactory = (ScenedlFactory) EPackage.Registry.INSTANCE
.getEFactory(ScenedlPackage.eNS_URI);
if (theScenedlFactory != null) {
return theScenedlFactory;
}
} catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
... | [
"public GeneratedFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"private Factory() { }",
"public static Factory _factory() {\n\t\tif (factory == null) {\n\t\t\tsynchronized(ERXEC.class) {\n\t\t\t\tif(factory == null) {\n\t\t\tfactory = new DefaultFactory();\n\t\t}\n\t\t\t}\n\t\t}\n\t\treturn factory;\n\t}",
"privat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Start time of the tests | @Override
public void testRunStarted(Description description) throws Exception {
startTime = new Date().getTime();
//Print the number of tests before the all tests execution.
System.out.println("Tests started! Number of Test case: " + description.testCount() + "\n");
extent = ExtentR... | [
"@BeforeAll\n static void initStartTestTime(){\n System.out.println(\"Call Before All test\");\n startedAt = Instant.now();\n }",
"public static void startTime() {\n start = System.currentTimeMillis();\n }",
"public static String getTestExecutionStartTime() {\n\t\treturn m_testexec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
the peer selects a piece randomly among the pieces that its neighbor has but it has not requested from other neighbors | public int randomPiece(BitSet bitfield) {
int r = -1;
BitSet t = (BitSet)bitfield.clone();
synchronized(pp.allPeerInfo.get(peerID).bitField) {
t.andNot(pp.allPeerInfo.get(peerID).bitField);
}
Random rand = new Random();
//System.out.println("Waiting to access haveRequested.");
synchronized (pp.pf... | [
"public void selectOptimisticallyPrefNeighbors() {\n try {\n\n List<PeerManager> interstd_chok_neighbour = new ArrayList<PeerManager>();\n\n for (PeerManager pm : peerManagers) {\n if (pm.isPeerInterested && pm.isPeerChoked) {\n interstd_chok_neighbour.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Second toggle event handler | public void secondToggleAction(ActionEvent event) {
if (secondToggle.isSelected()) {
setToggle(secondBtn, secondBtnLabel);
ClientLogic.setCoil(client, 1);
} else {
unsetToggle(secondBtn, secondBtnLabel);
ClientLogic.unsetCoil(client, 1);
}
... | [
"@Override\n\tpublic void Toggle() {\n\t\t\n\t}",
"private void clickToggleButton2(){\n Toast.makeText(MainActivity.this,\"Toggle Button Two Click\",Toast.LENGTH_LONG).show();\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n onToggle(i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merge a new tuple into the aggregate, grouping as indicated in the constructor | public void mergeTupleIntoGroup(Tuple tup) {
// some code goes here
String key;
Field value = tup.getField(_afield);
/////////////////////IF THERE IS GROUPING////////////////////////
if(_gbfield != NO_GROUPING) {
key = tup.getField(_gbfield).toString();
if(hash.containsKey(key)){... | [
"public void mergeTupleIntoGroup(Tuple tup);",
"public void mergeTupleIntoGroup(Tuple tup) {\n // some code goes here\n Debug.log(\"merge tuple \" + tup);\n Field key;\n if (gbfield != NO_GROUPING) {\n key = tup.getField(gbfield);\n } else {\n key = default... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / API, data reads | @Override
public boolean hasEntry(final StoreOperationSource source, final OperationDiagnostics diag,
StorableKey key0)
throws StoreException
{
_checkClosed();
long operationTime0 = _timeMaster.currentTimeMillis();
final long nanoStart = (diag == null) ? 0L : _timeMas... | [
"@Override\n\tvoid readSpecificData() {\n\t\t\n\t}",
"public int readData();",
"private List<DataEntry> getData() throws RouteUnavailableException, NotAuthorizedException {\n String url = prop.getProperty(\"WAZE_API_URL_GET_DATA\") + bid;\n\n URL obj;\n try {\n obj = new URL(url)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | void mo10258a(int i, float f, boolean z, boolean z2); | [
"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 void surfaceCreated(SurfaceHolder holder) {
startPreview(mCamera, holder);
} | [
"@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"
]
]
}
} |
Convert the given object to string with each line except the first indented by 4 spaces. | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | [
"private String toIndentedString(Object o)\n/* */ {\n/* 607 */ if (o == null) {\n/* 608 */ return \"null\";\n/* */ }\n/* 610 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString(Object o)\n/* */ {\n/* 164 */ if (o == null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the unique instance. | public static StructureFire getInstance() {
if (_instance == null)
_instance = new StructureFire();
return _instance;
} | [
"public Object getInstance() {\n\t\treturn this.instance;\n\t}",
"public static UniqueApplicationInstance getInstance() {\r\n\t\treturn instance;\r\n\t}",
"public static synchronized Instance getInstance() {\n return instance;\n }",
"Boolean getUniqueInstance();",
"public java.lang.String getInstance() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Not sure if its good way to return hibernate bean or the bean object. | public int createStore(Store store); | [
"public Object getBean() {\n \t\treturn bean;\n \t}",
"public abstract E getBean();",
"@Override\n public Object getBean(String name) {\n\n Object bean = null;\n\n // 1. 싱글톤 빈이 있다면 반환\n if (singletonObjects.containsKey(name)) {\n return singletonObjects.get(name);\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onBackPressed() {
super.onBackPressed();
Intent ii = new Intent(this, MainActivity.class);
this.startActivity(ii);
this.finish();
} | [
"@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"
]
]
}
} |
Overridden to correctly compute the extremes for leaf cells which cross the international dateline. If this cell does not cross the dateline, this invokes the superclass' functionality. | @Override
protected void computeExtremesFromLocations(Dimension dim, float[] xs, float[] ys)
{
// Invoke the superclass functionality if this cell doesn't cross the international dateline.
if (!this.longitudesCrossDateline(dim, xs))
{
super.computeExtr... | [
"private void calcExtremes() {\n\t\t_minLat = Double.MAX_VALUE;\n\t\t_minLon = Double.MAX_VALUE;\n\t\t_maxLat = -Double.MAX_VALUE;\n\t\t_maxLon = -Double.MAX_VALUE;\n\n\t\tfor (int i = 0; i < mVertices.size(); i++) {\n\t\t\tVertex e = mVertices.get(i);\n\t\t\tif (e.get_shape_pt_lat() < _minLat) {\n\t\t\t\t_minLat =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
membaca property dari bean object | public Object getProperty (Object beanObject , String propertyName ) {
if ( beanObject== null)
return null ;
try{
PropertyDescriptor desc = getPropertyDescriptor(beanObject.getClass(), propertyName);
return desc.getReadMethod().invoke(beanObject, new Object[]{});
}catch ( Exception exc) {
log... | [
"@Override\r\n\tpublic Object getProperty(int arg0) {\n\t\t return this.get(arg0);\r\n\t}",
"public Property property() { return property; }",
"public abstract void getPropertyValues(Object bean, Object[] values);",
"public ExtendedBeanProperty(BeanProperty bean) {\n this.bean = bean;\n }",
"String getP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Term SBO:1001260 has two is_a relations. | @Test
public void test_SBO_isDescendantOf1() {
assertTrue(systemsBiologyOntology.isDescendantOf(SBO_child1_id, SBO_parent1_id));
} | [
"public boolean hasRelation(PatternInstance a, PatternInstance b);",
"public static Relationship analyze(final Plate a,\n\t\t\tfinal Straight b) {\n\t\treturn analyze(a, b, 0.0);\n\t}",
"public void changeVarInRelationsForJoin(){\n\t\t\n\t\tfor (int i = 0; i < schema_concept.size(); i++){\n\t\t\tint[] scon = (i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Description of the card | public void describe() {
System.out.println(name + ": " + value);
} | [
"public String getDataCardDescription() {\n return dataCardDescription;\n }",
"public String getDescription() { return desc; }",
"public String description() {\n\t\treturn \"An One Armed Bandit ! He asks me \" + getCost()\n\t\t\t\t+ \" pieces for a random Item. Maybe not worth..\\n\";\n\t}",
"@Overr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of the EventDetailsFragment. | public static EventDetailsFragment newInstance(Event event, int color) {
EventDetailsFragment f = new EventDetailsFragment();
Bundle args = new Bundle();
args.putString("title", event.getName());
args.putString("fragment_info", event.getInfo());
args.putCharSequenceArray("locati... | [
"public static EventsFragment newInstance() {\n return new EventsFragment();\n }",
"@Override\n public void triggerEventDetailsFragment(Event event) {\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n if (!EventDetailsFragment.class.getName().equals(fragm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the DEFAULT_THEME value for this ABSTRACTPORTAL_USERType. | public void setDEFAULT_THEME(java.lang.String DEFAULT_THEME) {
this.DEFAULT_THEME = DEFAULT_THEME;
} | [
"public void setDefaultTheme() {\n setTheme(R.style.AliUserAppThemeBase);\n }",
"public static void setDefaultTheme() {\n // If auto theme preference set on Mac\n if(isAutoThemeSupported() && Preferences.STORE.getBoolean(IPreferenceConstants.THEME_AUTO)) {\n // Dark\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check 3 values with incorrect delimiter | @Test
public void testAxis8() {
TextField AxisText = new TextField("1,2,,3");
boolean checkAxisText = moveTest.checkAxisFormat(AxisText);
assertFalse(checkAxisText);
} | [
"private boolean validate(String temp, int perLine) {\n\t\t// Iterate over each line and determine if the same number of delimiter\n\t\t// appears in each line\n\t\tboolean numDelimitersPerLineEqual = true;\n\t\tfor (String line : temp.split(\"\\n\")) {\n\t\t\tif ((delimiter == DELIMITER.CSV && line.split(\",\").le... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the unrestricted guessing game game over | public UnrestrictedAddTeam(UnrestrictedCardLayout parent, TraverseTree traverser) {
// create the border layout
super(new BorderLayout());
// add instructions
add(createInstructions(), BorderLayout.NORTH);
// add labels and text fields
add(createFields(), BorderLayout.CENTER);
// add submit ... | [
"public NumberGuessingGame() {\n this((int) (Math.random() * 100));\n }",
"Game() {\n this.numOfGuess = 0;\n this.finished = false;\n this.points = 0;\n this.number = (int) (Math.random() * range + 1); //!!!!! CHANGE NEEDED.\n }",
"public Game(){\n isGameOver = fa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | public void set(WebView webView, Integer num) {
try {
webView.scrollTo(webView.getScrollX(), num.intValue());
} catch (Exception e) {
e.printStackTrace();
}
} | [
"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"
]
]
}
} |
go over the entire list of service providers to match address not in the exclusion list | public Optional<ServiceDescriptor> getNext(Set<ServiceDescriptor> excludeList) {
int size = pool.size();
//not applicable for streams :)
for (int i = 0; i < size; i++) {
ServiceDescriptor next = getNext();
if (!excludeList.contains(next)) {
... | [
"@Test\n @SmallTest\n @Feature({\"Cronet\"})\n public void testThatDisabledProvidersAreExcluded() {\n final CronvoyProvider[] availableProviders = new CronvoyProvider[] {\n createMockCronetProvider(PROVIDER_NAME_FALLBACK, \"99.99\", true),\n createMockCronetProvider(PROVIDER_NAME_APP_PACKAGED, \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Write the test name when it is finished. | @Override
public void testFinished(Description description) throws Exception {
System.out.println(description.getMethodName() + " test is finished...\n");
} | [
"private void end(String testName) {\n if (!endDone) {\n endDone = true;\n cu.logInfo(ResourceChecker.Phase.END, \"after \" + testName);\n cu.check(\"after \"+testName);\n }\n }",
"@AfterEach\n public void finished(TestInfo testInfo) {\n LOGGER.info(\"{}: finished.\", testInfo.getDisplay... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method with simple purpose, to handle a federation membership request. An identity provider sends this request if there is a need to create federation relationship with another identity provider in trusted federated environment. | Response handleFederationRequest(FederationMembershipRequest membershipRequest); | [
"public GetFederationTokenResult getFederationToken(GetFederationTokenRequest getFederationTokenRequest) \n throws AmazonServiceException, AmazonClientException;",
"public void testStartFederationRequestHandler() {\r\n\r\n\t\t// create start federation request\r\n\r\n\t\tStartFederationRequest req = ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method sets the listener for when a user chooses the playlist item that they wanted to add the song to, very important! | public void listenForSelectedPlaylist(PopupMenu playlistToPickMenu)
{
System.out.println("Setting click listeners now");
playlistToPickMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item)
... | [
"@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tCurrentData.currentPlaylist = new Playlist(LibraryInfo.playlists.get(position).songs, \"__CURRENT_PLAYLIST__\"); \n\t\t\t\tonPlaylistPickedListener.playlistPicked(position);\n\t\t\t\t\n\t\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void setEnabled(boolean enabled) {
mEnable = enabled;
setGlowAlpha(0f);
setGlowScale(1f);
super.setEnabled(enabled);
} | [
"@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 GET of BookList screen for an employee | public void testBrowseBooks() throws Exception {
mockHttpServletRequest = new MockHttpServletRequest("GET", "/booklist.htm");
// inject objects Spring normally would
bookListController = new BookListController();
bookListController.setBookManager(bookManager);
bookListController.setApplicationSecurit... | [
"@GetMapping(\"\")\n public ResponseEntity<RepresentationModel<EmployeeModel>> getEmployees(\n @And({\n @Spec(path = \"fullName\", spec = Like.class),\n @Spec(path = \"email\", spec = Like.class),\n @Spec(path = \"title\", spec = Like.class),\n @Spec(path = \"department\", ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Asserts that passed local and remote branches are different (reference different commits). | public void assertLocalAndRemoteBranchesAreDifferent(RepositorySet repositorySet, String localBranch,
String remoteBranch) throws IOException {
ObjectId localBranchObjectId = objectIdOfBranch(repositorySet.getLocalRepoGit(), localBranch);
ObjectId remoteBranchObjectId = objectIdOfBranch(repo... | [
"@Test\n public void test2VersionsAreEqual() {\n Version v1 = new Version(\"2.0.0\");\n Version v2 = new Version(\"2.0.0\");\n Assert.assertEquals(v1, v2);\n }",
"public static void assertBoardsIdentical(Board expect, Board actual){\n String msg = String.format(\"Expected:\\n%s\\nAct... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a new object of class 'rul Java param'. | rulJava_param createrulJava_param(); | [
"JParamTypeRef createJParamTypeRef();",
"ParamDec createParamDec();",
"private ParameterUtils() {}",
"CallParam createCallParam();",
"<T> T param(String name);",
"public ParameterWrapper() {\n\t}",
"public Parameter() { }",
"protected Object getObj(NodeList nl) {\n for (int i = 0; i < nl.getLen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XMemberFeatureCall__Group_1_1__4" $ANTLR start "rule__XMemberFeatureCall__Group_1_1__4__Impl" InternalFormat.g:14096:1: rule__XMemberFeatureCall__Group_1_1__4__Impl : ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? ) ; | public final void rule__XMemberFeatureCall__Group_1_1__4__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalFormat.g:14100:1: ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? ) )
// InternalFormat.g:... | [
"public final void rule__XMemberFeatureCall__Group_1_1__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:6219:1: ( ( ( rule__XMemberFeatureCall__MemberCallArgumentsAssignment_1_1_4 )? ) )\n // InternalSc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the initialization time of the observation. | public double getInitTime()
{
return _initTimeSecs;
} | [
"public double getInittime() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readDouble(__io__address + 48);\n\t\t} else {\n\t\t\treturn __io__block.readDouble(__io__address + 32);\n\t\t}\n\t}",
"@java.lang.Override\n public double getTime() {\n return time_;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new SimTriggerModule with the specified trigger results for each of the four primary triggers. | SimTriggerModule(List<SinglesTrigger<E>> singles0Triggers, List<SinglesTrigger<E>> singles1Triggers,
List<PairTrigger<E[]>> pair0Triggers, List<PairTrigger<E[]>> pair1Triggers) {
this.singles0 = singles0Triggers;
this.singles1 = singles1Triggers;
this.pair0 = pair0Triggers;
... | [
"public void execute() {\n if (triggerSub.hasChanged()) {\n // initialize any new triggers\n Enumeration newtriggers = triggerSub.getAddedList();\n while (newtriggers.hasMoreElements()) {\n Trigger anewtrigger = (Trigger) newtriggers.nextElement();\n TriggerMonitor newmonitor = anewt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function will start the alphabeta search | public void run(GameState state, int depth) {
requiredDepth = depth;
int numStoneTaken = 0;
for (int i = 1; i < state.getSize(); i++) {
if (state.getStone(i) == false)
numStoneTaken++;
}
boolean turn = (numStoneTaken % 2 == 0 ? true : false);
value = alphabeta(state, depth, Double.NEGATIVE_INFINITY, ... | [
"public static void main(String[] args) throws IOException {\n searchCharByChar(\"manjit\", \"rameshmanjit\");\n }",
"public void findAnagramByOptions() {\n\t\tCollection<String> validWords = new Vector<String>();\n\n\t\tchooseDictionary();\n\t\tString option = chooseAlgorithm();\n\n\t\twhile (option !=... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Override of the landedOn function that removes the minimum between 200 and 10% of the player net worth from his cash | @Override
public void landedOn(Player p) {
int w = p.getNetWorth();
p.reduceCash(Math.min(200, (int)(w * 0.1)));
} | [
"private boolean isPlayerBankrupt() { return currentPlayer.getMortageWorth() + currentPlayer.getBalance() <= 0; }",
"public void lowerHealth(int amount){ \r\n this.health=this.health-amount; \r\n }",
"void unsetProtectedTurnPercent();",
"void unsetUnprotectedTurnPercent();",
"@Override\n\tpublic void co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes the instance variables This constructor is for loading in a garden | public ControllerTwo(Stage stage, Garden userSavedGarden) {
model.setGarden(userSavedGarden);
scale = model.getGarden().getHeight() + model.getGarden().getWidth();
loadFileChooser = new FileChooser();
fileChooserSave = new FileChooser();
if(model.getGarden().getBg() != null) {
viewTwo = new ViewTwo(stag... | [
"private void init() {\n\t\tinitDisplay();\n\t\tinitGL();\n\t\tinitVars();\n\t}",
"protected void init() {\r\n\r\n }",
"protected void init() {\n\t\t\r\n\t}",
"public void init() {\n path = \"C:/metarogue/\" + name.toLowerCase();\n // Initialize stuff\n worlds = new HashMap<Integer, Wo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
required .llql_proto.DataType col_type = 1; | public Builder mergeColType(com.vitessedata.llql.llql_proto.LLQLData.DataType value) {
if (colTypeBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
colType_ != com.vitessedata.llql.llql_proto.LLQLData.DataType.getDefaultInstance()) {
colType_ =
... | [
"public Builder setColTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n colType_ = value;\n onChanged();\n return this;\n }",
"public interface DataColumn\n{\n\t//#CM70033... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table co_invoice | public void or(Criteria criteria) {
oredCriteria.add(criteria);
} | [
"List<Invoice> getAllInvoice();",
"IInvoice byId( String invoiceId );",
"public List<Invoice> retrieveAllInvoicesList() throws SQLException {\n createInvoiceTableIfNotExists();\n connectionSource = new JdbcConnectionSource(databaseUrl, user, password) {\n };\n Dao<Invoice, String> ac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Customizes the base move method by imposing friction | @Override
public void move ()
{
applyFriction(SHIP_FRICTION);
super.move();
} | [
"public void move(double friction);",
"@Override\n public void move ()\n {\n \n applyFriction(SHIP_FRICTION);\n super.move();\n }",
"public void move() {\r\n if (speed > 0) {\r\n\r\n prevX = x;\r\n prevY = y;\r\n\r\n velocity.x = calculateFri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO : click event | @Override
public void onClick(View view) {
Intent intent = new Intent(context, SearchActivity.class);
startActivity(intent);
} | [
"private static void click() {\n\t\t\n\t}",
"@Override\n public void getClick() {\n }",
"@Override\n\tpublic void click() {\n\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\n\t\t}",
"@Override\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Attempts to insert new entry. | @Override
public void onClick(View v) {
do{
try{
//Breaks if all required fields are not filled
if(
jobType.getText().toString().matches("")
... | [
"private void insert(LogEntry logEntry) {\n synchronized (SampleLoggingService.LOCK_SERVICE) {\n try (Box box = SampleLoggingService.getIboxDb().cube()) {\n // Check to see if the log entry has been inserted already\n Optional<LogEntry> item = getFirstOrDefault(\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the object of the current major scope | public Scope getCurrMajorScopeObj() {
Integer count = this.scopeStack.size() - 1;
while (count >= 0) {
ScopeType scope = this.scopeStack.get(count);
if (scope == ScopeType.Function || scope == ScopeType.Program || scope == ScopeType.Procedure) {
Scope scopeObj = this.scopeObjStack.get(count);
return s... | [
"public Organism getCurrent()\r\n\t{\r\n\t\treturn parent;\r\n\t}",
"public IScope getParent();",
"public LocalAbstractObject getObject() {\n return object;\n }",
"public static Project getCurrent() { return _current; }",
"public JsObject getGlobalObject() {\n return getModelVisitor().getG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "items" attribute with a collection of Venta entities that are retrieved from Sucursal?cap_first and returns the navigation outcome. | public String navigateVentaList() {
if (this.getSelected() != null) {
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put("Venta_items", this.getSelected().getVentaList());
}
return "/venta/index";
} | [
"public String navigateSancionCollection() {\n if (this.getSelected() != null) {\n FacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"Sancion_items\", this.getSelected().getSancionCollection());\n }\n return \"/sancion/index\";\n }",
"public void setIte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Made protected, for testing | protected static native RecordJsoImpl create() /*-{
return {};
}-*/; | [
"protected void method_5557() {}",
"@Override\n }",
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"protected void mo4791d() {\n }",
"protected abstract void mo3493a();",
"private static void EX5() {\n\t\t\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Accessor methods for width and height. | double getWidth(){
return width;
} | [
"public int GetWidth()\n {\n return Width;\n }",
"public double getWidth()\n {\n return myWidth; \n }",
"int getWidth() {\n return width;\n }",
"public int Width(){\r\n return width;\r\n }",
"public int getWIDTH(){\n return WIDTH;\n }",
"public double getWidth() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Show error on GUI | public static void showError(String errorMessage){
JOptionPane.showMessageDialog(GUI,
errorMessage,
"Error",
JOptionPane.ERROR_MESSAGE);
} | [
"public void errorGUI(String str) throws RemoteException;",
"public void showErrorDialog() {\n\t}",
"void showErrorMsg(String error);",
"void showError(Exception e, Component parent);",
"void showError(ApplicationError error);",
"private void showError() {\n Platform.runLater(() -> {\n l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Proj = XMMatrixPerspectiveFovLH( XMConvertToRadians( 70.52877936f ), 1.0f, 2.0f, radius ); | static void CalcSpotLightProj( float radius, Matrix4f Proj )
{
Objects.requireNonNull(Proj);
Matrix4f.perspective(70.52877936f, 1.0f, 2.0f, radius, Proj);
} | [
"public native Matrix4 makePerspective(float left, float right, float top, float bottom, float near, float far);",
"Matrix4f getViewProjectionMatrix();",
"public Point perspectiveProjection() {\n\t\tPoint p2d = new Point((getX() * DIST) / (getZ() + DIST), (getY() * DIST) / (getZ() + DIST));\n\t\treturn p2d;\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Name for secondary attributes encoding contact form (e.g., facetoface, phone, Internet, postal mail, other). | public static String getSecondaryAttributeNameContactForm(){
return PersonalNetwork.ATTRIBUTE_PREFIX_EGOSMART + SECONDARY_ATTRIBUTE_NAME_SUFFIX_CONTACT_FORM;
} | [
"public java.lang.String getSecondarycontactname(){\n return localSecondarycontactname;\n }",
"public void setPrimarycontactname(java.lang.String param){\n \n this.localPrimarycontactname... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Instantiates a new jaxb context wrapper. | public JaxbContextWrapper(
JAXBContext jaxbContext) {
this(jaxbContext, null);
} | [
"private JAXBContext getJaxbContext ()\r\n throws JAXBException\r\n {\r\n // Lazy creation\r\n if (jaxbContext == null) {\r\n jaxbContext = JAXBContext.newInstance(ShapeSymbol.class);\r\n }\r\n\r\n return jaxbContext;\r\n }",
"public JAXBContext getContext()\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | private C1591g<C13647e, Void> m40463a(C13748k<C13647e> kVar, C13561e eVar, C13265a aVar, C13700an anVar) {
final String b = anVar.mo33335b();
final C13702ap c = anVar.mo33336c();
final C13748k<C13647e> kVar2 = kVar;
final C13561e eVar2 = eVar;
final C13265a aVar2 = 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"
]
]
}
} |
Populate the given property of the given content with the specified blob value. | protected void populateBlobProperty(String propertyName, Blob value, Content content) {
content.set(propertyName, value);
} | [
"public void setContent(gw.lang.Blob value);",
"public void setPictureBlob(Blob pictureBlob);",
"@Override\n\tpublic void setBlob(String arg0, Blob arg1) throws SQLException {\n\t\t\n\t}",
"public void setBlob(String arg0, Blob arg1) throws SQLException {\n\t\t\r\n\t}",
"OBlob getBlobProperty(String name);"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log.i("xionglu", "data:" + data.toString()); | @Override
public void onSuccess(JSONObject data) {
try {
JSONObject suitData = new JSONObject(data
.getString("suit"));
Suit suit = new Suit(suitData);
listener.onSuccess(suit);
} catch (JSONException e1) {
e1.printStackTrace();
}
} | [
"@Override\r\n public void onSuccess(String data) {\n com.example.zhujia.dx_shop.Tools.Log.printJson(\"tag\",data,\"header\");\r\n Message msg= Message.obtain(\r\n mHandler,0,data\r\n );\r\n mHandler.sendMessage(msg);\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a short[] attribute on the referenced object. The referenced object must exist, that is it need to have been written before by one of the write() methods. | public void setArrayAttr(String objectPath, String name, short[] value); | [
"public void set_data(short[] value);",
"public final native void setElement(short[] arr, int index, short value);",
"Shorts(final short[] array) {\n this.array = array;\n }",
"public void setElement_data(int index1, short value);",
"protected void _setShort(int index, int value)\r\n/* 270... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Closes the socket connection. | public void close() throws IOException {
close(false);
} | [
"public void close() {\r\n socket.close();\r\n }",
"public void close(){\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void close()\n {\n // Ignore if the socket is already closed\n if (socket == null)\n {\n return;\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that set the userDetailsService bean. | @Autowired
public void setUserDetailsService (UserDetailsService userDetailsService) {
// Set the value.
this.userDetailsService = userDetailsService;
} | [
"public void setUserDetailsService(final UserDetailsService userDetailsService) {\r\n this.userDetailsService = userDetailsService;\r\n }",
"@Bean\n protected UserDetailsService userDetailsService() {\n\n return new MyUserDetailService();\n }",
"@Bean\n\tpublic SimpleUserDetailsService us... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
db.execSQL("CREATE TABLE registeruser (ID INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT, password TEXT, notifications INTEGER)"); | @Override
public void onCreate(SQLiteDatabase db) {
db.execSQL("CREATE TABLE registeruser (username TEXT PRIMARY KEY, password TEXT, type INTEGER, notifications INTEGER)");
db.execSQL("CREATE TABLE newsarticle (id INTEGER PRIMARY KEY AUTOINCREMENT, category TEXT, title TEXT, image TEXT, content TEXT... | [
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"CREATE TABLE Login (id INTEGER PRIMARY KEY AUTOINCREMENT,Name TEXT ,Number INTEGER,Email TEXT , Password TEXT )\");\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS USER(use... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the current location of the processor. If the Location is unknown the processor should return an implementation of Location that returns 1 for the location and null for the publicId and systemId. The location information is only valid until next() is called. | public Location getLocation()
{
return current.getLocation();
} | [
"public Location getCurrentLocation() {\n if (currentLocation == null) {\n return null;\n }\n return currentLocation;\n }",
"@Field(0) \n\tpublic clingo_location location() {\n\t\treturn this.io.getNativeObjectField(this, 0);\n\t}",
"public com.commutestream.nativeads.protobuf... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Configure load properties file. | public void configure(Configuration config) throws FtpException {
// get the custom message directory
customMessageDir = config.getString("custom-message-dir", "./res");
// get all the languages
String languages = config.getString("languages", null);
if(l... | [
"private void loadProperties() {\n\t\ttry {\n\t\t\t// get a stream for the file\n\t\t\tInputStream input = new FileInputStream(\"config.properties\");\n\t\t\t\n\t\t\t// load the file into the properties object\n\t\t\tproperties.load(input);\n\t\t\t\n\t\t\t// close our stream\n\t\t\tinput.close();\n\t\t} catch(IOExc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Parses a expression like request.user.name Which translates to : http servlet request.getAttribute("user").getName(); The scopes are: request HttpServlet Request session HttpSession context ServletContext none protorabbit context (similar to request) | public Object parseExpression(String expression) {
String scope = null;
String[] path = {expression};
if (expression.indexOf(".") != -1) {
path = expression.split("\\.");
}
int start = 1;
Object target = null;
if (path.length > 1) {... | [
"@RequestMapping(\"user/getName\")\n public String getName(HttpServletRequest request){\n Object uName = request.getSession().getAttribute(\"name\");\n if(uName == null){\n return \"false\";\n }\n return uName.toString();\n }",
"public DirectoryPerson computeLoggedUser... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns whether login can be performed with the provided password. | boolean canLogin(String password); | [
"private boolean checkPassword(String password) {\n ServerRequest serverRequest = new ServerRequest();\n HashMap<String, String> credentials = new HashMap<>();\n String hashedPW = org.apache.commons.codec.digest.DigestUtils.sha256Hex(password);\n\n credentials.put(\"username\", \"admin\"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs an instance of this identifier info. | public InstanceMethodCALDoc(final String varName) {
super(varName);
} | [
"public ObjectIdentifier() {\n\t\tthis(UUID.randomUUID());\n\t}",
"public Identification() {\n super();\n }",
"public AttributeIdentifier() {\n\t}",
"private ObjectIdentifier() {\n }",
"MyIdentifier createMyIdentifier();",
"@Override\n\tprotected Identifiable make_getID() {\n\t\treturn new Id... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a Persons by id. will return a JSON containing the informations of that person | @GetMapping("/persons/{idPerson}")
public Person getPersonById(@PathVariable int idPerson) {
Person p = personService.getPersonById(Long.valueOf(idPerson));
if (p == null) {
throw new EntityNotFoundException("The person with id=" + idPerson + " is not found");
}
return p;
} | [
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Path(\"/persons/{personId}\")\n public Person getPerson(@PathParam(\"personId\") int idPerson) {\n \treturn people.readPerson(idPerson);\n }",
"@GetMapping(\"/personnes/{id}\")\n\tpublic String find(@PathVariable(\"id\") Long id) throws JsonProcessin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Construtor define os elementos das telas | public TelaSimulacao(Jogo j) {
super("TelaSimulacao Swing");
jogo = j;
Container c = getContentPane();
c.setLayout(new FlowLayout(FlowLayout.LEFT));
// Cria JTextField, JText Area e JLabel
jTextArea1 = new JTextArea(100,100);
jTextField1 = new JTextField(10);
jTextField2 = new JTextFie... | [
"public TExtensibleElements() {\n }",
"TipoAtributo createTipoAtributo();",
"public DiagramaClases(String titulo,String descripcion,Date dateCreacion) throws ProyectoExcepcion{\n super(titulo,descripcion,dateCreacion);\n elementos=new HashMap<>();\n relaciones=new ArrayList<>();\n }",... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To check for out of bound markers | private boolean checkOutBoundMarkers(){
if(destinationCoord != null && !mapRouting.withinPolygon(destinationCoord)){
Toast.makeText(MapActivity.this, "Out of COM1!", Toast.LENGTH_SHORT).show();
return true;
}
return false;
} | [
"@Override\n public boolean outOfBounds() {\n return false;\n }",
"protected void boundsCheck(long off, long sz) {\n/* 215 */ if (off < 0L) {\n/* 216 */ throw new IndexOutOfBoundsException(\"Invalid offset: \" + off);\n/* */ }\n/* 218 */ if (off + sz > this.size) {\n/* 219 */ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table advertisement | int deleteByPrimaryKey(Integer id); | [
"AdAdvert selectByPrimaryKey(Long advertId);",
"Advertise selectByPrimaryKey(Integer pkId);",
"List<Advertisement> findAll();",
"Adevertisement selectByPrimaryKey(Integer aid);",
"@Select({\n \"select\",\n \"`id`, `img_url`, `title`, `content`, `jump_url`, `app`, `upate_at`, `create_at`, \",\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
cuando el rango de threshold es mayor que el threshold minimo | @Test
@Transactional(propagation= Propagation.REQUIRED)
public void notFindByThresholdTest1() {
measurDao.save(measur);
measurDao.save(measur1);
BigDecimal measMaxthresholdP = new BigDecimal(8100);
BigDecimal measMinthresholdP = new BigDecimal(13000);
List<Measurement> lmeasur = measurDao.findByThr... | [
"public void setThreshold(int t){ threshold = t; }",
"void setThreshold(int th, int min_area);",
"public double getThreshold() {\n return threshold;\n }",
"void thresholdReached();",
"public double getThreshold()\r\n {\r\n return (threshold);\r\n }",
"static Boolean isThresh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a String of n spaces long | public String padSpace(int n) {
if (n < 0) {
n = 0;
}
String s = "";
for (int i = 0; i < n; i++) {
s = s + " ";
}
return s;
} | [
"public static String str(final int n){\n\t\treturn repeatTab(\"\\t\", n);\n\t}",
"private String space (int count)\r\n {\r\n String result = \"\";\r\n for (int i = 0; i <count; i++)\r\n {\r\n result = result +\" \";\r\n }\r\n return result;\r\n }",
"private String getSpaces... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ helps transfer between 2 accounts. | void transferBetween(String between, String between2, String between3, User user) {
int make = new Integer(between);
int make2 = new Integer(between2);
int amount = new Integer(between3);
if (user.accounts.size() < 2) {
JOptionPane.showMessageDialog(null, "You do not have en... | [
"@Override\n\tpublic boolean transfer(int amount, String toAccount, String fromAccount) {\n\t\treturn false;\n\t}",
"public void transferMoneyToOtherAccounts(Account a1, Account a2, double m);",
"public void transferIn(double amount, Account other){\r\n userAccount.add(amount);\r\n other.deduct(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtem o componente vermelho da cor | public int getRed () {
return this.color >> 16 & 0xFF;
} | [
"public VentanaCompra() {\n initComponents();\n \n }",
"ComponentCOR getComponentCOR ()\n {\n return myPartCOR;\n }",
"private static void visualizzaModelloCorrente() {\r\n\t\tif(Modello.isNull())\r\n\t\t\tSystem.out.println(MSG_NO_MODELLO);\r\n\t\telse \r\n\t\t{\r\n\t\t\tSystem.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets fields from the class | private Field[] getClassFields(Class<?> clazz) {
return clazz.getDeclaredFields();
} | [
"public FieldDescriptor[] getFields() {\r\n\t\tif (_fields == null) {\r\n\t\t\t_fields = _classDesc.getFields();\r\n\t\t}\r\n\t\treturn _fields;\r\n\t}",
"public Field[] getAllFields() {\n\t\tField[] fields = clazz.getDeclaredFields();\n\t\tField.setAccessible(fields, true);\n\t\treturn fields;\n\t}",
"private ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Should return a listing of available operations like | @RequestMapping(value="/resources.json", method=RequestMethod.GET, produces={MediaType.APPLICATION_JSON_VALUE})
public @ResponseBody Documentation showAvailableResources(
HttpServletRequest httpServletRequest) throws Exception {
UrlPathHelper urlPathHelper = new UrlPathHelper();
String basePath = ge... | [
"@Override\n\tpublic List<Operation> listOperation() {\n\t\treturn operationRepository.findAll();\n\t}",
"public List<OperationFacade> getOperations();",
"Set<Operation> getAvailableOperations();",
"private static void seeOperations() {\n System.out.println(\"Possible operations: \");\n for (Ope... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Utility function: Clear all the PointInts memorized in the ArrayList. Passed by the Iterator | public void clearPoints(Iterator<PointInt> it) {
while (it.hasNext()) {
PointInt pt = it.next();
data.map[pt.y][pt.x] = (char) 0;
}
} | [
"private void clearInts() {\n ints_ = emptyIntList();\n }",
"public void Clear() {\n OCCwrapJavaJNI.Interface_CheckIterator_Clear(swigCPtr, this);\n }",
"public void removeAllPoints() {\n\t\tsynchronized (lockUpObj) {\n\t\t\tif (getNumbOfPoints() == 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\txyPointV.cle... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
common part: create layout | @AutoGenerated
private VerticalLayout buildMainLayout() {
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("-1px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("100.0%");
setHeight("-1px");
... | [
"private void doTheLayout(){\n\n\t }",
"public void createInitialLayout(IPageLayout layout) {\n final String editor = layout.getEditorArea();\n\n final IPlaceholderFolderLayout left = layout.createPlaceholderFolder(Position.LEFT.name(),\n IPageLayout.LEFT, 0.25f, editor);\n le... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 PortNum = 6; require for num | public int getPortNum() {
return portNum_;
} | [
"int getPortnum();",
"static public int userPort (int base, int offset) { throw new RuntimeException(); }",
"public synchronized int getPortNum() {\n\t\tRandom\tportNumGenerator\t= new Random();\n\t\tint\t\tportNum\t\t\t\t= 0;\n\t\tdo {\n\t\t\tportNum = portNumGenerator.nextInt(60001);\n\t\t}\n\t\twhile (port... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a string map from a properties string (e.g. a resourcebundle). Properties are separated by newlines, the key/value separator is the first '=' character in the line. Backslashes, equals and \n characters are unescaped | public static StringMap fromPropertyString(String props) {
return fromPropertyString(props, false);
} | [
"public static Properties stringToProperties(String str, Properties props)\n/* */ {\n/* 788 */ String[] propsStr = str.trim().split(\",\\\\s*\");\n/* 789 */ for (int i = 0; i < propsStr.length; i++) {\n/* 790 */ String term = propsStr[i];\n/* 791 */ int divLoc = term.indexOf(\"=\");\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method returns maximum value of y coordinate | public int getMAX_y_COORDINATE() {
return MAX_y_COORDINATE;
} | [
"public double getYMax() {\r\n return getY();\r\n }",
"float getMaxY();",
"public double getYMax()\r\n\t{\r\n\t\treturn y_max;\r\n\t}",
"public double getMaxY() {\n return m_maxY;\n }",
"public int getMaxY()\n {\n return getY() + getHeight();\n }",
"private int getMaxY() {\n\t\tret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |