query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
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() { buttonGroup1 = new javax.swing.ButtonGroup(); buttonGroup2 = new javax.swing.ButtonGroup(); buttonGroup3 = new javax.swing.ButtonGroup...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
FibonacciSequence fibonacciSequence = new FibonacciSequence(50); System.out.println(fibonacciSequence.BottomUpApproach());
public static void main(String[] args) { LongestIncreasingSubsequence lis = new LongestIncreasingSubsequence(new int[]{4, 2, -1, 3, 5, 5}); lis.findLIS(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Fibonacci(int upper) {\n this.upper = upper; \n }", "@Override\r\n\tpublic int fib(int x) {\n\t\treturn 0;\r\n\t}", "@Test\n\tvoid FibonacciTest() \n\t{\tassertEquals(0, utilities.Fibonacci(0));\n\t\tassertEquals(1, utilities.Fibonacci(1));\n\t\tassertEquals(1, utilities.Fibonacci(2));\n\t\tassertEq...
[ "0.74921924", "0.69689715", "0.696673", "0.6920204", "0.69118726", "0.68497974", "0.682261", "0.6578777", "0.65773606", "0.6574158", "0.6573438", "0.6558822", "0.6548048", "0.65456027", "0.6511973", "0.6447265", "0.643619", "0.6429546", "0.6425521", "0.64134", "0.6405019", ...
0.0
-1
This file is part of project flowDesign. Authors: julian (20161221)
public interface ReferenceHolder { /** * Sets the text. * * @param text the new text */ void setText(String text); /** * Gets the current text. * * @return Returns the text. */ String getText(); /** * Gets the current {@link Diagram}. * * @re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Flow createFlow();", "public interface Flow {\n\n\t/**\n\t * Create a Cascading FlowDef for the specified parameters\n\t * \n\t * @param inPath\n\t * A path to be used as input for the flow\n\t * @param outPath\n\t * A path to be used as output for the floe\n\t * @param errorPath\n\t * ...
[ "0.66760683", "0.6263282", "0.61483634", "0.6114188", "0.6006338", "0.5994569", "0.58748156", "0.58431286", "0.58305603", "0.582404", "0.58030933", "0.58023727", "0.5778098", "0.5777687", "0.57290965", "0.57240635", "0.56623226", "0.56621027", "0.5637547", "0.5630682", "0.562...
0.0
-1
Gets the current text.
String getText();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized String getText() {\n\t\treturn text;\n\t}", "public String getText() {\n\t\t\treturn text.get();\n\t\t}", "public String getText() {\n return text.getText();\n }", "public final String getText() {\n\t\treturn text;\n\t}", "protected Text getText() {\n \t\treturn text;\n \t}", ...
[ "0.83181316", "0.8243184", "0.81988895", "0.8172234", "0.81641525", "0.8157373", "0.81246305", "0.81246305", "0.81246305", "0.810726", "0.81031895", "0.8053375", "0.8049757", "0.8049757", "0.80433494", "0.8041993", "0.8041993", "0.8041993", "0.8041993", "0.8041993", "0.804199...
0.738253
91
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_simplelistview_test, container, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
TODO Autogenerated method stub
public int getH() { return this.height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public int getW() { return this.width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
public int getA() { return this.height*this.width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void setH(int i) { this.height=i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void setW(int i) { this.width=i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { myCalendar.set(Calendar.YEAR, year); myCalendar.set(Calendar.MONTH, monthOfYear); myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
LocalDonor ldonor = realm.createObject(LocalDonor.class,donor);
private void saveUnsyncedDonor() { LocalDonor ldonor = LocalDonor.convert(donor,realm); realm.beginTransaction(); realm.copyToRealmOrUpdate(ldonor); realm.commitTransaction(); Toast.makeText(this, "Donor record save.", Toast.LENGTH_LONG).show(); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void execute(Realm realm) {\n Book newbook = realm.createObject(Book.class, UUID.randomUUID().toString());\n newbook.setBook_name(newBookName);\n newbook.setAut...
[ "0.6729353", "0.6087451", "0.59310436", "0.58829135", "0.55748487", "0.5566175", "0.5420663", "0.54011786", "0.53927684", "0.53726965", "0.53699106", "0.534676", "0.534156", "0.5338816", "0.53261685", "0.53241706", "0.5311293", "0.53005004", "0.52709705", "0.5226524", "0.5224...
0.6626367
1
Set / Get cinema id
public String getCinemaId() { return sharedPreferences.getString(CINEMA_ID, ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getCinemaID() {\n return cinemaID;\n }", "public int getCuisineID() {\n return cuisineID;\n }", "String getCampoId();", "public int getCineplexID() {\n return cineplexID;\n }", "public abstract void setAcma_id(java.lang.Long newAcma_id);", "private MAID(int maID){...
[ "0.76314676", "0.65251774", "0.61602527", "0.58919793", "0.58302534", "0.5803182", "0.5710299", "0.56873256", "0.5683725", "0.5669419", "0.56347454", "0.5631737", "0.5597499", "0.5594434", "0.5591478", "0.5561528", "0.55461395", "0.5542265", "0.5541088", "0.5541088", "0.55410...
0.76838535
0
Set / Get Prefix Code
public String getPrefixCode() { return sharedPreferences.getString(PREFIX_CODE, ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPrefix(String prefix);", "String getPrefix();", "String getPrefix();", "String getPrefix();", "String getPrefix();", "public abstract String getPrefix();", "public String getPrefixString() {\n/* 105 */ return this.prefix;\n/* */ }", "public String getPrefix();", "public String get...
[ "0.71467525", "0.71363884", "0.71363884", "0.71363884", "0.71363884", "0.7066845", "0.6957128", "0.695584", "0.695584", "0.66676384", "0.6624732", "0.6578067", "0.654972", "0.6541727", "0.65348065", "0.6526966", "0.6520358", "0.6500311", "0.6487505", "0.64589036", "0.6433008"...
0.750838
0
Returns the singleton IExtensionUserService instance.
public static IPayService getInstance(ApplicationContext context) { return (IPayService) context.getBean(SERVICE_BEAN_ID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static synchronized UserService getInstance() {\n /*\n * Creates the Singleton instance, if needed.\n *\n */\n if (instance == null) {\n instance = new UserService();\n }\n return instance;\n }", "public static UserInterface instance() {\r\...
[ "0.73231196", "0.70081496", "0.69151336", "0.68074733", "0.67427063", "0.67352223", "0.66759706", "0.6620884", "0.65985477", "0.65985477", "0.65985477", "0.6466155", "0.63666224", "0.6213211", "0.6195137", "0.60635597", "0.59356904", "0.5928104", "0.5923126", "0.5922871", "0....
0.0
-1
Called by Spring using the injection rules specified in the Spring beans file "applicationContext.xml".
public void setDao(IPayDao dao) { super.setDao(dao); this.dao = dao; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initSpring() {\n\t\tgetComponentInstantiationListeners().add(new SpringComponentInjector(this));\n\t}", "public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicationContext) {\n\t\tthis.applicationContext = applicationContext;\n\t}", "@Override\n protected void injectDep...
[ "0.628862", "0.6249147", "0.61360157", "0.60814226", "0.6057157", "0.6039369", "0.6001783", "0.5994424", "0.597226", "0.5971237", "0.59532076", "0.59285563", "0.59145945", "0.59129524", "0.58603734", "0.58274126", "0.580378", "0.5800122", "0.5793246", "0.5788346", "0.57604504...
0.0
-1
Cria os pares em uma matriz.
public static void main(String[] args) { Object[][] pares = new String[][] { { "Sun", "IBM", "FSF", "Berkley", "Microsoft", "Apple" }, { "Solaris", "OS/2", "GNU/Linux", "BSD", "Windows", "MacOS" } }; // Cria um novo mapa com a matriz. @SuppressWarnings("rawtypes") Map mapa = new Mapa(pares); // Im...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void creation(){\n\t for(int i=0; i<N;i++) {\r\n\t\t for(int j=0; j<N;j++) {\r\n\t\t\t tab[i][j]=0;\r\n\t\t }\r\n\t }\r\n\t resDiagonale(); \r\n \r\n\t //On remplit le reste \r\n\t conclusionRes(0, nCarre); \r\n \t\t\r\n\t \r\n\t isDone=true;\r\n }", "public Matriz( int lin, int co...
[ "0.6547817", "0.6345743", "0.62964684", "0.62648535", "0.617221", "0.61447746", "0.6133792", "0.606244", "0.60118693", "0.6009667", "0.58953094", "0.5884164", "0.5881728", "0.5830723", "0.5827572", "0.57753825", "0.5700187", "0.5665584", "0.5658375", "0.56579524", "0.56300443...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if( id == android.R.id.home ) // Back button of the actionbar { finish(); return true; } return super.onOpti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79052806", "0.7806316", "0.7767438", "0.772778", "0.76324606", "0.7622031", "0.758556", "0.7531728", "0.7489057", "0.74576724", "0.74576724", "0.743964", "0.7422121", "0.74037784", "0.73926556", "0.7387903", "0.73803806", "0.73715395", "0.7362778", "0.7357048", "0.7346653"...
0.7129606
60
build the list of synsets
private void getSynsets(HashSet<WordProvider.Word> words) { HashMap<String, String> synsets_map = new HashMap<>(); for (WordProvider.Word word: words) { ArrayList<String> synsetList = new ArrayList<>(Arrays.asList(word.getSynsets().trim().split(" "))); for (String synset_tag: syn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void addAllSynset(ArrayList<String> synsets, String chw, IDictionary dictionary) {\n\t\tWordnetStemmer stemmer = new WordnetStemmer(dictionary);\n\t\tchw = stemmer.findStems(chw, POS.NOUN).size()==0?chw:stemmer.findStems(chw, POS.NOUN).get(0);\n\t\t\n\t\tIIndexWord indexWord = dictionary.getIndexWor...
[ "0.66108346", "0.5921938", "0.58923", "0.57641083", "0.56823725", "0.56634134", "0.56509286", "0.55621725", "0.5552991", "0.55513537", "0.5517021", "0.5490899", "0.54891133", "0.54851735", "0.54464257", "0.54108155", "0.5409489", "0.5368793", "0.5285331", "0.5278496", "0.5271...
0.6523444
1
build the string values of word data
private String[] getSynsetColumns(SynsetProvider.Synset synset, String pos) { String pos_description = UtilsDB.getPosDescription(pos); String words = synset.getWords().trim(); words = words.replace(" ", ", "); words = words.replace("_", " "); words = "<b><font color='#880000'>" +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i...
[ "0.6163612", "0.6087643", "0.6007746", "0.59917897", "0.5966886", "0.5959581", "0.59355974", "0.58774304", "0.5833479", "0.5823042", "0.5794909", "0.57578677", "0.57296795", "0.5687367", "0.56546307", "0.5649098", "0.56307614", "0.561223", "0.55949044", "0.55813634", "0.55728...
0.0
-1
create a new row using the passed column data
private void addTableRow(String[] cols){ final TableRow tr = (TableRow) inflater.inflate(R.layout.word_table_row, tableLayout, false); tr.setClickable(true); final TableRow tr1 = (TableRow) inflater.inflate(R.layout.word_table_row1, tableLayout, false); //tr1.setClickable(true); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Row createRow();", "RowValue createRowValue();", "RowValues createRowValues();", "public static Row createRow() {\n\t\treturn new Row(fsco,criteria,columns);\n\t}", "Column createColumn();", "Rows createRows();", "Col createCol();", "Row<T> createRow(final T element);", "int addRow(RowData row_data...
[ "0.7685095", "0.6898037", "0.68943644", "0.68220294", "0.65749544", "0.6395459", "0.6385258", "0.63338196", "0.63326055", "0.6154752", "0.60653085", "0.5965188", "0.59595186", "0.59517336", "0.59042954", "0.58958346", "0.5875102", "0.58700454", "0.58221555", "0.58091545", "0....
0.0
-1
verify that the number of rows selected is correct
private boolean row_number_error(int min, int max) { int row_size = getHighlightedRows() / 2; if ( (min <= row_size) && (row_size <= max)) return false; String dup = (min > 1)? "s": ""; if (min > row_size) { String status = "Please select at least " + min + " mean...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final void checkRowCount(final int size1, final int size2) {\n\t\tif (size1 == size2) {\n\t\t\tContextComparator.addResult(namespace,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_ROW_COUNT,\n\t\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_PASSED,\n\t\t\t\t\tnull);\n\t\t\treturn;\n\t\t...
[ "0.6628196", "0.6610681", "0.6580401", "0.65219975", "0.64330393", "0.64182", "0.62385046", "0.62332773", "0.62232065", "0.62232065", "0.62232065", "0.62232065", "0.62232065", "0.62232065", "0.62232065", "0.6220242", "0.6154611", "0.6123915", "0.6107805", "0.6069477", "0.6046...
0.6311756
6
get the number of high lighted rows
@SuppressWarnings("unchecked") private int getHighlightedRows() { int rowNumber = 0; // first check if any rows have been clicked on for (TableRow row: rows) { Drawable background = row.getBackground(); if (background instanceof ColorDrawable) { int ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract int getNumRows();", "int getRowsCount();", "public abstract int getNumOfRows();", "int getCellsCount();", "int colCount();", "int getRowsAmount();", "int getRows();", "int getRows();", "int numberofhc()\n{\n\treturn hc.size();}", "@gw.internal.gosu.parser.ExtendedProperty\n publi...
[ "0.6600669", "0.6560875", "0.65374726", "0.6533435", "0.6434931", "0.6392457", "0.6318231", "0.6318231", "0.6317831", "0.6298977", "0.62449217", "0.6219495", "0.6218781", "0.6218781", "0.62149626", "0.62072706", "0.6194066", "0.61931866", "0.6170125", "0.6160582", "0.612401",...
0.6238056
11
called when a single row has been selected
private void setSelectedWord() { for (TableRow row: rows) { Drawable background = row.getBackground(); if (background instanceof ColorDrawable) { int backColor = ((ColorDrawable) background).getColor(); if (backColor == rowSelectColor) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void fireTableRowSelected(Object source, int iRowIndex, int iSelectionType);", "@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse...
[ "0.7760482", "0.7494708", "0.73748326", "0.73521537", "0.7342395", "0.73253584", "0.73095024", "0.71751374", "0.7172456", "0.7169151", "0.7142908", "0.71347284", "0.7108234", "0.70298237", "0.69754493", "0.69512266", "0.6923198", "0.6878896", "0.6857763", "0.6843557", "0.6843...
0.0
-1
display the action bar
private void setActionBar(int action_backColor) { ActionBar actionBar = getSupportActionBar(); if(actionBar != null) { actionBar.setDisplayShowTitleEnabled(true); actionBar.setHomeButtonEnabled(true); actionBar.setDisplayUseLogoEnabled(true); actionBar.set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showActionBar(){\n getSupportActionBar().show();\n yell(\"Showing action bar\");\n }", "void requestActionBar();", "private void layoutActionBar() {\n ActionBar ab = getSupportActionBar();\n if(ab != null) {\n if (mode == 2) {\n ab.setTitle(\...
[ "0.8140779", "0.7579697", "0.7279522", "0.72535074", "0.72181815", "0.7200277", "0.7093932", "0.7067354", "0.70450044", "0.7041805", "0.7010994", "0.697662", "0.697662", "0.697662", "0.697662", "0.697662", "0.697662", "0.697662", "0.69294673", "0.68206644", "0.6810615", "0....
0.603062
69
Initialize the engines In this case, we have the same null engine for all type data to encryp/decrypt
protected void init() { crypterString = crypterLong = crypterDouble = crypterBytes = new MauiCrypterEngineNull(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void EngineInit() {\n TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n public X509Certificate[] getAcceptedIssuers() {\n return new X509Certificate[] {};\n }\n\n public void checkClientTrusted(X509Certificate[] chain,\n ...
[ "0.68077093", "0.67468977", "0.67468977", "0.67339146", "0.64332604", "0.6300486", "0.6265837", "0.6206628", "0.61187375", "0.6115705", "0.60613626", "0.60066915", "0.5998253", "0.5976272", "0.59739906", "0.5949734", "0.5894952", "0.5865936", "0.58189374", "0.57604545", "0.57...
0.6213567
7
You must modify this constructor to return your student number. This is important, because this is what the code that runs the competition uses to associate you with your agent. The constructor should do nothing else.
public StudentPlayer() { super("260767897"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "student(){\r\n \r\n //constructor\r\n //always same as class name\r\n //we can also have code here\r\n //this will be the first method to be intialised\r\n //can never return a value\r\n number++;// default initialisation\r\n }", "public Student()\n {\n ...
[ "0.7700717", "0.7503704", "0.7405932", "0.7354049", "0.7352512", "0.7312423", "0.7225433", "0.7217643", "0.71839184", "0.7123824", "0.71157205", "0.7092926", "0.70893097", "0.7086684", "0.6996632", "0.69914854", "0.69530827", "0.6930997", "0.69240946", "0.69209206", "0.689240...
0.6007823
97
This is the primary method that you need to implement. The ``boardState`` object contains the current state of the game, which your agent must use to make decisions.
public Move chooseMove(PentagoBoardState boardState) { try { if (heuristicOnly) { System.out.println("chose from heuristic"); return Heuristics.choseMove(new LowMemoryBoardState(boardState)); } if (mcts == null) { mcts = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void takeTurn(int[][] boardState)\n {\n \n }", "public Result(BoardState board) {\n this.board = board;\n time = 0;\n }", "public static String[][] getBoardState() {\n return boardState;\n }", "public GameState getState(){\n\t\tGameState State=new GameState(this.p...
[ "0.6908016", "0.6555141", "0.6412342", "0.63302475", "0.6283195", "0.62314487", "0.6221791", "0.6219941", "0.6121584", "0.611812", "0.6095241", "0.6067758", "0.60547197", "0.60476744", "0.6025349", "0.60230505", "0.6010211", "0.6006036", "0.60038257", "0.59888065", "0.5975646...
0.0
-1
returns the filename extension 'json'.
public static String getFilenameExtension() {return "json";}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default String fileExtension() {\n\t\treturn \".json\";\n\t}", "public static String getFileType() {return \"json\";}", "String getFileExtension();", "public String getFileExtension();", "public String getFileExtension() {\n return toString().toLowerCase();\n }", "public String getExtension() {...
[ "0.8510004", "0.7921367", "0.72953254", "0.7142827", "0.70748144", "0.6977145", "0.68681216", "0.6819118", "0.68120915", "0.67975676", "0.6720026", "0.6642248", "0.6583974", "0.6574116", "0.6572516", "0.6571865", "0.65672255", "0.6564076", "0.65618974", "0.6527427", "0.651154...
0.9139727
0
returns the file type 'json'.
public static String getFileType() {return "json";}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getFilenameExtension() {return \"json\";}", "default String fileExtension() {\n\t\treturn \".json\";\n\t}", "public String getFileType(){\n\t\treturn type;\n\t}", "public java.lang.String getFiletype() {\n return filetype;\n }", "public String getFiletype() {\n return ...
[ "0.7908432", "0.7636022", "0.7050511", "0.70358914", "0.699189", "0.6969466", "0.6840601", "0.6821014", "0.6747994", "0.67426145", "0.6741394", "0.66222453", "0.65377057", "0.6520713", "0.64038837", "0.63896847", "0.6369542", "0.62732935", "0.62579376", "0.6220192", "0.615713...
0.89634156
0
reads the entire stream and parses it into a JsonObject.
public JsonObject readStream(HashMap<String,String> meta, String name, InputStream stream, long length, StringBuilder errors) { try{ javax.json.JsonReader rdr = Json.createReader(stream); return rdr.readObject();} catch(Exception ex) {errors.append(ex.toString());} return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JSONObject read(InputStream uploadedInputStream);", "public DtResponse readInfoGralJsonStream(InputStream in) throws IOException {\n InputStreamReader isReader = new InputStreamReader(in);\n //Creating a BufferedReader object\n BufferedReader breader = new BufferedReader(isReader);\n ...
[ "0.6293001", "0.62652385", "0.6008939", "0.5906487", "0.58202404", "0.5736113", "0.56858426", "0.5661062", "0.5633995", "0.5625247", "0.5559734", "0.55339336", "0.55304205", "0.5529556", "0.54102015", "0.5360243", "0.5350499", "0.53470117", "0.53467625", "0.5341407", "0.53172...
0.6414836
0
returns a description of the FileReader.
@Override public String toString() {return "Json-File Reader";}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileDesc getFileDesc();", "public String getFiledesc() {\n return filedesc;\n }", "public String getDescription(FileObject f)\n {\n return getName(f);\n }", "public String getTypeDescription(FileObject f)\n {\n return getName(f);\n }", "public interface FileReader...
[ "0.6580635", "0.64951533", "0.6273837", "0.62062716", "0.6192071", "0.5991538", "0.59294456", "0.5893947", "0.587629", "0.5811905", "0.57846224", "0.5771762", "0.5770045", "0.57663125", "0.57508075", "0.5727574", "0.5727574", "0.57179284", "0.5686918", "0.56430537", "0.560625...
0.57671964
13
DataSource ds=(DataSource) WebContextUtil.getBean("dataSource"); Connection conn=ds.getConnection();
public static JSONArray query(String sql, Connection conn) throws Exception { Statement st=null; try { System.out.println("SQL to execute : "+sql); st = conn.createStatement(); ResultSet rs=st.executeQuery(sql); return resultToJson(rs); } catch (Exception e) { e.printStackTrace(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Bean(name=\"dataSource\")\n\tpublic DataSource getDataSource() {\n\t\tBasicDataSource dataSource = new BasicDataSource();\n\t\tdataSource.setDriverClassName(\"com.mysql.jdbc.Driver\");\n\t\tdataSource.setUrl(\"jdbc:mysql://localhost:3306/elearningforum\");\n\t\tdataSource.setUsername(\"root\");\n\t\tdataSource.se...
[ "0.72698706", "0.7261198", "0.71839345", "0.7153043", "0.7152229", "0.70692587", "0.69060504", "0.6875751", "0.6791466", "0.6695676", "0.6686115", "0.6680733", "0.65728545", "0.65599424", "0.65525264", "0.6551667", "0.6550833", "0.65365267", "0.6515973", "0.651374", "0.648971...
0.0
-1
Get the value of the data column for this Uri. This is useful for MediaStore Uris, and other filebased ContentProviders.
public static String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) { Cursor cursor = null; final String column = "_data"; final String[] projection = {column}; try { cursor = context.getContentResolver().query(uri, projection, selection, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getDataColumn(\n Context context, Uri uri, String selection, String[] selectionArgs) {\n\n Cursor cursor = null;\n final String column = \"_data\";\n final String[] projection = {column};\n\n try {\n cursor = context.getContentResolver().query...
[ "0.64291793", "0.64210624", "0.6408158", "0.6405887", "0.6399965", "0.6399397", "0.63254154", "0.6258916", "0.6243271", "0.62376195", "0.62199485", "0.61844534", "0.61817807", "0.618119", "0.61648256", "0.61645687", "0.61645687", "0.6161506", "0.6158895", "0.6158895", "0.6158...
0.61809784
14
TODO Autogenerated method stub
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { switch (checkedId) { case R.id.juzz: { int i = selected.size(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Intent intent_upload = new Intent(); intent_upload.setType("audio/*"); intent_upload.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(intent_upload, 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) { if (Build.VERSION.SDK_INT > 22) { requestPermissions(new String[]{...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { Fragment f = new RecordingFragment(); mng.beginTransaction().replace(R.id.content_frame, f).addToBackStack(null).commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onProgress(long downloaded, long total) { int progress = (int) (downloaded / total * 100); bar.setProgress(progress); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onCompleted(Exception e, String result) { if (result.contains("-1")) { filename_server = "-1"; bar.setVisibility(View.GONE); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onProgress(long downloaded, long total) { int progress = (int) (downloaded / total * 100); bar.setProgress(progress); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onCompleted(Exception e, String result) { if (result.equals("-1")) { imagepath_server = null; } else { imagepath_server = result; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Create a view of the given width and height.
public MapView(int height, int width) { stats = new FieldStats(); colors = new LinkedHashMap<>(); setTitle("Map Environment Viewer"); stepLabel = new JLabel(STEP_PREFIX, JLabel.CENTER); infoLabel = new JLabel(" ", JLabel.CENTER); population = new JLabel(POPULATION_P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "View createView();", "public ViewSize(int left,int top,int right,int bottom){\n this.left=left;\n this.top=top;\n this.right=right;\n this.bottom=bottom;\n }", "private void setWidthAndHeight(View view, int width, int height) {\n ViewGroup.LayoutParams params = view.getLay...
[ "0.63822573", "0.63739735", "0.61605936", "0.6076618", "0.6063064", "0.6040858", "0.5892899", "0.58914596", "0.5890624", "0.5863181", "0.5848273", "0.5843156", "0.58408177", "0.580383", "0.57758063", "0.57569635", "0.575656", "0.5754349", "0.5740277", "0.5728187", "0.5725685"...
0.0
-1
A setter method for the environment instance variable.
public void setCurrentEnvironment(String environment) { currentEnvironment = environment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String setEnvironmentProperty(String key, String value);", "public void set(String name, String value)\n {\n envMap.put(name,name+\"=\"+StringUtil.nonNull(value));\n }", "@Override\n\tpublic void setEnvironment(Environment environment) {\n\t\tSystem.out.println(\"call setEnvironment()....
[ "0.7084325", "0.7042908", "0.69118834", "0.68582004", "0.6847171", "0.6704886", "0.66651374", "0.65422964", "0.6444069", "0.6421889", "0.64207053", "0.62975395", "0.62399626", "0.6190942", "0.6161479", "0.6157766", "0.6100371", "0.60391575", "0.60339946", "0.6021397", "0.5993...
0.57609844
30
Displays the environments using different colors.
public void showStatus(Field field) { stepLabel.setText(""); stats.reset(); fieldView.preparePaint(); for(int row = 0; row < field.getDepth(); row++) { for(int col = 0; col < field.getWidth(); col++) { if(col <= field.getSavannaEnvironment().getEndCol()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayColourMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------- Colour Menu ---------------\");\r\n System.out.println(\"(1) To edit Colour1\");\r\n System.out.println(\"(2) To edit Colour2\");\r\n System.out.println(\"(3) To edit Colour...
[ "0.6622019", "0.65578926", "0.62773573", "0.59533024", "0.5905506", "0.5799477", "0.5787669", "0.5731811", "0.5711785", "0.5658802", "0.5626533", "0.5613391", "0.55841213", "0.5575734", "0.55620915", "0.5507672", "0.5476109", "0.5459054", "0.5436474", "0.5428035", "0.5425868"...
0.0
-1
Create a new FieldView component.
public FieldView(int height, int width) { gridHeight = height; gridWidth = width; size = new Dimension(0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ViewComponent createViewComponent();", "ViewComponentPart createViewComponentPart();", "public Field() {\n\t\t\n\t\t//--- View:\n\t\t// > first line: a horizontal box containing open and closed content.\n\t\t\n\t\t// style\n\t\tgetStyleClass().add(\"field\");\n\t\tnameText.getStyleClass().add(\"field-name\");\...
[ "0.68801403", "0.66646314", "0.6636521", "0.65158176", "0.64942205", "0.6400844", "0.63134646", "0.61545086", "0.6147556", "0.60797477", "0.60612196", "0.5999598", "0.59897596", "0.5975997", "0.59419966", "0.5912772", "0.5909973", "0.5876505", "0.5876317", "0.584805", "0.5825...
0.61218935
9
Tell the GUI manager how big we would like to be.
public Dimension getPreferredSize() { return new Dimension(gridWidth * GRID_VIEW_SCALING_FACTOR, gridHeight * GRID_VIEW_SCALING_FACTOR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createDialogSize ()\n {\n }", "@Override\n public void settings(){\n size(500, 500);\n }", "private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maxi...
[ "0.6523044", "0.6446799", "0.64361024", "0.6373434", "0.6371907", "0.63539714", "0.6331856", "0.6308719", "0.6295807", "0.6280925", "0.62671524", "0.62570995", "0.6203588", "0.619575", "0.61859226", "0.61845315", "0.61398196", "0.6134353", "0.61226565", "0.6120254", "0.612025...
0.0
-1
Prepare for a new round of painting. Since the component may be resized, compute the scaling factor again.
public void preparePaint() { if(! size.equals(getSize())) { // if the size has changed... size = getSize(); fieldImage = fieldView.createImage(size.width, size.height); g = fieldImage.getGraphics(); xScale = size.width / gridWidth; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void preparePaint()\n {\n if(! size.equals(getSize())) { // if the size has changed...\n size = getSize();\n fieldImage = this.createImage(size.width, size.height);\n g = fieldImage.getGraphics();\n\n xScale = size.width / gridWidth;\n if(xSc...
[ "0.73887783", "0.63103867", "0.62684685", "0.6065417", "0.6035034", "0.59775543", "0.5893741", "0.58635193", "0.5829944", "0.5776912", "0.5776912", "0.5752284", "0.57430375", "0.571935", "0.5678077", "0.56649", "0.5655786", "0.56538373", "0.5651351", "0.56216806", "0.5617749"...
0.728232
1
Paint on grid location on this field in a given color.
public void drawMark(int x, int y, Color color) { g.setColor(color); g.fillRect(x * xScale, y * yScale, xScale-1, yScale-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void drawAsColor(Color color) {\n\n\t}", "public void setGridColor(Color color) {\n this.gridColor = color;\n this.repaint();\n }", "public DrawComponent(int color) {\n this.color = color;\n }", "abstract public void colorize(TCell c);", "public void setFillColor(Color col...
[ "0.66273385", "0.66151935", "0.6413133", "0.6389872", "0.6373847", "0.6276412", "0.6209587", "0.62048453", "0.6178581", "0.6129899", "0.60777706", "0.6073209", "0.60701674", "0.6037371", "0.5989808", "0.59895116", "0.5966076", "0.5938612", "0.5932688", "0.5918677", "0.5908782...
0.0
-1
The field view component needs to be redisplayed. Copy the internal image to screen.
public void paintComponent(Graphics g) { if(fieldImage != null) { Dimension currentSize = getSize(); if(size.equals(currentSize)) { g.drawImage(fieldImage, 0, 0, null); } else { // Rescale the pre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void actionViewOriginalImage ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint imagIndex = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\t//---- ...
[ "0.6593957", "0.6585085", "0.61562794", "0.6079478", "0.60649776", "0.6023956", "0.5999681", "0.59868944", "0.59795696", "0.5955198", "0.5952044", "0.59287035", "0.5915656", "0.5878062", "0.58532125", "0.58438337", "0.5804568", "0.5802795", "0.57999456", "0.5793895", "0.57764...
0.6170464
2
/ JADX WARNING: Code restructure failed: missing block: B:2:0x0005, code lost: if ((r4 instanceof com.facebook.react.bridge.WritableNativeArray) != false) goto L_0x0007;
public void putArray(String str, A1e a1e) { boolean z; if (a1e != null) { z = false; } z = true; AnonymousClass0FY.A03(z, "Illegal type provided"); putNativeArray(str, (WritableNativeArray) a1e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support....
[ "0.6101716", "0.5965922", "0.5938419", "0.591178", "0.5818039", "0.5733515", "0.57272667", "0.570834", "0.562194", "0.5615949", "0.55838025", "0.55822015", "0.5570542", "0.5569524", "0.55453706", "0.54661286", "0.5423178", "0.54011685", "0.5399989", "0.53927416", "0.5382527",...
0.0
-1
/ JADX WARNING: Code restructure failed: missing block: B:2:0x0005, code lost: if ((r4 instanceof com.facebook.react.bridge.WritableNativeMap) != false) goto L_0x0007;
public void putMap(String str, C23043A0y a0y) { boolean z; if (a0y != null) { z = false; } z = true; AnonymousClass0FY.A03(z, "Illegal type provided"); putNativeMap(str, (WritableNativeMap) a0y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0...
[ "0.6294083", "0.61152625", "0.60382754", "0.6014341", "0.5999233", "0.58967143", "0.5630207", "0.5626563", "0.5622984", "0.55957353", "0.5540373", "0.54828966", "0.54756397", "0.5450596", "0.5426057", "0.5423928", "0.53713536", "0.53619224", "0.5356788", "0.5321571", "0.53177...
0.0
-1
region PAGE SELECTION Called when a new page is selected. Updates the view.
private void onPageSelected(int position) { mSearchField.setVisibility(position == 0 ? View.VISIBLE : View.INVISIBLE); mHistoryButton.setSelected(position == 0); mStatementButton.setSelected(position == 1); mPieChartButton.setSelected(position == 2); if (position == 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onPageSelected(int pageSelected) {\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t}", "@Override\n\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void o...
[ "0.7431873", "0.7330823", "0.73175144", "0.7316258", "0.7316258", "0.7288505", "0.71719754", "0.7162176", "0.7162176", "0.71184444", "0.71184444", "0.71061045", "0.7075379", "0.7034118", "0.7005593", "0.6911294", "0.6879645", "0.68566966", "0.68566966", "0.68566966", "0.67508...
0.6680639
21
endregion Clear focus of any edit text when the user click next to it.
@Override public boolean dispatchTouchEvent(MotionEvent event) { if (event.getAction() == MotionEvent.ACTION_UP) { View v = getCurrentFocus(); if (v instanceof EditText) { Rect outRect = new Rect(); v.getGlobalVisibleRect(outRect); if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resetFocus();", "void resetFocus();", "void removeFocus();", "void txtClear () {\r\n\r\n\t\ttxtNo.setText (\"\");\r\n\t\ttxtName.setText (\"\");\r\n\t\ttxtDeposit.setText (\"\");\r\n\t\ttxtNo.requestFocus ();\r\n\r\n\t}", "public void resetFocus() {\n toSetFocus = null;\n focusOn = null;\n }", ...
[ "0.75229996", "0.75229996", "0.7511572", "0.713828", "0.70244765", "0.6996279", "0.68754077", "0.68534666", "0.6645395", "0.66265774", "0.6527941", "0.6518484", "0.6469386", "0.64406115", "0.6439252", "0.64333516", "0.6404592", "0.63775235", "0.63769114", "0.63692486", "0.636...
0.0
-1
Show a popup with different checkbox allowing the user to select which type he wants to keep in the history of expenses/credits.
private void showTypeSelectionDialog() { // Initialize an alert dialog AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(""); // Set popup content view LayoutInflater inflater = getLayoutInflater(); View alertView = inflater.inflate(R.layout.ch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOptionsFrame(this, doNotShow);\n\t}", ...
[ "0.6225142", "0.58118755", "0.56588197", "0.554036", "0.55329484", "0.5491201", "0.5377037", "0.5357023", "0.53555006", "0.5342197", "0.53280234", "0.5318729", "0.531183", "0.53117114", "0.5298949", "0.5290768", "0.5288165", "0.5279072", "0.52767706", "0.52224076", "0.5221607...
0.6240314
0
Update private fields using checkbox in grid layouts.
private void updateSelectedTypes(LinearLayout expenseTypes, LinearLayout creditTypes) { for (int i = 0; i < expenseTypes.getChildCount(); ++i) mExpenseTypesSelected[i] = ((CheckBox) expenseTypes.getChildAt(i)).isChecked(); for (int i = 0; i < creditTypes.getChildCount(); ++i) mCr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void refreshFieldsVisibility()\n {\n \n }", "private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n ...
[ "0.63518643", "0.6034186", "0.5993262", "0.59478223", "0.5887609", "0.5874932", "0.5819789", "0.5801471", "0.5790028", "0.57755125", "0.5770907", "0.57615274", "0.5694093", "0.5611937", "0.5577037", "0.5549184", "0.55489296", "0.55435073", "0.5512362", "0.5496154", "0.5483449...
0.0
-1
Browse expenses and credits grid layout to find selected types.
public String buildInClauseFromSelectedTypes() { String inClause = ""; boolean isFirst = true; for (int i = 0; i < mExpenseTypesSelected.length; ++i) { if (mExpenseTypesSelected[i]) { inClause += (isFirst ? "" : ",") + i; isFirst = false; }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void showTypeSelectionDialog() {\n // Initialize an alert dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"\");\n // Set popup content view\n LayoutInflater inflater = getLayoutInflater();\n View alertView = inflater.inflat...
[ "0.60689867", "0.5363421", "0.5331586", "0.50590175", "0.5038632", "0.4974713", "0.49712548", "0.49263552", "0.49079567", "0.49010822", "0.4874371", "0.48582628", "0.48465702", "0.4816011", "0.48149714", "0.48115885", "0.48100552", "0.4791843", "0.47904494", "0.47689983", "0....
0.0
-1
TODO Autogenerated method stub
public List<ProjectEntity> getProjectByName() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
we don't really have any other information to provide
@Override public Object getDetails() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override public int describeContents() { return 0; }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void getExra...
[ "0.5777603", "0.5772989", "0.5747754", "0.56232285", "0.5591022", "0.5574144", "0.5568047", "0.55676574", "0.5543356", "0.55159855", "0.550813", "0.549134", "0.5486171", "0.5484739", "0.54827243", "0.54685146", "0.545561", "0.54352325", "0.5407114", "0.53868467", "0.5367079",...
0.0
-1
use the IPerson object as the principal
@Override public IPerson getPrincipal() { return this.person; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Principal getPrincipal();", "@Override\n public Principal getUserPrincipal() {\n return principal;\n }", "@Override\n\tpublic Object getPrincipal() {\n\t\treturn principal;\n\t}", "@Override\n\tpublic Object getPrincipal() {\n\t\treturn principal;\n\t}", "public String getPrincipal() {\...
[ "0.7485004", "0.73604834", "0.71900827", "0.71900827", "0.6823198", "0.6797746", "0.6661406", "0.65816396", "0.6520974", "0.6475304", "0.6333731", "0.6315466", "0.62319016", "0.6209367", "0.6160619", "0.6149247", "0.610552", "0.60651517", "0.6019319", "0.59910417", "0.5974304...
0.78510237
0
delegate to the portal to determine authentication state
@Override public boolean isAuthenticated() { return !person.isGuest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean authNeeded();", "boolean isAuthenticated();", "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(...
[ "0.7113672", "0.67934173", "0.66815054", "0.6623848", "0.65226036", "0.6496943", "0.63181674", "0.63082516", "0.6306477", "0.63055664", "0.6277628", "0.62762094", "0.62395793", "0.6224529", "0.6206902", "0.61847794", "0.61847794", "0.6179048", "0.61747485", "0.61726445", "0.6...
0.5737258
78
year Initialize a new date from the month, day, and year.
public Date(int month, int day, int year) { if (!isValid(month, day, year)) throw new IllegalArgumentException("Invalid date"); this.month = month; this.day = day; this.year = year; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Year createYear();", "private static Date getYearDate(int year) {\n Calendar calendar = Calendar.getInstance();\n calendar.clear();\n calendar.set(Calendar.YEAR, year);\n return calendar.getTime();\n }", "public Date(String month, int year) {\n\t\t\tthis.weekday = 0;\n\t\t\tthis....
[ "0.7553718", "0.71865505", "0.7171778", "0.7158144", "0.7078777", "0.7000308", "0.69842285", "0.68948066", "0.6876471", "0.68460625", "0.6836204", "0.67870754", "0.6782793", "0.67807513", "0.6772992", "0.6770175", "0.67603785", "0.6711324", "0.66673225", "0.66673225", "0.6664...
0.6508059
33
Initialize new date specified as a string in form MM/DD/YYYY.
public Date(String date) { String[] fields = date.split("/"); if (fields.length != 3) { throw new IllegalArgumentException("Invalid date"); } month = Integer.parseInt(fields[0]); day = Integer.parseInt(fields[1]); year = Integer.parseInt(fields[2]); if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean setDateFromString(String s){\n String[] strs = s.split(\"/\");\n if(strs.length != 3){\n return false;\n }\n try {\n this.year = Integer.parseInt(strs[0].toString());\n this.month = Integer.parseInt(strs[1].toSt...
[ "0.65363616", "0.65121233", "0.63796717", "0.63662374", "0.6352125", "0.63278425", "0.63017637", "0.6282842", "0.61631805", "0.61631256", "0.61628747", "0.61045164", "0.6092052", "0.60880727", "0.6046443", "0.60237527", "0.59875596", "0.59818304", "0.5966446", "0.59423953", "...
0.6472473
2
is the given date valid?
private static boolean isValid(int m, int d, int y) { if (m < 1 || m > 12) return false; if (d < 1 || d > DAYS[m]) return false; if (m == 2 && d == 29 && !isLeapYear(y)) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isValidFor (@Nonnull DATATYPE aDate);", "boolean isValidForDate(LocalDate date);", "private boolean isValidDate(String date) {\n\t Date d = null;\n\t try {\n\t\t\td = format.parse(date);\t\t\t\n\t\t\treturn d != null;\n\t\t} catch (java.text.ParseException e) {\n\t\t\treturn false;\n\t\t}\n\t}", ...
[ "0.80980885", "0.7970524", "0.78506005", "0.78341436", "0.7819129", "0.7778189", "0.7750392", "0.77502793", "0.77304274", "0.7646913", "0.75717515", "0.7563238", "0.7550295", "0.7535916", "0.7528795", "0.75007564", "0.7495145", "0.7478475", "0.74689883", "0.744953", "0.742602...
0.656023
83
is y a leap year?
private static boolean isLeapYear(int y) { if (y % 400 == 0) return true; if (y % 100 == 0) return false; return y % 4 == 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isLeapYear(int y) {\r\n\t\tif (y % 400 == 0)\r\n\t\t\treturn true;\r\n\t\tif (y % 100 == 0)\r\n\t\t\treturn false;\r\n\t\treturn (y % 4 == 0);\r\n\t}", "private static boolean isLeapYear(int y) {\n\t\t\tif (y % 400 == 0) return true;\n\t\t\tif (y % 100 == 0) return false;\n\t\t\treturn y %...
[ "0.8763436", "0.8733412", "0.805778", "0.7843906", "0.78231186", "0.7775126", "0.7755014", "0.7737467", "0.7737397", "0.7732945", "0.7713731", "0.76818395", "0.76803946", "0.76695347", "0.76439667", "0.7638443", "0.7610375", "0.76091206", "0.7587896", "0.749945", "0.7467662",...
0.87723
0
Returns the next date in the calendar
public Date next() { if (isValid(month, day + 1, year)) return new Date(month, day + 1, year); else if (isValid(month + 1, 1, year)) return new Date(month, 1, year); else return new Date(1, 1, year + 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNextDate()\n\t{\n\t\tm_calendar.set (Calendar.DAY_OF_MONTH, getDayOfMonth() + 1);\n\t\treturn getTodayDate ();\n\n\t}", "public Date next() {\r\n\t\tif (isValid(month, day + 1, year))\r\n\t\t\treturn new Date(month, day + 1, year);\r\n\t\telse if (isValid(month + 1, 1, year))\r\n\t\t\treturn new...
[ "0.7897979", "0.7744523", "0.77251226", "0.7332555", "0.72395194", "0.7212571", "0.7165655", "0.7155285", "0.70874393", "0.6950255", "0.68189895", "0.66608506", "0.66162", "0.6578891", "0.65708053", "0.6547123", "0.65333956", "0.64647466", "0.64489573", "0.63965154", "0.63856...
0.77123356
3
Compares two dates chronologically Return true if this date is after that date; false otherwise;
public boolean isAfter(Date that) { return compareTo(that) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAfter(Date b) {\r\n\t\treturn compareTo(b) > 0;\r\n\t}", "public boolean isAfter(Date d2)\r\n\t{\r\n\t\tint ret = this.compareTo(d2);\r\n\t\treturn ret > 0;\r\n\t}", "public boolean isAfter(@NonNull final CalendarDay other) {\n return date.isAfter(other.getDate());\n }", "public static b...
[ "0.74502164", "0.7420546", "0.72157717", "0.7084996", "0.7044721", "0.7018067", "0.6916515", "0.6778597", "0.67596495", "0.6639528", "0.66177297", "0.6617605", "0.6612717", "0.65766287", "0.6520925", "0.6504175", "0.6500903", "0.6500607", "0.6464664", "0.6448519", "0.6424379"...
0.7428003
1
Compare two dates chronologically Return true if this date is before that date; false otherwise;
public boolean isBefore(Date that) { return compareTo(that) < 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBefore(Date date2)\n {\n if (year < date2.year)\n return true;\n else if (year == date2.year && month < date2.month)\n return true;\n else if (year == date2.year && month == date2.month && day < date2.day)\n return true;\n else if (year == date2.year &...
[ "0.77895874", "0.76812357", "0.7524152", "0.74605536", "0.73722035", "0.7255577", "0.720233", "0.70255053", "0.70067865", "0.7006647", "0.69786507", "0.6895325", "0.67926747", "0.6654627", "0.6653356", "0.66479903", "0.66161096", "0.65286547", "0.65078706", "0.6497406", "0.64...
0.7706106
1
Compare two dates chronologically. Return the value 0 if the argument date is equal to this date; a negative integer is this date is chronologically less than the argument date; and a positive integer if this date is chronologically after the argument date.
@Override public int compareTo(Date that) { if (this.year < that.year) return -1; if (this.year > that.year) return 1; if (this.month < that.month) return -1; if (this.month > that.month) return 1; if (this.day < that.day) return -1; if (this.day > that.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int compare(Date date1, Date date2) {\n if (date1.getDay() < date2.getDay() || date1.getMonth() < date2.getMonth() || date1.getYear() < date2.getYear())\n return -1;\n\n else if (date1.getDay() > date2.getDay() || date1.getMonth() > date2.getMonth() || date1.getYear()...
[ "0.71503067", "0.694361", "0.693771", "0.6699517", "0.6698313", "0.6696939", "0.6618015", "0.6611415", "0.65023375", "0.65021574", "0.6490321", "0.6426329", "0.6387033", "0.63432", "0.63268936", "0.6250038", "0.62136084", "0.6169284", "0.6117989", "0.6104444", "0.6103939", ...
0.701101
1
Return a string representation of this date;
@Override public String toString() { return month + "/" + day + "/" + year; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }", "public String toString() {\r\n String date = month + \"/\" + day;\r\n return date;\r\n }", "public String toString() {\n\t\tdouble hour = getHour();\n\t\tString h = (hour < 10 ? \"...
[ "0.8388033", "0.80035496", "0.79431295", "0.79324305", "0.7908346", "0.7889749", "0.7880098", "0.78693384", "0.78675956", "0.7862201", "0.7860198", "0.78210884", "0.77243835", "0.7686463", "0.765901", "0.7630894", "0.75951654", "0.7595056", "0.7488506", "0.748703", "0.7475402...
0.76079774
16
Compares this date to the specified date.
@Override public boolean equals(Object other) { if (other == this) return true; if (other == null) return false; if (other.getClass() != this.getClass()) return false; Date that = (Date) other; return (this.month == that.month) && (this.day == that.day) && (this.ye...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public int compareTo(Date date) {\n if (this.year > date.year) {\n return 1;\n } else if (this.year < date.year) {\n return -1;\n } else if (this.year == date.year) {\n if (this.month > date.month) {\n return 1;\n } else...
[ "0.695591", "0.6855627", "0.67202246", "0.67186666", "0.6710937", "0.6599172", "0.65785706", "0.6576868", "0.65461123", "0.6507967", "0.64183515", "0.6400396", "0.632862", "0.6318573", "0.6317847", "0.6317151", "0.6297526", "0.6261882", "0.62614137", "0.62560594", "0.6230884"...
0.6108421
23
Returns an integer hash code for this date.
@Override public int hashCode() { int hash = 17; hash = 31 * hash + month; hash = 31 * hash + day; hash = 31 * hash + year; return hash; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int hashCode()\n {\n return ((calendar.get(Calendar.DAY_OF_MONTH) & 0x0000001F) << 0)\n | ((calendar.get(Calendar.MONTH ) & 0x0000000F) << 5)\n | ((calendar.get(Calendar.YEAR ) & 0x007FFFFF) << 9);\n }", "@Override\r\n\tpublic int hashCode()\r\n\t{\n\t\tlo...
[ "0.77415735", "0.7596715", "0.75905234", "0.6957452", "0.6941153", "0.6850626", "0.6809692", "0.68070406", "0.6765584", "0.6720317", "0.6718884", "0.667174", "0.6660285", "0.6543623", "0.64256537", "0.6421959", "0.64082307", "0.6351788", "0.6332251", "0.6289685", "0.6288046",...
0.7547658
3
Unit tests the data type.
public static void main(String[] args) { // Date today = new Date(2, 25, 2004); // StdOut.println(today); // for (int i = 0; i < 10; i++) { // today = today.next(); // StdOut.println(today); // } // StdOut.println(today.isAfter(today.next())); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testParseDataType() {\n IntegerSpec integerSpec = new IntegerSpec();\n dataTypeParser.setDataTypeSpec(integerSpec);\n dataTypeParser.parse();\n IntegerSpec parsedIntegerSpec = (IntegerSpec) dataTypeParser.getDataTypeSpec();\n\n dataTypeParser = new DataType...
[ "0.6927294", "0.66272527", "0.64954555", "0.6488569", "0.6411557", "0.6408495", "0.63720405", "0.63720405", "0.63720405", "0.63505167", "0.6330065", "0.6303229", "0.6270854", "0.6269861", "0.6248617", "0.62318623", "0.6218737", "0.6181123", "0.6180813", "0.61780185", "0.61600...
0.0
-1
skip whitespace chars, for which token has already been emitted
private void resetToHtmlInitial() { int i = 0; for (i = 0; i < zzEndRead; i++) { if (!Character.isWhitespace(zzBuffer.charAt(i))) break; } reset(zzBuffer, i, zzEndRead, HTML_INITIAL); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void skipWhiteSpace() throws ScanErrorException\n {\n while (isWhiteSpace(currentChar))\n eat(currentChar);\n }", "public void skipToken() {\t\t\n\t\t//remove token from line\n\t\tif (token != null)\n\t\t{\n\t\t\tline = line.substring(token.length());\n\t\t}\n\t\t//check if new to...
[ "0.75586057", "0.7068817", "0.7050835", "0.69971454", "0.6980318", "0.694534", "0.69308746", "0.67685515", "0.67685515", "0.66918087", "0.6595893", "0.6472805", "0.6451176", "0.6290816", "0.61637485", "0.6156536", "0.61422896", "0.61281145", "0.6084605", "0.6047895", "0.60388...
0.0
-1
Creates a new scanner
public _AstroLexer(java.io.Reader in, boolean highlightMode, boolean jsDocTypesMode) { isHighlightModeOn = highlightMode; isJsDocTypesModeOn = jsDocTypesMode; this.zzReader = in; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Scanner createScanner(File file) {\n Scanner scanner;\n try {\n scanner = new Scanner(file);\n\n } catch (FileNotFoundException e) {\n scanner = null;\n }\n return scanner;\n }", "private ConsoleScanner() {}", "public Parser(Scanner scanner) {\...
[ "0.70198154", "0.699672", "0.6994146", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.66478544", "0.6601508", "0.6571627", "0.6571627", "0.6571627", "0.6571627", "0.6571627", "0.6571627", "0.65122795", "0.6379424", "0.6372...
0.0
-1
Returns the maximum size of the scanner buffer, which limits the size of tokens.
private int zzMaxBufferLen() { return Integer.MAX_VALUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxBufferSize() {\r\n return maxBufferSize;\r\n }", "public int getMaxBufferSize() {\n return maxBufferSize;\n }", "public Integer getMaxTokenLength() {\n return this.maxTokenLength;\n }", "public static void maxTokens(Scanner in) {\n }", "private int getMaxSiz...
[ "0.7193807", "0.71603906", "0.7143543", "0.69371593", "0.6702388", "0.6690743", "0.666494", "0.666494", "0.666494", "0.66638696", "0.66373146", "0.66373146", "0.6583155", "0.6555754", "0.6525065", "0.6513517", "0.65107906", "0.6478585", "0.6474066", "0.6472923", "0.64725244",...
0.69456357
4
Whether the scanner buffer can grow to accommodate a larger token.
private boolean zzCanGrow() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasMoreTokens()\n {\n return (currentPosition >= maxPosition) ? false : true;\n }", "public boolean hasMoreTokens() {\n\t\treturn\t(current <=\tmax);\n\t}", "public boolean hasMoreTokens() {\n return pointer < tokens.size();\n }", "public boolean hasMoreTokens(){\n ...
[ "0.75302196", "0.7286783", "0.71046257", "0.6756815", "0.64155257", "0.63224417", "0.62873626", "0.62403613", "0.6202785", "0.6145543", "0.61190945", "0.6083568", "0.5962925", "0.59534526", "0.59212303", "0.591524", "0.59006923", "0.58608186", "0.5841238", "0.58404565", "0.58...
0.0
-1
Translates raw input code points to DFA table row
private static int zzCMap(int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals...
[ "0.56107336", "0.55671364", "0.5428801", "0.5353656", "0.5302487", "0.52917403", "0.51139003", "0.503353", "0.5008196", "0.49932948", "0.49583298", "0.49555954", "0.4922416", "0.49098495", "0.48940632", "0.4884024", "0.48712254", "0.48617202", "0.48544455", "0.48536393", "0.4...
0.0
-1
Returns the current lexical state.
public final int yystate() { return zzLexicalState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LexerState getState() {\n\t\treturn state;\n\t}", "public String getCurrentState() {\n\t\treturn currentState;\n\t}", "public TSLexerState getState() {\r\n \t\treturn state;\r\n \t}", "final public int yystate() {\n return yy_lexical_state;\n }", "final public int yystate() {\n return yy_lexi...
[ "0.7778223", "0.70451266", "0.6973572", "0.6948794", "0.6948794", "0.69262105", "0.6872897", "0.6855285", "0.6828627", "0.6828627", "0.6828627", "0.6828627", "0.6828627", "0.6816272", "0.6794584", "0.67804474", "0.6775809", "0.6752034", "0.6720856", "0.6673574", "0.65926677",...
0.6828434
40
Enters a new lexical state
public final void yybegin(int newState) { zzLexicalState = newState; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zzLexicalState = newState;\r\n }", "public final void yybegin(int newState) {\r\n zz...
[ "0.73873174", "0.73873174", "0.73873174", "0.73873174", "0.73873174", "0.72941506", "0.7226648", "0.7226648", "0.71508276", "0.67628527", "0.675286", "0.66516984", "0.62365973", "0.6181515", "0.61330837", "0.6028637", "0.6020987", "0.59391516", "0.59199816", "0.5890798", "0.5...
0.734593
32
Returns the text matched by the current regular expression.
public final CharSequence yytext() { return zzBuffer.subSequence(zzStartRead, zzMarkedPos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getRegularExpression() {\n\t\treturn enteredText;\n\t}", "java.lang.String getRegex();", "java.lang.String getRegex();", "@Override\r\n\tpublic String getMatch() {\n\t\treturn match;\r\n\t}", "public String getRegex();", "public String getRegEx();", "public String getMatched() {\r\n\t\tre...
[ "0.70918065", "0.6484353", "0.6484353", "0.6231338", "0.6081341", "0.6011239", "0.59774715", "0.594106", "0.58467793", "0.57840997", "0.5781989", "0.5691061", "0.56247616", "0.56243914", "0.562349", "0.56010646", "0.5595711", "0.5595711", "0.5595711", "0.5595711", "0.5595711"...
0.5966505
15
Returns the length of the matched text region.
public final int yylength() { return zzMarkedPos-zzStartRead; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTextLength();", "public int length() {\r\n\t\treturn text.length();\r\n\t}", "public int getTextLength();", "public int getLength() {\n\t\t\treturn this.text.length();\n\t}", "@Override\r\n \tpublic final int getLength() {\r\n \t\tAssert.isTrue(hasSourceRangeInfo());\r\n \t\treturn getEndPos() - get...
[ "0.6528484", "0.6524071", "0.636394", "0.6363093", "0.61599505", "0.6144468", "0.60899585", "0.6083994", "0.607981", "0.6014312", "0.6012768", "0.60009634", "0.59647894", "0.5935444", "0.5883292", "0.5819961", "0.5805488", "0.57757026", "0.5772788", "0.5771723", "0.57381433",...
0.5758411
48
Reports an error that occurred while scanning. In a wellformed scanner (no or only correct usage of yypushback(int) and a matchall fallback rule) this method will only be called with things that "Can't Possibly Happen". If this method is called, something is seriously wrong (e.g. a JFlex bug producing a faulty scanner ...
private void zzScanError(int errorCode) { String message; try { message = ZZ_ERROR_MSG[errorCode]; } catch (ArrayIndexOutOfBoundsException e) { message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR]; } throw new Error(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void yy_ScanError(int errorCode) {\n String message;\n try {\n message = YY_ERROR_MSG[errorCode];\n }\n catch (ArrayIndexOutOfBoundsException e) {\n message = YY_ERROR_MSG[YY_UNKNOWN_ERROR];\n }\n\n throw new Error(message);\n }", "private void yy_ScanError(int errorCode) {\n...
[ "0.6284956", "0.6284956", "0.61203915", "0.5630205", "0.5612845", "0.55875844", "0.546607", "0.54657555", "0.5451778", "0.5374529", "0.5371829", "0.5351082", "0.5351082", "0.5351082", "0.5351082", "0.5351082", "0.5348111", "0.5282164", "0.52628577", "0.5261151", "0.52530473",...
0.53252393
45
Pushes the specified amount of characters back into the input stream. They will be read again by then next call of the scanning method
public void yypushback(int number) { if ( number > yylength() ) zzScanError(ZZ_PUSHBACK_2BIG); zzMarkedPos -= number; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void pushBack() throws IOException {\n iis.seek(iis.getStreamPosition()-bufAvail);\n bufAvail = 0;\n bufPtr = 0;\n }", "public void finish() {\n charScanner.pushBack(currentCharToken);\n }", "@Override\n public void mark(final int readlimit) {\n input.mark();\n }"...
[ "0.57341325", "0.56656796", "0.52405643", "0.517513", "0.51328856", "0.51283723", "0.5105496", "0.5038689", "0.501606", "0.50158566", "0.50055116", "0.5002461", "0.49909958", "0.4982702", "0.49762884", "0.4958265", "0.49557078", "0.49520126", "0.49434412", "0.49329913", "0.49...
0.0
-1
Generates systemunique ticket number
public void generateUid(final StringGenerator generator) { Checks.checkParameter(generator != null, "StringGenerator should be initialized"); uid = generator.generate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String creatUniqueID(){\n long ID = System.currentTimeMillis();\n return Long.toString(ID).substring(9,13);\n }", "public static String createPID()\r\n\t{\r\n\t\tunique_count++;\r\n\t\tif(unique_count >= 100) unique_count = 0;\r\n\t\tString str_num = String.format(\"%02d\", unique_count)...
[ "0.7287717", "0.7143473", "0.7120055", "0.7080532", "0.69538", "0.68606406", "0.6794795", "0.6794795", "0.6731797", "0.67278856", "0.6716815", "0.6684497", "0.66665053", "0.65617746", "0.6558683", "0.6557767", "0.65516394", "0.65327346", "0.65190583", "0.65113884", "0.6507546...
0.0
-1
The constructor for this takes a file name. It is either an absolute path or a path relative to the beginning of this project.
public BoardBuilder(File fileName) throws Exception { JAXBContext contextObj = JAXBContext.newInstance(BoardInitializer.class); Unmarshaller mub = contextObj.createUnmarshaller(); bi = (BoardInitializer) mub.unmarshal(new FileReader(fileName)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Project(File file)\n {\n super(file);\n this.open();\n }", "public File(String fileName) {\n\t\tthis(new java.io.File(fileName));\n\t}", "public FileName(File fn) {\n fileType = LOCAL;\n setFile(fn.getPath()); // in File, \"path\" is the whole name, not just the direct...
[ "0.72752005", "0.686304", "0.6668597", "0.66041106", "0.64896053", "0.64896053", "0.64686763", "0.6456279", "0.64541787", "0.643572", "0.63637453", "0.6308426", "0.6289324", "0.6282116", "0.62814736", "0.6264476", "0.62559485", "0.6176077", "0.6170106", "0.616251", "0.6155848...
0.0
-1
Makes the board based on the config provided by the board initializer
public Board<?> makeBoard() throws EscapeException { switch (bi.getCoordinateId()) { case HEX: return makeHexBoard(); case ORTHOSQUARE: return makeOrthoBoard(); case SQUARE: return makeSquareBoard(); default: throw new EscapeException("Board does not exist!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void boardSetUp(){\n\t}", "MainBoard createMainBoard();", "public BoardSetup() {\n\t\tthis.theBoard = Board.getInstance();\n\t}", "private void setUpCorrect() {\n List<Tile> tiles = makeTiles();\n Board board = new Board(tiles, 4, 4);\n boardManager = new BoardManager(board);\n ...
[ "0.7181675", "0.7093488", "0.7047843", "0.68722075", "0.68595374", "0.685713", "0.6798011", "0.67523295", "0.6670719", "0.6628271", "0.6572205", "0.65563923", "0.6487276", "0.6473665", "0.643863", "0.6426143", "0.6395972", "0.6365763", "0.6365703", "0.63656294", "0.63651776",...
0.5943127
50
Creates new form SK16
public SK16() { initComponents(); tbl_bslip.repaint(); try{ conn = ConnectTESTING.Connect(); String str = "select bslip_no,bslip_date from pfmo.bslip" + " where status_code = 'P';"; ps = conn.prepareStatement(str); rs = ps.executeQuery(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "WithCreate withSku(SkuName skuName);", "public SVCustom build(){\n if(this.disks < 1) ret...
[ "0.5935462", "0.58450055", "0.5769676", "0.5556646", "0.5538646", "0.5518443", "0.55047375", "0.5435101", "0.53826475", "0.5375885", "0.5359195", "0.5356956", "0.5329298", "0.531929", "0.5311554", "0.5302226", "0.52867377", "0.526174", "0.5229366", "0.5228363", "0.52268535", ...
0.0
-1
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() { jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); tbl_bsli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
//GENEND:initComponents / Open List of Tools Borrowed
private void tbl_bslipMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbl_bslipMouseClicked sk161 = new SK161(); int index = tbl_bslip.getSelectedRow(); TableModel model = tbl_bslip.getModel(); String bslip = model.getValueAt(index, 0).toString(); JOptionP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ToolList tools() {\r\n\t\treturn new ToolList(LeapJNI.Hand_tools(this.swigCPtr, this), true);\r\n\t}", "public MakeCPMLEditableTool(){\n\t}", "private void addToolsAndCommands() {\n this.selectTargetCadastreObjectTool\n = new CadastreChangeSelectCadastreObjectTool(this.getPojoDataA...
[ "0.67075586", "0.62195176", "0.6073187", "0.60397017", "0.5944825", "0.5827103", "0.5783904", "0.5780804", "0.57515585", "0.5689301", "0.56832457", "0.5630686", "0.55685127", "0.55616784", "0.55457294", "0.55157685", "0.55058503", "0.54746234", "0.54711264", "0.54572904", "0....
0.0
-1
Se comprueba que se haya seleccionado un elemento de la lista
public void onClick$btnGuardar() throws InterruptedException{ if (lboxPlantilla.getSelectedIndex() != -1) { //se obtiene la plantilla seleccionada plantilla = listaPlantilla.get(lboxPlantilla.getSelectedIndex()); //se obtiene la referencia del formulario Component frmPlanificarM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean seleccionarItemEnListado(){\n\t\t\n\t\tint indice = this.getUltIdDoc();\n\t\tif (indice > -1){ //solo si se eligió un doc\n\t\t\tif ((indice+1) > tablaDocs.getItemCount()){ //se pasa de la cantidad de elemento en la lista, poner el de mas arriba en su lugar\n\t\t\t\tthis.setUltIdDoc(tablaDocs.getI...
[ "0.7129996", "0.66308135", "0.64894676", "0.6195274", "0.60856235", "0.6083653", "0.6076984", "0.59190995", "0.59040886", "0.5902455", "0.5863499", "0.5860375", "0.58474463", "0.583946", "0.5835691", "0.5817673", "0.58021975", "0.5793584", "0.5782117", "0.5776781", "0.5758155...
0.0
-1
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another character while preserving the order of characters. No two characters may map to the same character but a character may ma...
public static boolean isIsomorphic(String s, String t) { if(s == null || t == null || s.length() != t.length()) return false; HashMap<Character, Character> map = new HashMap<>(); for(int i = 0; i < s.length(); i++) { if(map.containsKey(s.charAt(i))) { if(map.get(s.cha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isIsomorphic(String s, String t) {\n // quick check: diff len => cannot match\n if (s.length() != t.length()) {\n return false;\n }\n\n // record mapping of chars s -> t\n Map<Character, Character> map = new HashMap<>();\n // mark chars th...
[ "0.88713944", "0.8779681", "0.872534", "0.87034565", "0.8672806", "0.8660714", "0.85664237", "0.8480057", "0.8221533", "0.79752153", "0.7149985", "0.7149973", "0.7026785", "0.68309873", "0.6823226", "0.68191624", "0.6726521", "0.67035115", "0.6687369", "0.6667013", "0.6637366...
0.8693369
4
/ Instance fields. / Constructors. / public & interface method. / private method.
public Page<VendorReqstResult> selectVendorRequestList(VendorReqstDTO vendorReqstDTO, PageParam pageParam) throws Exception { // 페이지 설정 RepositoryHelper.makePageEntityIndex(vendorReqstDTO, pageParam); // 공지사항 리스트 조회 List<VendorReqstResult> resultList = getSession1().selectList("com.plgrim.ncp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private Rekenhulp()\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "private void __sep__Constructors__() {}", "public OOP_207(){\n\n }", "private TMCourse() {\n\t}", "@Override\n void init() {\n }", "...
[ "0.7385603", "0.72886527", "0.72670245", "0.7233677", "0.7106289", "0.7049334", "0.70256823", "0.7015467", "0.69642735", "0.6956014", "0.6931463", "0.6928075", "0.6923835", "0.6916111", "0.6903436", "0.68952316", "0.68948185", "0.6888041", "0.68864286", "0.68623793", "0.68346...
0.0
-1
soll von javascript aufgerufen werden
public void set(String msg) { eingabeString = msg; JOptionPane.showMessageDialog(null, "nashorn -> java: " + msg); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void Javascript() {\n\n\t}", "String getJavascriptValidation( );", "public JavaScript(String javaScript) {\n this.javaScript = javaScript;\n }", "Container moreJavaScript(){\n\n Container con = new Container();\n con.addItem(\"/*****************************************...
[ "0.7591195", "0.64348733", "0.6281867", "0.62147856", "0.6073645", "0.59392375", "0.5888094", "0.58140093", "0.57989764", "0.57718927", "0.5771611", "0.5755613", "0.57298106", "0.56873184", "0.5666543", "0.5637626", "0.56051195", "0.5602409", "0.55681604", "0.5561769", "0.545...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { MongoClient client = new MongoClient(); MongoDatabase db = client.getDatabase("db"); MongoCollection<Document> collection = db.getCollection("deleteTest"); collection.drop(); for (int i = 0; i < 8; i++) { collection.insertOne(new Document().append("_id", i));...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static AppointmentsMainFragment newInstance() { AppointmentsMainFragment fragment = new AppointmentsMainFragment(); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.72587806", "0.72315", "0.71128035", "0.6989915", "0.69888663", "0.68323874", "0.68284166", "0.6811231", "0.6799868", "0.6799074", "0.6764381", "0.6738079", "0.6738079", "0.67268246", "0.6715347", "0.67061615", "0.6690773", "0.6689529", "0.6687659", "0.6661806", "0.6644326"...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_appointments_main, container, false); recyclerView = (RecyclerView) view.findViewById(R.id.hairstyleRecyclerView)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
/ En un proyecto JavaFX el main llama al launch que a su vez llama a start
public static void main(String[] args) { launch(args); donante=new Donante(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }", "public static void main( String[] args) {\n\t\t// this method start the javaFX application.\n\t\t// some IDEs are capable of starting JavaFX without this method.\n\t\tlaunch( args);\n\t}", ...
[ "0.80436337", "0.7972131", "0.7767421", "0.769568", "0.76146364", "0.7492703", "0.7469369", "0.7434961", "0.73840296", "0.73626715", "0.73596406", "0.73211133", "0.73199284", "0.7289391", "0.7265379", "0.72232836", "0.7217155", "0.7207649", "0.7198015", "0.7190549", "0.715315...
0.0
-1
/ cargamos la ventana principal
public void mostrarMenuPrincipal() { try { FXMLLoader loader = new FXMLLoader(Main.class.getResource("../Vista/UIMenuPrincipal.fxml")); rootPane=(AnchorPane) loader.load(); Scene scene = new Scene(rootPane); stagePrincipal.setTitle("Aplicacion de Donantes y D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VentanaPrincipal() {\n initComponents();\n\n idUsuariosControlador = Fabrica.getInstance().getControladorUsuarios(null).getId();\n idProductosControlador = Fabrica.getInstance().getControladorProductos(null).getId();\n idOrdenesControlador = Fabrica.getInstance().getControladorOr...
[ "0.7194403", "0.71053", "0.70628357", "0.6961611", "0.6848651", "0.68455005", "0.678895", "0.67662925", "0.6746492", "0.67376", "0.6725266", "0.6570873", "0.6568984", "0.6563481", "0.65311384", "0.6530914", "0.65165854", "0.64981836", "0.6483029", "0.6482918", "0.6432725", ...
0.6072628
63